/* Seasonal event hubs (scripts/generate-new-year-guide.mjs,
   scripts/generate-halloween-guide.mjs). Plain CSS on top of the editorial
   shell (editorial-guide.css, family-guide.css); tailwind.min.css is not
   loaded. */

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Night hero for the New Year page: midnight navy into celebratory amber. */
.hero--new-year { background: linear-gradient(118deg, #0b1d28, #16334a 52%, #d97724); }
.hero--new-year .eyebrow { color: #ffd98a; }
/* Halloween: deep violet night into pumpkin. */
.hero--halloween { background: linear-gradient(118deg, #1a0f2e, #3b1d5e 52%, #e8702a); }
.hero--halloween .eyebrow { color: #ffc98a; }

/* Status badges: what is confirmed for this season vs. what we only know from
   the previous edition. */
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .02em; line-height: 1.5; white-space: nowrap; vertical-align: middle; }
.status--confirmed { background: #e3f4ea; color: #1d6b3a; }
.status--pending { background: #fff1d6; color: #8a5a00; }
.status--none { background: #eef2f4; color: var(--muted); }

/* Municipality cards: photo banner (optional), heading with badge, chips,
   timeline, official-programme link. One column: the cards are long. */
.town-grid { grid-template-columns: 1fr; }
.town-card { overflow: hidden; border-top: 5px solid var(--line); }
.town-card--fire { border-top-color: #e3a51c; }
.town-card--noon { border-top-color: #f6c443; }
.town-card--party { border-top-color: #1f9e9a; }
.town-card--day { border-top-color: #8fb3c4; }
.town-card--terror { border-top-color: #8b5cf6; }
.town-card--finaos { border-top-color: #e07a2f; }
.town-card--event { border-top-color: #1f9e9a; }
.town-card__photo { display: block; width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 21 / 9; max-height: 220px; margin: -24px -24px 16px; object-fit: cover; }
.town-card h3 { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 0; }
.town-card h3 .status { font-family: "Nunito Sans", system-ui, sans-serif; }
.town-card__where { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; }
.town-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: .8rem 0 0; padding: 0; list-style: none; }
.town-card__chips li { margin: 0; padding: 4px 10px; border-radius: 999px; background: #f3f8f9; color: var(--night); font-size: .84rem; font-weight: 700; line-height: 1.5; }
.town-card ul { margin: .8rem 0 0; padding-left: 1.1rem; }
.town-card li { font-size: .97rem; }
.town-card li + li { margin-top: .45rem; }
.town-card__timeline { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0 14px; margin: 1rem 0 0; }
.town-card__timeline div { display: contents; }
.town-card__timeline dt { padding: 10px 0; border-top: 1px solid var(--line); color: var(--night); font-size: .84rem; font-weight: 800; line-height: 1.5; }
.town-card__timeline dt::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--ocean); vertical-align: 1px; }
.town-card--fire .town-card__timeline dt::before { background: #e3a51c; }
.town-card--noon .town-card__timeline dt::before { background: #f6c443; }
.town-card--party .town-card__timeline dt::before { background: #1f9e9a; }
.town-card--terror .town-card__timeline dt::before { background: #8b5cf6; }
.town-card--finaos .town-card__timeline dt::before { background: #e07a2f; }
.town-card--event .town-card__timeline dt::before { background: #1f9e9a; }
.town-card__timeline dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--line); font-size: .97rem; }
.town-card__official { margin: .9rem 0 0; font-size: .92rem; }
.town-card__official a { font-weight: 700; }

/* The season calendar: the date column stays narrow and never wraps mid-date. */
.comparison--calendar td:first-child { white-space: nowrap; font-weight: 700; }
.comparison--calendar .status { font-size: .72rem; }

/* Filter pills above the calendar (shown by new-year-guide.js). */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 .2rem; }
.filter-pills button { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 700 .88rem/1.4 "Nunito Sans", system-ui, sans-serif; cursor: pointer; }
.filter-pills button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }

/* The day's flow as time blocks (family-guide.css .week-plan). */
.day-plan li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 2px 14px; }
.day-plan__time { grid-row: 1 / span 2; align-self: start; color: var(--sun-dark); font-family: "Montserrat", "Nunito Sans", sans-serif; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.day-plan strong { color: var(--night); }

/* The event map: island outline from stargazing-guide.css (.sky-map), pins by
   event type. Each pin is a link to its municipality card. */
.ev-map__pin { cursor: pointer; }
.ev-map__pin circle { stroke: var(--night); stroke-width: 2; }
.ev-map__pin--fire circle { fill: #f6c443; }
.ev-map__pin--fire .ev-map__glow { fill: #f6c443; fill-opacity: .3; stroke: none; }
.ev-map__pin--noon circle { fill: #fff0b3; }
.ev-map__pin--party circle { fill: #4fd1c5; }
.ev-map__pin--terror circle { fill: #b48cff; }
.ev-map__pin--finaos circle { fill: #f0a05a; }
.ev-map__pin--event circle { fill: #4fd1c5; }
.ev-map__pin:hover circle, .ev-map__pin:focus circle { stroke: #fff; }
.ev-map__pin text { fill: #fff; font: 700 14px/1 "Nunito Sans", system-ui, sans-serif; paint-order: stroke; stroke: var(--night); stroke-width: 4px; stroke-linejoin: round; cursor: pointer; }
.ev-map__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: .8rem 0 0; padding: 0; list-style: none; font-size: .9rem; }
.ev-map__legend li { margin: 0; display: flex; align-items: center; gap: 7px; }
.ev-map__legend i { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--night); border-radius: 50%; }
.ev-map__legend .ev-map__swatch--fire { background: #f6c443; }
.ev-map__legend .ev-map__swatch--noon { background: #fff0b3; }
.ev-map__legend .ev-map__swatch--party { background: #4fd1c5; }
.ev-map__legend .ev-map__swatch--terror { background: #b48cff; }
.ev-map__legend .ev-map__swatch--finaos { background: #f0a05a; }
.ev-map__legend .ev-map__swatch--event { background: #4fd1c5; }
.sky-map__list--events { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* The "campanadas" clock box. */
.clock-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.2rem 0 0; }
.clock-box div { padding: 16px 18px; border-radius: 12px; background: #f3f8f9; }
.clock-box strong { display: block; color: var(--night); font-family: "Montserrat", "Nunito Sans", sans-serif; font-size: 1.5rem; letter-spacing: -.03em; }
.clock-box span { display: block; margin-top: 4px; color: var(--muted); font-size: .9rem; line-height: 1.45; }

/* Unverified figures carried over from the previous edition. */
[data-verify] { border-bottom: 1px dotted var(--sun-dark); }

@media (max-width: 820px) {
  .town-card__photo { aspect-ratio: 16 / 9; max-height: none; }
  .jump-links { position: sticky; top: 0; z-index: 2; margin: 0 -20px; padding: 8px 20px; background: var(--paper); }
}

@media (max-width: 620px) {
  .clock-box { grid-template-columns: 1fr; }
  .town-card h3 .status { font-size: .72rem; }
  .town-card__timeline { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .day-plan li { grid-template-columns: 1fr; }
  .day-plan__time { grid-row: auto; }
  /* The calendar keeps label and value on one line, like the family guide's
     at-a-glance table, so eighteen rows stay a glance. */
  .comparison--calendar td { padding: 2px 14px; }
  .comparison--calendar td::before { display: inline; margin-right: 6px; }
  .comparison--calendar td:first-child { padding-top: 12px; }
  .comparison--calendar td:first-child::before { display: none; }
  .comparison--calendar td:last-child { padding-bottom: 12px; }
}
