/* App Inquirer, the public site in take 12c's layout (Jeff, 2026-11-15: "12c's layout, built in today"; spec
   Docs/site-12c-spec.md). The mockup is round5/12c-q-asks/site.css; this is it on the real pages, with dark mode added.

   A white page, navy text. Each category owns one palette colour, used only as a small chip, a 4 px top rule on app
   cards and a swatch in the category key. Press red sets the kickers, Submit your app, Get started and Open its page;
   denim sets links. The top bar is 10b's. Every text pair passes WCAG AA in both themes (lowest: red on white, 5.3:1).

   Every page src/pages/frame.ts renders loads this file: the public pages, and the makers' pages in its makers' variant
   (the claim, kit, offer and consent pages since 0.61.1, and /account since 0.64.2 with account.css after this file).
   The admin keeps site.css and the placeholder placeholder.css, so neither changes. Dark: data-theme="night" on
   <html>, set by the server from the ai_theme cookie and by the <head> script from a stored choice, so the theme never
   flashes. */

:root {
  --paper: #FFFFFF;
  --ink: #14213D;         /* deep navy: 16.0:1 on white */
  --ink-2: #4F586E;       /* deep navy at 75%: 7.1:1 on white */
  --red: #D0261C;         /* press red: kickers 5.3:1 on white; white on red 5.3:1 */
  --red-fill: #D0261C;    /* the red buttons' fill, white text on it 5.3:1 (the same in both themes) */
  --link: #36527C;        /* denim links: 7.9:1 on white */
  --rule: #DDE1E8;        /* cool hairline, decoration only */
  --line: #E4E7ED;        /* 10b's hairline, for its top bar and the strip under it (decoration only) */
  --wash: #F3F5F8;        /* quiet panels (the house disclosure, code): navy 14.6:1, red 4.8:1 on it */
  --on-ink: #FFFFFF;      /* text on a navy fill (buttons) */
  --field: #FFFFFF;       /* text fields and the speech bubbles */
  --icon-ring: rgba(20, 33, 61, .10);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: var(--font-display);
  --radius-icon: 22.5%;
  --radius: 2px;
  --wrap: 1200px;
  --gutter: 32px;

  /* The names the shared content uses (story Markdown, the rankings block, the placeholder's forms in this frame). */
  --ai-paper: var(--paper);
  --ai-ink: var(--ink);
  --ai-ink-2: var(--ink-2);
  --ai-ink-3: var(--ink-2);
  --ai-red: var(--red);
  --ai-rule: var(--rule);
  --ai-wash: var(--wash);
  --ai-font-display: var(--font-display);
  --ai-font-text: var(--font-text);
  --ai-radius-icon: var(--radius-icon);
  --ai-radius: var(--radius);
  color-scheme: light;
}

/* Night (Jeff #66: light by default, dark when the reader picks it). A deep navy page, not black, so the city's navy
   tiles still read; every pair below is checked: text 16.0:1, secondary 9.0:1, red 6.9:1, links 9.9:1 on the page. */
:root[data-theme="night"] {
  --paper: #0E1525;
  --ink: #EDF0F6;
  --ink-2: #AEB7C8;
  --red: #FF7466;
  --link: #A9C1E4;
  --rule: #26324A;
  --line: #232E44;
  --wash: #162036;
  --on-ink: #0E1525;
  --field: #131C30;
  --icon-ring: rgba(255, 255, 255, .22);
  color-scheme: dark;
}

/* The category key. Chip text: white on navy 16.0:1, on red 5.3:1, on denim 7.9:1; navy on sand 10.2:1, on dusty blue
   6.2:1. At night: white on slate 8.2:1, on red 5.3:1; night ink on denim 6.5:1, on dusty 9.6:1, on sand 11.6:1. */
.c-navy  { --cat: #14213D; --cat-ink: #FFFFFF; }
.c-red   { --cat: #D0261C; --cat-ink: #FFFFFF; }
.c-denim { --cat: #36527C; --cat-ink: #FFFFFF; }
.c-dusty { --cat: #87A3C6; --cat-ink: #14213D; }
.c-sand  { --cat: #E0CCA5; --cat-ink: #14213D; }
:root[data-theme="night"] .c-navy  { --cat: #3B4F78; --cat-ink: #FFFFFF; }
:root[data-theme="night"] .c-denim { --cat: #7F9CC8; --cat-ink: #0E1525; }
:root[data-theme="night"] .c-dusty { --cat: #A9BEDA; --cat-ink: #0E1525; }
:root[data-theme="night"] .c-sand  { --cat: #E0CCA5; --cat-ink: #0E1525; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-text); font-size: 18px; line-height: 1.5;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: var(--radius); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; font: 700 14px var(--font-display); }
.sr, .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.link, .prose a, .crumbs a, .head a, a.by, .facts dd a, .more, .devhead__link { color: var(--link); }

.label, .ai-label { font-family: var(--font-display); font-weight: 800; font-size: 13px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; }
.kicker { color: var(--red); display: block; margin-bottom: 10px; }
.meta { font-family: var(--font-display); font-weight: 500; font-size: 13px; line-height: 1.35; letter-spacing: .01em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.meta a { color: inherit; text-decoration: none; }
.meta a:hover { text-decoration: underline; }
.icon { border-radius: var(--radius-icon); flex: none; box-shadow: 0 0 0 1px var(--icon-ring); background: #fff; object-fit: contain; }

/* Section heads: a navy hairline and a navy label. Colour is saved for the categories. */
.head { border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.head a { font-family: var(--font-display); font-weight: 600; font-size: 15px; }

/* Category chip; the outlined "Made by our publisher" tag (outlined so it never reads as a category); the red outlined
   Sponsored label (a paid place never reads as editorial). */
.chip, .tag, .sponsored {
  display: inline-block; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: 11px; line-height: 1.3;
  letter-spacing: .07em; text-transform: uppercase; padding: 3px 7px 2px; border-radius: var(--radius); text-decoration: none;
}
.chip { background: var(--cat); color: var(--cat-ink); }
a.chip:hover { text-decoration: underline; }
.tag { border: 1px solid var(--ink); padding: 2px 6px 1px; color: var(--ink); }
.sponsored { border: 1px solid var(--red); padding: 2px 6px 1px; color: var(--red); }
/* "New" beside an app's name: press red label, 5.3:1. */
.new-mark { font-family: var(--font-display); font-weight: 800; font-size: 11px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--red); white-space: nowrap; }

.btn, .button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius); border: 2px solid var(--ink); background: var(--ink); color: var(--on-ink); cursor: pointer;
}
.btn--red { background: var(--red-fill); border-color: var(--red-fill); color: #fff; }
.btn--ghost, .button--ghost { background: transparent; color: var(--ink); }
.btn:hover, .button:hover { filter: brightness(1.08); }
.btn--ghost:hover, .button--ghost:hover { filter: none; background: var(--ink); color: var(--on-ink); }
.button--block { display: flex; width: 100%; }

/* ---------- top bar: 10b's (logo, nav, and the red Submit your app) ---------- */
.top { display: flex; align-items: center; gap: 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.top__h { margin: 0; line-height: 0; }
.top .logo { display: block; }
.top .logo img { height: 34px; width: auto; }
.logo-night { display: none !important; }
:root[data-theme="night"] .logo-day { display: none !important; }
:root[data-theme="night"] .logo-night { display: block !important; }
.nav { margin-left: auto; }
.nav ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.nav a { font: 600 15px/1.2 var(--sans); text-decoration: none; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--red); }
.top .btn { display: inline-block; min-height: 0; border-radius: 0; font: 700 14px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; padding: 14px 18px; white-space: nowrap; }
.top .btn--small { padding: 11px 14px; font-size: 13px; }
.top .btn:hover { filter: brightness(1.1); }

main { display: block; }
/* The page's <main> is also its .wrap, whose padding shorthand would take the bottom room away. */
#main { padding-bottom: 72px; }
section { margin-top: 64px; }

/* ---------- Q's strip: 10b's light tile city on the right, Q on his pedestal saying hello in a speech bubble; the
   question and the answer box on the left. Q's search answers open under it. The city comes first in the reading order
   (the hello before the field); the grid puts it on the right. ---------- */
.ask { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 1fr); gap: 0 24px; border-bottom: 1px solid var(--line); margin-top: 0; scroll-margin-top: 8px; }
.ask__text { grid-column: 1; grid-row: 1; padding: 22px 0 22px; }
.ask__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 2px 16px; min-height: 20px; max-width: 650px; }
.ask__next { background: none; border: 0; padding: 0; cursor: pointer; color: var(--link); font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 20px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ask__form { max-width: 680px; }
.ask__line { display: block; font-family: var(--font-text); font-style: italic; font-weight: 400; font-size: 32px; line-height: 38px; letter-spacing: -.005em; margin: 6px 0 12px; text-wrap: balance; }
/* With scripts on, the question waits for the script to pick this visit's one (a moment), so it never flips in view;
   it shows anyway after a second and a half. */
.js .ask__form:not(.is-ready) .ask__line { visibility: hidden; animation: ask-show 0s 1.5s forwards; }
@keyframes ask-show { to { visibility: visible; } }
/* The answer box: one line (52 px) beside its button. As the words reach the end of the line it grows, to three lines
   at most; past that it scrolls, with a thin scrollbar, so a long answer still fits. */
.ask__field { display: flex; align-items: flex-start; gap: 8px; max-width: 650px; }
.ask__field textarea, .ask__field input[type="search"] {
  flex: 1; min-width: 0; display: block; height: 52px; min-height: 52px; max-height: 104px; resize: none; overflow-y: auto;
  padding: 11px 16px; margin: 0; font: 19px/26px var(--font-text); color: var(--ink); background: var(--field);
  border: 2px solid var(--ink); border-radius: var(--radius);
}
.ask__field textarea::-webkit-scrollbar { width: 10px; }
.ask__field textarea::-webkit-scrollbar-track { background: transparent; }
.ask__field textarea::-webkit-scrollbar-thumb { background: var(--ink-2); border-radius: 5px; border: 2px solid var(--field); }
@supports not selector(::-webkit-scrollbar) { .ask__field textarea { scrollbar-width: thin; scrollbar-color: var(--ink-2) transparent; } }
.ask__field textarea::placeholder { color: var(--ink-2); font-style: italic; }
.ask__field .btn { flex: none; min-height: 52px; padding: 0 24px; }
.ask__try { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.ask__try ul { display: flex; flex-wrap: wrap; gap: 8px; }
.try {
  font-family: var(--font-text); font-style: italic; font-size: 17px; line-height: 1.2; color: var(--ink);
  background: var(--field); border: 1px solid var(--rule); border-radius: var(--radius); padding: 5px 11px 6px; cursor: pointer;
  transition: border-color .15s ease;
}
.try:hover { border-color: var(--ink); }
.ask__nojs { font-family: var(--font-text); font-size: 17px; line-height: 1.45; color: var(--ink-2); margin-top: 12px; max-width: 640px; }
.ask__nojs a { color: var(--link); }
.js .ask__nojs { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* The city fills the strip, anchored top right, with soft fades on its cut left and bottom edges so it meets the page
   quietly. The box is a size container, so the speech bubble can find Q at any size (see .bubble). */
.ask__art { grid-column: 2; grid-row: 1; position: relative; min-height: 200px; container-type: size; --tip-r: 233.5; --tip-y: 86.5; }
.ask__art .city {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%), linear-gradient(to bottom, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 18%), linear-gradient(to bottom, #000 86%, transparent 100%); mask-composite: intersect;
}
@media (min-width: 1280px) { .ask__text { min-height: 218px; } .ask__art { align-self: start; height: 218px; } }

/* Q's poses take turns on his spot: the waving Q drawn into the city, and the writing and thinking Q from the shared
   poses, placed over him at the same size (front.js sets data-q on the strip). While Q answers below, the spot is
   empty: one Q at a time. */
.city svg, .city__pose { transition: opacity .18s ease; }
.city__pose { opacity: 0; }
.ask[data-q="write"] .city svg, .ask[data-q="think"] .city svg, .ask[data-q="away"] .city svg { opacity: 0; }
.ask[data-q="write"] .city__pose--write, .ask[data-q="think"] .city__pose--think { opacity: 1; }
.q-arm { transform-box: view-box; transform-origin: 80px 300px; }
.ask.is-waving-2 .q-arm { animation: q-wave-2 1.6s ease-in-out 1 both; }
.ask.is-waving-1 .q-arm { animation: q-wave-1 .9s ease-in-out 1 both; }
.ask.is-waving-2 .q-whoosh { animation: q-whoosh 1.6s ease 1 both; }
.ask.is-waving-1 .q-whoosh { animation: q-whoosh .9s ease 1 both; }
@keyframes q-wave-2 { 0% { transform: rotate(0deg); } 14% { transform: rotate(10deg); } 33% { transform: rotate(-12deg); } 53% { transform: rotate(10deg); } 74% { transform: rotate(-8deg); } 100% { transform: rotate(0deg); } }
@keyframes q-wave-1 { 0% { transform: rotate(0deg); } 32% { transform: rotate(10deg); } 66% { transform: rotate(-9deg); } 100% { transform: rotate(0deg); } }
@keyframes q-whoosh { 0% { opacity: 1; } 10% { opacity: 0; } 86% { opacity: 0; } 100% { opacity: 1; } }

/* Q's speech bubble: a navy hairline, square-ish corners and a tail at Q's mouth. Its place comes from the city's own
   geometry: the art is scaled by --s (city units to pixels, exactly as the slice scales it) and anchored to the top
   right, so the tail's tip sits --tip-r city units in from the right edge and --tip-y down. */
.bubble {
  --s: max(calc(100cqw / 840), calc(100cqh / 200));
  position: absolute; z-index: 1; margin: 0; max-width: 216px;
  right: calc(var(--tip-r) * var(--s) + 11.5px); top: calc(var(--tip-y) * var(--s)); transform: translateY(-50%);
  padding: 8px 14px 10px; background: var(--field); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 4px;
  font-family: var(--font-text); font-style: italic; font-size: 18px; line-height: 1.3;
}
.bubble::before, .bubble::after { content: ""; position: absolute; top: 50%; border-style: solid; border-color: transparent; }
.bubble::before { right: -13px; margin-top: -8px; border-width: 8px 0 8px 13px; border-left-color: var(--ink); }
.bubble::after { right: -10.5px; margin-top: -6.5px; border-width: 6.5px 0 6.5px 10.5px; border-left-color: var(--field); }
.ask[data-q="think"] .bubble { --tip-y: 78.5; }   /* the thinking Q holds his notepad at mouth height */
.bubble__hi { display: block; font-family: var(--font-display); font-style: normal; font-weight: 700; font-size: 15px; line-height: 1.35; margin-bottom: 2px; }
.bubble__hi:empty { display: none; }
/* With scripts on, the bubble says hello a moment after the page opens, steps aside while Q listens, and comes back. */
.js .bubble { opacity: 0; visibility: hidden; transform: translateY(calc(-50% + 6px)); transition: opacity .2s ease, transform .2s ease, visibility 0s .2s; }
.js .bubble.is-on { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity .3s ease, transform .3s ease, visibility 0s; }

/* Q's answer to a search, under the strip */
.answer { margin-top: 0; }
.answer__in { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 0 28px; align-items: start; }
.answer.is-open { border-bottom: 1px solid var(--line); }
.answer.is-open .answer__in { padding: 28px 0 32px; }
.answer.is-open .answer__body { animation: answer-in .22s ease both; }
@keyframes answer-in { from { opacity: 0; } to { opacity: 1; } }
.answer__q { width: 128px; height: 128px; }
.answer__q--shrug { transform: scale(1.36); }
.answer__clear {
  background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--link);
  font-family: var(--font-display); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px;
}
.answer__said { font-family: var(--font-display); font-weight: 500; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.answer__said q { font-family: var(--font-text); font-style: italic; font-size: 17px; color: var(--ink); quotes: "\201C" "\201D"; }
.answer__line {
  position: relative; display: inline-block; margin: 8px 0 0 13px; padding: 7px 16px 9px; background: var(--field);
  border: 1.5px solid var(--ink); border-radius: 4px; font-family: var(--font-text); font-style: italic; font-size: 24px; line-height: 1.25;
}
.answer__line::before, .answer__line::after { content: ""; position: absolute; top: 50%; border-style: solid; border-color: transparent; }
.answer__line::before { left: -13px; margin-top: -8px; border-width: 8px 13px 8px 0; border-right-color: var(--ink); }
.answer__line::after { left: -10.5px; margin-top: -6.5px; border-width: 6.5px 10.5px 6.5px 0; border-right-color: var(--field); }
.answer__sub { display: block; font-style: normal; font-size: 18px; line-height: 1.45; margin-top: 4px; color: var(--ink-2); }
.answer__sub a { color: var(--link); }
.answer__also { color: var(--ink-2); font-size: 12px; margin: 22px 0 0; display: block; }

/* The best fit: a wide card, its category's colour as the top rule, and Open its page. */
.best { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 0 20px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 4px solid var(--cat); }
.best .icon { width: 72px; height: 72px; }
.best__name { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.15; text-decoration: none; }
a.best__name:hover { text-decoration: underline; text-decoration-color: var(--red); }
.best__by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 2px; }
.best__tag { font-style: italic; font-size: 19px; line-height: 1.35; margin-top: 6px; }
.best__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.best .btn { white-space: nowrap; }

/* Other answers: up to three across, each with its category's top rule. */
.hits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 18px; }
.hits--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hits--1 { grid-template-columns: minmax(0, 1fr); }
.hits--also { margin-top: 10px; }
.hit { border-top: 4px solid var(--cat); padding-top: 14px; }

/* ---------- the category key: its own quiet section under the front (Jeff, #594), every category with its colour
   and live count, each opening its own page. All of them on wide screens; phones start with the ten busiest. ---------- */
.key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.key li { min-width: 0; }
/* A long name wraps under itself (a hanging indent past the swatch), and its count stays with its last word. */
.key a { display: block; padding: 7px 0 7px 20px; text-indent: -20px; font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.3; text-decoration: none; }
.key a::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; background: var(--cat); border-radius: 1px; }
.key a span { color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.key a:hover { text-decoration: underline; }
.key a[aria-current="page"] { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--cat); text-underline-offset: 5px; }
.key__all { display: none; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- page heads (the categories, all apps, a developer, about, the newsletter, not found) ---------- */
.pagehead { margin-top: 44px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); margin-bottom: 28px; }
.pagehead .kicker { margin-bottom: 12px; }
.pagehead__title { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
.pagehead__dek { font-style: italic; font-size: 22px; line-height: 1.4; color: var(--ink-2); margin-top: 12px; max-width: 40em; }
.crumbs { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs + .pagehead { margin-top: 16px; }

/* ---------- category pages: the list of all, and one category's apps (newest first) beside that list ---------- */
.catpage { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 0 56px; align-items: start; }
.catpage > .crumbs, .catpage > .pagehead { grid-column: 1 / -1; }
.catpage__main { grid-column: 1; min-width: 0; }
.catpage__side { grid-column: 2; min-width: 0; margin-top: 0; }
.catpage__side .key { grid-template-columns: minmax(0, 1fr); }
.catpage__side .key a { padding-top: 6px; padding-bottom: 6px; font-size: 15px; }
/* All apps (Jeff #673): the search over the list, Browse by category beside both on wide screens. */
.appsindex > .appsearch { grid-column: 1; grid-row: 2; }
.appsindex > .catpage__side { grid-column: 2; grid-row: 2 / span 2; }
.appsindex > .catpage__main { grid-column: 1; grid-row: 3; }
/* The category list spans rows 2-3 beside the search and the results; without this a short result (or "No apps match")
   stretches the search row to the list's height and sits far below the box (0.66.5's check). */
@media (min-width: 1081px) { .appsindex { grid-template-rows: auto auto 1fr; } }
.appsearch { margin-bottom: 20px; }
.appsearch__label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.appsearch__row { display: flex; gap: 8px; }
.appsearch input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; font: 17px/1 var(--font-text); color: var(--ink); background: var(--field); border: 2px solid var(--ink); border-radius: var(--radius); }
.appsearch input::placeholder { color: var(--ink-2); }
.appsearch .btn { min-height: 48px; }
.appsearch__count { padding-bottom: 4px; }
.appsearch__count a { color: var(--link); text-decoration: underline; }
.cat__head { border-top: 4px solid var(--cat); padding-top: 18px; padding-bottom: 6px; margin-top: 16px; }
.cat__name { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1.05; letter-spacing: -.015em; }
.cat__count { margin-top: 10px; font-size: 14px; }
.cat__desc { font-style: italic; font-size: 20px; line-height: 1.4; color: var(--ink-2); margin-top: 10px; max-width: 36em; }
.catindex__count { margin-top: 10px; font-size: 14px; }
.rows { max-width: 760px; }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.row:last-child { border-bottom: 0; }
.row .icon { width: 64px; height: 64px; }
.row__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.row__name a { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.2; text-decoration: none; }
.row__name a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.row__name .tag, .row__name .sponsored { align-self: center; }
.row__maker { margin-top: 3px; }
.row__tag { font-style: italic; font-size: 19px; line-height: 1.38; margin-top: 8px; }
.row__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.empty { font: italic 400 19px/1.45 var(--font-text); color: var(--ink-2); padding: 8px 0 24px; }

/* ---------- pictures ---------- */
.frame {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3;
}
.frame img { width: 100%; height: 100%; object-fit: contain; padding: 7%; }
.frame--lead { aspect-ratio: 16 / 10; }
.frame--lead img { padding: 5%; }
/* A photograph fills its frame (a story's hero): no white mat around it. */
.frame--fill img { padding: 0; object-fit: cover; }

/* ---------- home: the lead story and the rail ---------- */
.front { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 0 56px; margin-top: 44px; scroll-margin-top: 16px; }
.lead__title { font-family: var(--font-display); font-weight: 800; font-size: 58px; line-height: 1.04; letter-spacing: -.015em; max-width: 15ch; text-wrap: balance; }
.lead__title a { text-decoration: none; }
.lead__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--red); }
.lead__body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; margin-top: 26px; align-items: start; }
.lead--text .lead__title { max-width: 18ch; }
/* Without a picture the dek and the byline take the column under the headline, the dek at a reading measure (the
   front page has no "In this story" since Nov 15, 2026; hub-spec.md §123). */
.lead--text .lead__body { grid-template-columns: minmax(0, 1fr); }
.lead--text .deck { max-width: 31em; }
.deck { font-style: italic; font-size: 22px; line-height: 1.4; }
.lead__body > div > .meta { margin-top: 12px; }
/* A story without a picture is short beside the rail (up to six featured apps and three sponsored ones): on wide
   screens it stays in view while the rail goes by, so its column never reads as empty. Only the text lead, which
   always fits the window. */
@media (min-width: 1081px) and (min-height: 700px) {
  .lead--text { position: sticky; top: 24px; align-self: start; }
}

.mini { display: flex; gap: 14px; align-items: flex-start; }
.mini .icon { width: 48px; height: 48px; }
.mini--44 .icon { width: 44px; height: 44px; }
.mini__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.25; display: block; text-decoration: none; }
a.mini__name:hover { text-decoration: underline; text-decoration-color: var(--red); }
.mini__tag { font-size: 17px; line-height: 1.35; color: var(--ink-2); display: block; }
.mini__maker { display: block; margin: 1px 0 3px; }
.mini > a:first-child { flex: none; }
.mini__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }

.rail { min-width: 0; }
.rail__block { margin-top: 0; }
.rail__block + .rail__block { margin-top: 40px; }
.rail .list > li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.rail .list > li:first-child { padding-top: 2px; }
/* The house disclosure under our own apps in the Sponsored apps rotation (sponsored-post-spec.md). */
.rail__note { font-size: 15px; line-height: 1.45; color: var(--ink-2); margin-top: 12px; }

/* ---------- New apps: a dated shelf, one tab a day ---------- */
.new .head { margin-bottom: 4px; }
.days__tabs { display: flex; gap: 0 36px; border-bottom: 1px solid var(--rule); margin-bottom: 30px; }
.days__tab {
  appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 14px 0 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.2; color: var(--ink-2); cursor: pointer; text-align: left;
}
.days__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.days__tab:hover { color: var(--ink); }
.days__tab:focus-visible { outline-offset: 2px; }
.days__date { font-weight: 700; }
.day__h { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.2; margin: 22px 0 22px; }
.day__h .meta { font-size: 14px; margin-left: 6px; }
.js .days--tabs .day__h { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.day + .day { margin-top: 48px; }
.js .days--tabs .day + .day { margin-top: 0; }

.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
.shelf__item { border-top: 4px solid var(--cat); padding-top: 16px; display: flex; flex-direction: column; min-width: 0; }
.shelf__top { display: flex; gap: 14px; align-items: center; text-decoration: none; min-height: 64px; }
.shelf__top .icon { width: 64px; height: 64px; }
.shelf__name { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.2; display: block; text-wrap: balance; overflow-wrap: break-word; }
a.shelf__top:hover .shelf__name { text-decoration: underline; text-decoration-color: var(--red); }
.shelf__maker { display: block; margin-top: 3px; }
/* Upright, not italic (Katy #602, 2026-11-14: "On the apps launched that day let's not have the text in italics"). */
.shelf__tag { font-size: 17px; line-height: 1.42; margin-top: 12px; }
.shelf__foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
/* The last row: the closing note across the slots the last app leaves (front.ts sets how many). */
.shelf__end { border-top: 1px solid var(--rule); padding-top: 22px; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 6px; }
.shelf__end p { font-size: 19px; line-height: 1.4; color: var(--ink-2); }
.shelf__end.d1 { grid-column: span 1; } .shelf__end.d2 { grid-column: span 2; } .shelf__end.d3 { grid-column: span 3; } .shelf__end.d4 { grid-column: 1 / -1; }
.shelf__next { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--link); }
.btn.shelf__all { display: none; margin-top: 28px; }   /* desktop shows them all; tablets and phones start shorter */
/* After the day's apps, the way to the rest: All apps, with its categories and search (Jeff #673). */
.new__more { margin-top: 32px; }
.new__more a { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--link); }

/* ---------- story cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--1 { grid-template-columns: minmax(0, 1fr); }
.card { min-width: 0; }
.card .frame { margin-bottom: 18px; }
.card__title { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.16; letter-spacing: -.005em; text-wrap: balance; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.card .dek { font-size: 18px; line-height: 1.45; color: var(--ink-2); margin-top: 10px; }
.card .meta { margin-top: 12px; }
.card .kicker { font-size: 12px; }
.briefs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule); }
.briefs .card__title { font-size: 22px; }
.story-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.story-row .frame { margin-bottom: 0; }
.story-row--text { grid-template-columns: minmax(0, 1fr); }
.cards--1 .story-row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; }
.reads > li + li { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--rule); }

/* ---------- a story's mark: its first app's icon beside the kicker, "<App> by <Maker>" under it (round 6's option 2,
   hub-spec.md §123). The icon keeps the site's hairline ring (.icon), so a white one still shows on white. ---------- */
.appmark { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.appmark .icon { width: 56px; height: 56px; }
.appmark .kicker { margin-bottom: 4px; }
.appmark__app { font-size: 14px; }
.appmark__app .appmark__name { color: var(--ink); font-weight: 700; }
.appmark__app a.appmark__name:hover { text-decoration: underline; text-decoration-color: var(--red); }
.appmark--card { gap: 12px; margin-bottom: 12px; }
.appmark--card .icon { width: 44px; height: 44px; }
.appmark--card .kicker { margin-bottom: 3px; }
.appmark--card .appmark__app { font-size: 13px; }
.story__head .appmark { margin-bottom: 16px; }

/* ---------- app cards: hairline box, thin top border in the category's colour ---------- */
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.app { border: 1px solid var(--rule); border-top: 4px solid var(--cat); padding: 22px 24px 24px; display: flex; flex-direction: column; background: var(--paper); min-width: 0; }
.app__top { display: flex; gap: 16px; align-items: center; text-decoration: none; }
.app__top .icon { width: 64px; height: 64px; }
.app__name { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.15; display: block; overflow-wrap: break-word; }
a.app__top:hover .app__name { text-decoration: underline; text-decoration-color: var(--red); }
.app__maker { display: block; margin-top: 3px; }
.app__tagline { font-style: italic; font-size: 20px; line-height: 1.35; margin-top: 16px; }
.app__foot { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.app__foot .meta { flex-basis: 100%; }

/* ---------- For makers ---------- */
.makers { margin-top: 72px; border-top: 2px solid var(--ink); padding-top: 32px; scroll-margin-top: 16px; }
.makers__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 56px; align-items: start; }
.makers__title { font-family: var(--font-display); font-weight: 800; font-size: 48px; line-height: 1.05; letter-spacing: -.01em; }
.makers__lede { font-style: italic; font-size: 22px; line-height: 1.4; margin-top: 14px; }
.makers__text p { font-size: 19px; line-height: 1.55; }
.makers__acts { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 26px; }
.makers .more { font-family: var(--font-display); font-weight: 600; font-size: 15px; }

/* ---------- the newsletter sign-up (the footer's, and the newsletter page's) ---------- */
.signup__label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.signup__row { display: flex; gap: 8px; }
.signup input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; font: 17px/1 var(--font-text); color: var(--ink); background: var(--field); border: 2px solid var(--ink); border-radius: var(--radius); }
.signup input::placeholder { color: var(--ink-2); }
.signup input[aria-invalid="true"] { border-color: var(--red); }
.signup .btn { min-height: 48px; }
.signup__status { font: 500 14px/1.4 var(--font-display); color: var(--ink-2); min-height: 20px; margin-top: 8px; }
.signup__status:empty { display: none; }

/* ---------- footer ---------- */
.foot { margin-top: 0; }
.foot__top { border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 64px; padding: 44px 0 40px; align-items: end; }
.foot__title { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.1; margin-top: 8px; }
.foot__top p.foot__text { font-size: 18px; color: var(--ink-2); margin-top: 10px; max-width: 32em; }
.foot__top .label { color: var(--red); }
.foot__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding: 20px 0 32px; border-top: 1px solid var(--rule); }
.foot__brand { display: flex; align-items: center; gap: 10px; }
.foot__brand img { width: 28px; height: 28px; border-radius: var(--radius-icon); }
.foot__end { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__links a { font-family: var(--font-display); font-weight: 500; font-size: 14px; text-decoration: none; padding: 6px 0; display: inline-block; }
.foot__links a:hover { text-decoration: underline; }
.foot__legal { padding: 0 0 32px; max-width: 70em; }
/* The theme toggle (Jeff #66, #69): one quiet button at the end of the footer that says what it does, "Dark mode" on
   a light page and "Light mode" on a dark one. Hidden until /js/site.js wires it, so it is never a dead control. */
.mode {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; margin: 0;
  background: none; border: 0; cursor: pointer; color: var(--ink-2);
  font: 700 12px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
}
.mode[hidden] { display: none; }
.mode:hover { color: var(--ink); }
.mode__icon { width: 14px; height: 14px; flex: none; }
.mode__moon { fill: currentColor; }
.mode__sun { display: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
:root[data-theme="night"] .mode__moon { display: none; }
:root[data-theme="night"] .mode__sun { display: block; }

/* ---------- app page ---------- */
.apphead { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 0 32px; align-items: start; margin-top: 24px; padding-bottom: 36px; border-bottom: 1px solid var(--rule); }
.apphead > .icon { width: 128px; height: 128px; }
.apphead h1 { font-family: var(--font-display); font-weight: 800; font-size: 60px; line-height: 1; letter-spacing: -.015em; text-wrap: balance; overflow-wrap: anywhere; }
/* The name fits its column at every width and breaks only at its spaces (hub-spec.md §123.1; the lead, Nov 15, 2026:
   "never a mid-word split"). The server gives a name whose widest word needs it a fit class (nameFit, parts.ts: that
   word's width in tenths of an em, to the half em), and the heading is then as large as its column allows for that
   word (less 2%, for kerning and rounding), up to its usual size; a word with punctuation in it is kept whole
   (.apphead__word, nameWords). Only a word wider than 12 ems (fit-max) may still break. Without container units, the
   heading is as it was. */
@supports (width: 1cqi) {
  .apphead__text { container-type: inline-size; }
  .apphead h1 { font-size: clamp(15px, calc(98cqi / var(--fit, 1)), 60px); overflow-wrap: normal; }
  .apphead h1.fit-max { overflow-wrap: anywhere; }
  .apphead__word { white-space: nowrap; }
}
.apphead .fit-50 { --fit: 5; } .apphead .fit-55 { --fit: 5.5; } .apphead .fit-60 { --fit: 6; } .apphead .fit-65 { --fit: 6.5; } .apphead .fit-70 { --fit: 7; }
.apphead .fit-75 { --fit: 7.5; } .apphead .fit-80 { --fit: 8; } .apphead .fit-85 { --fit: 8.5; } .apphead .fit-90 { --fit: 9; } .apphead .fit-95 { --fit: 9.5; }
.apphead .fit-100 { --fit: 10; } .apphead .fit-105 { --fit: 10.5; } .apphead .fit-110 { --fit: 11; } .apphead .fit-115 { --fit: 11.5; } .apphead .fit-120 { --fit: 12; }
.apphead .fit-max { --fit: 12; }
.apphead .kicker { margin-bottom: 12px; }
.apphead__by { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.apphead .by { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.apphead__partner { color: var(--red); font-size: 12px; }
.apphead .deck { font-size: 26px; margin-top: 14px; max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; grid-column: 2; }
.stores .btn { min-height: 48px; }
/* The stores' badges, unaltered, 48 px tall with at least a quarter of their height clear around them. Apple's black
   badge on light pages and its white one on dark, except beside Google Play's, where Apple asks for the black one. */
.badge { display: inline-block; line-height: 0; border-radius: 8px; }
.badge img { height: 48px; width: auto; max-width: none; }
.badge-night { display: none !important; }
:root[data-theme="night"] .badge-day { display: none !important; }
:root[data-theme="night"] .badge-night { display: block !important; }
.disclosure { font-size: 18px; line-height: 1.45; padding: 14px 16px; margin-top: 28px; background: var(--wash); border-left: 3px solid var(--ink); max-width: 46em; }
.disclosure .label { font-size: 11px; margin-right: 6px; }
.appbody { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 0 64px; margin-top: 44px; }
.appbody section:first-child { margin-top: 0; }
.take { font-size: 21px; line-height: 1.6; max-width: 36em; }
.appart { margin-top: 28px; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.appart img { width: 100%; height: auto; }
.appart--shot img { width: auto; max-width: 100%; max-height: min(72vh, 720px); margin: 0 auto; }
.facts { border: 1px solid var(--rule); border-top: 4px solid var(--cat, var(--ink)); padding: 22px 24px 10px; }
.facts > .label { margin-bottom: 8px; display: block; }
.facts dl > div { padding: 12px 0; border-top: 1px solid var(--rule); }
.facts dl > div:first-child { border-top: 0; }
.facts dt { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { font-family: var(--font-display); font-weight: 500; font-size: 17px; line-height: 1.4; margin-top: 3px; }
.facts dd .chip { font-size: 12px; color: var(--cat-ink); }
.facts dd.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- the app page's upvotes, comments and questions (votes-comments-spec.md) ----------
   12c's clean, small look with no box around it (Jeff #588): the section's navy head, navy controls, hairlines between
   items, and colour kept for the categories. Readers' text wraps anywhere, so a long link or word never widens the
   page. The honeypot (.hp, above) stays hidden. */
.engage .head { margin-bottom: 18px; }
.vote, .comments { scroll-margin-top: 24px; }
.vote { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.vote__button {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 18px 0 15px;
  font: 700 14px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: var(--radius); cursor: pointer;
}
/* An upward triangle drawn from borders: decoration only, with no text for a screen reader to read. */
.vote__button::before { content: ""; flex: none; border: 6px solid transparent; border-top: 0; border-bottom: 8px solid currentColor; }
.vote__button:hover { background: var(--ink); color: var(--on-ink); }
/* Voted ("Upvoted", pressed and disabled): the site's filled navy at full strength, since it's done, not unavailable. */
.vote__button[aria-pressed="true"], .vote__button:disabled { background: var(--ink); color: var(--on-ink); cursor: default; opacity: 1; }
.vote__button[aria-busy="true"] { cursor: progress; }
.vote__count { font: 600 15px/1.3 var(--font-display); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.comments { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
.comments > p { font: 400 18px/1.5 var(--font-text); color: var(--ink-2); }
.comments__list { list-style: none; margin: 0; padding: 0; }
.comment { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.comment:first-child { padding-top: 0; }
.comment__meta { font: 500 13px/1.35 var(--font-display); letter-spacing: .01em; color: var(--ink-2); overflow-wrap: anywhere; }
.comment__meta strong { font-weight: 700; color: var(--ink); }
.comment__body { margin-top: 6px; font: 400 18px/1.55 var(--font-text); max-width: 36em; overflow-wrap: anywhere; }
/* The answer under a question: a navy rule beside it, as a reply, never a box. */
.comment__answer { margin-top: 14px; padding-left: 16px; border-left: 2px solid var(--ink); }
.comment-form { display: flex; flex-direction: column; max-width: 560px; margin-top: 32px; }
.comment-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.comment-form legend { font: 700 18px/1.3 var(--font-display); padding: 0; margin-bottom: 6px; }
.comment-form fieldset label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 16px/1.3 var(--font-display); cursor: pointer; }
.comment-form input[type="radio"] { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.comment-form > label { font: 700 15px/1.3 var(--font-display); margin: 16px 0 6px; }
.comment-form input[type="text"], .comment-form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: 400 18px/1.4 var(--font-text); color: var(--ink);
  background: var(--field); border: 2px solid var(--ink); border-radius: var(--radius);
}
.comment-form textarea { min-height: 132px; resize: vertical; }
.comment-form .btn { margin-top: 20px; align-self: flex-start; }
/* Without scripts a post comes back to this line (#comment-note), with Send still in view above it. */
.comment-form__note { margin-top: 12px; font: 600 15px/1.45 var(--font-display); color: var(--ink); scroll-margin-top: 96px; }
.comment-form__note:empty { margin-top: 0; }

/* ---------- story page ---------- */
.story { max-width: 720px; margin: 0 auto; }
.story__head { margin-top: 52px; }
.story__head h1 { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
.story__head .deck { font-size: 24px; margin-top: 18px; color: var(--ink-2); }
.byline { margin-top: 24px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.byline .sponsored { margin-left: 8px; vertical-align: 1px; }
.storyart { margin-top: 32px; }
.storyart img { width: 100%; height: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
.story > section { margin-top: 56px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.storypage { container-type: inline-size; }

/* Story text: the reading column, with the rankings block and wide tables breaking out of it, centred, up to 880 px. */
.prose { margin-top: 32px; font-size: 20px; line-height: 1.62; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.2; margin-top: 1.9em; text-wrap: balance; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.25; margin-top: 1.6em; text-wrap: balance; }
.prose h2 + * { margin-top: .6em; }
.prose h3 + * { margin-top: .35em; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 24px; }
.prose ul > li { position: relative; padding-left: 26px; }
.prose ul > li + li, .prose ol > li + li { margin-top: .45em; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; background: var(--ink); }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose ol > li::marker { color: var(--ink-2); font-family: var(--font-display); font-weight: 700; }
.prose blockquote { margin: 1.2em 0; padding-left: 18px; border-left: 3px solid var(--ink); font-style: italic; }
.prose code { font: 500 .85em/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--wash); padding: 2px 5px; border-radius: var(--radius); }
.prose a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose > p:first-child::first-letter { font-family: var(--font-display); font-weight: 800; float: left; font-size: 4.1em; line-height: .82; margin: .06em .1em 0 0; color: var(--ink); }

/* Story tables (hub-spec.md §79, §83): a data table in the display face with tabular numbers and hairline rows; a wide
   one breaks out of the column, centred, then scrolls inside its own box, never the page. */
.prose .table-scroll { min-width: 100%; width: max-content; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; margin-top: 1.6em; }
.storypage .prose .table-scroll { max-width: min(100cqi, 880px); position: relative; left: 50%; translate: -50% 0; }
.prose .table-scroll + :is(p, ul, ol, blockquote, .table-scroll) { margin-top: 1.6em; }
.prose .table-scroll:focus-visible { outline-offset: 2px; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font: 400 15px/1.4 var(--font-display); font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font: 700 11px/1.3 var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); vertical-align: bottom; padding-top: 0; padding-bottom: 8px; border-bottom: 1px solid var(--ink); min-width: 4.5em; }
.prose tbody tr:last-child > * { border-bottom-color: var(--ink); }
.prose td { min-width: 2.5em; }
.prose td:not(:first-child, .al-right, .al-center) { min-width: 8em; }
.prose tr > :last-child { padding-right: 0; }
.prose th:first-child, .prose td:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); padding-right: 16px; }
.prose :is(th, td):first-child:not(.al-right, .al-center) { min-width: 11em; }
.prose td:first-child { font-weight: 600; }
.prose td a { text-decoration-color: var(--rule); }
.prose td a:hover { text-decoration-color: currentColor; }
.prose .al-left { text-align: left; }
.prose .al-center { text-align: center; }
.prose .al-right { text-align: right; }
.prose th.al-center, .prose td.al-center { padding-left: 7px; padding-right: 7px; }
.prose td code { white-space: nowrap; }

/* The rankings block (src/rankings.ts, hub-spec.md §83): one ranked list with a switch between its views (radio buttons,
   no script). A browser without :has() shows every view, one under the other. */
.prose .rk { margin: 2.2em calc((100% - min(100cqi, 880px)) / 2) 2.4em; border-top: 4px solid var(--ink); padding-top: 16px; }
.rk__switch { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.rk__switches { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; }
.rk__legend { float: left; font-size: 11px; line-height: 46px; color: var(--ink-2); margin-right: 14px; padding: 0; }
.rk__tabs { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--ink); border-radius: var(--radius); }
.rk__radio { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.rk__tab {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 20px; cursor: pointer;
  font: 700 16px/1 var(--font-display); letter-spacing: .01em; color: var(--ink-2); border-radius: 1px; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.rk__tab:hover { color: var(--ink); background: var(--wash); }
.rk__tab--n { min-width: 52px; padding: 0 14px; font-variant-numeric: tabular-nums; }
.rk__radio:checked + .rk__tab { background: var(--ink); color: var(--paper); }
.rk__radio:focus-visible + .rk__tab { outline: 3px solid var(--link); outline-offset: 2px; }
.prose .rk__view { margin: 18px 0 0; font: 400 17px/1.45 var(--font-text); color: var(--ink-2); text-wrap: pretty; }
.rk__viewname { display: block; font: 800 22px/1.2 var(--font-display); color: var(--ink); margin-bottom: 2px; }
.rk__panel + .rk__panel { margin-top: 36px; }
.rk__head, .rk__row { display: grid; grid-template-columns: 44px 48px minmax(0, 1fr) 148px 152px; column-gap: 16px; }
.rk__head { margin-top: 18px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font: 700 11px/1.3 var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.rk__head span:first-child { grid-column: 3; }
.rk__head span:last-child { text-align: right; }
.prose .rk__list { list-style: none; padding: 0; margin: 0; }
.prose .rk__row { margin: 0; padding: 16px 0; align-items: center; border-bottom: 1px solid var(--rule); }
.prose .rk__row::before { content: none; }
.rk__row:last-child { border-bottom-color: var(--ink); }
.rk__rank { font: 800 30px/1 var(--font-display); font-variant-numeric: tabular-nums; text-align: right; }
.rk__row--top .rk__rank { color: var(--red); }
.rk__icon { display: block; width: 48px; height: 48px; border-radius: var(--radius-icon); object-fit: cover; box-shadow: 0 0 0 1px var(--icon-ring); }
.rk__mono { display: flex; align-items: center; justify-content: center; background: var(--wash); box-shadow: inset 0 0 0 1px var(--rule); font: 800 18px/1 var(--font-display); letter-spacing: .02em; color: var(--ink-2); }
.rk__body { min-width: 0; }
.prose .rk__name { margin: 0; font: 700 19px/1.25 var(--font-display); overflow-wrap: anywhere; }
.rk__name a { text-decoration: none; color: inherit; }
.rk__name a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rk__house { margin: 0 0 0 10px; vertical-align: 2px; }
.house { display: inline-block; font-size: 10px; letter-spacing: .08em; color: var(--ink); border: 1px solid var(--ink); border-radius: var(--radius); padding: 2px 6px 1px; line-height: 1.3; }
.prose .rk__note { margin: 4px 0 0; font: 400 16px/1.45 var(--font-text); color: var(--ink-2); text-wrap: pretty; }
.rk__score { display: flex; align-items: center; gap: 10px; }
.rk__num { flex: none; min-width: 2.6em; font: 700 17px/1 var(--font-display); font-variant-numeric: tabular-nums; text-align: right; }
.rk__bar { flex: 1; height: 6px; background: var(--rule); border-radius: 1px; overflow: hidden; }
.rk__fill { display: block; height: 100%; background: var(--ink); transform-origin: left center; }
.rk__row--top .rk__fill { background: var(--red); }
.prose .rk__price { margin: 0; font: 600 15px/1.3 var(--font-display); font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.rk__covers { display: block; margin-top: 4px; font: 500 13px/1.3 var(--font-text); font-variant-numeric: normal; color: var(--ink-2); }
.prose .rk__foot { margin: 12px 0 0; font: 400 15px/1.45 var(--font-text); color: var(--ink-2); }
.prose .rk-error { font: 600 16px/1.4 var(--font-display); color: var(--red); border-left: 3px solid var(--red); padding: 8px 12px; }
.prose .rk-error strong { display: block; }
.rk--grid .rk__panel--alt { display: none; }
.rk--grid .rk__panel { margin-top: 0; }
.rk--grid .rk__panel:not(.rk__panel--alt) ~ .rk__panel:not(.rk__panel--alt) { margin-top: 36px; }
@supports selector(:has(*)) {
  .rk__switch { display: block; }
  .rk__panel { display: none; }
  .rk:not(.rk--grid):has(.rk__radio:nth-of-type(1):checked) .rk__panel:nth-child(1),
  .rk:not(.rk--grid):has(.rk__radio:nth-of-type(2):checked) .rk__panel:nth-child(2),
  .rk:not(.rk--grid):has(.rk__radio:nth-of-type(3):checked) .rk__panel:nth-child(3),
  .rk:not(.rk--grid):has(.rk__radio:nth-of-type(4):checked) .rk__panel:nth-child(4) { display: block; }
  .rk--grid:has(.rk__m1:checked):has(.rk__c1:checked) .rk__p1-1, .rk--grid:has(.rk__m1:checked):has(.rk__c2:checked) .rk__p1-2,
  .rk--grid:has(.rk__m1:checked):has(.rk__c3:checked) .rk__p1-3, .rk--grid:has(.rk__m1:checked):has(.rk__c4:checked) .rk__p1-4,
  .rk--grid:has(.rk__m1:checked):has(.rk__c5:checked) .rk__p1-5, .rk--grid:has(.rk__m2:checked):has(.rk__c1:checked) .rk__p2-1,
  .rk--grid:has(.rk__m2:checked):has(.rk__c2:checked) .rk__p2-2, .rk--grid:has(.rk__m2:checked):has(.rk__c3:checked) .rk__p2-3,
  .rk--grid:has(.rk__m2:checked):has(.rk__c4:checked) .rk__p2-4, .rk--grid:has(.rk__m2:checked):has(.rk__c5:checked) .rk__p2-5,
  .rk--grid:has(.rk__m3:checked):has(.rk__c1:checked) .rk__p3-1, .rk--grid:has(.rk__m3:checked):has(.rk__c2:checked) .rk__p3-2,
  .rk--grid:has(.rk__m3:checked):has(.rk__c3:checked) .rk__p3-3, .rk--grid:has(.rk__m3:checked):has(.rk__c4:checked) .rk__p3-4,
  .rk--grid:has(.rk__m3:checked):has(.rk__c5:checked) .rk__p3-5, .rk--grid:has(.rk__m4:checked):has(.rk__c1:checked) .rk__p4-1,
  .rk--grid:has(.rk__m4:checked):has(.rk__c2:checked) .rk__p4-2, .rk--grid:has(.rk__m4:checked):has(.rk__c3:checked) .rk__p4-3,
  .rk--grid:has(.rk__m4:checked):has(.rk__c4:checked) .rk__p4-4, .rk--grid:has(.rk__m4:checked):has(.rk__c5:checked) .rk__p4-5 { display: block; }
  .rk__panel + .rk__panel, .rk--grid .rk__panels .rk__panel:not(.rk__panel--alt) ~ .rk__panel:not(.rk__panel--alt) { margin-top: 0; }
  .rk__viewname { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .prose .rk__view:not(:has(.rk__caption)) { margin: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .rk__panel { animation: rk-in .22s ease-out; }
  .rk__fill { animation: rk-bar .45s cubic-bezier(.2, .7, .2, 1); }
}
@keyframes rk-in { from { opacity: 0; translate: 0 4px; } }
@keyframes rk-bar { from { transform: scaleX(0); } }
.rk__w0 { width: 0%; } .rk__w1 { width: 1%; } .rk__w2 { width: 2%; } .rk__w3 { width: 3%; } .rk__w4 { width: 4%; } .rk__w5 { width: 5%; } .rk__w6 { width: 6%; } .rk__w7 { width: 7%; } .rk__w8 { width: 8%; } .rk__w9 { width: 9%; }
.rk__w10 { width: 10%; } .rk__w11 { width: 11%; } .rk__w12 { width: 12%; } .rk__w13 { width: 13%; } .rk__w14 { width: 14%; } .rk__w15 { width: 15%; } .rk__w16 { width: 16%; } .rk__w17 { width: 17%; } .rk__w18 { width: 18%; } .rk__w19 { width: 19%; }
.rk__w20 { width: 20%; } .rk__w21 { width: 21%; } .rk__w22 { width: 22%; } .rk__w23 { width: 23%; } .rk__w24 { width: 24%; } .rk__w25 { width: 25%; } .rk__w26 { width: 26%; } .rk__w27 { width: 27%; } .rk__w28 { width: 28%; } .rk__w29 { width: 29%; }
.rk__w30 { width: 30%; } .rk__w31 { width: 31%; } .rk__w32 { width: 32%; } .rk__w33 { width: 33%; } .rk__w34 { width: 34%; } .rk__w35 { width: 35%; } .rk__w36 { width: 36%; } .rk__w37 { width: 37%; } .rk__w38 { width: 38%; } .rk__w39 { width: 39%; }
.rk__w40 { width: 40%; } .rk__w41 { width: 41%; } .rk__w42 { width: 42%; } .rk__w43 { width: 43%; } .rk__w44 { width: 44%; } .rk__w45 { width: 45%; } .rk__w46 { width: 46%; } .rk__w47 { width: 47%; } .rk__w48 { width: 48%; } .rk__w49 { width: 49%; }
.rk__w50 { width: 50%; } .rk__w51 { width: 51%; } .rk__w52 { width: 52%; } .rk__w53 { width: 53%; } .rk__w54 { width: 54%; } .rk__w55 { width: 55%; } .rk__w56 { width: 56%; } .rk__w57 { width: 57%; } .rk__w58 { width: 58%; } .rk__w59 { width: 59%; }
.rk__w60 { width: 60%; } .rk__w61 { width: 61%; } .rk__w62 { width: 62%; } .rk__w63 { width: 63%; } .rk__w64 { width: 64%; } .rk__w65 { width: 65%; } .rk__w66 { width: 66%; } .rk__w67 { width: 67%; } .rk__w68 { width: 68%; } .rk__w69 { width: 69%; }
.rk__w70 { width: 70%; } .rk__w71 { width: 71%; } .rk__w72 { width: 72%; } .rk__w73 { width: 73%; } .rk__w74 { width: 74%; } .rk__w75 { width: 75%; } .rk__w76 { width: 76%; } .rk__w77 { width: 77%; } .rk__w78 { width: 78%; } .rk__w79 { width: 79%; }
.rk__w80 { width: 80%; } .rk__w81 { width: 81%; } .rk__w82 { width: 82%; } .rk__w83 { width: 83%; } .rk__w84 { width: 84%; } .rk__w85 { width: 85%; } .rk__w86 { width: 86%; } .rk__w87 { width: 87%; } .rk__w88 { width: 88%; } .rk__w89 { width: 89%; }
.rk__w90 { width: 90%; } .rk__w91 { width: 91%; } .rk__w92 { width: 92%; } .rk__w93 { width: 93%; } .rk__w94 { width: 94%; } .rk__w95 { width: 95%; } .rk__w96 { width: 96%; } .rk__w97 { width: 97%; } .rk__w98 { width: 98%; } .rk__w99 { width: 99%; }
.rk__w100 { width: 100%; }

/* ---------- forms and short pages (the newsletter, not found, about) ---------- */
.narrow { max-width: 760px; }
.narrow .prose > p:first-child::first-letter { all: unset; }
.form { display: flex; flex-direction: column; max-width: 560px; }
.formerror { font: 600 16px/1.4 var(--font-display); color: var(--red); border-left: 3px solid var(--red); padding: 8px 12px; margin-bottom: 24px; max-width: 560px; }
.formok { font: 400 21px/1.45 var(--font-text); padding: 16px 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* The makers' flow, the policies and /agents (placeholder-view.ts, every class ph-), inside this frame: their own
   layout from placeholder.css, in this page's type. */
.ph-in-site { padding-top: 8px; }
.ph-in-site .ph-page__title, .ph-in-site .ph-policy__title { font-stretch: 100%; letter-spacing: -.015em; }
.ph-in-site .ph-box__title, .ph-in-site .ph-agent__title { font-stretch: 100%; }
.ph-in-site .ph-button { border-radius: var(--radius); letter-spacing: .06em; font-weight: 700; }
/* /agents' request examples wrap rather than scroll sideways, so no box needs a keyboard stop to read it. */
#main.ph-in-site .ph-code, #main.ph-in-site .ph-code code { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }

/* ---------- the makers' pages: claim links, the share kit, the sponsored apps offer and terms, the consent page
   (0.61.1; their rules came from site.css, in 12c's type and rules) and /account (0.64.2; its own rules are account.css). Their generic names (.page, .form, .hint and the
   rest) are scoped to <body class="makers-page"> (frame.ts's makers option) with :where(), which adds no specificity,
   so they look as they did and never reach a reader's page (0.64.1: the 404, About, Newsletter and developer pages).
   ---------- */
:where(.makers-page) .page { padding-top: 8px; }
.top--bare { justify-content: flex-start; }
:where(.makers-page) .section-label { font-size: 12px; color: var(--ink-2); margin-bottom: 10px; }
:where(.makers-page) .page p > .button + .button, :where(.makers-page) .page p > .btn + .btn { margin-left: 8px; }
:where(.makers-page) .button--small { min-height: 36px; padding: 0 14px; font-size: 12px; }
:where(.makers-page) .form { display: flex; flex-direction: column; max-width: 560px; }
:where(.makers-page) .form label { font: 700 15px/1.3 var(--font-display); margin-top: 20px; margin-bottom: 6px; }
:where(.makers-page) .form label:first-child { margin-top: 0; }
:where(.makers-page) .form .hint, :where(.makers-page) .hint { font: 400 15px/1.4 var(--font-text); color: var(--ink-2); margin: -2px 0 8px; }
:where(.makers-page) .form .optional { font-weight: 500; color: var(--ink-2); }
:where(.makers-page) .form input, :where(.makers-page) .form textarea, :where(.makers-page) .form select {
  min-height: 48px; padding: 10px 14px; font: 400 18px/1.4 var(--font-text); color: var(--ink); background: var(--field);
  border: 2px solid var(--ink); border-radius: var(--radius); width: 100%;
}
:where(.makers-page) .form textarea { resize: vertical; }
:where(.makers-page) .form .button, :where(.makers-page) .form .btn { margin-top: 28px; align-self: flex-start; }
:where(.makers-page) .formerror, :where(.makers-page) .formok { max-width: 560px; }
/* The claim page (claim-spec.md §2): the banner and its actions over the maker's listing, the other choices under it. */
.claimbar { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 20px 0 24px; margin-top: 28px; }
.claimbar__title { font: 800 28px/1.2 var(--font-display); letter-spacing: -.005em; max-width: 40ch; text-wrap: balance; margin-bottom: 18px; }
.claimbar__publish label { display: block; font: 700 15px/1.3 var(--font-display); margin-bottom: 4px; }
.claimbar__publish .hint { margin-bottom: 10px; }
.claimbar__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.claimbar select {
  min-height: 48px; padding: 10px 14px; font: 400 18px/1.4 var(--font-text); color: var(--ink); background: var(--field);
  border: 2px solid var(--ink); border-radius: var(--radius); max-width: 100%;
}
.claimbar .formerror, .claimbar .formok { margin-bottom: 16px; }
.claimmore { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; border-top: 2px solid var(--ink); padding-top: 28px; padding-bottom: 64px; }
.claimmore__box .button { margin-top: 16px; }
.claimmore__box label { margin-top: 0; }
.claimmore__label { font: 700 15px/1.3 var(--font-display); margin-bottom: 6px; }
.claimmore__notyou { grid-column: 1 / -1; font: 400 17px/1.5 var(--font-text); color: var(--ink-2); max-width: 70ch; }
/* "Your icon" on the claim and look-over pages (hub-spec.md §104.2): the icon now, and the upload form beside it. */
.claimicon { grid-column: 1 / -1; margin-top: 0; }
.claimicon__lead { font: 400 19px/1.45 var(--font-text); max-width: 60ch; margin-bottom: 16px; }
.claimicon .formok, .claimicon .formerror { margin-bottom: 16px; padding-top: 8px; padding-bottom: 8px; }
.claimicon__row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; }
.claimicon__img { width: 96px; height: 96px; flex: none; border-radius: var(--radius-icon); object-fit: contain; box-shadow: 0 0 0 1px var(--rule); }
.claimicon__img--none { display: grid; place-items: center; padding: 8px; text-align: center; font: 400 14px/1.3 var(--font-text); color: var(--ink-2); }
.claimicon__form { flex: 1 1 260px; min-width: 0; }
.claimicon__form label { margin-top: 0; }
.claimicon__form input[type="file"] { padding: 10px; font-size: 16px; }
.claimicon__form .button { margin-top: 16px; }
/* "Don't list it" asks first: the safe choice first and filled, the decline apart from it. */
.claimask { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding-top: 4px; padding-bottom: 64px; }
/* The makers' share kit (share-kit-spec.md §2): each badge on the ground it is made for, whatever the page's theme. */
.kit > * { max-width: 880px; }
.kit-block { border-top: 1px solid var(--rule); padding: 20px 0 32px; margin-top: 0; }
.kit-block .section-label { margin-bottom: 12px; }
.pagehead + .kit-block { border-top: 0; padding-top: 0; }
.kit-hint { font: 400 17px/1.45 var(--font-text); color: var(--ink-2); margin-bottom: 14px; max-width: 60ch; }
.kit-lede { font: 400 19px/1.5 var(--font-text); margin-bottom: 16px; max-width: 60ch; }
.kit-copy { display: flex; gap: 8px; align-items: stretch; }
.kit-copy__text {
  flex: 1; min-width: 0; display: flex; align-items: center; min-height: 48px; padding: 10px 14px;
  background: var(--wash); border: 1px solid var(--rule); border-radius: var(--radius);
  font: 500 16px/1.4 var(--font-display); overflow-wrap: anywhere;
}
.kit-copy__text a { text-underline-offset: 3px; color: var(--link); }
.kit-copy__text--code { display: block; font: 400 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.kit-copy__button { flex: none; min-width: 96px; }
.kit-copy__button[hidden] { display: none; }
.kit-share { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.kit-share .button { width: 100%; }
.kit-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.kit-badges + .kit-badges { margin-top: 28px; }
/* The featured badge's two squares for a social post, a line under its pair (hub-spec.md §127). */
.kit-social { margin: 16px 0 0; }
/* A link never breaks inside itself on a phone, nor does the size (no-break spaces in KIT_COPY.socialSize). */
.kit-social a { color: var(--link); white-space: nowrap; }
.kit-social + .kit-badges { margin-top: 28px; }
.kit-badge { min-width: 0; }
.kit-badge__ground { display: flex; align-items: center; justify-content: center; padding: 28px 16px; border: 1px solid var(--rule); border-radius: var(--radius); }
.kit-badge__ground--light { background: #FFFFFF; }
.kit-badge__ground--dark { background: #000000; }
/* Each badge at the width and height its img gives (the featured badge is 200 x 52, the others 250 x 54). */
.kit-badge__ground img { max-width: 100%; height: auto; }
.kit-badge__name { font: 700 13px/1.3 var(--font-display); color: var(--ink-2); letter-spacing: .02em; margin: 10px 0 8px; }
.kit-badge .kit-copy { flex-direction: column; }
.kit-badge .kit-copy__button { align-self: flex-start; }
.kit .kit-back { border-top: 1px solid var(--rule); padding-top: 24px; margin-top: 8px; }
/* The sponsored apps offer and the old founding partner pages (founding-partner-spec.md §3, sponsored-post-spec.md). */
.partner__app { display: flex; align-items: center; gap: 16px; margin: 4px 0 28px; }
.partner__app .icon { width: 64px; height: 64px; }
.partner__name { font: 800 32px/1.1 var(--font-display); }
.partner__block { border-top: 1px solid var(--rule); padding: 18px 0 20px; font: 400 18px/1.5 var(--font-text); }
.partner__block p + p { margin-top: 8px; }
.partner__list { list-style: disc; padding-left: 1.3em; margin-bottom: 8px; }
.partner__list li + li { margin-top: 6px; }
.partner__list a { overflow-wrap: anywhere; color: var(--link); }
.partner__price { font: 800 40px/1.1 var(--font-display); margin-bottom: 6px; }
.partner__pay { border-top: 2px solid var(--ink); padding-top: 24px; margin-top: 8px; }
.partner__pay .hint { margin-top: 10px; }
.sponsor__items { list-style: none; padding: 0; margin: 4px 0 8px; }
.sponsor__item { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.sponsor__item .icon { width: 48px; height: 48px; flex: none; }
.sponsor__name { flex: 1 1 auto; min-width: 0; font: 800 24px/1.15 var(--font-display); overflow-wrap: anywhere; }
.sponsor__price { flex: none; font: 800 24px/1.15 var(--font-display); font-variant-numeric: tabular-nums; }
.sponsor__total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: -1px; }
.sponsor__total .sponsor__name { font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
.sponsor__total .sponsor__price { font-size: 32px; }
.consent__form { margin-top: 24px; }
/* The full analysis order pages (hub-spec.md §132): a few lines after Stripe's page, centred. */
:where(.makers-page) .order-page { text-align: center; }
:where(.makers-page) .order-page .pagehead__dek { margin-left: auto; margin-right: auto; overflow-wrap: anywhere; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .top { flex-wrap: wrap; gap: 12px 24px; }
  .nav { order: 3; margin-left: 0; flex-basis: 100%; }
  .top .btn { margin-left: auto; }

  .front { grid-template-columns: minmax(0, 1fr); }
  .rail { margin-top: 48px; }
  .rail .list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 28px; }
  .rail .list > li { border-bottom: 0; padding: 2px 0 0; }
  .rail .mini { flex-direction: column; gap: 10px; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .apps--three .app { padding: 18px 18px 20px; }
  /* Three cards to a row leave little room beside the icon: the icon goes above the name, as on the day shelf. */
  .apps--three .app__top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .apps--three .app__top .icon { width: 56px; height: 56px; }
  .apps--three .app__name { font-size: 20px; }
  .makers__in { grid-template-columns: minmax(0, 1fr); }
  .appbody { grid-template-columns: minmax(0, 1fr); }
  .appbody aside { margin-top: 48px; }
  .catpage { grid-template-columns: minmax(0, 1fr); }
  .catpage__side { grid-column: 1; margin-top: 48px; }
  .appsindex > .appsearch, .appsindex > .catpage__side, .appsindex > .catpage__main { grid-column: 1; grid-row: auto; }
  .appsindex > .catpage__side { margin: 12px 0 40px; }
  .catpage__side .key { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Tablets: three across; the first twelve, then Show all. */
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
  .shelf__end.t1 { grid-column: span 1; } .shelf__end.t2 { grid-column: span 2; } .shelf__end.t3 { grid-column: 1 / -1; }
  /* Only a day of more than twelve starts shorter here, and its Show all is there to open the rest and the closing
     note; a day of nine to twelve shows every app and its note (the checker's note 4). */
  .shelf--over12.is-collapsed > .shelf__item:nth-child(n+13), .shelf--over12.is-collapsed > .shelf__end { display: none; }
  .shelf--over12 ~ .btn.shelf__all { display: inline-flex; }
  .shelf__top { flex-direction: column; align-items: flex-start; gap: 12px; min-height: 0; }
  .shelf__top .icon { width: 56px; height: 56px; }
  .shelf__name { font-size: 18px; }
  .hits[class] { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .best { grid-template-columns: 64px minmax(0, 1fr); }
  .best .icon { width: 64px; height: 64px; }
  .best .btn { grid-column: 2; justify-self: start; margin-top: 14px; }
}

/* ---------- the city above the words, edge to edge (as 10b on small screens), wherever the city's column would be
   too narrow for Q and his bubble beside the form ---------- */
@media (max-width: 1279px) {
  .ask { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ask__art { grid-column: 1; grid-row: 1; margin: 0 calc(-1 * var(--gutter)); min-height: 0; height: clamp(100px, calc(100vw / 4.2), 230px); }
  .ask__art .city { -webkit-mask-image: none; mask-image: none; }
  .ask__text { grid-column: 1; grid-row: 2; padding: 10px 0 22px; }
  .ask__top { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .answer__in { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 0 20px; }
  .answer__q { width: 88px; height: 88px; }
}

@media (max-width: 900px) {
  .key { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .key__all { display: inline-block; }
  .browse .key__more { display: none; }
  .foot__top { grid-template-columns: minmax(0, 1fr); }
  .card__title { font-size: 21px; }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  #main { padding-bottom: 56px; }
  section { margin-top: 48px; }
  .key a { font-size: 14px; padding-top: 6px; padding-bottom: 6px; }
  .pagehead { margin-top: 28px; }
  .pagehead__title, .cat__name { font-size: 38px; }
  .pagehead__dek, .cat__desc { font-size: 19px; }
  .catpage__side .key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 56px minmax(0, 1fr); gap: 0 14px; padding: 18px 0; }
  .row .icon { width: 56px; height: 56px; }
  .row__name a { font-size: 19px; }
  .row__tag { font-size: 18px; }
  .front { margin-top: 28px; }
  .lead__title { font-size: 36px; line-height: 1.08; }
  .lead__body, .lead--text .lead__body { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 18px; }
  .appmark { gap: 12px; }
  .appmark--lead .icon, .appmark--story .icon { width: 48px; height: 48px; }
  .deck { font-size: 19px; }
  .rail .list { display: block; }
  .rail .mini { flex-direction: row; gap: 14px; }
  .rail .list > li { border-bottom: 1px solid var(--rule); padding: 16px 0; }
  .rail .list > li:first-child { padding-top: 2px; }
  .cards, .cards--2, .briefs, .apps, .apps--three, .pair { grid-template-columns: minmax(0, 1fr); }
  .cards--1 .story-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .apps--three .app { padding: 20px 18px 22px; }
  .apps--three .app__top { flex-direction: row; align-items: center; gap: 16px; }
  .app { padding: 20px 18px 22px; }
  .cards .card + .card { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--rule); }
  .briefs { margin-top: 32px; }
  .briefs .card + .card { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--rule); }
  .card__title { font-size: 22px; }
  .cards .frame { aspect-ratio: 16 / 10; }
  .makers { margin-top: 56px; }
  .makers__title { font-size: 36px; }
  .makers__lede { font-size: 19px; }
  .makers__text p { font-size: 18px; }
  .makers__acts .btn { flex: 1 1 100%; }
  .foot__top { grid-template-columns: minmax(0, 1fr); padding: 36px 0 32px; }
  .foot__title { font-size: 28px; }
  .foot__bottom { flex-direction: column; align-items: flex-start; }
  .signup__row { flex-direction: column; }
  .signup .btn { width: 100%; }
  .apphead { grid-template-columns: 88px minmax(0, 1fr); gap: 0 18px; }
  .apphead > .icon { width: 88px; height: 88px; }
  .apphead h1 { font-size: 40px; }
  @supports (width: 1cqi) { .apphead h1 { font-size: clamp(15px, calc(98cqi / var(--fit, 1)), 40px); } }
  .apphead .deck { font-size: 20px; }
  .stores { grid-column: 1 / -1; }
  .stores .badge img { height: 44px; }
  .stores .btn { flex: 1 1 100%; }
  .take { font-size: 19px; }
  .comment__body, .comments > p { font-size: 17px; }
  .comment-form .btn { align-self: stretch; }
  .appart { padding: 12px; }
  .story-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .story-row .frame { aspect-ratio: 16 / 10; }
  .story__head { margin-top: 32px; }
  .story__head h1 { font-size: 36px; line-height: 1.08; }
  .story__head .deck { font-size: 20px; }
  .prose { font-size: 18px; }
  .prose h2 { font-size: 22px; }
  .prose h3 { font-size: 19px; }
  .prose table { font-size: 14px; }
  .prose th:first-child, .prose td:first-child { padding-right: 12px; }
  .prose :is(th, td):first-child:not(.al-right, .al-center) { min-width: 8em; }
  .rk__switches { display: block; }
  .rk__switch + .rk__switch { margin-top: 14px; }
  .rk__legend { float: none; display: block; line-height: 1.3; margin: 0 0 8px; }
  .rk__tabs { display: flex; }
  .rk__tab { flex: 1 1 0; min-height: 42px; padding: 0 8px; }
  .rk__head { display: none; }
  .rk__row { grid-template-columns: 28px 44px minmax(0, 1fr) auto; grid-template-areas: "rank icon body price" ". . score score"; column-gap: 12px; row-gap: 10px; }
  .prose .rk__row { padding: 14px 0; align-items: start; }
  .rk__rank { grid-area: rank; font-size: 24px; padding-top: 2px; }
  .rk__icon { grid-area: icon; width: 44px; height: 44px; }
  .rk__body { grid-area: body; }
  .rk__score { grid-area: score; }
  .prose .rk__price { grid-area: price; padding-top: 2px; max-width: 8em; }
  .prose .rk__name { font-size: 17px; }
  .rk__house { display: table; margin: 6px 0 0; }
  .prose .rk__note { font-size: 15px; }
  .rk__num { font-size: 15px; }
  .rk:has(.rk__covers) .rk__row { grid-template-columns: 28px 44px minmax(0, 1fr) 132px; grid-template-areas: "rank icon body body" ". . score price"; row-gap: 12px; }
  .rk:has(.rk__covers) .rk__score { align-self: center; }
  .rk:has(.rk__covers) .rk__price { padding-top: 0; max-width: none; }

  /* The makers' pages on phones. */
  .claimbar__title { font-size: 23px; }
  .claimbar__row .button, .claimbar select { width: 100%; }
  .claimmore { grid-template-columns: 1fr; gap: 32px; }
  .claimask { flex-direction: column; align-items: stretch; gap: 56px; }
  .claimask .button { width: 100%; }
  :where(.makers-page) .form .button, :where(.makers-page) .form .btn { align-self: stretch; }
  :where(.makers-page) .page p > .button, :where(.makers-page) .page p > .btn { width: 100%; }
  :where(.makers-page) .page p > .button + .button, :where(.makers-page) .page p > .btn + .btn { margin: 8px 0 0; }
  .kit-copy { flex-direction: column; }
  .kit-copy__button, .kit-badge .kit-copy__button { align-self: stretch; }
  .kit-share { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit-badges { grid-template-columns: 1fr; }
  .partner__pay .button { width: 100%; }

  /* Q on phones */
  .ask__line { font-size: 27px; line-height: 1.2; margin: 6px 0 14px; }
  .bubble { max-width: 190px; padding: 6px 10px 7px; font-size: 16px; line-height: 1.25; right: calc(var(--tip-r) * var(--s) + 9.5px); }
  .bubble__hi { font-size: 13px; margin-bottom: 1px; }
  .bubble::before { right: -11px; margin-top: -7px; border-width: 7px 0 7px 11px; }
  .bubble::after { right: -8.6px; margin-top: -5.6px; border-width: 5.6px 0 5.6px 8.6px; }
  .ask__field .btn { padding: 0 16px; }
  .ask__try { flex-direction: column; gap: 6px; }
  .answer__in { display: flow-root; position: relative; }
  .answer.is-open .answer__in { padding: 20px 0 26px; }
  .answer__q { float: left; width: 72px; height: 72px; margin: 0 14px 6px 0; }
  .answer__clear { position: absolute; top: 18px; right: 0; }
  .answer__said { padding-right: 52px; }
  .answer__body > .best, .answer__body > .hits, .answer__body > .answer__also { clear: both; }
  .answer__line { font-size: 21px; padding: 6px 13px 8px; max-width: calc(100% - 99px); }
  .best { grid-template-columns: 56px minmax(0, 1fr); gap: 0 14px; align-items: start; }
  .best .icon { width: 56px; height: 56px; }
  .best__name { font-size: 21px; }
  .best__tag { font-size: 18px; }
  .best .btn { grid-column: 1 / -1; justify-self: stretch; }

  /* New apps on phones: one list; the first eight, then Show all. */
  .days__tabs { gap: 0 28px; margin-bottom: 8px; }
  .days__tab { font-size: 18px; padding: 12px 0 10px; }
  .days__sep { display: none; }
  .days__date { display: block; font-family: var(--font-display); font-weight: 500; font-size: 14px; color: var(--ink-2); margin-top: 3px; }
  .shelf { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .shelf__item { border-top: 0; border-bottom: 1px solid var(--rule); padding: 18px 0 18px; }
  .shelf__top { flex-direction: row; align-items: center; gap: 14px; min-height: 56px; }
  .shelf__tag { margin-top: 10px; }
  .shelf__end[class] { grid-column: auto; border-top: 0; padding-top: 18px; }
  .shelf--over8.is-collapsed > .shelf__item:nth-child(n+9), .shelf--over8.is-collapsed > .shelf__end { display: none; }
  .shelf--over8.is-collapsed > .shelf__item:nth-child(8) { border-bottom: 0; }
  .btn.shelf__all { display: none; }
  .shelf--over8 ~ .btn.shelf__all { display: inline-flex; width: 100%; margin-top: 12px; }
}

/* 10b's phone bar */
@media (max-width: 640px) {
  .top { padding: 14px 0; }
  .top .logo img { height: 28px; }
  .nav ul { gap: 2px 16px; }
  .nav a { font-size: 14px; }
  .nav .wide { display: none; }
}

/* ---------- at night: pictures and Q ---------- */
/* Screenshots and icons keep a light mat or ring so dark art doesn't melt into the page. */
:root[data-theme="night"] .frame, :root[data-theme="night"] .appart { border-color: var(--rule); }
/* The tile city's sand grid would draw bright lines across a dark page: at night the grid steps back, the tiles and Q
   stay as drawn, and nothing boxes them in. */
:root[data-theme="night"] .city > g > g[stroke] { opacity: .32; }
:root[data-theme="night"] .answer__q { filter: drop-shadow(0 0 0 transparent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .ask__form:not(.is-ready) .ask__line { visibility: visible; }
}
