/* Simple map (preview, Dec 2026): the map first, tools on request, one job per panel. */

/* top bar: search, sign in and one red button */
.utc-clock, .app-bar .sources-button { display: none !important; }

/* events panel: the day's count, the two "Coming soon" teasers as one-line rows (Giorgi, 5 Dec), then the events */
#events-latest-note { display: none !important; }
.latest-dock #today { margin: 4px 0 6px; padding: 12px 14px; }
.latest-dock #today .today-bars, .latest-dock #today .today-lines { display: none; }
.latest-dock #today .today-figure { margin: 6px 0 0; }
.latest-dock #today .today-figure strong { font-size: 1.6rem; }

/* sentence case, no spaced capitals */
.today > summary strong, .today > summary span, .feed-title, .briefs-tabs button, .brief-meta,
.latest-dock > summary, .brand-name, .region-list p {
  text-transform: none !important; letter-spacing: 0 !important; font-family: inherit !important;
}
.today > summary strong { font-weight: 700; }

/* More: language, Sources, Views, Measure, Expand */
.dock-tools .map-position { display: none !important; }
.dock-tools .dock-sources { display: inline-flex; }
.dock-tools .language-picker { display: flex; align-items: center; gap: 8px; }
.dock-tools .language-picker select { flex: 1; min-width: 0; background: transparent; color: inherit; border: 0; font: inherit; }

/* Layers: map style and 3D on top */
.simple-style { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 4px 2px 14px; margin-bottom: 10px; border-bottom: 1px solid var(--hair); }
.simple-style-title { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .8rem; }
.simple-style .basemap-switch { display: flex; margin: 0; }
.simple-style .basemap-switch button { flex: 1; min-height: 34px; }
.simple-style #terrain-3d { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; }

@media (min-width: 731px) {
  /* the rail keeps five items; the rest opens from More */
  #dock-more { display: flex; }
  .workspace:not(.show-more) .dock-tools { display: none; }
  .workspace.show-more .dock-tools {
    position: absolute; inset: auto auto 8px calc(100% + 8px); display: flex; flex-direction: column; gap: 2px;
    width: 230px; margin: 0; padding: 8px; border: 1px solid var(--hair); border-radius: 14px;
    background: var(--page); box-shadow: 0 18px 50px rgb(0 0 0 / 45%);
  }
  .workspace.show-more .dock-tools > :is(.tool-button, .language-picker),
  .workspace.show-more .dock-tools > details > summary {
    flex-direction: row; justify-content: flex-start; gap: 10px; width: 100%; min-height: 40px;
    padding: 0 10px; border-radius: 8px; text-align: start; font-size: .85rem;
  }
  .dock summary, .dock .tool-button, .dock-item { min-height: 64px; }
}

/* phones: the bar is Latest, Layers, Filters, History, Share, More */
@media (max-width: 730px) {
  .app-bar .language-picker { display: none; }
  .dock-tools .language-picker { flex: 1 1 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 10px; }
}

/* ===== Design pass (Dec 2026): red only for alarms, tabs in the side panel, calmer cards and corners ===== */

/* 1. red is for Go Pro, severe events and live only */
.latest-dock > summary::before, .today > summary strong::before { display: none !important; }
.latest-item .latest-place small { color: var(--muted) !important; font-family: inherit !important; }
.briefs.is-soon #briefs-when, .desk #desk-when, .briefs-soon-chip { border-color: var(--hair) !important; color: var(--muted) !important; }

/* 2. the side panel: Events · Country Desk · Intelligence Room */
.panel-tabs { position: sticky; top: 0; z-index: 2; display: flex; gap: 2px; margin: 0 -12px 8px; padding: 10px 12px;
  background: var(--page); border-bottom: 1px solid var(--hair); }
.panel-tabs button { flex: 1 1 auto; min-height: 32px; padding: 0 8px; border: 0; border-radius: 999px; background: none;
  color: var(--muted); font: 600 .78rem/1 Sora, sans-serif; white-space: nowrap; cursor: pointer; }
.panel-tabs button:hover { color: var(--text); }
.panel-tabs button[aria-selected="true"] { background: rgb(255 255 255 / 10%); color: #fff; }
.latest-dock .latest-panel > .panel-tabs { order: 0; }
.latest-panel[data-tab="events"] :is(#desk, #briefs) { display: none !important; }
.latest-panel:not([data-tab="events"]) :is(#today, #pro-lock, #events-latest-list) { display: none !important; }
.latest-panel[data-tab="desk"] #briefs, .latest-panel[data-tab="room"] #desk { display: none !important; }
.latest-panel:not([data-tab="events"]) :is(#desk, #briefs) { border: 0; background: none; padding: 4px 2px; }
.latest-panel:not([data-tab="events"]) :is(#desk, #briefs) > summary { pointer-events: none; }

/* 3. event cards: place first, one calm line, small icon */
.latest-dock .latest-list .latest-item { gap: 2px 12px; padding: 12px 8px; }
.latest-item img { width: 22px !important; height: 22px !important; margin-top: 3px !important; }
.latest-item .latest-place { font-size: .95rem; letter-spacing: -.01em; }
.latest-item .latest-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--soft, #c9d0db); }
.latest-item .latest-source { font-weight: 500; font-size: .72rem; }

/* 5. quieter corners: map sources behind a small ⓘ (zoom buttons stay, Giorgi 5 Dec) */
.attribution { cursor: default; }
.attribution:not(:hover):not(:focus-within) { font-size: 0; padding: 0; background: none; border: 0; }
.attribution:not(:hover):not(:focus-within) > * { display: none; }
.attribution:not(:hover):not(:focus-within)::before { content: "i"; display: grid; place-items: center; width: 22px; height: 22px; margin: 6px;
  border: 1px solid var(--hair); border-radius: 50%; background: var(--glass); color: var(--muted); font: italic 600 12px/1 Georgia, serif; }

/* 6. loading: no big spinning logo, just a small note over the dark map */
.map-status.is-splash .splash-logo { display: none; }
.map-status.is-splash { inset: auto auto 50% 50%; transform: translate(-50%, 50%); padding: 8px 16px; border-radius: 999px !important; }

/* 7. panels are solid enough to read over the map; no number badge on Layers */
.events-panel, .history-panel, .layers-panel, .dock-tools { background: rgb(8 11 17 / 94%) !important; }
.dock .layers-total { display: none !important; }

/* 4. phones: one top row (logo, search, Go Pro); Regions and Sign in live in More / search */
@media (max-width: 730px) {
  .app-bar > nav, .app-bar .heading-tools > .account-link { display: none !important; }
  .dock-tools .account-link { flex: 1 1 22%; justify-content: center; border-radius: 10px; }
}
