/* GoGo design system — shared by the website and the Android app (copied by scripts/sync-android-web.mjs).
   Layout lives in each app's own stylesheet; colors, type and components live here. */
:root{
 color-scheme:dark;
 --bg:#0a0a0a;--surface:#121212;--surface-2:#1a1a1a;--surface-3:#242424;--surface-4:#2e2e2e;
 --line:#2c2c2c;--line-soft:#1f1f1f;--text:#f5f5f2;--text-2:#d6d6d1;--muted:#9d9d97;--faint:#6d6d68;
 --yellow:#f4c542;--yellow-soft:#ffe082;--yellow-dark:#c99a18;--yellow-tint:#f4c5421f;--on-yellow:#0b0b09;
 --danger:#ff7a59;--ok:#7fd49a;
 --radius-s:10px;--radius:14px;--radius-l:20px;--radius-xl:28px;
 --shadow:0 18px 50px #000000a6;--shadow-s:0 8px 22px #00000080;
 --font:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
 --ease:cubic-bezier(.2,.8,.2,1);
 --accent-ink:#f4c542;--accent-soft-ink:#ffe082;
 --header-bg:#0a0a0ae6;--overlay:#111111ee;--overlay-strong:#151515f0;--popover:#161616;--field-focus:#1d1d1d;
 --banner:#141414;--then:#101010;--sheet:#0e0e0e;--footer:#080808;--cta-a:#1a1608;
 --map-bg:#090909;--backdrop:#000000b8;--tile-filter:grayscale(1) invert(.9) brightness(.72) contrast(.95);
}
:root[data-theme=light]{
 color-scheme:light;
 --bg:#f4f3ef;--surface:#ffffff;--surface-2:#f0efea;--surface-3:#e6e4de;--surface-4:#d3d0c7;
 --line:#dcd9d1;--line-soft:#e8e6e0;--text:#151513;--text-2:#36352f;--muted:#66645d;--faint:#8f8d85;
 --yellow-tint:#f4c54238;--accent-ink:#8c5f00;--accent-soft-ink:#8c5f00;
 --danger:#c2410c;--ok:#15803d;
 --shadow:0 18px 50px #3a33201f;--shadow-s:0 6px 18px #3a33201a;
 --header-bg:#f4f3efe6;--overlay:#ffffffee;--overlay-strong:#fffffff2;--popover:#ffffff;--field-focus:#ffffff;
 --banner:#ffffff;--then:#faf9f6;--sheet:#fbfaf7;--footer:#ecebe6;--cta-a:#fff3cc;
 --map-bg:#dedcd5;--backdrop:#1a181259;--tile-filter:grayscale(.55) contrast(.95) brightness(1.02);
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
::selection{color:var(--on-yellow);background:var(--yellow)}
:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Brand */
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;font-weight:800;font-size:21px;letter-spacing:-.6px}
.brand-mark{display:block;width:30px;height:30px;flex:none}

/* Theme toggle */
.theme-toggle{display:grid;place-items:center;width:40px;height:40px;flex:none;padding:0;color:var(--text-2);background:var(--surface-2);border:1px solid var(--line);border-radius:12px;cursor:pointer;transition:background .15s,color .15s}
.theme-toggle:hover{color:var(--text);background:var(--surface-3)}
.theme-toggle svg{width:19px;height:19px}
.theme-toggle .icon-moon,:root[data-theme=light] .theme-toggle .icon-sun{display:none}
:root[data-theme=light] .theme-toggle .icon-moon{display:block}

/* Buttons */
.btn,button{font:inherit}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 18px;font-weight:650;font-size:15px;line-height:1.1;color:var(--text);text-decoration:none;background:var(--surface-2);border:1px solid var(--line);border-radius:12px;cursor:pointer;transition:background .15s,border-color .15s,transform .15s var(--ease)}
.btn:hover{background:var(--surface-3)}.btn:active{transform:scale(.98)}
.btn-primary{color:var(--on-yellow);background:var(--yellow);border-color:var(--yellow)}.btn-primary:hover{background:var(--yellow-soft);border-color:var(--yellow-soft)}
.btn-ghost{background:transparent;border-color:transparent;color:var(--text-2)}.btn-ghost:hover{background:var(--surface-2)}
.btn svg{width:18px;height:18px;flex:none}

/* Form labels */
.field{display:block;margin:0 0 16px;padding:0;border:0;min-width:0}
.field-label{display:block;margin:0 0 7px;padding:0;font-size:12px;font-weight:650;letter-spacing:.02em;color:var(--muted)}

/* Live search (place-search.js) */
.search{position:relative}
.search-box{display:flex;align-items:center;gap:10px;min-height:48px;padding:0 6px 0 14px;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius);transition:border-color .15s,box-shadow .15s,background .15s}
.search:focus-within .search-box{border-color:var(--yellow);box-shadow:0 0 0 3px var(--yellow-tint);background:var(--field-focus)}
.search-box>svg{width:18px;height:18px;flex:none;color:var(--muted)}
.search:focus-within .search-box>svg{color:var(--accent-ink)}
.search input{flex:1;min-width:0;width:100%;height:46px;margin:0;padding:0;font:inherit;font-size:15px;color:var(--text);background:transparent;border:0;outline:0;box-shadow:none}
.search input::placeholder{color:var(--faint)}
.search-clear{display:none;place-items:center;width:34px;height:34px;min-height:0;padding:0;color:var(--muted);background:transparent;border:0;border-radius:9px;cursor:pointer}
.search-clear:hover{color:var(--text);background:var(--surface-3)}.search-clear svg{width:16px;height:16px}
.search.filled:focus-within .search-clear,.search.filled:hover .search-clear{display:grid}
.search-results{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:40;max-height:min(360px,55vh);margin:0;padding:6px;overflow:auto;list-style:none;background:var(--popover);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);animation:pop .14s var(--ease);overscroll-behavior:contain;scrollbar-width:thin}
@keyframes pop{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.search-heading{padding:9px 10px 5px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--faint)}
.search-option{display:flex;align-items:center;gap:12px;min-height:50px;padding:7px 10px;border-radius:10px;cursor:pointer}
.search-option:hover,.search-option[aria-selected=true]{background:var(--surface-3)}
.search-option-icon{display:block;width:34px;height:34px;padding:8px;flex:none;color:var(--text-2);background:var(--surface-2);border:1px solid var(--line);border-radius:10px}
.search-option[data-kind=bathroom] .search-option-icon,.search-option[data-kind=exit] .search-option-icon,.search-option[data-kind=entrance] .search-option-icon{color:var(--accent-ink)}
.search-option-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.search-option-title{overflow:hidden;font-size:14.5px;font-weight:600;color:var(--text);text-overflow:ellipsis;white-space:nowrap}
.search-option-title mark{color:var(--accent-ink);background:none}
.search-option-sub{overflow:hidden;font-size:12.5px;color:var(--muted);text-overflow:ellipsis;white-space:nowrap}
.search-option-badge,.badge{flex:none;padding:3px 7px;font-size:11px;font-weight:700;letter-spacing:.03em;color:var(--text-2);background:var(--surface-2);border:1px solid var(--line);border-radius:7px}
.search-empty{padding:16px 12px;font-size:14px;color:var(--muted)}

/* Chips */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 12px;font-size:13px;font-weight:600;color:var(--text-2);background:var(--surface-2);border:1px solid var(--line);border-radius:999px;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.chip:hover{color:var(--text);background:var(--surface-3)}.chip svg{width:16px;height:16px;color:var(--accent-ink)}
.chip[aria-pressed=true]{color:var(--on-yellow);background:var(--yellow);border-color:var(--yellow)}.chip[aria-pressed=true] svg{color:var(--on-yellow)}

/* Segmented control (access needs) */
.segmented{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius)}
.segmented button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:62px;padding:8px 4px;font-size:12.5px;font-weight:650;line-height:1.15;text-align:center;color:var(--muted);background:transparent;border:0;border-radius:10px;cursor:pointer;transition:background .15s,color .15s}
.segmented button svg{width:20px;height:20px}
.segmented button:hover{color:var(--text)}
.segmented button[aria-pressed=true]{color:var(--on-yellow);background:var(--yellow)}

/* Accessibility score */
.score-card{margin:0 0 18px;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius)}
.score-card summary{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 12px;padding:13px 14px;cursor:pointer;list-style:none}
.score-card summary::-webkit-details-marker{display:none}
.score-label{font-size:12px;font-weight:650;color:var(--muted)}
.score-value{grid-row:span 2;font-size:26px;font-weight:800;letter-spacing:-.8px;color:var(--accent-ink)}
.score-value small{font-size:13px;font-weight:650;color:var(--muted);letter-spacing:0}
.score-more{display:inline-flex;align-items:center;gap:4px;font-size:12.5px;color:var(--text-2)}
.score-more::after{content:"";width:7px;height:7px;margin-top:-3px;border:solid currentColor;border-width:0 1.6px 1.6px 0;transform:rotate(45deg);transition:transform .2s}
.score-card[open] .score-more::after{margin-top:3px;transform:rotate(-135deg)}
.score-body{padding:0 14px 14px;font-size:13px;line-height:1.5;color:var(--muted)}
.score-body ul{display:grid;gap:7px;margin:0 0 10px;padding:0;list-style:none}
.score-body li{display:flex;align-items:center;gap:9px;color:var(--text-2)}
.score-body li::before{content:"";width:6px;height:6px;flex:none;background:var(--yellow);border-radius:50%}
.score-body p{margin:0}

/* Notices */
.notice{display:flex;gap:10px;margin:12px 0 0;padding:11px 12px;font-size:12.5px;line-height:1.45;color:var(--text-2);background:#f4c5420d;border:1px solid #f4c54233;border-radius:12px}
.notice svg{width:17px;height:17px;flex:none;margin-top:1px;color:var(--accent-ink)}
.route-preview{display:flex;align-items:center;gap:8px;min-height:20px;margin:14px 0 0;font-size:13.5px;color:var(--muted)}
.route-preview strong{color:var(--text);font-weight:700}
.route-preview .dot{width:3px;height:3px;background:var(--faint);border-radius:50%}
.route-preview.error{color:var(--danger)}

/* Navigation banner (maneuver) */
.nav-banner{display:flex;align-items:center;gap:14px;padding:14px 16px;background:var(--banner);border-bottom:1px solid var(--line-soft)}
.nav-icon{display:grid;place-items:center;width:56px;height:56px;flex:none;color:var(--on-yellow);background:var(--yellow);border-radius:16px;transition:transform .25s var(--ease)}
.nav-icon svg{width:32px;height:32px}
.nav-banner.changed .nav-icon{animation:nudge .35s var(--ease)}
@keyframes nudge{0%{transform:scale(.86)}100%{transform:scale(1)}}
.nav-text{min-width:0;flex:1}
.nav-distance{margin:0 0 2px;font-size:13px;font-weight:700;letter-spacing:.02em;color:var(--accent-soft-ink);font-variant-numeric:tabular-nums}
.nav-text h1,.nav-text h2{margin:0;font-size:22px;font-weight:750;line-height:1.2;letter-spacing:-.4px;color:var(--text)}
.nav-then{display:flex;align-items:center;gap:8px;padding:8px 16px;font-size:13px;color:var(--text-2);background:var(--then);border-bottom:1px solid var(--line-soft)}
.nav-then svg{width:17px;height:17px;color:var(--accent-ink)}
.nav-then span:first-child{color:var(--muted)}
.nav-banner.arrived .nav-icon{background:var(--ok)}

/* Trip sheet */
.trip-sheet{padding:16px 18px 18px;background:var(--sheet);border-top:1px solid var(--line-soft)}
.trip-summary{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
.trip-eta{font-size:24px;font-weight:800;letter-spacing:-.6px;color:var(--ok);font-variant-numeric:tabular-nums}
.trip-meta{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}
.trip-progress{height:4px;margin:12px 0 12px;overflow:hidden;background:var(--surface-3);border-radius:4px}
.trip-progress span{display:block;width:0;height:100%;background:var(--yellow);border-radius:4px;transition:width .5s var(--ease)}
.trip-dest{display:flex;align-items:center;gap:10px;min-width:0;font-size:14px;color:var(--text-2)}
.trip-dest svg{width:18px;height:18px;flex:none;color:var(--accent-ink)}
.trip-dest span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.trip-actions{display:grid;grid-template-columns:52px 1fr 52px;gap:8px;margin-top:14px}
.trip-actions button{display:grid;place-items:center;min-height:50px;padding:0 12px;font-size:15px;font-weight:700;color:var(--text);background:var(--surface-2);border:1px solid var(--line);border-radius:14px;cursor:pointer}
.trip-actions button:hover{background:var(--surface-3)}
.trip-actions button svg{width:21px;height:21px}
.trip-actions .primary,.trip-actions .primary:hover{color:var(--on-yellow);background:var(--yellow);border-color:var(--yellow)}
.trip-actions button:disabled{opacity:.35;cursor:default}

/* iOS zooms into any field under 16px; keep text inputs at 16px there. */
@supports(-webkit-touch-callout:none){input,select,textarea{font-size:max(16px,1em)!important}}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
