/* onway — © 2026 LINUS Software, LLC. All rights reserved. */
:root{
  --ink:#15211f; --muted:#697571; --paper:#fbfaf5; --forest:#173f36;
  --mint:#b7edce; --sky:#d9eff2; --coral:#ff865e; --line:#dfe4dd;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme=light]){
    --ink:#e9ece9; --muted:#98a49f; --paper:#111614; --forest:#b7edce;
    --sky:#1d2d31; --line:#25302c;
  }
}
*{box-sizing:border-box}
/* `hidden` is an attribute, and the UA rule behind it is [hidden]{display:none}.
   Any class that sets `display` outranks it — .overlay{display:grid} meant the
   loading overlay was NEVER hidden: a permanent spinner and a blurred sheet over
   the map, which read as "the map never finishes rendering". This restores the
   attribute's meaning for every element, not just the one that broke today. */
[hidden]{display:none !important}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 Manrope,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
.shell{min-height:100vh;display:grid;grid-template-columns:minmax(385px,470px) 1fr}
.panel{position:relative;z-index:2;min-height:100vh;background:var(--paper);padding:28px 30px 20px;overflow-y:auto;box-shadow:7px 0 24px #173f3612;display:flex;flex-direction:column}
.brand{display:inline-flex;align-items:center;gap:8px;color:var(--forest);text-decoration:none;font-weight:800;font-size:19px;letter-spacing:-.8px}
.mark{height:28px;width:28px;border-radius:9px;background:var(--mint);color:#173f36;display:grid;place-items:center;font-size:15px}
.intro{margin:42px 0 24px}
.eyebrow{text-transform:uppercase;font:500 10px "DM Mono",monospace;letter-spacing:1.1px;color:#4f7064;margin:0 0 10px}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .eyebrow{color:#7d9c8e}}
.intro h1{font-size:33px;line-height:1.13;letter-spacing:-1.6px;margin:0 0 13px}
.lede{font-size:13px;line-height:1.65;color:var(--muted);max-width:36ch;margin:0}
/* The form sits ON the panel, not on a card: same ground, no fill, no shadow.
   Affordance comes from the rule under each field, not from a surface. */
.card{border:0;border-radius:0;padding:4px 0 10px;background:transparent;box-shadow:none}
.fields{position:relative}
.rail{position:absolute;border-left:1.5px dashed #b9c7c0;height:34px;left:6px;top:38px}
.field{position:relative;padding:10px 0 6px 27px}
.field+.field{border-top:0}
.field label{display:block;font:10px "DM Mono",monospace;letter-spacing:.5px;color:#7b8782;margin-bottom:3px}
/* The inputs were transparent on the card, so the form read as three labels and
   no obvious place to type. They now have their own surface and a focus ring. */
.field input{border:0;border-bottom:1.5px solid var(--line);border-radius:0;outline:0;
  background:transparent;font:600 14px Manrope,sans-serif;color:var(--ink);
  width:100%;padding:5px 0 7px;transition:border-color .15s}
.field input:hover{border-bottom-color:#b9c7c0}
.field input:focus{border-bottom-color:var(--forest)}
.field input::placeholder{color:#9ca6a1;font-weight:500}
.pin{position:absolute;left:0;top:29px;font-size:12px;line-height:12px}
.pin.start{color:#35a879}.pin.end{color:var(--coral)}
.actions{display:flex;align-items:center;justify-content:space-between;margin-top:8px;gap:8px}
.ghost{background:transparent;border:0;color:#467264;cursor:pointer;font:600 11px Manrope,sans-serif;padding:8px 2px}
.primary{border:0;background:var(--forest);color:var(--paper);border-radius:9px;padding:11px 14px;font:700 11px Manrope,sans-serif;cursor:pointer;transition:transform .18s,background .18s}
.primary:hover:not(:disabled){transform:translateY(-1px)}
.primary:disabled{opacity:.55;cursor:not-allowed}
.primary span{font-size:14px;margin-left:5px}
.note{font:10px/1.45 "DM Mono",monospace;color:#85908b;margin:10px 0 0}
.empty{margin-top:34px}
.empty .icon{display:grid;place-items:center;width:46px;height:46px;background:var(--sky);border-radius:14px;font-size:22px;color:#24748b}
.empty h2{font-size:17px;letter-spacing:-.5px;margin:14px 0 7px}
.empty>p{font-size:12px;line-height:1.65;color:var(--muted);margin:0 0 18px}
.row{display:flex;gap:14px;border-top:1px solid var(--line);padding:12px 0}
.row span{font:10px "DM Mono",monospace;color:#8a9a92;padding-top:2px}
.row p{font-size:12px;margin:0}
.results{padding-top:26px}
.head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.head h2{font-size:19px;letter-spacing:-.7px;margin:0}
.icon-btn{background:transparent;border:0;font-size:19px;color:#497466;cursor:pointer;padding:0}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;background:color-mix(in srgb,var(--sky) 55%,transparent);border-radius:12px;padding:13px;margin:16px 0}
.stats div{display:flex;flex-direction:column;gap:2px;border-right:1px solid var(--line);padding-right:6px}
.stats div:last-child{border:0}
.stats strong{font-size:15px;letter-spacing:-.4px}
.stats span{color:var(--muted);font-size:9px}
.narrative{font-size:12px;line-height:1.6;color:var(--muted);border-left:3px solid var(--line);padding-left:12px;margin:0 0 6px}
.sec-head{display:flex;justify-content:space-between;align-items:baseline;margin:20px 0 8px}
.sec-head h3{font-size:13px;letter-spacing:-.3px;margin:0}
.sec-head span{font:9px "DM Mono",monospace;color:#85908b}
.timeline{display:grid;gap:10px}
.stop{border:1px solid var(--line);border-left:3px solid var(--r,#52b980);border-radius:11px;padding:12px}
/* Origin and destination are the anchors of the trip, not another rest stop. */
.stop.start,.stop.end{background:color-mix(in srgb,var(--sky) 30%,transparent)}
.stop.start .eta,.stop.end .eta{font-weight:700;color:var(--forest)}
.stop-head{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center}
.eta{font:10px "DM Mono",monospace;color:var(--muted);white-space:nowrap}
.town{font-size:12.5px;font-weight:700}
.wx{font-size:10.5px;color:var(--muted)}
.badge{font:9px "DM Mono",monospace;text-transform:uppercase;letter-spacing:.6px;color:var(--r,#52b980);border:1px solid currentColor;border-radius:99px;padding:2px 7px}
.enjoy{font-size:11px;color:var(--muted);margin:8px 0 0}
.news{margin-top:10px;border-top:1px dashed var(--line);padding-top:8px}
.news-h{font:9px "DM Mono",monospace;text-transform:uppercase;letter-spacing:.7px;color:#8a9a92;margin:0 0 5px}
.news ul{margin:0;padding:0;list-style:none;display:grid;gap:6px}
.news li{font-size:11.5px;line-height:1.45}
.news a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--line)}
.news a:hover{border-color:currentColor}
.news .src{display:block;font:9px "DM Mono",monospace;color:#8a9a92;margin-top:1px}
.news .quiet{color:#9aa5a0;font-style:italic}
.credit{margin:16px 0 0;font-size:9px;color:#98a29c;text-align:center}
.foot{margin-top:auto;padding-top:20px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
.foot p{margin:3px 0}
.foot a{color:#467264}
/* A defined edge and a neutral ground: without them the tile layer bleeds into
   the page and the panel reads as a highlighted region rather than a map. */
.map-wrap{position:relative;min-height:100vh;background:#dce5df;border-left:1px solid var(--line)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .map-wrap{background:#1a201d}}
#map{position:absolute;inset:0;z-index:0}
.leaflet-control-attribution{font:10px Manrope!important}
.topbar,.mapcredit{position:absolute;z-index:500;background:#fff;color:#15211f;box-shadow:0 4px 18px #173f3618}
.topbar{top:22px;right:22px;border-radius:24px;padding:9px 14px;font-size:11px;font-weight:700;display:flex;gap:7px;align-items:center}
.dot{width:7px;height:7px;background:#45ba80;border-radius:50%;box-shadow:0 0 0 3px #d9f6e5}
.mapcredit{bottom:22px;right:22px;border-radius:5px;padding:6px 10px;font:9px "DM Mono",monospace;letter-spacing:.5px;color:#557268}
.overlay{position:absolute;inset:0;z-index:600;background:#fbfaf5cc;backdrop-filter:blur(2px);display:grid;align-content:center;justify-items:center;gap:12px;color:#15211f}
.overlay p{font-size:13px;font-weight:700}
.spinner{width:30px;height:30px;border:3px solid #d6e3dc;border-top-color:#348361;border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.marker{background:transparent;border:0!important}
.dot.start,.dot.end{width:17px;height:17px;border:3px solid #fff;border-radius:50%;box-shadow:0 1px 5px #0005}
.dot.start{background:#36ab7b}.dot.end{background:var(--coral)}
.stopmark{width:26px;height:26px;border-radius:9px;background:#fff;border:1px solid #dce6df;box-shadow:0 2px 8px #173f3633;display:grid;place-items:center;font-size:12px;color:#2f6b3f}
.stopmark.r1{background:#fff5df;border-color:#f0cc7a;color:#a5751a}
.stopmark.r2{background:#ffe3da;border-color:#f0a389;color:#b4472a}
@media(max-width:820px){
  .shell{display:block}
  .panel{min-height:auto;padding:22px 18px 18px}
  .map-wrap{height:52vh;min-height:340px}
  .intro{margin:28px 0 20px}
  .intro h1{font-size:29px}
  .topbar{top:14px;right:14px}
  .mapcredit{bottom:12px;right:12px}
}
@media (prefers-reduced-motion:reduce){.spinner{animation:none}.primary{transition:none}}
