/* Area "pages" (docs/V2_BUILD.md). Only this area edits this file.
   Lists, programmatic pages, fixed pages, errors. Tokens of tokens.css only. */

/* Page head --------------------------------------------------------------- */
.hsm-head { position: relative; margin-top: 40px; }
.hsm-head .hsm-overline { margin: 0; }
.hsm-lead { max-width: 760px; margin: 24px 0 0; font-size: 18px; }
.hsm-lead a { text-decoration: underline; text-underline-offset: 3px; }
.hsm-lead a:hover { color: var(--hsm-white); }
.hsm-intro { max-width: 760px; margin: 16px 0 0; }
.hsm-count { margin: 8px 0 0; }
.hsm-crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; list-style: none;
  font: 600 12px/1.4 var(--hsm-font); letter-spacing: var(--hsm-track); text-transform: uppercase; color: var(--hsm-muted); }
.hsm-crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--hsm-rule); }
.hsm-crumbs a { text-decoration: none; }
.hsm-crumbs a:hover { color: var(--hsm-white); text-decoration: underline; }
.hsm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hsm-tags a { text-decoration: none; }
.hsm-tags a:hover .hsm-tag { background: color-mix(in srgb, var(--style) 6%, transparent); }

/* Filters of the lists ---------------------------------------------------------- */
.hsm-filters {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px; align-items: end; max-width: 1180px; margin-top: 40px;
}
.hsm-filters__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.hsm-check { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; }
.hsm-check input { accent-color: var(--hsm-coral); width: 18px; height: 18px; margin: 0; }
@media (max-width: 900px) {
  .hsm-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hsm-filters__q { grid-column: 1 / -1; }
}

/* Entity row: the event row with a square photo (artists, locations, organisations) ---- */
.hsm-row--entity { grid-template-columns: 140px minmax(0, 1fr) auto 96px; }
.hsm-row__photo { width: 140px; aspect-ratio: 1; object-fit: cover; }
span.hsm-row__photo { display: grid; place-items: center; background: var(--hsm-field); color: var(--hsm-muted);
  font: 600 48px var(--hsm-font-wide); text-transform: uppercase; }
.hsm-row--entity .hsm-row__name { display: block; overflow-wrap: anywhere; }
.hsm-row__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hsm-row__where { display: block; color: var(--hsm-muted); }
.hsm-row__date { font: 600 30px/1.1 var(--hsm-font-wide); letter-spacing: var(--hsm-track); text-transform: uppercase; color: var(--hsm-white); }
@media (max-width: 900px) {
  .hsm-row--entity { grid-template-columns: 72px minmax(0, 1fr); }
  .hsm-row__photo { width: 72px; }
  span.hsm-row__photo { font-size: 28px; }
  .hsm-row__date { font-size: 20px; }
}

/* Pagination --------------------------------------------------------------- */
.hsm-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; }
.hsm-pager__prev { font-size: 14px; text-decoration: none; }
.hsm-pager__prev:hover { text-decoration: underline; }

/* Link lists: cities, styles, venues, artists (text columns, never tiles) ---------- */
.hsm-links { columns: 3 260px; column-gap: 48px; margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hsm-rule); }
.hsm-links li { break-inside: avoid; }
.hsm-links a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--hsm-rule); text-decoration: none; }
.hsm-links a:hover .hsm-links__name { text-decoration: underline; }
.hsm-links__name { font: 600 14px/1.3 var(--hsm-font); letter-spacing: 2px; text-transform: uppercase; color: var(--hsm-white);
  display: inline-flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.hsm-links__name svg { flex: none; }
.hsm-links__detail { color: var(--hsm-muted); font: 400 13px var(--hsm-font); letter-spacing: 0; text-transform: none; }
.hsm-links__count { flex: none; color: var(--hsm-muted); font-size: 14px; }
.hsm-more { margin-top: 32px; }

/* Series archive ------------------------------------------------------------- */
.hsm-edition { border-bottom: 1px solid var(--hsm-rule); }
.hsm-edition .hsm-row { border-bottom: 0; padding-bottom: 24px; }
.hsm-edition__lineup { margin: 0; padding: 0 0 32px; max-width: 1100px; color: var(--hsm-text); font-size: 14px; line-height: 1.9; }
.hsm-edition__lineup .hsm-overline { color: var(--hsm-muted); margin-right: 12px; }
.hsm-edition__lineup a { text-decoration: none; }
.hsm-edition__lineup a:hover { color: var(--hsm-white); text-decoration: underline; }
.hsm-edition__sep { color: var(--hsm-muted); padding: 0 6px; }
.hsm-edition__b2b { color: var(--hsm-muted); font-size: 12px; letter-spacing: 1px; }

/* Fixed pages: about, privacy, terms, contact -------------------------------------- */
.hsm-prose { max-width: 760px; margin-top: 40px; }
.hsm-prose h2 { margin: 56px 0 12px; font: 600 20px/1.2 var(--hsm-font-wide); letter-spacing: var(--hsm-track); text-transform: uppercase; color: var(--hsm-white); }
.hsm-prose h3 { margin: 28px 0 8px; font: 600 14px/1.4 var(--hsm-font); letter-spacing: 2px; text-transform: uppercase; color: var(--hsm-white); }
.hsm-prose p, .hsm-prose li { margin: 0 0 12px; }
.hsm-prose ul { margin: 0 0 16px; padding-left: 20px; }
.hsm-prose li::marker { color: var(--hsm-muted); }
.hsm-prose a { text-decoration: underline; text-underline-offset: 3px; }
.hsm-prose a:hover { color: var(--hsm-white); }
.hsm-prose strong { color: var(--hsm-white); font-weight: 600; }
.hsm-toc { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hsm-rule); max-width: 760px; columns: 2 300px; column-gap: 40px; }
.hsm-toc a { display: block; padding: 10px 0; border-bottom: 1px solid var(--hsm-rule); font-size: 14px; text-decoration: none; break-inside: avoid; }
.hsm-toc a:hover { color: var(--hsm-white); text-decoration: underline; }
/* Legal notice: label and value side by side, stacked on small screens. */
.hsm-legal { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 16px 0 24px; }
.hsm-legal dt { color: var(--hsm-white); font-weight: 600; }
.hsm-legal dd { margin: 0; }
@media (max-width: 600px) { .hsm-legal { grid-template-columns: 1fr; } .hsm-legal dd { margin-bottom: 10px; } }

.hsm-form { display: grid; gap: 24px; max-width: 760px; margin-top: 40px; }
.hsm-form textarea { min-height: 200px; resize: vertical; line-height: 1.5; }
.hsm-form__errors, .hsm-field__error { margin: 0; color: var(--hsm-hardcore-text); font-size: 14px; }
.hsm-form__note { margin: 0; color: var(--hsm-muted); font-size: 14px; }
.hsm-form__note a { color: var(--hsm-text); }
.hsm-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Errors ------------------------------------------------------------------- */
.hsm-error { padding-bottom: 32px; }
.hsm-error__code { margin: 40px 0 0; font: 600 clamp(80px, 16vw, 200px)/0.9 var(--hsm-font-wide); letter-spacing: var(--hsm-track); color: var(--hsm-white); }
.hsm-error__links { margin-top: 48px; max-width: 900px; border-bottom: 1px solid var(--hsm-rule); }
