/* The builds page. Three screens, each with one thing that leads: the top (one sentence), the builds as cards (the
   first card), and one build (its name, then its demo). The rules it holds to are in the spec, "The redesign":
   projects/builds-page/build-spec.md.

   Type: four sizes, two weights (400 and 600), two faces (Fraunces for headings and numbers, Inter for the rest).
   Space: one scale, --s1 to --s8. Colour: one accent, the lime --loud, on the main button and on what's open.
   The colours are the ones every demo takes from builds/demo.css, so a framed demo reads as part of the page.
   The page is light only (Chris, 2026-11-26: "also make it light mode"): it keeps its paper look whatever the
   viewer's own setting, so there are no dark values here or in demo.css. */
:root {
  --paper: #FAF6EE; --card: #FFFFFF; --ink: #141412; --soft: #5C594F; --line: #DDD6C6;
  --tab: #ECE6D8; --say: #3A3832;   /* a tab that isn't open, and the text under a lead (the design approved 2026-11-28) */
  /* Lime under ink text. Lime alone is too faint on paper to mark an edge, so the main button's edge is ink. */
  --loud: #BFEA00; --loud-ink: #141412; --loud-edge: #141412;
  --live: #2F7D32; --sample: #8A5A00; --sample-bg: #FFF1CC; --focus: #1F5FBF;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-s: 15px; --t-m: 17px; --t-l: 24px; --t-xl: 36px;
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 72px; --s8: 96px;
  --measure: 31em;   /* about 65 characters of body text */
  --gap: var(--s6);  /* between the parts of a screen */
  color-scheme: light;
}
@media (min-width: 720px) { :root { --t-m: 18px; --t-l: 28px; --t-xl: 56px; --gap: var(--s7); } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--t-m); font-weight: 400; line-height: 1.6; }
.wrap { max-width: 1152px; margin: 0 auto; padding-left: max(var(--s3), env(safe-area-inset-left, 0px)); padding-right: max(var(--s3), env(safe-area-inset-right, 0px)); }
h1, h2, h3, h4, p, dl, dd, ul { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; text-wrap: balance; }
h1 { font-size: var(--t-xl); letter-spacing: -0.01em; }
h2, h3 { font-size: var(--t-l); }
h4 { font-size: var(--t-m); font-weight: 600; line-height: 1.3; }
a { color: inherit; text-underline-offset: 0.18em; }
b, strong, dt { font-weight: 600; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.opening #home { display: none; }

.skip { position: absolute; left: var(--s3); top: -100px; z-index: 10; padding: var(--s2) var(--s3); background: var(--ink); color: var(--paper); font-weight: 600; }
.skip:focus { top: var(--s2); }

/* A button: 48 px tall. The main one is the only lime thing on its screen. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s4); border: 2px solid var(--ink); border-radius: 8px;
  background: transparent; color: var(--ink); font: 600 var(--t-m)/1.2 var(--body); text-decoration: none; cursor: pointer; }
.btn.main { background: var(--loud); color: var(--loud-ink); border-color: var(--loud-edge); }
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* The slim header: his name, the site's pages, the contact. Every link is 44 px tall. */
/* On a phone it's two rows: his name and the contact, then the pages. */
.site .wrap { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s3); padding-top: max(var(--s2), env(safe-area-inset-top, 0px)); padding-bottom: var(--s2); }
.site { border-bottom: 1px solid var(--line); font-size: var(--t-s); }
.me { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; margin-right: auto; }
.site nav { display: flex; align-items: center; column-gap: var(--s1); order: 3; flex-basis: 100%; margin-left: calc(-1 * var(--s2)); }
.site a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 var(--s2); text-decoration: none; color: var(--soft); }
.site a:hover { color: var(--ink); text-decoration: underline; }
/* What's open: darker, heavier, and a lime bar under it. */
.site a[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--loud); }
.site .mail { color: var(--ink); margin-right: calc(-1 * var(--s2)); }

/* The top: one sentence leads, since his name is in the bar already. Under it, one band: the one button and the three
   numbers. It takes the height of its words and no more, so the first build shows under it on a laptop
   (Chris, 2026-11-28: "compact the whole top area above the fold so that it starts showing the builds underneath"). */
.top .wrap { display: grid; gap: var(--s4); padding-top: var(--s5); padding-bottom: var(--s3); }
.top h1 { max-width: 20em; }
.band { display: grid; gap: var(--s4); justify-items: start; }
.proof-box { width: 100%; border-top: 1px solid var(--line); padding-top: var(--s3); }
/* On a phone a number is one row, the figure and then what it counts, and the three rows share their columns. */
.proof { display: grid; gap: var(--s2) var(--s3); grid-template-columns: max-content minmax(0, 1fr); }
.proof div { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); grid-template-columns: subgrid; align-items: baseline; min-width: 0; }
.proof dd { order: -1; }
.nums div { display: flex; flex-direction: column-reverse; justify-content: flex-end; min-width: 0; }
.proof dd, .nums dd, .facts dd { font-family: var(--display); font-weight: 600; font-size: var(--t-l); line-height: 1.15; font-variant-numeric: tabular-nums; }
.proof dt, .nums dt, .facts dt { font-size: var(--t-s); font-weight: 400; line-height: 1.4; color: var(--soft); }
.read { font-size: var(--t-s); color: var(--soft); margin-top: var(--s2); }

/* The builds, as cards. */
.builds { scroll-margin-top: 0; }
.builds:focus { outline: none; }
.builds .wrap { padding-top: var(--s4); padding-bottom: var(--gap); }
.intro { max-width: var(--measure); margin-top: var(--s2); }
.group { margin-top: var(--gap); }
.group > h3 { margin-bottom: var(--s4); }
.aside { margin-top: var(--gap); max-width: var(--measure); color: var(--soft); }

/* A large card: a live picture of the demo, then its name, one sentence, up to three numbers and one button.
   The name is the link, and it covers the whole card. */
.big { position: relative; display: grid; gap: var(--s4); margin-top: var(--s6); }
.big:first-child { margin-top: var(--s5); }
.words { display: grid; gap: var(--s3); justify-items: start; align-content: center; min-width: 0; }
.words p { max-width: var(--measure); }
.big h3 a, .small h4 a { text-decoration: none; }
.big h3 a::after, .small h4 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.big h3 a:focus-visible, .small h4 a:focus-visible { outline: none; }
.big h3 a:focus-visible::after, .small h4 a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: var(--s3); width: 100%; max-width: var(--measure); }
/* A row is one number: its words on the left, what it counts on the right, on one baseline. */
.facts div { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); grid-template-columns: subgrid; align-items: baseline; padding: var(--s2) 0; border-top: 1px solid var(--line); }
.facts dd { order: -1; }
.big .btn { margin-top: var(--s2); }
.big:hover .btn { background: var(--loud); color: var(--loud-ink); border-color: var(--loud-edge); }
.big:hover .shot, .small:hover { box-shadow: 0 8px 28px rgba(20, 20, 18, .10); }

/* The picture: the demo itself, drawn at a desktop's width and scaled down to its box. The box holds its shape
   before the demo loads, so nothing on the page jumps, and the demo inside can't be clicked or tabbed into. */
.shot { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border: 0; border-radius: 16px; background: var(--card); }
.shot iframe { position: absolute; left: var(--s3); top: var(--s3); border: 0; transform-origin: 0 0; pointer-events: none; }
/* A thumbnail fills its box edge to edge: a large card's picture, or the top of a smaller card (Chris, 2026-11-29:
   "create a thumbnail image for each of the builds on the main builds page"; made from real material). */
.has-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pic { aspect-ratio: 16 / 10; overflow: hidden; margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) var(--s1); border-radius: 16px 16px 0 0; background: var(--tab); }

/* A smaller card: a name, a sentence and a state. */
.smalls { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
/* A card is white on the paper with no outline (Chris, 2026-11-28: "remove all outlines on cards that are colored"). */
.small { position: relative; display: grid; gap: var(--s2); align-content: start; padding: var(--s4); border: 0; border-radius: 16px; background: var(--card); min-height: 44px; }

/* A state: green while the build runs, amber for the made-up example, quiet once it's paused or retired. */
.state { font-size: var(--t-s); line-height: 1.4; color: var(--soft); }
.state.live { color: var(--live); }
.state.live::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.45em; border-radius: 50%; background: currentColor; vertical-align: 0.05em; }
.state.sample { color: var(--sample); background: var(--sample-bg); padding: 1px var(--s2); border-radius: 4px; justify-self: start; }

/* One build, in one column: its name, its state and a sentence, the demo across the page, its numbers in a row,
   the written parts, then the next build. */
#build .wrap { padding-top: var(--s3); padding-bottom: var(--gap); display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.back { display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; font-size: var(--t-s); color: var(--soft); }
.back:hover { color: var(--ink); }
.b-head { display: grid; gap: var(--s3); justify-items: start; }
.b-head .back { margin-bottom: var(--s2); }
.b-head h1:focus { outline: none; }
.b-head .what { max-width: var(--measure); }
.try { display: grid; gap: var(--s3); min-width: 0; }
.b-head + .try { margin-top: calc(var(--s6) - var(--gap)); }
.try-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s1) var(--s4); }
.try-line p { max-width: var(--measure); }
.try-line a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--t-s); }
.stage { background: var(--card); border: 0; border-radius: 16px; padding: var(--s3); min-width: 0; }
.frame { display: block; width: 100%; height: 600px; border: 0; border-radius: 6px; background: transparent; }
.soon { padding: var(--s7) var(--s3); text-align: center; color: var(--soft); }
.nums { display: grid; gap: var(--s4) var(--s5); grid-template-columns: minmax(0, 1fr); }
.nums div { border-top: 2px solid var(--ink); padding-top: var(--s2); }
.nums dd { overflow-wrap: anywhere; }
.sources { margin-top: var(--s2); font-size: var(--t-s); color: var(--soft); }
.sources summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; list-style: none; }
.sources summary::-webkit-details-marker { display: none; }
.sources[open] summary { color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--loud); text-decoration: none; }
.sources ul { padding-left: 1.2em; max-width: var(--measure); }
.sources li { margin-top: var(--s1); }
.part { display: grid; gap: var(--s3); max-width: var(--measure); }
.part ul { padding-left: 1.2em; display: grid; gap: var(--s2); }
.part dl { display: grid; gap: var(--s3); }
.part dt { font-size: var(--t-s); color: var(--soft); }
.watch { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; }
.onward { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); border-top: 1px solid var(--line); padding-top: var(--s4); }
.onward .btn { text-align: left; padding-block: var(--s2); }

.plain { padding-left: 1.2em; margin-top: var(--s4); max-width: var(--measure); }
.plain li { margin-bottom: var(--s2); }
.foot { border-top: 1px solid var(--line); color: var(--soft); font-size: var(--t-s); }
.foot .wrap { padding-top: var(--s3); padding-bottom: var(--s5); display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s4); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
.meta-accent { color: var(--ink); }

/* One build as one screen, in the simple design Chris approved on 2026-11-28 ("so much better. it works for me. use
   this design for the rest of the website update"). The top: the way back, the name and one line. Then real tabs,
   filled and round-topped, the open one white and joined to a white panel that holds the open part. Each part leads
   with one thing, says nothing twice, and has room around it. No box has an outline.
   Chris, 2026-11-29: "the tabs dont start until a third of the way down the page. make them at the top somehow. can
   put the 'example tool for a law firm' info on the side of the tab perhaps", and "show entire page without scrolling
   if possible". So the top is one row (the way back, the name, the next build), the line saying what it is sits beside
   the tabs on a laptop, and the build fills the window between the bar and the footer. */
#build.s-mode .wrap { gap: 0; padding-top: var(--s2); padding-bottom: var(--s3); }
.s-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s4); margin-bottom: var(--s1); }
.s-head .back { min-height: 44px; margin: 0; font-size: var(--t-s); }
.s-head h1 { font-size: var(--t-l); line-height: 1.15; margin: 0; flex: 1 1 auto; min-width: 0; }
.s-head .onward { border-top: 0; padding-top: 0; margin-left: auto; }
.s-head .onward .btn { min-height: 44px; padding: 0; border: 0; background: none; color: var(--soft); font-size: var(--t-s); font-weight: 400; }
.s-head .onward .btn:hover { background: none; color: var(--ink); text-decoration: underline; }
.s-what { max-width: none; margin: 0 0 var(--s3); color: var(--soft); font-size: var(--t-m); line-height: 1.5; }
.s-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.s-tab { min-height: 46px; padding: 12px 20px; border: 0; border-radius: 12px 12px 0 0; background: var(--tab); color: var(--soft); font-family: var(--body); font-size: var(--t-s); font-weight: 600; line-height: 1.2; cursor: pointer; }
.s-tab:hover { color: var(--ink); }
.s-tab[aria-selected="true"] { background: var(--card); color: var(--ink); }
.s-panels { display: grid; min-width: 0; }
.s-panels > [role="tabpanel"] { min-width: 0; background: var(--card); border: 0; border-radius: 0 16px 16px 16px; padding: 24px 20px; }
.s-panels > [role="tabpanel"]:focus { outline: none; }
.s-panels > [role="tabpanel"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.s-mode h2 { font-family: var(--body); font-size: var(--t-s); font-weight: 600; line-height: 1.3; color: var(--soft); margin-bottom: var(--s2); }
.s-mode .part { align-content: start; gap: 0; }
.s-lead { font-family: var(--display); font-size: var(--t-l); font-weight: 600; line-height: 1.3; margin: 0 0 var(--s3); text-wrap: pretty; }
/* Numbers: the figures, big, with what each counts under it; when they were read, quiet, at the foot. */
.s-numbers { display: flex; flex-direction: column; }
.s-numbers .nums { flex: 1; align-content: center; grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); gap: var(--s5) var(--s6); }
.s-numbers .nums div { border-top: 0; padding-top: 0; }
.s-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s3); font-size: var(--t-s); color: var(--soft); }
.s-foot p { margin: 0; }
.s-foot .sources { margin: 0; }
.s-foot .sources summary { min-height: 44px; }
.s-foot .sources ul { max-height: 9em; overflow: auto; }
/* What I learned: the first lesson leads, the rest under it; what was tested beside them. */
.s-cols { display: grid; gap: var(--s5) var(--s7); grid-template-columns: minmax(0, 1fr); align-content: center; }
.s-cols p, .s-cols li { font-size: var(--t-m); color: var(--say); }
.s-cols .s-lead { font-size: var(--t-l); color: var(--ink); }
.s-cols ul { padding-left: 1.2em; display: grid; gap: var(--s2); margin: 0; }
/* How it's made: three short columns, and what it's built with at the foot. */
.s-madepanel { display: flex; flex-direction: column; gap: var(--s5); }
.s-made { flex: 1; display: grid; gap: var(--s4) var(--s6); grid-template-columns: minmax(0, 1fr); align-content: center; margin: 0; }
.s-made div { display: grid; gap: var(--s1); align-content: start; }
.s-made dt { font-size: var(--t-s); font-weight: 600; color: var(--soft); }
.s-made dd { margin: 0; font-size: var(--t-m); color: var(--say); }
.s-watch .watch { max-height: 100%; }
.s-panels .frame { height: 600px; }
/* On a phone the tabs are one row that scrolls sideways inside itself, and the parts stack. */
@media (max-width: 719px) {
  .s-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--s3)); padding-right: var(--s3); }
  .s-tabs::-webkit-scrollbar { display: none; }
  .s-tab { white-space: nowrap; flex: none; padding: 12px 16px; }
}
@media (min-width: 720px) {
  .s-panels > [role="tabpanel"] { padding: 34px 40px 28px; }
}
@media (min-width: 960px) {
  .s-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .s-made { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* On a laptop the line saying what the build is sits to the right of the tabs, level with their foot. */
@media (min-width: 960px) {
  #build.s-mode .wrap { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s5);
    grid-template-areas: "head head" "tabs what" "panels panels"; }
  #build.s-mode .s-head { grid-area: head; }
  #build.s-mode .s-what { grid-area: what; align-self: end; margin: 0; padding-bottom: 10px; }
  #build.s-mode .s-tabs { grid-area: tabs; align-self: end; }
  #build.s-mode .s-panels { grid-area: panels; }
}
@media (min-width: 960px) and (min-height: 640px) {
  #build.s-mode .wrap { height: calc(100svh - var(--bar, 61px)); grid-template-rows: auto auto minmax(0, 1fr); }
  .s-panels { min-height: 0; }
  .s-panels > [role="tabpanel"] { min-height: 0; display: flex; flex-direction: column; }
  .s-panels > [role="tabpanel"] > * { flex: 1; min-height: 0; }
  .s-panels .frame { flex: 1; height: 100% !important; min-height: 0; }
  .s-watch .watch { width: auto; height: 100%; margin: 0 auto; }
}
/* Where the window is tall enough, the footer shows too: the build stops above it. */
@media (min-width: 960px) and (min-height: 760px) {
  #build.s-mode .wrap { height: calc(100svh - var(--bar, 61px) - var(--foot, 0px)); }
  .s-panels > [role="tabpanel"] { padding: 24px 40px 20px; }
}

@media (min-width: 720px) {
  /* From a tablet up the numbers sit side by side, each figure over what it counts, so the figures share a line. */
  .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s6); }
  .proof div { grid-column: auto; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
  .proof dd { order: 0; }
  .site nav { order: 0; flex-basis: auto; margin-left: 0; }
  .smalls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { padding: var(--s4); }
}
@media (min-width: 960px) {
  /* The band, side by side: the button, then the numbers. */
  .band { grid-template-columns: max-content minmax(0, 1fr); column-gap: var(--s6); align-items: start; border-top: 1px solid var(--line); padding-top: var(--s4); }
  .proof-box { border-top: 0; padding-top: 0; }
  .big { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s6); margin-top: var(--s7); align-items: center; }
  .nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .smalls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* The ask box (projects/ask-box/plan.md; its script is tools/ask/src/box.js). A box under the home page's headline with
   three example questions, an Ask button in every page's bar ("Ask" on a phone), and the answer in a panel over the
   page: as wide as the mockup Chris picked on a laptop, the whole screen on a phone. Each shows only once the page's
   loader has run (html.ask-on), since each needs the script. */
.ask-btn, .ask { display: none; }
.ask-on .ask-btn { display: inline-flex; }
.ask-on .ask { display: grid; }
.site .ask-btn { align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 var(--s3); margin-right: var(--s2);
  border: 2px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); font: 600 var(--t-s)/1 var(--body); cursor: pointer; }
.site .ask-btn:hover { background: var(--ink); color: var(--paper); }
.ask-btn .short { display: none; }
.ask { gap: var(--s2); max-width: 46rem; }
.ask form, .ask-form { display: flex; gap: var(--s2); }
.ask input, .ask-form input { flex: 1; min-width: 0; min-height: 52px; padding: 0 var(--s3); border: 2px solid var(--ink); border-radius: 8px; background: var(--card);
  color: var(--ink); font: 400 var(--t-m)/1.2 var(--body); }
.ask input::placeholder, .ask-form input::placeholder { color: var(--soft); opacity: 1; }
.ask button[type=submit], .ask-form button { min-height: 52px; padding: 0 var(--s4); border: 2px solid var(--ink); border-radius: 8px; background: var(--ink); color: var(--paper);
  font: 600 var(--t-m)/1 var(--body); cursor: pointer; }
.ask-form button:disabled { opacity: .6; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips button { min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: 999px; background: var(--tab); color: var(--say);
  font: 400 var(--t-s)/1.2 var(--body); text-align: left; cursor: pointer; }
.chips button:hover { border-color: var(--ink); color: var(--ink); }
.ask-open, .ask-open body { overflow: hidden; }
.ask-bg { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: center; align-items: flex-start; padding: 5vh var(--s3); background: rgba(20, 20, 18, .45); }
.ask-panel { position: relative; display: flex; flex-direction: column; gap: var(--s4); width: 100%; max-width: 860px; max-height: 90vh; overflow: auto; overscroll-behavior: contain;
  padding: 0 var(--s4); background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; }
.ask-x { position: sticky; top: 0; z-index: 2; align-self: flex-end; width: 44px; height: 44px; margin: var(--s2) calc(-1 * var(--s3)) -60px 0; flex: none;
  border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); font: 400 var(--t-l)/1 var(--body); cursor: pointer; }
.ask-x:hover { background: var(--tab); }
.ask-intro, .ask-turns { display: grid; gap: var(--s3); }
.ask-intro { padding-top: var(--s4); padding-right: var(--s6); }
.ask-turns:empty { display: none; }
.ask-turn { display: grid; gap: var(--s3); padding-top: var(--s4); scroll-margin-top: 0; }
.ask-turn + .ask-turn { border-top: 1px solid var(--line); }
.ask-turn h2 { padding-right: var(--s6); }
.ask-answer { display: grid; gap: var(--s3); }
.ask-piece:empty { display: none; }
.ask-say { max-width: var(--measure); }
.ask-note, .ask-wait, .ask-src { color: var(--soft); }
.ask-wait, .ask-src { font-size: var(--t-s); }
.ask-form { position: sticky; bottom: 0; z-index: 2; padding: var(--s3) 0 var(--s4); margin-top: auto; background: var(--paper); border-top: 1px solid var(--line); }
.ask-form input { min-height: 48px; }
.ask-form button { min-height: 48px; }
.mini { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s3); padding: var(--s3); border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.mini img { display: block; width: 100%; height: auto; border-radius: 6px; }
.mini-words { display: grid; gap: var(--s2); align-content: start; min-width: 0; }
.mini h3 { font-size: var(--t-m); line-height: 1.3; }
.mini p { color: var(--say); }
.mini .facts { max-width: none; }
.ask-go, .ask-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; justify-self: start; }
.ask-frame { display: block; width: 100%; height: 420px; border: 0; border-radius: 6px; background: transparent; }
.ask-off { display: grid; gap: var(--s3); }
@media (max-width: 719px) {
  .site .ask-btn { padding: 0 var(--s3); }
  .ask-btn .long { display: none; }
  .ask-btn .short { display: inline; }
  .ask-bg { padding: 0; }
  .ask-panel { max-width: none; max-height: none; height: 100%; border: 0; border-radius: 0; padding: 0 var(--s3); padding-top: env(safe-area-inset-top, 0px); }
  .ask-form { padding-bottom: max(var(--s3), env(safe-area-inset-bottom, 0px)); }
  .mini { grid-template-columns: minmax(0, 1fr); }
  .chips button { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .shot, .small, .site nav a { transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
}
