:root {
  --ink: #171916;
  --muted: #62675f;
  --line: #d9ddd6;
  --soft: #f3f5f1;
  --paper: #ffffff;
  --accent: #e5523f;
  --green: #176b50;
  --blue: #2456a6;
  --gold: #9b6500;
  --sidebar: 238px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: #eef1ec;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
a { color: inherit; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  background: #151815;
  color: #fff;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; background: var(--accent); color: #fff; font-size: 13px; }
.sidebar nav { margin-top: 42px; display: grid; gap: 4px; }
.sidebar nav a { padding: 10px 12px; color: #cbd0c8; text-decoration: none; border-left: 2px solid transparent; }
.sidebar nav a:hover, .sidebar nav a:focus { color: #fff; border-left-color: var(--accent); background: #222622; outline: none; }
.nav-group { display: grid; gap: 2px; margin-bottom: 20px; }
.nav-group > span { margin: 0 0 4px 12px; color: #7f887f; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.nav-group a { padding-top: 7px !important; padding-bottom: 7px !important; font-size: 14px; }
.call-note { margin-top: auto; padding-top: 18px; border-top: 1px solid #353a35; display: grid; gap: 5px; color: #cbd0c8; font-size: 13px; }
.call-note strong { color: #fff; }
.mobile-menu { display: none; }

main { margin-left: var(--sidebar); max-width: 1120px; min-height: 100vh; padding: 52px 56px 96px; background: var(--paper); }
.page-header { padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.eyebrow, .kicker { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 6vw, 78px); line-height: .96; font-weight: 500; }
.dek { margin: 12px 0 0; color: var(--muted); font-size: 20px; }
.lead-note { margin-top: 28px; max-width: 820px; padding: 18px 20px; background: var(--soft); border-left: 4px solid var(--accent); font-size: 17px; line-height: 1.55; }

.section { padding: 48px 0 8px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; }
.section-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.section-intro { max-width: 760px; color: var(--muted); line-height: 1.55; }

.on-air-list { display: grid; gap: 18px; }
.event-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.event-image { min-height: 220px; background: #e8ebe6 center/contain no-repeat; position: relative; }
.event-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.35), transparent 60%); }
.rank { position: absolute; z-index: 1; left: 14px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center; background: #fff; color: var(--ink); font-weight: 850; }
.event-body { padding: 20px 22px 22px; min-width: 0; }
.event-topline { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.tag { padding: 4px 7px; border-radius: 3px; background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.tag.urgency { background: #fde9e5; color: #993323; }
.event-body h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 550; }
.logistics { margin: 6px 0 16px; color: var(--green); font-weight: 750; line-height: 1.45; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 22px; margin: 0; }
.facts div { min-width: 0; }
.facts dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.facts dd { margin: 3px 0 0; line-height: 1.45; }
.talking { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.talking strong { font-size: 12px; text-transform: uppercase; }
.talking ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.55; }
.event-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.event-actions a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-size: 13px; font-weight: 750; }
.event-actions button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.event-actions a:hover, .event-actions button:hover { border-color: var(--ink); }
.map-preview { margin-top: 14px; border: 1px solid var(--line); background: var(--soft); }
.map-preview iframe { display: block; width: 100%; height: 250px; border: 0; }

.day-list, .quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.day-item, .quick-card { padding: 16px 18px; border-top: 3px solid var(--blue); background: var(--soft); }
.day-item h3, .quick-card h3 { margin: 0 0 5px; font-size: 17px; }
.day-item p, .quick-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.quick-card strong { display: block; margin-bottom: 7px; color: var(--accent); font-size: 11px; text-transform: uppercase; }

.search-box { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; max-width: 620px; margin-bottom: 22px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; }
.search-box span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.catalog { display: grid; gap: 16px; }
.catalog-day > summary { cursor: pointer; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: Georgia, "Times New Roman", serif; font-size: 24px; list-style-position: inside; }
.catalog-items { display: grid; gap: 8px; padding: 10px 0 4px; }
.catalog-event { border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.catalog-event summary { cursor: pointer; padding: 13px 15px; list-style: none; }
.catalog-event summary::-webkit-details-marker { display: none; }
.catalog-event summary::after { content: "+"; float: right; color: var(--muted); font-size: 20px; }
.catalog-event[open] summary::after { content: "−"; }
.catalog-title { font-weight: 780; }
.catalog-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.catalog-detail { padding: 0 15px 16px; color: #3e433d; line-height: 1.55; }
.catalog-detail p { margin: 0 0 12px; }
.catalog-detail a { color: var(--blue); font-weight: 700; }
.no-results { color: var(--muted); }
.sources ul { padding-left: 20px; line-height: 1.7; }

/* Radio mode: one chronological reading column. */
.opening-answer { max-width: 820px; }
.opening-answer h2, .run-header h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px; font-weight: 500; }
.opening-copy { margin: 18px 0; font-family: Georgia, "Times New Roman", serif; font-size: 23px; line-height: 1.55; }
.opening-answer ul { margin: 0; padding: 16px 0 0 20px; border-top: 1px solid var(--line); line-height: 1.65; }
.run-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 12px; }
.view-toggle { display: flex; flex-shrink: 0; padding: 3px; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); }
.view-toggle button { padding: 8px 11px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.view-toggle button.active { background: var(--ink); color: #fff; }
.run-day { padding: 38px 0 10px; scroll-margin-top: 20px; }
.run-day > h2 { margin: 0 0 14px; padding-bottom: 9px; border-bottom: 3px solid var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; }
.highlight-event { margin: 0 0 18px; padding: 22px 24px; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 5px; background: #fff; }
.highlight-label { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; color: var(--accent); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.highlight-label span + span::before { content: "·"; margin-right: 8px; color: var(--muted); }
.highlight-event h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 550; }
.event-logistics { margin: 6px 0 15px; color: var(--green); font-weight: 800; line-height: 1.5; }
.event-what { margin: 0 0 12px; font-size: 17px; line-height: 1.55; }
.event-notes { margin: 0; padding-left: 20px; line-height: 1.62; }
.compact-event { display: block; padding: 11px 2px; border-bottom: 1px solid var(--line); line-height: 1.45; }
.compact-event strong { display: block; font-size: 15px; }
.compact-event span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.highlight-event > summary, .compact-event > summary { cursor: pointer; position: relative; padding-right: 28px; list-style: none; }
.highlight-event > summary::-webkit-details-marker, .compact-event > summary::-webkit-details-marker { display: none; }
.highlight-event > summary::after, .compact-event > summary::after { content: "+"; position: absolute; right: 3px; top: 0; font-size: 22px; color: var(--muted); }
.highlight-event[open] > summary::after, .compact-event[open] > summary::after { content: "−"; }
summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.backup-details { padding: 14px 0 6px; line-height: 1.6; }
.backup-details p { margin: 0 0 12px; }
.backup-details ul { padding-left: 20px; }
.location-link { display: block; border: 0; padding: 5px 0; margin: 3px 0 10px; background: transparent; color: var(--blue); font: inherit; font-size: 14px; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.map-dialog { width: min(720px, calc(100% - 32px)); max-height: 90vh; border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
.map-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.map-dialog header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.map-dialog h2 { margin: 0; font-size: 22px; }
.map-close { border: 0; background: var(--soft); width: 36px; height: 36px; font-size: 26px; cursor: pointer; flex-shrink: 0; }
.map-address { line-height: 1.5; }
.external-map { display: inline-block; margin-bottom: 16px; color: var(--blue); }
.map-dialog iframe { display: block; width: 100%; height: min(440px, 55vh); border: 0; }
.highlights-only .compact-event { display: none; }
.highlights-only .run-day:not(:has(.highlight-event)) { display: none; }
.event-actions { margin-top: 16px; }

@media (max-width: 820px) {
  .mobile-menu { display: block; position: fixed; top: 12px; right: 12px; z-index: 30; padding: 10px 13px; border: 0; border-radius: 4px; background: var(--ink); color: #fff; font-weight: 750; }
  .sidebar { transform: translateX(-100%); transition: transform .18s ease; width: min(82vw, 290px); }
  .sidebar.open { transform: translateX(0); }
  main { margin-left: 0; padding: 72px 20px 64px; }
  .event-card { grid-template-columns: 1fr; }
  .event-image { min-height: 180px; }
  .facts, .day-list, .quick-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; }
  .run-header { align-items: start; flex-direction: column; }
  .view-toggle { width: 100%; }
  .view-toggle button { flex: 1; }
  .opening-copy { font-size: 20px; }
  .highlight-event { padding: 18px; }
}

@media print {
  .sidebar, .mobile-menu, .event-image { display: none; }
  main { margin: 0; max-width: none; padding: 20px; }
  .event-card { grid-template-columns: 1fr; break-inside: avoid; }
  .catalog-day:not([open]) > *:not(summary) { display: block; }
}
