/* BrevetCheck's track colours remain consistent in the picker, map and report. */
html[data-product="route"] {
  --track-original: #91451e;
  --track-revised: #165e43;
  --route-ink: #18392e;
  --route-rule: #c7d0c0;
  --route-paper: #fffef7;
}
.key.original {color:var(--track-original)}
.key.revised {color:var(--track-revised)}
html[data-product=route] .mast-brand .identity-symbol {flex:none}
html[data-product=route] .hero.product-opening .hero-copy .lead {max-width:42ch}
html[data-product=route] .hero.product-opening #route-board {border-radius:12px;overflow:hidden}
#map-return {
  align-self:stretch; min-height:240px; display:flex; justify-content:end; gap:.4rem; flex-direction:column;
  border:1px solid #8f9f86; border-radius:12px; padding:clamp(20px,4vw,52px);
  background:linear-gradient(0deg,#10291eed 0%,#16332488 70%),url("assets/cover.webp") center/cover;
  color:white; text-decoration:none;
}
#map-return strong {font-size:clamp(1.45rem,3vw,2.55rem);line-height:1.07;letter-spacing:-.045em}
#map-return span:last-child {font-size:1.65rem;color:#e1ef9e}
html[data-product=route] main #compare.route-workspace {
  background:#edf0e7; color:var(--route-ink); padding-block:clamp(36px,5.8vw,80px); border-block:1px solid var(--route-rule);
}
html[data-product=route] #compare .work-layout {display:block;max-width:1140px}
html[data-product=route] #compare .section-heading {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:.55rem 1.5rem;
  padding:0; margin:0 0 1.5rem;
}
html[data-product=route] #compare .section-heading h2 {grid-column:1/-1;margin:0;font-size:clamp(1.95rem,3.6vw,3.45rem);line-height:1.05;letter-spacing:-.055em;max-width:none}
html[data-product=route] #compare .section-heading p {margin:0;max-width:64ch;color:#41574c;line-height:1.55}
#compare .section-heading a {align-self:end;justify-self:end;white-space:normal}
html[data-product=route] #compare #verify {
  display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:clamp(14px,2.4vw,30px);border:1px solid #bcc7b8;
  border-radius:16px;background:var(--route-paper);box-shadow:0 10px 28px -24px #21412b75;
}
#track-workspace {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(12px,2vw,24px)}
#track-workspace .track-slot {min-width:0;display:flex;flex-direction:column;align-items:stretch;padding:0;background:none;color:var(--route-ink)}
.track-slot h3 {display:flex;align-items:center;gap:.65rem;margin:0 0 .7rem;font-size:1.13rem;line-height:1.25;color:var(--route-ink)}
.trace-key {width:30px;border-top:3px dashed var(--track-original)}
[data-side="after"] .trace-key {border-top:4px solid var(--track-revised)}
.pick-row {position:relative;min-width:0}
html[data-product=route] #verify .pick-row label {
  display:flex;align-items:center;gap:14px;min-height:92px;margin:0;padding:14px 18px;border:1px dashed #929e88;
  border-radius:8px;cursor:pointer;background:#f7f5eb;color:var(--route-ink);
}
html[data-product=route] #verify [data-side="after"] .pick-row label {background:#eef3e9}
html[data-product=route] #verify .track-slot[data-loaded="true"] .pick-row label {border-style:solid;border-color:#598369}
html[data-product=route] #verify .pick-row:hover label {border-color:#2c633e;box-shadow:inset 0 0 0 1px #57845e}
html[data-product=route] #verify .pick-row:focus-within {outline:3px solid #9d4e21;outline-offset:3px;border-radius:8px}
html[data-product=route] #verify .pick-row input[type="file"] {
  display:block;position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;
}
.upload-symbol {display:grid;place-items:center;flex:none;width:40px;height:40px;background:var(--route-paper);
  border:1px solid #b5bfae;border-radius:50%;font-size:1.35rem;font-weight:800;line-height:1}
.file-info {display:grid;gap:4px;min-width:0}
.file-info strong {font-size:1.01rem;line-height:1.35;overflow-wrap:anywhere}
.file-info span,.control-settings summary small {font-size:.8rem;line-height:1.4;color:#4d6153;font-weight:400}
#track-workspace details {border:0;padding:0;background:none;margin:0}
#track-workspace details summary {min-height:44px;font-size:.83rem;text-decoration:underline;text-underline-offset:3px;color:#365241}
html[data-product=route] #verify .control-settings {margin:.6rem 0 0;border-block:1px solid var(--route-rule);background:transparent;padding:0}
.control-settings > summary {display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:14px 2px;list-style:none}
.control-settings > summary::-webkit-details-marker {display:none}
.control-settings > summary > span {display:flex;align-items:baseline;flex-wrap:wrap;gap:.22rem .8rem}
.control-settings > summary::after {content:'+';font-size:1.3rem;line-height:1}
.control-settings[open] > summary::after {content:'−'}
.control-body {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:.45rem 1.5rem;padding:.6rem 0 1.3rem}
.control-body > :is(label,#control-format,#checkpoints) {grid-column:1}
.control-body > .point-builder {grid-column:2;grid-row:1/4;align-self:start}
html[data-product=route] #verify .point-builder {padding:.45rem .85rem;margin:0;background:#eef3e8;border:1px solid #ccd6c6;border-radius:7px}
.control-body > .number-field {grid-column:1;margin-top:.5rem}
.control-body #tolerance-help {grid-column:1/-1}
#verify .control-body .point-fields {display:grid;grid-template-columns:1fr 1fr;gap:.55rem}
#verify .point-fields label:first-child {grid-column:1/-1}
#verify .point-fields input {display:block;min-height:42px;margin:.25rem 0;width:100%;min-width:0;border:1px solid #99a790;border-radius:4px;padding:6px 8px}
#append-point {min-height:42px;border:1px solid #738d74;border-radius:5px;padding:.4rem .7rem;background:#fffef9;color:#254934;font-weight:800;cursor:pointer}
html[data-product=route] #verify .form-actions {margin:1.2rem 0 0;display:flex;align-items:center;gap:.7rem 1.3rem}
html[data-product=route] #verify #submit {background:#1c4c37;color:white;border:1px solid #194231;border-radius:6px;padding:.7rem 1.25rem}
html[data-product=route] #verify #submit:hover {background:#2c6242}
#verify .example-link {min-height:44px;padding:0 .15rem;border:0;background:none;color:#224f38;font:800 .9rem var(--body);text-decoration:underline;text-underline-offset:4px;cursor:pointer}
#verify #error:not(:empty) {border-left:3px solid #ac4e27;padding:.65rem .85rem;background:#fff0e9;color:#76351e}
html[data-product=route] #results {max-width:1140px}
#results .distance-strip {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:1.3rem 0;border:1px solid var(--route-rule);border-radius:10px;overflow:hidden;background:var(--route-paper)}
.distance-strip > div {min-width:0;padding:clamp(.7rem,2vw,1.35rem)}
.distance-strip > div + div {border-left:1px solid var(--route-rule)}
.distance-strip > div:last-child {background:#e5edd2}
.distance-strip dt {font-size:.82rem;font-weight:800;color:#405749}
.distance-strip dd {margin:.3rem 0 0;display:flex;align-items:baseline;gap:.35rem;flex-wrap:wrap;line-height:1.1}
.distance-strip strong {font-size:clamp(1.3rem,3.25vw,2.7rem);letter-spacing:-.055em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.distance-strip dd span {font-size:.8rem}
#report-map #route-board {display:block;width:100%;max-width:none;padding:0;margin:0;overflow:hidden;border:1px solid var(--route-rule);border-radius:10px;background:var(--route-paper)}
#report-map .map-surface {height:clamp(225px,32vw,380px);aspect-ratio:auto}
#report-map .cue-sheet {display:flex;align-items:center;justify-content:space-between;gap:.6rem 1rem;flex-wrap:wrap;padding:.7rem 1rem}
#report-map .cue-sheet > * {margin:0}
#report-map .map-callout {min-height:0;background:transparent;padding:0}
#endpoint-note {color:#405448;margin:.65rem 0;font-size:.88rem}
html[data-product=route] #roadbook .cover-photo {border-radius:10px;object-fit:cover}
html[data-product=route] .folio-route :is(.folio-editor,.folio-note) {border-radius:10px}
html[data-product=route] .folio-route textarea:focus-visible {outline:3px solid #94703b;outline-offset:2px}
@media(max-width:700px) {
  html[data-product=route] #compare .section-heading {display:block}
  html[data-product=route] #compare .section-heading p {margin-top:.55rem}
  #compare .section-heading a {margin-top:0}
  #track-workspace {grid-template-columns:minmax(0,1fr);gap:.65rem}
  .control-body {display:flex;flex-direction:column}
  .control-body > .point-builder {align-self:stretch}
  .distance-strip dt {font-size:.73rem}
  .distance-strip dd {display:block}
  .distance-strip dd span {display:block;margin-top:.25rem}
  #map-return {min-height:180px}
}
@media print {
  #report-map .cue-sheet,#report-map .layer-switch {display:none}
  #report-map .map-surface {height:180px}
  #results .distance-strip,#report-map {break-inside:avoid}
}
