/* Hark's design tokens and component styles. Each component's rules follow its @component comment. style-gates: data */

/* @component foundations */
/* Every component switches layout at one of three widths: 600px, below which a page takes a phone's
   spacing; 761px, from which two-up components (stats, checklists, pairs) sit side by side; and 900px,
   from which heads, steps, timelines, cards and the hero's callout take their desktop layout. Media
   queries cannot read custom properties, so each query writes one side of those widths, and
   TestKitStylesheetsShareThreeBreakpoints holds every kit file to them. */
:root {
  color-scheme: light dark;

  --text-primary: light-dark(#1d1d1f, #f5f5f7);         /* body text */
  --text-secondary: light-dark(#636366, #a1a1a6);       /* supporting grey text */
  --text-tertiary: light-dark(#1d1d1f4d, #f5f5f74d);    /* hollow dots, faint marks; never body text */
  --text-primary-on: light-dark(#f5f5f7, #1d1d1f);      /* text on --fill-primary */
  --text-secondary-on: light-dark(#aeaeb2, #5c5c60);    /* grey text on --fill-primary */
  --fill-primary: light-dark(#1d1d1f, #f5f5f7);         /* the strong fill: solid chips, the nav, the badge */
  --fill-primary-on: light-dark(#f5f5f7, #1d1d1f);      /* the page background */
  --fill-secondary: light-dark(#1d1d1f80, #f5f5f780);
  --fill-tertiary: light-dark(#e8e8ea, #2a2a2d);        /* the grey card, panel and row tint */
  --fill-segment: light-dark(#3a3a3c, #e2e2e4);         /* the nav's tab track */
  --fill-system-green: #00a665;                         /* status: done, ready */
  --fill-system-orange: #ff4d00;                        /* status: now, current */
  --fill-system-red: light-dark(#da2f35, #f1555b);      /* status: blocked, error */
  --transparent-primary: light-dark(#1d1d1f4d, #f5f5f74d);
  --stroke-primary: light-dark(#1d1d1f24, #f5f5f724);   /* strong hairline */
  --stroke-secondary: light-dark(#1d1d1f12, #f5f5f712); /* faint hairline between rows */
  --stroke-primary-on: light-dark(#f5f5f71a, #1d1d1f1a);
  --stroke-composer: light-dark(#f5f5f780, #1d1d1f80);  /* the callout's glass edge */
  --stroke-system-orange: #ff4d0026;
  --hover-wash: light-dark(#1d1d1f0d, #f5f5f70d);
  --hover-wash-primary-on: light-dark(#f9f9fa26, #1d1d1f14);

  /* The hero is light text over a dark photo in both themes. */
  --hero-surface: #161f39;
  --hero-text: #f5f5f7;
  --hero-text-muted: #f5f5f7cc;
  --hero-scrim-strong: rgb(22 31 57 / 0.78);
  --hero-scrim-soft: rgb(22 31 57 / 0.3);
  --hero-scrim-side: rgb(22 31 57 / 0.45);
  --hero-glass: rgb(22 31 57 / 0.42);
  --hero-glass-faint: rgb(22 31 57 / 0.35);
  --hero-glass-stroke: rgb(245 245 247 / 0.28);

  --mat-regular: light-dark(rgb(255 255 255 / 0.56), rgb(29 29 31 / 0.55));
  --mat-thin: light-dark(rgb(255 255 255 / 0.22), rgb(29 29 31 / 0.4));
  --mat-agent: light-dark(rgb(255 255 255 / 0.84), rgb(29 29 31 / 0.66));
  --mat-inverse: color-mix(in srgb, var(--fill-primary) 86%, transparent);  /* the nav: dark on light, light on dark */
  --hark-blur: blur(50px) saturate(1.6);
  --hark-shadow: 0 8px 40px #1d1d1f1f;

  --sans: "GT Standard", "GT Standard L", "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --lh: 1.3;                                            /* every text style is 130% */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 600;
  --size-caption: 12px;                                 /* the smallest text allowed */
  --size-meta: 13px;
  --size-small: 14px;
  --size-body: 15px;
  --size-prose: 16px;
  --size-heading: 20px;
  --size-figure: clamp(24px, 3vw, 32px);
  --size-title: clamp(26px, 3vw, 32px);
  --size-display: clamp(34px, 5vw, 48px);
  --size-lede: clamp(16px, 1.7vw, 20px);

  --type-caption: var(--weight-regular) var(--size-caption)/var(--lh) var(--sans);
  --type-tag: var(--weight-medium) var(--size-caption)/var(--lh) var(--sans);
  --type-small: var(--weight-regular) var(--size-small)/var(--lh) var(--sans);
  --type-label: var(--weight-medium) var(--size-small)/var(--lh) var(--sans);
  --type-body: var(--weight-regular) var(--size-body)/var(--lh) var(--sans);
  --type-body-strong: var(--weight-medium) var(--size-body)/var(--lh) var(--sans);
  --type-heading: var(--weight-medium) var(--size-heading)/var(--lh) var(--sans);
  --type-lede: var(--weight-medium) var(--size-lede)/var(--lh) var(--sans);
  --type-figure: var(--weight-regular) var(--size-figure)/var(--lh) var(--sans);
  --type-title: var(--weight-regular) var(--size-title)/var(--lh) var(--sans);
  --type-display: var(--weight-medium) var(--size-display)/var(--lh) var(--sans);
  --type-numeral: var(--weight-regular) 48px/1 var(--sans);

  --r-s: 12px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;
  --r-pill: 100px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-quick: 160ms;

  --page-max: 1120px;
  --gutter: clamp(16px, 3vw, 32px);                     /* the page's side padding */
  --tap: 44px;                                          /* the smallest touch target */
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fill-primary-on);
  color: var(--text-primary);
  font: var(--type-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
figure { margin-inline: 0; }
a { color: inherit; }
b, strong { font-weight: var(--weight-bold); }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
small { font-size: max(var(--size-caption), 0.85em); }
.sub { color: var(--text-secondary); }

:focus-visible { outline: 2px solid var(--fill-primary); outline-offset: 3px; border-radius: 6px; }

/* @component page */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
  padding-block: 12px 64px; /* 16/11/2026 (Hani): was 40px — footer taps failed at max scroll (Safari bottom bar + back-to-top button cover the bottom ~70px); +24px ≈ one line, lifts the footer clear */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }

.glass {
  background: var(--mat-inverse);
  -webkit-backdrop-filter: var(--hark-blur);
  backdrop-filter: var(--hark-blur);
  border: 1px solid var(--stroke-primary-on);
}
.nav {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  z-index: 20;
  justify-self: center;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--fill-primary-on) 35%, transparent);
  -webkit-backdrop-filter: blur(50px) saturate(1.8) brightness(1.2);
  backdrop-filter: blur(50px) saturate(1.8) brightness(1.2);
  border: 1px solid color-mix(in srgb, var(--fill-primary-on) 55%, transparent);
  box-shadow: var(--hark-shadow), inset 0 1px 0 rgba(255,255,255,0.5);
}
.nav :focus-visible { outline-color: var(--fill-primary-on); }
.seg {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: var(--r-pill);
  background: transparent;
}
.seg::-webkit-scrollbar { display: none; }
.seg a {
  flex: none;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font: var(--type-label);
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}
.seg a:hover { color: var(--text-primary); }
/* The active tab carries its own fill so its text is measured against it. */
.seg a[aria-current="true"] { background: var(--fill-primary); color: var(--text-primary-on); }
.theme-btn {
  flex: none;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--hover-wash-primary-on);
  color: var(--text-primary);
  cursor: pointer;
}
.theme-btn:hover { box-shadow: inset 0 0 0 100px var(--hover-wash-primary-on); }
.theme-btn::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; background: linear-gradient(to right, light-dark(currentColor, transparent) 50%, light-dark(transparent, currentColor) 50%); }
@media (max-width: 599px) {
  .seg a { display: flex; align-items: center; min-height: var(--tap); }
  .theme-btn { width: var(--tap); height: var(--tap); }
}

/* @component footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke-secondary);
  font-size: var(--size-small);
  color: var(--text-secondary);
}
.foot strong { color: var(--text-primary); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px; }
.foot nav a {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--fill-tertiary);
  color: var(--text-primary);
  font: var(--type-tag);
  text-decoration: none;
}
.foot nav a:hover { box-shadow: inset 0 0 0 100px var(--hover-wash); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--r-xl);
  background: var(--fill-primary);
  color: var(--text-primary-on);
  box-shadow: var(--hark-shadow);
  font: var(--weight-medium) var(--size-body)/1.1 var(--sans);
  text-decoration: none;
}
.badge:hover { box-shadow: var(--hark-shadow), inset 0 0 0 100px var(--hover-wash-primary-on); }
.hark-mark { display: inline-grid; place-items: center; }
.hark-mark svg { display: block; }
@media (max-width: 599px) {
  .foot nav a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); }
  .badge { min-height: var(--tap); }
}

/* @component chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: var(--r-pill);
  font: var(--type-tag);
  max-width: 100%;
  background: var(--fill-tertiary);
  color: var(--text-secondary);
  vertical-align: middle;
}
.chip::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1.5px var(--text-tertiary);
}
.chip--solid { background: var(--fill-primary); color: var(--text-primary-on); }
.chip--solid::before { background: var(--fill-system-green); box-shadow: none; }
td .chip { white-space: nowrap; }
/* @component dot */
.dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font: var(--type-tag);
  color: var(--text-primary);
}
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--fill-system-green); }
tbody th .dot { display: flex; width: fit-content; }
/* @component pill */
.pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: var(--fill-tertiary);
  color: var(--text-secondary);
  font: var(--type-tag);
  white-space: normal;
  vertical-align: 1px;
}
/* @component button, link and links */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: var(--r-s);
  background: var(--fill-primary-on);
  color: var(--text-primary);
  border: 1px solid var(--stroke-primary);
  font: var(--type-tag);
  text-decoration: none;
  max-width: 100%;
  transition: box-shadow var(--dur-quick) ease;
}
.btn:hover { box-shadow: inset 0 0 0 100px var(--hover-wash); }
/* 18/11/2026 (Hani): language boxes directly under the nav bar — plain
   links to the English homepage and the German/Spanish genre pages.
   NOT .tab: the homepage tab JS would treat .tab clicks as tab switches. */
.lang-boxes { display: flex; gap: 8px; justify-content: center; margin: 16px auto 4px; flex-wrap: wrap; }
.lang-box.active { background: var(--fill-tertiary); color: var(--text-primary); border-color: var(--text-primary); font-weight: 600; }
.btn[target="_blank"]::after { content: "\2197"; font-size: 11px; color: var(--text-secondary); }
.link {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--stroke-primary);
  text-underline-offset: 3px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.link:hover { text-decoration-color: currentColor; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
@media (pointer: coarse), (max-width: 599px) { .btn { min-height: var(--tap); padding-inline: 14px; } }

/* A button that asks Hark is the page's primary capsule. Once it sends, Hark
   writes a check and "Sent to Hark" into it, and it turns secondary. A press
   that does not send shows a short notice in place of its words for a moment. */
.btn[data-hark-action] {
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--fill-primary);
  color: var(--text-primary-on);
  font: var(--type-body-strong);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow var(--dur-quick) ease, transform var(--dur-quick) ease;
}
.btn[data-hark-action]:hover { box-shadow: inset 0 0 0 100px var(--hover-wash-primary-on); }
.btn[data-hark-action]:active { transform: scale(0.97); }
.btn[data-hark-action] svg { flex: none; }
.btn[data-hark-action][data-hark-state="sent"] { background: var(--fill-tertiary); color: var(--text-primary); box-shadow: none; }

[data-hark-action][data-hark-state="sending"] { opacity: 0.6; pointer-events: none; }
[data-hark-action][data-hark-state="sent"] { pointer-events: none; cursor: default; }
@media (max-width: 599px) {
  .link { display: inline-flex; align-items: center; min-width: var(--tap); min-height: var(--tap); margin: -13px 0; vertical-align: middle; }
}
/* @component text and fineprint */
.prose { display: grid; gap: 12px; max-width: 68ch; font-size: var(--size-prose); }
.fineprint { font-size: var(--size-small); color: var(--text-secondary); max-width: 70ch; }
/* @component hero */
.hero {
  position: relative;
  min-height: clamp(320px, 46vh, 480px);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--hero-text);
  isolation: isolate;
  box-shadow: var(--hark-shadow);
  background: var(--hero-surface);
}
/* Without a photo the hero is as tall as its copy, so the callout sits beside the copy instead of over it. */
.hero:not(:has(.hero__img)) { min-height: 0; background: var(--hero-surface) center / cover no-repeat; }
.hero:not(:has(.hero__img))::after { background: linear-gradient(to right, var(--hero-scrim-side) 0%, transparent 60%); }
@media (min-width: 900px) {
  .hero:not(:has(.hero__img)) > .callout { position: static; flex: none; align-self: flex-start; margin: clamp(16px, 2.4vw, 24px) clamp(16px, 2.4vw, 24px) clamp(16px, 2.4vw, 24px) auto; }
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 60%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--hero-scrim-strong) 0%, var(--hero-scrim-soft) 42%, transparent 66%),
    linear-gradient(to right, var(--hero-scrim-side) 0%, transparent 60%);
}
.hero__copy {
  display: grid;
  gap: 14px;
  max-width: 40rem;
  padding: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(28px, 3.4vw, 44px);
}
.hero__eyebrow {
  justify-self: start;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--hero-glass);
  border: 1px solid var(--hero-glass-stroke);
  -webkit-backdrop-filter: var(--hark-blur);
  backdrop-filter: var(--hark-blur);
  font: var(--type-label);
}
.hero h1 { font: var(--type-display); letter-spacing: 0; }
.hero h1 em { font-style: normal; }
.hero__sub { font: var(--type-lede); max-width: 34ch; }
.hero__meta { font-size: var(--size-small); color: var(--hero-text-muted); }
.hero__credit {
  position: absolute;
  right: clamp(20px, 3vw, 32px);
  bottom: 16px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--hero-glass-faint);
  -webkit-backdrop-filter: var(--hark-blur);
  backdrop-filter: var(--hark-blur);
  font: var(--type-caption);
  color: var(--hero-text-muted);
}
/* A callout overlays the photo's top corner, so the hero keeps room for it above the copy. */
@media (min-width: 900px) { .hero:has(> .callout) { min-height: clamp(420px, 56vh, 560px); } }
.hero > .callout {
  position: absolute;
  top: clamp(16px, 2.4vw, 24px);
  right: clamp(16px, 2.4vw, 24px);
  width: min(320px, calc(100% - 32px));
}
@media (max-width: 899px) {
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; min-height: 0; }
  .hero__img { object-position: 22% 50%; }
  .hero__copy { padding-top: 140px; padding-bottom: 28px; }
  .hero:not(:has(.hero__img)) .hero__copy { padding-top: clamp(24px, 4vw, 48px); }
  .hero__credit { top: 16px; right: 16px; bottom: auto; }
  .hero > .callout { position: static; width: auto; margin: 0 12px 12px; }
}
/* On a phone the title starts higher, so the first screen reaches the stats. */
@media (max-width: 599px) { .hero__copy { padding-top: 88px; padding-bottom: 20px; } }
/* @component callout */
.callout {
  max-width: 420px;
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
  border-radius: var(--r-l);
  background: var(--mat-agent);
  -webkit-backdrop-filter: var(--hark-blur);
  backdrop-filter: var(--hark-blur);
  border: 1px solid var(--stroke-composer);
  box-shadow: var(--hark-shadow);
  color: var(--text-primary);
  font-size: var(--size-small);
}
.callout__head { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-weight: var(--weight-medium); }
.callout__head svg { color: var(--text-primary); }
.callout__lead { font-size: var(--size-body); }
.callout .fineprint { font-size: var(--size-caption); }
.callout .btn { justify-self: start; }
/* @component stats */
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-top: 8px; }
.stat {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 4px;
  padding: 12px 24px;
  border-left: 1px solid var(--stroke-secondary);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__fig { font: var(--type-figure); font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--size-small); color: var(--text-secondary); }
@media (max-width: 760px) {
  .stats { grid-auto-flow: row; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; padding-top: 0; }
  .stat { grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; gap: 12px; padding: 14px 0; border-left: 0; border-top: 1px solid var(--stroke-secondary); }
  .stat:first-child { border-top: 0; }
}
/* On a phone the stats sit two to a row, figure over label. */
@media (max-width: 599px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; }
  .stat { grid-column: auto; grid-template-columns: none; gap: 2px; padding: 12px 0; }
  .stat:nth-child(2) { border-top: 0; }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--stroke-secondary); }
  .stat__fig { font-size: 26px; line-height: 1.15; }
  .stat__label { font-size: var(--size-caption); }
}
/* @component section */
.section {
  padding-block: clamp(40px, 6vw, 72px) clamp(16px, 2vw, 24px);
  border-top: 1px solid var(--stroke-secondary);
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 72px); /* Clears the sticky .nav: its top offset plus its tallest height, 56px. */
  min-width: 0;
}
.section > * + * { margin-top: clamp(20px, 2.4vw, 28px); }
.section > .head + * { margin-top: 0; }
.head {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 10px 40px;
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.head__eyebrow { grid-column: 1 / -1; font: var(--type-label); color: var(--text-secondary); }
.head h2 { font: var(--type-title); }
.head__sub { justify-self: end; font-size: var(--size-body); color: var(--text-secondary); max-width: 44ch; text-align: right; }
@media (max-width: 899px) { .head { grid-template-columns: 1fr; } .head__sub { justify-self: start; text-align: left; } }
/* @component table */
.table-wrap { margin-inline: -12px; padding-inline: 12px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font: var(--type-small); font-variant-numeric: tabular-nums; }
caption { text-align: left; font: var(--type-caption); color: var(--text-secondary); padding: 0 0 10px; }
th, td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--stroke-secondary); }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
thead th {
  font: var(--type-tag);
  color: var(--text-secondary);
  border-bottom-color: var(--stroke-primary);
  padding-top: 0;
  padding-bottom: 8px;
  white-space: nowrap;
}
tbody th { font-weight: var(--weight-bold); }
tbody tr:last-child > * { border-bottom: 0; }
.rowhead { white-space: nowrap; }
td small, th small { display: block; font: var(--type-caption); color: var(--text-secondary); margin-top: 2px; }
td.num { font-weight: var(--weight-bold); white-space: nowrap; }
td.num small { white-space: normal; }
.muted { color: var(--text-secondary); }
tr.is-highlight > * { background: var(--fill-tertiary); }
tr.is-highlight > :first-child { box-shadow: -12px 0 var(--fill-tertiary); }
tr.is-highlight > :last-child { box-shadow: 12px 0 var(--fill-tertiary); }
.after-table { margin-top: 20px; padding-inline: 12px; }
@media (max-width: 599px) {
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; }
  .table-wrap thead { display: none; }
  .table-wrap caption { display: block; text-align: left; }
  /* A row is its name on top, then its cells wrapped three or four to a line, each label over its value. */
  .table-wrap tbody tr { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 0; border-bottom: 1px solid var(--stroke-secondary); }
  .table-wrap tbody tr.is-highlight { margin-inline: -12px; padding-inline: 12px; background: var(--fill-tertiary); }
  .table-wrap tbody tr.is-highlight > * { background: none; box-shadow: none; }
  .table-wrap tbody tr > * { border-bottom: 0; padding: 0; }
  .table-wrap tbody tr > th { flex: 1 0 100%; }
  .table-wrap tbody td.is-empty { display: none; }
  .table-wrap tbody td[data-label]::before { content: attr(data-label); display: block; color: var(--text-secondary); font-size: var(--size-caption); font-weight: var(--weight-regular); line-height: 1.3; }
  .table-wrap tbody td:has(> .link:only-child) { align-self: end; }
  .table-wrap tbody td:has(> .link:only-child)::before { display: none; }
  .rowhead { white-space: normal; }
}
/* @component compare */
.compare { margin-inline: -12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.compare table { table-layout: fixed; min-width: calc(var(--compare-cols, 3) * 200px); }
.compare th, .compare td { scroll-snap-align: start; padding-inline: 12px; }
.compare thead th { font: var(--type-body-strong); color: var(--text-primary); white-space: normal; padding-top: 0; padding-bottom: 14px; border-bottom-color: var(--stroke-secondary); }
/* On light tiles a white product backdrop blends into the grey. */
.compare__media { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: 100%; aspect-ratio: 4 / 3; max-height: 240px; margin: 0 0 12px; padding: 16px; border-radius: var(--r-m); background: var(--fill-tertiary); }
.compare__media img { max-width: 100%; max-height: 100%; mix-blend-mode: multiply; }
/* A photo of a place or a room fills its frame instead of fitting whole. */
.compare .compare__media.compare__media--photo { padding: 0; overflow: hidden; background: var(--fill-tertiary); }
.compare .compare__media.compare__media--photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; mix-blend-mode: normal; }
.compare thead th > .chip { display: flex; width: fit-content; margin-top: 8px; }
.compare:has(.compare__media) thead th:not(:has(.compare__media))::before { content: ""; display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 240px; margin-bottom: 12px; border-radius: var(--r-m); background: var(--fill-tertiary); }
:root[data-theme="dark"] .compare__media img { mix-blend-mode: normal; border-radius: var(--r-s); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .compare__media img { mix-blend-mode: normal; border-radius: var(--r-s); } }
/* The header column shrinks to nothing on screen but stays in the table, so screen readers keep each value's row header. */
.js .compare tbody th[scope="row"], .js .compare thead td:first-child { width: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.js .compare td[data-label]::before { content: attr(data-label); content: attr(data-label) / ""; display: block; margin-bottom: 4px; font: var(--type-caption); color: var(--text-secondary); }
/* On a phone two options show side by side, and the rest are a swipe away. */
@media (max-width: 599px) { .compare table { min-width: calc(var(--compare-cols, 3) * 46vw); } .compare th, .compare td { padding-inline: 8px; } }
/* @component steps */
.step {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(220px, 0.78fr);
  gap: 16px 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--stroke-secondary);
}
.step > * { min-width: 0; }
.steps > .step:last-child { border-bottom: 0; }
.step p + p { margin-top: 8px; }
.step__num { font: var(--type-numeral); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.step__eyebrow { margin-top: 8px; font: var(--type-label); color: var(--text-secondary); }
.step h3 { font: var(--type-heading); margin-bottom: 12px; }
.step__pills { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.step__pills li {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--stroke-primary);
  font-size: var(--size-meta);
  color: var(--text-secondary);
  max-width: 100%;
}
.step__pills b { color: var(--text-primary); font-weight: var(--weight-bold); }
.step__panel {
  align-self: start;
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--r-m);
  background: var(--fill-tertiary);
  font-size: var(--size-small);
}
.step__panel dt { font-size: var(--size-caption); color: var(--text-secondary); margin-bottom: 2px; }
.step__panel dd { margin: 0 0 12px; }
.step__panel dd:last-child { margin-bottom: 0; }
.step__panel .fineprint { display: block; margin-top: 6px; font-size: var(--size-caption); }
.step__panel .btn { margin-top: 8px; }
.step__figure { grid-column: 2 / span 2; margin: 0; }
.step__figure img { width: 100%; height: clamp(200px, 26vw, 320px); object-fit: cover; border-radius: var(--r-m); }
.step__figure figcaption { font-size: var(--size-caption); color: var(--text-secondary); padding-top: 10px; }
@media (min-width: 900px) {
  .step:not(:has(> .step__panel)) { grid-template-columns: 112px minmax(0, 1fr); }
  .step:not(:has(> .step__panel)) > .step__figure { grid-column: 2; }
}
@media (max-width: 899px) {
  .step { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .step__figure { grid-column: 1; }
  .step__intro { display: flex; align-items: baseline; gap: 14px; }
  .step__num { font-size: 40px; }
  .step__eyebrow { margin-top: 0; }
}
/* @component checklist */
.checklist { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr); column-gap: 20px; list-style: none; margin: 0; padding: 0; }
.checklist:not(:has(.checklist__note)) { grid-template-columns: minmax(0, 1fr) auto; }
.checklist > li {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  row-gap: 8px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--stroke-secondary);
}
.checklist > li:last-child { border-bottom: 0; }
.checklist__item { grid-column: 1; font-weight: var(--weight-bold); }
.checklist > li > .chip { grid-column: 2; justify-self: start; }
.checklist:not(:has(.checklist__note)) > li > .chip { justify-self: end; }
.checklist__item small { display: block; font-weight: var(--weight-regular); font-size: var(--size-caption); color: var(--text-secondary); margin-top: 2px; }
.checklist__note { grid-column: 3; font-size: var(--size-small); color: var(--text-secondary); }
.checklist > li.is-done .checklist__item { text-decoration: line-through; text-decoration-color: var(--text-tertiary); }
/* A row's own button sits in a last column, so each booking is pressed where it is listed. */
.checklist:has(> li > .btn) { grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr) auto; }
.checklist:has(> li > .btn):not(:has(.checklist__note)) { grid-template-columns: minmax(0, 1fr) auto auto; }
.checklist > li > .btn { grid-column: -2; justify-self: end; }
.checklist > li > .btn[data-hark-action] { min-height: 36px; padding: 0 16px; font: var(--type-label); white-space: nowrap; }
@media (max-width: 760px) {
  .checklist, .checklist:has(> li > .btn), .checklist:has(> li > .btn):not(:has(.checklist__note)) { grid-template-columns: minmax(0, 1fr) auto; }
  .checklist > li > .chip { justify-self: end; }
  .checklist__note { grid-column: 1 / -1; }
  .checklist > li:has(> .btn) > .checklist__note { grid-column: 1; }
  .checklist > li > .btn { grid-column: 2; justify-self: end; }
}
/* @component breakdown */
.breakdown { max-width: 720px; }
@media (min-width: 900px) { .section > .breakdown, .section > .aside { max-width: calc((100% - 40px) * 1.65 / 2.65); } }
.breakdown dl { margin: 0; }
.breakdown .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--stroke-secondary);
}
.breakdown dt { font-size: var(--size-body); }
.breakdown dt small { display: block; color: var(--text-secondary); font-size: var(--size-meta); margin-top: 2px; }
.breakdown dd { margin: 0; font-weight: var(--weight-bold); font-size: var(--size-body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.breakdown .row--total {
  margin-top: -1px;
  padding: 18px 0 0;
  border-top: 1px solid var(--stroke-primary);
  border-bottom: 0;
  flex-wrap: wrap;
  align-items: baseline;
}
.breakdown .row--total dt { font: var(--type-body-strong); }
.breakdown .row--total dd { font: var(--type-figure); white-space: normal; }
.breakdown .fineprint { margin-top: 16px; }
/* @component pair */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.pair:has(> :is(.callout, .aside):last-child) { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); column-gap: 40px; }
.pair > .callout { max-width: none; }
@media (max-width: 760px) { .pair, .pair:has(> :is(.callout, .aside):last-child) { grid-template-columns: minmax(0, 1fr); } }
/* @component timeline */
.timeline { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; column-gap: 28px; list-style: none; margin-inline: 0; margin-bottom: 0; padding: 0; }
.timeline > li {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  row-gap: 8px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--stroke-secondary);
}
.timeline > li:first-child { padding-top: 0; }
.timeline > li:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline__when { display: flex; align-items: baseline; gap: 12px; font-weight: var(--weight-bold); }
.timeline__when::before {
  content: "";
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--text-tertiary);
  transform: translateY(-1px);
}
.timeline > li.is-current .timeline__when::before { background: var(--fill-system-orange); box-shadow: 0 0 0 4px var(--stroke-system-orange); }
.timeline > li > p:has(> .chip:only-child) { justify-self: end; }
.timeline__what ul { margin: 0; padding-left: 18px; }
.timeline__what li { margin-bottom: 4px; }
.timeline__what li:last-child { margin-bottom: 0; }
.timeline__what p + p { margin-top: 6px; }
@media (max-width: 899px) {
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline > li > p:has(> .chip:only-child) { justify-self: start; }
  .timeline__what, .timeline > li > p:last-child { padding-left: 20px; }
}
/* @component cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards > div { padding: 22px 24px; border-radius: var(--r-m); background: var(--fill-tertiary); }
.cards h3 { font: var(--type-heading); margin-bottom: 10px; }
.cards ul { margin: 0; padding: 0; list-style: none; }
.cards li { padding: 10px 0; border-bottom: 1px solid var(--stroke-secondary); }
.cards li:last-child { border-bottom: 0; padding-bottom: 0; }
.cards .quote { font: var(--type-heading); margin-bottom: 8px; text-wrap: balance; }
@media (max-width: 899px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .cards { gap: 12px; } .cards > div { padding: 18px; } .cards h3 { margin-bottom: 4px; } }
/* @component aside */
.aside {
  max-width: 62ch;
  padding: 20px 22px;
  border: 1.5px dashed var(--stroke-primary);
  border-radius: var(--r-m);
}
.aside h3 { font: var(--type-heading); margin-bottom: 6px; }
/* @component chart */
.chart { margin-bottom: 8px; padding: 20px 20px 12px; border-radius: var(--r-m); background: var(--fill-tertiary); overflow-x: auto; }
.chart__cap { font-size: var(--size-caption); color: var(--text-secondary); margin-bottom: 12px; }
/* @component figure */
.band { margin-inline: 0; margin-bottom: 0; }
.band img { width: 100%; height: clamp(240px, 40vw, 520px); object-fit: cover; border-radius: var(--r-xl); }
.band figcaption { font-size: var(--size-caption); color: var(--text-secondary); padding: 10px 4px 0; }
.is-portrait img { width: auto; max-width: 100%; height: clamp(320px, 48vw, 560px); }

/* @component book cards (.x-book) — shared card layout. These rules used to
   live only in the homepage's inline <style>, so author pages (which reuse
   the same .x-book markup) rendered as giant stacked covers. Copied verbatim
   from the homepage 11/11/2026; the homepage and store pages keep their own
   identical inline copies, so this changes nothing there. */
.x-books { display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; gap: 16px; padding-bottom: 8px; scrollbar-width: none; }
.x-books::-webkit-scrollbar { display: none; }
.x-book { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 0 0 200px; scroll-snap-align: start; }
.x-book__cover { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--stroke-secondary); background: var(--fill-tertiary); margin-bottom: 6px; }
.x-book__nocover { display: grid; place-items: center; padding: 16px; text-align: center; font: var(--type-heading); color: var(--text-primary); }
.x-book h3 { font: var(--type-label); color: var(--text-primary); overflow-wrap: anywhere; }
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--stroke-primary); background: var(--fill-primary); color: var(--text-primary-on); display: flex; align-items: center; justify-content: center; box-shadow: var(--hark-shadow); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--dur-quick) var(--ease-out), transform var(--dur-quick) var(--ease-out), visibility var(--dur-quick) var(--ease-out); }
.back-to-top--visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-2px); }
.back-to-top svg { display: block; }
@media (max-width: 600px) { .back-to-top { right: 16px; bottom: 16px; } }
.x-book > a { color: inherit; text-decoration: none; }
.x-book__sub { font: var(--type-caption); color: var(--text-secondary); }
.x-book .links { gap: 6px; margin-top: auto; padding-top: 6px; }
.x-book .links .btn { flex: 1 1 100%; justify-content: center; white-space: nowrap; }
@media (max-width: 599px) { .x-book .links .btn { padding-inline: 10px; } }
.x-book a:has(> .x-book__cover) { display: block; }
/* 15/11/2026 (Hani): the whole card body is ONE link to the book page
   (a.x-book__body wraps cover + title + sub + hook + price; store
   buttons stay outside it in .links). Flex column + 6px gap reproduces
   the article's old rhythm exactly (cover->title 12px with the img's
   own 6px bottom margin, title->sub 6px, sub->hook 8px, hook->price
   12px). Specificity (0,2,2) beats the :has rule above (0,2,1) on every
   page that loads this shared sheet — homepage, genre, all-books,
   author, store and Spotify pages. */
article.x-book > a.x-book__body { display: flex; flex-direction: column; gap: 6px; }
.x-book__details { margin: 6px 0 0; }
.x-book__details a { font-size: 13px; color: var(--text-secondary); }
@media (max-width: 599px) { .x-book { flex: 0 0 calc((100% - 32px) / 3); } }
/* 15/11/2026 LANDSCAPE PHONES (Hani): in landscape a phone is 667-932px
   wide, so the portrait phone rules above do not apply and cards fall back
   to 200px — ~3 huge covers per row with title + price below the fold.
   Five per row keeps the whole card (cover + title + price) inside a
   390px-tall viewport. Portrait rules untouched. */
@media (orientation: landscape) and (max-width: 932px) { .x-book { flex: 0 0 calc((100% - 64px) / 5); } }

/* @component store buttons — brand colours, same as the homepage.
   These rules used to live only in the homepage's inline <style>, so book
   pages (which link this shared sheet) showed every store button as a plain
   outline pill. Copied verbatim from the homepage 11/11/2026; the homepage
   and store pages keep their own identical inline copies, so this changes
   nothing there. Apple black / Amazon orange / Spotify green. */
.btn--apple { background: #000; border-color: #000; color: #fff; }
.btn--amazon { background: #FF9900; border-color: #FF9900; color: #111; }
.btn--spotify { background: #1DB954; border-color: #1DB954; color: #fff; }
.btn--spotify:hover { background: #1aa34a; }
.btn--audible { background: #F6991F; border-color: #F6991F; color: #111; }
.btn--audible:hover { background: #e08a0e; }
.btn--kobo { background: #BF0000; border-color: #BF0000; color: #fff; }
.btn--kobo:hover { background: #a30000; }
.btn--googleplay { background: #01875F; border-color: #01875F; color: #fff; }
.btn--googleplay:hover { background: #016d4c; }
.btn--chirp { background: #1B2A4A; border-color: #1B2A4A; color: #fff; }
.btn--chirp:hover { background: #141f36; }
.btn--everand { background: #007A87; border-color: #007A87; color: #fff; }
.btn--everand:hover { background: #00606b; }
.btn--storytel { background: #E8590C; border-color: #E8590C; color: #fff; }
.btn--storytel:hover { background: #c2410c; }
.btn--bookmate { background: #2D6A9F; border-color: #2D6A9F; color: #fff; }
.btn--bookmate:hover { background: #245681; }
/* 17/11/2026 (Hani, 12:22 — unified green, OVERRULES the 12:08 violet
   plan): .btn--listen renders the SAME Spotify green as .btn--spotify,
   so EVERY card "Listen" button is green. Cards now use btn--spotify
   directly; this class is kept (same green) for durability. CACHE
   REASON: Hani's phone holds the OLD cached hark.css, which has
   btn--spotify but NOT btn--listen — a violet .btn--listen rendered
   DARK/unstyled there until the cache expires (max-age 4h).
   BookBeat magenta #9F00A7 is BookBeat's own brand colour, taken from
   bookbeat.com (its pages carry #9F00A7 / #CD96FF). */
.btn--listen { background: #1DB954; border-color: #1DB954; color: #fff; }
.btn--listen:hover { background: #1aa34a; }
.btn--bookbeat { background: #9F00A7; border-color: #9F00A7; color: #fff; }
.btn--bookbeat:hover { background: #7E0084; }

/* 17/11/2026 (audiobook store buttons): book-page store buttons stack
   full-width, one store per line — same row-container pattern as the
   cards (.x-book .links .btn below) and the store pages. NEVER
   flex-direction: column on .store-row (column + basis 100% stretches
   every button into a giant vertical bar — 13/11 homepage bug). Lives
   in this shared sheet (all book pages link it) so it applies without
   a rebuild of the 150+ packet pages. */
.store-row { display: flex; flex-wrap: wrap; gap: 8px; }
.store-row .btn { flex: 1 1 100%; justify-content: center; white-space: nowrap; }
/* 17/11/2026 (Hani, 12:24 + iPad 13:14): on BOOK PAGES at phone AND
   tablet widths the store buttons show TWO per row instead of one
   full-width button per row eating the whole page. .store-row divs
   exist ONLY on book pages (166 files, all under /books/), so this
   rule cannot touch homepage/genre//books//author cards (they use
   .x-book .links). Row flex-wrap container, NEVER flex-direction:
   column (the standing stack-rule mechanism, just a 50% basis
   instead of 100%). Basis calc(50% - 5px): the book pages'
   page-local .store-row gap is 10px (hark.css gap is 8px) — 5px is
   exact at 10px, 1px slack at 8px. padding-inline 8px (down from
   the 14px coarse rule) so the longest label ("Listen on Google
   Play", ~130px at 12px DejaVu) fits a ~174px button at 390px with
   margin. Scope is max-width 1366px: that covers every iPad
   (portrait up to 1024px, landscape up to 1366px) — the old 599px
   scope left iPad buttons one-per-row (Hani's iPad screenshot
   13:14). Desktop wider than 1366px keeps the one-per-row
   full-width stack. */
@media (max-width: 1366px) { .store-row .btn { flex: 1 1 calc(50% - 5px); padding-inline: 8px; } }
.btn--barnes { background: #2E5939; border-color: #2E5939; color: #fff; }
.btn--barnes:hover { background: #24452c; }
.btn--soon { opacity: .55; cursor: default; }

/* Contact Us box — first item in every footer (11/11/2026, site email silverquillbooks1@gmail.com) */
.foot__contact { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; padding: 12px 16px; border-radius: var(--r-s); background: var(--mat-regular); border: 1px solid var(--stroke-secondary); box-shadow: var(--hark-shadow); }
.foot__contact strong { color: var(--text-primary); }
.foot__contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-primary); font-weight: 600; overflow-wrap: anywhere; }
.foot__contact img { display: block; width: 24px; height: auto; }

/* SITE CHROME (14/11/2026, Hani — SITE HEADER+FOOTER RULE): every
   secondary page carries the homepage hero + full footer. These rules are
   copied verbatim from the homepage's inline <style>; the homepage keeps
   its own identical inline copies (which come later in the cascade), so
   it renders unchanged. Sub-pages get the same hero/footer look from this
   shared sheet. The hero brand title on sub-pages is a span
   (.x-hero-final__title), not an h1 — same styling as the homepage h1. */
.x-hero { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; box-shadow: none; min-height: clamp(195px, 28.5vh, 315px); }
.x-hero::before { box-shadow: none; }
@media (max-width: 899px) { .x-hero { min-height: clamp(225px, 33vh, 330px); } }
.hero.x-hero--covers { min-height: 205px; background: radial-gradient(120% 90% at 50% 0%, #23232e 0%, #14141a 55%, #0d0d11 100%); }
.hero.x-hero--covers::after { background: none; }
.x-hero-final { display: flex; flex-direction: column; width: 100%; }
.x-hero-final__brand { display: flex; align-items: center; justify-content: center; gap: 9px; padding-top: 14px; }
.x-hero-final__brand a { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.x-hero-final__logo { width: 26px; height: 28px; }
.x-hero-final__brand h1, .x-hero-final__title { font-family: Georgia, "Times New Roman", serif; font-size: 23px; line-height: 1.05; white-space: nowrap; }
.x-hero-final__rule { width: 52px; height: 2px; background: #c9a227; border-radius: 2px; margin: 9px auto 0; }
.x-hero-final__body { flex: 1; display: flex; align-items: center; gap: 14px; padding: 10px 18px 14px; }
.x-hero-final__txt { flex: 1; min-width: 0; }
.x-hero-final__txt a { display: block; text-decoration: none; color: inherit; }
.x-hero-final__headline { font-family: Georgia, "Times New Roman", serif; font-size: 22px; line-height: 1.12; }
.x-hero-final__stores { font-size: 12px; color: var(--hero-text-muted); margin-top: 6px; }
.x-hero-final__covers { flex: none; display: flex; align-items: center; position: relative; }
.x-hero-final__covers a { display: block; line-height: 0; }
.x-hero-final__covers img { width: 62px; border-radius: 6px; box-shadow: 0 10px 22px rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.14); }
.x-hero-final__covers a:first-of-type img { transform: rotate(-6deg); margin-right: -13px; z-index: 1; }
.x-hero-final__cover--center { width: 72px; z-index: 2; }
.x-hero-final__covers a:last-of-type img { transform: rotate(6deg); margin-left: -13px; z-index: 1; }
.x-hero-final__badge { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 3; background: #c9a227; color: #14141a; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 4px 8px; border-radius: 999px; }
@media (min-width: 900px) {
  .hero.x-hero--covers { min-height: 230px; }
  .x-hero-final__brand h1, .x-hero-final__title { font-size: 28px; }
  .x-hero-final__headline { font-size: 28px; }
  .x-hero-final__covers img { width: 78px; }
  .x-hero-final__cover--center { width: 90px; }
}
@media (max-width: 599px) { .x-hero-final__brand h1, .x-hero-final__title { font-size: 28px; } }
/* 15/11/2026 HERO TAP FIX (Hani): hero covers were 49-62px wide tap targets
   on phones — a finger easily misses the side covers (rotated, overlapped).
   Enlarge them and stack the anchors so the tappable area matches the
   visible cover (centre cover in front). */
@media (max-width: 599px) {
  .x-hero-final__covers img { width: 76px; }
  .x-hero-final__cover--center { width: 88px; }
  .x-hero-final__covers a { position: relative; }
  .x-hero-final__covers a:first-of-type { z-index: 1; }
  .x-hero-final__covers a:nth-of-type(2) { z-index: 2; }
  .x-hero-final__covers a:last-of-type { z-index: 1; }
}

/* Full homepage footer on every page: social row + authors + link row. */
.social-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.social-row__label { font: var(--type-label); color: var(--text-primary); margin-right: 2px; }
.social-row a { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--stroke-secondary); box-shadow: var(--hark-shadow); transition: transform var(--dur-quick) var(--ease-out); }
.social-row a:hover { transform: translateY(-2px); }
.social-row img { display: block; width: 22px; height: 22px; }
/* 17/11/2026 (Hani): footer icons at FULL size, exactly 2 rows (10+10) on
   EVERY page, light + dark. A fixed 10-column grid makes the row exactly
   10 per row at ANY effective width (433px @0.9 pages, 487px @0.8 book
   pages) — the cell grows with the layout viewport, so the rendered icon
   size stays ~30-32px on both scales, counteracting the 0.9/0.8 shrink.
   Buttons fill their cells; the label spans all 10 columns. The old
   fixed 33/32/28px sizes are superseded by this grid. */
@media (max-width: 600px) { .social-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; width: 100%; } .social-row__label { grid-column: 1 / -1; margin-right: 0; } .social-row a { width: 100%; height: auto; aspect-ratio: 1; } .social-row img { width: 60%; height: auto; } }
/* 14/11/2026 QA fix: at 375px the 20 icons wrapped to 3 rows (9+9+2).
   28px icons + 4px gap fits 10 per row (316px) — exactly 2 lines. */
/* 17/11/2026: the old <=380px 28px icon rule is REMOVED — the 10-column
   grid above (<=600px) already forces exactly 10/row at every width, and
   a fixed 28px width here would break the grid's cell fill. */
.foot-links { font: var(--type-label); font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--text-secondary); display: flex; flex-wrap: wrap; gap: 2px 8px; }
.foot-links a { color: var(--text-secondary); }
