/* Renkara fleet showcase kit: layout and blocks.
   Built on the @renkara/design-system tokens (rk-tokens.css, vendored by
   scripts/vendor_design_system.py; rk-tokens-media.css is generated from it).
   A site sets only its accent: Custom.BrandAccent / BrandAccentDark in site.yml,
   emitted as --brand-accent in <head>. Dark mode follows the .dark class set by
   the boot script (stored choice, else the system setting), and the generated
   prefers-color-scheme block covers the no-JavaScript case. */

/* ---- Semantic aliases over the design-system tokens ------------------- */
:root {
  --bg: hsl(var(--background));
  --bg-alt: hsl(var(--muted));
  --surface: hsl(var(--card));
  --text: hsl(var(--foreground));
  --text-muted: hsl(var(--muted-foreground));
  --line: hsl(var(--border));
  --accent-c: hsl(var(--brand-accent));
  /* Fills that carry --accent-ink text (buttons, skip link, step numbers). Custom.BrandAccentFill sets it when the
     brand accent is too light for white text; the accent stays for decoration and borders. */
  --accent-fill: hsl(var(--brand-accent-fill, var(--brand-accent)));
  --accent-text: hsl(var(--brand-accent-text, var(--brand-accent)));
  --accent-ink: hsl(var(--accent-foreground));
  --accent-soft: hsl(var(--brand-accent) / 0.12);
  --ok: hsl(var(--success));
  --status-bad: 0 72% 40%;
  --shell: var(--content-max-width, 80rem);
  /* Brand gutter (brand.renkara.com: clamp(24px, 5vw, 96px)), held to 1.25rem on phones and 3rem on wide screens. */
  --shell-pad: clamp(1.25rem, 4vw, 3rem);
  --r: var(--radius-card, 0.75rem);
  /* Brand spacing (4px base), motion, and the hero's color roles (kit 0.3.0). */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-4: 1rem; --space-6: 1.5rem; --space-8: 2rem; --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --micro: 150ms;
  --transition: 300ms;
  --hero-panel: #1b2a4a;      /* Renkara Navy, in both themes: the copy panel of the art hero */
  --hero-ink: #f8fafc;        /* Cloud White on navy, 13.6:1 */
  --hero-muted: #cbd5e1;      /* lead text on navy, 9.6:1 */
  --hero-accent: hsl(var(--brand-accent-on-dark, 209 60% 78%));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis: none;
  overflow-wrap: break-word;
}
img, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 0.25em; transition: color var(--micro) var(--ease); }
a:hover { color: var(--accent-text); text-decoration-thickness: 2px; }
/* The vendored design-system base removes link underlines. A link in a sentence must not rely on color
   alone (WCAG 1.4.1), so links in running text are underlined; navigation, buttons, tags, and lists of
   links keep their own affordances. The axe scan measures this (plainInlineLinks). */
p a:not(.btn):not(.tag), .prose li a, .card li a, .spec-table li a, td a, dd a, figcaption a, .fine a, .evidence a, .faq a { text-decoration: underline; text-underline-offset: 0.25em; }
/* The focus ring uses the accent's text shade, which the checks hold to 4.5:1 on every page background (a brand accent
   may be too faint to be seen as a ring). */
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
code { background: var(--accent-soft); padding: 0.1em 0.4em; border-radius: 6px; color: var(--text); }
main:focus { outline: none; }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--accent-fill); color: var(--accent-ink); padding: 0.75rem 1rem; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--shell-pad); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Not-supported status text: the design system's destructive token is 3.5:1 on the dark card, so the kit sets its own. */
.dark, [data-theme='dark'] { --status-bad: 0 84% 72%; }
@media (prefers-color-scheme: dark) { :root:not(.light):not([data-theme='light']) { --status-bad: 0 84% 72%; } }

/* ---- Header ----------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
/* Kit 0.3.2 (design review K05): over an art hero the header is part of the navy panel in both themes, until the
   visitor scrolls past the hero (kit.js sets .is-past-hero); then it is the page's own header again. */
.has-art-hero .site-header:not(.is-past-hero) { background: var(--hero-panel); color: var(--hero-ink); border-bottom-color: rgba(248, 250, 252, 0.12); backdrop-filter: none; }
.has-art-hero .site-header:not(.is-past-hero) .brand, .has-art-hero .site-header:not(.is-past-hero) .brand:hover { color: var(--hero-ink); }
.has-art-hero .site-header:not(.is-past-hero) .brand-word span { color: var(--hero-accent); }
.has-art-hero .site-header:not(.is-past-hero) .site-nav a { color: var(--hero-muted); }
.has-art-hero .site-header:not(.is-past-hero) .site-nav a:hover { color: var(--hero-ink); background: rgba(248, 250, 252, 0.08); }
.has-art-hero .site-header:not(.is-past-hero) .site-nav a[aria-current="page"] { color: var(--hero-ink); background: rgba(248, 250, 252, 0.12); }
.has-art-hero .site-header:not(.is-past-hero) .icon-btn { background: transparent; color: var(--hero-ink); border-color: rgba(248, 250, 252, 0.3); }
.has-art-hero .site-header:not(.is-past-hero) .icon-btn:hover { background: rgba(248, 250, 252, 0.08); }
.has-art-hero .site-header:not(.is-past-hero) :focus-visible { outline-color: var(--hero-ink); }
.site-header, .site-header .brand, .site-nav a, .icon-btn { transition: background-color var(--micro) var(--ease), color var(--micro) var(--ease), border-color var(--micro) var(--ease); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.25rem; min-height: 44px; }
.brand:hover { color: var(--text); }
.brand-word span { color: var(--accent-text); }
.brand-fallback { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-fill); color: var(--accent-ink); font-size: 0.95rem; font-weight: 700; }
.site-nav { display: none; gap: 0.25rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.8rem; border-radius: 8px; text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: var(--text); background: var(--bg-alt); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--bg-alt); }
.icon-moon { display: none; }
.dark .icon-sun { display: none; }
.dark .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not(.light) .icon-sun { display: none; }
  :root:not(.light) .icon-moon { display: block; }
}
#menu-btn { display: inline-grid; }
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu.open { display: block; }
.mobile-menu .shell { display: grid; padding-top: 0.5rem; padding-bottom: 1rem; }
/* Kit 0.3.2 (K21): drawer links start on the logo's edge, the open drawer's button shows a close icon, and the current
   page is marked. */
.mobile-menu a { display: flex; align-items: center; padding: 0.4rem 0; text-decoration: none; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line); min-height: 48px; }
.mobile-menu a[aria-current="page"] { color: var(--accent-text); font-weight: 700; }
#menu-btn .icon-close, #menu-btn[aria-expanded="true"] .icon-menu { display: none; }
#menu-btn[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 900px) {
  .site-nav { display: flex; }
  #menu-btn { display: none; }
  .mobile-menu, .mobile-menu.open { display: none; }
}

/* ---- Buttons and tags ------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 46px; padding: 0.6rem 1.3rem; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; transition: background-color var(--micro) var(--ease), border-color var(--micro) var(--ease), color var(--micro) var(--ease), filter var(--micro) var(--ease); }
.btn-primary { background: var(--accent-fill); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { color: var(--text); border-color: var(--accent-c); }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.tag.coming { background: transparent; border: 1px dashed var(--accent-text); }
.tag.internal { background: var(--bg-alt); color: var(--text); border: 1px solid var(--line); }

/* ---- Type, hero, bands ------------------------------------------------ */
/* Type follows brand.renkara.com: Plus Jakarta Sans at real weights (400, 600, 700), semibold display with tight
   tracking, sentence-case labels. */
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.8rem; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); line-height: 1.08; letter-spacing: -0.03em; }
h1 em, h2 em { font-style: normal; color: var(--accent-text); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; line-height: 1.35; letter-spacing: -0.02em; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0; line-height: 1.35; }
/* Kit 0.3.2 (design review K06, K23): display tracking eased so word spaces stay open; no stranded last words. */
.lead, .shot-caption, .faq summary { text-wrap: pretty; }
.eyebrow, .label { display: inline-block; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.01em; color: var(--accent-text); margin-bottom: var(--space-4); }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--text-muted); max-width: 40rem; }
.fine { font-size: 0.9rem; color: var(--text-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero { padding: var(--space-16) 0 var(--space-12); background: radial-gradient(1200px 400px at 80% -10%, var(--accent-soft), transparent 70%); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
/* Kit 0.3.1: a hero's screenshot is never beside the copy at thumbnail size; the copy stacks above it, one-up at every width. */
.hero-grid.split, .hero-grid.split-even { grid-template-columns: minmax(0, 1fr); align-items: start; }
.hero-intro { max-width: 46rem; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
/* Kit 0.3.2 (design review K11): a linked chip is a 44-pixel target. */
.hero-chips a.tag { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.9rem; }
/* Section rhythm (brand: 6rem sections, 64px on phones, a 1px rule between sections). */
.band { padding: var(--space-24) 0; }
.band + .band, .hero-art + .band { border-top: 1px solid var(--line); }
.band-alt { background: var(--bg-alt); }
.band-thin { padding: var(--space-12) 0; }  /* kit 0.3.2 (K18): a band with little in it */
.section-head { max-width: 46rem; margin-bottom: var(--space-12); }
.section-head p { color: var(--text-muted); }
/* Kit 0.3.2 (K19): prose keeps a readable measure. */
.section-head p, .prose p, .fine { max-width: 68ch; }
.prose { max-width: 44rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--accent-c); border-radius: var(--r); background: var(--surface); padding: 1rem 1.25rem; margin: 0; }
.notice p { margin: 0; }
/* The hero's note (kit 0.3.2, K01): an art hero's foot bar on the navy panel, or a line under a plain hero's copy. */
.hero-foot { border-top: 1px solid rgba(248, 250, 252, 0.14); background: var(--hero-panel); }
.hero-note { margin: 0; padding: var(--space-4) 0; max-width: 72ch; color: var(--hero-muted); font-size: 0.9375rem; line-height: 1.6; }
.hero:not(.hero-art) .hero-note { margin-top: var(--space-8); padding: var(--space-2) 0 var(--space-2) var(--space-4); border-left: 4px solid var(--accent-c); color: var(--text-muted); }
.hero:not(.hero-art) .hero-note strong { color: var(--text); }

/* ---- Cards and feature groups ----------------------------------------- */
/* Every grid track is minmax(0, 1fr): a bare `1fr` (or the implicit auto track of a one-column grid) has a minimum
   of the item's min-content, so one long unbroken token (a file path) would widen the track and the page. */
.grid-2, .grid-3 { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }  /* three columns only where each card is wide enough to read */
.grid-2 > *, .grid-3 > * { min-width: 0; }
/* Kit 0.3.2 (design review K10): three-column grids are 12-column grids whose last row always fills. A count of 3n+1
   ends in a row of four, 3n+2 in a row of two, and a single card takes the full width; no card is left stranded. */
@media (min-width: 1000px) {
  :is(.grid-3:not(:has(> .shot, > * > .shot)), .link-cards, .a11y-grid, .flow.cols-3) { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  :is(.grid-3:not(:has(> .shot, > * > .shot)), .link-cards, .a11y-grid, .flow.cols-3) > * { grid-column: span 4; }
  :is(.grid-3:not(:has(> .shot, > * > .shot)), .link-cards, .a11y-grid, .flow.cols-3):has(> :last-child:nth-child(3n+4)) > :nth-last-child(-n+4) { grid-column: span 3; }
  :is(.grid-3:not(:has(> .shot, > * > .shot)), .link-cards, .a11y-grid, .flow.cols-3):has(> :last-child:nth-child(3n+2)) > :nth-last-child(-n+2) { grid-column: span 6; }
  :is(.grid-3:not(:has(> .shot, > * > .shot)), .link-cards, .a11y-grid, .flow.cols-3) > :only-child { grid-column: 1 / -1; }
}
/* Two columns from 900 pixels: a side-by-side comparison (two branches of a flow, before and after). */
.branch { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .branch { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.branch > * { min-width: 0; }
.branch h3 { display: flex; align-items: center; gap: 0.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.actions.center { justify-content: center; }
/* The closing Contact band (kit 0.3.2, K09): Renkara Navy in both themes, centered, 4rem top and bottom. */
.band-contact { padding: var(--space-16) 0; background: var(--hero-panel); color: var(--hero-ink); }
.band + .band-contact { border-top: 0; }
.band-contact .label { color: var(--hero-accent); }
.band-contact h2 { color: var(--hero-ink); }
.band-contact .section-head { margin-bottom: var(--space-8); }
.band-contact .section-head p { color: var(--hero-muted); }
.band-contact .btn-primary { background: var(--hero-ink); color: var(--hero-panel); }
.band-contact .btn-primary:hover { background: #ffffff; color: var(--hero-panel); filter: none; }
.band-contact :focus-visible { outline-color: var(--hero-ink); }
.plain-list, .steps-list { margin: 0 0 1rem; padding-left: 1.25rem; display: grid; gap: 0.6rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; box-shadow: var(--shadow-card); min-width: 0; overflow-wrap: anywhere; }
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 1rem; }
.card .tag, .card .card-num { margin-bottom: 0.75rem; }
.card-num { display: inline-block; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500; color: var(--accent-text); }
.feature-group + .feature-group { margin-top: 3rem; }
.feature-group > .group-head { margin-bottom: 1.25rem; }
.feature-group > .group-head h3 { font-size: 1.4rem; }
.feature-group .card :is(h3, h4) { font-size: 1rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; }  /* one group's cards are h3 (kit 0.3.2, K17) */

/* ---- Screens ---------------------------------------------------------- */
.shot { margin: 0; }
.shot .frame { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-raised); background: var(--surface); }
.shot .frame picture, .shot .frame img { display: block; width: 100%; height: auto; }
.shot .frame .theme-dark { display: none; }
.dark .shot .frame .theme-light { display: none; }
.dark .shot .frame .theme-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not(.light) .shot .frame .theme-light { display: none; }
  :root:not(.light) .shot .frame .theme-dark { display: block; }
}
.shot-caption { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--text-muted); }
.shot-detail-note { display: none; }
@media (max-width: 1023px) { .shot-detail-note { display: inline; } }  /* kit 0.3.2: the detail crop shows here; the zoom view has the full frame */
/* Screenshots (kit 0.3.1): one-up at every width, and wider than the text column on desktop so the UI is readable
   without zooming. At 1440 the figure is 1280 px wide: a 1920-px capture renders at 0.667 (UI body text about 9 to
   10 CSS px). Below 1360 it is the shell's content width; phones and tablets get the zoom view. */
.gallery { display: grid; gap: var(--space-12); grid-template-columns: minmax(0, 1fr); }
/* Kit 0.3.2 (design review K08, K27): every band or figure group that holds a landscape screenshot is one-up, copy
   first: the heading and text, then the screenshot at full width, whatever order the markup has (a "flip" band
   only made sense side by side). Figure pairs in .grid-2 and .grid-3 go one-up too; phone captures keep their pair. */
/* A screenshot may sit in the band's grid directly or inside one wrapper <div> (assay, nomad). */
.hero-grid.split > :not(.shot):not(:has(> .shot)), .shell.split:is(:has(> .shot), :has(> * > .shot)) > :not(.shot):not(:has(> .shot)) { order: 1; max-width: 46rem; }
.hero-grid.split > :is(.shot, :has(> .shot)), .shell.split:is(:has(> .shot), :has(> * > .shot)) > :is(.shot, :has(> .shot)) { order: 2; }
.shell.split:is(:has(> .shot), :has(> * > .shot)) { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); align-items: start; }
:is(.grid-2, .grid-3):is(:has(> .shot:not([data-orientation="portrait"])), :has(> * > .shot:not([data-orientation="portrait"]))) { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
/* The home gallery (K26): a lead screenshot at full width, then thumbnails that open the zoom view. */
.gallery-thumbs { gap: var(--space-12) var(--space-6); }
@media (min-width: 600px) { .gallery-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery-thumbs > .shot:first-child { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .gallery-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery-thumbs > .shot:not(:first-child) .shot-caption { font-size: 0.875rem; }
.gallery-more { margin: var(--space-8) 0 0; }
@media (min-width: 85rem) {
  .gallery, .hero-grid > .shot, .tour-item > .shot, .shell.split:is(:has(> .shot), :has(> * > .shot)) > :is(.shot, :has(> .shot)),
  :is(.grid-2, .grid-3):is(:has(> .shot:not([data-orientation="portrait"])), :has(> * > .shot:not([data-orientation="portrait"]))) { margin-inline: calc(var(--shell-pad) * -1); }
}
/* ---- Features beside their screenshots (kit 0.3.3) ----------------------------------------------------------
   The owner, 10/30/2026: screenshots mingled with their related features, not a grid of small boxes. Each row is a
   feature (or a few) and the screen that shows it. Below 1,360 pixels the copy comes first and the screenshot follows
   at the column's full width (the 0.3.2 one-up rule); from 1,360 the row spans the gutters and the screenshot sits
   beside the copy, alternating sides, at 0.63 or more of a 1,440-pixel capture. Captures wider than 1,500 pixels
   (fm-wide) stay stacked so they keep the 0.6 floor. Features no screen shows are compact rows under the copy. */
.fm { display: grid; gap: var(--space-20); grid-template-columns: minmax(0, 1fr); }
.fm > .fm-group { margin: 0 0 calc(var(--space-12) * -1); font-size: 1.4rem; }
.fm-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.fm-copy { max-width: 46rem; min-width: 0; overflow-wrap: anywhere; }
.fm-feature + .fm-feature { margin-top: var(--space-6); }
.fm-feature :is(h3, h4) { font-size: 1.25rem; line-height: 1.35; margin: 0 0 0.5rem; }
.fm-feature p { margin: 0; color: var(--text-muted); text-wrap: pretty; }
.fm-rows { margin: var(--space-6) 0 0; padding: 0; display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
.fm-copy > .fm-rows:first-child { margin-top: 0; }
.fm-row-item { padding: 0.875rem 0; border-top: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.fm-row-item dt { font-weight: 600; line-height: 1.35; }
.fm-row-item dd { margin: 0.25rem 0 0; color: var(--text-muted); font-size: 0.9375rem; text-wrap: pretty; }
.fm-rows-only { margin-top: 0; column-gap: var(--space-12); }
@media (min-width: 768px) {
  .fm-rows-only, .fm-row.fm-wide .fm-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-12); }
  .fm-row:has(.shot[data-orientation="portrait"]) { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--space-12); align-items: center; }
}
@media (min-width: 85rem) {
  .fm-row:not(.fm-wide) { width: min(calc(100vw - 2 * var(--shell-pad)), 90rem); margin-inline: calc((min(calc(100vw - 2 * var(--shell-pad)), 90rem) - 100%) / -2);
    grid-template-columns: 24rem minmax(0, 1fr); gap: var(--space-12); align-items: center; }
  .fm > .fm-row:not(.fm-wide):nth-of-type(even) { grid-template-columns: minmax(0, 1fr) 24rem; }
  .fm > .fm-row:not(.fm-wide):nth-of-type(even) > .fm-copy { order: 2; }
  .fm-row.fm-wide > .fm-media { margin-inline: calc(var(--shell-pad) * -1); }
  .fm-row:has(.shot[data-orientation="portrait"]) { width: auto; margin-inline: 0; grid-template-columns: minmax(0, 1fr) 22rem; }
}
.shot[data-orientation="portrait"] .frame { max-width: 22rem; margin-inline: auto; } /* a phone capture is never stretched to the column */
.shot-zoom { display: block; position: relative; width: 100%; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: inherit; text-decoration: none; cursor: zoom-in; }
.shot-zoom::after { content: "Enlarge"; position: absolute; right: 0.75rem; bottom: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 999px; background: var(--hero-panel); color: var(--hero-ink); font-size: 0.8125rem; font-weight: 600; line-height: 1.4; opacity: 0.92; transition: opacity var(--micro) var(--ease); pointer-events: none; }
.shot-zoom:hover::after, .shot-zoom:focus-visible::after { opacity: 1; }
.shot-zoom:focus-visible { outline: 3px solid var(--accent-text); outline-offset: -3px; }
html.shot-open, html.shot-open body { overflow: hidden; }
.shot-dialog { padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--text); width: 96vw; height: 94vh; max-width: none; max-height: none; margin: auto; overflow: hidden; }
.shot-dialog[open] { display: flex; flex-direction: column; }
.shot-dialog::backdrop { background: rgba(8, 12, 24, 0.82); }
/* Kit 0.3.2: the controls sit on one row and the caption has a full-width line of its own, wrapped, never cut off.
   "Fit" really fits: the image fills the stage box with object-fit: contain, so the whole frame shows with no scroll;
   "Actual size" (aria-pressed) shows it at its natural size and pans. Phones show 44-pixel icon buttons (the text
   label stays in the accessible name) and open at actual size, panned from the top left. */
.shot-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-2) 0.75rem; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.shot-status { order: 2; flex: 1 1 100%; min-width: 0; margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--text-muted); white-space: normal; }
.shot-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 44px; min-width: 44px; padding: 0 0.875rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer; }
.shot-btn[data-act="size"] { margin-left: auto; }
.shot-btn[aria-pressed="true"] { border-color: var(--accent-text); background: var(--accent-soft); }
.shot-btn:hover { border-color: var(--accent-text); }
.shot-btn:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.shot-btn[hidden] { display: none; }
.shot-ico { display: none; flex: none; }
.shot-stage { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; background: var(--bg); }
.shot-stage:not(.is-actual) { overflow: hidden; }
.shot-stage:not(.is-actual) .shot-dialog-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.shot-stage.is-actual .shot-dialog-img { display: block; width: auto; height: auto; max-width: none; max-height: none; }
@media (max-width: 760px) {
  .shot-dialog { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; border-width: 0; }
  .shot-btn { width: 44px; padding: 0; }
  .shot-ico { display: block; }
  .shot-txt { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .shot-stage.is-actual .shot-dialog-img { width: 1280px; }
}
@media (prefers-reduced-motion: no-preference) {
  .shot-dialog[open] { animation: shot-in var(--transition) var(--ease) both; }
  @keyframes shot-in { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
}

/* ---- How it works ----------------------------------------------------- */
.flow { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .flow.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flow.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .flow.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .flow.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.flow li { min-width: 0; overflow-wrap: anywhere; counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 3.2rem 1.25rem 1.25rem; }
.flow li::before { content: counter(step); position: absolute; top: 1rem; left: 1.25rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-fill); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; }
.flow li h3 { margin-bottom: 0.4rem; }
.flow li p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }

/* ---- Tech spec table -------------------------------------------------- */
.spec-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 0.98rem; }
.spec-table caption { text-align: left; padding: 0 0 0.75rem; font-weight: 700; color: var(--text-muted); caption-side: top; }
.spec-table th, .spec-table td { padding: 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 32%; font-weight: 700; background: var(--bg-alt); color: var(--text); }
.spec-table td, .spec-table th, .spec-table li { overflow-wrap: anywhere; }  /* a long identifier wraps at 375 pixels */
.spec-table ul { margin: 0; padding-left: 1.1rem; }
.spec-text { margin: 0; }
.spec-table li + li { margin-top: 0.25rem; }
/* Kit 0.3.2 (K16): on phones each spec is a label above its list, not two cramped columns (scope="row" stays). */
@media (max-width: 639px) {
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: auto; }
  .spec-table th { padding-bottom: 0; background: none; border-bottom: 0; }
  .spec-table tr + tr { border-top: 1px solid var(--line); }
  .spec-table td { border-bottom: 0; }
}

/* ---- Scrollable table (scroll_table block; also any hand-written table inside .table-wrap) --------------- */
.table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.table-wrap .data-table.wide { min-width: 38rem; }
.table-wrap caption { text-align: left; padding: 0.9rem 0.9rem 0; font-weight: 700; color: var(--text-muted); }
.table-wrap caption.sr-only { position: absolute; padding: 0; }
.table-wrap th, .table-wrap td { padding: 0.8rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { font-size: 0.875rem; letter-spacing: 0.01em; color: var(--text-muted); background: var(--bg-alt); font-variant-numeric: tabular-nums; }
.table-wrap tbody th { font-weight: 600; }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap .spec-table { border: 0; border-radius: 0; overflow: visible; }

/* ---- Code block (code_block block) and jump nav (jump_nav block) ------------------------------------------- */
pre.code { margin: 0; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 0.88rem; line-height: 1.55; max-width: 100%; }
pre.code code { background: none; padding: 0; border-radius: 0; font-size: inherit; }
pre.code.scroll { white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.tour-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.tour-nav a { display: inline-flex; align-items: center; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); font-weight: 600; font-size: 0.92rem; min-height: 44px; }
.tour-nav a:hover { border-color: var(--accent-c); }
/* Kit 0.3.2 (K20): the way back closes the last band, 3rem below its content. */
.back-link { margin: var(--space-12) 0 0; padding: 0; font-weight: 600; }
.code-wrap + .code-wrap, .prose + .code-wrap { margin-top: 1rem; }
.tour-item { margin-bottom: 4rem; scroll-margin-top: 90px; }
.tour-item h2 { font-size: 1.6rem; }

/* ---- Replaces, works with, MCP, clients ------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.chips li { max-width: 100%; overflow-wrap: anywhere; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; min-height: 36px; }
.chips li.mono { font-weight: 500; }
.link-cards { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .link-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.link-card { min-width: 0; overflow-wrap: anywhere; display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.25rem; }
.link-card strong { display: block; }
.link-card p { margin: 0.25rem 0 0; color: var(--text-muted); font-size: 0.97rem; }
.link-card a { font-weight: 700; display: inline-block; min-height: 24px; }
/* Kit 0.3.2 (K11): a card with a link is the link: the link's box is stretched over the card. */
.link-card { position: relative; }
.link-card:has(a) a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.link-card:has(a):hover { border-color: var(--accent-c); }
.link-card:has(a:focus-visible) { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.mcp-count { font-size: 2.2rem; font-weight: 700; color: var(--accent-text); line-height: 1; }
.mcp-group + .mcp-group { margin-top: 1.5rem; }

/* ---- Coming ----------------------------------------------------------- */
.coming-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
.coming-list li { min-width: 0; overflow-wrap: anywhere; padding: 1rem 1.25rem; border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface); }
.coming-list strong { display: block; }

/* ---- FAQ -------------------------------------------------------------- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 0.75rem; }
/* Kit 0.3.2 (K15): the kit's own marker at the end of the line, turning when open; a wrapped question never hangs. */
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; min-height: 44px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--micro) var(--ease); }
.faq details[open] > summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 1.25rem 1.1rem; color: var(--text-muted); overflow-wrap: anywhere; }
.faq details > div p { margin: 0 0 0.6rem; }

/* ---- Accessibility ---------------------------------------------------- */
.a11y-band { border-top: 4px solid var(--accent-c); }
.a11y-grid { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .a11y-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* min-width: 0 and overflow-wrap: anywhere keep a long evidence string (a file path) inside its card. */
.a11y-card { min-width: 0; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.25rem; height: 100%; }
.a11y-card h3 { margin-bottom: 0.4rem; }
.a11y-card p { margin: 0 0 0.5rem; color: var(--text-muted); font-size: 0.98rem; }
/* Kit 0.3.2 (K13, K14): sentence case, above the card's title. */
.status { display: inline-block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0; text-transform: none; padding: 0.1rem 0.55rem; border-radius: 999px; border: 1px solid currentColor; }
.a11y-card .status { margin: 0 0 var(--space-2); }
.status.supported { color: var(--ok); }
.status.partial, .status.untested { color: hsl(var(--warning)); }
.status.not-supported { color: hsl(var(--status-bad)); }
.evidence { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.92rem; color: var(--text-muted); }
.evidence li { min-width: 0; overflow-wrap: anywhere; }
.evidence li + li { margin-top: 0.2rem; }
.evidence-label { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.01em; color: var(--text-muted); margin: 0.5rem 0 0; }
.a11y-note + .a11y-note { margin-top: 2.5rem; }
.a11y-note h3 { font-size: 1.4rem; }
.a11y-note h4 { font-size: 1rem; }
.kit-checks { display: grid; gap: 0.75rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .kit-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: var(--space-12) 0 var(--space-6); font-size: 0.95rem; }
/* Kit 0.3.2 (design review K12, K13, K11): a fixed brand column beside the directory; the families flow in balanced
   columns, every name is a 44-pixel row, and flags are sentence case. Below 900 pixels: a grid of family names that
   open (two columns on phones, three on tablets). */
.footer-top { display: grid; gap: var(--space-8); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 16rem minmax(0, 1fr); } }
.footer-brand p { color: var(--text-muted); max-width: 28rem; }
.footer-fleet h2 { font-size: 0.875rem; letter-spacing: 0.01em; color: var(--text-muted); margin: 0 0 var(--space-2); }
.fleet-families { columns: 3; column-gap: var(--space-8); }
@media (min-width: 1100px) { .fleet-families { columns: 4; } }
.fleet-family { break-inside: avoid; margin: 0 0 var(--space-2); }
.fleet-family summary { list-style: none; display: flex; align-items: center; min-height: 32px; cursor: default; }
.fleet-family summary::-webkit-details-marker { display: none; }
.fleet-family h3 { font-size: 0.875rem; font-weight: 700; margin: 0; letter-spacing: 0; color: var(--text-muted); }
.fleet-family ul { list-style: none; margin: 0; padding: 0; }
/* Rows are 32 pixels with a pointer on wide screens (WCAG 2.5.8 asks 24) and 44 in the touch layout below 900. */
.fleet-family li { display: flex; align-items: center; gap: var(--space-2); min-height: 32px; break-inside: avoid; }
.fleet-family a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; }
.fleet-family .fleet-name { font-weight: 600; }
.fleet-flag { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 0.5rem; line-height: 1.5; }
@media (max-width: 899px) {
  .fleet-families { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-4); }
  .fleet-family { margin: 0; border-top: 1px solid var(--line); }
  .fleet-family[open] { grid-column: 1 / -1; }
  .fleet-family summary, .fleet-family li, .fleet-family a { min-height: 44px; }
  .fleet-family summary { cursor: pointer; justify-content: space-between; gap: var(--space-2); }
  .fleet-family summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
  .fleet-family[open] summary::after { transform: rotate(-135deg); }
  .fleet-family h3 { color: var(--text); font-weight: 600; }
  .fleet-family ul { columns: 3; column-gap: var(--space-4); padding-bottom: var(--space-2); }
}
@media (max-width: 599px) {
  .fleet-families { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-family ul { columns: 2; }
  /* The brand line repeats the copyright line below; phones keep the logo only (the live 375 footer was 932 to 977). */
  .footer-top { gap: var(--space-6); }
  .footer-brand p { display: none; }
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 1.5rem; list-style: none; margin: var(--space-6) 0 0; padding: var(--space-2) 0 0; border-top: 1px solid var(--line); }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; color: var(--text-muted); }
.footer-bottom p { margin: 0; }
.tm { font-size: 0.6em; font-weight: 400; vertical-align: super; opacity: 0.8; }

/* ---- Art hero (kit 0.3.0) -------------------------------------------------------------------------------------
   The vantalect.com split hero: the copy on Renkara Navy in both themes (57%), the page's artwork bleeding to the
   right edge (43%) under a scrim, and a photo notation along the bottom of the art. One <picture> holds the dark
   and light pair (blocks.jinja hero_picture; kit.js repoints it when the stored theme opposes the system). Every
   word of hero text is measured against the pixels behind it at 375 and 1440 in both themes (tests/hero_measure.mjs). */
.hero-art { padding: 0; background: var(--hero-panel); color: var(--hero-ink); border-bottom: 1px solid var(--line); }
.hero-art-grid { display: grid; grid-template-columns: minmax(0, 57fr) minmax(0, 43fr); min-height: clamp(34rem, 70vh, 43rem); }
.hero-art-copy {
  display: flex; flex-direction: column; justify-content: center; min-width: 0;
  padding: clamp(4rem, 7vw, 7rem) clamp(2rem, 5vw, 5.5rem) clamp(4rem, 6vw, 6rem) max(var(--shell-pad), calc((100vw - var(--shell)) / 2 + var(--shell-pad)));
}
.hero-art .eyebrow { color: var(--hero-accent); }
.hero-art h1 { color: var(--hero-ink); font-size: clamp(2.6rem, 4.6vw, 4.75rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em; word-spacing: 0.05em; max-width: 16ch; margin: 0; }
.hero-art h1 em { color: var(--hero-accent); }
.hero-art .lead { color: var(--hero-muted); font-size: clamp(1.0625rem, 1.2vw, 1.25rem); line-height: 1.65; max-width: 36rem; margin: var(--space-6) 0 0; }
.hero-art .actions { margin-top: var(--space-8); }
.hero-art .btn-primary { background: var(--hero-ink); color: var(--hero-panel); }
.hero-art .btn-primary:hover { background: #ffffff; color: var(--hero-panel); filter: none; }
.hero-art .btn-ghost { background: transparent; color: var(--hero-ink); border-color: rgba(248, 250, 252, 0.55); }
.hero-art .btn-ghost:hover { color: var(--hero-ink); border-color: var(--hero-ink); }
.hero-art .tag { background: rgba(248, 250, 252, 0.08); color: var(--hero-ink); border: 1px solid rgba(248, 250, 252, 0.3); }
.hero-art a.tag { text-decoration: none; }
.hero-art :focus-visible { outline-color: var(--hero-ink); }
/* hero-inline:start (kit 0.3.1) Inline elements in the hero copy sit on the navy panel in both themes, so the page's
   own `code`, links, and strong text (dark ink, accent text) would be unreadable there (a lattice lead measured
   1.07:1). Each is restyled for the panel; the measured contrast is >= 4.5:1 and tests/test_hero.py holds it. */
.hero-art :is(strong, b) { color: var(--hero-ink); font-weight: 700; }
.hero-art :is(.lead, .actions) em { color: var(--hero-ink); font-style: italic; }
.hero-art :is(code, kbd, samp) { background: rgba(248, 250, 252, 0.1); color: var(--hero-ink); border: 0; border-radius: 6px; padding: 0.1em 0.4em; }
.hero-art kbd { font-family: var(--font-mono); font-size: 0.88em; border-bottom: 2px solid rgba(248, 250, 252, 0.2); }
.hero-art mark { background: rgba(248, 250, 252, 0.18); color: var(--hero-ink); padding: 0 0.2em; border-radius: 3px; }
.hero-art :is(abbr, small, s, del, ins, sub, sup) { color: inherit; }
.hero-art a:not(.btn):not(.tag) { color: var(--hero-ink); text-decoration: underline; text-decoration-color: var(--hero-accent); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.hero-art a:not(.btn):not(.tag):visited { color: var(--hero-muted); }
.hero-art a:not(.btn):not(.tag):hover { color: #ffffff; text-decoration-color: #ffffff; }
/* hero-inline:end */
.hero-art-media { position: relative; overflow: hidden; min-width: 0; background: #0f172a; }
.hero-art-pic { position: absolute; inset: 0; display: block; }
.hero-art-img { display: block; width: 100%; height: 100%; max-width: none; }
.hero-art-img { object-fit: cover; object-position: 50% 50%; animation: hero-art-in var(--transition) var(--ease) both; }
/* The scrim: a short fade into the panel along the left edge, and a deep base under the notation, strong enough
   for white text on the palest daylight art. */
.hero-art-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(27, 42, 74, 0.32), rgba(27, 42, 74, 0) 28%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.72) 16%, rgba(15, 23, 42, 0) 42%);
}
/* Kit 0.3.2 (design review K04): the art carries only a small credit, bottom right. The rail of stops (a line with end
   dots) renders only for a site that gives two or three real stops (Custom.HeroNotation as a list), never the eyebrow. */
.hero-credit { position: absolute; z-index: 1; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(0.75rem, 2vw, 1.5rem); margin: 0; color: rgba(248, 250, 252, 0.78); font-size: 0.8125rem; font-weight: 600; line-height: 1.4; text-shadow: 0 1px 6px rgba(15, 23, 42, 0.6); }
.hero-notation {
  position: absolute; z-index: 1; left: clamp(1.25rem, 3vw, 3rem); right: clamp(1.25rem, 3vw, 3rem); bottom: clamp(1.25rem, 3.5vw, 3rem);
  display: flex; justify-content: space-between; gap: var(--space-4); padding-top: 1rem;
  border-top: 1px solid rgba(248, 250, 252, 0.75); color: #ffffff; font-size: 0.8125rem; font-weight: 600; line-height: 1.4;
  text-shadow: 0 1px 6px rgba(15, 23, 42, 0.6);
}
.hero-notation::before, .hero-notation::after { content: ""; position: absolute; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: #ffffff; }
.hero-notation::before { left: 0; }
.hero-notation::after { right: 0; }
.hero-notation span:last-child { text-align: right; }
@keyframes hero-art-in { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }
@media (max-width: 1150px) {
  .hero-art-grid { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); }
  .hero-art-copy { padding-right: 4vw; }
  .hero-art h1 { font-size: clamp(2.6rem, 4.9vw, 4.25rem); }
}
/* Under 960 pixels (kit 0.3.2, K07): the copy, then the artwork as a 16:9 banner no taller than 38% of the screen. */
@media (max-width: 959px) {
  .hero-art-grid { display: flex; flex-direction: column; min-height: 0; }
  .hero-art-copy { padding: var(--space-12) var(--shell-pad) var(--space-12); }
  .hero-art-media { aspect-ratio: 16 / 9; max-height: 38vh; }
  .hero-notation { font-size: 0.75rem; }
  .hero-notation span:last-child { max-width: 16ch; }
}
@media (max-width: 760px) { .hero-art h1 { font-size: clamp(2.2rem, 10.5vw, 3.25rem); max-width: 16ch; } }

/* ---- Small screens, motion, contrast preferences ---------------------- */
@media (max-width: 480px) {
  body { font-size: 1rem; }
  .band { padding: var(--space-16) 0; }
  .hero { padding-top: var(--space-12); }
  .actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn-primary, .skip-link { border: 2px solid ButtonText; }
  .hero-art-media::after { display: none; }
  .hero-notation { border-top-color: CanvasText; }
  .card, .link-card, .a11y-card, .flow li, .notice { border: 1px solid CanvasText; }
}
