@font-face {
  font-family: Manrope;
  src:url("./fonts/manrope-latin-400-normal.woff2") format("woff2");
  font-style:normal;
  font-weight:400;
  font-display:swap;
}
@font-face {
  font-family: Manrope;
  src:url("./fonts/manrope-latin-800-normal.woff2") format("woff2");
  font-style:normal;
  font-weight:800;
  font-display:swap;
}
:root {
  color-scheme:light;
  --paper:#f7f4e8;
  --white:#fffcf3;
  --ink:#1d3228;
  --muted:#475b50;
  --green:#194c37;
  --dark:#163527;
  --rule:#c7c9b8;
  --strong-rule:#929b87;
  --accent:#e8ecac;
  --review:#8c3022;
  --review-bg:#fae8d6;
  --display: var(--body);
  --body:Manrope, "Segoe UI", Arial, sans-serif;
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { scroll-padding-top:24px; }
body { margin:0; background:var(--paper); color:var(--ink); font:400 16px/1.62 var(--body); }
button, input, textarea { font:inherit; }
a { color:inherit; text-underline-offset:3px; }
a:hover { text-decoration-thickness:2px; }
::selection { background:var(--accent); color:var(--dark); }
:focus-visible { outline:3px solid #a64624; outline-offset:4px; }
section:target, figure:focus { scroll-margin-top:24px; }
.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0;
}
.skip { position:absolute; left:16px; top:-150px; z-index:5; padding:.65rem .9rem; background:var(--white); }
.skip:focus { top:16px; }
.shell, .page-header, .page-footer {
  width:min(1224px, calc(100% - clamp(40px, 8vw, 128px)));
  margin-inline:auto;
}
.page-header, .page-footer {
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.page-header { min-height:74px; border-bottom:1px solid var(--rule); }
.page-header nav { display:flex; align-items:center; gap:clamp(16px, 4vw, 44px); }
.page-header nav a, .page-footer > a:last-child {
  color:var(--muted); display:inline-flex; align-items:center; min-height:44px;
  font-weight:800; font-size:.88rem; text-decoration:none;
}
.page-header nav a:hover, .page-footer > a:last-child:hover { color:var(--green); text-decoration:underline; }
.wordmark {
  font-weight:800; font-size:clamp(1.03rem,1.7vw,1.3rem); letter-spacing:-.03em;
  text-decoration:none; display:inline-flex; align-items:center; gap:10px; white-space:nowrap;
}
.brand-mark {
  width:31px; height:29px; background:var(--green); position:relative; display:inline-block;
  border-radius:3px; flex:none;
}
.brand-mark i { position:absolute; display:block; width:4px; height:5px; background:var(--accent); border-radius:1px; transform:skew(-22deg); }
.brand-mark i:nth-child(1) { top:16px; left:7px; }
.brand-mark i:nth-child(2) { top:12px; left:13px; height:9px; }
.brand-mark i:nth-child(3) { top:7px; left:19px; height:14px; }

.hero {
  display:grid; grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);
  align-items:center; gap:clamp(28px,5.2vw,86px); padding-block:clamp(50px,7vw,106px);
}
h1,h2 { font-family:var(--display); line-height:1.05; font-weight:400; letter-spacing:-.027em; margin:0; }
h1 { max-width:13ch; font-size:clamp(2.9rem,5.35vw,5.75rem); text-wrap:balance; }
h2 { font-size:clamp(2.1rem,3.7vw,3.9rem); text-wrap:balance; }
p { margin:0; }
.lead {
  font-size:clamp(1.04rem,1.5vw,1.24rem); line-height:1.55; color:var(--muted);
  margin:clamp(15px,2.4vw,29px) 0 1.45rem; max-width:35ch;
}
.actions, .form-actions, .report-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.66rem; }
.button {
  min-height:48px; display:inline-flex; align-items:center; justify-content:center; gap:.67rem; padding:.63rem .95rem;
  cursor:pointer; border:1px solid var(--green); border-radius:4px; font-weight:800; font-size:.91rem; line-height:1.3; text-decoration:none;
  transition:background-color .15s ease, color .15s ease;
}
.primary { color:var(--white); background:var(--green); }
.primary:hover { background:#286549; }
.outline { color:var(--green); background:transparent; border-color:var(--strong-rule); }
.outline:hover { background:#e7ebd7; }
.button:disabled { opacity:.65; cursor:wait; }
.arrow { height:8px; width:8px; margin-right:1px; border-right:1.5px solid; border-top:1.5px solid; transform:rotate(45deg); }
.privacy-note { margin-top:.95rem; font-size:.87rem; color:var(--muted); }
.demo-message:not(:empty) { margin-top:.75rem; font-weight:800; }
.text-link {
  display:inline-flex; align-items:center; min-height:44px; color:var(--green); font-size:.91rem; font-weight:800;
}
.route-board {
  margin:0; min-width:0; border:1px solid var(--strong-rule); background:var(--white);
  box-shadow:0 18px 26px -26px #1635276e;
}
.board-heading {
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.6rem 1rem;
  padding:clamp(14px,2vw,24px);
}
.board-heading h2 { font-family:var(--body); font-size:1.15rem; font-weight:800; letter-spacing:-.02em; }
.board-heading p { color:var(--muted); font-size:.78rem; margin-top:.2rem; }
.layer-switch {
  margin:0; display:flex; padding:0; border:1px solid var(--rule); border-radius:5px; min-width:0; background:var(--paper);
}
.layer-switch label { position:relative; cursor:pointer; }
.layer-switch input { position:absolute; appearance:none; inset:0; margin:0; cursor:pointer; width:100%; height:100%; }
.layer-switch span {
  display:grid; place-items:center; min-height:44px; padding:.28rem .64rem;
  font-size:.75rem; line-height:1; font-weight:800; color:var(--muted); border-radius:3px;
}
.layer-switch input:checked + span { color:var(--white); background:var(--green); }
.layer-switch input:focus-visible { outline-offset:1px; z-index:2; }
.map-surface {
  background:#edf0da; border-block:1px solid var(--rule);
  aspect-ratio:1.58; min-height:220px;
}
canvas { display:block; width:100%; height:100%; }
.map-legend {
  display:flex; flex-wrap:wrap; align-items:center; gap:.5rem clamp(.66rem,2vw,1.4rem);
  padding:12px clamp(14px,2vw,24px); border-bottom:1px solid var(--rule); color:var(--muted); font-size:.77rem;
}
.map-legend span { display:inline-flex; gap:7px; align-items:center; }
.key { display:inline-block; width:17px; border-top:3px solid; }
.key.original { border-top-style:dashed; color:#718469; }
.key.revised { color:#245740; }
.key.review { width:10px; height:10px; border:1px solid var(--review); border-radius:50%; background:#e9a764; }
.map-callout {
  display:flex; align-items:center; gap:.8rem; min-height:74px;
  background:#f2f0dc; padding:11px clamp(14px,2vw,24px);
}
.map-marker, .point-index {
  color:var(--ink); background:#e4e9c5; font-size:.78rem; font-weight:800; font-variant-numeric:tabular-nums;
  border:1px solid var(--strong-rule); border-radius:50%; width:26px; height:26px; flex:none; display:grid; place-items:center;
}
.map-marker[data-review="true"] { background:var(--review-bg); border-color:#ab6755; color:var(--review); }
.map-control { font-weight:800; font-size:.88rem; overflow-wrap:anywhere; }
#map-note { color:var(--muted); font-size:.78rem; }

.work-section { background:#eceee0; border-block:1px solid var(--rule); padding-block:clamp(39px,6vw,88px); }
.work-layout, .method {
  display:grid; grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr); align-items:start; gap:clamp(26px,7.1vw,104px);
}
.section-heading p { color:var(--muted); margin-top:1.1rem; max-width:34ch; }
.section-heading > .text-link { margin-top:.4rem; }
form { min-width:0; }
.file-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin-bottom:1.25rem; }
.file-block {
  min-width:0; background:var(--white); border:1px solid var(--strong-rule); padding:14px 14px 4px;
}
form label { display:block; font-weight:800; }
input[type="file"], input[type="number"], textarea { min-width:0; width:100%; color:var(--ink); }
input[type="file"] { height:44px; font-size:.84rem; margin-top:.45rem; line-height:44px; }
input[type="file"]::file-selector-button {
  color:var(--green); border:1px solid var(--strong-rule); border-radius:3px; padding:.44rem .6rem;
  margin-right:.45rem; background:var(--paper); cursor:pointer; font:800 .77rem var(--body);
}
input[type="file"]::file-selector-button:hover { background:#e7ebd7; }
input[type="number"], textarea { border:1px solid var(--strong-rule); padding:.66rem .75rem; background:var(--white); border-radius:3px; }
textarea { display:block; resize:vertical; font:400 .87rem/1.52 Consolas, monospace; }
textarea::placeholder { color:#59655a; opacity:1; }
.field-help { color:var(--muted); font-size:.85rem; margin:.15rem 0 .5rem; }
.form-actions { align-items:end; gap:.7rem 1rem; margin:.88rem 0 .48rem; }
.number-field { width:175px; }
.number-field label { font-size:.86rem; margin-bottom:.24rem; }
.number-field input { height:48px; }
summary { cursor:pointer; font-weight:800; min-height:44px; padding:.61rem 0; }
.file-block summary { font-size:.84rem; }
.file-block textarea { margin-bottom:.65rem; }
.error:empty, #copy-status:empty { margin:0; }
.error:not(:empty) { color:var(--review); font-weight:800; margin-top:.5rem; }

.results { padding-block:clamp(38px,6vw,80px); }
.results-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.results-heading .field-help { margin-top:.65rem; }
.verdict { background:#e7ead1; margin:1rem 0 .6rem; padding:.68rem .8rem; font-weight:800; }
.verdict[data-review="true"] { background:var(--review-bg); color:var(--review); }
#copy-status:not(:empty) { margin-bottom:.4rem; color:var(--green); font-size:.9rem; font-weight:800; }
#account-save { margin-top:.75rem; }
#account-save .field-help, #save-status:not(:empty) { margin:.65rem 0; }
#summary-preview { padding:.9rem; background:#edf0da; color:#17392d; font:inherit; font-size:.9rem; white-space:pre-wrap; overflow-wrap:anywhere; }
@media print { #account-save { display:none !important; } }
table {
  width:100%; border-collapse:collapse; table-layout:fixed; font-size:clamp(.78rem,1.2vw,.96rem);
}
th, td { text-align:left; vertical-align:top; padding:.67rem .65rem; border-bottom:1px solid var(--rule); overflow-wrap:anywhere; }
thead th { font-size:.78rem; color:var(--muted); }
th:first-child { width:40%; }
.control-jump {
  text-align:left; color:var(--green); background:none; border:0; padding:0; margin:0; cursor:pointer;
  min-height:44px; width:100%; display:flex; align-items:center; gap:.5rem; font-size:inherit; font-weight:800; overflow-wrap:anywhere;
}
.control-jump:hover .point-name { text-decoration:underline; text-underline-offset:3px; }
.status { display:block; font-weight:800; }
td span + span { color:var(--muted); }
td[data-review="true"] .status { color:var(--review); }
.report-footnote { margin:.85rem 0 .2rem; }
#report-plain { max-width:58rem; }

.method { padding-block:clamp(39px,6vw,91px); }
.method-list { border-top:1px solid var(--rule); min-width:0; }
.method-list details { border-bottom:1px solid var(--rule); }
.method-list summary { padding:.83rem 0; }
.method-list p { color:var(--muted); font-size:.95rem; margin-bottom:.95rem; max-width:64ch; }
.page-footer { min-height:86px; border-top:1px solid var(--rule); }

@media (max-width:880px) {
  .hero { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; }
  .work-layout, .method { grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr); gap:26px; }
  .actions .button { padding-inline:.76rem; }
}
@media (max-width:730px) {
  .hero, .work-layout, .method { grid-template-columns:minmax(0,1fr); }
  .hero { padding-block:40px; gap:30px; }
  h1 { max-width:15ch; }
  .lead { max-width:42ch; }
  .section-heading p { max-width:49ch; }
  .page-header { min-height:62px; }
}
@media (max-width:460px) {
  .shell, .page-header, .page-footer { width:calc(100% - 32px); }
  .page-header nav { gap:13px; }
  .page-header nav a { font-size:.74rem; }
  .brand-mark { width:27px; height:28px; }
  .wordmark { gap:7px; }
  .file-columns { grid-template-columns:1fr; gap:.64rem; }
  .board-heading { padding:12px; }
  .board-heading h2 { font-size:1rem; }
  .layer-switch span { padding-inline:.52rem; min-height:44px; }
  .map-surface { aspect-ratio:1.34; }
  th, td { padding:.55rem .28rem; }
  .control-jump { align-items:flex-start; gap:.3rem; }
  .point-index { width:21px; height:21px; }
}
@media (max-width:350px) {
  .page-header nav { gap:8px; flex-wrap:wrap; justify-content:flex-end; }
  .page-header nav a { min-height:32px; }
  .form-actions .button { width:100%; }
}
@media (prefers-reduced-motion:reduce) {
  * { transition:none !important; }
}
@media print {
  html, body { background:white; color:#16291f; }
  .page-header, .page-footer, .skip, .hero, .work-section, .method, .report-actions, #report-plain, #copy-status { display:none !important; }
  .results { width:auto; padding:0; }
  .results table tr { break-inside:avoid; }
  .results .control-jump { color:inherit; min-height:auto; }
  .results h2 { font-size:24pt; }
}
/* Keep product text upright, including browser form controls and print. */
*,*::before,*::after,::placeholder,::file-selector-button {font-style:normal!important;font-synthesis-style:none!important}
