/* ===========================================================
   overview.css — the one-screen overview (pages/overview.js)
   Desktop only, reached by clicking the logo. The app's menu bar
   and header step aside; everything fits the window, no scrolling.
   =========================================================== */

/* the logo is the (quiet) way in, on computers */
@media (pointer: fine) and (min-width: 900px) {
  .rail-logo { cursor: pointer; transition: transform var(--speed), filter var(--speed); }
  .rail-logo:hover { transform: scale(1.08); filter: drop-shadow(0 0 12px var(--a-glow)); }
}

/* the app steps aside */
:root[data-overview="on"] #app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; grid-template-areas: "page"; }
:root[data-overview="on"] .rail,
:root[data-overview="on"] .head { display: none; }
:root[data-overview="on"] #page-overview { padding: 14px 16px; overflow: hidden; }

.ov {
  height: 100%;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 2s ease, filter 3s ease;
  /* everything a notch smaller, so the whole picture fits */
  --fs-2xl: 30px; --fs-xl: 22px; --fs-lg: 16px;
}
.ov-top { display: flex; align-items: center; gap: 14px; }
.ov-place { color: var(--fg-hi); font-size: var(--fs-lg); letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.ov-place svg { color: var(--a); }
.ov-time { text-align: right; }
.ov-clock { font-size: 34px; font-weight: 600; color: var(--fg-hi); font-variant-numeric: tabular-nums; line-height: 1; text-shadow: 0 0 18px var(--a-glow); }
.ov-date { color: var(--fg-3); font-size: var(--fs-xs); margin-top: 3px; }
.ov-exit { opacity: .45; transition: opacity var(--speed); }
.ov-exit:hover, .ov-exit:focus-visible { opacity: 1; }

.ov-grid {
  flex: 1; min-height: 0;
  display: grid; gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, .9fr);   /* now · radar · the rest */
}
.ov-col { min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.ov-col > .widget { min-height: 0; }
/* side columns: boxes live in a wrapper scaled to fit (pages/overview.js) */
.ov-fit { display: flex; flex-direction: column; gap: 12px; transform-origin: top left; }
/* wall display: the long advice lines under each tile are for reading up close */
.ov .tile-tip { display: none; }
.ov-col .panel { margin: 0; }

.ov-radar { flex: 1 1 auto; min-height: 160px; display: flex; flex-direction: column; padding: 12px; }
.ov-radar .panel-title { margin-bottom: 8px; }
.ov-radar-map { position: relative; flex: 1; min-height: 0; border-radius: var(--r, 10px); overflow: hidden; }
.ov-radar-map .map-root { position: absolute; inset: 0; }
.ov-radar-time { color: var(--a); }

/* night: dimmer and calmer in a dark room */
:root[data-ov-night="on"] .ov { filter: brightness(.55) saturate(.8); }

@media (max-height: 760px) {
  .ov-grid { gap: 10px; }
  .ov-col { gap: 10px; }
}

/* Proto's strip: only the space between the place and the clock, never more */
.ov-quip { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 18px; overflow: hidden; }
.ov-quip .proto { flex: none; }
.ov-quip-bubble { min-width: 0; max-width: 760px; padding: 6px 14px; border: 1px solid var(--a-line); border-radius: 14px; background: var(--a-wash); }
.ov-quip-text { color: var(--fg-2); font-size: var(--fs-sm); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* the tour's first-open card waits behind the overview / screensaver */
:root[data-overview="on"] .tour-offer { display: none; }
