:root {
  color-scheme: light;
  --ink: #132033;
  --muted: #637083;
  --line: #dfe6ee;
  --panel: #ffffff;
  --wash: #f4f7fb;
  --blue: #006fe6;
  --blue-dark: #0058ba;
  --navy: #07111f;
  font-family: "Be Vietnam Pro", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--wash); color: var(--ink); line-height: 1.68; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); }
.topbar-inner, .wrap, .footer-inner { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.topbar-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); font-weight: 760; text-decoration: none; letter-spacing: -.02em; }
.brand img { width: auto; height: 28px; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 18px; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 620; text-decoration: none; }
.nav a[aria-current="page"], .nav a:hover { color: var(--blue-dark); }
.hero { padding: 72px 0 46px; }
.eyebrow { margin: 0 0 12px; color: var(--blue-dark); font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -.03em; }
h1 { margin: 0; max-width: 820px; font-size: clamp(38px, 6vw, 64px); }
.lead { max-width: 760px; margin: 20px 0 0; color: var(--muted); font-size: clamp(17px, 2.2vw, 21px); }
.meta { display: inline-flex; margin-top: 22px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 76px; }
.card { display: flex; min-height: 224px; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: 0 10px 35px rgba(27,48,76,.055); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); border-color: #b7cae2; box-shadow: 0 16px 44px rgba(27,48,76,.09); }
.card-num { color: var(--blue); font-size: 13px; font-weight: 780; }
.card h2 { margin: 30px 0 9px; font-size: 23px; }
.card p { margin: 0; color: var(--muted); }
.card .arrow { margin-top: auto; padding-top: 20px; color: var(--blue-dark); font-weight: 700; }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; padding: 48px 0 86px; }
.toc { position: sticky; top: 24px; align-self: start; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.toc strong { display: block; margin-bottom: 10px; font-size: 13px; }
.toc a { display: block; padding: 5px 0; color: var(--muted); font-size: 13px; text-decoration: none; }
.toc a:hover { color: var(--blue-dark); }
.document { padding: clamp(26px, 5vw, 56px); border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: 0 14px 44px rgba(27,48,76,.055); }
.document h1 { font-size: clamp(34px, 5vw, 51px); }
.document h2 { margin: 46px 0 13px; padding-top: 6px; font-size: 25px; }
.document h3 { margin: 28px 0 8px; font-size: 18px; }
.document p, .document li { color: #344256; }
.document ul { padding-left: 22px; }
.notice { margin: 25px 0; padding: 18px 20px; border-left: 4px solid var(--blue); border-radius: 4px 12px 12px 4px; background: #eef6ff; }
.notice p { margin: 0; }
.footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--panel); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0; color: var(--muted); font-size: 13px; }
.footer a { color: inherit; }

@media (max-width: 800px) {
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 190px; }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

@media (max-width: 560px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  .nav { justify-content: flex-start; }
  .hero { padding-top: 48px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
