/* --- Site header (SMH-style chrome — Nine palette + masthead pattern) --- */
.site-header {
  border-bottom: 1px solid var(--color-grey-border);
  background: var(--color-white);
}

/* Navy masthead bar: date (left), logo (center), log in + subscribe (right) */
.site-header__masthead-bar {
  background: var(--color-smh-navy);
  color: rgba(255, 255, 255, 0.92);
  padding-block: var(--space-md);
}

.site-header__masthead-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: var(--space-md);
}

.site-header__date {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  justify-self: start;
  padding-top: 0.1rem;
}

.site-header__brand {
  display: block;
  justify-self: center;
  line-height: 0;
}

.site-header__brand-img {
  display: block;
  height: auto;
  width: clamp(220px, 38vw, 440px);
}

/* Text-based wordmark fallback (not used now that AFR has a real PNG logo) */
.site-header__brand-text {
  display: none;
}

/* The Age masthead — keep native asset aspect ratio (2312 x 564 ≈ 4.1:1) */
body[data-masthead="age"] .site-header__brand-img {
  width: min(340px, 60vw);
  aspect-ratio: 2312 / 564;
}

/* AFR masthead — use the real afr-logo.png (424x60); size to match afr.com breakpoints */
body[data-masthead="afr"] .site-header__brand-img {
  width: clamp(220px, 30vw, 353px);
  aspect-ratio: 424 / 60;
}

/* Strip-lead slot — holds either the date or a row of AFR top-strip links */
.site-header__strip-lead {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  justify-self: start;
  flex-wrap: wrap;
  padding-top: 0.1rem;
}

.site-header__strip-link {
  color: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding-right: var(--space-md);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  line-height: 1;
}

.site-header__strip-link:last-child {
  border-right: none;
  padding-right: 0;
}

.site-header__strip-link:hover {
  text-decoration: underline;
}

.site-header__strip-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
  justify-self: end;
}

.site-header__link-strip {
  color: var(--color-white) !important;
  font-weight: 600;
  font-size: 0.8125rem;
  text-decoration: none;
}

.site-header__link-strip:hover {
  text-decoration: underline;
  color: var(--color-white) !important;
}

/* SMH primary accent blue — subscribe */
.site-header__subscribe {
  display: inline-block;
  background: #2a88d9;
  color: var(--color-white) !important;
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none !important;
}

.site-header__subscribe:hover {
  background: #1f6fb8;
  color: var(--color-white) !important;
}

/* Mobile-only: wordmark in the toolbar (logo without the "Independent. Always." tagline) */
.site-header__toolbar-brand {
  display: none;
  line-height: 0;
  justify-self: center;
  overflow: hidden;
  width: 240px;
  /* Container height crops the bottom of the PNG, hiding the tagline strip */
  height: 32px;
}

.site-header__toolbar-brand-img {
  display: block;
  width: 100%;
  height: auto;
}

body[data-masthead="age"] .site-header__toolbar-brand {
  width: 200px;
  height: 36px;
}

/* AFR's mobile wordmark has no tagline, so don't crop it — preserve full
   424x60 aspect ratio and let the image fit naturally */
body[data-masthead="afr"] .site-header__toolbar-brand {
  width: clamp(200px, 55vw, 260px);
  height: auto;
  overflow: visible;
  aspect-ratio: 424 / 60;
}


/* Toolbar: menu + section links + search — sits on the same navy bar */
.site-header__toolbar {
  background: var(--color-smh-navy);
}

.site-header__toolbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
  min-height: 3rem;
  padding-block: var(--space-sm);
}

.site-header__tools {
  display: flex;
  gap: var(--space-sm);
  justify-self: start;
}

.site-header__icon-btn {
  background: none;
  border: none;
  color: var(--color-white);
  padding: var(--space-sm);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.site-header__icon-btn svg {
  display: block;
}

.site-header__nav {
  justify-self: center;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
}

.site-header__nav-list {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  min-width: min-content;
}

.site-header__nav-list a {
  color: var(--color-white);
  font-family: "PT Sans", var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}

.site-header__nav-list a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* --- AFR (light) theme overrides ---------------------------------------
   Mirrors afr.com:
   - top strip: white with light grey divider, tiny sans nav links (left),
     Subscribe/Log in (right)
   - masthead bar: white, large centered FINANCIAL REVIEW wordmark in AFR blue
   - section nav: dark text on white, blue underline for the current section
----------------------------------------------------------------------- */
body[data-theme="light"] .site-header {
  background: #fff;
  border-bottom: 1px solid #d4d4d4;
}

/* AFR: give the masthead + toolbar a touch more horizontal room than the main article column */
body[data-masthead="afr"][data-theme="light"] .site-header .wrap {
  max-width: min(1320px, 100%);
}

/* The masthead bar hosts both the textured top strip AND the centered
   wordmark row. We paint the grain texture as a full-bleed band only at
   the very top, letting white fill the rest. */
/* Top strip is a fixed 40px band. The grain texture stretches full page
   width and fills that band exactly, so the overlaid HTML text can be
   vertically centered within it. */
body[data-theme="light"] .site-header__masthead-bar {
  --afr-strip-height: 40px;
  background: #fff url("../assets/afr-top-strip.png") left top / 100% var(--afr-strip-height) no-repeat;
  color: #111;
  padding-block: 0;
}

body[data-theme="light"] .site-header__masthead-grid {
  grid-template-columns: 1fr auto;
  grid-template-rows: var(--afr-strip-height) auto;
  grid-template-areas:
    "strip actions"
    "brand  brand";
  align-items: center;
  gap: 0 var(--space-xl);
  padding-block: 0;
}

body[data-theme="light"] .site-header__strip-lead {
  grid-area: strip;
  justify-self: start;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: 0;
}

/* Right side of the top strip: Subscribe sits to the left of Log in on the
   same top line. HTML order is (Log in, Subscribe); row-reverse flips the
   visual order so Subscribe renders first. */
body[data-theme="light"] .site-header__strip-actions {
  grid-area: actions;
  align-self: stretch;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: var(--space-lg);
  padding: 0;
}

body[data-theme="light"] .site-header__brand {
  grid-area: brand;
  padding-block: 1.25rem 0.75rem;
}

body[data-theme="light"] .site-header__date,
body[data-theme="light"] .site-header__strip-link {
  color: #111;
  font-size: 0.875rem;
  font-weight: 400;
}

body[data-theme="light"] .site-header__strip-link {
  border-right: 1px solid #d4d4d4;
  padding-right: var(--space-lg);
  letter-spacing: 0.02em;
}

body[data-theme="light"] .site-header__strip-link:last-child {
  border-right: none;
}

body[data-theme="light"] .site-header__link-strip {
  color: #111 !important;
  font-weight: 500;
  font-size: 0.875rem;
}

body[data-theme="light"] .site-header__link-strip:hover {
  color: #0f6cc9 !important;
  text-decoration: underline;
}

body[data-theme="light"] .site-header__subscribe {
  background: transparent;
  color: #0f6cc9 !important;
  padding: 0;
  text-transform: none;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
  border-radius: 0;
}

body[data-theme="light"] .site-header__subscribe:hover {
  background: transparent;
  color: #03345d !important;
  text-decoration: underline;
}

/* Section-nav row sits on white, with dark text + blue underline on hover */
body[data-theme="light"] .site-header__toolbar {
  background: #fff;
}

body[data-theme="light"] .site-header__toolbar-inner {
  min-height: auto;
  padding-block: 0;
}

body[data-masthead="afr"][data-theme="light"] .site-header__toolbar-inner {
  gap: var(--space-lg);
}

/* AFR: section nav — single line, no horizontal scrollbar; items drop into the
   hamburger progressively as the viewport narrows (see breakpoints below). */
body[data-masthead="afr"][data-theme="light"] .site-header__nav {
  overflow-x: visible;
  overflow-y: visible;
}

body[data-masthead="afr"][data-theme="light"] .site-header__nav-list {
  flex-wrap: nowrap;
  justify-content: center;
  gap: clamp(0.65rem, 0.85vw + 0.45rem, 1.65rem);
}

body[data-masthead="afr"][data-theme="light"] .site-header__nav-list a {
  padding-block: 0.6rem;
}

/* AFR: hide nav links from the right first (full list stays in the drawer) */
@media (max-width: 1280px) and (min-width: 900px) {
  body[data-masthead="afr"][data-theme="light"] .site-header__nav-list li:nth-child(n + 12) {
    display: none;
  }
}

@media (max-width: 1140px) and (min-width: 900px) {
  body[data-masthead="afr"][data-theme="light"] .site-header__nav-list li:nth-child(n + 11) {
    display: none;
  }
}

@media (max-width: 1040px) and (min-width: 900px) {
  body[data-masthead="afr"][data-theme="light"] .site-header__nav-list li:nth-child(n + 10) {
    display: none;
  }
}

@media (max-width: 960px) and (min-width: 900px) {
  body[data-masthead="afr"][data-theme="light"] .site-header__nav-list li:nth-child(n + 9) {
    display: none;
  }
}

@media (max-width: 920px) and (min-width: 900px) {
  body[data-masthead="afr"][data-theme="light"] .site-header__nav-list li:nth-child(n + 8) {
    display: none;
  }
}

body[data-theme="light"] .site-header__icon-btn {
  color: #111;
}

body[data-theme="light"] .site-header__icon-btn:hover {
  color: #0f6cc9;
  background: transparent;
}

body[data-theme="light"] .site-header__nav-list {
  gap: var(--space-xl);
}

body[data-theme="light"] .site-header__nav-list a {
  color: #111;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.9rem 0;
  position: relative;
}

body[data-theme="light"] .site-header__nav-list a:hover {
  color: #0f6cc9;
  text-decoration: none;
}

body[data-theme="light"] .site-header__nav-list a[aria-current="page"] {
  color: #111;
  font-weight: 700;
}

body[data-theme="light"] .site-header__nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: #0f6cc9;
}

/* Profile icon (mobile AFR only) — sits in the right column of the toolbar
   grid, where the main nav usually lives. Hidden by default. */
.site-header__icon-btn--profile {
  display: none;
  grid-column: 3;
  justify-self: end;
}

/* Tablet & mobile (≤899px) — AFR collapses earlier than SMH/Age (more nav items):
   Row 1 (top strip): "Today's Paper" left | "Subscribe" right
   Row 2 (toolbar): hamburger left | FINANCIAL REVIEW center | profile icon right */
@media (max-width: 899px) {
  /* Drop the centered wordmark from the masthead bar; it moves into the
     toolbar below alongside the hamburger and profile icon */
  body[data-theme="light"] .site-header__brand {
    display: none;
  }
  body[data-theme="light"] .site-header__masthead-grid {
    grid-template-rows: var(--afr-strip-height);
    grid-template-areas: "strip actions";
  }
  /* Keep only the first strip link ("Today's Paper"); hide the rest */
  body[data-theme="light"] .site-header__strip-link:not(:first-child) {
    display: none;
  }
  /* "Log in" disappears — only Subscribe stays on the right of the strip */
  body[data-theme="light"] .site-header__link-strip {
    display: none;
  }
  /* Main nav collapses into the hamburger drawer on mobile for AFR */
  body[data-theme="light"] .site-header__nav {
    display: none;
  }
  /* Search icon swaps out for a profile icon on the right of the toolbar */
  body[data-theme="light"] .site-header__icon-btn--search {
    display: none;
  }
  body[data-theme="light"] .site-header__icon-btn--profile {
    display: inline-flex;
  }
}

/* --- Atlas hero --- */
.atlas-hero {
  padding-block: var(--section-pad-y);
  padding-inline: 0;
  text-align: center;
  border-bottom: 1px solid var(--color-grey-border);
}

.atlas-hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--stack-gap);
}

.atlas-hero__logo-img {
  width: min(520px, 92vw);
  height: auto;
  display: block;
  object-fit: contain;
}

.atlas-hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #000;
  max-width: 36rem;
  margin: 0;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2em;
}

.atlas-hero__tagline-line {
  display: block;
}

.atlas-hero__tagline-line--sub {
  font-size: 0.94em;
  color: #1a1a1a;
  letter-spacing: 0.01em;
}

.atlas-hero__brand-name {
  font-weight: 700;
}

/* --- Ticker (financial strip + sparklines) --- */
.market-ticker {
  --ticker-spark-pos: #0d8a4a;
  --ticker-spark-neg: #c62828;
  --ticker-spark-pos-soft: rgba(13, 138, 74, 0.22);
  --ticker-spark-neg-soft: rgba(198, 40, 40, 0.2);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-grey-border);
  overflow: hidden;
}

.market-ticker__inner {
  display: flex;
  align-items: stretch;
  gap: var(--space-lg);
  padding-block: var(--space-md);
  min-height: 4.75rem;
}

.market-ticker__region {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  align-self: center;
  padding: 0.35rem 0.6rem 0.35rem 0.25rem;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.market-ticker__region:hover {
  background: var(--color-grey-bg);
}

.market-ticker__region:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

.market-ticker__region-pin {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 32% 32%, #fff 0%, #fff 22%, var(--color-positive) 23%, var(--color-positive) 100%);
  box-shadow: 0 0 0 2px rgba(13, 138, 74, 0.22);
}

.market-ticker__region-label {
  white-space: nowrap;
}

.market-ticker__region-chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  margin-left: 2px;
}

.market-ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-block: 2px;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 0.75rem,
    #000 calc(100% - 0.75rem),
    transparent
  );
}

.market-ticker__marquee {
  display: flex;
  width: max-content;
  animation: market-ticker-scroll 55s linear infinite;
  will-change: transform;
}

.market-ticker__viewport:hover .market-ticker__marquee {
  animation-play-state: paused;
}

.market-ticker__sequence {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  gap: var(--space-xl);
  padding-inline-end: var(--space-xl);
}

@keyframes market-ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .market-ticker__marquee {
    animation: none;
  }

  .market-ticker__marquee .market-ticker__sequence:nth-child(2) {
    display: none;
  }

  .market-ticker__viewport {
    mask-image: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
}

.market-ticker__card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 13.5rem;
  max-width: 19rem;
  font-family: var(--font-sans);
}

.market-ticker__card-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.market-ticker__name {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-link);
  line-height: 1.2;
}

.market-ticker__price {
  font-size: 1.0625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
  line-height: 1.2;
}

.market-ticker__delta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.market-ticker__delta-abs,
.market-ticker__delta-pct {
  white-space: nowrap;
}

.market-ticker__spark-wrap {
  flex-shrink: 0;
  width: 84px;
  height: 28px;
  align-self: center;
}

.market-ticker__spark-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.market-ticker__spark-base {
  stroke: rgba(0, 0, 0, 0.18);
  stroke-width: 0.9;
  stroke-dasharray: 2 3;
  vector-effect: non-scaling-stroke;
}

.market-ticker__spark-area.market-ticker__spark-fg--up {
  fill: var(--ticker-spark-pos-soft);
}

.market-ticker__spark-area.market-ticker__spark-fg--down {
  fill: var(--ticker-spark-neg-soft);
}

.market-ticker__spark-line {
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}

.market-ticker__spark-line.market-ticker__spark-fg--up {
  stroke: var(--ticker-spark-pos);
}

.market-ticker__spark-line.market-ticker__spark-fg--down {
  stroke: var(--ticker-spark-neg);
}

.market-ticker__spark-dot.market-ticker__spark-fg--up {
  fill: var(--ticker-spark-pos);
}

.market-ticker__spark-dot.market-ticker__spark-fg--down {
  fill: var(--ticker-spark-neg);
}

.market-ticker__all {
  flex-shrink: 0;
  align-self: center;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--color-link);
}

@media (max-width: 640px) {
  .market-ticker__inner {
    flex-wrap: wrap;
    row-gap: var(--space-sm);
  }

  .market-ticker__viewport {
    flex: 1 1 100%;
    mask-image: none;
  }
}

/* --- Video + rail --- */
.section-news {
  padding-block: var(--section-pad-y);
}

.section-news__title,
.section-stock__title,
.section-suburbs__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 var(--stack-gap);
}

.section-news__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--grid-gap);
  align-items: start;
}

.section-news__aside {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
  min-width: 0;
}

.section-news__mrec {
  align-self: flex-end;
  width: fit-content;
  max-width: 100%;
}

.section-news__mrec-link {
  display: block;
  line-height: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.section-news__mrec-link:hover {
  opacity: 0.96;
}

.section-news__mrec-link:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 3px;
}

.section-news__mrec img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .section-news__grid {
    grid-template-columns: 1fr;
  }

  .section-news__mrec {
    align-self: center;
  }
}

.video-feature {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-feature video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-feature__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.video-feature:hover .video-feature__play,
.video-feature:focus-within .video-feature__play {
  opacity: 1;
}

.video-feature__play-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
}

.video-feature-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.video-playlist {
  display: flex;
  flex-direction: column;
}

.video-playlist__band {
  border-top: 1px solid var(--color-grey-border);
  border-bottom: 1px solid var(--color-grey-border);
  padding-block: var(--space-md);
}

.video-playlist__row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.video-playlist__arrow {
  flex-shrink: 0;
  width: 1.75rem;
  height: 3.25rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #b4b9c2;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-playlist__arrow:hover {
  color: var(--color-text);
  background: var(--color-grey-bg);
}

.video-playlist__arrow--next {
  color: #7a818c;
}

.video-playlist__arrow:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

.video-playlist__chev {
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;
}

.video-playlist__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.video-playlist__list {
  list-style: none;
  margin: 0;
  padding: 0 2px;
  display: flex;
  gap: var(--space-xl);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.video-playlist__li {
  flex: 0 0 auto;
  max-width: min(22rem, 78vw);
}

.video-playlist__card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  text-decoration: none;
  color: inherit;
}

.video-playlist__card:hover .video-playlist__title {
  color: var(--color-link-hover);
}

.video-playlist__thumb-wrap {
  position: relative;
  flex-shrink: 0;
  width: 10.5rem;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  overflow: hidden;
  background: #111;
}

.video-playlist__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-playlist__badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem 0.2rem 0.35rem;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 2px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.video-playlist__cam {
  display: block;
  flex-shrink: 0;
  opacity: 0.95;
}

.video-playlist__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.35;
  text-align: left;
}

.video-playlist__footer {
  padding-top: var(--space-sm);
}

.video-playlist__share {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #b4b9c2;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.video-playlist__share:hover {
  color: var(--color-text-muted);
  background: var(--color-grey-bg);
}

.video-playlist__share:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

.article-rail {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-card {
  display: grid;
  grid-template-columns: 1fr 5.5rem;
  gap: var(--stack-gap);
  padding-block: var(--stack-gap);
  border-bottom: 1px solid var(--color-grey-border);
}

.article-card:first-child {
  padding-top: 0;
}

.article-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-card__headline {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin: 0 0 var(--space-xs);
  line-height: 1.35;
}

.article-card__headline a {
  color: var(--color-text);
}

.article-card__headline a:hover {
  color: var(--color-link);
}

.article-card__byline {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
}

.article-card__thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  object-fit: cover;
}

/* --- Stock market --- */
.section-stock {
  background: var(--color-grey-bg);
  padding-block: var(--section-pad-y);
}

.section-stock__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--stack-gap);
  margin-bottom: var(--space-md);
}

.section-stock .tablist {
  margin-bottom: var(--space-md);
}

/* --- Stock body: main + Fear & Greed sidebar --- */

.section-stock__body {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: var(--grid-gap);
  align-items: start;
  margin-top: 0;
}

.section-stock__main {
  min-width: 0;
}

@media (max-width: 900px) {
  .section-stock__body {
    grid-template-columns: 1fr;
  }
}

/* Fear & Greed — compact sidebar card */
.fear-greed {
  padding: var(--space-md);
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.fear-greed__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.fear-greed__toggle.toggle-pair {
  margin-bottom: var(--space-md);
  justify-content: center;
}

.fear-greed__toggle .toggle-pair__btn {
  font-size: 0.6875rem;
  padding: 0.25rem 0.6rem;
}

.fear-greed__toggle .toggle-pair__btn[aria-selected="true"] {
  background: var(--color-navy);
  color: var(--color-white);
}

.fear-greed__toggle .toggle-pair__btn[aria-selected="false"] {
  background: var(--color-white);
  color: var(--color-text-muted);
}

.fear-greed__dial-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fear-greed__dial-frame {
  width: 100%;
  max-width: 180px;
  filter: drop-shadow(0 2px 4px rgba(10, 22, 51, 0.06));
}

.fear-greed__dial {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.fear-greed__seg {
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 0.85;
  stroke-linejoin: round;
}

.fear-greed__needle-root {
  transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.fear-greed__needle {
  stroke: var(--color-white);
  stroke-width: 3.25;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 1px rgba(10, 22, 51, 0.35));
}

.fear-greed__needle-head {
  fill: var(--color-white);
  stroke: rgba(10, 22, 51, 0.12);
  stroke-width: 0.5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 1px rgba(10, 22, 51, 0.25));
}

.fear-greed__hub {
  fill: var(--color-negative);
  stroke: var(--color-white);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.fear-greed__dial-captions {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 160px;
  margin-top: -2px;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.fear-greed__readout {
  margin-top: var(--space-sm);
}

.fear-greed__value {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--color-text);
}

.fear-greed__mood {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
}

.fear-greed__mood--fear {
  color: var(--color-negative);
}

.fear-greed__mood--neutral {
  color: var(--color-text-muted);
}

.fear-greed__mood--greed {
  color: var(--color-positive);
}

.fear-greed__updated {
  margin: var(--space-sm) 0 0;
  font-size: 0.625rem;
  color: var(--color-text-muted);
}

.fear-greed__prev {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-grey-border);
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.fear-greed__prev-val {
  font-weight: 700;
  color: var(--color-text);
}

.fear-greed__source {
  margin: var(--space-sm) 0 0;
  font-size: 0.5625rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

@media (max-width: 700px) {
  .index-grid {
    grid-template-columns: 1fr;
  }
}

.index-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.index-card__name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 var(--space-sm);
}

.index-card__value {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 0 0 var(--space-xs);
}

.index-card__meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* --- Stock enrichment blocks (Australia tab only) --- */

.stock-breadth {
  margin-top: var(--space-lg);
}

.stock-breadth__bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--color-grey-border);
}

.stock-breadth__seg {
  height: 100%;
  transition: width 0.25s ease;
}

.stock-breadth__seg--up {
  background: var(--color-positive);
}

.stock-breadth__seg--unch {
  background: var(--color-grey-border);
}

.stock-breadth__seg--down {
  background: var(--color-negative);
}

.stock-breadth__labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xs);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.stock-sectors {
  margin-top: var(--space-lg);
}

.stock-sectors__title {
  margin: 0 0 var(--space-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
}

.stock-sectors__strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.stock-sectors__pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--color-white);
  border: 1px solid var(--color-grey-border);
  border-radius: 999px;
  white-space: nowrap;
}

.stock-sectors__pill-code {
  font-weight: 700;
  color: var(--color-text);
}

.stock-sectors__pill-pct {
  font-variant-numeric: tabular-nums;
}

.stock-commodities {
  margin-top: var(--space-lg);
}

.stock-commodities__title {
  margin: 0 0 var(--space-sm);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
}

.stock-commodities__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

@media (max-width: 700px) {
  .stock-commodities__grid {
    grid-template-columns: 1fr;
  }
}

.commodity-card {
  background: var(--color-white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.commodity-card__name {
  margin: 0 0 var(--space-xs);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.commodity-card__value {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.commodity-card__unit {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: 0.25rem;
}

.stock-movers {
  margin-top: var(--space-lg);
}

.stock-movers__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

@media (max-width: 640px) {
  .stock-movers__grid {
    grid-template-columns: 1fr;
  }
}

.stock-movers__col-title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
}

.stock-movers__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stock-movers__row {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: 0.5rem 0.65rem;
  background: var(--color-white);
  border: 1px solid var(--color-grey-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.stock-movers__code {
  font-weight: 700;
  min-width: 3rem;
}

.stock-movers__name {
  flex: 1;
  color: var(--color-text-muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-movers__price {
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.stock-movers__pct {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 4rem;
  text-align: right;
}

/* --- Dedicated FX section --- */

.section-fx {
  background: var(--color-white);
  padding-block: var(--section-pad-y);
}

.section-fx__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 var(--stack-gap);
}

.fx-hero__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem);
  gap: var(--space-xl);
  align-items: center;
  background: var(--color-off-white);
  border: 1px solid var(--color-grey-border);
  border-left: 4px solid var(--color-navy);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (max-width: 700px) {
  .fx-hero__card {
    grid-template-columns: 1fr;
  }
}

.fx-hero__pair {
  margin: 0 0 var(--space-xs);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.fx-hero__rate {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.fx-hero__meta {
  margin: var(--space-xs) 0 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.fx-hero__spark {
  height: 56px;
}

.fx-hero__spark canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.fx-pairs__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

@media (max-width: 900px) {
  .fx-pairs__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .fx-pairs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fx-pair-card {
  background: var(--color-off-white);
  border: 1px solid var(--color-grey-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
}

.fx-pair-card__pair {
  margin: 0 0 var(--space-xs);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.fx-pair-card__rate {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fx-pair-card__change {
  margin: var(--space-xs) 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fx-strength {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  font-style: italic;
}

.fx-disclaimer {
  margin: var(--space-sm) 0 0;
  font-size: 0.6875rem;
  color: var(--color-text-muted);
}

.section-stock__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--stack-gap);
  margin-top: var(--grid-gap);
  padding-top: var(--stack-gap);
  border-top: 1px solid var(--color-grey-border);
}

.section-stock__disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0;
}

.section-stock__logos {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* --- RBA --- */
.section-rba {
  background: var(--color-rba-bg);
  color: var(--color-white);
  padding-block: var(--section-pad-y);
}

.section-rba__head {
  margin-bottom: var(--stack-gap);
}

.section-rba__title {
  color: var(--color-white);
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Outlook-style Zentiment vs RBA (above cash rate KPIs) */
.zentiment-outlook {
  background: #ffffff;
  color: #1a1a1a;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: var(--grid-gap);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.zentiment-outlook__title {
  margin: 0 0 var(--space-md);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
}

.zentiment-outlook__chart-wrap {
  min-height: 320px;
  max-width: 100%;
  min-width: 0;
}

.zentiment-outlook__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.zentiment-outlook__inner {
  position: relative;
  height: 360px;
  min-width: 0;
}

.zentiment-outlook__inner > canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.zentiment-outlook__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.8125rem;
  color: #374151;
}

.zentiment-outlook__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.zentiment-outlook__legend-line {
  width: 1.5rem;
  height: 3px;
  border-radius: 2px;
}

.zentiment-outlook__legend-line--zentiment {
  background: linear-gradient(90deg, #5ab3ff, #7ec8ff);
  box-shadow: 0 0 6px rgba(90, 179, 255, 0.65);
}

.zentiment-outlook__legend-line--rba {
  background: #4b5563;
  height: 4px;
  border-radius: 1px;
}

.zentiment-outlook__callouts:empty {
  display: none;
}

/* Pulsing annotation dots on chart */
.zchart-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dot-color, #1976d2);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 3;
  padding: 0;
}

.zchart-dot::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--dot-color, #1976d2);
  opacity: 0;
  animation: zchart-pulse 2s ease-out infinite;
}

.zchart-dot--active::before {
  animation: none;
  opacity: 0;
}

@keyframes zchart-pulse {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

.zchart-tooltip {
  position: absolute;
  z-index: 5;
  background: #1a1a1a;
  color: #f3f4f6;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.45;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  pointer-events: none;
  max-width: 280px;
}

.rba-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--grid-gap);
}

@media (max-width: 900px) {
  .rba-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .rba-kpis {
    grid-template-columns: 1fr;
  }
}

.rba-kpi {
  background: var(--color-rba-panel);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rba-kpi__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
  margin: 0 0 var(--space-sm);
}

.rba-kpi__value {
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 0 0 var(--space-xs);
}

.rba-kpi__sub {
  font-size: 0.8125rem;
  opacity: 0.65;
  margin: 0;
}

.rba-chart-wrap {
  background: var(--color-rba-panel);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 100%;
  min-width: 0;
}

.rba-chart__title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 var(--space-md);
  color: var(--color-white);
}

.rba-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--stack-gap);
  margin-bottom: var(--space-md);
  font-size: 0.8125rem;
}

.rba-chart__year-range {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rba-year-range__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.rba-year-range__intro {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.72;
}

.rba-year-range__summary {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-white);
}

.rba-year-range__dual {
  margin-top: var(--space-xs);
}

.rba-year-range__hint {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 var(--space-sm);
}

.rba-year-range__hint strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-white);
}

.rba-year-range__hint-sep {
  opacity: 0.45;
}

.rba-year-range__dual-track-wrap {
  position: relative;
  height: 40px;
  margin-bottom: var(--space-xs);
  touch-action: none;
}

.rba-year-range__dual-track {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.rba-year-range__dual-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

.rba-year-range__thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
  cursor: grab;
  z-index: 2;
}

.rba-year-range__thumb:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.rba-year-range__thumb:active {
  cursor: grabbing;
  z-index: 4;
}

.rba-year-range__thumb:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}

.rba-year-range__ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.5);
  padding-inline: 4px;
}

.rba-chart__legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.rba-chart__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.rba-chart__canvas {
  min-height: 320px;
  max-width: 100%;
  min-width: 0;
}

.rba-chart__hint {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
  opacity: 0.85;
}

.rba-chart__scroll {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: var(--space-xs);
}

.rba-chart__inner {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 300px;
  display: block;
}

.rba-chart__inner > canvas {
  display: block;
}

/* --- Suburbs --- */
.section-suburbs {
  padding-block: var(--section-pad-y);
}

.section-suburbs__source {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  margin: calc(-1 * var(--space-sm)) 0 var(--stack-gap);
  max-width: 44rem;
}

.suburb-movers {
  margin-bottom: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-off-white);
  border: 1px solid var(--color-grey-border);
  border-radius: var(--radius-md);
}

.suburb-movers__intro {
  margin: 0 0 var(--space-md);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  max-width: 40rem;
}

.suburb-movers__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

@media (max-width: 640px) {
  .suburb-movers__grid {
    grid-template-columns: 1fr;
  }
}

.suburb-movers__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
}

.suburb-movers__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.suburb-movers__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.65rem;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--color-white);
  border: 1px solid var(--color-grey-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.suburb-movers__row:hover {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-card);
}

.suburb-movers__row:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}

.suburb-movers__place {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.suburb-movers__pct {
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.suburb-movers__empty {
  margin: 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  background: var(--color-white);
  border: 1px dashed var(--color-grey-border);
  border-radius: var(--radius-sm);
}

.suburb-movers__hint {
  margin: var(--space-md) 0 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.section-suburbs__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--grid-gap);
}

.section-suburbs__show-all {
  font-size: 0.875rem;
  font-weight: 600;
  margin-left: auto;
}

.section-suburbs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 21.25rem);
  gap: var(--grid-gap);
  align-items: stretch;
}

@media (max-width: 900px) {
  .section-suburbs__grid {
    grid-template-columns: 1fr;
  }
}

.suburb-map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-grey-border);
}

.suburb-map {
  height: 420px;
  z-index: 1;
}

.suburb-map-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-off-white);
  border-top: 1px solid var(--color-grey-border);
}

.suburb-map-tools button {
  font-size: 0.8125rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-grey-border);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
}

.suburb-map-tools button[aria-pressed="true"] {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.suburb-map .leaflet-marker-icon {
  cursor: pointer;
}

.leaflet-tooltip.suburb-map-tooltip {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}

.suburb-detail {
  background: var(--color-white);
  border: 1px solid var(--color-grey-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.suburb-detail__toggle {
  margin-bottom: var(--stack-gap);
}

.suburb-detail__kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 0 0 0.35rem;
}

.suburb-detail__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.suburb-detail__dwelling {
  margin: 0 0 var(--stack-gap);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.suburb-detail__stats {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
  margin-top: auto;
}

.suburb-stat-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.suburb-stat__label {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text-muted);
  margin: 0;
  order: 2;
}

.suburb-stat__value {
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 0;
  line-height: 1.15;
  order: 1;
}

/* --- Site footer (SMH-style multi-column) --- */
.site-footer {
  background: var(--color-smh-navy);
  color: rgba(255, 255, 255, 0.82);
  padding-block: var(--space-2xl) var(--space-xl);
  font-family: var(--font-sans);
}

.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__brand {
  display: block;
  line-height: 0;
}

.site-footer__brand-img {
  display: block;
  height: auto;
  width: clamp(200px, 26vw, 280px);
}

.site-footer__brand-text {
  display: none;
}

body[data-masthead="age"] .site-footer__brand-img {
  width: min(220px, 60vw);
  aspect-ratio: 2312 / 564;
}

/* AFR footer mark — the masthead PNG is blue on transparent, so we keep it
   on the dark footer but reserve space for its native aspect ratio */
body[data-masthead="afr"] .site-footer__brand-img {
  width: min(240px, 55vw);
  aspect-ratio: 424 / 60;
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-footer__social-link {
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 120ms ease;
}

.site-footer__social-link:hover {
  color: var(--color-white);
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  padding-block: var(--space-lg);
}

.site-footer__heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0 0 var(--space-md);
}

.site-footer__col .site-footer__heading + .site-footer__heading,
.site-footer__list + .site-footer__heading {
  margin-top: var(--space-md);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-footer__list--lead {
  margin-bottom: var(--space-sm);
}

.site-footer__link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.site-footer__link:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.site-footer__link[data-masthead-switch][aria-current="true"] {
  color: var(--color-white);
  font-weight: 700;
}

.site-footer__text {
  margin: var(--space-lg) 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 900px) {
  .site-footer__columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-block: var(--space-xl) var(--space-lg);
  }

  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  /* On mobile, the footer columns collapse into the hamburger drawer */
  .site-footer__columns {
    display: none;
  }

  .site-footer__text {
    margin-top: var(--space-md);
  }

  /* Main header nav also collapses into the drawer on mobile */
  .site-header__nav {
    display: none;
  }

  /* Top bar: date on the left, strip actions on the right — no centered logo */
  .site-header__masthead-grid {
    grid-template-columns: auto 1fr auto;
    row-gap: var(--space-sm);
  }

  .site-header__date {
    font-size: 0.6875rem;
  }

  /* Hide the masthead-bar brand — the logo moves to the toolbar below */
  .site-header__brand {
    display: none;
  }

  /* On mobile, the wordmark-only logo drops into the toolbar (center column) */
  .site-header__toolbar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-header__toolbar-inner {
    gap: var(--space-sm);
  }

  .site-header__toolbar-brand {
    display: block;
    justify-self: center;
  }

  /* Hide the search icon on mobile — search lives in the hamburger drawer */
  .site-header__icon-btn--search {
    display: none;
  }

  /* Strip actions sit on one row on mobile: Subscribe (left) | Log in (right) */
  .site-header__strip-actions {
    flex-direction: row-reverse;
    align-items: center;
    gap: var(--space-md);
  }
}

/* --- Prototype: hamburger stays visible; slide-out drawer + interaction disabled --- */
#mobile-drawer {
  display: none !important;
}

.site-header__icon-btn--menu {
  pointer-events: none;
  cursor: default;
}

/* --- Mobile drawer (hamburger menu) — kept for reference; overridden above --- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  visibility: hidden;
  pointer-events: none;
}

.mobile-drawer[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 25, 0.55);
  opacity: 0;
  transition: opacity 220ms ease;
}

.mobile-drawer[aria-hidden="false"] .mobile-drawer__backdrop {
  opacity: 1;
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: min(88vw, 380px);
  background: var(--color-smh-navy);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 260ms ease;
  box-shadow: 8px 0 28px rgba(0, 0, 0, 0.35);
  outline: none;
}

.mobile-drawer[aria-hidden="false"] .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-drawer__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.mobile-drawer__close {
  background: none;
  border: none;
  color: var(--color-white);
  padding: var(--space-sm);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-drawer__section {
  display: flex;
  flex-direction: column;
}

.mobile-drawer__heading {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 var(--space-sm);
}

.mobile-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-drawer__link {
  display: block;
  color: var(--color-white);
  text-decoration: none;
  padding: 0.55rem 0;
  font-size: 0.9375rem;
  line-height: 1.3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-drawer__list > li:last-child .mobile-drawer__link {
  border-bottom: none;
}

.mobile-drawer__link:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-drawer__link[aria-current="true"] {
  font-weight: 700;
}

/* Lock body scroll when drawer is open */
body.drawer-open {
  overflow: hidden;
}

/* =================================================================
   ANZ chrome — alternate header (anz.com.au-style)
   Activated when body[data-chrome="anz"]. Hides .site-header and
   reveals #anz-header (rendered immediately after .site-header).
   ================================================================= */

/* ANZ palette (scoped to the alt chrome) */
.anz-header {
  --anz-blue-deep: #004165;
  --anz-blue-mid: #006a9c;
  --anz-blue-bright: #00aae5;
  --anz-blue-link: #0072c2;
  --anz-text: #1d1d1d;
  --anz-text-muted: #555;

  /* Brand stack from global tokens (--font-anz-chrome) */
  --anz-font: var(--font-anz-chrome);

  font-family: var(--anz-font);
  font-weight: 400;
  color: var(--anz-text);
  background: transparent;
}

.anz-header a,
.anz-header button,
.anz-header input {
  font-family: var(--anz-font);
}

body[data-chrome="anz"] .site-header {
  display: none !important;
}

body[data-chrome="anz"] #anz-header[hidden] {
  display: block;
}

body[data-chrome="anz"] #anz-header {
  display: block;
}

/* Hide news rail whenever ANZ header is active (hidden attr removed), not only via body[data-chrome] — survives stale body attrs / cache. */
body[data-chrome="anz"] #article-rail,
body.chrome-anz #article-rail,
#anz-header:not([hidden]) ~ main #article-rail {
  display: none !important;
}

body[data-chrome="anz"] .section-news .article-card,
body.chrome-anz .section-news .article-card,
#anz-header:not([hidden]) ~ main .section-news .article-card {
  display: none !important;
}

body[data-chrome="anz"] .site-footer,
body.chrome-anz .site-footer,
#anz-header:not([hidden]) ~ footer.site-footer {
  display: none !important;
}

/* Primary navy bar — logo + main nav + search + log in */
.anz-header__primary {
  color: var(--color-white);
}

.anz-header__primary-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1.25rem;
  row-gap: 0.75rem;
  padding-block: 0.75rem;
  min-height: 64px;
  background: var(--anz-blue-deep);
}

.anz-header__primary-start {
  display: flex;
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 0.5rem;
  flex: 0 1 auto;
  min-width: 0;
}

/* Decorative only — no menu behaviour (matches ANZ mobile chrome reference) */
.anz-header__menu-decorative {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  color: var(--color-white);
  pointer-events: none;
  user-select: none;
}

.anz-header__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.anz-header__logo {
  display: block;
  height: 42px;
  width: auto;
}

.anz-header__primary-nav {
  flex-shrink: 0;
}

.anz-header__primary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.anz-header__primary-link {
  color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  padding: 0.5rem 0;
  display: inline-block;
  position: relative;
}

.anz-header__primary-link[aria-current="page"] {
  font-weight: 600;
}

.anz-header__primary-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  background: var(--anz-blue-bright);
}

.anz-header__primary-link:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* Search + log in: right column; parent uses space-between (primary-start | tools) */
.anz-header__primary-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  justify-content: flex-end;
}

/* Search */
.anz-header__search {
  box-sizing: border-box;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  background: var(--color-white);
  border-radius: 2px;
  overflow: hidden;
  width: 30rem;
  max-width: min(30rem, 100%);
  min-width: 12.5rem;
}

.anz-header__search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--anz-text);
  background: transparent;
}

.anz-header__search-btn {
  background: var(--anz-blue-bright);
  border: none;
  color: var(--color-white);
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.anz-header__search-btn:hover {
  background: var(--anz-blue-mid);
}

/* Log in split-button — same fill + hover as .anz-header__search-btn */
.anz-header__login {
  display: inline-flex;
  align-items: stretch;
  border: none;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.anz-header__login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  background: var(--anz-blue-bright);
}

.anz-header__login-btn:hover {
  background: var(--anz-blue-mid);
  color: var(--color-white);
  text-decoration: none;
}

.anz-header__login-toggle {
  background: var(--anz-blue-bright);
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-white);
  padding: 0 0.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.anz-header__login-toggle:hover {
  background: var(--anz-blue-mid);
}

/* Secondary blue band — section nav */
.anz-header__secondary {
  color: var(--color-white);
}

.anz-header__secondary-inner {
  background: var(--anz-blue-mid);
  padding-block: 0;
}

.anz-header__secondary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.anz-header__secondary-link {
  display: inline-block;
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
  padding: 0.7rem 0.9rem;
  border-bottom: 3px solid transparent;
}

.anz-header__secondary-list > li:first-child .anz-header__secondary-link {
  padding-left: 0;
}

.anz-header__secondary-link[aria-current="page"] {
  font-weight: 600;
  border-bottom-color: var(--color-white);
}

.anz-header__secondary-link:hover {
  color: var(--color-white);
  text-decoration: underline;
}

/* Breadcrumb / utility row */
.anz-header__breadcrumb {
  background: transparent;
}

.anz-header__breadcrumb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: 0.75rem;
  flex-wrap: wrap;
  background: var(--color-white);
  border-bottom: 1px solid #e6e6e6;
}

.anz-header__crumbs {
  font-size: 0.875rem;
  color: var(--anz-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.anz-header__crumb-link {
  color: var(--anz-blue-link);
  font-weight: 400;
  text-decoration: none;
}

.anz-header__crumb-link:hover {
  text-decoration: underline;
}

.anz-header__crumb-sep {
  color: var(--anz-text-muted);
}

.anz-header__crumb-current {
  color: var(--anz-text);
}

.anz-header__support {
  display: inline-flex;
  gap: 1.25rem;
}

.anz-header__support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--anz-blue-link);
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: none;
}

.anz-header__support-link:hover {
  text-decoration: underline;
}

/* -----------------------------------------------------------------
   ANZ header — tablet + mobile: no secondary strip, decorative menu,
   single-row primary (aligned with ~desktop breakpoint for --max-content)
   ----------------------------------------------------------------- */
@media (max-width: 1199px) {
  .anz-header__menu-decorative {
    display: inline-flex;
  }

  .anz-header__primary-nav {
    display: none;
  }

  .anz-header__secondary {
    display: none;
  }

  .anz-header__primary-inner {
    flex-wrap: nowrap;
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0;
    padding-block: 0.5rem;
    min-height: 56px;
  }

  .anz-header__primary-start {
    column-gap: 0.65rem;
    flex: 0 0 auto;
  }

  .anz-header__logo {
    height: 36px;
  }

  .anz-header__primary-tools {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    max-width: none;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .anz-header__search {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .anz-header__login-btn {
    padding-inline: 0.65rem;
  }

  .anz-header__login-btn svg {
    display: none;
  }
}

@media (max-width: 720px) {
  .anz-header__breadcrumb-inner {
    gap: 0.5rem;
  }

  .anz-header__support {
    gap: 0.85rem;
  }
}
