:root {
  color-scheme: light;
  --ink: #1d2420;
  --coal: #17201c;
  --paper: #f0efdf;
  --surface: #faf9ef;
  --signal: #c4ed89;
  --line: #a9b09c;
  --muted: #506052;
  --mono: "IBM Plex Mono", "DejaVu Sans Mono", Consolas, monospace;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
input, button { color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b45a10; outline-offset: 4px; }
.wrap { width: min(1140px, 92%); margin-inline: auto; }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: absolute; z-index: 2; top: .6rem; left: .6rem; padding: .45rem .7rem; background: var(--signal); }
.mast, .hero, footer { color: #eff2e7; background-color: var(--coal); }
.mast-inner { min-height: 64px; display: flex; gap: 15px; align-items: center; justify-content: space-between; border-bottom: 1px solid #4a5a4e; }
.brand { font-weight: 750; font-size: 1.22rem; letter-spacing: -.06em; white-space: nowrap; text-decoration: none; }
.brand span:last-child { color: var(--signal); }
.mark { display: inline-block; padding: .2em .43em .26em .3em; margin-right: .55rem; font: 700 .9rem/1.1 var(--mono); color: var(--coal); background: var(--signal); }
nav { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; }
nav a, .kicker, .slip-top, .slip dt, label, .help, .status { font-family: var(--mono); }
nav a { font-size: .76rem; }
.hero { border-bottom: 4px solid #839779; background-image: linear-gradient(#99b78e14 1px,transparent 1px), linear-gradient(90deg,#99b78e14 1px,transparent 1px); background-size: 24px 24px; }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(22px,7vw,110px); align-items: center; padding-block: clamp(36px,5.5vw,76px); }
.kicker { color: #aabda9; font-size: .77rem; letter-spacing: .11em; text-transform: uppercase; }
h1 { color: #fffef2; font-size: clamp(3.6rem, 9vw, 7.7rem); line-height: .96; letter-spacing: -.095em; margin: .4rem 0 .9rem; }
h1 span { color: var(--signal); }
.hero p:not(.kicker) { max-width: 40ch; color: #d2dfcf; }
.action { display: inline-flex; align-items: center; gap: .72rem; border: 1px solid #4b6840; padding: .64rem .88rem; background: var(--signal); color: #1e2f23; font: 700 .79rem/1.4 var(--mono); text-decoration: none; }
.action:hover { background: #d8f6b2; }
.hero .action { margin-top: 1.3rem; }
.slip { background: #242f26; border: 1px solid #657860; box-shadow: 5px 6px #101913; padding: 1rem 1.15rem; }
.slip-top { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px dashed #72856b; color: var(--signal); font-size: .7rem; letter-spacing: .1em; }
.slip p { padding: .8rem 0 .6rem; font-size: .93rem; }
.slip dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding-block: .3rem; }
.slip dt { font-size: .74rem; color: #c3d0c1; }
.slip dd { color: #eef6df; font: 700 .82rem/1.4 var(--mono); text-align: right; }
.workbench { padding-block: 1.5rem 3rem; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: clamp(.95rem,2vw,1.3rem); box-shadow: 2px 3px #303e2411; }
h2 { font-size: clamp(1.4rem,2.6vw,1.95rem); letter-spacing: -.045em; line-height: 1.17; margin-bottom: .65rem; }
h3 { font-size: 1rem; line-height: 1.35; }
label { display: block; font-size: .77rem; font-weight: 700; margin-bottom: .25rem; }
input[type="text"], input[type="search"] { display: block; padding: .66rem .7rem; min-width: 0; width: 100%; background: #fffef8; border: 1px solid #859581; border-radius: 0; }
.input-row { display: flex; align-items: stretch; gap: .45rem; }
.input-row input { flex: 1; }
.help, .status { color: var(--muted); margin-top: .4rem; font-size: .73rem; overflow-wrap: anywhere; }
.status:empty, .links:empty { display: none; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .95rem; margin-top: .6rem; font-size: .84rem; }
.links a { overflow-wrap: anywhere; text-decoration-color: #769579; }
.import { margin-top: .8rem; padding-top: .65rem; border-top: 1px dashed var(--line); font-size: .88rem; }
.import summary { cursor: pointer; width: fit-content; font-weight: 700; }
.import p { margin-top: .45rem; }
.button, .file-link { padding: .4rem .6rem; border: 1px solid #91a086; background: #f4f3e4; font: 600 .74rem/1.5 var(--mono); text-decoration: none; }
.button:hover, .file-link:hover { background: #e5eddb; }
.file-link { display: inline-flex; width: fit-content; margin: 0; cursor: pointer; }
.file-link input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-link:focus-within { outline: 3px solid #b45a10; outline-offset: 3px; }
.import-list { list-style: none; padding: 0; margin: .35rem 0; }
.archive-grid { display: grid; grid-template-columns: minmax(215px, .85fr) minmax(0, 2.15fr); gap: .95rem; margin-top: .9rem; align-items: start; }
.directory ul { list-style: none; padding: 0; margin-top: .65rem; }
.case-button { width: 100%; display: block; text-align: left; border: 0; border-top: 1px solid #d3d8c7; background: transparent; padding: .65rem .45rem; }
.case-button:hover, .case-button[aria-pressed="true"] { background: #e8efdd; }
.case-button strong, .case-button small { display: block; }
.case-button small { color: var(--muted); font: .72rem/1.55 var(--mono); overflow-wrap: anywhere; }
.record p { margin-top: .5rem; }
.record-url, .event-meta { color: var(--muted); font: .76rem/1.5 var(--mono); overflow-wrap: anywhere; }
.record-top { display: flex; align-items: start; justify-content: space-between; gap: .7rem; }
.record-top h2 { margin: .2rem 0 0; }
.record-top .button { flex: none; }
.record .kicker { color: #4c6a50; }
.record-intro { max-width: 65ch; }
.record-separator { margin-block: 1rem .8rem; border-top: 1px dashed var(--line); }
.timeline { list-style: none; padding-left: .9rem; margin-top: .6rem; border-left: 2px solid #b1bea4; }
.timeline li, .import-list li { padding: .38rem 0 .65rem; overflow-wrap: anywhere; }
.timeline li { position: relative; }
.timeline li::before { position: absolute; content: ""; top: .75rem; left: calc(-.9rem - 6px); width: 9px; height: 9px; background: #42654d; border-radius: 50%; }
.timeline li.current::before { background: #a15328; }
.event-meta { display: block; }
.event-title { font-weight: 650; }
.hops { padding-left: 1.25rem; margin-top: .38rem; font-size: .78rem; }
.timeline .hops li::before { display: none; }
.hops li { padding: .15rem 0; }
.replacement { padding: .65rem .8rem; background: #e8efdd; border-left: 3px solid #68875d; }
.methods { margin-top: .95rem; }
.method-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.method-grid p { font-size: .88rem; margin-top: .25rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1.2rem; padding-block: .95rem; font-size: .76rem; }
.footer-inner > span { flex: 1; min-width: 16rem; color: #c3d0c1; }
@media (max-width: 740px) {
  .mast-inner { align-items: flex-start; padding-block: .7rem; }
  nav { justify-content: flex-end; gap: .2rem .75rem; }
  .hero-inner, .archive-grid { grid-template-columns: 1fr; }
  .slip { width: min(100%,26rem); }
  .method-grid { grid-template-columns: 1fr; }
}
@media (max-width: 450px) {
  .input-row, .record-top { flex-wrap: wrap; }
  .input-row input { flex-basis: 100%; }
  .record-top .button { order: 2; }
}
#closest { padding-top: .8rem; }
#closest input { border: 1px solid #859581; background: #fffef8; padding: .3rem .4rem; min-height: 2.15rem; }
#closest .links { margin-top: .3rem; }
button[disabled] { cursor: wait; opacity: .65; }
#batch textarea{display:block;width:100%;font:inherit;padding:.8rem;border:1px solid #9ca99e;border-radius:.35rem;margin:.5rem 0 1rem}#batch input[type=checkbox]{width:auto}.batch-scroll{overflow:auto}.batch-scroll table{width:100%;border-collapse:collapse}.batch-scroll th,.batch-scroll td{text-align:left;padding:.7rem;border-bottom:1px solid #cdd3cd;vertical-align:top}.batch-scroll td:first-child{overflow-wrap:anywhere;min-width:15rem}
