@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
:root { color-scheme: dark; --bg: #07080a; --surface: #0e1014; --raised: #14171d; --ink: #f5f3ec; --text: #d4d9e0; --muted: #aab2be; --quiet: #7f8997; --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.16); --gold: #e2c46c; --gold-soft: #f3dc93; --ok: #7ee0a3; --danger: #ff8b86; --display: "Geist", "Inter", ui-sans-serif, system-ui, sans-serif; --body: "Inter", ui-sans-serif, system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, Consolas, monospace; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: radial-gradient(900px 520px at 85% -140px, rgba(226,196,108,.1), transparent 68%), var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 10; padding: 10px 14px; border-radius: 8px; background: var(--gold-soft); color: #17140a; font-weight: 800; text-decoration: none; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: rgba(7,8,10,.94); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { display: block; width: auto; height: 46px; }
.header-links { display: flex; align-items: center; gap: 8px; }
.header-links a { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pdf-link { background: var(--gold); color: #17130a; }
.pdf-link:hover { background: var(--gold-soft); }
.back-link { color: var(--muted); border: 1px solid var(--line-strong); }
.back-link:hover { color: var(--gold-soft); }

.intro { max-width: 860px; padding: 64px 0 34px; }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
h1, h2 { font-family: var(--display); font-weight: 650; letter-spacing: -.035em; margin: 0; }
h1 { margin: 16px 0 18px; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; }
h1 em { font-style: normal; color: var(--gold); }
.intro p { max-width: 62ch; margin: 0; color: var(--muted); font-size: 17px; }
.intro .updated { margin-top: 14px; color: var(--quiet); font-size: 13px; }

.quick { margin: 8px 0 44px; padding: 26px; border: 1px solid rgba(226,196,108,.3); border-radius: 18px; background: linear-gradient(150deg, rgba(226,196,108,.08), transparent 55%), var(--surface); }
.quick h2 { font-size: 22px; margin-bottom: 16px; }
.quick-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: q; }
.quick-list li { position: relative; padding: 46px 14px 14px; border: 1px solid var(--line); border-radius: 12px; background: #0b0d11; counter-increment: q; }
.quick-list li::before { content: counter(q); position: absolute; top: 12px; left: 14px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #17130a; font-size: 12px; font-weight: 800; }
.quick-list b { display: block; font-size: 15px; }
.quick-list span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.content-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 80px; }
.contents { position: sticky; top: 96px; display: grid; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 13px; }
.contents strong { margin-bottom: 6px; color: var(--gold); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.contents a { padding: 5px 6px; border-radius: 6px; color: var(--muted); text-decoration: none; }
.contents a:hover { color: var(--gold-soft); background: rgba(226,196,108,.06); }

.guide section { padding: 30px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.guide section:first-child { border-top: 0; padding-top: 0; }
.guide h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: clamp(22px, 2.4vw, 28px); }
.n { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; border: 1px solid rgba(226,196,108,.5); background: rgba(226,196,108,.1); color: var(--gold-soft); font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.guide p { margin: 0 0 12px; color: var(--text); }
.guide ul { margin: 0 0 12px; padding-left: 20px; color: var(--text); }
.guide li { margin: 6px 0; }
.guide a { color: var(--gold-soft); text-underline-offset: 3px; }
.steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.steps li { position: relative; margin: 0; padding: 12px 14px 12px 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 11px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--gold-soft); font-family: var(--mono); font-size: 12px; font-weight: 700; }
code, kbd { font-family: var(--mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--gold-soft); overflow-wrap: anywhere; }
kbd { border: 1px solid var(--line-strong); color: var(--ink); }
.guide .note, .guide .tip, .guide .warn { padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.guide .note { border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--muted); }
.guide .tip { border-left: 3px solid var(--ok); background: rgba(126,224,163,.07); }
.guide .warn { border-left: 3px solid var(--danger); background: rgba(255,139,134,.07); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; }
.facts div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.facts span { display: block; color: var(--quiet); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.facts strong { display: block; margin-top: 4px; font-family: var(--display); font-size: 22px; color: var(--gold-soft); }
.facts small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.lot-table, .msg-table { margin: 6px 0 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lot-table { max-width: 360px; }
.lot-table > div, .msg-table .row { display: grid; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.lot-table > div { grid-template-columns: 1fr 1fr; }
.msg-table .row { grid-template-columns: 170px 1fr 1.3fr; align-items: start; }
.lot-table > div:first-child, .msg-table .row:first-child { border-top: 0; }
.lot-table .head, .msg-table .head { background: var(--raised); color: var(--quiet); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.msg-table .row span { color: var(--text); }
.msg-table .head span { color: var(--quiet); }
.msg-table code { justify-self: start; }

details { margin: 8px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
summary { cursor: pointer; padding: 14px 16px; font-weight: 650; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; display: inline-block; width: 18px; color: var(--gold); font-weight: 800; }
details[open] summary::before { content: "\2013"; }
.guide details p { padding: 0 16px 14px 34px; color: var(--muted); }
.guide .risk p { color: var(--muted); }
.risk h2 { font-size: 18px; }
.guide .help { margin-top: 18px; padding: 16px; border: 1px solid rgba(226,196,108,.3); border-radius: 12px; background: rgba(226,196,108,.06); }

footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 28px 0 36px; color: var(--quiet); font-size: 13px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .quick-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; gap: 24px; }
  .contents { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contents strong { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .brand img { height: 38px; }
  .header-links .back-link { display: none; }
  .intro { padding-top: 40px; }
  .quick { padding: 18px; }
  .quick-list, .contents, .facts { grid-template-columns: 1fr; }
  .msg-table .row { grid-template-columns: 1fr; gap: 4px; }
  .msg-table .head { display: none; }
}

/* PDF / print: light, compact, no navigation. */
@media print {
  @page { size: A4; margin: 15mm 14mm; }
  :root { color-scheme: light; --ink: #111; --text: #1d1d1d; --muted: #444; --quiet: #666; --line: #d9d9d9; --line-strong: #b9b9b9; --surface: #fff; --raised: #f3f3f3; --gold: #9a7420; --gold-soft: #7a5a12; }
  body { background: #fff; color: #111; font-size: 10.5pt; line-height: 1.5; }
  .site-header, .skip-link, .contents, footer { display: none; }
  .shell { width: 100%; }
  .content-grid { display: block; padding: 0; }
  .intro { padding: 0 0 10pt; }
  h1 { font-size: 26pt; }
  .intro p { color: #333; font-size: 11.5pt; }
  .quick { background: #fbf7ea; border-color: #d9c58a; break-inside: avoid; margin-bottom: 16pt; }
  .quick-list { grid-template-columns: 1fr; gap: 4pt; }
  .quick-list li { display: grid; grid-template-columns: 110pt 1fr; gap: 8pt; align-items: baseline; background: #fff; padding: 6pt 8pt 6pt 30pt; }
  .quick-list li::before { top: 5pt; left: 7pt; width: 16pt; height: 16pt; font-size: 8pt; color: #fff; }
  .quick-list span { margin-top: 0; }
  .guide section { padding: 10pt 0; }
  .guide h2 { break-after: avoid; }
  #messages { break-before: page; }
  .steps li, .facts div, .msg-table .row, .lot-table, .msg-table, .guide .note, .guide .tip, .guide .warn, details { break-inside: avoid; }
  .steps li, .facts div, details { background: #fff; }
  code, kbd { background: #f1f1f1; color: #6a4d0c; }
  .guide .tip { background: #eefaf2; }
  .guide .warn { background: #fdeeee; }
  .guide .help { background: #fbf7ea; }
  summary::before { content: "\2022"; }
  .guide a { color: #111; }
}
