@font-face{font-family:Noto Sans Thai;src:url(../assets/noto-sans-thai.woff2)format("woff2");font-weight:100 900;font-display:swap}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--ink:#172744;--text:#263954;--muted:#52617a;--base:#f4f7fd;--rule:#dbe3ef;--accent:#aa3e0a;--paper:#fff;background:var(--base);color:var(--ink);font-family:Noto Sans Thai,system-ui,sans-serif;line-height:1.65}*,:before,:after{box-sizing:border-box}html{scroll-padding-top:5.25rem}body{margin:0}a{color:inherit;text-underline-offset:.25em}img{max-width:100%;height:auto;display:block}h1,h2,h3,h4,p{margin:0}button,input{font:inherit}button{cursor:pointer}:focus-visible{outline-offset:4px;outline:3px solid #0c74ba}[hidden]{display:none!important}.layout{width:min(78rem,100% - 4rem);margin-inline:auto}.skip{z-index:3;background:#fff;padding:.5rem 1rem;position:absolute;top:-5rem;left:.75rem}.skip:focus{top:.75rem}.topbar{z-index:2;border-bottom:1px solid var(--rule);background:#fff;position:sticky;top:0}.topbar-inner{justify-content:space-between;align-items:center;gap:1rem;min-height:4.5rem;display:flex}.brand{align-items:center;min-width:0;display:flex}.brand img{width:min(9.2rem,100%)}.top-link{white-space:nowrap;font-size:.95rem;font-weight:650}.hero{background:#e9effb;border-bottom:1px solid #dce5f4}.hero-inner{grid-template-columns:1fr minmax(14rem,32rem);align-items:center;gap:1rem;min-height:28rem;padding-block:2.4rem;display:grid}.eyebrow{color:var(--accent);letter-spacing:.06em;font-size:.875rem;font-weight:800}h1{letter-spacing:-.045em;overflow-wrap:anywhere;margin:1rem 0;font-size:clamp(2.9rem,6.2vw,5.5rem);line-height:1.04}.intro{max-width:31rem;color:var(--text);font-size:1.125rem}.primary{color:#fff;background:#192f56;border-radius:.6rem;align-items:center;min-height:2.75rem;margin-top:1.65rem;padding:.63rem 1.2rem;font-weight:700;text-decoration:none;display:inline-flex}.primary:hover{background:#29487a}.buddy{object-fit:contain;width:100%;max-height:25rem}.body-grid{grid-template-columns:minmax(10rem,15rem) minmax(0,1fr);align-items:start;gap:clamp(1.5rem,4vw,4rem);padding-block:2.8rem 4.5rem;display:grid}.directory{max-height:calc(100vh - 7rem);position:sticky;top:6rem;overflow:auto}.directory h2{font-size:1.2rem}.directory ul{margin:.65rem 0 0;padding:0;list-style:none}.directory a{color:var(--text);border-radius:.45rem;margin:.1rem 0;padding:.5rem .6rem;text-decoration:none;display:block}.directory a:hover,.directory a:focus-visible{background:#e2ecfc}.search{border:1px solid var(--rule);background:#fff;border-radius:.8rem;padding:1.15rem 1.3rem}.search label{margin-bottom:.4rem;font-weight:750;display:block}.search-row{align-items:center;gap:.55rem;display:flex}.search input{background:var(--base);width:100%;min-width:0;color:var(--ink);border:1px solid #a4b3c7;border-radius:.5rem;padding:.56rem .7rem}.search button,dialog button{color:var(--ink);background:#fff;border:1px solid #a4b3c7;border-radius:.42rem;padding:.47rem .66rem}.result-count{color:var(--muted);margin:.5rem 0}.chapter{margin-top:2rem}.chapter h2{font-size:clamp(1.65rem,3vw,2.3rem);line-height:1.28}.chapter-summary{color:var(--muted);margin:.25rem 0 1rem}.topic{border:1px solid var(--rule);background:#fff;border-radius:.8rem;margin-bottom:.85rem;padding:clamp(1rem,2.6vw,1.75rem);scroll-margin-top:.5rem}.topic h3{font-size:1.35rem;line-height:1.4}.path{color:var(--accent);margin:.3rem 0 .85rem;font-size:.9375rem;font-weight:650}.topic-content.illustrated{grid-template-columns:minmax(0,1fr) minmax(12rem,.65fr);align-items:start;gap:1rem;display:grid}.topic ol{color:var(--text);margin:0;padding-left:1.45rem}.topic li{margin-bottom:.6rem;padding-left:.24rem}.topic li::marker{color:var(--accent);font-weight:800}.note,.message{color:var(--text);background:#eef4ff;border-radius:.5rem;margin:.75rem 0 0;padding:.7rem .85rem}.message{background:#fff3e9}.message h4{margin-bottom:.25rem}.gallery{grid-template-columns:repeat(auto-fit,minmax(min(100%,5rem),1fr));align-items:start;gap:.5rem;display:grid}.screen{background:#ecf1f9;border:1px solid #bac7d8;border-radius:.65rem;padding:0;overflow:hidden}.screen img{width:100%}.screen:hover{border-color:#174885}dialog{border:1px solid var(--rule);max-width:min(30rem,94vw);max-height:92vh;color:var(--ink);border-radius:.9rem;padding:.8rem}dialog::backdrop{background:#10223ccc}dialog form{justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.6rem;display:flex}dialog button{flex:none}dialog img{object-fit:contain;width:auto;max-height:76vh;margin-inline:auto}.footer{border-top:1px solid var(--rule);color:var(--muted)}.footer .layout{flex-wrap:wrap;justify-content:space-between;gap:1rem;padding-block:1.2rem;display:flex}@media (width<=61rem){.topic-content.illustrated{grid-template-columns:1fr}.gallery{grid-template-columns:repeat(auto-fit,minmax(min(100%,6rem),9rem))}}@media (width<=43rem){.layout{width:min(100% - 2rem,36rem)}.hero-inner{grid-template-columns:1fr;padding-block:2rem .25rem}.buddy{justify-self:center;width:min(18rem,75%);max-height:13rem;margin-top:-.3rem}.body-grid{grid-template-columns:1fr;padding-block:1.25rem 2.5rem}.directory{max-height:none;position:static}.directory ul{grid-template-columns:repeat(auto-fit,minmax(min(100%,9.25rem),1fr));gap:.2rem;display:grid}}@media print{.topbar,.primary,.search,.directory,.footer{display:none}.body-grid{display:block}.hero-inner{grid-template-columns:1fr;min-height:auto}.buddy{display:none}.topic{break-inside:avoid}}
