:root {
  --ink: #183153;
  --ink-2: #24476f;
  --muted: #56657a;
  --bg: #edf3fa;
  --paper: #ffffff;
  --line: #cbd8e7;
  --line-dark: #9fb3ca;
  --blue-soft: #d9e9ff;
  --blue-pale: #f4f8fd;
  --orange: #f57c40;
  --orange-soft: #fff0e8;
  --green: #137b4f;
  --shadow: 0 20px 55px rgba(24, 49, 83, 0.12);
  --radius: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(rgba(80, 112, 150, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 112, 150, .055) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

a { color: var(--ink-2); text-underline-offset: .2em; }
a:hover { color: #0f5b99; }

button, input { font: inherit; }

button, a, summary, input { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid #ffb26d;
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  inset: 8px auto auto 8px;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.skip-link:focus { transform: none; }

.status-banner {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: .7rem max(1rem, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: #fff;
  font-size: .925rem;
}

.status-banner p { margin: 0; }
.status-banner a { color: #fff; }

.banner-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.08);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.site-header {
  position: sticky;
  z-index: 4;
  top: 0;
  border-bottom: 1px solid rgba(142, 165, 190, .6);
  background: rgba(237, 243, 250, .94);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1180px, calc(100% - 2rem));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 820;
  letter-spacing: -.025em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  box-shadow: inset -5px -5px 0 rgba(255,255,255,.07);
}

.brand-mark::before {
  content: "W";
  font-size: 1.05rem;
  font-weight: 900;
}

.brand small {
  display: block;
  margin-top: -.18rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 680;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.main-nav { display: flex; align-items: center; gap: .35rem; }
.main-nav a, .nav-more summary {
  padding: .55rem .72rem;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 680;
  white-space: nowrap;
}

.main-nav a:hover, .main-nav a[aria-current="page"], .nav-more summary:hover {
  background: var(--paper);
}

.nav-more { position: relative; }
.nav-more summary { list-style: none; cursor: pointer; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: " ↓"; font-size: .8em; }
.nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + .65rem);
  width: 250px;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.nav-panel a { display: block; }

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: .87rem;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: #8b9aae; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .8rem;
  color: #8b3b17;
  font-size: .79rem;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--orange); }

.hero { padding: clamp(2.1rem, 5vw, 4.6rem) 0 1.45rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr); gap: 2.4rem; align-items: end; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.12;
  text-wrap: balance;
}

h1 { max-width: 880px; font-size: clamp(2.35rem, 6.2vw, 5.3rem); letter-spacing: -.065em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.65rem); letter-spacing: -.04em; }
h3 { font-size: 1.18rem; letter-spacing: -.02em; }

.hero-copy > p:not(.eyebrow) { max-width: 760px; margin: 1.15rem 0 0; color: var(--muted); font-size: clamp(1.04rem, 2vw, 1.22rem); }
.hero-aside {
  padding: 1.3rem 1.35rem;
  border-left: 5px solid var(--orange);
  border-radius: 0 16px 16px 0;
  background: rgba(255,255,255,.62);
}
.hero-aside strong { display: block; margin-bottom: .2rem; }
.hero-aside p { margin: 0; color: var(--muted); }

.workspace {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 1.2rem;
  align-items: start;
  padding: 1rem 0 clamp(3rem, 7vw, 6rem);
}

.controls {
  position: sticky;
  top: 92px;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.8);
  box-shadow: 0 8px 28px rgba(24,49,83,.07);
}

.panel-label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.panel-label span { color: var(--muted); font-size: .82rem; }

.control-group { margin: 0; padding: 1rem 0; border: 0; border-top: 1px solid var(--line); }
.control-group legend { width: 100%; padding: 0 0 .7rem; font-weight: 820; }
.control-help { margin: -.35rem 0 .7rem; color: var(--muted); font-size: .86rem; }
.choice-list { display: grid; gap: .55rem; }
.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  min-height: 46px;
  padding: .7rem .75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.choice:hover { border-color: var(--line-dark); }
.choice:has(input:checked) { border-color: #78a9df; background: var(--blue-soft); box-shadow: inset 0 0 0 1px #78a9df; }
.choice input { width: 19px; height: 19px; margin: .15rem 0 0; accent-color: var(--ink); }
.choice strong { display: block; line-height: 1.3; }
.choice small { display: block; margin-top: .16rem; color: var(--muted); line-height: 1.4; }
.choice:has(input:checked) strong::after { content: "  ✓"; color: var(--ink); }

.choice-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .5rem; }
.choice-row.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.choice-row .choice { align-items: center; min-height: 44px; padding: .55rem .6rem; font-size: .88rem; }

.reset-button {
  width: 100%;
  margin-top: .45rem;
  padding: .68rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 740;
}

.paper-shell { position: relative; }
.paper-shell::before {
  content: "";
  position: absolute;
  inset: 12px -9px -10px 14px;
  border: 1px solid rgba(111,138,170,.35);
  border-radius: 20px;
  background: rgba(255,255,255,.45);
  transform: rotate(.35deg);
}

.paper {
  position: relative;
  min-height: 760px;
  padding: clamp(1.4rem, 4vw, 3.7rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.paper-header {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.35rem;
  border-bottom: 2px solid var(--ink);
}
.paper-kicker { margin: 0 0 .35rem; color: var(--orange); font-size: .78rem; font-weight: 840; letter-spacing: .11em; text-transform: uppercase; }
.paper-title { font-size: clamp(1.7rem, 4vw, 3.25rem); }
.paper-date { min-width: 118px; text-align: right; color: var(--muted); font-size: .82rem; }
.paper-summary { margin: 1.15rem 0 0; color: var(--muted); }

.paper-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.1rem 0 0; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 46px;
  padding: .72rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 790;
  cursor: pointer;
}
.button:hover { color: #fff; background: #24476f; }
.button.secondary { background: #fff; color: var(--ink); }
.button.secondary:hover { background: var(--blue-pale); color: var(--ink); }
.button[disabled] { opacity: .48; cursor: not-allowed; }
.button.external::after { content: "↗"; font-size: 1.05em; }

.memo-sections { display: grid; gap: 1.65rem; margin-top: 1.7rem; }
.memo-section { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: .9rem; }
.memo-index { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--orange-soft); color: #8b3b17; font-weight: 900; }
.memo-section h3 { margin: .25rem 0 .55rem; }
.memo-section ol, .memo-section ul { margin: 0; padding-left: 1.25rem; }
.memo-section li + li { margin-top: .45rem; }
.memo-section p { margin: .4rem 0 0; color: var(--muted); }
.system-note { margin-top: .75rem !important; padding: .65rem .75rem; border-left: 4px solid var(--orange); background: var(--orange-soft); color: #67351e !important; font-size: .9rem; }

.empty-state { margin: 2rem 0 0; padding: 2rem 1rem; border: 1px dashed var(--line-dark); border-radius: 14px; text-align: center; background: var(--blue-pale); }
.empty-state p { margin: .4rem auto 0; max-width: 460px; color: var(--muted); }

.paper-foot { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }

.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section + .section { border-top: 1px solid rgba(159,179,202,.5); }
.section-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.65fr); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-head p { margin: 0; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.card {
  min-height: 100%;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.84);
}
.card .num { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 1rem; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 880; }
.card p { margin: .6rem 0 0; color: var(--muted); }
.card a { display: inline-block; margin-top: 1rem; font-weight: 760; }

.safety-strip { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 1rem; align-items: center; padding: 1.15rem; border: 1px solid #e7b38f; border-radius: var(--radius); background: #fff4ec; }
.safety-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--orange); color: #fff; font-weight: 900; }
.safety-strip h3 { margin-bottom: .2rem; }
.safety-strip p { margin: 0; color: #6e4736; }

.faq { display: grid; gap: .7rem; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.86); }
.faq summary { padding: 1rem 1.15rem; cursor: pointer; font-weight: 790; }
.faq .answer { padding: 0 1.15rem 1.1rem; color: var(--muted); }
.faq .answer p { margin: 0; }

.article { padding: clamp(2.2rem, 5vw, 4.8rem) 0 clamp(4rem, 8vw, 7rem); }
.article-header { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(260px,.55fr); gap: 2rem; align-items: end; margin-bottom: 2.2rem; }
.article h1 { max-width: 930px; font-size: clamp(2.35rem, 6vw, 4.9rem); }
.lede { margin: 1rem 0 0; max-width: 780px; color: var(--muted); font-size: 1.15rem; }
.quick-answer { padding: 1.2rem; border: 1px solid var(--line); border-top: 5px solid var(--orange); border-radius: 15px; background: var(--paper); }
.quick-answer strong { display: block; margin-bottom: .2rem; }
.quick-answer p { margin: 0; color: var(--muted); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.article-body { min-width: 0; }
.article-body > * + * { margin-top: 1.25rem; }
.article-body h2 { margin-top: 2.7rem; }
.article-body h3 { margin-top: 1.8rem; }
.article-body p, .article-body li { color: #334b67; }
.article-body ul, .article-body ol { padding-left: 1.35rem; }
.article-body li + li { margin-top: .55rem; }
.article-body .button { color: #fff; }

.step-list { display: grid; gap: .8rem; padding: 0 !important; list-style: none; counter-reset: steps; }
.step-list li { position: relative; min-height: 64px; padding: .85rem 1rem .85rem 4rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.step-list li::before { counter-increment: steps; content: counter(steps); position: absolute; left: .9rem; top: .8rem; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 900; }

.callout { padding: 1rem 1.1rem; border-left: 5px solid var(--orange); border-radius: 0 14px 14px 0; background: var(--orange-soft); color: #603724; }
.callout p { margin: 0; color: inherit; }
.note { padding: .9rem 1rem; border: 1px solid #aac6e5; border-radius: 13px; background: var(--blue-pale); }
.note p { margin: 0; }

.article-nav { position: sticky; top: 98px; padding: 1rem; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.84); }
.article-nav strong { display: block; margin-bottom: .55rem; }
.article-nav ul { margin: 0; padding: 0; list-style: none; }
.article-nav li + li { margin-top: .35rem; }
.article-nav a { font-size: .91rem; }

.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; margin-top: 1rem; }
.related a { padding: 1rem; border: 1px solid var(--line); border-radius: 13px; background: #fff; text-decoration: none; font-weight: 740; }
.related a:hover { border-color: var(--line-dark); }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin-top: 1.5rem; }
.data-list { margin: 0; }
.data-list div { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.data-list dt { color: var(--muted); }
.data-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.site-footer { border-top: 1px solid var(--line-dark); background: #dfe9f5; }
.footer-inner { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2.4rem 0; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .7fr .7fr; gap: 2rem; }
.footer-intro p { max-width: 420px; margin: .8rem 0 0; color: var(--muted); }
.footer-links strong { display: block; margin-bottom: .55rem; }
.footer-links a { display: block; width: fit-content; margin: .3rem 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.7rem; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); color: var(--muted); font-size: .85rem; }

@media (max-width: 980px) {
  .header-inner { min-height: 64px; }
  .main-nav > a:nth-of-type(n+4) { display: none; }
  .hero-grid, .section-head, .article-header { grid-template-columns: 1fr; }
  .workspace { grid-template-columns: 1fr; }
  .controls { position: static; }
  .article-layout { grid-template-columns: 1fr; }
  .article-nav { position: static; order: -1; }
  .article-nav ul { display: flex; flex-wrap: wrap; gap: .45rem .8rem; }
  .card-grid, .related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .status-banner { align-items: start; padding-left: 1rem; padding-right: .55rem; }
  .brand small { display: none; }
  .main-nav > a { display: none; }
  .nav-more summary { padding: .6rem; border: 1px solid var(--line-dark); background: #fff; }
  .nav-panel { position: fixed; left: 1rem; right: 1rem; top: 125px; width: auto; max-height: calc(100vh - 145px); overflow: auto; }
  .hero { padding-top: 2.4rem; }
  h1 { font-size: clamp(2.15rem, 12vw, 3.55rem); }
  .workspace { padding-top: .4rem; }
  .paper { min-height: auto; padding: 1.15rem; border-radius: 15px; }
  .paper-shell::before { inset: 7px -4px -6px 7px; }
  .paper-header { grid-template-columns: 1fr; }
  .paper-date { text-align: left; }
  .choice-row, .choice-row.three { grid-template-columns: 1fr; }
  .memo-section { grid-template-columns: 34px minmax(0,1fr); gap: .65rem; }
  .memo-index { width: 32px; height: 32px; border-radius: 9px; }
  .paper-actions .button { width: 100%; }
  .card-grid, .related-grid, .contact-grid { grid-template-columns: 1fr; }
  .safety-strip { grid-template-columns: auto minmax(0,1fr); }
  .safety-strip .button { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.3rem; }
  .footer-bottom { flex-direction: column; }
  .data-list div { grid-template-columns: 1fr; gap: .1rem; }
}

@media (max-width: 380px) {
  .container, .header-inner, .footer-inner { width: min(100% - 1rem, 1180px); }
  .status-banner { font-size: .84rem; }
  .brand { gap: .45rem; }
  .brand-mark { width: 34px; height: 34px; }
  .controls, .card { padding: .9rem; }
  .paper { padding: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .status-banner, .site-header, .breadcrumbs, .hero, .controls, .section, .site-footer, .paper-actions { display: none !important; }
  .container, .workspace { width: 100%; margin: 0; padding: 0; display: block; }
  .paper-shell::before { display: none; }
  .paper { min-height: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .paper-title { font-size: 22pt; }
  .memo-sections { gap: 10mm; }
  .memo-section { break-inside: avoid; }
  a { color: #111; text-decoration: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .82em; overflow-wrap: anywhere; }
}
