/* Visual standard (24 Oct 2026) for the data site's pages: the same header bar, footer bar, Lato type and flat
   4 px look as the main site, tools and stories (their src/styles/standard.css). Loaded after each page's own
   <style>. Reference: observatory-work/design/visual-standard.html. */

:root {
  --canvas: #FFFFFF; --band: #FAFAFB;
  --r-card: 4px; --r-ctl: 4px;
  --shadow-card: none; --shadow-card-hover: none;
  --font-ui: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-narrow: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --measure: 680px;
}
html, body { background: var(--canvas); font-family: var(--font-ui); font-size: 16px; line-height: 1.6; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--border-2, #D1D5DB); text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* header bar */
.obs-header { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--border); box-sizing: border-box; }
@media (min-width: 768px) { .obs-header { padding: 0 48px; } }
.obs-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.obs-brand:hover { text-decoration: none; }
.obs-logo { display: block; width: 36px; height: 36px; flex: none; }
.obs-logo svg { width: 100%; height: 100%; display: block; }
.obs-word { font: 400 13.5px/1 'Outfit', 'Helvetica Neue', sans-serif; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obs-nav { display: none; align-self: stretch; gap: 28px; }
.obs-nav a { display: flex; align-items: center; padding-top: 2px; font: 400 15px/1 var(--font-ui); color: var(--text-2); text-decoration: none; border-bottom: 2px solid transparent; }
.obs-nav a:hover { color: var(--ink); }
.obs-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.obs-burger { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; color: var(--ink); cursor: pointer; padding: 0; }
.obs-burger span { display: block; width: 20px; height: 1.5px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.obs-menu { position: absolute; right: 16px; top: 60px; min-width: 200px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); padding: 6px; display: grid; }
.obs-menu[hidden] { display: none; }
.obs-menu a { padding: 11px 12px; border-radius: var(--r-ctl); font: 400 15px/1 var(--font-ui); color: var(--text-2); text-decoration: none; }
.obs-menu a:hover { background: var(--band); color: var(--ink); }
.obs-menu a[aria-current="page"] { color: var(--ink); font-weight: 900; }
@media (min-width: 1024px) { .obs-nav { display: flex; } .obs-burger, .obs-menu { display: none !important; } } /* five links fit from 1024 px */
.obs-nav a { white-space: nowrap; }
@media (max-width: 420px) { .obs-word { font-size: 10.5px; letter-spacing: .08em; } .obs-logo { width: 28px; height: 28px; } .obs-brand { gap: 8px; } .obs-header { gap: 8px; } .obs-live-bar { font-size: 13.5px; } }   /* room for Live beside the burger */

/* footer bar */
.obs-footer { margin-top: 56px; padding: 16px 24px 18px; border-top: 1px solid var(--border); background: #fff; box-sizing: border-box; }
@media (min-width: 768px) { .obs-footer { margin-top: 72px; padding: 18px 48px 20px; } }
.obs-footer-fine { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.obs-footer-fine > span { flex: 1 1 520px; max-width: 1200px; }
.obs-footer-fine a { color: var(--text-2); }
.obs-footer-fine a.obs-footer-disclaimer { font: 700 13.5px/1.2 var(--font-ui); color: var(--ink); text-decoration: none; white-space: nowrap; }
@media (max-width: 767px) { .obs-footer-sep { display: none; } .obs-footer-fine > span { display: grid; gap: 4px; } }

/* Data sources page */
main.list { max-width: none; padding: 40px 24px 0; }
@media (min-width: 768px) { main.list { padding: 48px 48px 0; } }
.intro h1, main.doc h1 { font: 700 30px/1.2 var(--font-ui); letter-spacing: -.005em; text-transform: none; margin: 0 0 10px; color: var(--ink); }
@media (max-width: 767px) { .intro h1, main.doc h1 { font-size: 26px; } }
.intro p { font-size: 16px; color: var(--text-2); max-width: 70ch; }
.filter-bubble { font: 400 14px/1 var(--font-ui); letter-spacing: 0; text-transform: none; padding: 9px 14px; border-color: var(--border-2, #D1D5DB); }
.filter-bubble:hover { background: var(--band); }
.count { font: 900 11px/1.3 var(--font-ui); letter-spacing: .12em; }
.cards-grid { gap: 16px; }
.exp-card { border-radius: var(--r-card); box-shadow: none; padding: 22px 24px; }
@media (min-width: 768px) { .exp-card { padding: 22px 24px; } }
.exp-card:hover { box-shadow: none; border-color: var(--border-2, #D1D5DB); }
.exp-card-theme { font: 900 11px/1.3 var(--font-ui); letter-spacing: .12em; margin-bottom: 10px; padding-right: 40px; }
.exp-card-title { font: 700 19px/1.3 var(--font-ui); letter-spacing: 0; text-transform: none; }
.exp-card-source { font-size: 13px; }
.exp-card-body p { font-size: 15px; }
.exp-card-toggle { border-radius: var(--r-ctl); }

/* Open data page */
main.doc { max-width: var(--measure); padding: 40px 24px 0; }
main.doc > p { font-size: 17px; line-height: 1.7; }
.eyebrow { font: 900 11px/1.3 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card { border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: none; }
.card h2 { font: 900 11px/1.3 var(--font-ui); letter-spacing: .12em; }
.row b { font-weight: 700; }
code { border-radius: 3px; }

/* "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; } }
/* below 1024 px the links fold into the burger; Live stays in the bar, just before it */
.obs-live-bar { margin-left: auto; font: 700 14px/1 var(--font-ui); color: var(--ink); text-decoration: none; white-space: nowrap; flex: none; }
.obs-header .obs-live-bar + .obs-burger { margin-left: -4px; }
@media (min-width: 1024px) { .obs-live-bar { display: none; } }
