:root {
  color-scheme: light;
  --page: #edf3f7;
  --surface: #ffffff;
  --surface-soft: #f5f9fc;
  --ink: #17324b;
  --body: #344d63;
  --muted: #62788b;
  --line: #d7e2eb;
  --navy: #0d2c4e;
  --navy-hover: #164b75;
  --cyan: #087f98;
  --cyan-soft: #e5f4f7;
  --sans: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-underline-offset: .2em; }
a:hover { color: #075c70; }
a:focus-visible {
  outline: 3px solid #00a6bd;
  outline-offset: 4px;
  border-radius: 3px;
}
.skip-link {
  position: absolute;
  z-index: 10;
  top: .5rem;
  left: .5rem;
  transform: translateY(-150%);
  padding: .65rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 5px;
}
.skip-link:focus { transform: translateY(0); color: #fff; }
.site-header {
  min-height: 76px;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid #244664;
  background: var(--navy);
  color: #fff;
}
.brand {
  display: inline-flex;
  gap: .7rem;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -.025em;
}
.brand:hover { color: #fff; }
.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  font-size: .9rem;
}
.header-nav > a {
  color: #e9f2f8;
  text-decoration: none;
  font-weight: 600;
}
.header-nav > a:hover { color: #fff; text-decoration: underline; }
.header-nav > a:nth-child(2) {
  padding: .55rem .95rem;
  border-radius: 6px;
  color: var(--navy);
  background: #fff;
}
.header-nav > a:nth-child(2):hover { background: #eaf4f8; }
.language-switch {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: #a9becd;
  font-size: .78rem;
  letter-spacing: .08em;
}
.language-switch a { color: #d7e6ef; text-decoration: none; }
.language-switch a[aria-current="page"] { color: #fff; font-weight: 800; }
.page-shell { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 3.5rem); }
.intro {
  max-width: none;
  margin: 2.2rem 0 2.5rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cyan);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(22, 52, 76, .06);
}
.eyebrow {
  margin: 0 0 .55rem;
  color: var(--cyan);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 850px;
  margin-bottom: .8rem;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.035em;
}
.lead {
  max-width: 850px;
  margin-bottom: 1rem;
  color: var(--body);
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  line-height: 1.72;
}
.updated { margin-bottom: 0; color: var(--muted); font-size: .84rem; }
.updated span { margin-right: .35rem; color: var(--ink); font-weight: 700; }
.reading-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: start;
  padding: 0 0 2rem;
}
.contents {
  position: sticky;
  top: 1.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(22, 52, 76, .045);
}
.contents h2 {
  margin-bottom: .85rem;
  color: var(--navy);
  font-size: .78rem;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contents ol { margin: 0; padding-left: 1.15rem; }
.contents li { margin: .48rem 0; padding-left: .15rem; color: var(--cyan); font-size: .88rem; line-height: 1.45; }
.contents a { color: var(--body); text-decoration: none; }
.contents a:hover { color: var(--cyan); text-decoration: underline; }
.faq-content {
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(22, 52, 76, .06);
}
.faq-group { margin-bottom: 3rem; scroll-margin-top: 1.5rem; }
.faq-group > h2, .sources h2 {
  margin-bottom: 1.2rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.faq-item { padding: 1.2rem 0 1.15rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.faq-item h3 { margin-bottom: .65rem; color: var(--navy); font-size: 1.05rem; line-height: 1.48; font-weight: 700; }
.question-anchor { color: var(--navy); text-decoration: none; }
.question-anchor:hover { color: var(--cyan); text-decoration: underline; }
.faq-item p, .sources > p { margin-bottom: .8rem; color: var(--body); line-height: 1.78; }
.faq-item p:last-child { margin-bottom: 0; }
.faq-item ul, .sources ul { padding-left: 1.25rem; color: var(--body); }
.faq-item li { margin: .45rem 0; }
.faq-item strong { color: var(--ink); }
.sources { padding-top: .4rem; margin-bottom: 2rem; scroll-margin-top: 1rem; }
.sources li { margin: .55rem 0; }
.safety-note {
  margin: 2rem 0 .5rem;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--cyan);
  border-radius: 5px;
  background: var(--cyan-soft);
  color: #284b5b;
  font-size: .92rem;
}
.safety-note p { margin: 0; }
.page-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  padding: 1.4rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
.page-footer a { color: var(--cyan); text-decoration: none; font-weight: 650; }
.page-footer a:hover { text-decoration: underline; }
.footer-language { display: flex; gap: .55rem; margin-left: auto; color: #8799a8; }
@media (max-width: 760px) {
  .site-header { min-height: 66px; gap: .75rem; padding-inline: 1.1rem; }
  .header-nav { gap: .8rem; font-size: .82rem; }
  .header-nav > a:first-child { display: none; }
  .header-nav > a:nth-child(2) { padding: .45rem .65rem; }
  .intro { margin-top: 1.2rem; margin-bottom: 1.5rem; padding: 1.4rem; }
  .reading-layout { grid-template-columns: 1fr; gap: 1rem; }
  .contents { position: static; }
  .contents ol { columns: 2; column-gap: 1.5rem; }
  .contents li { break-inside: avoid; }
  .faq-content { padding: 1.25rem; }
  .faq-group { margin-bottom: 2.4rem; }
}
@media (max-width: 420px) {
  .brand { gap: .45rem; font-size: .95rem; }
  .brand-logo { width: 32px; height: 32px; }
  .language-switch { gap: .25rem; }
  .contents ol { columns: 1; }
  .footer-language { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
