/*★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
  SHARED DESIGN TOKENS - COLORS, FONTS, BORDERS, SPACING
 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★*/
:root {
  --cyan: #1bcba5;
  --cyan-dark: #0f705b;
  --cyan-light: #96e7d6;
  --blue: #2ebcc5;
  --blue-dark: #136166;
  --blue-light: #9fe0e4;
  --blue-pale:#beeaed;
  --yellow: #f5bc11;
  --yellow-dark: #876709;
  --yellow-light: #fae092;
  --coral: #ed7b5e;
  --coral-dark: #824434;
  --coral-light: #f7c2b5;
  --tint-filters: #eef8f9;

  --light: #ffffff;
  --dark: #0d0d0d;
  --grey-light: #f0f0f0;
  --grey-light-mid:#d6d6d6;
  --grey-mid: #acacac;
  --grey-dark: #757575;

  --error: #a03216;

  --font-sans: "Open Sans", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: "Courier Prime", monospace;

  --font-sans-heading-2: 3.75rem;
  --font-sans-heading-3: 3rem;
  --font-sans-heading-4: 2.125rem;
  --font-sans-heading-5: 1.5rem;
  --font-sans-heading-6: 1.25rem;
  --font-sans-body-large: 1rem;
  --font-sans-body-small: 0.875rem;
  --font-sans-caption: 0.75rem;

  --graph-font-size: 16px;

  --border-style: 1px solid rgba(13, 13, 13, 0.14);
  --border-style-strong: 1px solid rgba(13, 13, 13, 0.28);
  --parliament-gradient: linear-gradient(to right, var(--cyan) 0% 25%, var(--blue) 25% 50%, var(--yellow) 50% 75%, var(--coral) 75% 100%) 1;
  
  --gutter-padding: 16px;

  --silhouette-url: url("../images/library_silhouette.svg");
    
  box-sizing:border-box;
    padding-top:env(safe-area-inset-top,0px);
    padding-bottom:env(safe-area-inset-bottom,0px)
}

/*★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
  FONTS
 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★*/
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/open-sans-latin-400-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/open-sans-latin-ext-400-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/open-sans-latin-700-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/open-sans-latin-ext-700-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/*★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
  BASE: RESETS, HTML, BODY, MAIN, H1, H2, H3, HIDDEN, FOCUS, TOOLTIPS
 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-sans-body-large);
  background: var(--light);
  color: var(--dark);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}


main {
  flex: 1 0 auto;
  padding-bottom: 120px;
  display: block;
}

h1 {
  font-size: var(--font-sans-heading-4);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  font-weight: 700;
  max-width: 30ch;
}

h2 {
  font-size: var(--font-sans-heading-5);
  line-height: 1.33;
  margin: 0 0 0.75rem;
}
h3 {
  font-size: var(--font-sans-heading-6);
  line-height: 1.4;
  margin: 1.25rem 0 0.4rem;
}

p {
  margin: 0 0 0.75rem;
}
a {
  color: inherit;
  text-underline-offset: 0.15em;
}


:focus-visible {
  outline: 2px solid var(--blue-dark);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--light);
}

.wrap {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--gutter-padding);
}

.tooltip {
  position: absolute;
  z-index: 50;
  max-width: 18rem;
  background: var(--dark);
  color: var(--light);
  font-size: var(--font-sans-body-small);
  line-height: 1.35;
  padding: 0.4rem 0.6rem;
  pointer-events: none;
}

.is-hidden { 
  display: none; 
}

[hidden] {
  display: none !important;
}


/*★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
  SITE HEADER, LOGO, TITLE, TOP NAV 
 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding:16px 16px;
  background: var(--dark);
  border-bottom: 4px solid transparent;
  border-image: var(--parliament-gradient) 1;
}


.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: flex-end;
  gap: 0px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-panel .header-brand-text {
  text-align: right;
}

.site-header img {
  display: block;
  max-height: 60px;
  width: auto;
  padding-right: 0;
}

.site-title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--light);
}

.site-sub-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--light);
  opacity: 0.75;
}

/* Scope the main navigation rules to the header */
.site-header .site-nav {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}


.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav button {
  appearance: none;
  font: inherit;
  cursor: pointer;
}


.site-header .site-nav :is(a, button) {
  display: inline-block;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
  border: 0;
  border-bottom: 4px solid transparent;
  text-decoration: none;
  font-size: var(--font-sans-heading-6);
  font-weight: 700;
  white-space: nowrap;
}


.site-header .site-nav :is(a, button):hover {
  color: var(--light);
  background-color: rgba(255, 255, 255, 0.05);
}

.site-header .site-nav :is(a, button).is-active {
  color: var(--light);
  background-color: var(--dark);
}

.site-nav :is(a, button)[aria-current],
.site-nav :is(a, button).active,
.site-nav :is(a, button).is-active,
.site-nav li.active > :is(a, button),
.site-nav li.is-active > :is(a, button) {
  position: relative;
  z-index: 1;
  overflow: visible;
  color: var(--light);
  background-color: var(--dark);
  border-bottom: 0;
}
.site-nav :is(a, button)[aria-current]::after,
.site-nav :is(a, button).active::after,
.site-nav :is(a, button).is-active::after,
.site-nav li.active > :is(a, button)::after,
.site-nav li.is-active > :is(a, button)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 4px;
  background-color: var(--dark);
}

.sub-header :is(a, button)[aria-current="page"]::after,
.sub-header :is(a, button).active::after,
.sub-header :is(a, button).is-active::after,
.sub-header li.active > :is(a, button)::after,
.sub-header li.is-active > :is(a, button)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--parliament-gradient);
}




@media (prefers-reduced-motion: reduce) {
  .site-nav .nav-tab {
    transition: none;
  }
}

/*★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
  TOP NAV - MOBILE MENU CONTROL
 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★*/
.menu-btn {
  display: none;
}

.top-menu-btn {
  display: none;
}

.top-menu-links {
  display: contents;
}

.site-header #top-nav .top-menu-btn {
  display: none;
}

/*★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
  PAGE SUB-NAV - PERSISTENT SECONDARY NAVIGATION
 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★*/
.sub-header {
  position: sticky;
  top: var(--site-header-height, 117px);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding: 0 20px;
  background-color: var(--dark);
  color: var(--light);
}

.sub-header ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 2px;
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-header li {
  flex: 0 0 auto;
}

.sub-header li > :is(a, button) {
  display: block;
  padding: 11px 13px 12px;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  font-size: var(--font-sans-heading-6);
  font-family: var(--font-sans);
  border: 0;
  border-bottom: 4px solid transparent;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

.sub-header li > :is(a, button):hover {
  color: var(--light);
  background-color: rgba(255, 255, 255, 0.05);
}

.sub-header :is(a, button)[aria-current],
.sub-header :is(a, button).active,
.sub-header :is(a, button).is-active,
.sub-header li.active > :is(a, button),
.sub-header li.is-active > :is(a, button) {
  color: var(--light);
  /* background-color: rgba(255, 255, 255, 0.12); */
  border-bottom: 4px solid transparent;
  border-image: var(--parliament-gradient) 1;
}

.sub-header .site-nav a {
  color: rgba(255, 255, 255, 0.45);
  background: transparent;
}

.sub-header .site-nav a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.sub-header .site-nav a[aria-current="page"],
.sub-header .site-nav a.active,
.sub-header .site-nav a.is-active {
  color: var(--light);
}

@media (prefers-reduced-motion: reduce) {
  .site-nav :is(a, button) {
    transition: none;
  }
}

/*★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
  PAGE SUB-NAV - FULL ROW OR CONDENSED MENU
  utility_functions.js adds is-condensed when the tabs do not fit.
  !important is used so older page-specific rules cannot hide the nav.
 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★*/

/* Full row: tabs always visible, no menu button */
.sub-header:not(.is-condensed) #site-nav {
  display: block !important;
}

.sub-header:not(.is-condensed) .menu-btn {
  display: none !important;
}

/* Condensed: button visible, tab list hidden until opened */
.sub-header.is-condensed .menu-btn {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.9rem var(--gutter-padding);
  background: var(--dark);
  color: var(--light);
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

.sub-header.is-condensed #site-nav {
  display: none !important;
  width: 100%;
}

.sub-header.is-condensed #site-nav.open,
.sub-header.is-condensed #site-nav.is-open {
  display: block !important;
}

.sub-header.is-condensed #site-nav ul {
  flex-direction: column;
  align-items: stretch;
  padding-bottom: 0.5rem;
}

.sub-header.is-condensed #site-nav li > a {
  padding: 14px var(--gutter-padding);
  font-size: 16px;
}

.sub-header.is-condensed .header-inner {
  padding: 0;
}

/* Full row between phone and large desktop: centre the tabs */
@media (min-width: 641px) and (max-width: 1366px) {
  .sub-header:not(.is-condensed) .header-inner {
    justify-content: center;
  }

  .sub-header:not(.is-condensed) #site-nav ul {
    justify-content: center;
  }
}


/*★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
  PAGE HEADER - TITLE AND INTRO TEXT BELOW THE NAVIGATION
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★*/
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  min-height: 84px;
}

.page-header {
  background-color: var(--dark);
  color: var(--light);
  width: 100%;
  padding: 30px 20% 30px;
  margin-top: -30px;
}

/* image as home button */
.header-left {
  text-decoration: none;
  color: inherit;
}

.lede {
  font-size: var(--font-sans-heading-6);
  line-height: 1.6;
  color: var(--grey-dark);
}



/*★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
  PAGE CONTENT DIVS AND LAYOUT
 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★*/
.page-content {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 24px 72px;
}

.sr-only {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

/*★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
  LEFT SIDE NAVIGATION- USED ON BUDGET GLOSSARY, & ELECTORATE PROFILES
 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★*/
/* Sidebar tab nav (Demographics / Household / Work) */
.information-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  flex: 0 0 220px;
  padding-top: 80px;
  position: sticky;
  top: var(--sticky-stack-height, 165px);
}

.information-nav a.nav-tab {
  display: block;
  text-decoration: none;
}

.information-nav .nav-tab {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--grey-dark);
  background: none;
  border: none;
  border-left: 3px solid transparent;
  text-align: left;
  padding: 10px 14px 10px 18px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.information-nav .nav-tab:hover {
  color: var(--dark);
  background: rgba(27, 203, 165, 0.08);
}

.information-nav .nav-tab.is-active {
  color: var(--dark);
  border-left-color: var(--cyan);
  background: rgba(27, 203, 165, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .information-nav .nav-tab {
    transition: none;
  }
}


/*★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
   BUTTONS 
 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★*/
button,input {
  font: inherit;
  color: inherit;
}

.btn, .btn-small, .btn-step, .btn-pm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 2px solid var(--dark);
  border-radius: 0;
  background: var(--light);
  color: var(--dark);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.btn {
  min-height: 44px;
  padding: 0.5rem 1.1rem;
}
.btn-small {
  min-height: 36px;
  padding: 0.25rem 0.75rem;
  font-size: var(--font-sans-body-small);
}
.item-action-bar #close {
  margin-left: auto;
}

#close, #copylink {
  min-height: 44px;
  gap: 0.75rem;
}


#close.btn-small, #copylink.btn-small {
  background: var(--dark);
  color: var(--light);
}

#close.btn-small:hover, #copylink.btn-small:hover {
  background: var(--c);
}

.btn-primary {
  background: var(--dark);
  color: var(--light);
}
.btn:hover, .btn-small:hover, .btn-step:hover, .btn-pm:hover {
  background: #f7f7f7;
}

.btn-primary:hover {
  background: var(--dark);
}

.btn-step {
  min-height: 52px;
  min-width: 7.5rem;
  padding: 0.5rem 1rem;
  font-size: var(--font-sans-body-large);
  touch-action: manipulation;
}

.btn-pm {
  width: 42px;
  height: 42px;
  font-size: 1.15rem;
  touch-action: manipulation;
}
.btn-pm + .btn-pm {
  border-left-width: 0;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.link-btn {
  border: 0;
  background: none;
  padding: 0.2rem 0;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
  min-height: 32px;
}

.seg {
  display: inline-block;
  margin-right: 1.5rem;
  border: 0;
  padding: 0;
}
.seg label {
  display: inline-block;
  margin: 0;
}
.seg label + label {
  margin-left: 0.35rem;
}
.seg input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.seg span {
  display: inline-block;
  border: 2px solid var(--dark);
  padding: 0.4rem 0.8rem;
  font-weight: 700;
  background: var(--light);
  cursor: pointer;
  min-height: 40px;
}
.seg input:checked + span {
  background: var(--dark);
  color: var(--light);
}
.seg input:focus-visible + span {
  outline: 3px solid var(--dark);
  outline-offset: 2px;
}
.seg-small {
  margin-right: 0;
}
.seg-small span {
  min-height: 34px;
  padding: 0.3rem 0.65rem;
  font-size: var(--font-sans-body-small);
}
.seg-dark span {
  background: transparent;
  color: var(--light);
  border-color: var(--light);
}
.seg-dark input:checked + span {
  background: var(--light);
  color: var(--dark);
}
.seg-dark input:focus-visible + span {
  outline-color: var(--light);
}

/*★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
   FILTERS
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★*/
.filters {
  align-items: end;
  background: var(--tint-filters);
  border-top: 4px solid var(--blue-dark);
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: var(--font-sans-body-small);
  font-weight: 700;
}
.filters .filter-wide {
  grid-column: span 2;
}
.filters input,
.filters select {
  font-weight: 400;
  font-size: var(--font-sans-body-large);
}
.filters .check {
  min-height: 44px;
}

.filters .seg legend {
  float: none;
  width: 100%;
  margin: 0 0 0.25rem;
}
.filter-actions {
  display: flex;
  align-items: center;
  min-height: 44px;
}


/*★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
   MULTI COLOUR CARD LIKE STATISTCS 
 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★*/
.stat-panel.is-hidden {
  display: none;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 36px;
}

.stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--light);
  border-top: 3px solid var(--cyan);
  border-bottom: 3px solid var(--cyan);
  padding: 18px 20px;
}

/* Cycle stat-card accent colour every 4 cards */
.stat-cards .stat-card:nth-child(4n + 2) {
  border-top-color: var(--blue);
  border-bottom-color: var(--blue);
}

.stat-cards .stat-card:nth-child(4n + 3) {
  border-top-color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.stat-cards .stat-card:nth-child(4n + 4) {
  border-top-color: var(--coral);
  border-bottom-color: var(--coral);
}

.stat-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.stat-year {
  display: block;
  margin: 6px 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-dark);
}

.stat-value {
  margin: auto 0 0;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--dark);
  font-variant-numeric: lining-nums;
}

.stat-unit {
  margin: 4px 0 0;
  font-size: 14px;
  font-family: var(--font-sans);
  letter-spacing: 0.03em;
  color: var(--grey-dark);
  min-height: 2lh;
}

/*★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
  POPUP
 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★*/
dialog#pop {
  width: min(36rem, calc(100% - 2 * var(--gutter-padding)));
  max-height: 86vh;
  padding: 0;
  border: 2px solid var(--dark);
  border-top: 6px solid var(--c, var(--dark));
  border-radius: 0;
  background: var(--light);
  color: var(--dark);
}
dialog#pop::backdrop {
  background: rgba(13, 13, 13, 0.55);
}
.pop-inner {
  padding: 1.25rem 1.4rem 1.4rem;
  overflow: auto;
  max-height: calc(86vh - 8px);
}
.pop-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.pop-head h2 {
  margin: 0;
}
.pop-kicker {
  margin: 0 0 0.15rem;
  font-size: var(--font-sans-body-small);
  font-weight: 700;
  color: var(--grey-dark);
}
.pop-kicker:empty {
  display: none;
}
.pop-body ul {
  padding-left: 1.2rem;
}
.pop-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--grey-light-mid);
  margin: 0.75rem 0 1rem;
}
.pop-facts > div {
  padding: 0.5rem 0.65rem;
  border-left: 1px solid var(--grey-light-mid);
}
.pop-facts > div:first-child {
  border-left: 0;
}
.pop-facts span {
  display: block;
  font-size: var(--font-sans-caption);
  color: var(--grey-dark);
  font-weight: 700;
}
.pop-facts strong {
  font-size: var(--font-sans-heading-6);
}
.pop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.pop-actions:empty {
  display: none;
}
.pop-steps {
  padding-left: 1.3rem;
}
.pop-steps li {
  margin-bottom: 0.5rem;
}
.share-url input {
  max-width: none;
  font-size: var(--font-sans-body-small);
}
.pop-change-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.pop-change-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--grey-light-mid);
  max-width: none;
}
.pop-change-list li span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 700;
}

.source {
  font-size: var(--font-sans-body-small);
  color: var(--grey-dark);
  margin: 0.75rem 0 0;
}

dialog#pop[open] {
  animation: popIn 0.22s ease-out;
}
dialog#pop[open]::backdrop {
  animation: fadeIn 0.22s ease-out;
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

/*popup button look*/
.info {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 2px solid var(--dark);
  border-radius: 0;
  background: var(--light);
  font: 700 0.75rem/1 var(--font-sans);
  cursor: pointer;
  vertical-align: 0.1em;
  margin-left: 0.2rem;
}
.info:hover {
  background: var(--blue-pale);
}





/*★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
  FOOTER
 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★*/
.footer-silhouette {
  height: 120px;
  margin-bottom: -1px;
  background: var(--dark);
  -webkit-mask: var(--silhouette-url) center bottom / 100% 100% no-repeat;
  mask: var(--silhouette-url) center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.footer-silhouette-overlay {
  position: relative;
  z-index: 2;
  margin-top: -120px;
}

footer.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 48px;
  padding: 28px clamp(24px, 4vw, 56px);
  background: var(--dark);
  color: var(--light);
  text-align: left;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-footer-brand img {
  height: 56px;
  width: auto;
}

.site-footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.site-footer-brand-title {
  font-size: 18px;
  font-weight: 700;
}

.site-footer-brand-sub {
  font-size: 17px;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  margin-left: auto;
}

.site-footer-nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
  color: var(--light);
}

.site-footer-copyright {
  margin: 0;
  padding-left: 36px;
  border-left: 1px solid var(--light);
  font-size: 16px;
}

.footer-silhouette,
footer.site-footer {
  flex-shrink: 0;
}


/*★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
   RESPONSIVE OVERRIDES
 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★*/
 /*PHONE VIEW, tested on */
@media (max-width: 640px) {

  .page-content {
    max-width: 640px;
    padding: 24px 16px 56px;
  }

  .site-header {
    padding: 12px 16px 0;
    gap: 8px 12px;
  }

  .header-panel {
    display: contents;
  }

  .site-header img {
    max-height: 40px;
    padding-right: 0;
  }

  .site-title {
    font-size: 12px;
  }

  .site-sub-title {
    font-size: 10.5px;
  }

  .site-header .site-nav {
    flex: 0 0 100%;
    justify-content: center;
    padding-top: 0;
  }

  .site-header .site-nav :is(a, button) {
    padding: 6px 8px;
    font-size: 14px;
  }

    .site-header {
    z-index: 1001;
  }

  .site-header #top-nav {
    position: relative;
  }

  .site-header #top-nav .top-menu-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 37px;
    padding: 0 12px;
    background: var(--dark);
    color: var(--light);
    border: 0;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
  }

  .site-header #top-nav .top-menu-btn[aria-expanded="true"] {
    background: var(--coral);
    color: var(--dark);
  }

    .site-header #top-nav .top-menu-btn i {
    transition: transform 0.2s ease;
  }

  .site-header #top-nav .top-menu-links {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    z-index: 5;
    background: var(--dark);
  } 

  .site-header #top-nav.open .top-menu-links {
    display: block;
  }

  .site-header #top-nav a {
    display: block;
    padding: 14px 16px;
    border-left: 6px solid var(--cyan);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--dark);
    color: var(--light);
    font-size: 1.1rem;
    white-space: normal;
  }

  .site-header #top-nav a:nth-child(2) {
    border-left-color: var(--blue);
  }

  .site-header #top-nav a:nth-child(3) {
    border-left-color: var(--yellow);
  }

  .site-header #top-nav a.is-active {
    background: var(--light);
    color: var(--dark);
  }

  .site-header #top-nav a::after {
    display: none;
  }


    .sub-header {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .sub-header .header-inner {
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  footer.site-footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 28px 24px;
    text-align: center;
  }

  .site-footer-brand {
    justify-content: center;
    gap: 14px;
    text-align: left;
  }

  .site-footer-brand img {
    height: 48px;
  }

  .site-footer-nav {
    justify-content: center;
    gap: 8px 28px;
    margin-left: 0;
  }

  .site-footer-copyright {
    width: 100%;
    max-width: 320px;
    padding: 16px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
  }

   /* Two stat cards per row, each with a full coloured border */
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-card {
    border-top: 3px solid var(--cyan);
    border-bottom: 3px solid var(--cyan);
    border-left: 3px solid var(--cyan);
    border-right: 3px solid var(--cyan);
  }

  .stat-cards .stat-card:nth-child(4n + 2) {
    border-top-color: var(--blue);
    border-right-color: var(--blue);
    border-left-color: var(--blue);
    border-bottom-color: var(--blue);
  }

  .stat-cards .stat-card:nth-child(4n + 3) {
    border-top-color: var(--yellow);
    border-bottom-color: var(--yellow);
    border-left-color: var(--yellow);
    border-right-color: var(--yellow);
  }

  .stat-cards .stat-card:nth-child(4n + 4) {
    border-top-color: var(--coral);
    border-bottom-color: var(--coral);
    border-left-color: var(--coral);
    border-right-color: var(--coral);
  }

    .information-nav {
    position: static;
    flex-direction: column;
    flex: 0 0 auto;
    width: 100%;
    padding-top: 0;
    margin-left: 0;
    gap: 0;
  }

  .information-nav .nav-tab {
    width: 100%;
    text-align: left;
    font-size: 16px;
    padding: 12px 16px;
    border-left: 3px solid transparent;
    border-bottom: var(--border-style);
  }

  .information-nav .nav-tab.is-active {
    border-left-color: var(--cyan);
    background: rgba(27, 203, 165, 0.08);
  }
}

/* SMALLER DESKTOP VIEW, tested on 1024 x 600 */
@media (min-width: 641px) and (max-width: 1366px) {
   .site-header {
    padding: 12px 16px 0;
    gap: 8px 12px;
  }

  .header-panel {
    display: contents;
  }

    .header-left {
    padding-bottom: 20px;
    gap: 12px;
  }

   .site-header img {
    max-height: 60px;
    padding-right: 0;
  }

    .site-title {
    font-size: 20px;
  }

  .site-sub-title {
    font-size: 14px;
  }

   .site-header .site-nav {
    flex: 0 0 100%;
    justify-content: flex-end;
    padding-top: 0;
  }
  
  .site-header .site-nav :is(a, button) {
    padding: 6px 8px;
    font-size: 18px;
  }

  .sub-header {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .sub-header .header-inner {
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  .information-nav {
    flex: 0 0 160px;
    margin-left: 0;
    padding-top: 24px;
    top: var(--sticky-stack-height, 165px);
    gap: 8px;
  }

  .information-nav .nav-tab {
    font-size: 15px;
    padding: 8px 10px 8px 12px;
  }
 

  .page-header h1 {
    font-size: 18px;
  }

  .page-header p {
    font-size: 14px;
  }


    /* Two stat cards per row, each with a full coloured border */
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-card {
    border-top: 3px solid var(--cyan);
    border-bottom: 3px solid var(--cyan);
    border-left: 3px solid var(--cyan);
    border-right: 3px solid var(--cyan);
  }

  .stat-cards .stat-card:nth-child(4n + 2) {
    border-top-color: var(--blue);
    border-right-color: var(--blue);
    border-left-color: var(--blue);
    border-bottom-color: var(--blue);
  }

  .stat-cards .stat-card:nth-child(4n + 3) {
    border-top-color: var(--yellow);
    border-bottom-color: var(--yellow);
    border-left-color: var(--yellow);
    border-right-color: var(--yellow);
  }

  .stat-cards .stat-card:nth-child(4n + 4) {
    border-top-color: var(--coral);
    border-bottom-color: var(--coral);
    border-left-color: var(--coral);
    border-right-color: var(--coral);
  }

}