/* Visual standard (24 Oct 2026), loaded after style.css: Lato type, 4 px controls, the app bar in the same style as
   the reading pages' header. Cards that float over the map (library, workbench, popovers) keep their rounded corners
   and shadow — the one exception the standard makes. Reference: observatory-work/design/visual-standard.html. */
:root {
  --font-ui: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-narrow: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --r-ctl: 4px;
  --r-pill: 3px;
  --topbar-h: 64px;
}
b, strong { font-weight: 700; }
.eyebrow { font-weight: 900; font-size: 11px; letter-spacing: .12em; }

/* app bar: outlined mark, app name in the Outfit wordmark style, the Observatory under it */
#topbar { padding: 0 24px; }
.brand { gap: 12px; }
.brand-logo { width: 36px; height: 36px; }
.brand-wm { font: 400 13.5px/1.1 var(--font-brand); letter-spacing: .18em; }
.brand-sub { font: 400 11px/1.3 var(--font-ui); letter-spacing: .02em; text-transform: none; color: var(--muted); margin-top: 3px; }
.topact button { border-radius: var(--r-ctl); font-family: var(--font-ui); }
.topact .btn-plain { font-size: 14px; }

/* site links: a menu button in the app bar opens the same four links as the reading pages' header */
.obs-appmenu { position: relative; }
.obs-appmenu-card { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; z-index: 45; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-ctl); padding: 6px; display: grid; }
.obs-appmenu-card[hidden] { display: none; }
.obs-appmenu-card a { padding: 10px 12px; border-radius: var(--r-ctl); font-size: 15px; color: var(--text-2); text-decoration: none; }
.obs-appmenu-card a:hover { background: var(--surface-2); color: var(--ink); }
.obs-appmenu-card .lab { padding: 8px 12px 4px; font: 900 11px/1.2 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.obs-burger-i { display: inline-block; width: 16px; height: 1.5px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; vertical-align: middle; }

/* phone: the app name wraps to two lines so the bar's four buttons fit */
@media (max-width: 767px) {
  #topbar { padding: 0 12px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-logo { width: 30px; height: 30px; }
  .brand-wm { font-size: 11.5px; letter-spacing: .12em; white-space: normal; line-height: 1.25; max-width: 120px; text-align: left; }
  .topact { gap: 6px; }
  .topact button { min-width: 32px; height: 32px; }
  .topact .btn-plain { padding: 0 9px; font-size: 13px; }
}

/* library and workbench: flat panels — 4 px, hairline, no shadow (decided 24 Oct; popovers and map buttons keep theirs) */
.col { border-radius: var(--r-ctl); box-shadow: none; border: 1px solid var(--border); }
@media (max-width: 768px) {
  .col { border-radius: var(--r-ctl) var(--r-ctl) 0 0; box-shadow: none; border: 0; border-top: 1px solid var(--border); }
  #library { border-radius: 0; }
  .col.rail { border-radius: var(--r-ctl); box-shadow: none; border: 1px solid var(--border-2); }
}

/* "Live" (the main site's live page): a small pulsing green dot before the word (25 Oct 2026); still for reduced motion */
.obs-live { display: inline-flex; align-items: center; gap: 6px; }
.obs-live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #4A9447; flex: none; }
.obs-live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #4A9447; animation: obs-live-pulse 1.8s ease-out infinite; }
@keyframes obs-live-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .obs-live-dot::after { animation: none; } }
