/* User guide (EN / FR / zh-TW share this). */
:lang(zh) body, body:lang(zh) {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", var(--body);
  line-height: 1.85;
}
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { font-family: "Noto Serif TC", var(--display); font-weight: 600; }

.guide { max-width: 880px; margin: 0 auto; padding-inline: 24px; }
.guide-hero { padding-block: 56px 32px; border-bottom: 1px solid var(--line); }
.guide-hero h1 { font-size: clamp(38px, 7vw, 60px); }
.guide-hero .lede { max-width: 38em; }
.guide-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.guide-hero .note {
  margin-top: 22px; padding: 12px 16px; background: var(--brass-wash);
  border-left: 2px solid var(--brass); color: var(--muted); font-size: 15px; max-width: 40em;
}

.toc { padding-block: 28px; border-bottom: 1px solid var(--line); }
.toc h2 { font-size: 22px; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 24px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { color: var(--text); text-decoration: none; display: flex; gap: 10px; align-items: baseline; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--display); color: var(--brass); font-size: 18px; min-width: 1.6em; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--brass); }

.step { padding-block: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.step-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.num { font-family: var(--display); color: var(--brass); font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; }
.step h2 { font-size: 30px; }
.step h3 { font-size: 21px; margin: 24px 0 8px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; align-items: start; }
.cols.no-shot { grid-template-columns: minmax(0, 1fr); }
.text { max-width: 36em; }
ol.do { margin: 0 0 12px; padding-left: 1.4em; display: grid; gap: 8px; }
ol.do li::marker { color: var(--brass); font-family: var(--display); font-weight: 600; }
ul.plain { margin: 0 0 12px; padding-left: 1.2em; display: grid; gap: 6px; }
ul.plain li::marker { color: var(--faint); }

/* The app's own button labels, so readers can match the screen. */
.ui {
  font-family: var(--body); font-size: 0.82em; letter-spacing: 0.03em;
  color: var(--brass); background: var(--raised); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 6px; white-space: nowrap;
}
.tip { margin-top: 16px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: 15px; color: var(--muted); }
.tip strong { color: var(--text); font-weight: 600; }
.badge { display: inline-block; font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--ink); background: var(--brass); border-radius: 3px; padding: 1px 6px; margin-left: 8px; vertical-align: 4px; }

figure.shot { margin: 0; display: grid; gap: 10px; justify-items: center; }
figure.shot img { width: 100%; max-width: 240px; }
figure.shot figcaption { font-size: 13px; color: var(--faint); text-align: center; max-width: 240px; }
.shots2 { display: grid; gap: 22px; }

.table-wrap { overflow-x: auto; }
table.plan { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 8px; }
table.plan th, table.plan td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plan th { color: var(--muted); font-weight: 500; }
table.plan td + td, table.plan th + th { text-align: center; white-space: nowrap; }
.yes { color: var(--brass); }
.no { color: var(--faint); }

dl.faq { margin: 0; display: grid; gap: 20px; }
dl.faq dt { font-family: var(--display); font-weight: 600; font-size: 20px; }
:lang(zh) dl.faq dt { font-family: "Noto Serif TC", var(--display); font-size: 17px; }
dl.faq dd { margin: 4px 0 0; color: var(--muted); max-width: 40em; }

@media (max-width: 680px) {
  .cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .shots2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* PDF / print: light paper version. */
@page { size: A4; margin: 16mm 14mm; }
@media print {
  :root {
    color-scheme: light;
    --ink: #FFFFFF; --bg: #FFFFFF; --surface: #F7F3EA; --raised: #F3EDE0; --line: #E4DACA;
    --text: #1A140C; --muted: #4E4436; --faint: #7A6E5C; --brass: #8A6424; --brass-wash: rgba(138,100,36,0.08);
  }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { font-size: 11pt; }
  .topbar, .footer, .skip, .guide-hero .actions { display: none; }
  .guide { padding-inline: 0; }
  .guide-hero { padding-block: 0 20px; }
  .toc { break-after: page; }
  .step { padding-block: 26px; }
  .step-head, .step h3 { break-after: avoid; }
  figure.shot, .tip, table.plan tr, dl.faq > div, ol.do li { break-inside: avoid; }
  .cols { grid-template-columns: minmax(0, 1fr) 190px; gap: 28px; }
  figure.shot img { max-width: 190px; }
  .screen { box-shadow: none; }
  .badge { color: #FFFFFF; }
  a { text-decoration: none; }
}
