/* Demo-only additions to the frame dashboard's own app.css. */

/* The made-up stations use the Q and 4, which the real app has no bullet colours for. */
.bullet.Q { background: #fccc0a; color: #111; }
.bullet.\34 { background: #00933c; }

/* In a page, the stage should not be clickable-looking text. */
html, body { overscroll-behavior: none; }

/* The tour's tap marker: a ring that shows where the self-running demo is about to press. */
.demo-tap {
  position: fixed; z-index: 50; pointer-events: none;
  width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.18);
  animation: demo-tap 900ms ease-out forwards;
}
@keyframes demo-tap {
  0% { transform: scale(1.6); opacity: 0; }
  35% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0; }
}

/* ---------- narrow embeds (phones): one column, 540px wide, scaled by width ---------- */
body.narrow { overflow: hidden; }
/* The standalone page on a phone scrolls; the stage is absolutely placed, so its scaled size sets the scroll height. */
html.scroll-doc { height: auto; overflow-x: hidden; overflow-y: auto; }
html.scroll-doc body { height: auto; overflow: visible; }

/* Keyboard focus (keys.js gives the touch controls a tab stop). The stage is scaled down, so the ring is thick. */
#stage [tabindex="0"]:focus-visible, #stage button:focus-visible, #bright-btn:focus-visible {
  outline: 4px solid var(--amber); outline-offset: 3px; border-radius: 14px;
}
#stage [tabindex="0"]:focus:not(:focus-visible) { outline: none; }
body.narrow #stage {
  width: 540px; height: auto;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px; padding: 26px 22px 28px;
}
body.narrow #main {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 470px;
  gap: 26px;
}
body.narrow #now { align-self: start; padding: 8px 0 0 50px; }
body.narrow #clock { font-size: 128px; margin-left: -6px; }
body.narrow #ampm { font-size: 38px; margin-left: 12px; }
body.narrow #date { margin-top: 14px; font-size: 32px; }
body.narrow #weather { grid-column: 1; grid-row: 2; }
body.narrow #today { grid-column: 1; grid-row: 3; }
body.narrow #legend { gap: 12px; font-size: 18px; }
body.narrow .ev { grid-template-columns: 118px minmax(0, 1fr); }
body.narrow .ev .where { grid-column: 2; max-width: none; }
body.narrow #wx-panel { left: 0; width: auto; }
body.narrow #side { gap: 26px; }
body.narrow #list-items { overflow: visible; }

/* Sheets: full width, placed near where the tap happened (demo.js sets the top margin). */
body.narrow #sheet { align-items: flex-start; }
body.narrow .sheet-card { width: calc(100% - 28px); max-height: none; padding: 30px 26px 30px; border-radius: 24px; }
body.narrow .sheet-close { top: 16px; right: 16px; width: 52px; height: 52px; }
body.narrow .sheet-card h3 { font-size: 34px; padding-right: 60px; }
body.narrow .sheet-kicker { font-size: 20px; padding-right: 60px; flex-wrap: wrap; }
body.narrow .sheet-card dl { grid-template-columns: 96px 1fr; gap: 12px 16px; font-size: 23px; }
body.narrow .sheet-card p { font-size: 23px; }
body.narrow .sheet-alert .lead { font-size: 26px; }
body.narrow .dep { grid-template-columns: 100px 48px 1fr auto; gap: 0 12px; height: 62px; font-size: 22px; }
body.narrow .dep .bullet { width: 40px; height: 40px; font-size: 22px; }
body.narrow .add-who { flex-wrap: wrap; }
body.narrow .bright-presets { flex-wrap: wrap; }
body.narrow .dep .lb { white-space: nowrap; font-size: 19px; }
body.narrow .dep .in { font-size: 20px; }
/* The weather card is 40px narrower than on the frame: smaller temperature, "Hourly" moved to the corner. */
body.narrow #weather { position: relative; padding-top: 40px; }
body.narrow #wx-icon { width: 54px; height: 54px; }
body.narrow #wx-temp { font-size: 76px; }
body.narrow #wx-sub { font-size: 18px; }
body.narrow .wx-more { position: absolute; top: 12px; right: 20px; font-size: 16px; }
