/* ─────────────────────────────────────────────
   VISTA · daily aviation briefing
   Glass + gradient-mesh design system
   ───────────────────────────────────────────── */

:root {
  color-scheme: dark;

  --ink:     #F3EDE2;
  --ink-1:   #D8D0BF;
  --ink-2:   #A6B0BC;
  --ink-3:   #6E7B89;

  --bg:      #061522;
  --bg-tint: #0C2030;

  --glass-bg:        rgba(243, 237, 226, 0.05);
  --glass-bg-strong: rgba(243, 237, 226, 0.08);
  --glass-border:    rgba(243, 237, 226, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45),
                  0 1px 0 rgba(243, 237, 226, 0.06) inset,
                  0 -1px 0 rgba(0,0,0,0.30) inset;

  --accent-primary: #FFA05C;
  --accent-teal:    #19A2AE;
  --accent-warm:    #FF791A;
  --accent-warm-deep: #FFA05C;
  --accent-soft:    #FFA05C;
  --accent-digital: #6AF4F9;

  --mesh-1: #4A1E08;
  --mesh-2: #002B38;
  --mesh-3: #5A2E12;
  --mesh-4: #001E2E;
  --mesh-5: #2A1A10;

  --hairline: rgba(243, 237, 226, 0.10);
  --chip-bg:  rgba(243, 237, 226, 0.06);
  --chip-on-bg: #F3EDE2;
  --chip-on-fg: #061522;

  --pill-low-bg:  rgba(25, 162, 174, 0.18);
  --pill-low-fg:  #4DD4DD;
  --pill-med-bg:  rgba(255, 160, 92, 0.18);
  --pill-med-fg:  #FFB272;
  --pill-high-bg: rgba(255, 121, 26, 0.22);
  --pill-high-fg: #FFB060;
  --pill-src-bg:  rgba(243, 237, 226, 0.10);
  --pill-src-fg:  #D8D0BF;
  --pill-tag-bg:  rgba(243, 237, 226, 0.06);
  --pill-tag-fg:  var(--ink-2);

  --link:        #FFB272;
  --link-hover:  #FFD0A8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

/* ── gradient mesh background ──────────────── */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  background:
    radial-gradient(circle at 12% 18%, var(--mesh-1) 0%, transparent 35%),
    radial-gradient(circle at 88% 12%, var(--mesh-2) 0%, transparent 38%),
    radial-gradient(circle at 78% 82%, var(--mesh-3) 0%, transparent 42%),
    radial-gradient(circle at 18% 88%, var(--mesh-4) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, var(--mesh-5) 0%, transparent 50%);
  filter: blur(60px) saturate(1.1);
  z-index: -2;
  animation: drift 28s ease-in-out infinite alternate;
  opacity: 0.85;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
}

@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-3%, 2%) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* User has asked the OS for less transparency: drop backdrop-filters and
   give chrome / cards solid backgrounds. Real a11y signal that also pays
   off as a performance fallback on integrated GPUs that struggle with
   global blur. */
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass-strong, .nav, .util-menu,
  .filter-nav, .header, .timebar, .util, .footer, .card,
  .weather-card, .placeholder, .ci-block, .ci-competitor,
  .simple-list {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .glass, .header, .timebar, .util, .footer, .nav, .filter-nav { background: var(--bg-tint); }
  .glass-strong, .card, .ci-competitor, .simple-list, .placeholder, .ci-block { background: var(--bg); }
  body::before { display: none; }
}

/* Skip-to-content link. Visible only on focus (keyboard / screen-reader
   users); slides into view at the top-left when focused. */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 22, 41, 0.25);
  transition: top 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.skip-link:focus { top: 12px; outline: 2px solid var(--accent-warm); outline-offset: 2px; }

/* ── shared glass surface ──────────────────── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ── top time bar (city local times + UTC) ─── */
.timebar {
  position: sticky; top: 8px; z-index: 110;
  margin: 12px 16px 0;
  padding: 7px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.timebar .tb-track {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.timebar .tb-track::-webkit-scrollbar { display: none; }
.timebar .tb-city {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--ink-1);
}
.timebar .tb-name {
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s, opacity 0.2s;
}
.timebar .tb-time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  transition: opacity 0.2s;
}
.timebar .tb-city[data-office-state="open"] .tb-name {
  color: var(--ink-1);
}
.timebar .tb-city[data-office-state="closed"] .tb-name,
.timebar .tb-city[data-office-state="closed"] .tb-time {
  opacity: 0.55;
}
.timebar .tb-city[data-office-state="holiday"] .tb-name,
.timebar .tb-city[data-office-state="holiday-open"] .tb-name,
.timebar .tb-city[data-office-state="holiday"] .tb-time,
.timebar .tb-city[data-office-state="holiday-open"] .tb-time {
  color: var(--accent-primary);
}
.timebar .tb-utc {
  flex: 0 0 auto;
  padding-left: 14px;
  border-left: 1px solid var(--glass-border);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.timebar .tb-contact {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--ink-1);
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.18s, background 0.18s, border-color 0.18s;
  font-family: inherit;
  line-height: 1;
}
.timebar .tb-contact svg {
  width: 13px;
  height: 13px;
  display: block;
}
.timebar .tb-contact:hover {
  color: var(--accent-soft);
  background: var(--glass-bg-strong);
  border-color: var(--accent-soft);
}

/* ── contact modal (popup from timebar Contact button) ─── */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
}
.contact-modal[hidden] { display: none; }
.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 14, 28, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.contact-dialog {
  position: relative;
  background: var(--bg-tint);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 32px 36px 28px;
  max-width: 380px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  color: var(--ink);
  text-align: center;
}
.contact-dialog h2 {
  margin: 0 0 10px;
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--ink);
}
.contact-dialog p {
  margin: 4px 0;
  color: var(--ink-1);
  font-size: 14px;
  line-height: 1.5;
}
.contact-dialog .contact-name {
  margin-top: 14px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.contact-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 22px;
  line-height: 1;
  font-family: inherit;
  transition: color 0.18s, background 0.18s;
}
.contact-close:hover {
  color: var(--ink);
  background: var(--glass-bg-strong);
}

/* ── company shortcuts bar (below header) ──── */
.util {
  position: relative;
  z-index: 100;
  margin: 0 16px 12px;
  padding: 9px 18px;
  border-radius: 999px;
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 4px;
  font-size: 12px;
  font-weight: 500;
}
.util a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-1);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
  display: flex;
  gap: 6px;
  align-items: center;
}
.util a:hover { background: var(--glass-bg-strong); color: var(--ink); }
.util .ic { font-size: 11px; opacity: 0.7; color: var(--accent-primary); }
.util .sp { flex: 1; }
.util .clock {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--ink-1);
  padding: 0 8px;
}
.util .mantra {
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  font-size: 14px;
  color: var(--ink-2);
  padding: 0 8px;
  white-space: nowrap;
}

/* category dropdowns inside the util bar */
.util-cat { position: relative; }
.util-cat-btn {
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: var(--ink-1);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.util-cat-btn:hover,
.util-cat[data-open="true"] .util-cat-btn {
  background: var(--glass-bg-strong);
  color: var(--ink);
}
.util-cat .ic { color: var(--accent-primary); }

.util-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(14, 28, 42, 0.96);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(243, 237, 226, 0.14);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55),
              0 1px 0 rgba(243, 237, 226, 0.06) inset;
  display: none;
  flex-direction: column;
  gap: 1px;
  z-index: 200;
}
/* invisible bridge so hover survives the 10px gap to the menu */
.util-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
/* Click-driven and keyboard-driven open states are always honored.
   Hover-to-open is gated to pointer:fine devices so iPad/touch users
   don't get the dreaded "first tap opens, second tap navigates"
   behavior; they get an explicit click-to-open instead. */
.util-cat:focus-within .util-menu,
.util-cat[data-open="true"] .util-menu {
  display: flex;
}
@media (hover: hover) and (pointer: fine) {
  .util-cat:hover .util-menu { display: flex; }
}
.util-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  text-align: left;
  line-height: 1.25;
  transition: background 0.15s, color 0.15s;
}
.util-menu a small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.util-menu a:hover {
  background: rgba(255, 160, 92, 0.12);
  color: var(--accent-soft);
}
.util-menu a:hover small { color: var(--ink-2); }

/* ── header ────────────────────────────────── */
.header {
  margin: 16px;
  padding: 22px 28px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
}
@media (max-width: 760px) {
  .header { grid-template-columns: 1fr auto; }
  .header .nav { grid-column: 1 / -1; order: 3; justify-self: stretch; overflow-x: auto; }
}
.brand { display: inline-flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); justify-self: start; width: max-content; }
.brand:hover { color: var(--ink); }
.brand-mark {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  color: var(--ink);
  display: block;
}
.brand h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
}
.brand .sub {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
}
.nav {
  display: flex; gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}
.nav a {
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--ink-1);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav a:hover { background: var(--glass-bg-strong); color: var(--ink); }
.nav a.active,
.nav a.active:hover,
.nav a.active:focus {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55),
              0 2px 6px rgba(0, 0, 0, 0.35);
}
/* ── "On this day" pill (sits between hero and news filters) ── */
.otd {
  margin: 16px 16px 0;
  padding: 10px 22px;
  border-radius: 999px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-1);
}
.otd-eyebrow {
  font-weight: 600;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10.5px;
  white-space: nowrap;
}
.otd-sep { color: var(--ink-3); }
.otd-year {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--accent-primary);
  font-variant-numeric: lining-nums;
}
.otd-title {
  font-weight: 600;
  color: var(--ink);
}
.otd-blurb {
  color: var(--ink-2);
  flex: 1 1 280px;
  min-width: 0;
}
.otd-date {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .otd {
    border-radius: 22px;
    padding: 12px 18px;
    font-size: 12.5px;
    gap: 8px;
  }
  .otd-blurb { flex-basis: 100%; }
  .otd-date { margin-left: 0; }
}

/* ── filter bar (News label + segment pill nav) ── */
.filters {
  margin: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.filters-label {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
  margin-right: 26px;
}
.filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  max-width: 100%;
}
.chip {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-1);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.chip:hover {
  background: var(--glass-bg-strong);
  color: var(--ink);
}
.chip.on {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 22, 41, 0.20);
}

/* ── subreddit sub-filter (visible only when Reddit chip is active) ── */
.subfilters {
  margin: 6px 16px 0 32px;
  padding-left: 16px;
  display: flex;
  justify-content: flex-start;
  position: relative;
}
.subfilters[hidden] { display: none; }
.subfilters::before {
  content: '';
  position: absolute;
  left: 0;
  top: -10px;
  width: 12px;
  height: 22px;
  border-left: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  border-bottom-left-radius: 6px;
  opacity: 0.5;
  pointer-events: none;
}
.subfilters .filter-nav {
  background: transparent;
  border: none;
  padding: 0;
  gap: 2px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  max-width: 100%;
}
.subfilters .chip {
  font-size: 12px;
  padding: 5px 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.subfilters .chip:hover {
  background: var(--glass-bg);
  color: var(--ink);
}
.subfilters .chip.on {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
@media (max-width: 700px) {
  .subfilters { margin-left: 16px; padding-left: 12px; }
}

/* ── shell layout ──────────────────────────── */
.shell { display: block; }
main { display: block; min-width: 0; }
.sidebar { display: none; }

/* ── hero briefing ─────────────────────────── */
.hero {
  margin: 16px;
  padding: 48px 56px;
  border-radius: 36px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  /* lower floor; only kicks in on unusually short briefings so the card
     doesn't collapse. Normal days let the briefing's text dictate row height. */
  min-height: 360px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 32px 24px; }
}
.hero.ci-hero {
  grid-template-columns: 1fr;
  min-height: 0;
  margin: 16px 28px;
}
.hero.ci-hero h1 {
  font-size: clamp(32px, 2.4vw + 18px, 44px);
  margin-bottom: 16px;
}
.ci-hero-sources {
  margin-top: 18px;
}
.ci-hero-sources > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-1);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
}
.ci-hero-sources > summary::-webkit-details-marker { display: none; }
.ci-hero-sources-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}
.ci-hero-sources-count {
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  font-weight: 500;
}
.ci-hero-sources-caret {
  font-size: 10px;
  color: var(--ink-3);
  transition: transform 160ms ease;
}
.ci-hero-sources[open] .ci-hero-sources-caret { transform: rotate(180deg); }
.ci-hero-srclist {
  list-style: none;
  margin: 12px 0 0;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 6px 20px;
  max-height: 320px;
  overflow-y: auto;
}
.ci-hero-srclist li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.45;
}
.ci-hero-srcnum {
  flex: 0 0 auto;
  min-width: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  font-weight: 600;
}
.ci-hero-srclist a {
  color: var(--ink-1);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.ci-hero-srclist a:hover,
.ci-hero-srclist a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent-soft);
}
.hero-meta {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
}
.hero-meta .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 0 4px rgba(25, 162, 174, 0.20);
  animation: blink 2s infinite;
}
@keyframes blink { 50% { opacity: 0.5; } }
.hero-meta .lbl {
  font-weight: 600;
  color: var(--ink-1);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}
.hero-meta .date {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
}
.hero h1 {
  /* Fluidly scales 44px (≤600px) → 64px (≥1100px) so tablet portrait
     (650-900px) gets a sensible intermediate size instead of jumping
     between the two extremes at a hard breakpoint. */
  font-size: clamp(44px, 4vw + 22px, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero h1 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-soft);
  padding-right: 0.12em;
}
.hero .lede {
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-1);
  font-weight: 400;
  margin-bottom: 28px;
  max-width: 640px;
}
.hero p.body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 640px;
  margin-bottom: 12px;
}
.hero-card {
  padding: 24px;
  border-radius: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  height: fit-content;
}
.hero-card h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 14px;
  font-weight: 700;
}
.stat-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.stat-row:last-child { border-bottom: 0; }
.stat-row .k { color: var(--ink-2); font-size: 14px; }
.stat-row .v { font-weight: 700; color: var(--ink); font-size: 14px; }
.stat-row .v.up   { color: var(--accent-teal); }
.stat-row .v.warn { color: var(--accent-warm); }

/* ── weather card (rotating local conditions) ── */
.weather-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  color: #fff;
  outline: none;
  /* override .hero-card { height: fit-content } so the card stretches to
     match the briefing column's actual text height. No min-height of its
     own, so it never forces the row taller than the briefing demands. */
  height: auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.weather-card .weather-bg,
.weather-card .weather-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, background 0.6s ease;
}
.weather-card .weather-bg {
  background: linear-gradient(150deg, #4b5d6e 0%, #1f2e3c 100%);
}
.weather-card .weather-shade {
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.45) 18%,
      rgba(0, 0, 0, 0.20) 38%,
      rgba(0, 0, 0, 0.08) 52%,
      rgba(0, 0, 0, 0.30) 68%,
      rgba(0, 0, 0, 0.55) 86%,
      rgba(0, 0, 0, 0.75) 100%);
}
.weather-content {
  position: relative;
  z-index: 1;
  padding: 26px 26px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.weather-city {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 30px;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 8px;
  transition: opacity 0.3s ease;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55), 0 0 14px rgba(0, 0, 0, 0.35);
}
.weather-temps {
  display: flex;
  align-items: baseline;
  gap: 10px;
  transition: opacity 0.3s ease;
}
.weather-temp {
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.4);
}
.weather-temp-sep {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.weather-temp-alt {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55), 0 0 10px rgba(0, 0, 0, 0.35);
}
.weather-cond {
  margin-top: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  transition: opacity 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.weather-meta {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 4px;
  margin-top: auto;     /* push meta block to the bottom of the card */
}
.weather-pair {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
}
.weather-pair:last-child { border-bottom: 0; }
.weather-pair .k {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.weather-pair .v {
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.weather-card.is-fading .weather-city,
.weather-card.is-fading .weather-temps,
.weather-card.is-fading .weather-cond { opacity: 0.3; }

/* invisible click zones cover left / right halves of the full card height. */
.weather-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.weather-zone-prev { left: 0; }
.weather-zone-next { right: 0; }
.weather-zone:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: -4px; }

/* ── per-city backgrounds: photo on top of mood gradient ──
   Drop an image into site/weather/{slug}.webp; if it 404s the gradient
   stays visible. Background-position is per-city to keep the focal subject
   (skyline, harbor, etc.) visible after the dark vignette is layered. */
.weather-card.bg-austin .weather-bg {
  background:
    url("weather/austin.webp") center/cover no-repeat,
    linear-gradient(155deg, #ff8a55 0%, #c0492b 45%, #2a1b3d 100%);
}
.weather-card.bg-houston .weather-bg {
  background:
    url("weather/houston.webp") center/cover no-repeat,
    linear-gradient(155deg, #5eead4 0%, #0e7490 45%, #042f2e 100%);
}
.weather-card.bg-sao-paulo .weather-bg {
  background:
    url("weather/sao-paulo.webp") center/cover no-repeat,
    linear-gradient(155deg, #fbbf24 0%, #c2410c 45%, #1c2b1d 100%);
}
.weather-card.bg-denver .weather-bg {
  background:
    url("weather/denver.webp") center/cover no-repeat,
    linear-gradient(155deg, #c4b5fd 0%, #4338ca 45%, #1e1b4b 100%);
}
.weather-card.bg-frankfurt .weather-bg {
  background:
    url("weather/frankfurt.webp") center/cover no-repeat,
    linear-gradient(155deg, #cbd5e1 0%, #475569 45%, #0f172a 100%);
}
.weather-card.bg-adelaide .weather-bg {
  background:
    url("weather/adelaide.webp") center/cover no-repeat,
    linear-gradient(155deg, #fda4af 0%, #db2777 45%, #4c0519 100%);
}
.weather-card.bg-portland .weather-bg {
  background:
    url("weather/portland.webp") center/cover no-repeat,
    linear-gradient(155deg, #6ee7b7 0%, #047857 45%, #022c22 100%);
}
.weather-card.bg-odense .weather-bg {
  background:
    url("weather/odense.webp") center/cover no-repeat,
    linear-gradient(155deg, #bae6fd 0%, #0284c7 45%, #082f49 100%);
}
/* night tint: layer a deeper blue on top so day/night reads at a glance */
.weather-card.is-night .weather-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.35) 0%, rgba(2, 6, 23, 0.55) 100%);
}

/* ── section bar ───────────────────────────── */
.section-bar {
  margin: 32px 16px 16px;
  padding: 16px 28px;
  border-radius: 24px;
  display: flex; align-items: center; gap: 18px;
}
.sec-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 22, 41, 0.18),
              0 1px 0 rgba(255,255,255,0.3) inset;
  flex-shrink: 0;
}
.sec-icon.ga  { background: linear-gradient(135deg, #006379, #19A2AE); }
.sec-icon.ba  { background: linear-gradient(135deg, #001629, #006379); }
.sec-icon.ca  { background: linear-gradient(135deg, #19A2AE, #6AF4F9); color: #001629; }
.sec-icon.ma  { background: linear-gradient(135deg, #FF791A, #FFA05C); }
.sec-icon.edu { background: linear-gradient(135deg, #FFA05C, #FFD0A8); color: #4A2008; }
.sec-icon.xs  { background: linear-gradient(135deg, #001629, #19A2AE); }
.section-bar h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex: 1;
  margin: 0;
}
.section-bar h2 small {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ink-3);
  font-size: 18px;
  margin-left: 10px;
}
.section-bar .ct {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--pill-tag-bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-1);
}

/* ── card grid ─────────────────────────────── */
.grid {
  margin: 0 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 800px) { .grid { grid-template-columns: 1fr; } }
.grid + .grid { margin-top: 14px; }
.grid:empty { display: none; }

/* ── priority sections (High / Medium / Low) ── */
.prio-section { margin-top: 24px; }
.prio-section:first-of-type { margin-top: 0; }
.prio-section:not(:has(.card:not(.hidden))) { display: none; }

/* Hairline divider between adjacent visible priority sections.
   Both the previous and current section must contain at least one
   visible card, so a hidden bucket (filtered out) doesn't leave an
   orphan line at the top. */
.prio-section:has(.card:not(.hidden)) + .prio-section:has(.card:not(.hidden)) {
  position: relative;
  margin-top: 32px;
  padding-top: 28px;
}
.prio-section:has(.card:not(.hidden)) + .prio-section:has(.card:not(.hidden))::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--hairline);
}

.card {
  padding: 24px 26px;
  border-radius: 24px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.25s ease;
}
.card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.50),
              0 1px 0 rgba(243, 237, 226, 0.10) inset;
  border-color: rgba(255, 160, 92, 0.22);
}
.card.hidden { display: none; }

.card-meta {
  display: flex; gap: 6px; align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pill.prio-low  { background: var(--pill-low-bg);  color: var(--pill-low-fg); }
.pill.prio-med  { background: var(--pill-med-bg);  color: var(--pill-med-fg); }
.pill.prio-high { background: var(--pill-high-bg); color: var(--pill-high-fg); }
.pill.src       { background: var(--pill-src-bg);  color: var(--pill-src-fg); }
.pill.tag       { background: var(--pill-tag-bg);  color: var(--pill-tag-fg); }

/* Per-card publish date: sits on the right of the meta row. */
.card-date {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 10px;
}
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent-soft); }

.card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* featured card spans both columns. Solid warm tint over the glass base
   instead of a decorative 3-stop gradient. The warm bias still lifts
   featured cards above the rest, without the gradient-overlay tell. */
.card.featured {
  grid-column: 1 / -1;
  background:
    linear-gradient(rgba(255, 121, 26, 0.10), rgba(255, 121, 26, 0.10)),
    var(--glass-bg-strong);
  border-color: rgba(255, 121, 26, 0.28);
}
.card.featured h3 { font-size: 26px; letter-spacing: -0.025em; }
.card.featured p  { font-size: 15px; }

.segment.hidden { display: none; }
.segment > .empty-note {
  margin: 0 16px 8px;
  padding: 14px 22px;
  border-radius: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink-2);
  font-size: 13px;
  font-style: italic;
}
.fallback-bucket {
  margin: 24px 16px 8px;
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── footer ────────────────────────────────── */
.footer {
  margin: 32px 16px 24px;
  padding: 20px 28px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-2);
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer .left { display: flex; gap: 16px; align-items: center; }
.footer .left .sig {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.footer .right {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-beta {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 160, 92, 0.16);
  color: var(--pill-med-fg);
  border: 1px solid rgba(255, 160, 92, 0.32);
}

/* ── archive list / generic table ──────────── */
.simple-list {
  margin: 16px;
  padding: 8px 0;
  border-radius: 24px;
  list-style: none;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
.simple-list li { border-bottom: 1px solid var(--hairline); }
.simple-list li:last-child { border-bottom: 0; }
.simple-list a {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 22px;
  padding: 14px 26px;
  color: var(--ink-1);
  align-items: baseline;
  transition: background 0.15s;
}
.simple-list a:hover { background: var(--glass-bg); color: var(--ink); }
.simple-list a .when {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.simple-list a .h {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.4;
}

/* ── placeholder card ──────────────────────── */
.placeholder {
  margin: 16px;
  padding: 56px 32px;
  border-radius: 28px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  text-align: center;
}
.placeholder h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.placeholder p { color: var(--ink-2); font-size: 15px; max-width: 520px; margin: 0 auto 8px; }
.placeholder code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--pill-tag-bg);
  color: var(--accent-soft);
}

/* ── offices ───────────────────────────────── */
.office-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 16px 16px;
}
.office-nav a {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--ink-2);
  text-decoration: none;
}
.office-nav a.on {
  background: var(--accent-soft);
  color: var(--ink);
  border-color: var(--accent-soft);
}
.office-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 16px;
}
.office-box {
  padding: 28px 28px;
  border-radius: 24px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.office-box h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}
.office-box p { color: var(--ink-2); font-size: 14px; margin: 0 0 8px; }
.office-box ol, .office-box ul.office-list {
  margin: 0; padding: 0 0 0 18px;
  color: var(--ink-2); font-size: 14px;
}
.office-box li { margin-bottom: 8px; line-height: 1.5; }
.office-box ul.office-list { list-style: none; padding-left: 0; }
.office-box ul.office-list li { padding: 8px 0; border-bottom: 1px solid var(--glass-border); }
.office-box ul.office-list li:last-child { border-bottom: 0; }
.office-box .office-name { color: var(--ink); font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.office-box .office-meta { color: var(--ink-3, var(--ink-2)); font-size: 13px; }
.office-box a { color: var(--accent-soft); text-decoration: none; }
.office-box a:hover { text-decoration: underline; }
.office-box code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--pill-tag-bg);
  color: var(--accent-soft);
}
@media (max-width: 720px) {
  .office-grid { grid-template-columns: 1fr; }
}

/* ── comms (FYI placeholder grid) ──────────── */
.fyi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 16px;
}
.fyi-grid .fyi-box { margin: 0; }
@media (max-width: 720px) {
  .fyi-grid { grid-template-columns: 1fr; }
}

/* ── competitors brief ─────────────────────── */
.ci-head {
  margin: 16px;
  padding: 40px 48px;
  border-radius: 32px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(50px) saturate(200%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.ci-head h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 14px;
  color: var(--ink);
}
.ci-head h1 em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-3);
  font-size: 0.32em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 8px;
}
.ci-head .headline {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-1);
  padding: 14px 18px;
  border: 1px solid rgba(255, 121, 26, 0.28);
  background: rgba(255, 121, 26, 0.06);
  border-radius: 8px;
  margin-top: 10px;
}
.ci-head .tldr { margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.ci-baseline {
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(25, 162, 174, 0.10);
  border: 1px solid rgba(25, 162, 174, 0.32);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

.ci-block {
  margin: 28px 16px;
  padding: 28px 32px;
  border-radius: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.ci-block h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.ci-h-num {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-soft));
  color: #061522;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.ci-tldr, .ci-watch { padding-left: 1.4em; margin: 0; }
.ci-tldr li, .ci-watch li { margin: 10px 0; line-height: 1.55; color: var(--ink-1); font-size: 15px; }

.ci-text { color: var(--ink-1); }
.ci-srcs { margin-left: 6px; font-size: 12px; color: var(--ink-3); }
.ci-src {
  color: var(--link);
  border-bottom: 1px dotted var(--hairline);
}
.ci-src:hover { color: var(--link-hover); }
.ci-quote .ci-text {
  font-style: italic; color: var(--ink-2);
  border-left: 1px solid var(--hairline); padding-left: 12px;
  display: inline-block;
}
.ci-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  margin: 0 4px;
  vertical-align: middle;
  border-radius: 999px;
  background: var(--pill-tag-bg);
  color: var(--ink-2);
}
.ci-tag-inferred { background: var(--pill-med-bg); color: var(--pill-med-fg); }

.ci-competitor {
  margin: 18px 0;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.ci-competitor-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
  flex-wrap: wrap;
}
.ci-competitor-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.ci-ticker {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  margin-left: 8px;
  font-weight: 500;
}
.ci-status-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pill-high-bg);
  color: var(--pill-high-fg);
  font-weight: 700;
}
.ci-status-defunct { opacity: 0.78; }
.ci-status-defunct .ci-competitor-head h3 {
  text-decoration: line-through;
  text-decoration-color: var(--ink-3);
  text-decoration-thickness: 1px;
}

.ci-section { margin: 14px 0 6px; }
.ci-section h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 14px 0 8px;
}
.ci-kind-financial h4 { color: var(--accent-primary); }
.ci-kind-pricing h4   { color: var(--accent-teal); }
.ci-kind-hiring h4    { color: var(--accent-warm); }
.ci-kind-product h4   { color: var(--ink-1); }

.ci-list { margin: 0; padding-left: 1.2em; }
.ci-list li { margin: 6px 0; color: var(--ink-1); font-size: 14px; }
.ci-note { font-size: 12px; color: var(--ink-3); margin: 4px 0 8px; font-style: italic; }

.ci-diffs {
  font-size: 14px;
  color: var(--ink-1);
  background: var(--glass-bg);
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(25, 162, 174, 0.32);
  margin: 0;
  line-height: 1.55;
}

.ci-source-list { font-size: 13px; padding-left: 1.6em; }
.ci-source-list li { margin: 4px 0; color: var(--ink-2); }
.ci-source-list a { word-break: break-word; }

.ci-caveats ul { padding-left: 1.2em; }
.ci-caveats li { font-size: 14px; color: var(--ink-2); margin: 6px 0; }

.ci-past-list { padding-left: 1.2em; font-size: 14px; }
.ci-past-list li { margin: 6px 0; color: var(--ink-1); }

.ci-watchlist { font-size: 13px; list-style: none; padding: 0; }
.ci-watchlist li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--hairline);
  color: var(--ink-1);
}
.ci-watchlist li:last-child { border-bottom: none; }

/* ── minimal page head (Comms, Archive) ────── */
.page-head {
  margin: 24px 28px 20px;
}
.page-head h1 {
  font-size: clamp(32px, 2.4vw + 18px, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 6px;
}
.page-head h1 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent-soft);
}
.page-head .lede {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
}

/* ── Radar: markets ticker ─────────────────── */
.ticker {
  margin: 16px;
  padding: 20px 24px;
  border-radius: 24px;
}
.ticker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ticker-head h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.ticker-meta {
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.ticker-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.tk {
  --spark-pos:        #4dd2dd;
  --spark-pos-fill:   rgba(77, 210, 221, 0.14);
  --spark-neg:        #f0866f;
  --spark-neg-fill:   rgba(240, 134, 111, 0.14);
  --spark-flat:       var(--ink-3);
  --spark-flat-fill:  rgba(243, 237, 226, 0.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.tk:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.30);
  border-color: rgba(243, 237, 226, 0.18);
}
.tk-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.tk-sym {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.tk-name {
  font-size: 10.5px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-spark {
  margin: 6px -2px 4px;
  height: 40px;
}
.tk-spark .spark {
  width: 100%;
  height: 100%;
  display: block;
}
.tk-bot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.tk-last {
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.tk-chg {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.tk.is-pos .tk-chg { color: var(--spark-pos); }
.tk.is-neg .tk-chg { color: var(--spark-neg); }

/* ── Radar: competitive-intelligence tools grid ── */
.radar-tools {
  margin: 24px 16px 8px;
}
.tools-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 4px;
  margin-bottom: 14px;
}
.tools-head h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.tools-meta {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}
.bycomp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 14px;
}
.bycomp-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px 20px;
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
}
.bycomp-card.ci-status-defunct { opacity: 0.65; }
.bycomp-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}
.bycomp-head h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.bycomp-ticker {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.bycomp-status {
  margin-left: auto;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding: 2px 8px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
}
.bycomp-section h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-weight: 700;
  margin-bottom: 8px;
}
.bycomp-note {
  font-size: 12px;
  color: var(--ink-3);
  font-style: italic;
  margin-bottom: 6px;
}
.bycomp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bycomp-item {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-1);
}
.bycomp-item.is-inferred { color: var(--ink-2); }
.bycomp-text { margin-right: 6px; }
.bycomp-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  padding: 1px 6px;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: 1px;
}
.bycomp-srcs {
  font-size: 11px;
  color: var(--ink-3);
}
.bycomp-srcs a {
  color: var(--accent-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.bycomp-srcs a:hover,
.bycomp-srcs a:focus-visible {
  border-bottom-color: var(--accent-soft);
}
.tools-note {
  margin: 14px 4px 0;
  font-size: 12px;
  color: var(--ink-3);
  font-style: italic;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px 16px;
  border-radius: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: border-color 0.15s ease;
}
.tool-card:hover {
  border-color: rgba(243, 237, 226, 0.18);
}

.tool-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tool-num {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-soft));
  color: #061522;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.tool-head h3 {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.tool-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}

/* shared list reset */
.tool-feed, .tool-rank, .tool-quotes, .tool-events, .tool-deals {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed var(--hairline);
  padding-top: 12px;
}

/* generic feed row (pricing, hiring, analyst, RFP, patents) */
.tf-row {
  display: grid;
  grid-template-columns: 92px 48px 1fr auto;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.tf-source {
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tf-pill {
  display: inline-block;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.tf-up   { background: rgba(255, 121, 26, 0.18); color: #FFB272; }
.tf-down { background: rgba(77, 210, 221, 0.18); color: #5DD8E1; }
.tf-flat { background: var(--pill-tag-bg); color: var(--ink-3); }
.tf-pkg  { background: rgba(106, 244, 249, 0.14); color: #6AF4F9; }
.tf-tag  { background: var(--pill-tag-bg); color: var(--ink-2); }
.tf-text { color: var(--ink-1); }
.tf-when {
  color: var(--ink-3);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* reviews pulse: leaderboard rows */
.tr-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  padding: 4px 0;
}
.tr-row + .tr-row { border-top: 1px solid var(--hairline); padding-top: 8px; }
.tr-name { color: var(--ink); font-weight: 600; }
.tr-stars { color: var(--ink-1); font-variant-numeric: tabular-nums; font-size: 13px; }
.tr-delta {
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 2px 7px;
  border-radius: 6px;
  min-width: 56px;
  text-align: center;
}
.tr-up   { background: rgba(25, 162, 174, 0.18); color: #5DD8E1; }
.tr-down { background: rgba(240, 134, 111, 0.18); color: #F0866F; }
.tr-flat { background: var(--pill-tag-bg); color: var(--ink-3); }
.tr-cnt {
  color: var(--ink-3);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* earnings quotes */
.tq-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0;
}
.tq-row + .tq-row { border-top: 1px solid var(--hairline); padding-top: 10px; }
.tq-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.tq-who {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tq-when {
  font-size: 11px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.tq-text {
  margin: 0;
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-1);
  border-left: 2px solid rgba(255, 121, 26, 0.4);
  padding-left: 10px;
}
.tq-text mark {
  background: rgba(255, 121, 26, 0.18);
  color: var(--pill-med-fg);
  padding: 0 3px;
  border-radius: 3px;
  font-style: normal;
  font-weight: 600;
}

/* events / webinar radar */
.te-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  padding: 6px 0;
}
.te-row + .te-row { border-top: 1px solid var(--hairline); padding-top: 10px; }
.te-when {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  border-radius: 8px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
}
.te-day {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.te-mon {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}
.te-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.te-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.te-detail {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.te-detail strong { color: var(--ink-1); font-weight: 600; }

/* deal tracker */
.td-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
}
.td-row + .td-row { border-top: 1px solid var(--hairline); padding-top: 10px; }
.td-stage {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 4px 6px;
  border-radius: 6px;
}
.td-stage-acq { background: rgba(255, 121, 26, 0.20); color: var(--pill-med-fg); }
.td-stage-c   { background: rgba(106, 244, 249, 0.14); color: #6AF4F9; }
.td-stage-b   { background: rgba(25, 162, 174, 0.18); color: #5DD8E1; }
.td-body {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.td-target { color: var(--ink); font-weight: 600; }
.td-arrow  { color: var(--ink-3); }
.td-buyer  { color: var(--ink-2); }
.td-amount {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--ink-1);
  font-weight: 600;
}
.td-when {
  color: var(--ink-3);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* status-page summary: 30-day cell strip per service */
.status-list { display: flex; flex-direction: column; gap: 10px; }
.status-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 12px;
}
.status-name {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.status-bar {
  display: flex;
  gap: 2px;
  height: 18px;
  align-items: stretch;
}
.status-cell {
  flex: 1;
  border-radius: 2px;
  background: var(--pill-tag-bg);
  min-width: 3px;
}
.status-cell.ok   { background: rgba(25, 162, 174, 0.55); }
.status-cell.warn { background: rgba(255, 121, 26, 0.55); }
.status-cell.down { background: rgba(240, 134, 111, 0.75); }
.status-pct {
  color: var(--ink-1);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  min-width: 56px;
  text-align: right;
}

.tool-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}
.tool-foot-meta {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.tool-foot-link {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--link);
  white-space: nowrap;
}
.tool-foot-link[aria-disabled="true"] {
  color: var(--ink-3);
  pointer-events: none;
  opacity: 0.7;
}

/* row anchors: keep their text color, add subtle hover tint, no movement */
a.tf-text, a.tr-name, a.tq-who, a.te-title, a.td-target {
  transition: color 0.12s ease;
}
a.tf-text:hover,
a.tr-name:hover,
a.tq-who:hover,
a.te-title:hover,
a.td-target:hover { color: var(--accent-soft); }

/* sample-data row links: rendered as anchors for styling but inert until the
   live crawler ships a real URL. */
a.tf-text[aria-disabled="true"],
a.tr-name[aria-disabled="true"],
a.tq-who[aria-disabled="true"],
a.te-title[aria-disabled="true"],
a.td-target[aria-disabled="true"] {
  pointer-events: none;
  cursor: default;
}

@media (max-width: 520px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tf-row {
    grid-template-columns: 76px 44px 1fr;
    grid-template-areas: "src pill text" "src pill when";
  }
  .tf-when { grid-column: 3; justify-self: end; font-size: 10.5px; }
}

/* ── Radar: collapsible Competitive Intelligence ── */
.ci-drop {
  margin: 28px 16px;
  border-radius: 24px;
  overflow: hidden;
}
.ci-drop > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  user-select: none;
}
.ci-drop > summary::-webkit-details-marker { display: none; }
.ci-drop-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ci-drop-meta {
  flex: 1;
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ci-drop-cadence {
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.ci-drop-caret {
  font-size: 14px;
  color: var(--ink-2);
  transition: transform 0.18s ease;
}
.ci-drop[open] .ci-drop-caret { transform: rotate(180deg); }
.ci-drop-body {
  padding: 4px 0 16px;
  border-top: 1px solid var(--hairline);
}
.ci-drop-body .ci-block {
  margin-left: 16px;
  margin-right: 16px;
}
.ci-drop-body .placeholder {
  margin: 16px;
}

@media print {
  body::before, body::after { display: none; }
  .util, .header, .filters, .footer { display: none; }
  .ci-block, .card, .ci-competitor { break-inside: avoid; box-shadow: none; }
}
