/* Resume Hippo. Built from design/style-guide.html: change the guide first, then this file (CLAUDE.md §6).
   A teal hippo on a pale sky, one charging orange for the main button and the problem that matters most, green for what
   I fix, and thick navy outlines like a picture book. One rule per component; the fonts are served from this site. */
@font-face { font-family: "Lilita One"; src: url(/fonts/lilita-one-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/fonts/atkinson-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(/fonts/atkinson-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* ---- tokens (style guide, "Colour", "Borders and shadows", "Tokens") */
:root {
  /* sky and ground */
  --sky: #cfe6f7; --sky-top: #a9d2f0; --sky-low: #eaf5fc; --sky-2: #fff4c2; --grass: #2e8a5b; --grass-dk: #1f6b45;
  /* ink: a deep navy for headings and outlines gives the page its weight; grey is kept for idle icons (as --hide) */
  --head: #1b2a4a; --ink: #1d2433; --ink-2: #3f4a60; --rule: #c4d3e3;
  --charge: #ff6b2c; --charge-ink: #b83f0b; --charge-bg: #ffe3d4;
  --pin: #24407a; --mark: rgba(255, 205, 0, 0.5); --mark-line: #24407a; --mark-hot: rgba(255, 107, 44, 0.35); --mark-fix: rgba(46, 170, 104, 0.32);
  --fix: #1b7f4e; --fix-bg: #ddf3e6;
  --paper: #ffffff; --shadow: #1b2a4a; --focus: #1b5fd6; --on-dark: #ffffff; --on-dark-2: #d8e0ee;
  --wordmark: #1d5e70;
  /* text on colour, each at least 4.5:1 (3:1 for the headline word, which is large text) */
  --on-charge: #1b2a4a; --on-fix: #ffffff; --charge-text: #b83f0b; --ready-bg: #1f6b45;
  --hp-body: #727b8f;
  --hide: var(--hp-body); --hide-dk: var(--head);
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-quote: 8px; --r-input: 10px; --r-chip: 12px; --r-alert: 14px; --r-card: 18px; --r-sheet: 20px; --r-bubble: 22px; --r-pill: 999px;
  --lift-1: 3px 3px 0 var(--shadow); --lift-2: 4px 4px 0 var(--shadow); --lift-3: 5px 5px 0 var(--shadow); --lift-4: 6px 6px 0 var(--shadow);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --sky: #13203a; --sky-top: #0c1529; --sky-low: #1a2a47; --sky-2: #3a3214; --grass: #3f9d6c; --grass-dk: #2c7a51;
  --head: #f1f5fb; --ink: #eef2f8; --ink-2: #b9c3d6; --rule: #34466a;
  --charge: #ff8550; --charge-ink: #ffb48f; --charge-bg: #43251a;
  --pin: #ffcd2e; --mark: rgba(255, 205, 0, 0.35); --mark-line: #ffcd2e; --fix: #5fd39a; --fix-bg: #173527;
  --paper: #1e2b45; --shadow: #050a15; --focus: #8db4ff; --on-dark: #13203a; --on-dark-2: #2c3b5c;
  --wordmark: #8fd6e6;
  --on-charge: #1b2a4a; --on-fix: #13203a; --charge-text: #ff8550; --ready-bg: #3f9d6c;
  --hp-body: #8e97ab;
  --lift-1: 3px 3px 0 var(--shadow); --lift-2: 4px 4px 0 var(--shadow); --lift-3: 5px 5px 0 var(--shadow); --lift-4: 6px 6px 0 var(--shadow);
  color-scheme: dark;
} }

/* ---- base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--sky-low); }
/* On a wide screen everything grows with the window, since every size is in rem: 16px up to 1440px wide, then in
   step with the width, up to 30px at 2700px. */
@media (min-width: 1440px) { html { font-size: clamp(16px, 1.1111vw, 30px); } }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--sky-top) 0, var(--sky) 22rem, var(--sky-low) 100%) var(--sky-low); color: var(--ink); font: 400 1.0625rem/1.55 var(--body); }
main { flex: 1; display: flex; flex-direction: column; }
main > .grass { margin-top: auto; }
/* A heading that receives focus when the screen changes needs no ring; keyboard focus on controls keeps one. */
h1[tabindex="-1"]:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
a { color: var(--ink); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: 0.005em; color: var(--head); text-wrap: balance; }
p { margin: 0 0 0.8rem; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wrap { max-width: 72rem; width: 100%; margin: 0 auto; padding: 0 1.25rem; }
img.hippo { display: block; height: auto; max-width: 100%; }
/* On the dark sky a thin light edge keeps the teal hippo from sinking into the background. */
@media (prefers-color-scheme: dark) { img.hippo { filter: drop-shadow(0 0 1px #e8f3f6) drop-shadow(0 0 2px rgba(232, 243, 246, 0.5)); } }

/* ---- header: a quiet band, so the headline is the one loud thing on the page */
.bar { background: var(--paper); border-bottom: 3px solid var(--head); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem 1rem; flex-wrap: wrap; padding-block: 0.9rem; }
.bar .top { padding-block: 0.55rem; }
/* The logo lockup: the hippo's face, then the name in navy with "Hippo" in the badge's teal. */
.wm { display: inline-flex; align-items: center; gap: 0.55rem; font: 400 1.4rem/1 var(--display); letter-spacing: 0.01em; color: var(--head); text-decoration: none; }
.wm b { font-weight: 400; color: var(--wordmark); }
.wm img.wm-face { display: block; width: 2.6rem; height: auto; }
.toplinks { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.toplinks a { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (max-width: 560px) { .wm { font-size: 1.25rem; } .wm img.wm-face { width: 2.3rem; } .toplinks { gap: 0.9rem; font-size: 0.88rem; } }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.9rem; padding: 0.6rem 1.4rem; border: 3px solid var(--hide-dk); border-radius: var(--r-pill); background: var(--charge); color: var(--on-charge); font: 400 1.15rem/1 var(--display); letter-spacing: 0.02em; box-shadow: var(--lift-1); cursor: pointer; text-decoration: none; transition: transform 120ms, box-shadow 120ms; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: var(--lift-2); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
/* A button that can't be used but keeps its hover text, which a disabled button doesn't show in every browser. */
.btn[aria-disabled="true"], .btn[aria-disabled="true"]:hover, .btn[aria-disabled="true"]:active { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: var(--lift-1); }
.btn.quiet, .btn.btn-secondary { background: var(--paper); color: var(--hide-dk); }
.btn.small { min-height: 2.4rem; padding: 0.4rem 1rem; font-size: 1rem; }
/* The clean copy waits on the celebration; its button bounces a few times as a hint (style guide, Buttons). */
.btn.nudge { animation: nudge 0.9s ease-in-out 0.8s 3; }
@keyframes nudge { 0%, 100% { transform: none; } 35% { transform: translateY(-4px) scale(1.08); } 65% { transform: scale(0.98); } }
.link { background: none; border: 0; padding: 0.4rem 0.2rem; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; min-height: 2.75rem; }

/* ---- landing; the drop box lines up with the top of the headline */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2.5rem; align-items: center; padding-block: 2.75rem 2.25rem; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; gap: 1.75rem; padding-bottom: 2rem; } }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4.4rem); line-height: 0.98; margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--charge-text); }
.hero .lede { font-size: 1.2rem; color: var(--ink-2); max-width: 30rem; }
.passes { display: flex; gap: 0.6rem; align-items: flex-start; max-width: 30rem; margin-top: 1.25rem; font-size: 1rem; }
.passes svg { flex: none; width: 1.7rem; margin-top: 0.1rem; color: var(--hide); }
.drop { position: relative; display: grid; justify-items: center; gap: 0.5rem; text-align: center; padding: 2rem 1.25rem; background: var(--paper); border: 4px solid var(--hide-dk); border-radius: var(--r-sheet); box-shadow: var(--lift-4); transition: transform 150ms, background 150ms; }
.drop.over { transform: rotate(-1deg) scale(1.02); background: var(--charge-bg); }
.drop.bad { border-color: var(--charge-ink); }
.drop .big { font: 400 1.7rem/1.1 var(--display); color: var(--hide-dk); }
.drop .sub { color: var(--ink-2); font-size: 0.95rem; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .btn { pointer-events: none; margin-top: 0.4rem; }
.drop:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; }
.drop .err { color: var(--charge-ink); font-weight: 700; margin: 0.3rem 0 0; max-width: 24rem; }
.priv { text-align: center; font-size: 0.92rem; margin: 1rem 0 0; color: var(--ink-2); }
/* The hippo walks along the grass toward the drop box. */
/* the three pages: the visitor's fixes, mine, and the clean copy with the hippo's stamp */
.sheets { display: grid; grid-template-columns: repeat(3, minmax(0, 13rem)); justify-content: center; align-items: start; gap: 1.25rem 4rem; margin: 0.5rem 0 2rem; padding: 0; list-style: none; counter-reset: sheet; }
.sheets li { position: relative; display: grid; justify-items: center; gap: 0.7rem; text-align: center; font: 400 1.15rem/1.15 var(--display); color: var(--head); counter-increment: sheet; }
.sheets li > span::before { content: counter(sheet) ". "; color: var(--charge-text); }
/* the paw between two pages sits in the middle of the gap, level with the middle of the page */
.paw-go { position: absolute; left: calc(100% + 0.6rem); top: 38%; width: 2.8rem; fill: var(--hide-dk); }
.leaf { display: block; width: 100%; height: auto; filter: drop-shadow(4px 4px 0 var(--shadow)); }
.leaf .paper { fill: #fff; stroke: var(--head); stroke-width: 1.2; }
.leaf .name { fill: #2f3a52; }
.leaf .head, .leaf .ink { fill: #4d5870; }
.leaf .title { fill: #7d879b; }
.leaf .contact, .leaf .date, .leaf .bullet, .leaf .line { fill: #b9c0cc; }
.leaf .rule { fill: #d5dae2; }
.leaf .hl.you { fill: rgba(255, 205, 0, 0.5); }
.leaf .hl.hot { fill: rgba(255, 107, 44, 0.35); }
.leaf .hl.fix { fill: rgba(46, 170, 104, 0.32); }
.leaf .pip.you { fill: #24407a; }
.leaf .pip.hot { fill: #ff6b2c; }
.leaf .pip.fix { fill: #1b7f4e; }
.leaf .pinn { fill: #fff; font: 400 3.8px var(--display); }
.leaf .pip.hot + .pinn { fill: #1b2a4a; }
.leaf .tick { fill: none; stroke: #fff; stroke-width: 0.9; stroke-linecap: round; stroke-linejoin: round; }
.leaf .gleam { fill: none; stroke: #e0a100; stroke-width: 1.3; stroke-linecap: round; }
.leaf .stamp { fill: none; stroke: #b83f0b; stroke-width: 1.4; opacity: 0.88; }
.leaf .stamp .thin { stroke-width: 0.6; }
.leaf .stamp .arc { stroke: none; }
.leaf .stamp text { fill: #b83f0b; stroke: none; font: 400 3.2px var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.leaf .stamp .paw { fill: #b83f0b; stroke: none; }
@media (max-width: 560px) { .sheets { gap: 0.75rem 1.9rem; } .sheets li { font-size: 0.85rem; } .paw-go { left: calc(100% + 0.25rem); width: 1.4rem; } }
main > .meadow { margin-top: auto; display: flex; justify-content: flex-end; padding-bottom: 0; }
main > .meadow + .grass { margin-top: -2px; }
.meadow img.stroll { width: min(15rem, 40vw); margin-right: 6%; margin-bottom: -6px; }
@media (max-width: 760px) { .meadow img.stroll { width: 9rem; } }
.grass { height: 14px; background: radial-gradient(circle at 7px -2px, transparent 8px, var(--grass) 8.5px) 0 0 / 14px 14px repeat-x; }
.ground { height: 8px; background: var(--grass-dk); }

/* ---- reading */
.reading { display: grid; justify-items: center; text-align: center; gap: 1rem; padding-block: 4rem 5rem; }
.reading h1 { font-size: 2rem; }
.reading p { max-width: 30rem; margin: 0; color: var(--ink-2); }
.reading img.hippo { width: 11rem; animation: trot 0.9s ease-in-out infinite alternate; }
@keyframes trot { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-6px) rotate(1deg); } }

/* ---- the two stomps: a slider in the middle of the page, like the page panel's switch (style guide, "Switches") */
.stomps { display: flex; justify-content: center; margin: 0.25rem 0 1.25rem; }
.seg.stomp button { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.2rem; padding: 0.35rem 1.3rem 0.35rem 0.9rem; text-align: left; }
.seg.stomp svg { flex: none; width: 1.35rem; color: var(--hide); }
.seg.stomp b { display: block; font: 400 1.1rem/1.05 var(--display); letter-spacing: 0.02em; }
.seg.stomp small { display: block; font: 400 0.8rem/1.2 var(--body); }
.seg.stomp button[aria-pressed="true"] svg { color: var(--charge); }

/* ---- the hippo talking: it faces its speech bubble, so what it says comes from its mouth */
/* The hippo stands at the top of the row and the tail points at it, so neither moves when the bubble grows. */
.say { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; margin-bottom: 1.75rem; }
.say > img.hippo { width: 7rem; transform: scaleX(-1); }
.bubble { position: relative; background: var(--paper); border: 4px solid var(--head); border-radius: var(--r-bubble); box-shadow: var(--lift-4); padding: 1.1rem 1.4rem 1.2rem; max-width: 46rem; }
.bubble::before { content: ""; position: absolute; left: -1.05rem; top: 2.3rem; width: 1.6rem; height: 1.6rem; background: var(--paper); border-left: 4px solid var(--head); border-bottom: 4px solid var(--head); transform: translateY(-50%) rotate(45deg) skew(10deg, 10deg); }
.bubble h1 { color: var(--head); font-size: clamp(1.6rem, 3.8vw, 2.3rem); margin-bottom: 0.35rem; }
.bubble p { margin: 0; color: var(--ink); font-size: 1.05rem; }
.bubble p + p { margin-top: 0.4rem; }
.bubble p.left { color: var(--charge-ink); font-weight: 700; }
@media (max-width: 560px) {
  .say { grid-template-columns: 1fr; }
  .say > img.hippo { width: 5rem; }
  .bubble::before { left: 3.7rem; top: -0.95rem; transform: rotate(135deg); }
}

/* ---- alerts, in the same voice */
.alert { border: 3px solid var(--charge-ink); background: var(--charge-bg); border-radius: var(--r-alert); padding: 0.85rem 1.1rem; margin: 0 0 1.5rem; max-width: 46rem; }
.alert b { display: block; color: var(--ink); }
.alert p { margin: 0.2rem 0 0; color: var(--ink-2); }
.alert details { margin-top: 0.4rem; font-size: 0.92rem; }
.alert ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }

/* ---- the report: the page panel beside the list. The panel scrolls on its own; on a narrow screen it stays at
   the top of the window and the list scrolls under it. When the panel reaches its top or bottom, the wheel goes on
   to scroll the window, so the visitor can scroll the report with the pointer anywhere on it. */
.work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.25rem; align-items: start; }
.pages { display: grid; gap: 1rem; padding-left: 1.6rem; }
.work .pages { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 0.6rem 0.9rem 1rem 2.2rem; scrollbar-width: thin; }
.page { position: relative; background: #fff; box-shadow: var(--lift-4); border: 3px solid var(--head); border-radius: 2px; }
.page canvas { display: block; width: 100%; height: auto; border-radius: 2px; }
.page .num { position: absolute; bottom: -0.6rem; right: -0.6rem; background: var(--hide-dk); color: var(--on-dark); font-size: 0.75rem; padding: 0.1rem 0.5rem; border-radius: var(--r-pill); }
.morepages { font-size: 0.9rem; color: var(--ink-2); }
/* marks on the page: a yellow highlighter, orange for the one that matters most, green for my fixes */
.box { position: absolute; background: var(--mark); outline: 0; box-shadow: 0 3px 0 -0.5px var(--mark-line); border-radius: 1px; mix-blend-mode: multiply; pointer-events: none; }
.box.hot { background: var(--mark-hot); box-shadow: 0 3px 0 -0.5px var(--charge); }
.box.fix { background: var(--mark-fix); box-shadow: 0 3px 0 -0.5px var(--fix); }
.box.lit { animation: blink 0.5s ease-in-out 3; }
.box.cur { background: rgba(255, 205, 0, 0.78); }
.box.hot.cur { background: rgba(255, 107, 44, 0.55); }
.box.fix.cur { background: rgba(46, 170, 104, 0.55); }
@keyframes blink { 50% { background: transparent; } }
/* A block of lines, such as a table, is outlined rather than filled, so the marks inside it still show. */
.box.area, .box.area.cur, .box.area.hot, .box.area.fix { background: transparent; mix-blend-mode: normal; box-shadow: none; outline: 2px dashed var(--pin); outline-offset: 3px; border-radius: 3px; }
.box.area.hot { outline-color: var(--charge); }
.box.area.cur { outline-width: 3px; outline-style: solid; }
.box.area.lit { animation: blink-outline 0.5s ease-in-out 3; }
@keyframes blink-outline { 50% { outline-color: transparent; } }
/* Pins sit in the margin beside their mark, like a proofreader's, with a tail pointing at it. */
.pin { position: absolute; transform: translate(-50%, -50%); width: 1.85rem; height: 1.85rem; border-radius: 50%; border: 0; padding: 0; background: var(--pin); color: var(--paper); font: 400 1rem/1.85rem var(--display); text-align: center; cursor: pointer; box-shadow: 0 0 0 2px var(--paper), 2px 2px 0 2px var(--shadow); }
.pin::before { content: ""; position: absolute; left: 0.5rem; top: -0.5rem; border: 0.4rem solid transparent; border-bottom: 0.7rem solid var(--pin); border-top: 0; transform: rotate(-18deg); }
.pin.hot { background: var(--charge); color: var(--on-charge); }
.pin.hot::before { border-bottom-color: var(--charge); }
.pin.fix { background: var(--fix); color: var(--on-fix); }
.pin.fix::before { border-bottom-color: var(--fix); }
span.pin, .robot span.rn { cursor: default; }
.pin.lit { box-shadow: 0 0 0 3px var(--focus); }
.pin.cur { transform: translate(-50%, -50%) scale(1.18); z-index: 2; }
.pin.wide { width: auto; min-width: 1.85rem; padding: 0 0.35rem; border-radius: var(--r-pill); }
@media (max-width: 820px) {
  .work { grid-template-columns: 1fr; }
  .work .pages { top: 0; order: 0; z-index: 4; max-height: 42vh; margin: 0 -1.25rem; padding: 0.75rem 1rem 0.9rem 2.6rem; background: var(--sky); border-bottom: 3px solid var(--head); box-shadow: 0 8px 12px -10px var(--shadow); }
  .page .num { display: none; }
  .pin { width: 1.5rem; height: 1.5rem; font-size: 0.85rem; line-height: 1.5rem; }
  .pin::before { left: 0.38rem; top: -0.4rem; border-width: 0 0.32rem 0.55rem; }
}

/* ---- the list, on a sheet of its own */
.list { background: var(--paper); border: 3px solid var(--head); border-radius: var(--r-sheet); box-shadow: var(--lift-4); padding: 1.25rem 1.25rem 0.5rem; }
.list h2 { font-size: 1.55rem; margin-bottom: 0.2rem; color: var(--head); }
.list .hint { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 0.75rem; }
/* the color key over the visitor's list: a dot in each mark's color, and who makes that change */
.key { list-style: none; margin: -0.35rem 0 0.6rem; padding: 0; display: grid; gap: 0.2rem; color: var(--ink-2); font-size: 0.92rem; }
.key li { display: flex; align-items: center; gap: 0.5rem; }
.key .dot { flex: none; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--pin); }
.key .dot.hot { background: var(--charge); }
.key .dot.fix { background: var(--fix); }
/* Each item keeps room for the bar the current one gets, so picking an item never moves its words. */
.item { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0 0.8rem; padding: 0.95rem 0 0.95rem 0.6rem; margin-left: -0.6rem; border-top: 2px dotted var(--rule); scroll-margin-top: 6rem; }
@media (max-width: 820px) { .item { scroll-margin-top: calc(42vh + 1rem); } }
.item .n { position: relative; width: 2.1rem; height: 2.1rem; margin-top: 0.15rem; border-radius: 50%; border: 0; padding: 0; background: var(--pin); color: var(--paper); font: 400 1.1rem/2.1rem var(--display); text-align: center; cursor: pointer; }
.item .n::before { content: ""; position: absolute; left: 0.55rem; top: -0.5rem; border: 0.42rem solid transparent; border-bottom: 0.72rem solid var(--pin); border-top: 0; transform: rotate(-18deg); }
.item.hot .n { background: var(--charge); color: var(--on-charge); }
.item.hot .n::before { border-bottom-color: var(--charge); }
.item.fix .n { background: var(--fix); color: var(--on-fix); }
.item.fix .n::before { border-bottom-color: var(--fix); }
.item.done .body > *:not(.tick) { opacity: 0.5; }
.item.done .do { text-decoration: line-through; }
.item.lit { background: linear-gradient(90deg, var(--sky-2), transparent 80%); border-radius: 10px; }
.item.cur { box-shadow: inset 4px 0 0 var(--pin); border-radius: 0 10px 10px 0; }
.item.hot.cur { box-shadow: inset 4px 0 0 var(--charge); }
.item.fix.cur { box-shadow: inset 4px 0 0 var(--fix); }
.flag { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--charge-ink); margin-bottom: 0.1rem; }
.do { display: block; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.what { margin: 0.15rem 0 0; color: var(--ink-2); font-size: 0.97rem; }
.quote { font: 400 0.88rem/1.45 var(--mono); background: var(--sky-low); border: 2px solid var(--rule); border-radius: var(--r-quote); padding: 0.35rem 0.55rem; margin: 0.45rem 0 0; overflow-wrap: anywhere; }
.quote mark { background: var(--mark-hot); color: inherit; border-radius: 2px; padding: 0 0.1em; }
.who { display: flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: var(--ink-2); margin-top: 0.4rem; }
.who svg { width: 1.05rem; height: 1.05rem; }
.where { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.25rem; }
details.why { margin-top: 0.35rem; font-size: 0.95rem; }
details.why summary { cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; width: fit-content; }
details.why p { margin: 0.3rem 0 0; color: var(--ink-2); }
.tick { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.5rem; font-size: 0.92rem; cursor: pointer; min-height: 2.75rem; }
.tick input { appearance: none; width: 1.4rem; height: 1.4rem; margin: 0; border: 3px solid var(--hide-dk); border-radius: 6px; background: var(--paper); display: grid; place-items: center; cursor: pointer; }
.tick input:checked { background: var(--grass); border-color: var(--grass); }
.item.fix .tick { display: flex; width: fit-content; }
.tick input:checked::after { content: ""; width: 0.55rem; height: 0.3rem; border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(-45deg) translate(1px, -1px); }
/* a fix with a choice: its box and a pulldown beside it */
.pick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 1.2rem; margin-top: 0.3rem; }
.pick .sel { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; min-height: 2.75rem; }
.pick select { font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--paper); border: 3px solid var(--hide-dk); border-radius: var(--r-input); padding: 0.3rem 0.5rem; min-height: 2.75rem; max-width: 100%; }
.pick select:disabled { opacity: 0.55; }
.tick.hand { display: flex; width: fit-content; margin-top: 0; }
/* a problem found in several places lists each one (2a, 2b) */
.places { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.65rem; }
.places li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.6rem; margin: 0; padding-top: 0.6rem; border-top: 1px solid var(--rule); }
.places b { display: block; }
.place { display: inline-grid; place-items: center; height: 1.7rem; min-width: 2.2rem; padding: 0 0.4rem; border-radius: var(--r-pill); border: 0; background: var(--pin); color: var(--paper); font: 400 0.95rem/1 var(--display); cursor: pointer; }
span.place { background: transparent; color: var(--ink-2); border: 2px dashed var(--rule); cursor: default; }
.item.fix .place { background: var(--fix); color: var(--on-fix); }
.item.fix span.place { background: transparent; color: var(--ink-2); }
.later { margin-top: 1.5rem; background: var(--fix-bg); border: 3px dashed var(--fix); border-radius: 16px; padding: 1rem 1.2rem; }
.later h2 { font-size: 1.3rem; margin-bottom: 0.2rem; color: var(--head); }
.later p { color: var(--ink-2); margin: 0 0 0.4rem; font-size: 0.97rem; }
.later ol { list-style: none; margin: 0.3rem 0 0; padding: 0; display: grid; gap: 0.4rem; color: var(--ink-2); }
/* each fix carries the number Stomp 2 gives it, in the green of its pin on the page */
.later li { display: flex; align-items: center; gap: 0.6rem; }
.later .n { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--fix); color: var(--on-fix); font: 400 0.9rem/1.6rem var(--display); text-align: center; }
.notes { margin-top: 1.25rem; font-size: 0.95rem; }
.notes summary { cursor: pointer; font-weight: 700; }
.notes ul { padding-left: 1.2rem; color: var(--ink-2); }
/* questions in the report, answered in a dialog read from the FAQ (info.js) */
.asks { display: flex; flex-wrap: wrap; gap: 0 1rem; margin: -0.4rem 0 0.4rem; font-size: 0.92rem; }
.asks a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.later .asks { margin: 0.2rem 0 0; }
.later .fixgo { margin: 0.6rem 0 0.4rem; background: var(--fix); color: var(--on-fix); }

/* ---- the band where the visitor brings the new PDF back */
.back { margin-block: 2.5rem 1rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 1.5rem; align-items: center; background: var(--hide-dk); color: var(--on-dark); border-radius: var(--r-sheet); padding: 1.5rem; }
@media (max-width: 700px) { .back { grid-template-columns: 1fr; } }
.back h2 { color: var(--on-dark); font-size: 1.7rem; margin-bottom: 0.3rem; }
.back p { color: var(--on-dark-2); margin: 0; }
.back.ready { background: var(--ready-bg); }
.back.ready p { color: var(--on-dark); }
.back .drop { padding: 1.25rem 1rem; box-shadow: var(--lift-2); border-color: var(--on-dark); }
.back .alert { grid-column: 1 / -1; margin: 0; }

/* ---- the second pass */
.mine { list-style: none; margin: 0 0 1.25rem; display: grid; gap: 0.75rem; max-width: 46rem; }
.mine li { background: var(--paper); border: 3px solid var(--rule); border-radius: var(--r-alert); padding: 0.8rem 1rem; }
.mine b { display: block; }
.mine .what { font-size: 0.95rem; }
.what.same { color: var(--ink); font-weight: 700; }
.ba { font: 400 0.88rem/1.5 var(--mono); margin-top: 0.35rem; overflow-wrap: anywhere; }
.ba s { color: var(--ink-2); text-decoration-color: var(--charge); text-decoration-thickness: 2px; }
.ba ins { text-decoration: none; color: var(--fix); font-weight: 700; }
.field { display: grid; gap: 0.3rem; margin-top: 0.5rem; }
.field label { font-size: 0.9rem; font-weight: 700; }
.field input { font: inherit; padding: 0.55rem 0.7rem; border: 3px solid var(--hide-dk); border-radius: var(--r-input); background: var(--paper); color: var(--ink); min-height: 2.75rem; }
.go { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.list .go { padding: 1rem 0 0.75rem; border-top: 2px dotted var(--rule); }
.go .note { font-size: 0.92rem; color: var(--ink-2); max-width: 30rem; margin: 0; }
.go .credit { flex-basis: 100%; }
.go .credit .tick { margin-top: 0; }
.go .credit .hint { margin: 0 0 0 1.85rem; font-size: 0.92rem; color: var(--ink-2); }
.busy { display: inline-flex; gap: 0.6rem; align-items: center; font-weight: 700; }
.busy img.hippo { width: 3.4rem; animation: trot 0.6s ease-in-out infinite alternate; }

/* ---- the endings: done, and nothing to do */
.end { display: grid; justify-items: center; text-align: center; gap: 0.6rem; padding-block: 2rem 3rem; }
.end h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.end p { max-width: 30rem; color: var(--ink-2); }
.end > p { font-size: 1.1rem; color: var(--ink); }
.file { display: inline-flex; gap: 0.5rem; align-items: center; background: var(--paper); border: 3px solid var(--hide-dk); border-radius: var(--r-chip); padding: 0.55rem 0.9rem; font: 400 0.9rem/1.2 var(--mono); overflow-wrap: anywhere; }
.end .row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 0.75rem; }
.end .feedback { font-size: 0.95rem; margin-top: 0.5rem; }
.end details { font-size: 0.92rem; color: var(--ink-2); text-align: left; max-width: 30rem; }
/* the celebration */
.party { position: relative; display: grid; justify-items: center; gap: 0.4rem; padding-top: 2.5rem; width: 100%; max-width: 40rem; }
.party .sun { position: absolute; top: 0; left: 50%; width: 26rem; height: 26rem; margin-left: -13rem; border-radius: 50%;
  background: repeating-conic-gradient(var(--sky-2) 0 10deg, transparent 10deg 20deg); mask: radial-gradient(circle, #000 25%, transparent 68%); -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%); animation: spin 30s linear infinite; z-index: 0; }
.party img.hippo.jump { position: relative; z-index: 1; width: min(17rem, 64vw); animation: hop 0.9s cubic-bezier(.3, 0, .4, 1) infinite alternate; }
/* The words sit above the rays and the confetti, inside the celebration and below it. */
.party h1, .party .kicker, .end > :not(.party) { position: relative; z-index: 3; }
.party h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); }
.party .kicker { font: 400 1.5rem/1 var(--display); color: var(--charge-ink); margin: 0.5rem 0 0; letter-spacing: 0.03em; }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.confetti i { position: absolute; top: -1rem; width: 0.6rem; height: 1rem; border-radius: 2px; animation: fall 2.6s linear infinite; }
.confetti .c1 { background: var(--charge); } .confetti .c2 { background: #ffcd2e; } .confetti .c3 { background: var(--fix); } .confetti .c4 { background: var(--pin); }
@keyframes hop { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-1.6rem) rotate(3deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fall { from { top: -1rem; } to { top: 100%; } }
@media (prefers-reduced-motion: reduce) { .confetti i { top: calc(var(--i, 1) * 1%); } .confetti i:nth-child(odd) { top: 12%; } .confetti i:nth-child(3n) { top: 38%; } .confetti i:nth-child(4n) { top: 64%; } }

/* ---- dialogs: Start over, the inquiry form (contact.js) and the answers from the FAQ (info.js). The last two use
   the class names contact.js and info.js give them. */
dialog { border: 3px solid var(--hide-dk); border-radius: var(--r-card); padding: 1.25rem 1.4rem; background: var(--paper); color: var(--ink); box-shadow: var(--lift-4); width: min(26rem, calc(100vw - 2rem)); }
dialog::backdrop { background: rgba(20, 28, 39, 0.45); }
dialog h2 { font-size: 1.6rem; margin-bottom: 0.4rem; }
dialog .row { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap; }
dialog.contact { width: min(32rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; }
.contact > p { color: var(--ink-2); }
.contact .stack { display: grid; gap: 0.6rem; }
.contact .field { margin-top: 0; }
.contact .field textarea { font: inherit; padding: 0.55rem 0.7rem; border: 3px solid var(--hide-dk); border-radius: var(--r-input); background: var(--paper); color: var(--ink); resize: vertical; }
.contact .field input:focus-visible, .contact .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.contact .row { display: flex; gap: 0.75rem; flex-direction: row-reverse; justify-content: flex-start; margin-top: 0.5rem; }
.contact .alert { display: flex; gap: 0.6rem; margin: 0.25rem 0 0; }
.contact .alert.ok { border-color: var(--fix); background: var(--fix-bg); }
.contact .alert p { margin: 0.2rem 0 0; }
dialog.explain { width: min(36rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); }
dialog.explain[open] { display: flex; flex-direction: column; overflow: hidden; }
.explain .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.4rem; }
.explain .head h2 { font-size: 1.5rem; }
.explain .x { flex: none; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: -0.5rem -0.6rem 0 0; border: 2px solid transparent; border-radius: var(--r-pill); background: none; color: var(--ink-2); cursor: pointer; }
.explain .x:hover { background: var(--sky-low); color: var(--ink); }
.explain .body { min-height: 0; overflow: auto; }
.explain .body p, .explain .body li { color: var(--ink); }
.explain .body ul { padding-left: 1.2rem; }
.explain .body li::marker { color: var(--charge); }
.explain .row { justify-content: flex-end; }

/* ---- the page panel's switch and the robot's reading (style guide, "The robot's reading") */
/* A switch is a slider: two equal halves, and a thumb that slides under the half that is on. */
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; justify-self: start; padding: 3px; margin: 0 0 0.6rem; background: var(--paper); border: 2px solid var(--head); border-radius: var(--r-pill); }
.seg .thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: var(--r-pill); background: var(--head); transition: transform 260ms cubic-bezier(0.3, 1.3, 0.5, 1); }
.seg[data-at="1"] .thumb { transform: translateX(100%); }
.seg button { position: relative; min-height: 2.75rem; padding: 0 1.1rem; border: 0; border-radius: var(--r-pill); background: none; color: var(--head); font: 700 0.92rem/1 var(--body); cursor: pointer; white-space: nowrap; transition: color 200ms; }
.seg button[aria-pressed="true"] { color: var(--paper); }
.seg button:disabled { cursor: default; color: var(--ink-2); }
.seg button:not(:disabled):not([aria-pressed="true"]):hover { text-decoration: underline; text-underline-offset: 0.2em; }
/* The switch stays at the top of the panel while the panel scrolls, so the way back is always in sight. */
.work .pages > .seg { position: sticky; top: 0; z-index: 3; justify-self: center; box-shadow: 0 0 0 6px var(--sky-low); }
@media (max-width: 820px) { .work .pages > .seg { box-shadow: 0 0 0 6px var(--sky); } }
.pages .view { display: grid; gap: 1rem; }
.pages .view > .hint { font-size: 0.9rem; color: var(--ink-2); margin: 0 0 0.6rem; }
.robot { background: var(--paper); border: 3px solid var(--head); box-shadow: var(--lift-4); padding: 1rem 1.1rem; font: 400 0.72rem/1.65 var(--mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.robot .pg { display: block; font: 400 1.05rem/1.2 var(--display); color: var(--head); border-bottom: 2px dotted var(--rule); margin: 1.25rem 0 0.5rem; padding-bottom: 0.2rem; white-space: normal; }
.robot .pg:first-child { margin-top: 0; }
.robot .pg.lit { animation: blink-text 0.5s ease-in-out 3; }
@keyframes blink-text { 50% { color: var(--charge); } }
.robot .hid { background: var(--mark); border-radius: 4px; padding: 0 0.3em; font-size: 0.85em; font-weight: 700; }
.robot mark { background: var(--mark); color: inherit; box-shadow: 0 3px 0 -0.5px var(--pin); border-radius: 1px; }
.robot mark.hot { background: var(--mark-hot); box-shadow: 0 3px 0 -0.5px var(--charge); }
.robot mark.fix { background: var(--mark-fix); box-shadow: 0 3px 0 -0.5px var(--fix); }
.robot mark.cur { background: rgba(255, 205, 0, 0.78); }
.robot mark.hot.cur { background: rgba(255, 107, 44, 0.55); }
.robot mark.fix.cur { background: rgba(46, 170, 104, 0.55); }
.robot mark.lit { animation: blink 0.5s ease-in-out 3; }
/* A block of lines in the robot's reading, such as a table: a band down its left edge, with its number at the top. */
.robot .band { display: block; margin: 0.3rem 0 0.3rem -0.5rem; padding: 0.3rem 0.4rem 0.3rem 0.6rem; border-left: 4px dashed var(--pin); border-radius: 0 6px 6px 0; background: color-mix(in srgb, var(--pin) 6%, transparent); }
.robot .band.hot { border-left-color: var(--charge); background: color-mix(in srgb, var(--charge) 8%, transparent); }
.robot .band.cur { border-left-style: solid; background: color-mix(in srgb, var(--pin) 12%, transparent); }
.robot .band.hot.cur { background: color-mix(in srgb, var(--charge) 16%, transparent); }
.robot .band.lit { animation: blink-outline-left 0.5s ease-in-out 3; }
@keyframes blink-outline-left { 50% { border-left-color: transparent; } }
.robot .band > .rn { margin-bottom: 0.2rem; }
.robot .rn { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; margin-right: 0.3em; padding: 0 0.3rem; border: 0; border-radius: var(--r-pill); background: var(--pin); color: var(--paper); font: 400 0.85rem/1 var(--display); vertical-align: 0.05em; cursor: pointer; }
.robot mark.hot .rn { background: var(--charge); color: var(--on-charge); }
.robot mark.fix .rn { background: var(--fix); color: var(--on-fix); }

/* Turning the panel, or moving between stomps, slides the new view in from the side the switch moved to. */
.view.from-right, .work.from-right { animation: from-right 320ms cubic-bezier(0.2, 0.8, 0.3, 1); }
.view.from-left, .work.from-left { animation: from-left 320ms cubic-bezier(0.2, 0.8, 0.3, 1); }
@keyframes from-right { from { opacity: 0; transform: translateX(2.5rem); } }
@keyframes from-left { from { opacity: 0; transform: translateX(-2.5rem); } }
.work .pages { overflow-x: hidden; }

/* ---- footer, on every page */
.foot { max-width: 72rem; width: 100%; margin: 0 auto; padding: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.9rem; color: var(--ink-2); }
.foot nav { display: flex; gap: 1.1rem; }
.foot p { margin: 0; }
.foot .biz { flex-basis: 100%; order: 3; }

/* ---- the FAQ: the hippo at the top facing the title, topics to jump to, each answer on its own card */
.faqpage { max-width: 50rem; padding-block: 2rem 3rem; }
.faqhead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: center; margin-bottom: 1.5rem; }
.faqhead img.hippo { width: 8rem; transform: scaleX(-1); }
.faqhead h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 0.75rem; }
@media (max-width: 560px) { .faqhead { grid-template-columns: 1fr; } .faqhead img.hippo { width: 6rem; } }
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jump a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 0.9rem; border: 2px solid var(--head); border-radius: var(--r-pill); background: var(--paper); color: var(--head); text-decoration: none; font-weight: 700; font-size: 0.92rem; }
.jump a:hover { background: var(--sky-2); }
.faqpage h2 { font-size: 1.7rem; margin: 2.25rem 0 0.9rem; scroll-margin-top: 1rem; display: flex; align-items: center; gap: 0.55rem; }
.faqpage h2::before { content: ""; width: 1.4rem; height: 1.4rem; flex: none; background: var(--charge); -webkit-mask: url(/hippo/print.svg) center / contain no-repeat; mask: url(/hippo/print.svg) center / contain no-repeat; }
.qa { background: var(--paper); border: 3px solid var(--head); border-radius: var(--r-card); box-shadow: var(--lift-3); padding: 1rem 1.25rem 0.4rem; margin-bottom: 1rem; scroll-margin-top: 1rem; }
.qa h3 { font: 700 1.15rem/1.3 var(--body); color: var(--head); margin-bottom: 0.45rem; }
.qa p, .qa li { color: var(--ink); }
.qa ul { padding-left: 1.2rem; margin: 0 0 0.8rem; }
.qa li { margin-bottom: 0.3rem; }
.qa li::marker { color: var(--charge); }
.backto { text-align: center; margin-top: 2rem; }

/* ---- privacy, terms and the placeholder */
.doc h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 0.75rem; }
.doc .lede { font-size: 1.15rem; margin-bottom: 1.25rem; }
.sheet { background: var(--paper); border: 3px solid var(--head); border-radius: var(--r-card); box-shadow: var(--lift-3); padding: 1.25rem 1.5rem 0.6rem; }
.faqpage .sheet h2 { font-size: 1.35rem; margin: 1.6rem 0 0.5rem; }
.faqpage .sheet h2:first-child { margin-top: 0; }
.sheet p, .sheet li { color: var(--ink); }
.sheet ul { padding-left: 1.2rem; margin: 0 0 0.8rem; }
.sheet li { margin-bottom: 0.35rem; }
.sheet li::marker { color: var(--charge); }
.paused { text-align: center; align-items: center; }
.paused img.hippo { width: min(16rem, 60vw); margin-bottom: 1rem; }
.paused .lede { max-width: 36rem; }

/* ---- the zoo rails (decision 81): on a window at least 1400px wide and 700px tall, the page leaves 200px each side
   and a card for San Diego Zoo Wildlife Alliance sits in each margin, where ad units go later. The card is in px, to
   match a 160 by 600 ad unit whatever the window's rem. */
.rail { display: none; }
/* The stage holds the page's main area (on the home page, the checker's frame) and the two cards. */
.stage { position: relative; }
body > .stage { flex: 1; display: flex; flex-direction: column; }
@media (min-width: 1400px) and (min-height: 700px) {
  html:not(.framed) body:has(.stage > .rail) { padding-inline: 200px; }
  /* The page column is 400px narrower than the window, so it grows with the column, as the framed checker does. */
  html:not(.framed):has(.stage > .rail) { font-size: clamp(16px, calc((100vw - 400px) * 0.011111), 30px); }
  /* The header and the grass run the full width of the window, over and under the cards, so the cards sit inside the
     page's frame (decision 86). The header's contents keep to the column. */
  html:not(.framed) body:has(.stage > .rail) :is(.bar, .grass, .ground) { margin-inline: -200px; }
  html:not(.framed) body:has(.stage > .rail) .bar { padding-inline: 200px; }
  /* Each card has a rail from below the header (4.04rem tall) to above the grass and ground (22px), and keeps to
     it (decision 92). In the rail the card stays in view while the page scrolls, centred in the window, then stops
     above the grass and leaves with the page, so the sky and grass never slide under it. During the report the frame
     fills the window and the page holds still, so the rail runs to the foot of the window. z-index: the checker's
     frame runs under the cards, and a frame from another host is drawn on a layer of its own. */
  html:not(.framed) .rail { display: block; position: absolute; z-index: 2; top: calc(4.04rem + 1.5rem); bottom: calc(22px + 1.5rem); width: 160px; }
  html.fill .rail { bottom: 1rem; }
  .rail.left { left: -180px; } .rail.right { right: -180px; }
  .rail .zoo { position: sticky; top: max(1rem, calc(50vh - 300px)); }
}
.zoo { width: 160px; height: 600px; display: flex; flex-direction: column; overflow: hidden; background: var(--paper); color: var(--ink); border: 2px solid var(--head); border-radius: 14px; box-shadow: 4px 4px 0 var(--shadow); font: 400 14px/1.45 var(--body); }
.zoo img { display: block; width: 100%; height: 330px; object-fit: cover; border-bottom: 2px solid var(--head); }
.zoo .copy { flex: 1; display: flex; flex-direction: column; padding: 14px 12px; }
.zoo h2 { font-size: 24px; margin: 0 0 6px; }
.zoo p { margin: 0; }
.zoo .give { margin-top: auto; display: block; text-align: center; padding: 8px 6px; border: 2px solid var(--head); border-radius: var(--r-pill); background: var(--grass-dk); color: #fff; font: 400 16px/1.1 var(--display); text-decoration: none; }
.zoo .give:hover { text-decoration: underline; }
/* On the dark sky white outlines on the cards and the header's rule frame the page and pull the eye from the drop box,
   so they take the rule colour there, and the card sits on the sky without a shadow. */
@media (prefers-color-scheme: dark) {
  .bar, .zoo img { border-bottom-color: var(--rule); }
  .zoo { background: var(--sky); border-color: var(--rule); box-shadow: none; }
  .zoo img { filter: brightness(0.8); }
  .zoo .give { border-color: var(--rule); }
}

/* ---- two hosts (planning/ADS_PLAN.md): the home page holds the checker in a frame, then the about text and the
   footer. The frame is as tall as the checker (grow) and the home page scrolls once, except during the report, when
   the frame fills the window (fill), the report scrolls inside it and the home page holds still. */
.shell iframe.checker { display: block; width: 100%; height: 100vh; border: 0; background: transparent; }
html.fill, html.fill body { overflow: hidden; }
html.fill .shell iframe.checker { height: 100dvh; }
/* The about text: two paragraphs side by side, and the privacy line under both in bold (Michael, 2026-12-02). */
.about { max-width: 72rem; width: 100%; margin: 0 auto; padding: 2.5rem 1.25rem 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2.5rem; }
.about h2 { font-size: 1.7rem; margin: 0 0 0.5rem; }
.about h2, .about .private { grid-column: 1 / -1; }
.about .private { font-weight: 700; }
@media (max-width: 760px) { .about { grid-template-columns: minmax(0, 1fr); } }
/* Read by screen readers and search, not shown: the home page's one h1, since the checker's own h1 is inside the frame. */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Inside the frame the checker leaves the footer to the home page, and while it grows it never scrolls itself. */
html.framed body > .foot, html.framed .rail { display: none; }
html.framed.grow { overflow: hidden; }
html.framed.grow body { min-height: 0; }
/* The checker draws no sky of its own in the frame. The home page's sky runs behind it, so the frame doesn't show as
   a lighter box between the cards. */
html.framed, html.framed body { background: transparent; }
/* On a window 1400px wide or more the frame runs the window's full width, under the cards, and the checker keeps its
   content to the column between them. Its header and grass then run the full width, as on the page without the frame
   (decision 86). The frame can't see the window's height, so the column is kept by width alone, and the home page's
   about text and footer keep to the same column on a short window, where the cards don't show. */
@media (min-width: 1400px) {
  body.shell { padding-inline: 200px; }
  html:has(body.shell) { font-size: clamp(16px, calc((100vw - 400px) * 0.011111), 30px); }
  body.shell iframe.checker { width: calc(100% + 400px); margin-inline: -200px; }
  html.framed body { padding-inline: 200px; }
  html.framed { font-size: clamp(16px, calc((100vw - 400px) * 0.011111), 30px); }
  html.framed body :is(.bar, .grass, .ground) { margin-inline: -200px; }
  html.framed body .bar { padding-inline: 200px; }
}
