@font-face { font-family: "Manrope"; src: url("fonts/Manrope-latin-variable.woff2") format("woff2"); font-weight: 200 800; }
@page { size: A4; margin: 16mm 15mm 18mm 15mm; }
:root { --ink: #0b2a6b; --muted: #475569; --line: #e3e8ef; --brand: #0b2a6b; --teal: #0f8f78; --soft: #ecf8f5; --warn: #fff7ed; --warnline: #fdba74; }
* { box-sizing: border-box; }
html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body { font-family: "Segoe UI", Inter, Arial, sans-serif; color: var(--ink); font-size: 10.5pt; line-height: 1.5; margin: 0; background: #fff; }
h1, h2, h3 { line-height: 1.25; font-family: "Manrope", "Segoe UI", sans-serif; }
h2 { font-size: 17pt; margin: 0 0 6pt; padding-bottom: 4pt; border-bottom: 2px solid var(--teal); break-after: avoid; }
h3 { font-size: 12pt; margin: 14pt 0 4pt; break-after: avoid; }
p { margin: 0 0 7pt; }
ul, ol { margin: 0 0 8pt; padding-left: 18pt; }
li { margin-bottom: 3pt; }
section { break-before: page; }
section.flow { break-before: auto; margin-top: 18pt; }
code, .mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: 9.5pt; background: #f1f5f9; padding: 0 3pt; border-radius: 3pt; }
pre { font-family: Consolas, monospace; font-size: 9pt; background: #f1f5f9; padding: 7pt 9pt; border-radius: 5pt; white-space: pre-wrap; margin: 0 0 8pt; }
table { width: 100%; border-collapse: collapse; margin: 4pt 0 10pt; font-size: 9.5pt; break-inside: auto; }
th, td { text-align: left; vertical-align: top; padding: 4pt 6pt; border-bottom: 1px solid var(--line); }
th { background: #f8fafc; font-weight: 600; }
tr { break-inside: avoid; }
figure { margin: 6pt 0 12pt; break-inside: avoid; }
figure img { width: 100%; border: 1px solid var(--line); border-radius: 6pt; display: block; }
figcaption { font-size: 8.5pt; color: var(--muted); margin-top: 3pt; }
.note, .tip, .warn { border-radius: 6pt; padding: 7pt 10pt; margin: 6pt 0 10pt; break-inside: avoid; }
.tip { background: var(--soft); border-left: 4px solid var(--teal); }
.note { background: #f8fafc; border-left: 4px solid #94a3b8; }
.warn { background: var(--warn); border-left: 4px solid var(--warnline); }
.tip b:first-child, .note b:first-child, .warn b:first-child { display: block; margin-bottom: 2pt; }
.kbd { font-family: Consolas, monospace; font-size: 8.5pt; border: 1px solid #cbd5e1; border-bottom-width: 2px; border-radius: 3pt; padding: 0 3pt; background: #fff; white-space: nowrap; }
.steps { counter-reset: s; list-style: none; padding-left: 0; }
.steps > li { counter-increment: s; position: relative; padding-left: 24pt; margin-bottom: 6pt; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 16pt; height: 16pt; border-radius: 50%; background: var(--brand); color: #fff; font-size: 8.5pt; font-weight: 700; text-align: center; line-height: 16pt; }

/* cover */
.cover { height: 255mm; display: flex; flex-direction: column; justify-content: space-between; break-after: page; }
.cover .logo { display: inline-flex; align-items: center; justify-content: center; width: 46pt; height: 46pt; border-radius: 10pt; background: var(--brand); color: #fff; font-weight: 700; font-size: 17pt; }
.cover h1 { font-size: 32pt; margin: 18pt 0 6pt; }
.cover .sub { font-size: 14pt; color: var(--muted); max-width: 140mm; }
.cover .hero { margin-top: 18pt; }
.cover .hero img { width: 100%; border-radius: 8pt; border: 1px solid var(--line); box-shadow: 0 6pt 18pt rgba(15, 23, 42, .12); }
.cover .meta { font-size: 9pt; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8pt; }

/* contents */
.toc ol { list-style: none; padding: 0; columns: 1; }
.toc li { display: flex; gap: 8pt; padding: 4pt 0; border-bottom: 1px dotted var(--line); }
.toc li span:first-child { width: 18pt; color: var(--teal); font-weight: 700; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10pt; }
.small { font-size: 9pt; color: var(--muted); }
figure.half img { width: 78%; margin: 0 auto; }
figure.half figcaption { text-align: center; }
.cover h1 .logo-mark { display: block; width: 58pt; height: 58pt; margin-bottom: 14pt; }
.cover h1 { font-weight: 800; letter-spacing: -0.02em; }
.wm { font-weight: 800; color: #0b2a6b; } .wm span { color: #0f8f78; }
figure.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6pt; } figure.pair figcaption { grid-column: 1 / -1; }

/* ---- screen layout for the website (the rules above are the print guide's) ---- */
@media screen {
  body.guide-page { font-size: 16.5px; background: #f4f7fb; }
  .site-header .wm, .site-footer .wm { color: #fff; }
  .site-header .wm span, .site-footer .wm span { color: #2dd4bf; }
  .guide { max-width: 900px; margin: 32px auto 80px; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 48px 56px; box-shadow: 0 8px 24px rgba(11,42,107,.06); }
  .guide section { margin-top: 56px; }
  .guide h2 { scroll-margin-top: 140px; font-size: 1.7rem; }
  .guide .cover { height: auto; gap: 24px; }
  .guide .cover h1 { font-size: 2.6rem; }
  .guide .toc a { display: flex; gap: 8pt; color: inherit; text-decoration: none; width: 100%; }
  .guide .toc a:hover span:last-child { color: #0f8f78; text-decoration: underline; }
  .guide .toc ol { columns: 2; column-gap: 32px; }
  .guide .toc li { break-inside: avoid; }
  .guide-bar { position: sticky; top: 68px; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid #e2e8f0; }
  .guide-bar .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
  .guide-bar .sp { flex: 1; }
  .guide-bar .btn { padding: 9px 16px; font-size: .9rem; }
  .guide figure img { border-radius: 10px; }
}
@media screen and (max-width: 700px) {
  .guide { margin: 0; border-radius: 0; border: 0; padding: 28px 16px; }
  .guide .toc ol { columns: 1; }
  .guide .two, .guide figure.pair { grid-template-columns: 1fr; }
  .guide table { display: block; overflow-x: auto; }
  .guide-bar .btn-outline { display: none; }
  .guide-bar .btn { width: auto; }
}
