/* AI2ASI Observatory — private synthetic front page (AO-VISUAL-REDESIGN-001).
   Dark ink and teal with one restrained amber accent. No fonts, images or URLs are
   loaded from here (the private alias serves this file under img-src 'none'). */
:root {
  --ink: #0a1a22;
  --ink-2: #10303b;
  --teal: #0e7c86;
  --teal-2: #2dd4bf;
  --teal-dark: #0b5d66;
  --amber: #f2a900;
  --paper: #f1f5f5;
  --card: #ffffff;
  --text: #0e1f27;
  --muted: #46606a;
  --line: #d3dfe1;
  --accent: #0e7c86;
  --accent-ink: #ffffff;
  --focus: #f2a900;
  --demo-bg: #fff1c2;
  --demo-text: #4a3500;
  --confirmed-bg: #e3f4e8;
  --confirmed-text: #155c2b;
  --claim-bg: #fff4e0;
  --claim-text: #7a4300;
  --caution-bg: #fde8e8;
  --caution-text: #8c1d1d;
  --neutral-bg: #eceff3;
  --neutral-text: #39434f;
  --field-line: #9db3b9;
  --ad-line: #8aa3a9;
  --chip-bg: #dff3f2;
  --radius: 10px;
  --maxw: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

/* Theme (AO-DARK-THEME-001). Everything above is the accepted light styling as literal values. A browser that cannot resolve
   light-dark() never sees the rules below, so it keeps that light styling. */
@supports (color: light-dark(#000000, #ffffff)) {
  :root {
    color-scheme: light dark;
    --teal-dark: light-dark(#0b5d66, #5fd6d0);
    --paper: light-dark(#f1f5f5, #081015);
    --card: light-dark(#ffffff, #0f1f27);
    --text: light-dark(#0e1f27, #e6f0f2);
    --muted: light-dark(#46606a, #9fb8be);
    --line: light-dark(#d3dfe1, #26414b);
    --demo-bg: light-dark(#fff1c2, #3a2f0a);
    --demo-text: light-dark(#4a3500, #ffe9a8);
    --confirmed-bg: light-dark(#e3f4e8, #14301f);
    --confirmed-text: light-dark(#155c2b, #8fe0a8);
    --claim-bg: light-dark(#fff4e0, #3a2a10);
    --claim-text: light-dark(#7a4300, #f5c98a);
    --caution-bg: light-dark(#fde8e8, #3a1717);
    --caution-text: light-dark(#8c1d1d, #f5a8a8);
    --neutral-bg: light-dark(#eceff3, #1b2630);
    --neutral-text: light-dark(#39434f, #c3ccd6);
    --field-line: light-dark(#9db3b9, #4b6b75);
    --ad-line: light-dark(#8aa3a9, #4b6b75);
    --chip-bg: light-dark(#dff3f2, #12343a);
  }
}
/* Manual theme (AO-READER-LIFE-001): the footer button sets data-theme on the document element for this document only. Needs light-dark() like the rest of the
   theme; a browser without it keeps the accepted light styling and the button then does nothing visible, so the button stays hidden until its handler runs. */
@supports (color: light-dark(#000000, #ffffff)) {
  :root[data-theme="light"] { color-scheme: light; }
  :root[data-theme="dark"] { color-scheme: dark; }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Two-tone focus indicator: the amber outline reads on dark surfaces, and a dark inner band (it fills the 2px offset gap) reads
   on light ones, so the ring is visible on either. The amber outline is unchanged; --focus also stays the skip-link fill. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--text); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 10;
  background: var(--focus); color: var(--ink); padding: 8px 12px;
  border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* Demo labeling */
.demo-banner {
  background: var(--demo-bg); color: var(--demo-text);
  border-bottom: 2px solid #e0b400;
  padding: 6px 16px; text-align: center; font-size: 0.9rem;
}
.demo-banner strong { letter-spacing: 0.04em; margin-right: 6px; }
/* The homepage preview note is one quiet line, not a banner (AO-NAV-VISIBILITY-001, owner direction). */
.demo-banner.preview-note { background: transparent; color: var(--muted); border-bottom: 1px solid var(--line); padding: 4px 16px; font-size: 0.8rem; }

/* Masthead */
.site-header { background-color: var(--ink); background-image: linear-gradient(180deg, var(--ink), #0c232d); color: #fff; }
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap;
  padding-top: 16px; padding-bottom: 14px;
}
.brand { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 400; }
.brand-symbol { flex: none; display: block; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-word { font-family: var(--font); font-weight: 800; font-size: min(clamp(1.75rem, 3.6vw, 2.3rem), 12vw); letter-spacing: 0.04em; color: #fff; } /* the 12vw cap keeps the wordmark inside a 320px screen at 200% text size */
.brand-sub { margin-top: 6px; font-family: var(--font); font-weight: 700; font-size: min(0.72rem, 4vw); letter-spacing: 0.36em; text-transform: uppercase; color: var(--teal-2); }
.masthead-copy { text-align: right; max-width: 440px; }
/* Masthead center (AO-READER-LIFE-001, adviser proposal): a small non-ad discovery element in the otherwise empty middle of the header; shown from
   1001px only so tablet and phone folds are unchanged. Text links use the existing category fragments; the motif is decorative and static. */
.masthead-explore { display: none; }
@media (min-width: 1001px) {
  .masthead-explore { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
}
.explore-motif { display: block; max-width: 100%; height: auto; }
.explore-title { margin: 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-2); }
.explore-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; }
.masthead-explore .category-link { color: #d3eceb; font-size: 0.88rem; letter-spacing: 0.02em; text-transform: none; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.masthead-explore .category-link:hover { color: #fff; background: transparent; }
.tagline { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.08rem; color: #cdeae7; }
.subtitle { margin: 2px 0 0; font-size: 0.82rem; color: #93b5bb; }

.category-nav { background: var(--ink-2); border-top: 1px solid rgba(45, 212, 191, 0.28); }
/* Compact navigation (AO-NAV-VISIBILITY-001, owner design correction): one row of plain text links across the full shared content width,
   with a News categories disclosure that lists all 21 plan categories. No pills, borders or counts. Responsive tiers show more links as space
   allows; below 641px only the toggle is shown. The open menu is in the document flow. */
/* The navigation alone is wider than the content and centered, so its gutters are equal on both sides (owner amendment); the masthead and the
   content keep their own width. */
.wrap.nav-inner { max-width: 1400px; }
.category-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.primary-nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0 16px; }
.primary-nav li { margin: 0; }
.nav-link, .menu-link {
  display: inline-block; font-size: 0.95rem; color: #d3eceb; text-decoration: none; padding: 9px 2px; min-height: 40px; box-sizing: border-box; line-height: 22px;
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .menu-link:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.45); }
.nav-link[aria-current="true"], .menu-link[aria-current="true"] { color: #fff; font-weight: 700; border-bottom-color: var(--amber); }
/* Responsive tiers hide the whole list item (a hidden link's empty item would still add a flex gap and crowd the row). */
.primary-nav li[data-tier="2"], .primary-nav li[data-tier="3"], .primary-nav li[data-tier="4"] { display: none; }
@media (min-width: 900px) { .primary-nav li[data-tier="2"] { display: list-item; } }
@media (min-width: 1280px) { .primary-nav li[data-tier="3"] { display: list-item; } }
@media (min-width: 1300px) { .primary-nav li[data-tier="4"] { display: list-item; } }
.menu-toggle {
  font: inherit; font-size: 0.95rem; color: #d3eceb; background: none; border: 0; padding: 9px 2px; min-height: 40px; cursor: pointer;
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin-left: auto; text-align: left; max-width: 100%;
}
.menu-toggle:hover { color: #fff; }
.menu-label::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-label::after { transform: translateY(1px) rotate(-135deg); }
.menu-active { color: #fff; font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.menu-active:not(:empty)::before { content: "\00b7"; margin-right: 8px; font-weight: 400; color: #93b5bb; }
/* From 641px the row is already full (primary links plus the toggle), so a long selected label would wrap the header to a second row. The label stays in
   the accessible name and the current item is shown by the primary link and the menu (aria-current); it is visually repeated only on a phone. */
@media (min-width: 641px) {
  .menu-active { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .menu-active:not(:empty)::before { content: none; }
}
.category-menu { padding: 4px 0 14px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); gap: 0 24px; }
@media (min-width: 641px) { .menu-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); } }
.menu-link { display: block; width: fit-content; max-width: 100%; }
@media (max-width: 640px) {
  .primary-nav { display: none; }
  .menu-toggle { width: 100%; flex: 1 1 auto; min-width: 0; margin-left: 0; justify-content: center; text-align: center; } /* contract 19: label and chevron centered as one group */
  .category-bar { flex-wrap: nowrap; gap: 8px; justify-content: flex-start; }
  /* Contract 17: on phones the one theme button sits in the masthead's upper-right corner, beside the logo (it is out of the navigation row). */
  .site-header { position: relative; }
  .wrap.layout { padding-top: 22px; } /* contract 19: the phone .wrap shorthand reset it, leaving the Lead story divider flush against the bar */
  .category-bar .theme-toggle { position: absolute; top: 16px; right: 14px; }
}

/* Page grid: content first. Desktop rows are front / latest + sidebar / desks.
   <main> contributes no box so its sections can share the page grid with the sidebar. */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px 32px;
  grid-template-areas: "front ruby" "latest side" "banner1 banner1" "bands bands" "banner2 banner2" "desks desks";
  padding-top: 22px; padding-bottom: 44px;
}
.layout > main { display: contents; }
.front { grid-area: front; }
.latest { grid-area: latest; min-width: 0; align-self: start; }
.desks { grid-area: desks; }
.bands { grid-area: bands; display: flex; flex-direction: column; gap: 26px; }
.bands:empty { display: none; }
#banner-1 { grid-area: banner1; }
/* Ruby / CoreStaff portrait mock (contract section 11): the one ad beside the opening content, top of the right rail. Without a usable ad the
   column is released (no blank gap). */
.ruby-slot { grid-area: ruby; align-self: stretch; min-width: 0; }
.layout:not(.has-ruby):not(.is-detail-view) { grid-template-areas: "front front" "latest side" "banner1 banner1" "bands bands" "banner2 banner2" "desks desks"; }
.layout.is-detail-view .ruby-slot { display: none; }
#banner-2 { grid-area: banner2; }
.ad-banner-slot:empty { min-height: 96px; } /* reserved until the ad arrives, so nothing moves when it does */
.ad-banner-slot { justify-self: center; width: 100%; max-width: 970px; min-width: 0; }
/* On desktop the sidebar is as tall as the Latest column it sits beside. app.js shows the extra mock cards
   (.is-distributed) only when the measured Latest height keeps them well apart; otherwise the sidebar is compact. */
.sidebar { grid-area: side; align-self: stretch; display: flex; flex-direction: column; gap: 18px; }
/* AO-READER-LIFE-001: four in-flow regions share the Latest column's height; each region's module pins inside its own region (see the owner
   exception under Advertising below). */
.rail-region { flex: 1 1 0; min-width: 0; }
.rail-region[data-rail="intro"] { flex-grow: 2; } /* the first region spans the first stories, so no rail ad starts before several cards */
.rail-module { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rail-title { margin: 0 0 8px; font-family: var(--serif); font-size: 1.05rem; }
.spotlight, .explore-topics { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: var(--radius); padding: 14px 16px; }
.spot { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; }
.spot .story-media { width: 72px; height: 72px; }
.spot-headline { margin: 0 0 4px; font-family: var(--serif); font-size: 1rem; line-height: 1.3; }
.spot .story-meta { margin: 0; font-size: 0.78rem; }
.topics-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.explore-topics .category-link { font-size: 0.86rem; letter-spacing: 0; text-transform: none; font-weight: 600; padding: 6px 0; overflow-wrap: anywhere; }
@media (min-width: 1001px) and (min-height: 700px) {
  .rail-module { position: sticky; top: 16px; }
  html[data-rail-pin="off"] .rail-module { position: static; }
}

/* The hidden attribute must win over component display rules (grids, flex) so view switching is reliable. */
[hidden] { display: none !important; }

/* Private story detail (AO-WEB-002-PRIVATE-001): one editorial column; list, sidebar and ads are hidden while it shows. */
.layout.is-detail-view { grid-template-columns: minmax(0, 1fr); grid-template-areas: "detail"; }
.story-detail { grid-area: detail; max-width: 820px; min-width: 0; }
.story-link { color: inherit; text-decoration: none; overflow-wrap: anywhere; } /* a long word wraps instead of widening the page at large text sizes */
.story-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.detail-back { margin: 0 0 12px; font-size: 0.9rem; }
.field-note { margin: 4px 0 0; font-size: 0.82rem; color: var(--demo-text); }
.field-note:empty { display: none; }
.error-state .button { margin-top: 10px; }
.detail-back a, .detail-panel a { color: var(--teal-dark); text-underline-offset: 3px; }
.detail-panel { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius); padding: 18px 20px; }
.detail-note { margin: 0 0 12px; padding: 8px 12px; border-left: 4px solid var(--amber); background: var(--demo-bg); color: var(--demo-text); border-radius: 6px; font-size: 0.88rem; }
.detail-headline { margin: 10px 0; font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.2; }
.detail-headline:focus { outline: none; box-shadow: none; }
.detail-excerpt { margin: 0 0 16px; font-size: 1.05rem; color: var(--text); }
.detail-facts { margin: 0 0 12px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: 0.92rem; }
.detail-facts dt { font-weight: 700; color: var(--muted); }
.detail-facts dd { margin: 0; }
@media (max-width: 480px) {
  .detail-facts { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .detail-facts dt { margin-top: 8px; }
  .detail-facts dd { overflow-wrap: anywhere; }
}

.kicker {
  margin: 0 0 12px; padding-top: 9px; border-top: 3px solid var(--ink);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-family: var(--font); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-dark);
}
.kicker:focus { outline: none; box-shadow: none; }

/* Front: lead story beside a dark Top stories panel. On desktop the Ruby / CoreStaff slot takes the right column beside them; from 1001 to 1180px
   Top stories sit below the lead instead of squeezing beside it. */
.front { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: stretch; }
.layout:not(.has-ruby):not(.is-detail-view) .front { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
/* With Ruby beside it the lead keeps the full left column (its image stays dominant) and Top stories sit directly below it in two columns. */
@media (min-width: 1001px) {
  .layout.has-ruby .top-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
  .layout.has-ruby .top-item:nth-child(-n+2) { padding-top: 2px; border-top: 0; }
}
.featured { display: flex; flex-direction: column; min-width: 0; }
#featured { flex: 1; display: flex; }
#featured > article { flex: 1; }

.top-stories { background: var(--ink-2); color: #fff; border-radius: var(--radius); padding: 16px 18px 18px; min-width: 0; }
.top-stories .kicker { border-top-color: var(--amber); color: var(--teal-2); }
.top-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.top-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.top-item:first-child { padding-top: 2px; border-top: 0; }
.top-item .story-media { width: 72px; height: 72px; }
.top-kicker { margin: 0 0 2px; font-weight: 700; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-2); }
.top-headline { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.02rem; line-height: 1.3; color: #fff; }
.top-meta { margin: 6px 0 0; font-size: 0.78rem; color: #a9c9ce; display: flex; flex-wrap: wrap; gap: 2px 10px; }

/* Latest controls */
.controls {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px;
}
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.field input, .field select {
  font: inherit; color: var(--text); background: var(--card);
  border: 1px solid var(--field-line); border-radius: 6px; padding: 8px 10px; min-height: 40px; width: 100%;
}
.result-status { color: var(--muted); font-size: 0.9rem; margin: 12px 0 4px; }
.art-note { margin: 0 0 12px; font-size: 0.82rem; color: var(--muted); }

/* Story cards. Category tone variables are shared by cards, top items and desks. */
[data-category] { --tone-a: #e6eefb; --tone-b: #9db9e8; }
[data-category="research"] { --tone-a: #e3f4f5; --tone-b: #58b4bd; }
[data-category="models"] { --tone-a: #1b2a44; --tone-b: #4f7fd1; }
[data-category="agents"] { --tone-a: #e3f4e8; --tone-b: #6cbc8a; }
[data-category="funding"] { --tone-a: #fff4e0; --tone-b: #e0a94f; }
[data-category="infrastructure"] { --tone-a: #e9edf2; --tone-b: #8497ad; }
[data-category="governance"] { --tone-a: #eceff3; --tone-b: #8d9bb0; }
[data-category="safety"] { --tone-a: #fde8e8; --tone-b: #de8a8a; }
[data-category="agi-asi"] { --tone-a: #efe6fb; --tone-b: #a888da; }

.story-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.story-list > li { display: flex; }
.story {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--tone-b); border-radius: var(--radius);
  padding: 16px 18px; width: 100%;
  display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; row-gap: 8px; align-items: start;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas: "media tags" "media head" "media excerpt" "meta meta";
}
.story > .story-media, .story > .story-media-group { grid-area: media; }
.story > .story-tags { grid-area: tags; }
.story > .story-headline { grid-area: head; }
.story > .story-excerpt { grid-area: excerpt; }
.story > .story-meta { grid-area: meta; margin: 0; }
.story-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.category-link { color: var(--teal-dark); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; display: inline-block; line-height: 1.3; padding: 5px 0; border-radius: 3px; overflow-wrap: anywhere; }
.category-link:hover { text-decoration: underline; text-underline-offset: 3px; background: var(--chip-bg); }
.top-kicker .category-link { color: var(--teal-2); }
.top-kicker .category-link:hover { background: transparent; }
.desk-title .category-link { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: inherit; }
.desk-title .category-link:hover { background: transparent; }
.story-headline { font-family: var(--serif); font-size: 1.2rem; line-height: 1.28; margin: 0; }
.story-excerpt { margin: 0; color: var(--muted); }
.story-meta { font-size: 0.83rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.story-source { font-weight: 600; color: var(--text); }

/* Lead story: image first, large type below (image-led) */
.story-featured {
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto auto;
  grid-template-areas: "media" "tags" "head" "excerpt" "meta";
  padding: 0 0 22px; row-gap: 8px; overflow: hidden; border-left-width: 1px; border-top: 4px solid var(--teal);
}
.story-featured > :not(.story-media-group) { margin-inline: 24px; }
.story-featured .story-headline { font-size: clamp(1.65rem, 2.9vw, 2.4rem); line-height: 1.14; }
.story-featured .story-excerpt { font-size: 1.05rem; }

/* Story media (AO-STORY-IMAGE-PRESENTATION-001): decorative topic illustrations
   or a reserved-size generic fallback. The box exists whatever the image state. */
.story-media { width: 96px; height: 96px; border-radius: 8px; overflow: hidden; position: relative; background: var(--tone-a); }
.story-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-media.is-fallback { background: linear-gradient(135deg, var(--tone-a), var(--tone-b)); }
.story-media.is-fallback::before, .story-media.is-fallback::after { content: ""; position: absolute; border-radius: 50%; }
.story-media.is-fallback::before { inset: 24%; border: 4px solid rgba(13, 23, 38, 0.32); }
.story-media.is-fallback::after { width: 14%; height: 14%; left: 43%; top: 43%; background: rgba(13, 23, 38, 0.4); }
.story-media-group { position: relative; align-self: start; }
.story-featured .story-media { width: 100%; height: auto; aspect-ratio: 2 / 1; border-radius: 0; }
.media-tag {
  position: absolute; left: 10px; bottom: 10px; margin: 0; z-index: 1; max-width: calc(100% - 20px);
  font-size: 0.72rem; font-weight: 600; line-height: 1.3; padding: 2px 8px; border-radius: 999px;
  background: rgba(10, 26, 34, 0.88); color: #fff;
}

.empty-state, .error-state {
  background: var(--card); border: 1px dashed var(--field-line); border-radius: var(--radius);
  padding: 28px; text-align: center;
}
.empty-state h3 { margin: 0 0 4px; font-family: var(--serif); }
.error-state { border-color: var(--caution-text); color: var(--caution-text); }
.button {
  font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 6px; padding: 9px 16px; cursor: pointer; min-height: 40px;
}
.button:hover { background: var(--teal-dark); }

/* Topic desks: compact, text-only, one coloured rule per topic */
/* Image-led editorial bands (AO-READER-LIFE-001): three cards per band, image first. */
.band-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.band-card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--tone-b); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.band-card .story-media { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
.band-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.band-headline { margin: 0; font-family: var(--serif); font-size: 1.08rem; line-height: 1.28; }
.band-body .story-meta { margin: 0; }
.more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.more[hidden] { display: none; }
.more-status { margin: 0; font-size: 0.9rem; color: var(--muted); }
.desk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.desk { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--tone-b); border-radius: var(--radius); padding: 14px 16px 6px; }
.desk-title { margin: 0 0 10px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; font-family: var(--serif); font-size: 1.05rem; }
.desk-count { font-family: var(--font); font-weight: 600; font-size: 0.72rem; color: var(--muted); }
.desk-list { list-style: none; margin: 0; padding: 0; }
.desk-item { margin-bottom: 14px; }
.desk-headline { margin: 0 0 4px; font-family: var(--serif); font-weight: 600; font-size: 0.95rem; line-height: 1.32; }
.desk-meta { margin: 0 0 6px; font-size: 0.74rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 8px; }
.desk-source { font-weight: 600; color: var(--text); }

/* Advertising (owner-requested private mockups, AO-SIDEBAR-ADS-001 and AO-READER-LIFE-001; contract sections 10 and 11): labelled, inert mock
   cards only. Desktop: the Ruby / CoreStaff portrait beside the opening content, one rectangle in the rail beside Latest, and up to two thin
   banners between sections; tablet and phone: the compact Ruby mock and one banner. Never fixed, floating, overlaid, scripted, between every two
   stories or in topic desks. OWNER EXCEPTION (private prototype only): the desktop rail modules are in-flow and may be pinned (the sticky
   rule below the Explore topics styles), each bounded by its own region. */
.house-ad { background: var(--card); border: 1px dashed var(--ad-line); border-radius: var(--radius); }
.ad-disclosure {
  margin: 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
#house-ad { min-height: 250px; }
.house-ad { min-height: 250px; padding: 16px; display: flex; flex-direction: column; justify-content: center; }
/* Ruby / CoreStaff portrait mock: 300x600-class on desktop, compact on small screens. The portrait area is a neutral placeholder (no face, no
   likeness, no animation) until an approved asset exists. */
.house-ad.ruby-card { min-height: 600px; max-width: 300px; justify-content: flex-start; gap: 0; }
.ruby-portrait { margin: 12px 0 12px; flex: 1 1 auto; min-height: 300px; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, 0.4); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 12px, rgba(255, 255, 255, 0.11) 12px 24px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; }
.ruby-portrait-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #d6e6e9; }
.ruby-card .ad-headline { font-size: 1.25rem; margin: 0 0 4px; }
/* Thin banner between sections: about 96px high, at most 970px wide, never a takeover. */
.house-ad.ad-banner { min-height: 96px; padding: 10px 16px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 6px 18px; flex-wrap: wrap; }
.ad-banner .ad-disclosure { flex: 0 0 100%; }
.ad-banner .ad-headline { margin: 0; font-size: 1rem; }
.ad-banner .ad-body { margin: 0; flex: 1 1 220px; }
.ad-banner .ad-cta { margin: 0; }
.ad-banner .cs-motif { height: 28px; margin: 0; gap: 4px; }
.ad-banner .cs-unit { width: 10px; }
.ad-banner .cs-unit:nth-child(1) { height: 12px; }
.ad-banner .cs-unit:nth-child(2) { height: 20px; }
.ad-banner .cs-unit:nth-child(3) { height: 28px; }
.ad-headline { margin: 6px 0; font-weight: 700; font-size: 1.05rem; }
.ad-body { margin: 0 0 10px; font-size: 0.9rem; color: var(--muted); }
.ad-cta { margin: 0; font-size: 0.85rem; font-style: italic; color: var(--muted); }
/* CoreStaff AI mock creative: abstract CSS-only motif; no images and no external references. */
.cs-creative { background: var(--ink); border: 1px solid var(--ink-2); color: #fff; }
.cs-creative .ad-disclosure { color: #9fd9dd; }
.cs-creative .ad-body, .cs-creative .ad-cta { color: #d6e6e9; }
.cs-creative .ad-headline { color: #fff; }
.cs-motif { display: flex; align-items: flex-end; gap: 6px; height: 40px; }
.cs-unit { display: block; width: 14px; border-radius: 3px; background: var(--teal-2); }
.cs-unit:nth-child(1) { height: 18px; opacity: 0.6; }
.cs-unit:nth-child(2) { height: 30px; background: var(--teal); }
.cs-unit:nth-child(3) { height: 40px; background: var(--amber); }
.house-ad.cs-creative .cs-motif { margin: 10px 0 4px; }
.ad-banner.cs-creative .cs-motif { margin: 0; }
/* Decorative variants of the same mock creative (colour and order only; the text is identical). */
.cs-v2 { background: var(--ink-2); border-color: var(--teal); }
.cs-v2 .cs-motif { flex-direction: row-reverse; justify-content: flex-end; }
.about-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: 0.9rem; }
.about-box h2 { font-size: 1rem; margin: 0 0 6px; font-family: var(--serif); }
.about-box p { margin: 0 0 8px; color: var(--muted); }

.site-footer { background: var(--ink); color: #a9c4ca; font-size: 0.85rem; padding: 20px 0; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 28px; align-items: start; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-symbol { flex: none; }
.site-footer p { margin: 4px 0; }
.site-footer strong { color: #fff; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.site-footer .footer-group-title { margin: 0 0 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-link { display: inline-block; padding: 5px 0; color: #d6ebee; text-decoration: underline; text-underline-offset: 3px; }
.footer-link:hover { color: #fff; }
.footer-link.is-unavailable { text-decoration: none; color: #a9c4ca; }
.footer-note { font-size: 0.75rem; font-style: italic; }

/* Responsive */
/* Private informational pages (contact and draft policies) under src/pages/. */
.brand-link { color: inherit; text-decoration: none; }
.info-main { max-width: 820px; padding-top: 24px; padding-bottom: 40px; }
.info-main:focus { outline: none; box-shadow: none; }
.back-home { margin: 0 0 12px; font-size: 0.9rem; }
.back-home a, .page-jump a, .info-section a { color: var(--teal-dark); text-underline-offset: 3px; }
.info-main h1 { margin: 4px 0 8px; font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.15; }
.lede { margin: 0 0 16px; font-size: 1.05rem; color: var(--muted); }
.status-chip { display: inline-block; margin: 0 0 4px; padding: 3px 10px; border-radius: 999px; background: var(--demo-bg); color: var(--demo-text); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.info-callout { margin: 0 0 16px; padding: 12px 14px; border-left: 4px solid var(--amber); background: var(--demo-bg); color: var(--demo-text); border-radius: 6px; }
.page-jump ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.page-jump a { display: inline-block; padding: 6px 0; font-weight: 600; }
.info-section { margin: 0 0 16px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius); scroll-margin-top: 16px; }
.info-section:target { border-left-color: var(--amber); }
.info-section h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 1.25rem; }
.info-section p { margin: 0 0 10px; }
.info-section p:last-child { margin-bottom: 0; }
.info-status { font-weight: 700; color: var(--demo-text); }

@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "front" "latest" "banner1" "bands" "ruby" "side" "banner2" "desks"; }
  .layout:not(.has-ruby):not(.is-detail-view) { grid-template-areas: "front" "latest" "banner1" "bands" "side" "banner2" "desks"; }
  .layout:not(.has-ruby):not(.is-detail-view) .front { grid-template-columns: minmax(0, 1fr); }
  .ruby-slot .rail-module { position: static; }
  #ruby-module:empty { min-height: 140px; }
  .house-ad.ruby-card { min-height: 0; max-width: 336px; margin-inline: auto; width: 100%; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 10px 12px; }
  .ruby-card .ad-disclosure { grid-column: 1 / -1; }
  .ruby-portrait { width: 80px; height: auto; min-height: 80px; margin: 0; padding: 2px; }
  .ruby-portrait-label { font-size: 0.55rem; line-height: 1.15; letter-spacing: 0; overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
  .ruby-copy { min-width: 0; }
  .ruby-card .ad-headline { font-size: 1rem; margin: 0; }
  .ruby-card .ad-body, .ruby-card .ad-cta { margin: 0; font-size: 0.82rem; }
  .rail-region[data-rail="topics"], .rail-region[data-rail="ad-rect"], #banner-2 { display: none; } /* desktop only: rail editorial modules, the rail rectangle and the second banner */
  .rail-region { flex: none; }
  .rail-module { position: static; }
  .sidebar { align-self: start; }
  .front { grid-template-columns: minmax(0, 1fr); }
  .desk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead-copy { text-align: left; }
  /* The sidebar ad stays a modest 300x250-class rectangle beside the About box (never a full-width banner). */
  .band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .story-detail { padding-top: 10px; } /* keep the Back to stories link off the category bar */
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-links { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .wrap { padding: 0 14px; }
  .controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .field-search { grid-column: 1 / -1; }
  .story { grid-template-columns: 72px minmax(0, 1fr); column-gap: 12px; padding: 14px; grid-template-areas: "media tags" "media head" "excerpt excerpt" "meta meta"; grid-template-rows: auto 1fr auto auto; }
  .story-media { width: 72px; height: 72px; }
  .story-featured { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto auto; grid-template-areas: "media" "tags" "head" "excerpt" "meta"; padding-inline: 0; }
  .story-featured > :not(.story-media-group) { margin-inline: 16px; }
  .top-item:nth-child(n+4) { display: none; }
  .desk-item:nth-child(n+2) { display: none; }
  .story-featured .story-media { width: 100%; height: auto; }
  .desk-grid { grid-template-columns: minmax(0, 1fr); }
  .subtitle { display: none; }
  .band-grid { grid-template-columns: minmax(0, 1fr); }
  .house-ad.ad-banner { min-height: 0; max-height: 128px; overflow: hidden; padding: 8px 12px; }
  .ad-banner .ad-body, .ad-banner .cs-motif { display: none; }
  #house-ad, .house-ad { max-width: 336px; margin-inline: auto; width: 100%; }
  .masthead { padding-top: 12px; padding-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  [data-reveal], [data-reveal] .story-media { opacity: 1 !important; transform: none !important; }
}

/* Scroll reveal (AO-READER-LIFE-001): opacity, plus a small slide of the decorative thumbnail only; hidden only while html.reveal-armed and the block is
   pending below the first screen, so no JavaScript, observer or setup error leaves everything visible. A card that holds a link never moves: a link
   sliding away from a real click would be a reader interaction defect, so the cards reveal by opacity and only their non-interactive image slides.
   Print shows everything. */
/* The transition belongs to the revealed state only, so arming a block is instant (no fade-out) and revealing it is the one animation. */
[data-reveal="done"] { transition: opacity 600ms ease-out; }
html.reveal-armed [data-reveal="pending"] { opacity: 0; }
html.reveal-armed [data-reveal="pending"] .story-media { transform: translateY(14px); }
[data-reveal="done"] { opacity: 1; }
[data-reveal="done"] .story-media { transform: none; transition: transform 600ms ease-out; }
[data-reveal="done"].reveal-now, [data-reveal="done"].reveal-now .story-media { transition: none; }
@media print {
  [data-reveal], [data-reveal] .story-media { opacity: 1 !important; transform: none !important; transition: none !important; }
  .rail-module { position: static !important; }
}

/* Footer bottom row (AO-READER-LIFE-001): the social links are centered on the content container. The theme button now sits in the top header
   (AO-READER-LIFE-001, contract 16). The four owner-supplied account links are native anchors (see the rules below). */
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: center; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.footer-bottom .social-list { justify-content: center; }
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%; color: #d6ebee; }
.social-icon svg { display: block; }
/* AO-LAUNCH-SITE-FINISHING-001: the four footer social symbols are native links (same 44px round target, same colors); hover and keyboard focus are visible. */
a.social-icon { text-decoration: none; }
a.social-icon:hover { color: #fff; border-color: rgba(255, 255, 255, 0.6); }
a.social-icon:focus-visible { outline: 3px solid #fff; outline-offset: 3px; color: #fff; }

/* Theme button (AO-READER-LIFE-001): one 44px native button; the glyph follows the device with CSS alone (sun for light, moon for dark) until a manual choice. */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #d6ebee; cursor: pointer; } /* borderless (contract 17): no persistent outline or fill */
.theme-toggle:hover { color: #fff; }
/* Contract 18 (owner: never a box or circle, focus included): no enclosing shape in any state; keyboard focus is shown on the glyph itself. */
.theme-toggle, .theme-toggle:hover, .theme-toggle:active, .theme-toggle:focus, .theme-toggle:focus-visible { outline: none; box-shadow: none; border: 0; background: transparent; }
.theme-toggle svg { transition: none; }
.theme-toggle:focus-visible { color: #ffc83d; }
.theme-toggle:focus-visible svg { transform: scale(1.15); filter: drop-shadow(0 0 1.5px #ffc83d) drop-shadow(0 0 5px rgba(255, 200, 61, 0.95)); }
@media (forced-colors: active) {
  .theme-toggle { color: ButtonText; }
  .theme-toggle:focus-visible { color: Highlight; }
  .theme-toggle:focus-visible svg { forced-color-adjust: none; filter: none; }
}
.theme-toggle svg { display: block; width: 20px; height: 20px; }
/* In the header (right of the branding): a reserved 44px flex item, never fixed, floating or in the navigation row. Below 1001px the masthead centre is
   absent, so the button takes the second slot beside the brand and the tagline wraps below; at the narrowest widths it may wrap to its own right-aligned row. */
.masthead .theme-toggle { flex: none; }
/* Homepage (owner refinement, contract 16.5): the one button sits immediately right of All News Categories on the same row, with a clear gap. */
.category-bar .theme-toggle { flex: none; }
@media (max-width: 1000px) {
  .masthead .brand { order: 0; }
  .masthead .theme-toggle { order: 1; margin-left: auto; }
  .masthead .masthead-copy { order: 2; flex-basis: 100%; max-width: none; }
}
.theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Candidate reader mode only (AO-CANDIDATE-READER-BROWSER-CORR-001). Supplied publisher and attribution-requirement text can be one very long
   unbroken string. Without these rules the source-line items cannot shrink below their unbroken width and widen the page (measured: a
   480-character publisher gave a 3,745px item). The text is kept in full and wraps; nothing is clipped, truncated or resized. The root
   attribute is set in app.js only when the code-owned mode is candidate, so legacy pages never match these rules. */
html[data-reader-mode="candidate"] :is(.story-meta, .top-meta, .desk-meta) > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
html[data-reader-mode="candidate"] .detail-facts dd { overflow-wrap: anywhere; }

/* AO-REAL-READER-WIRING-PREP-001: REAL (captured metadata) mode only. Every rule below is scoped to html[data-reader-mode="real"]; no other rule changes. */
html[data-reader-mode="real"] :is(.story-meta, .top-meta, .desk-meta) > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
html[data-reader-mode="real"] :is(.story-headline, .top-headline, .desk-headline, .band-headline, .spot-headline, .detail-headline) { overflow-wrap: anywhere; }
html[data-reader-mode="real"] .detail-facts dd { overflow-wrap: anywhere; }
html[data-reader-mode="real"] .detail-source { margin: 1rem 0 0; overflow-wrap: anywhere; }
html[data-reader-mode="real"] .detail-source a { font-weight: 600; }

/* AO-PUBLIC-READER-PRESENTATION-001: PUBLIC profile only. Every rule below is scoped to html[data-reader-profile="public"], set in app.js only for the
   public constant; REAL, candidate and legacy pages never match. */
/* AO-VPS-PUBLIC-NO-IMAGE-FALLBACK-001: a PUBLIC story has no media slot, so its media column, the lead image row and the top-item/spotlight image column
   collapse and the text uses the full width at every breakpoint (these selectors outrank the unscoped desktop and phone story rules). */
html[data-reader-profile="public"] .story { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; grid-template-areas: "tags" "head" "excerpt" "meta"; }
html[data-reader-profile="public"] .story-featured { padding-top: 18px; }
html[data-reader-profile="public"] :is(.top-item, .spot) { grid-template-columns: minmax(0, 1fr); }
html[data-reader-profile="public"] .story-meta .story-byline, html[data-reader-profile="public"] .top-meta .story-byline { font-style: normal; }
html[data-reader-profile="public"] .story-age { white-space: nowrap; }
html[data-reader-profile="public"] .desk-empty { margin: 0 0 6px; font-size: 0.78rem; color: var(--muted); }
html[data-reader-profile="public"] .source-conditions { margin: 6px 0 0; }
html[data-reader-profile="public"] .source-conditions summary { cursor: pointer; color: var(--muted); font-size: 0.85rem; }
html[data-reader-profile="public"] .source-conditions summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
html[data-reader-profile="public"] .source-conditions p { margin: 4px 0 0; font-size: 0.85rem; overflow-wrap: anywhere; }
/* AO-PUBLIC-EMPTY-FRONT-LAYOUT-001: an empty PUBLIC Top stories list (zero or one recent story) hides that section and collapses the front to one column. */
html[data-reader-profile="public"] .front[data-top-empty="true"] > .top-stories { display: none; }
html[data-reader-profile="public"] .layout .front[data-top-empty="true"] { grid-template-columns: minmax(0, 1fr); }

/* AO-PUBLIC-HOMEPAGE-CORRECTIONS-001 (James's homepage corrections). Every rule below is scoped to the /5 homepage root marker data-reader-layout="5", so the
   /1 to /4 homepages and the informational pages render exactly as before. */
/* The subtitle wraps in balanced lines; the /5 markup also keeps "Industry Intelligence" together. */
html[data-reader-layout="5"] .subtitle { text-wrap: balance; }
@media (min-width: 1001px) {
  /* The orbit and "Explore the frontier" sit at the center of the page whatever the widths of the brand and the tagline: three columns with equal outer tracks. */
  html[data-reader-layout="5"] .masthead { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 28px; }
  html[data-reader-layout="5"] .masthead .brand { justify-self: start; }
  html[data-reader-layout="5"] .masthead-explore { justify-self: center; }
  html[data-reader-layout="5"] .masthead-copy { justify-self: end; }
}
@media (min-width: 641px) {
  /* The navigation links sit immediately beside All News Categories, and the whole group (links, categories control, theme button) is centered with one 10px
     gap, so the group fits one row at every width from 641px (including 1280px and 1300px, just after a link tier appears). */
  html[data-reader-layout="5"] .category-bar { justify-content: center; column-gap: 10px; }
  html[data-reader-layout="5"] .primary-nav { column-gap: 10px; }
  html[data-reader-layout="5"] .menu-toggle { margin-left: 0; }
}
/* The About card is removed on /5, so the intro rail region reserves space only while one of its modules is shown (the spotlight may be hidden). */
html[data-reader-layout="5"] .sidebar > .rail-region[data-rail="intro"]:not(:has(.rail-module > :not([hidden]))) { display: none; }
/* AO-PUBLIC-RICH-CARDS-001 (James's binding presentation requirements). Every rule below is scoped to the /6 homepage root marker data-reader-layout="6"; the /5
   rules above and every earlier homepage are unchanged. /6 repeats the /5 header, navigation and sidebar rules and adds the richer card. */
html[data-reader-layout="6"] .subtitle { text-wrap: balance; }
@media (min-width: 1001px) {
  html[data-reader-layout="6"] .masthead { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 28px; }
  html[data-reader-layout="6"] .masthead .brand { justify-self: start; }
  html[data-reader-layout="6"] .masthead-explore { justify-self: center; }
  html[data-reader-layout="6"] .masthead-copy { justify-self: end; }
}
@media (min-width: 641px) {
  html[data-reader-layout="6"] .category-bar { justify-content: center; column-gap: 10px; }
  html[data-reader-layout="6"] .primary-nav { column-gap: 10px; }
  html[data-reader-layout="6"] .menu-toggle { margin-left: 0; }
}
html[data-reader-layout="6"] .sidebar > .rail-region[data-rail="intro"]:not(:has(.rail-module > :not([hidden]))) { display: none; }
/* No story module outside the one page allocation: the bands and the topic desks are not shown on /6 (topics stay in the navigation and the menu). */
html[data-reader-layout="6"] .bands, html[data-reader-layout="6"] .desks { display: none; }
/* The card: an optional thumbnail beside the text (above it for the lead), the short description under the headline, then the publisher line and credits. */
html[data-reader-layout="6"] .story.has-thumb { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 16px; align-items: start; }
html[data-reader-layout="6"] .story-featured.has-thumb { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
html[data-reader-layout="6"] .story-thumb { margin: 0; min-width: 0; }
html[data-reader-layout="6"] .story-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: var(--radius); background: var(--line); } /* whole image, scaled, never cropped (permission-dependent presentation) */
html[data-reader-layout="6"] .image-credit { margin-top: 4px; font-size: 0.72rem; line-height: 1.3; color: var(--muted); }
html[data-reader-layout="6"] .story-body { min-width: 0; }
html[data-reader-layout="6"] .story-description { margin: 4px 0 6px; color: var(--text); font-size: 0.95rem; line-height: 1.45; } /* theme-aware (coordinator review: --ink-2 was 1.21:1 on the dark card) */
html[data-reader-layout="6"] .story-credits { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 4px 0 0; font-size: 0.78rem; line-height: 1.35; color: var(--muted); }
html[data-reader-layout="6"] .story-license { color: inherit; text-decoration: underline; }
html[data-reader-layout="6"] .top-item .story { margin: 0; }
@media (max-width: 640px) {
  html[data-reader-layout="6"] .story.has-thumb { grid-template-columns: 92px minmax(0, 1fr); column-gap: 12px; }
  html[data-reader-layout="6"] .story-featured.has-thumb { grid-template-columns: minmax(0, 1fr); }
}
/* The /6 card owns its grid (the base card's named media/tags areas are not used): one column, or thumbnail beside the text; the lead keeps its natural height; cards in
   the dark Top stories panel use the page text colour; every allocated Top story stays visible at every width (none is hidden on small screens). */
html[data-reader-layout="6"] .story { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: none; }
html[data-reader-layout="6"] .story.has-thumb { grid-template-columns: 120px minmax(0, 1fr); }
html[data-reader-layout="6"] .story-featured.has-thumb { grid-template-columns: minmax(0, 1fr); }
html[data-reader-layout="6"] #featured > article { flex: 0 1 auto; align-self: flex-start; }
html[data-reader-layout="6"] .top-stories .story { color: var(--text); }
html[data-reader-layout="6"] .top-item { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 640px) {
  html[data-reader-layout="6"] .story.has-thumb { grid-template-columns: 92px minmax(0, 1fr); }
  html[data-reader-layout="6"] .story-featured.has-thumb { grid-template-columns: minmax(0, 1fr); }
  html[data-reader-layout="6"] .top-item:nth-child(n+4) { display: grid; }
}
