/* hsc-camps.css: the one camp card (hsc-camps.js) and its lists. Site tokens only.
   Alignment: cards in a row share their rows (subgrid), so the holiday, dates, venue,
   times, places and button line up across every card. Phones: a flat ruled list,
   full width, no box around each card (Brian, 23 Oct 2026: no boxes in boxes, no lost space). */
.hc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hc-card {
  display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 6px;
  border: 1px solid var(--rule); border-radius: 6px; padding: 22px 20px 20px; background: var(--surface);
}
.hc-card[hidden] { display: none; }
.hc-card > * { margin: 0; min-width: 0; }
.hc-card.hc-none { border-style: dashed; background: none; }
.hc-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mid); }
.hc-when { font-family: var(--font-disp); font-weight: 900; text-transform: uppercase; font-size: 26px; line-height: 1.05; color: var(--text); }
.hc-none .hc-when { color: var(--mid); }
.hc-where { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.4; }
.hc-what { font-size: 15px; color: var(--mid); line-height: 1.55; }
.hc-left { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.5; }
.hc-few .hc-left { color: var(--accent); }
.hc-act {
  align-self: end; display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 10px;
  padding: 0 16px; border-radius: 4px; background: var(--accent); color: #fff; border: 1px solid var(--accent);
  font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none; text-align: center;
}
.hc-act:hover { opacity: 0.88; }
.hc-act.hc-ghost { background: none; color: var(--text); border-color: rgba(242,238,235,0.55); }
.hc-empty { visibility: hidden; }

.hc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.hc-chips button { font: inherit; font-size: 14px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(242,238,235,0.35); background: none; color: var(--text); cursor: pointer; }
.hc-chips button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
[data-hsc-camps-when][hidden] { display: none !important; }

/* Hub venue cards: same grid and box as the camp cards, four shared rows. */
.hc-vcard { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 8px; border: 1px solid var(--rule); border-radius: 6px; padding: 22px 20px 20px; background: var(--surface); }
.hc-vcard > * { margin: 0; min-width: 0; }
.hc-vcard h3 { font-family: var(--font-disp); font-weight: 900; text-transform: uppercase; font-size: 26px; line-height: 1.05; color: var(--text); }
.hc-vcard > p:last-child { align-self: end; padding-top: 6px; }

/* The year of holidays on the hub. */
/* Same 16px gap as the cards, so tile edges meet the card edges above. */
.hc-year { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.hc-year li { margin: 0; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 6px; font-size: 14px; color: var(--mid); line-height: 1.5; }
.hc-year li > a.hc-year-link { display: block; margin: -14px -16px; padding: 14px 16px; height: calc(100% + 28px); color: inherit; text-decoration: none; }
.hc-year li b { color: var(--text); }
.hc-year a.hc-year-link:hover b { text-decoration: underline; }
/* "On sale at 2 venues · from Mon 21 Dec": one line in a hero, two lines in a tile. */
.hc-from::before { content: " · "; }
.hc-year .hc-from { display: block; }
.hc-year .hc-from::before { content: none; }

/* Preview hosts only (hsc-camps.js adds it off hertsswimcoach.uk). */
.hc-preview { position: fixed; right: 12px; top: 84px; z-index: 9999; background: #FFF4C2; color: #1A1716; font: 13px/1.4 system-ui, sans-serif; padding: 8px 12px; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hc-preview a { color: #1A1716; margin-left: 6px; padding: 2px 6px; border: 1px solid #8A8480; border-radius: 4px; text-decoration: none; }
.hc-preview a[aria-current] { background: #1A1716; color: #FFF4C2; }

@media (max-width: 1023px) {
  .hc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .hc-year { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 599px) {
  /* One flat list: rules between camps, the full screen width for the text. */
  .hc-grid { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--rule); }
  .hc-card, .hc-card.hc-none { grid-row: auto; grid-template-rows: none; display: flex; flex-direction: column; gap: 6px; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; padding: 22px 0; }
  .hc-empty { display: none; }
  .hc-when { font-size: 24px; }
  .hc-act { width: 100%; margin-top: 12px; }
  .hc-year { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  /* Venue filter: an even two-column grid, never a row that runs off the screen. */
  .hc-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hc-chips button { width: 100%; padding: 8px 10px; }
  /* Hub venue cards match the flat camp list above them. */
  .hc-vcard { grid-row: auto; grid-template-rows: none; display: flex; flex-direction: column; gap: 8px; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; padding: 22px 0; }
  .hc-vcard h3 { font-size: 24px; }
  .hc-vcard > p:last-child { align-self: flex-start; padding-top: 4px; }
  .hc-preview { left: 8px; right: 8px; top: auto; bottom: 8px; font-size: 12px; }
}
