/* Open Orbit — editorial dashboard. Shared design, responsive touch-first layout. */
:root { --bg:#101213; --bg-grad:#101213; --glass-bg:#141617; --glass-bg-strong:#181b1d; --text:#f5f1e9; --text-muted:#a8aaa7; --accent:#dc8c70; --accent-hover:#eaa083; --accent-text:#201411; --link:#e4a48c; --glass-shadow:none; --radius:18px; }
:root[data-theme="light"] { --bg:#f4f1eb; --bg-grad:#f4f1eb; --glass-bg:#fffdf8; --glass-bg-strong:#ece8e0; --text:#232723; --text-muted:#626860; --accent:#aa4d32; --accent-hover:#8f3e28; --accent-text:#fff; --link:#943e29; }
body { font-size:1rem; line-height:1.5; }
a, button, input { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
header { background:var(--bg); padding:14px 0; }
header .container { max-width:1840px; padding-inline:32px; }
.brand { color:var(--text); }
.brand-mark { width:42px; height:42px; }
.brand-name { font-size:1.3rem; font-weight:500; letter-spacing:-.04em; }
.brand-hyphen { color:inherit; }
header nav ul li a { border-radius:0; padding:12px 14px; font-size:.9rem; }
header nav ul li a.active { background:transparent; color:var(--text); box-shadow:inset 0 -3px var(--accent); }
header nav ul li a:hover { border-color:transparent; }
.theme-toggle { padding:5px; min-width:48px; min-height:48px; font-size:1.8rem; border:0; background:transparent; box-shadow:none; }
section { box-shadow:none; padding:24px; }
main.container { padding-top:32px; }
main.container > section { max-width:none; }
section h1 { font-family:Georgia, 'Times New Roman', serif; font-weight:400; font-size:clamp(2rem,3vw,3rem); letter-spacing:-.035em; }
.chip-bar button { box-shadow:none; min-height:48px; }
.panel-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:20px; }
.panel-heading h2, .dashboard .panel-heading h2 { font:500 .69rem 'Manrope',sans-serif; line-height:1.5; letter-spacing:.14em; text-transform:uppercase; margin:0; color:var(--text-muted); }
.panel-heading > a { color:var(--text-muted); font-size:.72rem; text-underline-offset:5px; padding:10px 0; white-space:nowrap; }
.dashboard { max-width:1840px; margin:auto; padding:30px 28px 10px; }
.dashboard-intro { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:0 8px 24px; }
.dashboard-intro .eyebrow { font-size:.65rem; letter-spacing:.22em; }
.dashboard-intro h1 { font:400 clamp(2rem,3.2vw,3.2rem)/1.12 Georgia,serif; letter-spacing:-.04em; margin-top:8px; }
.location-pill { display:flex; gap:10px; align-items:center; border:1px solid var(--border); background:var(--surface-alt); border-radius:30px; padding:12px 18px; color:var(--text); text-decoration:none; font-size:.8rem; flex-shrink:0; }
.dashboard-top { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(0,1fr); gap:20px; align-items:start; }
.dashboard-top > section, .dashboard-bottom > section { min-width:0; }
.dashboard-bottom { display:grid; grid-template-columns:1.05fr 1fr 1.05fr; gap:20px; margin-top:20px; align-items:stretch; }
.editorial-news { padding:0; overflow:hidden; position:relative; }
.editorial-news .panel-heading { padding:12px 24px 0; margin-bottom:6px; }
.editorial-news #news-filters { position:relative; z-index:1; padding:0 24px; margin-bottom:14px; flex-wrap:nowrap; overflow:auto; }
.editorial-news #news-filters button { flex-shrink:0; font-size:.78rem; padding:10px 18px; }
.editorial-news .news-list { display:grid; grid-template-columns:1fr 1fr; gap:0; }
.editorial-news .news-item { margin:0; padding:0; border:0; min-width:0; }
.editorial-news .news-item:first-child { grid-column:1/-1; }
.editorial-news .news-item:first-child .news-card-link { position:relative; display:flex; align-items:flex-end; min-height:340px; height:clamp(320px,25vw,470px); padding:28px; background:#222b2a; isolation:isolate; border-radius:0; }
.editorial-news .news-item:first-child .news-card-link:after { content:''; position:absolute; inset:0; background:linear-gradient(transparent 15%,rgba(8,12,14,.9)); z-index:-1; }
.editorial-news .news-item:first-child .news-thumb { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; border-radius:0; }
.editorial-news .news-item:first-child .news-body { max-width:95%; }
.editorial-news .news-item:first-child .news-title { font:400 clamp(1.6rem,2.5vw,2.6rem)/1.12 Georgia,serif; letter-spacing:-.025em; color:#fffaf2; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.editorial-news .news-item:first-child .news-date { color:#ded9d1; font-size:.7rem; margin-top:12px; }
.editorial-news .news-summary { display:none; }
.editorial-news .news-item:not(:first-child) .news-card-link { display:flex; align-items:center; padding:20px; height:100%; gap:16px; border-radius:0; }
.editorial-news .news-item:nth-child(2n+3) { border-left:1px solid var(--border); }
.editorial-news .news-item:not(:first-child) .news-thumb { width:100px; height:88px; object-fit:cover; border-radius:8px; flex-shrink:0; }
.editorial-news .news-item:not(:first-child) .news-title { font:400 1.05rem/1.3 Georgia,serif; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.editorial-news .news-date { font-size:.62rem; margin-top:8px; }
.editorial-news .news-no-image:first-child .news-card-link { background:linear-gradient(135deg,#293532,#372923); }
.dashboard-weather { display:flex; flex-direction:column; }
.weather-place { font:400 1.55rem Georgia,serif; text-align:left; margin:0 0 12px; }
.dashboard-weather .weather-box { text-align:left; }
.dashboard-weather .weather-main { justify-content:space-between; flex-direction:row-reverse; margin:0 0 16px; }
.dashboard-weather .weather-icon { width:100px; height:100px; }
.dashboard-weather .weather-temp { font-weight:400; font-size:clamp(3.4rem,5.7vw,5.5rem); line-height:1; letter-spacing:-.06em; }
.dashboard-weather .weather-unit-toggle { padding:8px 12px; min-height:44px; }
.dashboard-weather .weather-condition { margin-top:12px; font-size:.9rem; }
.weather-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; border-block:1px solid var(--border); padding:18px 0; margin-top:16px; }
.weather-metrics div+div { border-left:1px solid var(--border); padding-left:12px; }
.weather-metrics strong { display:block; font-size:.9rem; font-weight:500; }
.weather-metrics span { display:block; font-size:.65rem; color:var(--text-muted); margin-top:5px; }
.dashboard-weather #hourly-forecast { flex:1; margin-top:22px; }
.dashboard-weather .temperature-chart { min-width:0; }
.dashboard-weather .temperature-chart-scroll { margin:4px 0; }
.dashboard-weather .temperature-label { font-size:17px; }
.chart-caption { font-size:.6rem; letter-spacing:.15em; }
.forecast-link { display:flex; justify-content:space-between; padding-top:18px; border-top:1px solid var(--border); color:var(--text-muted); font-size:.8rem; text-decoration:none; }
.watch-shortcuts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.watch-shortcut { background:var(--surface-alt); border:1px solid var(--border); border-radius:12px; text-align:center; min-width:0; overflow:hidden; }
.watch-shortcut a { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:22px 5px 0; gap:18px; text-decoration:none; color:var(--text); font-size:.7rem; min-height:120px; }
.watch-shortcut img { width:64px; max-width:90%; height:44px; object-fit:contain; }
.shortcut-favorite { display:block; width:100%; background:transparent; color:var(--text-muted); box-shadow:none; font-size:1.3rem; padding:3px; min-height:48px; }
.shortcut-favorite[aria-pressed=true] { color:var(--accent); }
.panel-note { color:var(--text-muted); font-size:.67rem; margin-top:18px; }
.charging-illustration { height:114px; overflow:hidden; border-radius:10px; background:#1c2729; }
.charging-illustration svg { width:100%; height:100%; }
.map-park { fill:#233c33; }
.map-road { stroke:#52615c; stroke-width:8; fill:none; }
.map-road path+path { stroke:#6e7871; stroke-width:5; }
.map-pin { fill:#dc8c70; stroke:#f4c9b5; stroke-width:2; }
.map-bolt { fill:#211a16; }
.dashboard-charging h3 { font:400 1.35rem Georgia,serif; margin-top:18px; }
.dashboard-charging p { color:var(--text-muted); font-size:.75rem; margin:8px 0 16px; }
.primary-link { display:inline-flex; justify-content:center; align-items:center; min-height:48px; padding:10px 20px; background:var(--accent); color:var(--accent-text); border-radius:12px; text-decoration:none; font-size:.8rem; font-weight:600; }
.dashboard-scores .chip-bar { gap:5px; margin-bottom:12px; }
.dashboard-scores .chip-bar button { padding:8px 14px; font-size:.7rem; min-height:44px; }
.dashboard-scores .scores-league-label { display:none; }
.dashboard-scores .score-item { padding:12px 0; border:0; border-top:1px solid var(--border); border-radius:0; background:none; }
.dashboard-scores .score-teams { font-size:.85rem; }
.dashboard-scores .score-value { font-size:1.3rem; font-weight:700; }
.dashboard-scores .score-status { font-size:.65rem; }
.dashboard-scores .data-status { font-size:.58rem; margin-top:12px; }
.dashboard-market { display:flex; gap:25px; align-items:center; margin-top:20px; padding:12px 24px; }
.dashboard-market .panel-heading { flex:0 0 130px; flex-direction:column; align-items:flex-start; gap:0; margin:0; }
.dashboard-market .stocks-table { display:block; flex:1; min-width:0; margin:0; }
.dashboard-market thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.dashboard-market tbody { display:flex; flex-wrap:wrap; gap:0; }
.dashboard-market tr { display:flex; align-items:center; justify-content:space-between; flex:1 1 200px; padding:10px 18px; gap:14px; border-left:1px solid var(--border); }
.dashboard-market td { border:0; padding:0; font-size:.8rem; white-space:nowrap; }
.dashboard-market .stock-detail-row { flex-basis:100%; }
.dashboard-market .stock-detail-row td { white-space:normal; }
footer { font-size:.7rem; }
footer a { color:var(--text-muted); }
@media(min-width:1600px) { .dashboard { padding-inline:40px; } .dashboard-bottom { grid-template-columns:1.05fr 1fr 1.05fr; } }
@media(max-width:1100px) { header .container { padding-inline:20px; } header nav ul { gap:0; } header nav ul li a { padding-inline:10px; } .dashboard { padding-inline:18px; } .dashboard-top { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); } .editorial-news .news-item:not(:first-child) .news-card-link { flex-direction:column; align-items:flex-start; } .editorial-news .news-item:not(:first-child) .news-thumb { width:100%; height:80px; } .dashboard-bottom { grid-template-columns:1fr 1fr; } .dashboard-scores { grid-column:1/-1; } .dashboard-scores .scores-list { display:grid; grid-template-columns:1fr 1fr; gap:24px; } }
@media(max-width:760px) { header { position:relative; } header .container { gap:8px; } header .nav-row { width:100%; flex-wrap:nowrap; gap:4px; } header nav { flex:1; min-width:0; overflow:auto; } header nav ul { flex-wrap:nowrap; } header nav a { white-space:nowrap; } .dashboard-intro { align-items:flex-start; flex-direction:column; gap:14px; } .dashboard-top,.dashboard-bottom { grid-template-columns:1fr; } .dashboard-scores { grid-column:auto; } .dashboard-scores .scores-list { display:block; } .dashboard-market { align-items:stretch; flex-direction:column; gap:6px; } .dashboard-market .panel-heading { flex-basis:auto; flex-direction:row; align-items:center; } .dashboard-weather .weather-temp { font-size:4.5rem; } .dashboard-weather .temperature-chart { max-height:240px; } .editorial-news .news-item:not(:first-child) .news-card-link { padding:14px; } section { padding:20px; } .dashboard-market tr { flex-basis:100%; border-left:0; border-top:1px solid var(--border); } }
@media(prefers-reduced-motion:reduce) { *, *:before, *:after { transition:none !important; scroll-behavior:auto !important; } }
/* Keep the forecast chart above the compact weather metrics, as in the concept. */
.dashboard-weather .weather-box { display:contents; }
.dashboard-weather .panel-heading { order:0; }
.dashboard-weather .weather-place { order:1; }
.dashboard-weather .weather-main { order:2; }
.dashboard-weather #hourly-forecast { order:3; }
.dashboard-weather .weather-metrics { order:4; margin-bottom:18px; }
.dashboard-weather .forecast-link { order:5; border-top:0; padding-top:0; }
.dashboard-weather .weather-box > .error-message, .dashboard-weather .weather-box > .retry-button { order:1; }
.dashboard-weather .weather-box > p { order:1; }
/* Dedicated pages inherit the same refined typography and touch sizing. */
.news-section .news-title { font-family:Georgia,serif; font-weight:400; font-size:1.45rem; line-height:1.25; }
.news-section .news-card-link { align-items:center; }
.media-service .media-tile { min-height:132px; }
.media-favorite { box-shadow:none; }
.score-item { transition:border-color .15s ease, background .15s ease; }
.score-item:hover { border-color:var(--accent); }
.score-team-logo { background:#eeeae2; }
.location-search-controls input { padding:12px 16px; font:inherit; color:var(--text); border:1px solid var(--border); border-radius:10px; background:var(--surface-alt); }
@media(max-width:640px) { .news-section .news-card-link { align-items:flex-start; } }

.weather-location-status { color:var(--text-muted); font-size:.72rem; margin-bottom:10px; }
.dashboard-weather .weather-location-status { order:1; }
.weather-location-controls { margin-top:14px; }
.dashboard-weather .weather-location-controls { order:6; }
.weather-location-controls summary { cursor:pointer; padding:12px 0; min-height:44px; color:var(--link); font-size:.8rem; }
.weather-location-controls form { margin-top:12px; }
.weather-location-controls label { width:100%; }
.weather-location-controls input { min-width:0; width:100%; }

.precipitation-bar { fill:#78b9de; }
.precipitation-grid { stroke:var(--border); stroke-width:1; stroke-dasharray:3 4; }
.precipitation-label, .precipitation-value { fill:#8ec7e7; font:14px 'Manrope',sans-serif; }
.precipitation-value { font-size:12px; }
.precipitation-axis { fill:var(--text-muted); font-size:12px; }
:root[data-theme="light"] .precipitation-bar { fill:#287ca8; }
:root[data-theme="light"] .precipitation-label, :root[data-theme="light"] .precipitation-value { fill:#21658a; }
.dashboard-weather .temperature-chart { max-height:none; }

/* Additional stories form consistent rows rather than a stretched empty panel. */
.editorial-news .news-item:nth-child(n+4) { border-top:1px solid var(--border); }
@media(max-width:540px) {
  .editorial-news .news-list { grid-template-columns:1fr; }
  .editorial-news .news-item:nth-child(2n+3) { border-left:0; }
  .editorial-news .news-item:nth-child(n+3) { border-top:1px solid var(--border); }
  .editorial-news .news-item:not(:first-child) .news-card-link { flex-direction:row; align-items:center; }
  .editorial-news .news-item:not(:first-child) .news-thumb { width:88px; height:80px; }
}

/* News panel follows its content rather than the adjacent forecast height. */
.editorial-news { align-self:start; }
.editorial-news .news-list { align-content:start; grid-auto-rows:auto; }

/* Compact Today forecast; location editing stays an explicit disclosure. */
.dashboard-weather { padding:20px 24px; }
.dashboard-weather .panel-heading { margin-bottom:10px; }
.dashboard-weather .weather-place { margin-bottom:6px; }
.dashboard-weather .weather-location-status { margin-bottom:6px; font-size:.67rem; line-height:1.4; }
.dashboard-weather .weather-main { margin-bottom:6px; }
.dashboard-weather .weather-temp { font-size:clamp(3.4rem,5vw,4.6rem); }
.dashboard-weather .weather-icon { width:80px; height:80px; }
.dashboard-weather .weather-condition { margin-top:6px; }
.dashboard-weather #hourly-forecast { flex:0 0 auto; margin-top:12px; }
.dashboard-weather .weather-metrics { padding:12px 0; margin-top:8px; margin-bottom:10px; }
.dashboard-weather .weather-location-controls { margin-top:2px; }
.dashboard-weather .forecast-link { min-height:44px; align-items:center; }

/* Preserve each service's logo contrast independently of the surrounding theme. */
.watch-shortcut .shortcut-logo { display:flex; align-items:center; justify-content:center; width:72px; max-width:100%; height:64px; flex-shrink:0; border-radius:12px; border:1px solid rgba(255,255,255,.12); }
.watch-shortcut .shortcut-logo img { display:block; width:auto; height:auto; max-width:85%; max-height:44px; object-fit:contain; }
.watch-shortcut .shortcut-logo-fallback { background:#232f3e; color:#fff; font-size:1.15rem; font-weight:700; }
:root[data-theme="light"] .watch-shortcut .shortcut-logo { border-color:rgba(0,0,0,.12); }
/* Watchlist: readable cards with explicit actions, replacing the cramped ticker. */
.dashboard-market { display:block; padding:22px 24px; }
.dashboard-market .panel-heading { display:flex; flex-direction:row; align-items:center; margin-bottom:16px; }
.watchlist-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:14px; align-items:start; }
.quote-card { min-width:0; padding:18px; border:1px solid var(--border); border-radius:14px; background:var(--surface-alt); }
.quote-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.quote-heading h3 { font-size:1.1rem; letter-spacing:.03em; }
.quote-heading p, .quote-time { color:var(--text-muted); font-size:.72rem; }
.quote-remove { min-height:44px; padding:8px 10px; background:transparent; color:var(--text-muted); border:1px solid var(--border); box-shadow:none; font-size:.72rem; }
.quote-remove:hover { color:var(--text); border-color:var(--accent); }
.quote-price { margin-top:18px; font-size:1.8rem; line-height:1.2; font-variant-numeric:tabular-nums; }
.quote-change { margin-top:10px; font-size:.9rem; font-weight:600; }
.quote-change span { display:block; color:var(--text-muted); font-size:.65rem; font-weight:400; margin-top:2px; }
.quote-up { color:var(--up); } .quote-down { color:var(--down); } .quote-flat { color:var(--text-muted); }
.quote-time { margin-top:12px; }
.quote-details { margin-top:12px; border-top:1px solid var(--border); }
.quote-details summary { cursor:pointer; min-height:44px; padding:12px 0; font-size:.8rem; color:var(--link); }
.quote-details dl { margin-top:4px; font-size:.8rem; }
.quote-details dl div { display:flex; justify-content:space-between; gap:8px; padding:5px 0; }
.quote-details dt { color:var(--text-muted); }
.quote-details dd { font-variant-numeric:tabular-nums; }
.quote-unavailable, .watchlist-empty { font-size:.85rem; color:var(--text-muted); margin:12px 0; }
.quote-retry { margin-top:6px; font-size:.8rem; }
.stock-feedback:not(:empty) { padding:10px 0 18px; color:var(--text-muted); font-size:.85rem; }
.stock-input-label { width:100%; font-size:.8rem; color:var(--text-muted); }

.quote-news-heading { margin:16px 0 8px; padding-top:12px; border-top:1px solid var(--border); font-size:.8rem; }
.quote-news { font-size:.78rem; color:var(--text-muted); }
.quote-news ul { list-style:none; }
.quote-news li + li { margin-top:12px; padding-top:12px; border-top:1px solid var(--border); }
.quote-news a { display:block; color:var(--text); text-decoration:none; line-height:1.5; padding:6px 0; }
.quote-news a:hover { color:var(--link); text-decoration:underline; }
.quote-news li span { display:block; margin-top:3px; font-size:.65rem; }
.quote-news .retry-button { font-size:.75rem; }

.analytics-choice { position:fixed; bottom:16px; left:16px; right:16px; z-index:50; display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:18px; background:var(--glass-bg-strong); color:var(--text); border:1px solid var(--border); border-radius:14px; box-shadow:0 8px 40px #0005; }
.analytics-choice[hidden] { display:none; }
.analytics-choice p { flex:1 1 320px; font-size:.85rem; }
.analytics-choice button { min-height:48px; }
.analytics-settings { background:transparent; color:var(--text-muted); box-shadow:none; font-size:.75rem; text-decoration:underline; }
.waze-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; }
.waze-heading h1 { margin-bottom:8px; }
.waze-section .location-search { display:block; margin-top:24px; }
.waze-map { display:block; width:100%; height:clamp(360px,65vh,850px); border:1px solid var(--border); border-radius:14px; margin-top:16px; background:var(--surface-alt); }
.waze-destination { margin-top:24px; padding-top:20px; border-top:1px solid var(--border); }
.waze-destination label { width:100%; font-size:.85rem; }
@media(max-width:760px) { .waze-section { padding:16px; } .waze-map { height:60vh; min-height:320px; } }

/* Font-independent icons for the in-car browser. */
.theme-toggle svg { display:block; margin:auto; pointer-events:none; }
.location-pill > svg { flex-shrink:0; }
