/* ============================================================================
   epic-best-days.css, card 1210. The 10 best days to visit Epic Universe
   before New Year 2027. Builds on christmas-day-parks.css and quietest-days.css.
   The ranked table is plain HTML, stacked on small phones so it never scrolls
   sideways at 320, 375 or 390.
   ========================================================================== */

.eb-hero { display: grid; gap: 0; }
.eb-quick-h { margin: 18px 0 10px; font-size: 22px; }
.eb-lead { margin: 0 0 16px; font-size: 17px; line-height: 1.55; max-width: 72ch; }
.eb-answer { display: block; grid-template-areas: none; padding-top: 4px; }
.eb-answer .eb-quick-h { letter-spacing: -0.02em; }

.eb-table-wrap { width: 100%; max-width: 100%; }
.eb-cap { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: var(--hl-ink-3); }
.eb-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--hl-card); border-radius: 18px;
  box-shadow: var(--hl-shadow-sm), inset 0 0 0 1px var(--hl-line);
  overflow: hidden; font-size: 15px;
}
.eb-table th, .eb-table td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--hl-line);
}
.eb-table thead th {
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--hl-ink-3); background: color-mix(in oklab, var(--hl-sky-2) 55%, white);
  white-space: nowrap;
}
.eb-table tbody th {
  font-family: var(--hl-display); font-weight: 900; font-size: 22px;
  color: var(--pc, var(--hl-coral)); width: 3ch; white-space: nowrap;
}
.eb-table td time { font-weight: 800; font-variant-numeric: tabular-nums; }
.eb-table td a { color: var(--hl-ink); text-decoration: none; }
.eb-table td a:hover { color: var(--pc, var(--hl-coral)); }
.eb-dow { color: var(--hl-ink-3); font-size: 13px; font-weight: 700; }
.eb-table tbody tr:last-child th, .eb-table tbody tr:last-child td { border-bottom: 0; }
.eb-table tbody tr:hover td, .eb-table tbody tr:hover th {
  background: color-mix(in oklab, var(--pc, var(--hl-coral)) 6%, white);
}
.eb-table td b { font-family: var(--hl-display); font-size: 20px; font-weight: 900; color: var(--pc, var(--hl-coral)); }

.xq-day h3 time { font-variant-numeric: tabular-nums; }
.xq-day h3 span { display: block; font-family: var(--hl-ui); font-size: 15px; font-weight: 700; color: var(--hl-ink-2); letter-spacing: 0; margin-top: 2px; }

/* First-screen table on phones, no horizontal scroll. */
@media (max-width: 760px) {
  .eb-quick-h { margin-top: 12px; font-size: 20px; }
  .eb-lead { font-size: 16px; margin-bottom: 12px; }
  .eb-table { background: transparent; box-shadow: none; border-radius: 0; }
  .eb-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .eb-table, .eb-table tbody, .eb-table tr, .eb-table th, .eb-table td { display: block; width: 100%; }
  .eb-table tbody tr {
    margin: 0 0 12px; padding: 12px 14px 12px 16px; border-radius: 16px;
    background: var(--hl-card); box-shadow: var(--hl-shadow-sm), inset 0 0 0 1px var(--hl-line);
    border: 0; position: relative; overflow: hidden;
  }
  .eb-table tbody tr::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--pc, var(--hl-coral)); }
  .eb-table tbody th, .eb-table tbody td { border: 0; padding: 4px 0; }
  .eb-table tbody th { font-size: 28px; width: auto; padding-bottom: 6px; }
  .eb-table tbody td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 8px; align-items: start; }
  .eb-table tbody td::before {
    content: attr(data-label); font-size: 10.5px; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--hl-ink-3); padding-top: 3px;
  }
}

@media (max-width: 390px) {
  .eb-table tbody td { grid-template-columns: 6.4rem minmax(0, 1fr); font-size: 14px; }
  .xd-h1 { font-size: clamp(1.6rem, 8.4vw, 2.2rem); }
}
