:root { --navy:#102e60; --blue:#2055bd; --teal:#0f9e9b; --ink:#24334d; --muted:#62718b; --line:#dce7f5; --soft:#f3f8fe; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:#dfe9f5; color:var(--ink); font-family:Sarabun,Tahoma,sans-serif; font-size:17px; line-height:1.65; }
.toolbar { position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.65rem max(1rem,calc((100vw - 900px)/2)); background:#0b2551; color:#fff; box-shadow:0 8px 20px #102e6022; }
.toolbar strong { font:600 .95rem Prompt,Tahoma,sans-serif; }
.toolbar a,.toolbar button { color:#fff; background:transparent; border:1px solid #ffffff6e; border-radius:7px; padding:.35rem .8rem; font:inherit; text-decoration:none; cursor:pointer; }
.toolbar a:hover,.toolbar button:hover { background:#ffffff24; }
main { padding:24px 12px 50px; }
.page { position:relative; width:min(900px,100%); min-height:1125px; margin:0 auto 24px; padding:68px 72px 60px; overflow:hidden; background:#fff; box-shadow:0 20px 45px #10305d1c; border-radius:4px; }
.page::before { content:''; position:absolute; top:0; left:0; right:0; height:9px; background:linear-gradient(90deg,var(--navy),var(--blue),var(--teal)); }
.page-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:44px; padding-bottom:12px; border-bottom:1px solid var(--line); color:var(--muted); font-size:.78rem; letter-spacing:.06em; }
.page-footer { position:absolute; bottom:27px; left:72px; right:72px; display:flex; justify-content:space-between; border-top:1px solid var(--line); padding-top:9px; color:var(--muted); font-size:.74rem; }
.kicker { display:inline-block; color:var(--teal); font:700 .83rem Prompt,Tahoma,sans-serif; letter-spacing:.05em; }
h1,h2,h3 { color:var(--navy); font-family:Prompt,Tahoma,sans-serif; line-height:1.3; }
h1 { margin:12px 0 22px; font-size:2rem; }
h2 { margin:25px 0 12px; font-size:1.18rem; }
h3 { margin:18px 0 9px; font-size:.98rem; }
p { margin:0 0 13px; }
a { color:var(--blue); }
ol,ul { margin:0 0 15px; padding-left:1.45rem; }
li { margin-bottom:7px; }
.lead { font-size:1.1rem; color:#465978; }
.muted,.caption { color:var(--muted); }
.caption { margin-top:7px; font-size:.81rem; }
.note { margin:18px 0; padding:14px 18px; border-left:4px solid var(--teal); border-radius:0 9px 9px 0; background:#eefbf9; }
.warn { border-left-color:#e19b22; background:#fff8e9; }
.figure { margin:19px 0 22px; padding:12px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.figure img { display:block; width:100%; height:auto; border-radius:7px; }
.figure figcaption { margin:10px 3px 1px; color:var(--muted); font-size:.81rem; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:13px; }
.card { padding:16px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.card strong { color:var(--navy); }
.card small { display:block; color:var(--muted); font-size:.83rem; line-height:1.5; }
.number { display:inline-grid; width:30px; height:30px; place-items:center; margin-right:8px; border-radius:9px; background:#dcecff; color:var(--blue); font-weight:700; }
.steps { counter-reset:step; list-style:none; padding:0; }
.steps li { position:relative; margin:0 0 15px; padding:11px 14px 11px 50px; border:1px solid var(--line); border-radius:10px; }
.steps li::before { counter-increment:step; content:counter(step); position:absolute; top:10px; left:11px; display:grid; width:27px; height:27px; place-items:center; border-radius:8px; background:var(--blue); color:#fff; font-weight:700; }
.toc { list-style:none; padding:0; }
.toc li { margin:0; border-bottom:1px solid var(--line); }
.toc a { display:flex; justify-content:space-between; gap:1rem; padding:12px 2px; color:var(--ink); text-decoration:none; }
.toc a:hover { color:var(--blue); }
.toc span:last-child { color:var(--teal); font-weight:700; }
.flow { display:flex; align-items:stretch; gap:8px; margin:20px 0; }
.flow > div { flex:1; min-width:0; padding:14px 10px; border-radius:10px; background:#eef5ff; color:var(--navy); text-align:center; font-weight:700; }
.flow > b { align-self:center; color:var(--teal); }
.sample { margin:18px 0; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.sample > div { padding:11px 15px; border-bottom:1px solid var(--line); }
.sample > div:last-child { border-bottom:0; }
.sample > div:nth-child(1) { background:#dcecff; font-weight:700; }
.sample > div:nth-child(2) { padding-left:35px; background:#f3f8fe; }
.sample > div:nth-child(3) { padding-left:62px; }
.sample-label { display:inline-block; margin-left:8px; color:var(--muted); font-size:.77rem; font-weight:400; }
.table { width:100%; border-collapse:collapse; margin:15px 0 20px; font-size:.9rem; }
.table th,.table td { border:1px solid var(--line); padding:10px 11px; text-align:left; vertical-align:top; }
.table th { background:#eef5ff; color:var(--navy); }
.table td:first-child { font-weight:600; }
.pill { display:inline-block; padding:3px 9px; border-radius:99px; background:#e0f7f4; color:#077e7a; font-size:.77rem; font-weight:700; }
.cover { display:flex; flex-direction:column; justify-content:space-between; padding:75px 78px; background:radial-gradient(circle at 90% 10%,#56d0ce40 0 15%,transparent 15.5%),linear-gradient(150deg,#0b2551 0%,#1645a0 62%,#0d8c9c 100%); color:#fff; }
.cover::before { display:none; }
.cover .brand { display:inline-flex; align-items:center; gap:12px; color:#d7f1ff; font:600 1rem Prompt,Tahoma,sans-serif; }
.cover .brand-mark { display:grid; width:50px; height:50px; place-items:center; border:1px solid #ffffff80; border-radius:13px; font-weight:700; color:#fff; }
.cover h1 { margin:18px 0; color:#fff; font-size:3.4rem; line-height:1.2; }
.cover .subtitle { max-width:650px; color:#d8eafa; font-size:1.3rem; }
.cover-line { width:115px; height:7px; margin:24px 0; border-radius:99px; background:#67e5d8; }
.cover-meta { display:flex; justify-content:space-between; border-top:1px solid #ffffff70; padding-top:22px; color:#d8eafa; }
.cover-art { width:100%; height:230px; border:1px solid #ffffff4d; border-radius:24px; background:linear-gradient(120deg,#ffffff17,#ffffff08); display:grid; place-items:center; box-shadow:inset 0 0 0 18px #ffffff08; }
.cover-art div { width:75%; display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.cover-art span { height:90px; border:1px solid #ffffff80; border-radius:15px; background:#ffffff26; }
.cover-art span:nth-child(2) { transform:translateY(-25px); background:#ffffff35; }
.cover-art span:nth-child(3) { transform:translateY(10px); }
.mini-heading { margin:28px 0 13px; padding-bottom:8px; border-bottom:1px solid var(--line); color:var(--navy); font:600 1rem Prompt,Tahoma,sans-serif; }
@media (max-width:700px) { .page { min-height:0; padding:38px 24px 65px; } .page-header { margin-bottom:25px; } .page-footer { left:24px; right:24px; } .cover { min-height:800px; padding:45px 30px; } .cover h1 { font-size:2.6rem; } .grid-2,.grid-3 { grid-template-columns:1fr; } .flow { flex-direction:column; } .flow > b { transform:rotate(90deg); } .toolbar { flex-wrap:wrap; } }
@page { size:A4; margin:0; }
@media print { body { background:#fff; print-color-adjust:exact; -webkit-print-color-adjust:exact; } main { padding:0; } .toolbar { display:none; } .page { width:210mm; min-height:297mm; max-height:297mm; margin:0; padding:19mm 18mm 16mm; box-shadow:none; border-radius:0; break-after:page; page-break-after:always; font-size:15px; line-height:1.5; } .page h1 { font-size:1.8rem; } .page h2 { margin-top:18px; } .page .steps li { margin-bottom:10px; } .page:last-child { break-after:auto; } .cover { padding:24mm 20mm; } .cover h1 { font-size:3rem; } .page-footer { left:18mm; right:18mm; bottom:9mm; } a { text-decoration:none; } }
