:root { --forest:#123a32; --forest-deep:#09251f; --sand:#f3ecd9; --paper:#fffaf0; --ink:#15231f; --muted:#5e6a65; --line:#c9c4b4; --rust:#c9562e; --rust-dark:#994024; --lime:#d9ef73; --sky:#8ed8e8; --rail:1180px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.rail { width: min(calc(100% - 44px), var(--rail)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 12px; color: #fff; background: #000; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.fieldbar { position: sticky; top: 0; z-index: 40; background: rgba(255,250,240,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.fieldbar__inner { min-height: 72px; display: flex; align-items: center; gap: 26px; }
.mark { display: flex; align-items: center; gap: 11px; }
.mark img { width: 44px; height: 44px; }
.mark span { display: grid; line-height: 1.05; }
.mark b { font-size: 19px; letter-spacing: -.02em; }
.mark small { margin-top: 5px; color: var(--muted); font: 9px/1.1 Consolas, monospace; letter-spacing: .16em; }
.site-nav { margin-left: auto; display: flex; gap: 3px; }
.site-nav a { padding: 8px 12px; color: var(--muted); font-size: 14px; font-weight: 750; }
.site-nav a:hover, .site-nav .is-current { color: var(--forest); background: #f0ead9; }
.fieldbar__downloads { display: flex; gap: 7px; }
.nav-toggle { display: none; margin-left: auto; padding: 7px 12px; color: var(--forest); background: transparent; border: 1px solid var(--line); font-weight: 800; }
.button { min-height: 42px; padding: 9px 16px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; font-weight: 850; line-height: 1.2; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button--paper { background: #fff; border-color: var(--line); }
.button--rust { color: #fff; background: var(--rust); }
.button--rust:hover { background: var(--rust-dark); }
.button--line { color: #fff; border-color: rgba(255,255,255,.55); }
.button--line-dark { color: var(--forest); border-color: var(--forest); }
.button--large { min-height: 50px; padding: 13px 23px; }

.field-hero { color: #fff; background: var(--forest); overflow: hidden; }
.field-hero__inner { min-height: 646px; padding: 46px 0 30px; display: grid; grid-template-columns: minmax(0,1.02fr) minmax(480px,.98fr); grid-template-areas: "copy media"; align-items: center; gap: 56px; }
.field-hero__copy { grid-area: copy; }
.record-tag { display: flex; align-items: center; gap: 13px; color: #c1d1cb; font: 11px/1 Consolas, monospace; letter-spacing: .09em; }
.record-tag span { padding: 7px 9px; color: var(--forest-deep); background: var(--lime); }
.record-tag b { font-size: 25px; color: #fff; }
.record-tag i { font-style: normal; }
.field-hero h1 { max-width: 650px; margin: 18px 0; font-size: clamp(42px,4.9vw,65px); line-height: 1.04; letter-spacing: -.05em; }
.mobile-break { display: none; }
.hero-lead { max-width: 650px; margin: 0 0 24px; color: #d1ddd8; font-size: 16px; }
.hero-actions { display: flex; gap: 9px; }
.hero-gates { margin: 28px 0 0; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px dotted #80958d; border-bottom: 1px dotted #80958d; }
.hero-gates > div { padding: 12px 10px 12px 0; display: grid; grid-template-columns: 24px 1fr; gap: 7px; }
.hero-gates > div + div { padding-left: 12px; border-left: 1px dotted #80958d; }
.hero-gates dt { color: var(--lime); font: 20px/1.3 Georgia, serif; }
.hero-gates dd { margin: 0; display: grid; }
.hero-gates b { font-size: 12px; }
.hero-gates span { color: #aebfba; font-size: 10px; }
.evidence-board { grid-area: media; min-height: 520px; position: relative; border: 1px solid #6d8880; background: #0b2923; }
.evidence-board::before { content: ""; position: absolute; inset: 42px 0 58px; background-image: radial-gradient(#54766d 1px, transparent 1px); background-size: 18px 18px; opacity: .36; }
.evidence-board__label { min-height: 42px; padding: 0 14px; position: relative; display: flex; align-items: center; justify-content: space-between; color: #c0d0ca; border-bottom: 1px solid #6d8880; font: 10px/1 Consolas, monospace; letter-spacing: .08em; }
.evidence-board__label b { color: var(--lime); }
.evidence { margin: 0; position: absolute; background: var(--paper); border: 1px solid #092019; }
.evidence img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.evidence figcaption { height: 47px; padding: 6px 9px; color: var(--ink); display: grid; line-height: 1.2; }
.evidence figcaption b { font-size: 11px; }
.evidence figcaption span { color: var(--muted); font-size: 9px; }
.evidence--alert { z-index: 2; left: 44px; top: 78px; width: 202px; height: 359px; transform: rotate(-2.3deg); }
.evidence--alert img { height: 312px; }
.evidence--manager { z-index: 3; right: 38px; top: 102px; width: 215px; height: 354px; transform: rotate(2deg); }
.evidence--manager img { height: 307px; }
.evidence-board__condition { height: 58px; padding: 0 14px; position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 14px; color: #b8cbc4; border-top: 1px solid #6d8880; font: 10px/1.3 Consolas, monospace; }
.evidence-board__condition span { color: #10241f; background: var(--rust); padding: 5px 7px; }

.gate-section, .question-section { padding: 76px 0; background: var(--paper); }
.section-heading { margin-bottom: 30px; display: grid; grid-template-columns: 92px 1fr; align-items: end; }
.section-heading > span { color: var(--rust); font: 38px/1 Georgia, serif; }
.section-heading h2 { margin: 0; font-size: 38px; line-height: 1.12; letter-spacing: -.035em; }
.section-heading p, .heading-copy { margin: 5px 0 0; color: var(--muted); }
.gate-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); }
.gate-grid article { min-height: 280px; padding: 25px 20px; position: relative; }
.gate-grid article + article { border-left: 1px solid var(--line); }
.gate-grid article > b { color: #d8d2c2; font: 74px/1 Georgia, serif; }
.gate-grid article > span { display: block; margin-top: 13px; color: var(--rust); font: 10px/1 Consolas, monospace; letter-spacing: .12em; }
.gate-grid h3 { margin: 8px 0; font-size: 18px; }
.gate-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.route-section { padding: 78px 0; color: #fff; background: var(--forest-deep); }
.route-layout { display: grid; grid-template-columns: 310px 1fr; gap: 70px; }
.route-title > span, .risk-title > span, .download-panel span { color: var(--lime); font: 10px/1 Consolas, monospace; letter-spacing: .12em; }
.route-title h2, .risk-title h2 { margin: 13px 0 25px; font-size: 42px; line-height: 1.1; }
.route-title a { color: var(--lime); font-weight: 800; }
.route-title i { font-style: normal; }
.route-list { margin: 0; padding: 0; list-style: none; border-top: 1px dotted #58726a; }
.route-list li { padding: 20px 0; display: grid; grid-template-columns: 86px 1fr; border-bottom: 1px dotted #58726a; }
.route-list > li > b { color: var(--lime); font: 12px/1.5 Consolas, monospace; }
.route-list h3 { margin: 0; font-size: 19px; }
.route-list p { margin: 3px 0 0; color: #b9cbc5; }
.screens-section { padding: 78px 0; color: #fff; background: #1a302a; }
.section-heading--light p { color: #b8c6c1; }
.screen-pair { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #61736d; }
.screen-pair figure { margin: 0; padding: 30px 30px 0; display: grid; grid-template-columns: 230px 1fr; gap: 28px; }
.screen-pair figure + figure { border-left: 1px solid #61736d; }
.screen-pair figure > div { height: 360px; overflow: hidden; background: #07130f; }
.screen-pair img { width: 100%; height: 100%; object-fit: contain; }
.screen-pair figcaption { align-self: end; padding-bottom: 35px; }
.screen-pair figcaption span { color: var(--sky); font: 10px/1 Consolas, monospace; }
.screen-pair h3 { margin: 9px 0; font-size: 21px; line-height: 1.25; }
.screen-pair p { margin: 0; color: #b8c6c1; font-size: 14px; }
.risk-section { padding: 78px 0; background: var(--sand); }
.risk-layout { display: grid; grid-template-columns: 280px 1fr; gap: 70px; }
.risk-title > span { color: var(--rust); }
.risk-notes { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); }
.risk-notes article { padding: 26px 22px; }
.risk-notes article + article { border-left: 1px solid var(--line); }
.risk-notes h3 { margin: 0 0 12px; font-size: 17px; }
.risk-notes p { margin: 0; color: var(--muted); }
.question-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.question-grid details { border-bottom: 1px solid var(--line); }
.question-grid details:nth-child(odd) { border-right: 1px solid var(--line); }
.question-grid summary { padding: 20px; cursor: pointer; font-weight: 800; list-style: none; }
.question-grid summary::after { content: "+"; float: right; color: var(--rust); }
.question-grid details[open] summary::after { content: "−"; }
.question-grid p { margin: 0; padding: 0 20px 20px; color: var(--muted); }
.text-link { margin-top: 24px; display: inline-flex; gap: 8px; color: var(--rust-dark); font-weight: 850; }
.download-panel { padding: 54px 0; background: var(--lime); }
.download-panel__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.download-panel span { color: var(--forest); }
.download-panel h2 { margin: 7px 0 2px; font-size: 31px; line-height: 1.2; }
.download-panel p { margin: 0; }
.download-panel__inner > div:last-child { display: flex; gap: 8px; }
.footer { padding: 43px 0; color: #b9cbc5; background: var(--forest-deep); }
.footer__inner { text-align: center; }
.footer__brand { display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; }
.footer__brand img { width: 38px; height: 38px; }
.footer nav { margin-top: 17px; display: flex; justify-content: center; gap: 24px; }
.footer p { max-width: 760px; margin: 15px auto 0; }
.footer small { display: block; margin-top: 8px; }

.page-intro, .question-intro { color: #fff; background: var(--forest); }
.page-intro__grid { min-height: 430px; padding: 60px 0; display: grid; grid-template-columns: 1fr 370px; align-items: center; gap: 70px; }
.page-code { color: var(--lime); font: 10px/1 Consolas, monospace; letter-spacing: .13em; }
.page-intro h1, .question-intro h1 { max-width: 760px; margin: 16px 0; font-size: 54px; line-height: 1.08; letter-spacing: -.04em; }
.page-intro p, .question-intro p { max-width: 780px; margin: 0; color: #d0dcd7; font-size: 17px; }
.route-key { padding: 26px; border: 1px solid #6b877e; }
.route-key > b { display: block; color: var(--lime); font: 76px/1 Georgia, serif; }
.route-key > span { font: 10px/1 Consolas, monospace; letter-spacing: .12em; }
.route-key ol { margin: 20px 0 0; padding: 15px 0 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; border-top: 1px dotted #69857c; list-style-position: inside; color: #c7d6d0; font-size: 12px; }
.route-manual { padding: 70px 0; }
.route-manual__grid { display: grid; grid-template-columns: 230px 1fr; gap: 70px; }
.route-aside { position: sticky; top: 98px; align-self: start; display: grid; }
.route-aside > span, .log-aside > span { margin-bottom: 12px; color: var(--rust); font: 10px/1 Consolas, monospace; letter-spacing: .12em; }
.route-aside a { padding: 11px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.manual-sequence { border-top: 1px solid var(--line); }
.manual-sequence > section { padding: 0 0 55px; scroll-margin-top: 100px; }
.manual-sequence header { margin: 0 0 22px; display: grid; grid-template-columns: 92px 1fr; align-items: stretch; border-bottom: 1px solid var(--line); }
.manual-sequence header > b { padding-top: 22px; color: var(--rust); font: 40px/1 Georgia, serif; }
.manual-sequence header > div { padding: 20px 0; border-left: 1px solid var(--line); }
.manual-sequence header span { margin-left: 22px; color: var(--muted); font: 9px/1 Consolas, monospace; letter-spacing: .13em; }
.manual-sequence h2 { margin: 4px 0 0 22px; font-size: 27px; line-height: 1.2; }
.manual-sequence p { margin: 0 0 15px 114px; color: #3f514b; }
.manual-sequence p a { color: var(--rust-dark); font-weight: 800; }
.checkpoint { margin: 20px 0 0 114px; padding: 16px 18px; display: flex; gap: 16px; background: var(--sand); border-left: 4px solid var(--rust); }
.checkpoint b { color: var(--rust); font: 10px/1.8 Consolas, monospace; }

.question-intro__grid { min-height: 390px; padding: 55px 0; display: grid; grid-template-columns: 1fr 270px; align-items: center; gap: 70px; }
.log-legend { padding: 22px; display: grid; gap: 14px; border: 1px solid #6b877e; }
.log-legend span { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dot { width: 10px; height: 10px; display: inline-block; border-radius: 50%; }
.dot--lime { background: var(--lime); }.dot--rust { background: var(--rust); }.dot--sky { background: var(--sky); }
.question-log { padding: 70px 0; }
.question-log__grid { display: grid; grid-template-columns: 245px 1fr; gap: 50px; }
.log-aside { position: sticky; top: 98px; align-self: start; padding: 22px; background: var(--sand); border: 1px solid var(--line); }
.log-aside dl { margin: 0; }
.log-aside dl > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.log-aside dt { color: var(--muted); font-size: 12px; }
.log-aside dd { margin: 0; font-weight: 800; }
.log-aside a { margin-top: 18px; display: inline-block; color: var(--rust-dark); font-weight: 800; }
.log-groups { border-top: 1px solid var(--line); }
.log-groups > section { margin-bottom: 42px; }
.log-groups header { padding: 18px 0; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.log-groups header b { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: var(--forest); }
.log-groups h2 { margin: 0; font-size: 23px; }
.log-groups details { border-bottom: 1px solid var(--line); }
.log-groups summary { padding: 17px 12px; cursor: pointer; list-style: none; font-weight: 800; }
.log-groups summary::after { content: "+"; float: right; color: var(--rust); }
.log-groups details[open] summary::after { content: "−"; }
.log-groups summary span { margin-right: 13px; color: var(--rust); font: 11px/1 Consolas, monospace; }
.log-groups details p { margin: 0; padding: 0 42px 18px; color: var(--muted); }

@media (max-width: 1020px) {
  .field-hero__inner { grid-template-columns: 1fr 440px; gap: 30px; }
  .evidence--alert { left: 26px; }.evidence--manager { right: 24px; }
  .gate-grid { grid-template-columns: repeat(2,1fr); }
  .gate-grid article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }.gate-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .screen-pair figure { grid-template-columns: 180px 1fr; padding-inline: 18px; }
}

@media (max-width: 760px) {
  .rail { width: min(calc(100% - 28px), var(--rail)); }
  .fieldbar__inner { min-height: 68px; flex-wrap: wrap; }
  .mark img { width: 40px; height: 40px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { width: 100%; order: 5; margin: 0; padding-bottom: 12px; display: none; grid-template-columns: 1fr; }
  .site-nav.is-open { display: grid; }
  .fieldbar__downloads { display: none; }
  .field-hero__inner { min-height: auto; padding: 27px 0 12px; grid-template-columns: 1fr; grid-template-areas: "copy" "media"; gap: 17px; }
  .field-hero h1 { margin: 11px 0; font-size: 34px; }
  .mobile-break { display: block; }
  .hero-lead { margin-bottom: 16px; font-size: 14px; line-height: 1.55; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .button { min-height: 43px; padding: 9px; }
  .hero-gates { margin-top: 15px; }
  .hero-gates > div { padding: 8px 5px; grid-template-columns: 18px 1fr; }
  .hero-gates > div + div { padding-left: 5px; }
  .hero-gates dt { font-size: 16px; }.hero-gates b { font-size: 9px; }.hero-gates span { display: none; }
  .evidence-board { min-height: 274px; }
  .evidence-board__label { min-height: 34px; }
  .evidence { transform: none; }
  .evidence--alert { left: 31px; top: 48px; width: 118px; height: 186px; }.evidence--alert img { height: 157px; }
  .evidence--manager { right: 29px; top: 55px; width: 122px; height: 183px; }.evidence--manager img { height: 154px; }
  .evidence figcaption { height: 29px; padding: 3px 5px; }.evidence figcaption b { font-size: 8px; }.evidence figcaption span { display: none; }
  .evidence-board__condition { height: 35px; font-size: 8px; }
  .gate-section, .question-section, .screens-section, .risk-section, .route-section { padding: 58px 0; }
  .section-heading { grid-template-columns: 68px 1fr; }
  .section-heading > span { font-size: 31px; }.section-heading h2 { font-size: 30px; }
  .gate-grid { grid-template-columns: 1fr; }
  .gate-grid article { min-height: auto; }
  .gate-grid article + article, .gate-grid article:nth-child(3), .gate-grid article:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .route-layout, .risk-layout { grid-template-columns: 1fr; gap: 25px; }
  .route-title h2, .risk-title h2 { font-size: 34px; }
  .route-list li { grid-template-columns: 66px 1fr; }
  .screen-pair { grid-template-columns: 1fr; }
  .screen-pair figure { grid-template-columns: 130px 1fr; padding: 20px 0; }
  .screen-pair figure + figure { border-left: 0; border-top: 1px solid #61736d; }
  .screen-pair figure > div { height: 215px; }
  .screen-pair figcaption { padding-bottom: 20px; }
  .risk-notes { grid-template-columns: 1fr; }.risk-notes article + article { border-left: 0; border-top: 1px solid var(--line); }
  .question-grid { grid-template-columns: 1fr; }.question-grid details:nth-child(odd) { border-right: 0; }
  .download-panel__inner { align-items: stretch; flex-direction: column; gap: 24px; }
  .download-panel__inner > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .page-intro__grid, .question-intro__grid { min-height: auto; padding: 48px 0; grid-template-columns: 1fr; gap: 26px; }
  .page-intro h1, .question-intro h1 { font-size: 39px; }
  .route-key { padding: 20px; }.route-key > b { font-size: 62px; }
  .route-manual__grid, .question-log__grid { grid-template-columns: 1fr; gap: 34px; }
  .route-aside, .log-aside { position: static; }
  .route-aside { grid-template-columns: repeat(2,1fr); }.route-aside > span { grid-column: 1 / -1; }
  .manual-sequence header { grid-template-columns: 70px 1fr; }
  .manual-sequence p, .checkpoint { margin-left: 0; }
  .question-log { padding: 52px 0; }
}

@media (max-width: 410px) {
  .field-hero h1 { font-size: 31px; }
  .section-heading { grid-template-columns: 55px 1fr; }.section-heading h2 { font-size: 28px; }
  .screen-pair figure { grid-template-columns: 116px 1fr; gap: 17px; }
  .download-panel__inner > div:last-child { grid-template-columns: 1fr; }
  .route-aside { grid-template-columns: 1fr; }.route-aside > span { grid-column: auto; }
}
