/* Resume Rhino. Built from design/style-guide.html: change the guide first, then this file (CLAUDE.md §6).
   Rhino grey on a pale sky, one charging orange for the horn 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 the rhino */
  --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;
  --rh-body: #727b8f;
  --hide: var(--rh-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;
  --rh-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); }
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.rhino { display: block; height: auto; max-width: 100%; }
/* On the dark sky a thin light edge keeps the teal rhino from sinking into the background. */
@media (prefers-color-scheme: dark) { img.rhino { 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 rhino's face, then the name in navy with "Rhino" 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; }
.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: start; padding-block: 2.75rem 3rem; }
@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; }
.hero .drop { margin-top: 0.6rem; }
.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 rhino walks along the grass toward the drop box. */
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 img.rhino { 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 steps, as chips; a step the visitor can pick is dashed */
.steps { display: flex; gap: 0.5rem 1.5rem; flex-wrap: wrap; font-size: 0.95rem; color: var(--ink-2); margin: 0.25rem 0 1rem; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 0.4rem; background: color-mix(in srgb, var(--paper) 55%, transparent); border: 2px solid transparent; border-radius: var(--r-pill); padding: 0.3rem 0.8rem 0.3rem 0.5rem; }
.steps svg { width: 1.35rem; color: var(--hide); opacity: 0.35; }
.steps .on { color: var(--ink); font-weight: 700; background: var(--paper); border-color: var(--head); }
.steps .on svg { color: var(--charge); opacity: 1; }
.steps .past svg { opacity: 1; color: var(--fix); }
.steps .skipped { color: var(--ink-2); }
.steps li:has(> .step) { padding: 0; border: 2px dashed var(--head); }
.steps .step { display: flex; align-items: center; gap: 0.4rem; font: inherit; color: inherit; background: none; border: 0; border-radius: var(--r-pill); padding: 0.3rem 0.8rem 0.3rem 0.5rem; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.steps .step:hover { background: var(--paper); }
.steps .step:focus-visible { outline: 3px solid var(--charge); outline-offset: 2px; }
.steps .past:has(> .step) svg { color: var(--hide); opacity: 0.35; }

/* ---- the rhino talking: it faces its speech bubble, so what it says comes from its mouth */
.say { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; margin-bottom: 1.75rem; }
.say > img.rhino { 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: 50%; 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.rhino { 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. */
.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; overscroll-behavior: contain; 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; } }
/* 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); }
.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; }
.item { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0 0.8rem; padding: 0.95rem 0; 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; padding-left: 0.6rem; }
.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 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 ul { margin: 0; padding-left: 1.2rem; color: var(--ink-2); }
.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, shared with /resfix/) */
.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; }

/* ---- 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; }
.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; }
.busy { display: inline-flex; gap: 0.6rem; align-items: center; font-weight: 700; }
.busy img.rhino { 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 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.rhino.jump { position: relative; z-index: 1; width: min(17rem, 64vw); animation: hop 0.9s cubic-bezier(.3, 0, .4, 1) infinite alternate; }
.party h1, .party .kicker { position: relative; z-index: 1; }
.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 are
   shared with /resfix/, so they keep that page's class names. */
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") */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; margin: 0 0 0.6rem; background: var(--paper); border: 2px solid var(--head); border-radius: var(--r-pill); }
.seg button { min-height: 2.75rem; padding: 0 1rem; border: 0; border-radius: var(--r-pill); background: none; color: var(--head); font: 700 0.92rem/1 var(--body); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--head); color: var(--paper); }
/* 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; 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 > .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.8rem/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; }
.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); }

/* ---- 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 rhino 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.rhino { 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.rhino { 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(/rhino/print.svg) center / contain no-repeat; mask: url(/rhino/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.rhino { width: min(16rem, 60vw); margin-bottom: 1rem; }
.paused .lede { max-width: 36rem; }
