@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: only light;
  --paper: #f6f5ed;
  --sheet: #fffef7;
  --ink: #1b3026;
  --muted: #526155;
  --green: #214435;
  --dark: #1b372c;
  --dark-ink: #f3f3e7;
  --dark-muted: #cedbcb;
  --lime: #dce99e;
  --line: #d1d8cb;
  --line-dark: #577060;
  --soft: #e9eee1;
  --removed: #a63e24;
  --geometry: #4d3680;
  --focus: #693ba2;
  --display: var(--body);
  --body: "DM Sans", "Segoe UI", sans-serif;
  --mono: Consolas, "Courier New", monospace;
  scrollbar-color: var(--line-dark) var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--body); }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
a { color: var(--green); text-underline-offset: .19em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4, h5 { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: .98; letter-spacing: -.024em; }
h2 { font-size: clamp(2.9rem, 5vw, 5.25rem); }
code, pre { font-family: var(--mono); }
code { font-size: .9em; }
img { display: block; max-width: 100%; }
section, #before-file, #main { scroll-margin-top: 1.1rem; }
.wrap { width: min(calc(100% - clamp(2rem, 9vw, 9rem)), 82rem); margin-inline: auto; }
.skip-link, .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { z-index: 5; top: 1rem; left: 1rem; width: auto; height: auto; overflow: visible; clip-path: none; background: var(--sheet); padding: .7rem 1rem; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 4.75rem; display: grid; grid-template-columns: 1fr auto 1fr; justify-items: start; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: inherit; font-size: 1.13rem; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 1.75rem; height: 1.55rem; position: relative; color: currentColor; display: inline-block; }
.brand-mark::before, .brand-mark::after { content: ""; width: .85rem; height: .95rem; position: absolute; top: .23rem; border: 1.5px solid currentColor; transform: skewY(-32deg) rotate(4deg); border-radius: 2px; }
.brand-mark::before { left: .18rem; }
.brand-mark::after { left: .65rem; }
.navigation { display: flex; gap: clamp(.75rem, 2.4vw, 2.55rem); }
.navigation a, .header-action { color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 650; padding-block: .65rem; }
.navigation a:hover, .header-action:hover { text-decoration: underline; }
.header-action { justify-self: end; white-space: nowrap; }
.header-action span, .map-caption a span, .source-links a span { margin-left: .2em; }

.hero { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); align-items: center; gap: clamp(1.75rem, 5vw, 5.75rem); padding-block: clamp(2.8rem, 5.5vw, 5.7rem); }
.hero-copy { min-width: 0; }
.hero h1 { max-width: 12.4ch; font-size: clamp(3.45rem, 6.8vw, 6rem); }
.lead { max-width: 35ch; color: var(--muted); font-size: clamp(1.06rem, 1.7vw, 1.29rem); line-height: 1.53; margin-block: 1.1rem 1.85rem; }
.selection { max-width: 37rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
legend { font-size: .98rem; font-weight: 700; margin-bottom: .8rem; padding: 0; }
.selection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.selection-field { min-width: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: .6rem; padding: .75rem; }
.selection-field:focus-within { border-color: var(--green); }
.selection-field label { display: block; font-size: .82rem; font-weight: 700; line-height: 1.25; }
.selection-field label span { display: block; margin-top: .15rem; color: var(--muted); font-size: .74rem; font-weight: 400; }
input[type="file"] { width: 100%; min-width: 0; margin-top: .48rem; font-size: .75rem; color: var(--muted); padding: 0; }
input[type="file"]::file-selector-button { font: 700 .75rem var(--body); color: var(--green); background: var(--soft); border: 1px solid var(--line); border-radius: .3rem; margin-right: .45rem; padding: .43rem .52rem; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: #dce7d7; }
.file-rules { margin-block: .57rem .85rem; max-width: 52ch; color: var(--muted); font-size: .82rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .8rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 2.95rem; border: 1px solid transparent; border-radius: .4rem; padding: .7rem 1.05rem; font-size: .94rem; font-weight: 700; line-height: 1.25; transition: background .17s ease, color .17s ease; }
.button-primary { color: white; background: var(--green); }
.button-primary:hover { background: #122b20; }
.button-quiet { color: var(--green); background: transparent; text-decoration: underline; text-underline-offset: .19em; }
.button-quiet:hover, .button-secondary:hover { background: var(--soft); }
.button-secondary { border-color: var(--line); color: var(--green); background: var(--sheet); }
.button:disabled { opacity: .6; }
.message { margin: .65rem 0 0; color: var(--muted); font-size: .9rem; }
.message:empty { display: none; }
.error { color: #8d321e; border: 1px solid #d7a89b; padding: .72rem .87rem; background: #fff0e9; border-radius: .4rem; }

.map-figure { min-width: 0; margin: 0; background: #e9e9dd; border-radius: .72rem; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 .8rem 2rem rgba(29, 53, 37, .095); }
.map-header, .map-caption { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-inline: clamp(.78rem, 2vw, 1.5rem); }
.map-header { padding-block: .95rem; border-bottom: 1px solid var(--line); background: var(--sheet); }
.map-header strong, .map-header div span { display: block; line-height: 1.35; }
.map-header strong { font-size: .96rem; }
.map-header div span { color: var(--muted); font-size: .77rem; margin-top: .16rem; }
.map-crs { font: 400 .72rem var(--mono); color: var(--muted); white-space: nowrap; }
.map-image { position: relative; }
.map-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.map-north { position: absolute; top: .65rem; right: 1.05rem; text-align: center; color: var(--ink); line-height: 1.05; font: 700 .87rem/1.1 var(--body); }
.map-caption { padding-block: .7rem; border-top: 1px solid var(--line); background: var(--sheet); }
.map-caption a { font-size: .82rem; font-weight: 700; }
.map-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .22rem; }
.map-controls button { background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: .3rem; padding: .5rem .53rem; min-height: 2.55rem; font-size: .75rem; font-weight: 700; }
.map-controls button:hover { border-color: var(--line); }
.map-controls button[aria-pressed="true"] { background: var(--soft); border-color: var(--line); color: var(--green); }

.report { margin-block: 0 clamp(2.5rem, 5vw, 5rem); padding: clamp(1rem, 3vw, 2.35rem); background: var(--sheet); border: 1px solid var(--line); border-radius: .72rem; }
.report-top { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.report h2 { font-size: clamp(2.65rem, 4.5vw, 4.4rem); }
.sample-label { background: var(--soft); border: 1px solid var(--line); border-radius: .4rem; padding: .25rem .55rem; color: var(--green); font-size: .82rem; }
.provenance { color: var(--muted); overflow-wrap: anywhere; margin-block: .5rem 1.1rem; }
table { border-collapse: collapse; width: 100%; text-align: left; font-variant-numeric: tabular-nums; }
th, td { border-bottom: 1px solid var(--line); padding: .53rem .58rem; line-height: 1.35; }
thead th { color: var(--muted); font-weight: 600; font-size: .82rem; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
tbody th { font-weight: 650; }
td, th:not(:first-child) { text-align: right; white-space: nowrap; }
.report tbody th { overflow-wrap: anywhere; }
.summary { margin: .85rem 0 1.35rem; display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; color: var(--muted); }
.summary strong { color: var(--ink); }
.account-card-save { border-block: 1px solid var(--line); padding-block: 1.15rem; margin-block: .85rem 1.55rem; }
.account-card-save h3 { margin: 0 0 .25rem; font-size: 1.2rem; }
.account-card-save p { margin: .3rem 0; max-width: 68ch; }
.account-card-save details { margin-block: .75rem; }
.account-card-save summary { width: fit-content; cursor: pointer; color: var(--green); font-weight: 700; }
.account-card-save .message:empty { display: none; }
.account-card-save fieldset { border: 0; padding: 0; margin: .9rem 0 .25rem; min-width: 0; }
.account-card-save legend { font-weight: 700; padding: 0; margin-bottom: .45rem; }
#save-plan-options { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); }
#save-plan-options label { display: flex; align-items: flex-start; gap: .65rem; padding: .8rem; border: 1px solid var(--line); border-radius: .45rem; cursor: pointer; }
#save-plan-options label:has(input:checked) { background: var(--soft); border-color: var(--green); }
#save-plan-options label > span > span { display: block; }
#save-plan-options input { flex: none; width: 1rem; height: 1rem; margin: .25rem 0 0; accent-color: var(--green); }
.account-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; padding: .85rem 1rem; margin: 1rem 0; color: var(--dark); background: var(--soft); border-radius: .45rem; }
.account-card-meta span { display: block; font-size: .88rem; }
.account-card-meta a, .account-card-status a { text-decoration: underline; text-underline-offset: .22em; }
.account-card-status { padding-block: .85rem; }
.geometry-note { margin-block: .8rem; }
.list-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: .65rem 1rem; }
.list-heading h3 { font-size: 1.22rem; }
.filters { display: flex; flex-wrap: wrap; width: min(100%, 27rem); gap: .55rem; }
.filters label { font-size: .82rem; font-weight: 650; flex: 1 1 min(11.5rem, 100%); }
.filters input, .filters select { display: block; width: 100%; min-height: 2.72rem; margin-top: .18rem; border: 1px solid var(--line-dark); border-radius: .35rem; background: var(--sheet); color: var(--ink); padding: .55rem .7rem; }
.filters input::placeholder { color: var(--muted); }
.row-count { font-size: .86rem; margin: .65rem 0; color: var(--muted); }
.rows { border-top: 1px solid var(--line); }
.report-row { border-bottom: 1px solid var(--line); }
.report-row > summary { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, .85fr); align-items: center; gap: .55rem; min-height: 3rem; padding: .65rem .3rem; list-style: none; }
.report-row > summary::-webkit-details-marker { display: none; }
.report-row > summary:hover { background: var(--soft); }
.object-label { color: var(--ink); font-weight: 700; }
.object-label::before { content: "+"; display: inline-block; width: 1rem; margin-right: .28rem; color: var(--muted); }
.report-row[open] .object-label::before { content: "−"; }
.object-label, .object-type, .status { overflow-wrap: anywhere; }
.object-type { color: var(--muted); font-size: .87rem; }
.status { color: var(--green); font-size: .81rem; font-weight: 700; }
.status.removed { color: var(--removed); }
.status.geometry, .status.both { color: var(--geometry); }
.status.unresolved { color: #794b22; }
.row-detail { padding: 1.1rem .55rem; overflow-wrap: anywhere; }
.row-detail h4 { margin: .6rem 0 .25rem; }
.row-detail h5 { font-size: .88rem; }
.reason, .object-key { color: var(--muted); }
.field-grid, .trace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: .55rem; }
.source, .field-grid > section { background: var(--soft); padding: .7rem; border-radius: .35rem; }
.source dl, .field-grid dl { margin: .4rem 0 0; }
.source dt, .field-grid dt { color: var(--muted); font-size: .76rem; margin-top: .39rem; }
.source dd, .field-grid dd { margin: 0; font-size: .9rem; }
.field-grid ul { margin: .1rem 0; padding-left: 1.2rem; }
.geometry-data { margin-block: .4rem 1rem; }
.geometry-data pre { background: var(--soft); max-height: 14rem; overflow: auto; padding: .45rem; font-size: .77rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

.case-section { background: var(--dark); color: var(--dark-ink); padding-block: clamp(3rem, 7vw, 7rem); }
.case-content { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 7vw, 7.5rem); }
.case-intro > p { color: var(--dark-muted); max-width: 39ch; margin-top: 1.15rem; }
.case-action { margin-top: 1.4rem; }
.button-case { color: var(--dark); background: var(--lime); text-align: left; }
.button-case:hover { background: #f0f4c5; }
.case-action p { max-width: 36ch; color: var(--dark-muted); margin-top: .45rem; font-size: .84rem; }
.case-action .error { color: #8d321e; }
.source-links { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-top: 1.2rem; }
.case-section :focus-visible { outline-color: var(--lime); }
.case-section a { color: var(--dark-ink); font-size: .85rem; }
.case-report { align-self: start; background: var(--sheet); color: var(--ink); border-radius: .52rem; padding: clamp(.9rem, 3vw, 2.35rem); }
.case-report :focus-visible { outline-color: var(--focus); }
.case-report caption { text-align: left; color: var(--ink); font-weight: 700; padding-bottom: .55rem; }
.case-report th, .case-report td { font-size: .92rem; }
.case-report td { font-family: var(--mono); }
.case-findings { margin-block: 1.2rem .75rem; }
.case-findings div { display: grid; grid-template-columns: minmax(9rem, auto) 1fr; align-items: baseline; gap: .7rem; margin:.5rem 0; }
.case-findings dt { font-weight: 700; }
.case-findings dd, .case-report > p { color: var(--muted); font-size: .9rem; margin: 0; }
.signal { width: .65rem; height: .65rem; border-radius: 50%; display: inline-block; margin-right: .35rem; }
.signal-removed { background: var(--removed); }
.signal-geometry { background: var(--geometry); }
.hashes { margin-top: 1.25rem; border-top: 1px solid var(--line); color: var(--green); font-size: .84rem; }
.hashes summary { cursor: pointer; padding-block: .55rem; }
.hashes dl { margin-block: 0 .25rem; }
.hashes dt { font-weight: 700; margin-top: .5rem; }
.hashes dd { color: var(--muted); margin: 0; overflow-wrap: anywhere; }

.method { padding-block: clamp(3.2rem, 7vw, 7rem); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1rem clamp(2rem, 7vw, 7.5rem); }
.method-intro p { max-width: 34ch; color: var(--muted); margin-top: 1.12rem; }
.method-list { margin: 0; border-top: 1px solid var(--line); }
.method-list > div { display: grid; grid-template-columns: minmax(7rem, .42fr) minmax(0, 1fr); gap: .55rem 1.15rem; border-bottom: 1px solid var(--line); padding-block: 1rem; }
.method-list dt { font-weight: 700; }
.method-list dd { margin: 0; color: var(--muted); }
.questions { background: var(--soft); border-top: 1px solid var(--line); }
.questions-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1rem clamp(2rem, 7vw, 7.5rem); padding-block: clamp(3rem, 6vw, 6rem); }
.question-list { border-top: 1px solid var(--line); }
.question-list details { border-bottom: 1px solid var(--line); }
.question-list summary { position: relative; min-height: 3.2rem; padding: .9rem 2rem .9rem 0; list-style: none; font-weight: 700; cursor: pointer; }
.question-list summary::-webkit-details-marker { display: none; }
.question-list summary::after { content: "+"; position: absolute; right: .2rem; font-weight: 700; color: var(--green); }
.question-list details[open] summary::after { content: "−"; }
.question-list p { margin-bottom: .85rem; color: var(--muted); padding-right: 1.35rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 5.45rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; column-gap: 1.1rem; padding-block: .9rem; }
.footer-inner p { color: var(--muted); font-size: .9rem; margin: 0; }
.footer-inner > a:last-child { font-size: .86rem; }

@media (max-width: 900px) {
  .hero { align-items: start; }
  .selection-grid { grid-template-columns: 1fr; }
  .map-caption { flex-wrap: wrap; }
  .hero h1 { font-size: clamp(3.2rem, 7.3vw, 5rem); }
}
@media (max-width: 700px) {
  .hero, .case-content, .method, .questions-inner { grid-template-columns: 1fr; }
  .hero { gap: 1.6rem; }
  .hero h1 { max-width: 12.5ch; font-size: clamp(3.35rem, 11.5vw, 5rem); }
  .lead, .method-intro p, .case-intro > p { max-width: 52ch; }
  .selection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-figure { max-width: 35rem; }
  .map-caption { justify-content: space-between; }
}
@media (max-width: 480px) {
  .header-inner { grid-template-columns: 1fr 1fr; gap: .05rem .4rem; min-height: 4.4rem; padding-top: .55rem; }
  .navigation { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; width: 100%; }
  .navigation a, .header-action { font-size: .83rem; }
  .hero { padding-top: 2.15rem; }
  .lead { margin-block: .85rem 1.3rem; }
  .selection-field { padding-inline: .47rem; }
  .selection-field label { min-height: 2.1rem; }
  .actions { gap: .3rem .1rem; }
  .actions .button { padding-inline: .6rem; }
  .report { padding-inline: .62rem; }
  .report-row > summary { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .report-row .object-type { grid-row: 2; font-size: .76rem; }
  .report-row .status { grid-column: 2; grid-row: 1 / 3; }
  .report table th, .report table td { padding-inline: .22rem; font-size: .78rem; }
  .field-grid, .trace { grid-template-columns: 1fr; }
  .case-findings div, .method-list > div { grid-template-columns: 1fr; gap: .12rem; }
  .case-report table th, .case-report table td { font-size: .82rem; }
  .footer-inner { row-gap: .62rem; }
  .footer-inner .brand { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* 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}

.hero-offer { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.1rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); max-width: 38rem; color: inherit; }
.hero-offer p { margin: 0; flex-basis: 100%; font-size: .95rem; line-height: 1.5; color: inherit; }
.hero-offer .button.button-secondary { color: inherit; border-color: currentColor; background: transparent; text-decoration: none; }
.hero-offer .button.button-secondary:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.hero-offer-link { color: inherit; font-size: .92rem; text-decoration: underline; text-underline-offset: .2em; }
