/* NAV-E v3 look: line-drawn, medium blocking, brand colors. */
:root {
  --blue: #346DB6; --orange: #F27A33; --ink: #141414; --paper: #F0F0F0; --white: #fff;
  --peach: #FDE7D9; --sky: #DCE8F6; --mist: #CFE0F5; --muted: #4A4A4A; --faint: #6B6B6B; --ok: #2E7D32;
  /* Brand fonts from the Adobe Fonts web project (index.html). */
  --head: "agenda-condensed", "Arial Narrow", sans-serif;
  --body: "area-normal", system-ui, sans-serif;
  --block-r: 10px 13px 9px 14px / 13px 9px 14px 10px;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; min-height: 100vh; font: 15px/1.45 var(--body); color: var(--ink); background: var(--paper); }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

/* Type */
.h { margin: 0; font-family: var(--head); font-weight: 400; line-height: 1.02; }
.h1 { font-size: 36px; } .h2 { font-size: 24px; } .h3 { font-size: 19px; font-weight: 500; }
.eyebrow { font-family: var(--head); font-weight: 500; font-size: 13px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.muted { color: var(--muted); font-size: 13px; } .credit { color: var(--faint); font-size: 11px; margin: 0; }
p { margin: 0; }

/* Blue band + skyline */
.band { background: var(--blue); color: #fff; padding: calc(16px + env(safe-area-inset-top)) 20px 4px; display: flex; flex-direction: column; gap: 10px; }
.band .eyebrow { color: rgba(255, 255, 255, .8); }
.band .sub { color: var(--mist); font-size: 22px; }
.band.solo { padding-bottom: 18px; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topline .logo { height: 18px; display: block; }
.chip { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.sky { position: relative; height: 96px; background: var(--blue); margin-top: -2px; }
.sky > div { position: absolute; inset: 0; }

/* Gator */
.gator { display: block; flex: none; }
.panel { margin: 14px 16px 0; border-radius: var(--block-r); padding: 12px 16px; display: flex; gap: 12px; align-items: center; }
.panel.friendly { background: var(--sky); } .panel.caution { background: var(--peach); }
.panel.wide { flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 16px 14px; }
.panel p { font-family: var(--head); font-size: 20px; line-height: 1.18; }
.panel strong { font-family: var(--head); font-weight: 500; font-size: 23px; line-height: 1.05; display: block; margin-bottom: 4px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: #fff; overflow: hidden; flex: none; border: 1.5px solid var(--ink); }

/* Content column */
.col { padding: 14px 20px 0; display: flex; flex-direction: column; gap: 12px; }
.rule { height: 6px; background: url(art/rule.svg) center / 100% 6px no-repeat; }
.rule.light { background-image: url(art/rule-light.svg); }
.rule.white { background-image: url(art/rule-white.svg); }

/* Route line with notes */
.route { position: relative; }
.route svg { position: absolute; left: 0; top: 0; }
.note { position: absolute; left: 36px; right: 0; display: flex; flex-direction: column; }
.note strong { font-family: var(--head); font-weight: 500; font-size: 17px; line-height: 1.1; }
.note span { font-size: 12px; line-height: 1.35; color: #3A3A3A; }
.note.closed, .note.flood { background: var(--orange); }
.note.work { background: var(--sky); }
.note.closed, .note.flood, .note.work { padding: 6px 10px; border-radius: var(--block-r); margin-top: -6px; }
.note.closed span, .note.flood span, .note.work span { color: var(--ink); }
.route.dashed .note strong, .route.dashed .note span { color: #9A9A9A; }

/* Actions */
.link { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 700; padding: 4px 0; }
.link.blue { color: var(--blue); }
.btn { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; background: var(--orange); color: var(--ink); border-radius: var(--block-r); padding: 13px 0; font-size: 15px; font-weight: 700; }
.btn.white { background: #fff; }
.btn[disabled] { opacity: .5; }
.textbtn { color: var(--blue); font-weight: 700; font-size: 14px; text-align: center; padding: 8px 0; }

/* Forms on the blue band */
.field { display: flex; flex-direction: column; gap: 3px; position: relative; }
.field input { border: 0; background: transparent; color: #fff; font: 600 17px var(--body); padding: 2px 0 4px; outline: none; }
.field input::placeholder { color: rgba(255, 255, 255, .6); }
.sugg { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 8px 24px rgba(20, 20, 20, .18); overflow: hidden; }
.sugg button { display: block; width: 100%; text-align: left; padding: 11px 14px; font-size: 14px; border-bottom: 1px solid #EEE; }
.swap { color: #fff; padding: 8px; }

/* Results */
.result { display: flex; align-items: center; gap: 12px; padding: 12px 0; width: 100%; text-align: left; }
.result.closed { background: var(--orange); padding: 12px; border-radius: var(--block-r); margin: 4px 0; }
.result.work { background: var(--sky); padding: 12px; border-radius: var(--block-r); margin: 4px 0; }
.result .name { font-family: var(--head); font-weight: 500; font-size: 19px; display: block; }
.result .note2 { font-size: 12.5px; color: #3A3A3A; }
.result.closed .note2, .result.work .note2 { color: var(--ink); }
.result .tag { font-family: var(--head); font-weight: 500; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.tag.clear { color: var(--ok); } .tag.work { color: var(--blue); }

/* Issue blocks (route details) */
.issue { display: flex; flex-direction: column; padding: 8px 12px; border-radius: var(--block-r); }
.issue.closed, .issue.flood { background: var(--orange); } .issue.work, .issue.weather { background: var(--sky); }
.issue .eyebrow { color: var(--ink); font-size: 12px; }
.issue strong { font-family: var(--head); font-weight: 500; font-size: 18px; line-height: 1.1; }
.issue span { font-size: 12px; }
.map { position: relative; background: #fff; border-radius: var(--block-r); overflow: hidden; }
.map svg { display: block; width: 100%; height: 240px; }
.map .zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.map .zoom button { width: 36px; height: 36px; background: #fff; border: 1.5px solid var(--ink); border-radius: 9px 11px 8px 12px; font-size: 18px; }
.map .mapnote { position: absolute; left: 10px; bottom: 6px; font-size: 10px; color: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; font-weight: 600; list-style: none; margin: 0; padding: 0; }
.legend li { display: flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); display: inline-block; }

/* Alerts form */
.times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.times label { display: flex; flex-direction: column; gap: 2px; }
.times input { border: 0; background: transparent; font: 400 26px var(--head); width: 100%; padding: 0; color: var(--ink); min-height: 44px; }
.days { display: flex; justify-content: space-between; }
.day { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; font-weight: 700; font-size: 14px; }
.day[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.toggle { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 14.5px; font-weight: 600; min-height: 44px; }
.switch { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px 16px 13px 17px; background: #D9D9D9; position: relative; cursor: pointer; flex: none; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch:checked { background: var(--orange); } .switch:checked::after { left: 22px; }
.status { font-size: 13px; color: var(--muted); text-align: center; min-height: 18px; }

/* Settings */
.namefield input { border: 0; background: transparent; font: 600 17px var(--body); padding: 2px 0 4px; width: 100%; outline: none; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 15.5px; font-weight: 600; min-height: 44px; }
.danger { background: var(--peach); border-radius: var(--block-r); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }

/* Install steps */
.step { display: flex; gap: 12px; align-items: baseline; font-size: 14px; }
.step b { font-family: var(--head); font-weight: 400; font-size: 26px; color: var(--blue); width: 16px; }

/* Skeleton while loading */
.dim { color: #9A9A9A; }

/* Bottom nav */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--paper); border-top: 1.5px solid #E0E0E0; padding: 8px 8px calc(12px + env(safe-area-inset-bottom)); }
.tabs .inner { max-width: 480px; margin: 0 auto; display: flex; justify-content: space-around; }
.tabs a, .tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 64px; font-size: 12px; font-weight: 500; color: var(--ink); }
.tabs a[aria-current] { font-weight: 700; }
.tabs a[aria-current] .mark { visibility: visible; }
.tabs .mark { visibility: hidden; }
.tabs span[aria-disabled] { color: #9A9A9A; }
