/* The printable client guide (guide/index.html). Shares the token set with hybrid/ and
   schemes/ — same product, same one accent — but is its own stylesheet because this page is
   handed to clients as a link or a PDF and must not depend on the app shell loading.
   Light only: it is read on a couch and printed on paper. The print rules at the foot are what
   scripts/guide-pdf.mjs renders through. */
@font-face{font-family:'Bebas Neue';font-weight:100 900;font-display:swap;src:url('../assets/fonts/bebas-neue-latin.woff2') format('woff2')}
:root{
  --gd-accent:#4B62EE; --display:'Bebas Neue',-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --ink:#13151A; --muted:#636B7E; --line:#E7E9EF; --bg:#F6F7FB; --card:#FFFFFF;
  --accent:#4B62EE; --accent-soft:#EEF1FF; --warn:#D97706; --warn-soft:#FDF3E3;
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --r:14px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:var(--sans);color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;font-size:16px;line-height:1.6}
main{max-width:760px;margin:0 auto;padding:0 20px 60px}
h1,h2,h3{letter-spacing:-.02em;margin:0}
a{color:var(--accent)}

.top{display:flex;align-items:center;gap:14px;max-width:760px;margin:0 auto;padding:18px 20px}
.brand{display:flex;align-items:center;gap:9px;color:var(--ink);text-decoration:none;font-weight:800}
.brand img{width:26px;height:26px}
.top-cta{margin-left:auto;font:inherit;font-weight:750;font-size:14px;color:var(--ink);cursor:pointer;
  border:1px solid var(--line);background:var(--card);border-radius:999px;padding:8px 15px}
.top-cta:hover{border-color:var(--accent)}

.cover{padding:26px 0 22px;border-bottom:1px solid var(--line)}
.cover-mark{display:flex;align-items:center;gap:12px;margin-bottom:26px}
.cover-mark img{height:44px;width:auto}
.cover h1{font-family:var(--display)}
.gd-letter-page{padding:26px 0 8px;border-bottom:1px solid var(--line)}
.gd-letter-page h2{font-family:var(--display);font-size:24px;margin-bottom:10px}
.gd-letter-page p{margin:0 0 12px;font-size:17px;line-height:1.65;max-width:62ch}
.gd-letter-page .gd-sign{font-weight:800;color:var(--muted);font-size:14px}
.gd-changes-page{margin:22px 0 0;padding:12px 14px;border-radius:12px;background:var(--card);border:1px solid var(--line);font-size:13.5px;line-height:1.5;color:var(--muted)}
.gd-changes-page b{color:var(--ink);margin-right:4px}
.gd-sum{margin:0 0 16px;padding:12px 16px;border-radius:12px;background:var(--card);border:1px solid var(--line)}
.gd-sum-t{font-family:var(--display);font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-bottom:6px}
.gd-sum ul{margin:0;padding-left:20px}
.gd-sum li{margin:0 0 4px;font-weight:650}
.gd-quote{margin:18px 0 6px;padding:2px 0 0 16px;border-left:3px solid var(--accent)}
.gd-quote p{margin:0 0 4px;font-family:var(--display);font-size:20px;font-weight:600;line-height:1.35}
.gd-quote cite{font-style:normal;font-size:13px;font-weight:750;color:var(--muted)}
.gd-fig{margin:10px 0 16px;padding:12px 12px 10px;border-radius:12px;background:var(--card);border:1px solid var(--line)}
.gd-fig .gd-svg{display:block;width:100%;height:auto;max-height:170px;color:var(--ink)}
.gd-fig figcaption{margin-top:6px;font-size:13px;font-weight:650;color:var(--muted);text-align:center}
.gd-figs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}
.gd-figs .gd-fig{margin:0}
.eyebrow{font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--accent)}
.cover h1{font-size:clamp(30px,6.5vw,44px);line-height:1.08;margin-top:12px}
.lede{margin:16px 0 0;font-size:clamp(16px,2.6vw,19px);color:var(--muted);max-width:62ch}
.by{margin:14px 0 0;font-size:13.5px;font-weight:700;color:var(--muted)}

.gd-toc{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:16px 18px;margin:24px 0 8px}
.gd-toc h2{margin:0 0 8px;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.gd-toc ol{margin:0;padding-left:0;list-style:none;columns:2;column-gap:26px;font-size:14.5px}
.gd-toc li{margin:3px 0;break-inside:avoid}
.gd-toc a{text-decoration:none;font-weight:650}

.gd-sec{padding:30px 0 6px;border-bottom:1px solid var(--line)}
.gd-sec h2{display:flex;align-items:baseline;gap:12px;font-size:26px;font-family:var(--display)}
.gd-n{flex:0 0 auto;font-size:12px;font-weight:800;letter-spacing:.06em;color:var(--accent);font-variant-numeric:tabular-nums}
.gd-tag{margin:6px 0 14px;color:var(--muted);font-weight:650;font-size:15px}
.gd-sec h3{font-size:12.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:20px 0 6px}
.gd-sec p{margin:0 0 12px}
.gd-sec ul,.gd-sec ol{margin:0 0 12px;padding-left:22px}
.gd-sec li{margin:0 0 7px}
.gd-callout{margin:14px 0 6px;padding:12px 14px;border-radius:12px;background:var(--accent-soft);border-left:3px solid var(--accent);font-weight:700;font-size:15px}
.gd-callout.warn{background:var(--warn-soft);border-left-color:var(--warn);color:#7A4A05}
.gd-table{width:100%;border-collapse:collapse;margin:6px 0 14px;font-size:14.5px}
.gd-table th,.gd-table td{text-align:left;vertical-align:top;padding:8px 10px;border-bottom:1px solid var(--line)}
.gd-table th{font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}

footer{margin-top:36px;padding-top:18px;color:var(--muted);font-size:13.5px}

@media (max-width:560px){ .gd-toc ol{columns:1} .gd-sec h2{font-size:21px} }

/* Print, and the PDF: A4, real margins, no chrome, a section never splits its heading from its
   first lines, and the URL of the page is not stamped over the running foot. */
@page{ size:A4; margin:18mm 16mm 20mm }
@media print{
  body{background:#fff;font-size:11.5pt;line-height:1.5}
  .top,.top-cta{display:none}
  main{max-width:none;padding:0}
  .cover{padding:0 0 12pt;border:0}
  .cover h1{font-size:30pt}
  .gd-toc{page-break-after:always;border:0;padding:0;background:none}
  .gd-toc ol{columns:1;font-size:12pt}
  .gd-sec{padding:14pt 0 4pt;page-break-inside:auto}
  .gd-sec h2{font-size:17pt;page-break-after:avoid}
  .gd-sec h3,.gd-tag{page-break-after:avoid}
  .gd-callout,.gd-table,li,.gd-sum,.gd-fig,.gd-quote{page-break-inside:avoid}
  .cover{min-height:240mm;display:flex;flex-direction:column;justify-content:flex-end;page-break-after:always}
  .gd-letter-page{page-break-after:always;border:0}
  .gd-figs{grid-template-columns:1fr 1fr 1fr}
  .gd-fig{background:none}
  .gd-sec{page-break-before:auto}
  a{color:inherit;text-decoration:none}
  footer{font-size:9.5pt}
}

/* ── v242: the printed edition's cover and photographs ────────────────────────────────────
   The cover is the redesign's: a photograph above an accent panel with the title in white.
   Each section that has a photograph opens with it; the source carries none (its test forbids
   an image file in the body), so guide.js adds them here from guide/photos/. */
.cover{padding:0;border:0;border-radius:var(--r);overflow:hidden;margin-top:6px}
.cover-photo{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;object-position:center 45%}
.cover-panel{background:var(--accent);color:#fff;padding:28px 32px 30px}
.cover-panel .cover-mark{margin-bottom:22px}
.cover-panel .cover-mark img{height:40px}
.cover-panel .eyebrow{color:#C9D2FF}
.cover-panel h1{color:#fff}
.cover-panel .lede,.cover-panel .by{color:#E6EAFF}
.gd-photo{margin:2px 0 16px;border-radius:12px;overflow:hidden;background:var(--card)}
.gd-photo img{display:block;width:100%;height:auto;max-height:260px;object-fit:cover}
.gd-letter-page .gd-photo{float:right;width:38%;margin:4px 0 12px 22px}
.gd-letter-page .gd-photo img{max-height:none;aspect-ratio:3/4}
.gd-letter-page::after{content:"";display:block;clear:both}

@media print{
  .cover{min-height:240mm;display:flex;flex-direction:column;justify-content:flex-start;padding:0;border-radius:0;margin:0;page-break-after:always}
  .cover-photo{aspect-ratio:auto;height:128mm;flex:0 0 auto}
  .cover-panel{flex:1 1 auto;padding:12mm 12mm 10mm;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .cover h1{font-size:34pt}
  .gd-sec{page-break-before:always;padding-top:4pt}
  .gd-figs{page-break-inside:avoid}
  .gd-photo{page-break-inside:avoid;border-radius:8px}
  .gd-photo img{max-height:62mm}
  .gd-letter-page .gd-photo{width:36%}
  .gd-letter-page .gd-photo img{max-height:none}
  footer{page-break-inside:avoid}
}

/* Print: two columns of body text per section, so a section is a page. The opening — heading,
   tag line, photograph, summary — and the drawings and pull quote span the page; the running
   text, lists, callouts and tables sit in the columns. */
@media print{
  body{font-size:10.5pt;line-height:1.45}
  .gd-sec{column-count:2;column-gap:8mm;column-fill:auto;padding-top:0}
  .gd-sec h2,.gd-sec .gd-tag,.gd-sec .gd-sum,.gd-sec .gd-photo,.gd-sec .gd-figs,.gd-sec .gd-quote{column-span:all}
  .gd-sec h2{font-size:19pt;margin-bottom:2pt}
  .gd-tag{margin:4pt 0 10pt;font-size:11pt}
  .gd-sum{margin:0 0 10pt;padding:8pt 12pt}
  .gd-sum li{font-size:10.5pt;margin-bottom:2pt}
  .gd-sec h3{margin:10pt 0 4pt;font-size:9pt}
  .gd-sec p{margin:0 0 8pt}
  .gd-sec ul,.gd-sec ol{margin:0 0 8pt;padding-left:16pt}
  .gd-sec li{margin:0 0 4pt}
  .gd-callout{margin:8pt 0 6pt;padding:8pt 10pt;font-size:10pt;break-inside:avoid}
  .gd-table{font-size:9.5pt;margin:4pt 0 10pt;break-inside:avoid}
  .gd-table th,.gd-table td{padding:4pt 6pt}
  .gd-fig{break-inside:avoid}
  .gd-figs{gap:6pt;margin:0 0 10pt}
  .gd-fig .gd-svg{max-height:34mm}
  .gd-fig figcaption{font-size:8.5pt}
  .gd-photo{margin:0 0 10pt}
  .gd-photo img{max-height:52mm}
  .gd-quote{margin:10pt 0 0;break-inside:avoid}
  .gd-quote p{font-size:15pt}
  .gd-changes-page{break-inside:avoid}
}

/* Print, tuned on the PDF: the photograph sits at the top of the first column rather than
   across the page, the margins come in, and a section carries no bottom rule or padding, which
   Chrome otherwise turns into a blank page after a section that ends level with the margin. */
@page{ size:A4; margin:14mm 14mm 16mm }
@media print{
  body{font-size:10pt;line-height:1.42}
  .gd-sec{border-bottom:0;padding:0;margin:0;column-gap:7mm}
  .gd-sec .gd-photo{column-span:none;margin:0 0 8pt}
  .gd-photo img{max-height:46mm}
  .gd-sec h2{font-size:18pt}
  .gd-sum{margin:0 0 8pt}
  .gd-quote{margin:8pt 0 0}
  .gd-quote p{font-size:14pt}
  footer{margin-top:14pt;padding-top:10pt;font-size:8.5pt}
  .cover{min-height:255mm}
  .cover-photo{height:140mm}
}

/* Print: the pull quote closes its column rather than the page, and a drawing that sits inside a
   column (tempo, the pair, the plate) is smaller than one in the drawings grid. */
@media print{
  body{line-height:1.38}
  .gd-sec .gd-quote{column-span:none;margin:6pt 0 0;padding-left:10pt}
  .gd-quote p{font-size:13pt;line-height:1.25}
  .gd-sec > .gd-fig .gd-svg{max-height:26mm}
  .gd-sec > .gd-fig{margin:4pt 0 8pt;padding:6pt 8pt 4pt}
  .gd-sec li{margin:0 0 3pt}
}
