/* TYCHR Student Guide
   Tokens from the TYCHR design language (hive/shared/DESIGN-LANGUAGE.md, frontend/learner/styles/tychr-ds.css).
   One family, Instrument Sans, self-hosted like the platform (OFL, licence beside it). */

@font-face {
  font-family: "Instrument Sans";
  src: url("InstrumentSans-latin-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #002c4c;
  --navy-2: #03416f;
  --blue: #0a68b8;
  --blue-2: #2586c7;
  --gold: #c7a35a;

  --bg: #fbfaf7;
  --surface: #ffffff;
  --sunk: #f4f6f8;
  --heading: #002c4c;
  --ink: #0f2438;
  --ink-2: #33495e;
  --muted: #5e7184;
  --line: rgba(0, 44, 76, 0.09);
  --line-2: rgba(0, 44, 76, 0.16);
  --link: #0a68b8;
  --mark-bg: #002c4c;
  --mark-ink: #ffffff;
  --mark-ring: #ffffff;
  --shot-shadow: 0 1px 2px rgba(0, 44, 76, 0.06), 0 18px 40px -24px rgba(0, 44, 76, 0.28);

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 64ch;
  --r: 12px;
  --r-sm: 8px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1520;
    --surface: #0f1d2b;
    --sunk: #122334;
    --heading: #f1f5f9;
    --ink: #dfe7ee;
    --ink-2: #b6c4d1;
    --muted: #8ea1b3;
    --line: rgba(214, 230, 245, 0.1);
    --line-2: rgba(214, 230, 245, 0.18);
    --link: #74b6ea;
    --mark-bg: #0a68b8;
    --mark-ring: #ffffff;
    --shot-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1520;
  --surface: #0f1d2b;
  --sunk: #122334;
  --heading: #f1f5f9;
  --ink: #dfe7ee;
  --ink-2: #b6c4d1;
  --muted: #8ea1b3;
  --line: rgba(214, 230, 245, 0.1);
  --line-2: rgba(214, 230, 245, 0.18);
  --link: #74b6ea;
  --mark-bg: #0a68b8;
  --mark-ring: #ffffff;
  --shot-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  font-feature-settings: "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { color: var(--heading); margin: 0; font-weight: 650; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}

.prose { max-width: var(--measure); color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font: 500 0.88em/1 ui-monospace, "SF Mono", Menlo, monospace; background: var(--sunk); padding: 2px 5px; border-radius: 5px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li + li { margin-top: 0.3em; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--heading); }
.brand .logo { width: 104px; height: auto; }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: 0.01em; padding-left: 14px; border-left: 1px solid var(--line-2); line-height: 1.2; }
.top-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top-nav a { color: var(--ink-2); text-decoration: none; }
.top-nav a:hover { color: var(--heading); text-decoration: underline; }
.theme {
  font: 500 14px/1 var(--font); color: var(--ink-2); background: transparent;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 8px 12px; cursor: pointer;
}
.theme:hover { color: var(--heading); border-color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 12px 18px; border-radius: var(--r);
}
.btn:hover { background: #085a9e; text-decoration: none; }
.btn-quiet { color: var(--heading); font-weight: 600; font-size: 16px; text-decoration: none; padding: 12px 4px; }
.btn-quiet:hover { text-decoration: underline; }

/* ---------- screenshots ---------- */
.shot { margin: 0; }
.shot-frame {
  position: relative; display: block; width: 100%;
  border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--sunk); box-shadow: var(--shot-shadow);
  overflow: hidden;
}
.shot-frame img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

.mk {
  position: absolute; transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mark-bg); color: var(--mark-ink);
  font: 650 14px/1 var(--font); font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 3px var(--mark-ring), 0 4px 12px rgba(0, 44, 76, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.mk.on { background: var(--blue); transform: translate(-50%, -50%) scale(1.18); }
.mk-s { position: static; transform: none; width: 22px; height: 22px; font-size: 12px; box-shadow: none; flex: none; }

.legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 10px; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 104px); }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.hero h1 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.0; letter-spacing: -0.03em; font-stretch: 88%; font-weight: 650; }
.hero-lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); margin: 24px 0 32px; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 0; }
.hero-shot .shot-frame { border-radius: 14px; }

.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: baseline; padding-bottom: 28px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.sec-head h2 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.02em; font-stretch: 92%; line-height: 1.1; }
.sec-head p { color: var(--ink-2); margin: 0; max-width: 52ch; }
.contents, .week, .faq { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(24px, 4vw, 48px); }

.ct-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(32px, 5vw, 72px); }
.ct { break-inside: avoid; border-bottom: 1px solid var(--line); }
.ct a { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; text-decoration: none; color: inherit; }
.ct-n { font-size: 28px; font-weight: 500; font-stretch: 85%; font-variant-numeric: tabular-nums; color: var(--muted); line-height: 1.1; }
.ct-t { display: block; font-size: 20px; font-weight: 650; color: var(--heading); letter-spacing: -0.01em; line-height: 1.25; }
.ct-s { display: block; color: var(--ink-2); font-size: 16px; margin-top: 6px; }
.ct-g { display: block; color: var(--muted); font-size: 14px; margin-top: 8px; line-height: 1.5; }
.ct a:hover .ct-t { color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.ct a:hover .ct-n { color: var(--link); }

.wk { width: 100%; border-collapse: collapse; font-size: 16px; }
.wk thead th { text-align: left; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 14px 16px 10px 0; border-bottom: 1px solid var(--line-2); }
.wk tbody th, .wk td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.wk tbody th { color: var(--heading); font-weight: 650; width: 9em; }
.wk td { color: var(--ink-2); max-width: 60ch; }
.wk .wk-ch { width: 16em; font-size: 15px; white-space: nowrap; }
.wk .wk-ch a { text-decoration: none; }
.wk .wk-ch a:hover { text-decoration: underline; }

.faq-list { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-size: 18px; font-weight: 600; color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--ink-2); max-width: 66ch; margin: -4px 0 22px; }

/* ---------- chapter ---------- */
.ch-grid { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-top: 40px; }
.rail { position: relative; }
.toc-d { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding-bottom: 24px; }
.toc-m { display: none; }
.toc-k { font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc-k2 { margin-top: 32px; }
.toc ol { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.4; }
.toc li a { display: block; padding: 6px 0 6px 12px; color: var(--ink-2); text-decoration: none; border-left: 1px solid var(--line-2); }
.toc li a:hover { color: var(--heading); border-left-color: var(--muted); }
.toc li a.is-current { color: var(--heading); font-weight: 600; border-left: 2px solid var(--blue); padding-left: 11px; }
.toc-all li a { display: flex; gap: 10px; border-left: 0; padding-left: 0; }
.toc-all li a span { color: var(--muted); font-variant-numeric: tabular-nums; width: 1.4em; flex: none; }
.toc-all li a[aria-current="page"] { color: var(--heading); font-weight: 600; }

.ch-main { min-width: 0; padding-bottom: 40px; }
.ch-head { padding-bottom: 28px; border-bottom: 1px solid var(--line-2); margin-bottom: 32px; }
.ch-num { font-size: 15px; font-weight: 600; color: var(--muted); margin: 0 0 14px; font-variant-numeric: tabular-nums; }
.ch-num span { letter-spacing: 0.05em; text-transform: uppercase; font-size: 13px; }
.ch-head h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -0.03em; font-stretch: 88%; }
.ch-sum { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); margin: 18px 0 0; max-width: 46ch; }
.ch-intro { font-size: 18px; margin-bottom: 16px; }

.guide, .tips, .plain { padding-top: 56px; }
.guide > h2, .tips > h2, .plain > h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.15; font-stretch: 94%; margin-bottom: 14px; }
.guide .lead { margin-bottom: 8px; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; }
.step { border-top: 1px solid var(--line); padding: 28px 0; }
.step:first-child { border-top: 0; padding-top: 8px; }
.step-text { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px; }
.step-n { margin: 0; font-size: 26px; line-height: 1.05; font-weight: 500; font-stretch: 85%; color: var(--blue); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; margin: 2px 0 8px; }
.step .prose { font-size: 16.5px; }

.step-shot { display: grid; grid-template-columns: minmax(240px, 4fr) minmax(0, 8fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.step-shot .step-text { position: sticky; top: 96px; }
.step-wide .shot { margin-bottom: 24px; }
.step-wide .step-text { max-width: 760px; }
.step-plain .step-text { max-width: 760px; }

.after { margin-top: 12px; }

.tips ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
.tips li { border-top: 1px solid var(--line-2); padding: 16px 0 20px; color: var(--ink-2); font-size: 16px; }
.tips li strong { color: var(--ink); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 72px; border-top: 1px solid var(--line-2); padding-top: 28px; }
.pager a { text-decoration: none; color: var(--heading); font-weight: 650; font-size: 19px; line-height: 1.3; }
.pager a span { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pager a:hover { color: var(--link); }
.pg-next { text-align: right; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 64px; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 48px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 32px; align-items: start; font-size: 14px; color: var(--muted); }
.foot .logo { width: 96px; grid-row: span 2; }
.foot p { margin: 0; max-width: 70ch; }

/* ---------- print view (screen) ---------- */
.print-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); font-size: 15px; }
.print-bar button:not([hidden]) { font: 600 15px/1 var(--font); background: var(--blue); color: #fff; border: 0; border-radius: var(--r-sm); padding: 10px 14px; cursor: pointer; }
.p-main { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); }
.cover { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 64px 0; border-bottom: 1px solid var(--line-2); }
.cover-logo { width: 240px; margin-bottom: 56px; }
.cover h1 { font-size: 64px; letter-spacing: -0.03em; font-stretch: 88%; line-height: 1; }
.cover p { font-size: 21px; color: var(--ink-2); max-width: 30ch; margin-top: 20px; }
.cover .cover-date { font-size: 15px; color: var(--muted); margin-top: 48px; }
.p-contents { padding: 56px 0; }
.p-contents h2 { font-size: 32px; letter-spacing: -0.02em; margin-bottom: 20px; }
.p-contents ol { list-style: none; padding: 0; margin: 0; }
.p-contents li { border-top: 1px solid var(--line); padding: 14px 0; }
.p-contents li a { display: flex; gap: 16px; text-decoration: none; color: var(--heading); font-weight: 650; font-size: 19px; }
.p-contents li a span { color: var(--muted); font-weight: 500; width: 1.6em; font-variant-numeric: tabular-nums; }
.p-contents li p { margin: 4px 0 0 calc(1.6em + 16px); color: var(--ink-2); font-size: 15px; }
.p-ch { padding-top: 72px; }
.print-view .step-shot { grid-template-columns: minmax(0, 1fr); }
.print-view .step-shot .step-text { position: static; }
.print-view .step-shot .shot { order: 2; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .step-shot { grid-template-columns: minmax(0, 1fr); }
  .step-shot .step-text { position: static; }
  .step-shot .shot { margin-top: 4px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-lede { max-width: 46ch; }
  .sec-head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ct-list { columns: 1; }
  .ch-grid { grid-template-columns: minmax(0, 1fr); padding-top: 16px; gap: 0; }
  .toc-d { display: none; }
  .toc-m { display: block; border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 16px; margin-bottom: 24px; background: var(--surface); }
  .toc-m summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--heading); font-size: 15px; }
  .toc-m .toc { padding-bottom: 16px; }
  .tips ul { grid-template-columns: minmax(0, 1fr); }
  .wk thead { display: none; }
  .wk, .wk tbody, .wk tr, .wk th, .wk td { display: block; width: auto; }
  .wk tr { border-bottom: 1px solid var(--line); padding: 16px 0; }
  .wk tbody th, .wk td { border: 0; padding: 2px 0; }
  .wk .wk-ch { white-space: normal; padding-top: 6px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-name { display: none; }
  .top-nav { gap: 14px; font-size: 14px; }
  .top-nav a[href="print.html"] { display: none; }
  .brand .logo { width: 88px; }
  .step-text { grid-template-columns: 34px minmax(0, 1fr); }
  .step-n { font-size: 22px; }
  .mk { width: 22px; height: 22px; font-size: 11px; box-shadow: 0 0 0 2px var(--mark-ring), 0 2px 6px rgba(0, 44, 76, 0.35); }
  .mk-s { width: 20px; height: 20px; font-size: 11px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pg-next { text-align: left; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot .logo { grid-row: auto; }
  .cover h1 { font-size: 44px; }
}

/* ---------- print ---------- */
@page { size: A4; margin: 16mm 16mm 18mm; }
@media print {
  :root, :root[data-theme="dark"] {
    --bg: #ffffff; --surface: #ffffff; --sunk: #f4f6f8; --heading: #002c4c; --ink: #0f2438; --ink-2: #33495e;
    --muted: #5e7184; --line: rgba(0, 44, 76, 0.12); --line-2: rgba(0, 44, 76, 0.2); --link: #0a68b8;
    --mark-bg: #002c4c; --mark-ring: #ffffff; --shot-shadow: none; color-scheme: light;
  }
  .logo-light { display: block !important; }
  .logo-dark { display: none !important; }
  body { font-size: 10.5pt; line-height: 1.5; background: #fff; }
  .top, .rail, .pager, .print-bar, .skip, .theme, .hero-cta { display: none !important; }
  a { color: inherit; text-decoration: none; }
  .wrap, .p-main { max-width: none; padding: 0; }
  .ch-grid { display: block; padding: 0; }
  .cover { min-height: 250mm; border: 0; padding: 0; break-after: page; }
  .p-contents { break-after: page; padding-top: 0; }
  .p-ch { break-before: page; padding-top: 0; }
  .ch-head h1 { font-size: 30pt; }
  .ch-sum { font-size: 13pt; }
  .ch-intro { font-size: 11pt; }
  .guide, .tips, .plain { padding-top: 22pt; }
  .guide > h2, .tips > h2, .plain > h2 { font-size: 17pt; break-after: avoid; }
  .step { padding: 12pt 0; }
  .step-shot, .step-wide { display: block; break-inside: avoid; }
  .step-shot .step-text, .step-wide .step-text { position: static; max-width: none; }
  .step-shot .shot, .step-wide .shot { margin: 10pt 0 0; }
  .step-wide .shot { order: 0; }
  .step h3 { font-size: 12.5pt; }
  .step .prose { font-size: 10.5pt; }
  .step-n { font-size: 17pt; }
  .shot-frame { border-color: rgba(0, 44, 76, 0.2); }
  .mk { width: 20px; height: 20px; font-size: 10px; box-shadow: 0 0 0 2px #fff; }
  .legend { font-size: 9.5pt; margin-top: 8pt; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tips { break-inside: avoid; }
  .tips li { font-size: 10pt; padding: 8pt 0 10pt; }
  .foot { margin-top: 24pt; break-inside: avoid; }
  .p-end .foot { break-before: avoid; }
  .home .hero { grid-template-columns: 1fr; padding: 0 0 18pt; }
  .home .sec-head { grid-template-columns: 1fr; }
  .faq details { break-inside: avoid; }
  .faq details:not([open]) > p { display: block; }
  .wk .wk-ch { white-space: normal; }
}

/* site.md sections and FAQ answers */
.about { padding-top: clamp(8px, 2vw, 24px); padding-bottom: clamp(8px, 2vw, 24px); }
.sec-head-open { border-bottom: 0; padding-bottom: 0; }
.sec-head-open .prose { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.faq .faq-a { margin: -4px 0 22px; max-width: 66ch; }
.faq .faq-a p { margin: 0 0 0.8em; }

/* a closer look: alternating screenshot and copy */
.looks { padding-top: clamp(40px, 6vw, 80px); }
.look { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: 40px 0; border-bottom: 1px solid var(--line); }
.look:last-child { border-bottom: 0; }
.look-r { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.look-r .shot { order: 2; }
.look-n { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.look h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.02em; font-stretch: 92%; line-height: 1.15; margin-bottom: 12px; }
.look-copy p:not(.look-n) { color: var(--ink-2); }
.look-copy a { font-weight: 600; }
@media (max-width: 900px) {
  .look, .look-r { grid-template-columns: minmax(0, 1fr); padding: 28px 0; }
  .look-r .shot { order: 0; }
}
@media print { .look { break-inside: avoid; } }

/* element outlines drawn from the shot's box data; marker sits just outside */
.shot-frame { --mk-off: 19px; }
.hl {
  position: absolute; border-radius: 6px;
  outline: 2px solid var(--blue); outline-offset: 3px;
  background: rgba(10, 104, 184, 0.06);
  pointer-events: none; transition: background 0.15s ease, outline-color 0.15s ease;
}
.hl.on { background: rgba(10, 104, 184, 0.14); outline-color: var(--blue-2); }
@media (max-width: 640px) {
  .shot-frame { --mk-off: 14px; }
  .hl { outline-width: 1.5px; outline-offset: 2px; border-radius: 4px; }
}
@media print {
  .shot-frame { --mk-off: 14px; }
  .hl { outline-width: 1.5px; outline-offset: 2px; }
}

/* marker without box data: smaller and see-through so the words under it stay legible */
.mk-pt { width: 22px; height: 22px; font-size: 12px; background: color-mix(in srgb, var(--mark-bg) 88%, transparent); box-shadow: 0 0 0 2px var(--mark-ring), 0 2px 8px rgba(0, 44, 76, 0.3); }
/* many callouts: legend in columns under a wide shot */
.step-wide .legend { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 24px; }
@media print {
  /* smaller shots so a step and its picture share a page with the text before it */
  .shot { width: 80%; }
  .ch-intro p { margin-bottom: 0.6em; }
}
@media (max-width: 640px) { .sec-head-open .prose { font-size: 17px; } }
@media print {
  /* contents on one page */
  .p-contents h2 { font-size: 22pt; margin-bottom: 10pt; }
  .p-contents li { padding: 7pt 0; break-inside: avoid; }
  .p-contents li a { font-size: 12pt; }
  .p-contents li p { font-size: 9.5pt; margin-top: 2pt; }
}
