/*
 * The event pages /story/<date>/<code>/ and the topic pages /topic/...
 * (plan 2026-11-24-seo-ai-event-pages.md, stage 1).
 *
 * Mobile-first, with the breakpoints of responsive.css:
 *   - base: phones (up to 767px): the coverage table reads as stacked cards,
 *     the general / Haredi lists stack;
 *   - min-width 768px: a real table, the two lists side by side, facts in a grid;
 *   - min-width 1025px: a wider column.
 */

.event-main { max-width: 760px; margin: 0 auto; padding: 12px var(--gutter) 24px; }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 12px; padding: 0; font-size: 0.85rem; color: var(--text-2); }
.crumbs li + li::before { content: "‹"; margin-inline-end: 4px; }
.crumbs a { color: inherit; }
.crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ---------- Headline ---------- */
.event h1, .event-main > h1 { font-size: 1.45rem; line-height: 1.3; margin: 4px 0 6px; }
.event-byline { margin: 0 0 14px; color: var(--text-2); font-weight: 600; }

/* ---------- Summary (RSS, attributed) ---------- */
.event-summary { margin: 0 0 16px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--honey); border-radius: var(--radius); }
.event-summary blockquote { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.event-summary figcaption { margin-top: 6px; font-size: 0.85rem; color: var(--text-2); }

/* ---------- Facts ---------- */
.event-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 20px; }
.event-facts > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.event-facts dt { font-size: 0.8rem; color: var(--text-2); }
.event-facts dd { margin: 2px 0 0; font-weight: 700; }

/* ---------- Coverage table: cards on phones ---------- */
.event h2 { font-size: 1.2rem; margin: 22px 0 10px; }
.event-coverage table { width: 100%; border-collapse: collapse; }
.event-coverage thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.event-coverage tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; margin-bottom: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.event-coverage td { display: block; padding: 0; }
.event-coverage .c-outlet { font-weight: 700; font-size: 0.9rem; }
.event-coverage .c-time { color: var(--text-2); font-size: 0.85rem; text-align: end; }
.event-coverage .c-title { grid-column: 1 / -1; grid-row: 2; }
.event-coverage .c-title a, .sector-col a, .tl-list a, .topic-index a { text-decoration: none; font-weight: 600; line-height: 1.4; }
.event-coverage a:hover, .sector-col a:hover, .tl-list a:hover, .topic-index a:hover { text-decoration: underline; }

/* ---------- General and Haredi ---------- */
.sector-counts { font-weight: 600; margin: 0 0 10px; }
.sector-cols { display: grid; gap: 12px; }
.sector-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.sector-col h3 { font-size: 1rem; margin: 0 0 8px; }
.sector-col ul, .tl-list, .topic-index { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sector-col small, .tl-list small, .topic-index small { display: block; color: var(--text-2); font-size: 0.85rem; }

/* ---------- Related links, timeline, pager, call to action ---------- */
.event-related { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 22px 0 8px; }
.event-related a { font-weight: 600; }
.tl-day { font-size: 1rem; color: var(--text-2); margin: 20px 0 8px; }
.tl-list > li, .topic-index > li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.pager { display: flex; justify-content: space-between; margin: 20px 4px; }
.pager a { text-decoration: none; font-weight: 600; }
.event-cta { margin-top: 24px; background: var(--cream); border-radius: var(--radius); padding: 16px; text-align: center; }
.event-cta .btn { text-decoration: none; }
.empty { color: var(--text-2); }

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  .event h1, .event-main > h1 { font-size: 1.8rem; }
  .event-facts { grid-template-columns: repeat(4, 1fr); }
  .event-coverage thead { position: static; width: auto; height: auto; clip: auto; }
  .event-coverage table { display: table; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .event-coverage tr { display: table-row; padding: 0; margin: 0; background: none; border: 0; border-radius: 0; }
  .event-coverage th, .event-coverage td { display: table-cell; padding: 10px 12px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
  .event-coverage tbody tr:last-child td { border-bottom: 0; }
  .event-coverage th { font-size: 0.85rem; color: var(--text-2); }
  .event-coverage .c-outlet { white-space: nowrap; }
  .event-coverage .c-time { white-space: nowrap; text-align: start; }
  .sector-cols { grid-template-columns: 1fr 1fr; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1025px) {
  .event-main { max-width: 860px; }
}
