:root {
  --ink:#1a1c20; --muted:#555d6d; --stroke:#dcdee3; --surface:#fff;
  --fill:#f7f8f9; --brand:#6d50cb; --brand-strong:#50379b; --brand-weak:#f5f3fe;
}
body {background:var(--surface);color:var(--ink);font-family:system-ui,"Malgun Gothic",sans-serif;line-height:1.6}
header,main,footer {width:min(1040px,calc(100% - 40px))}
header {min-height:72px;padding:12px 0;border-color:var(--stroke)}
header .brand {font:800 24px/1 system-ui;letter-spacing:-1.4px}
.brand i {font-style:normal;color:var(--brand)}
nav a {display:inline-flex;align-items:center;min-height:44px;font-size:15px;font-weight:600}
a:hover {color:var(--brand-strong)}
.hero {background:var(--brand-weak);color:var(--ink);border-radius:12px;gap:32px;margin:32px 0;padding:32px 40px;grid-template-columns:1.2fr 1fr}
.hero h1,.guidewrap h1,main>h1 {font-size:clamp(28px,3.3vw,40px);line-height:1.25;letter-spacing:-.045em}
.hero p,.deck,.note,.guidewrap .deck,.gmeta,.gfoot,footer {color:var(--muted)}
.hero svg {max-height:225px}
.button,.gcta,button {background:var(--brand);color:white;border-radius:8px;padding:10px 18px;min-height:44px;font-weight:650}
.button:hover,.gcta:hover,button:hover {background:var(--brand-strong);color:white}
section {margin:36px 0}h2,.guidewrap h2 {font-size:22px;line-height:1.4}
.directory {display:grid;grid-template-columns:1fr 1fr;gap:40px}
.directory h3 {margin:0;padding:0 0 12px;border-bottom:1px solid var(--stroke)}
.entry {display:flex;align-items:center;justify-content:space-between;min-height:64px;padding:12px 4px;border-bottom:1px solid #eeeff1;text-decoration:none;font-weight:650}
.entry small {display:block;font-size:14px;font-weight:400;color:var(--muted)}
.entry::after {content:'›';font-size:22px;color:var(--muted)}
.entry:hover,.gcard:hover,summary:hover {background:var(--fill)}
.guidewrap {color:var(--ink);padding-inline:0}
.gmeta {font-size:14px;letter-spacing:0}
.gitem,.gcard,fieldset {background:var(--surface);border:1px solid var(--stroke);border-radius:8px}
.gcard small,.gitem small {color:var(--brand-strong);font-weight:650}
.gitem blockquote {border-color:#d0c0ff}.note {background:var(--fill);padding:16px;border-radius:8px}
legend {background:var(--brand-weak);color:var(--brand-strong);border-radius:6px}
input,select {min-height:44px;border-color:#b0b3ba;border-radius:8px}
.result {background:var(--brand-weak);color:var(--ink);border:0;border-radius:12px}
.total {color:var(--brand-strong);font-variant-numeric:tabular-nums}
summary {min-height:44px;padding:8px 0}.gfoot,footer,details {border-color:var(--stroke)}
:focus-visible {outline:3px solid #5e98fe!important;outline-offset:2px}
@media(max-width:680px){header{gap:4px 16px;flex-wrap:wrap}.hero{grid-template-columns:1fr;padding:24px;gap:0}.hero svg{display:none}.directory{grid-template-columns:1fr;gap:24px}nav{gap:12px}nav a{font-size:14px}.guidewrap{padding-top:24px}}
@media print{.result,.total{background:white;color:black}}
.directory article>span{display:block;padding:10px 0;border-bottom:1px solid var(--stroke)}.directory small{display:block;color:var(--muted)}
