:root {
  color-scheme: light;
  --ocean-950: #062b3a;
  --ocean-900: #083f52;
  --ocean-800: #0b566e;
  --ocean-700: #126f89;
  --ocean-100: #dff1f3;
  --ocean-050: #eff8f7;
  --orange-600: #dc5b1f;
  --orange-500: #f06b26;
  --orange-100: #ffe6d6;
  --ink: #102d36;
  --muted: #536c73;
  --paper: #fffdf8;
  --line: #aac2c5;
  --shadow: 0 18px 55px rgba(6, 43, 58, 0.12);
  --radius: 18px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(8, 63, 82, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 63, 82, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a { color: var(--ocean-800); text-underline-offset: 0.18em; }
a:hover { color: var(--orange-600); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(240, 107, 38, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--ocean-950);
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.masthead {
  position: relative;
  z-index: 10;
  color: white;
  background: var(--ocean-950);
  border-bottom: 4px solid var(--orange-500);
}
.masthead__top, .nav-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}
.masthead__top {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.brand__mark {
  width: 32px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--ocean-950);
  background: var(--orange-500);
  border: 2px solid white;
  border-radius: 50% 50% 10% 50%;
  font-size: 13px;
}
.status-pill {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  color: #d7edf0;
  font-size: 13px;
  white-space: nowrap;
}
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}
.menu-button {
  display: none;
  min-height: 44px;
  padding: 8px 12px;
  color: white;
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 10px;
  font: inherit;
}
.site-nav {
  display: flex;
  align-items: stretch;
  gap: 2px;
  width: 100%;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 7px 13px;
  color: #e7f3f4;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: white;
  border-bottom-color: var(--orange-500);
  background: rgba(255,255,255,.06);
}

.page-shell {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 18px 0 8px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumb a { color: var(--muted); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(230px, .65fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: stretch;
  padding: clamp(34px, 6vw, 78px) 0 clamp(32px, 5vw, 62px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 5% 18px 38%;
  height: 2px;
  background: linear-gradient(90deg, var(--orange-500), transparent);
}
.hero__copy { min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--orange-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; }
h1 {
  margin: 0;
  color: var(--ocean-950);
  font-family: Georgia, "Songti SC", "SimSun", serif;
  font-size: clamp(38px, 7vw, 88px);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.hero:not(.hero--home) h1 { font-size: clamp(34px, 5.2vw, 64px); }
.hero__lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #334f58;
  font-size: clamp(17px, 2vw, 21px);
}
.poster {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 280px;
  padding: 22px;
  color: white;
  background: var(--ocean-900);
  border: 2px solid var(--ocean-950);
  border-radius: 4px 30px 4px 30px;
  box-shadow: var(--shadow);
}
.poster::before {
  content: "";
  position: absolute;
  width: 78px;
  aspect-ratio: 1;
  right: -10px;
  top: -16px;
  background: var(--orange-500);
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: .82;
}
.poster__index { color: #ffd8c1; font-size: 13px; letter-spacing: .16em; }
.poster__statement { position: relative; margin: 50px 0 0; font: 700 clamp(24px, 3vw, 38px)/1.15 Georgia, "Songti SC", serif; }
.poster__note { margin: 22px 0 0; color: #c7e3e7; font-size: 14px; }

.content-layout {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding-bottom: 80px;
}
.section-rail { min-width: 0; }
.section-rail__inner {
  position: sticky;
  top: 18px;
  padding: 18px 0;
  border-top: 3px solid var(--ocean-900);
}
.section-rail strong { display: block; margin-bottom: 10px; font-size: 13px; letter-spacing: .1em; }
.section-rail a {
  display: block;
  padding: 7px 0 7px 13px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  font-size: 14px;
  text-decoration: none;
}
.section-rail a:hover { color: var(--orange-600); border-left-color: var(--orange-500); }
.copy-button, .action-button {
  min-height: 44px;
  margin-top: 14px;
  padding: 9px 14px;
  color: white;
  background: var(--ocean-900);
  border: 0;
  border-radius: 10px;
  font: 700 14px/1.2 inherit;
  cursor: pointer;
}
.copy-button:hover, .action-button:hover { background: var(--orange-600); }

.prose { min-width: 0; }
.prose > section {
  padding: clamp(28px, 5vw, 52px) 0;
  border-top: 1px solid var(--line);
}
.prose > section:first-child { border-top: 3px solid var(--orange-500); }
.prose h2 {
  margin: 0 0 20px;
  color: var(--ocean-950);
  font: 700 clamp(27px, 3.8vw, 42px)/1.2 Georgia, "Songti SC", serif;
}
.prose h3 { margin: 0 0 9px; color: var(--ocean-900); font-size: 19px; }
.prose p { max-width: 76ch; }
.standfirst { color: var(--ocean-800); font-size: 19px; }

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.editorial-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.note-card {
  position: relative;
  min-width: 0;
  padding: 22px;
  background: rgba(255,255,255,.77);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ocean-800);
  border-radius: 0 0 var(--radius) var(--radius);
}
.note-card--orange { border-top-color: var(--orange-500); }
.note-card__number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  margin-bottom: 16px;
  color: white;
  background: var(--orange-600);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}
.note-card p:last-child { margin-bottom: 0; }
.note-card a { overflow-wrap: anywhere; }

.step-list { display: grid; gap: 14px; padding: 0; list-style: none; counter-reset: steps; }
.step-list li {
  position: relative;
  padding: 18px 18px 18px 66px;
  background: var(--ocean-050);
  border: 1px solid var(--line);
  border-radius: 14px;
  counter-increment: steps;
}
.step-list li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 17px;
  top: 17px;
  color: var(--orange-600);
  font-weight: 900;
}
.step-list h3 { margin: 0 0 4px; }
.step-list p { margin: 0; }

.callout {
  padding: 20px 22px;
  background: var(--orange-100);
  border-left: 5px solid var(--orange-600);
  border-radius: 0 14px 14px 0;
}
.callout--ocean { background: var(--ocean-100); border-left-color: var(--ocean-800); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 10px;
  color: var(--ocean-800);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
}
.link-list { display: grid; gap: 12px; padding-left: 1.2em; }
.link-list li::marker { color: var(--orange-600); }

.tool-panel {
  padding: clamp(20px, 4vw, 34px);
  background: var(--ocean-950);
  color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tool-panel h3 { color: white; }
.tool-panel label { display: block; margin: 0 0 8px; font-weight: 700; }
.tool-panel input[type="url"], .tool-panel input[type="text"], .tool-panel textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: white;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
}
.tool-panel textarea { min-height: 110px; resize: vertical; }
.tool-result { min-height: 54px; margin-top: 16px; padding: 13px; color: var(--ink); background: #e8f6f5; border-radius: 10px; overflow-wrap: anywhere; }
.check-grid { display: grid; gap: 10px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; }
.check-row input { margin-top: 5px; inline-size: 20px; block-size: 20px; flex: 0 0 auto; }
.blank-template { display: grid; gap: 10px; }
.blank-line { min-height: 42px; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.55); }

.faq details { padding: 17px 0; border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; color: var(--ocean-900); font-weight: 800; }
.faq details p { margin-bottom: 0; }

.site-footer { color: #d7e9ec; background: var(--ocean-950); }
.footer-grid {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
  padding: 42px 0 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 32px;
}
.footer-grid p { max-width: 70ch; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: 8px 16px; }
.footer-links a { color: #d7e9ec; }
.footer-bottom {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255,255,255,.18);
  color: #aac9ce;
  font-size: 13px;
}
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .editorial-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: 1fr; gap: 20px; }
  .section-rail__inner { position: static; display: flex; flex-wrap: wrap; gap: 4px 13px; border-bottom: 1px solid var(--line); }
  .section-rail strong { width: 100%; }
  .section-rail a { display: inline-block; padding: 3px 10px; border-left: 0; border-bottom: 1px solid var(--line); }
  .copy-button { margin: 0; }
}

@media (max-width: 720px) {
  .masthead__top { min-height: 64px; }
  .status-pill { display: none; }
  .nav-wrap { display: block; padding-bottom: 8px; }
  .menu-button { display: inline-flex; align-items: center; margin: 4px 0; }
  .site-nav { flex-wrap: wrap; }
  .site-nav a { width: 50%; border: 1px solid rgba(255,255,255,.12); }
  html.js .site-nav { display: none; }
  html.js .site-nav.is-open { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero::after { display: none; }
  .poster { min-height: 220px; }
  .poster__statement { margin-top: 30px; }
  .editorial-grid, .editorial-grid--three { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .page-shell, .masthead__top, .nav-wrap, .footer-grid, .footer-bottom { width: min(100% - 24px, var(--max)); }
  .brand { font-size: 14px; }
  .brand__mark { width: 29px; }
  .site-nav a { width: 100%; }
  .hero { padding-top: 26px; }
  h1 { font-size: 36px; }
  .note-card { padding: 18px; }
  .step-list li { padding-left: 54px; }
  .step-list li::before { left: 13px; }
}

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

@media print {
  .masthead, .section-rail, .site-footer, .copy-button, .action-button { display: none !important; }
  .page-shell { width: 100%; }
  .content-layout { display: block; }
  body { background: white; color: black; }
  a { color: black; text-decoration: none; }
}
