:root {
  --ink: #07161b;
  --ink-2: #0d242b;
  --ink-3: #15343d;
  --cyan: #42e8dc;
  --cyan-soft: #b9fff9;
  --paper: #edf8f5;
  --paper-2: #dcebe8;
  --muted: #6f8788;
  --line: rgba(66, 232, 220, 0.26);
  --line-dark: rgba(7, 22, 27, 0.16);
  --warning: #ffcb6b;
  --shadow: 0 22px 64px rgba(1, 13, 16, 0.18);
  --radius: 20px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: #087f79; }
button, input, textarea { font: inherit; }
button, .button { min-height: 44px; }
img, svg, video, canvas { max-width: 100%; height: auto; }
p, li, a, h1, h2, h3, code { overflow-wrap: anywhere; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--cyan); color: var(--ink); padding: 10px 16px; border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; }

.site-header { position: relative; z-index: 20; color: var(--paper); background: var(--ink); border-bottom: 1px solid var(--line); }
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; letter-spacing: .04em; }
.brand span { display: grid; place-items: center; width: 42px; aspect-ratio: 1; border: 1px solid var(--cyan); color: var(--cyan); font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; clip-path: polygon(0 0, 82% 0, 100% 18%, 100% 100%, 0 100%); }
.brand strong { font-size: 15px; }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 999px; color: var(--cyan-soft); background: transparent; padding: 8px 16px; cursor: pointer; }
.tab-nav { border-top: 1px solid rgba(255,255,255,.06); }
.tab-track { display: flex; gap: 4px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.tab-track a { flex: 0 0 auto; min-height: 48px; display: inline-flex; align-items: center; padding: 0 16px; color: #c5dad8; text-decoration: none; border-bottom: 3px solid transparent; font-size: 14px; }
.tab-track a:hover, .tab-track a:focus-visible { color: var(--cyan); border-color: var(--cyan); background: rgba(66, 232, 220, .06); }

main { min-height: 60vh; }
.eyebrow { margin: 0 0 14px; color: #087f79; font: 700 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow, .evidence-band .eyebrow, .article-aside .eyebrow { color: var(--cyan); }
h1, h2, h3 { margin: 0; line-height: 1.16; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 6vw, 5.8rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.65rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.lede, .hero-lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: #43595a; max-width: 820px; }
.page-intro { padding-block: clamp(64px, 9vw, 120px) clamp(44px, 6vw, 78px); }
.page-intro h1 { max-width: 950px; font-size: clamp(2.2rem, 5vw, 4.8rem); }
.page-intro .lede { margin-top: 24px; }
.status-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.status-strip span { border: 1px solid var(--line-dark); border-radius: 999px; padding: 5px 11px; color: #53696a; font-size: 12px; }

.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr); min-height: 710px; padding-block: 58px; }
.poster-copy { position: relative; z-index: 2; align-self: center; padding: clamp(26px, 5vw, 76px); margin-right: -42px; color: var(--paper); background: var(--ink); box-shadow: var(--shadow); clip-path: polygon(0 0, 93% 0, 100% 8%, 100% 100%, 0 100%); }
.poster-copy::after { content: ""; position: absolute; width: 190px; height: 190px; right: 8%; top: 8%; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 28px rgba(66,232,220,.025), 0 0 0 58px rgba(66,232,220,.018); pointer-events: none; }
.poster-copy h1 { position: relative; max-width: 800px; color: white; }
.hero-lead { position: relative; max-width: 720px; margin-top: 28px; color: #bdd1d0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; }
.button.primary { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.button.ghost { background: transparent; color: inherit; }
.poster-copy .button.ghost { color: var(--cyan-soft); border-color: var(--line); }
.hero-note { margin: 22px 0 0; color: #86a3a3; font-size: 13px; }
.poster-board { align-self: stretch; padding: 44px 34px 34px 74px; background: #d7e8e4; border: 1px solid var(--line-dark); box-shadow: var(--shadow); }
.board-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); color: #53696a; font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.mini-timeline { list-style: none; padding: 18px 0 0; margin: 0; }
.mini-timeline li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; position: relative; padding: 8px 0 16px; }
.mini-timeline li::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: -3px; width: 1px; background: #9db7b3; }
.mini-timeline li:last-child::before { display: none; }
.mini-timeline li > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--cyan); font: 700 11px/1 monospace; }
.mini-heading { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 800; line-height: 1.2; }
.mini-timeline p { margin: 5px 0 0; color: #496061; font-size: 14px; line-height: 1.55; }

.section-block { padding-block: clamp(48px, 8vw, 104px); }
.section-heading { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr); gap: 28px; align-items: end; margin-bottom: 34px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.split-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 7vw, 92px); }
.split-copy > p, .split-copy > div > p { color: #3e5556; }
.two-column-intro { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 42px; align-items: start; }

.file-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.file-card { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 20px; min-height: 214px; padding: 26px; background: rgba(255,255,255,.58); border: 1px solid var(--line-dark); border-radius: 3px var(--radius) var(--radius) var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
.file-card:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(5,34,39,.08); }
.file-no { display: grid; place-items: center; align-self: start; width: 52px; height: 52px; border: 1px solid var(--ink); color: var(--ink); font: 700 14px/1 monospace; }
.file-card h2 { font-size: clamp(1.15rem, 2vw, 1.55rem); }
.file-card h2 a { text-decoration: none; }
.file-card p { margin-top: 14px; color: #506666; font-size: 15px; }
.text-link { color: #087f79; font-size: 13px; font-weight: 700; }
.file-grid.compact .file-card { min-height: 190px; }

.evidence-band { padding-block: clamp(62px, 9vw, 116px); background: var(--ink); color: var(--paper); }
.evidence-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); gap: 54px; align-items: start; }
.evidence-grid > div > p:not(.eyebrow) { margin-top: 24px; color: #b8cecc; }
.rule-card { padding: 28px; border: 1px solid var(--line); background: rgba(66,232,220,.05); }
.section-block .rule-card { color: var(--ink); border-color: var(--line-dark); background: white; }
.rule-card ul { padding-left: 1.2em; margin-bottom: 0; }
.rule-card li + li { margin-top: 8px; }

.faq details { border-top: 1px solid var(--line-dark); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-dark); }
.faq summary { cursor: pointer; font-weight: 750; }
.faq details p { max-width: 820px; margin: 14px 0 0; color: #4a6061; }

.article-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); gap: clamp(36px, 7vw, 86px); padding-bottom: 100px; align-items: start; }
.article-main > section { padding-block: 46px; border-top: 1px solid var(--line-dark); }
.article-main > section h2 { margin-bottom: 22px; }
.article-main > section > p { color: #3e5556; }
.article-main h3 { margin-bottom: 8px; }
.article-timeline { list-style: none; padding: 0; margin: 26px 0; }
.article-timeline li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px; position: relative; padding-bottom: 28px; }
.article-timeline li::before { content: ""; position: absolute; left: 22px; top: 40px; bottom: 5px; width: 1px; background: #9bb2af; }
.article-timeline li:last-child::before { display: none; }
.article-timeline li > span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; font: 700 12px/1 monospace; }
.article-timeline p { color: #506666; font-size: 15px; }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.step-card { padding: 22px; color: var(--paper); background: var(--ink-2); border-top: 3px solid var(--cyan); }
.step-card > span { color: var(--cyan); font: 700 11px/1 monospace; }
.step-card h3 { margin-top: 18px; }
.step-card p { margin-top: 12px; color: #bdd0cf; font-size: 14px; }
.check-list { columns: 2; gap: 34px; padding-left: 1.2em; }
.article-aside { position: sticky; top: 20px; padding: 28px; color: var(--paper); background: var(--ink); border-top: 4px solid var(--cyan); }
.article-aside h2 { font-size: 1.35rem; margin-bottom: 18px; }
.article-aside p { color: #b7cbca; font-size: 14px; }
.article-aside a:not(.button) { color: var(--cyan-soft); }
.article-aside .button { margin-top: 10px; color: var(--cyan-soft); border-color: var(--line); }
.related-links { display: grid; gap: 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { display: inline-flex; align-items: center; min-height: 38px; padding: 5px 12px; border: 1px solid var(--line-dark); border-radius: 999px; color: #315758; text-decoration: none; font-size: 13px; }

.editor-profile { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 34px; align-items: start; }
.editor-badge { display: grid; place-items: center; width: 130px; aspect-ratio: 1; color: var(--cyan); background: var(--ink); border-radius: 50% 50% 10% 50%; font: 700 24px/1 monospace; }
.tool-panel { margin-block: 12px 80px; padding: clamp(26px, 5vw, 58px); color: var(--paper); background: var(--ink); border-radius: 3px var(--radius) var(--radius) var(--radius); box-shadow: var(--shadow); }
.tool-panel h2 { margin-bottom: 12px; }
.tool-note { color: #a9c1bf; }
.check-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0; }
.check-options label { display: flex; align-items: flex-start; gap: 12px; min-height: 58px; padding: 14px; border: 1px solid var(--line); background: rgba(66,232,220,.05); }
.check-options input { flex: 0 0 auto; width: 22px; height: 22px; accent-color: var(--cyan); }
.tool-panel output { display: block; color: var(--cyan); font-weight: 700; }
.field-label { display: block; margin: 26px 0 8px; color: var(--cyan-soft); font-weight: 700; }
.url-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.url-form input, .tool-panel textarea { width: 100%; min-width: 0; color: var(--ink); background: white; border: 2px solid transparent; border-radius: 8px; padding: 12px 14px; }
.url-form input:focus, .tool-panel textarea:focus { outline: none; border-color: var(--cyan); }
.url-form button, .tool-panel > button { border: 0; border-radius: 999px; background: var(--cyan); color: var(--ink); padding: 10px 18px; font-weight: 800; cursor: pointer; }
.url-output { margin-top: 18px; padding: 18px; border-left: 3px solid var(--cyan); background: rgba(255,255,255,.06); color: #d9e8e6; }
.tool-panel textarea { display: block; resize: vertical; margin-bottom: 16px; line-height: 1.55; }

.release-status { display: grid; grid-template-columns: minmax(0, 3fr) minmax(270px, 2fr); gap: 42px; }
.status-panel { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; padding: 28px; color: var(--paper); background: var(--ink); }
.status-panel span { color: #a7bfbd; }
.status-panel strong { color: var(--warning); }
.prose-steps li + li { margin-top: 13px; }
.not-found { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr); gap: 44px; align-items: center; }
.error-code { font: 800 clamp(6rem, 20vw, 14rem)/.8 ui-monospace, SFMono-Regular, Menlo, monospace; color: transparent; -webkit-text-stroke: 2px var(--ink); }

.site-footer { color: var(--paper); background: #041014; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-block: 68px; }
.footer-grid p { color: #9fb8b6; font-size: 14px; }
.footer-mark, .footer-label { color: var(--cyan) !important; font: 700 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.footer-links { display: grid; gap: 7px; }
.footer-links a { color: #c6d8d6; font-size: 14px; }
.legal-line { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; color: #718b89; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; }
code { padding: .12em .35em; border: 1px solid var(--line-dark); border-radius: 5px; background: rgba(255,255,255,.48); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .poster-copy { margin-right: 0; clip-path: none; }
  .poster-board { padding: 34px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .step-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 28px, 680px); }
  body { font-size: 16px; }
  .header-row { min-height: 68px; }
  .nav-toggle { display: inline-flex; }
  .js .tab-nav:not(.is-open) { display: none; }
  .tab-track { padding-bottom: 2px; }
  .hero { width: 100%; padding: 0; }
  .poster-copy { padding: 48px 22px; }
  .poster-copy::after { width: 110px; height: 110px; right: 2%; }
  .poster-board { padding: 28px 18px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { flex: 1 1 180px; }
  .page-intro { padding-top: 54px; }
  .section-heading, .split-copy, .file-grid, .two-column-intro, .evidence-grid, .editor-profile, .release-status, .not-found { grid-template-columns: 1fr; }
  .section-heading { gap: 6px; }
  .file-card { grid-template-columns: 44px minmax(0, 1fr); padding: 20px; }
  .file-no { width: 42px; height: 42px; }
  .check-options { grid-template-columns: 1fr; }
  .url-form { grid-template-columns: 1fr; }
  .url-form button { width: 100%; }
  .check-list { columns: 1; }
  .editor-badge { width: 96px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .legal-line { flex-direction: column; }
}

@media (max-width: 390px) {
  :root { --shell: calc(100% - 24px); }
  .brand strong { font-size: 13px; }
  .brand span { width: 38px; }
  .nav-toggle { padding-inline: 12px; font-size: 13px; }
  .poster-copy { padding-inline: 18px; }
  .file-card { grid-template-columns: 1fr; }
  .status-strip span { font-size: 11px; }
}

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