/*
 * Texas Hockey News — public catalog styles.
 * Design tokens + components translated from the approved "Texas Hockey News"
 * design system. Photography-led surfaces use original, unbranded editorial
 * hockey images created for this project, with navy fallbacks beneath them.
 */

:root {
  /* Palette */
  --navy: #14213d;
  --navy-deep: #0d1730;
  --ice: #6fb7e6;
  --red: #c81428;
  --red-deep: #a90f21;
  --paper: #f5f4f0;
  --white: #ffffff;
  --ink: #172033;
  --slate: #687085;
  --green: #168451;
  --sample: #8a6d1a;

  /* Derived surfaces */
  --line: rgba(20, 33, 61, 0.10);
  --line-strong: rgba(20, 33, 61, 0.18);
  --ice-soft: rgba(111, 183, 230, 0.22);
  --ink-60: rgba(23, 32, 51, 0.60);
  --ink-50: rgba(23, 32, 51, 0.50);

  /* Type */
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  /* Spacing / shape */
  --maxw: 1240px;
  --radius: 12px;
  --radius-lg: 14px;
  --shadow-card: 0 8px 24px rgba(20, 33, 61, 0.12);
  --shadow-panel: 0 16px 48px rgba(20, 33, 61, 0.18);

  /* Safe areas (mobile) */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }
button, input, select { font-family: var(--sans); }
select:focus, input:focus { outline-color: var(--ice); }
::selection { background: var(--ice); color: var(--navy); }

h1, h2, h3 { margin: 0; }
img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.thn-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  padding-top: var(--safe-top);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}
.thn-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.thn-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.thn-logo-mark {
  width: 26px; height: 26px; background: var(--red); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; line-height: 1;
}
.thn-logo-text { font-weight: 900; font-size: 16px; letter-spacing: 0.06em; color: #fff; white-space: nowrap; }
.thn-logo-text span { color: var(--ice); }

.thn-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.thn-nav-item {
  padding: 8px 14px; font-size: 14px; font-weight: 500; cursor: pointer;
  color: rgba(255, 255, 255, 0.72); border-radius: 7px; background: transparent;
  border: none;
}
.thn-nav-item:hover { color: #fff; }
.thn-nav-item.active { font-weight: 700; color: #fff; background: rgba(111, 183, 230, 0.16); }

.thn-header-cta { display: flex; align-items: center; gap: 10px; }
/* The CTA carries two labels for the same destination (/subscribe); exactly one
   is rendered per viewport via display:none so the accessible name never
   diverges from the visible text (the old font-size:0 + ::after swap did). */
.thn-header-cta .cta-short { display: none; }
.thn-header-cta .btn-ghost-ice {
  background: transparent; border: 1px solid rgba(111, 183, 230, 0.55); color: var(--ice);
  padding: 9px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.thn-header-cta .btn-ghost-ice:hover { border-color: var(--ice); background: rgba(111, 183, 230, 0.1); }

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 8px; font-weight: 700; cursor: pointer;
  font-size: 14px; padding: 0 18px; height: 44px; white-space: nowrap;
  text-decoration: none;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--line-strong); color: var(--navy); font-weight: 600; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-soft { background: rgba(111, 183, 230, 0.14); color: var(--navy); font-weight: 600; }
.btn-soft:hover { background: rgba(111, 183, 230, 0.28); color: var(--navy); }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------ */
/* Typography helpers                                                  */
/* ------------------------------------------------------------------ */
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.kicker-red { color: var(--red); }
.kicker-ice { color: var(--ice); }
.serif { font-family: var(--serif); }
.section { padding-top: 72px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-title { font-family: var(--serif); font-size: 32px; font-weight: 700; margin-top: 6px; color: var(--navy); }
.section-link { font-size: 14px; font-weight: 600; color: var(--navy); border-bottom: 2px solid var(--ice); padding-bottom: 2px; cursor: pointer; }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-deep);
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 22, 44, 0.98) 0%, rgba(13, 28, 54, 0.91) 38%, rgba(13, 28, 54, 0.38) 68%, rgba(13, 28, 54, 0.12) 100%),
    linear-gradient(180deg, rgba(20, 33, 61, 0.08) 45%, rgba(20, 33, 61, 0.82) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 26px);
}
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 108px 40px 140px; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ice); margin-bottom: 16px; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: 64px; line-height: 1.05; color: #fff; max-width: 760px; text-wrap: balance; }
.hero p { font-size: 20px; line-height: 1.5; color: rgba(255, 255, 255, 0.82); margin: 20px 0 0; max-width: 560px; }

/* Region hero (compact) */
.region-hero .hero-inner { padding: 72px 40px; }
.region-hero h1 { font-size: 54px; }

/* ------------------------------------------------------------------ */
/* Search panel                                                        */
/* ------------------------------------------------------------------ */
.search-panel-shell { max-width: var(--maxw); margin: -84px auto 0; padding: 0 40px; position: relative; z-index: 5; }
.search-panel {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-panel);
  padding: 24px 28px;
}
/* Four selects + the CTA share one row; the auto track keeps the button from
   wrapping onto a lonely second line (audit F-18). */
.search-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1fr auto; gap: 14px; align-items: end; }
.search-note { margin-top: 12px; font-size: 12.5px; color: rgba(23, 32, 51, 0.55); }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
.field-sm { font-size: 11px; color: var(--ink-60); }
.control {
  height: 46px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 10px;
  font-size: 15px; color: var(--ink); background: var(--white);
}
.control-sm { height: 42px; font-size: 14px; }

/* ------------------------------------------------------------------ */
/* Cards (grids)                                                       */
/* ------------------------------------------------------------------ */
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.pill-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); background: var(--ice-soft); padding: 4px 8px; border-radius: 5px;
}
.pill.past { background: var(--slate); color: #fff; }
.pill.ongoing { background: var(--green); color: #fff; }
.pill-muted { font-size: 12px; font-weight: 600; color: var(--ink-60); background: none; padding: 0; letter-spacing: 0; text-transform: none; }
/* --ink-60 is tuned for light surfaces; on the dark detail hero the audience
   chip needs its own light ink to stay readable next to the status tag. */
.detail-hero .pill-muted { color: rgba(255, 255, 255, 0.85); }
.deadline { font-size: 13px; font-weight: 700; color: var(--red); }
.verified { font-size: 12px; font-weight: 600; color: var(--green); }

/* Compact opportunity card (closing soon / upcoming / recently verified) */
.opp-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; cursor: pointer; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.15s ease; overflow: hidden;
}
.opp-card:hover { box-shadow: var(--shadow-card); }
.opp-card-title { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.25; color: var(--navy); }
.opp-card-meta { font-size: 13px; color: rgba(23, 32, 51, 0.65); }
.opp-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.opp-card-media { height: 150px; position: relative; }
.opp-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }

/* Original editorial photography generated for Texas Hockey News. */
.media {
  position: relative; background: linear-gradient(150deg, #1c3157, var(--navy) 60%, var(--navy-deep));
  overflow: hidden;
}
.content-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform 0.35s ease;
}
.opp-card:hover .content-photo, .region-tile:hover .content-photo { transform: scale(1.025); }
.media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,23,48,0.02) 35%, rgba(13,23,48,0.48) 100%);
}
.media-label {
  position: absolute; left: 14px; bottom: 12px; right: 14px; z-index: 1;
  color: rgba(255, 255, 255, 0.9); font-size: 12px; font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Region tiles                                                        */
/* ------------------------------------------------------------------ */
.region-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.region-tile { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.region-tile .media { position: absolute; inset: 0; }
.region-tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,33,61,0) 30%, rgba(20,33,61,0.88) 100%);
}
.region-tile-body { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; }
.region-tile-name { font-family: var(--serif); font-size: 22px; font-weight: 700; color: #fff; }
.region-tile-count { font-size: 12px; font-weight: 600; color: var(--ice); margin-top: 2px; }

/* ------------------------------------------------------------------ */
/* Dark band (home)                                                    */
/* ------------------------------------------------------------------ */
.band { background: var(--navy); margin-top: 80px; }
.band .wrap { padding-top: 60px; padding-bottom: 60px; }
.band .section-title { color: #fff; }

/* Split CTA (alerts + submit) */
.cta-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.cta-card { border-radius: var(--radius-lg); padding: 36px 40px; display: flex; flex-direction: column; }
.cta-card.navy { background: var(--navy); color: #fff; }
.cta-card.light { background: var(--white); border: 1px solid var(--line); }
.cta-card h3 { font-family: var(--serif); font-size: 28px; font-weight: 700; margin: 8px 0 6px; }
.cta-card.navy h3 { color: #fff; }
.cta-card.light h3 { color: var(--navy); }
.cta-card p { font-size: 15px; margin: 0 0 20px; }
.cta-card.navy p { color: rgba(255, 255, 255, 0.75); }
.cta-card.light p { color: rgba(23, 32, 51, 0.7); }

/* ------------------------------------------------------------------ */
/* Results screen                                                      */
/* ------------------------------------------------------------------ */
.results-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.results-h1 { font-family: var(--serif); font-size: 38px; font-weight: 700; margin: 6px 0 4px; color: var(--navy); }
.results-sub { font-size: 14px; color: var(--ink-60); }
.results-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.mobile-filter-bar, .mobile-filter-actions { display: none; }
.mobile-filter-summary { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
.filter-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 999px; background: rgba(20, 33, 61, 0.07); color: var(--navy); font-size: 12px; font-weight: 650; }
.mobile-filter-reset { border: 0; background: none; color: var(--red); font-size: 12px; font-weight: 700; cursor: pointer; padding: 6px 4px; }
.mobile-filter-none { color: var(--ink-60); font-size: 13px; }

.view-toggle { display: flex; background: var(--white); border: 1px solid rgba(20, 33, 61, 0.14); border-radius: 8px; padding: 3px; }
.view-toggle button { height: 36px; padding: 0 16px; border: none; border-radius: 6px; font-size: 13.5px; font-weight: 700; cursor: pointer; background: transparent; color: var(--ink-60); }
.view-toggle button.active { background: var(--navy); color: #fff; }

.results-layout { display: grid; grid-template-columns: 272px 1fr; gap: 28px; align-items: start; }
/* Grid items default to min-width:auto (= min-content), which blows the 1fr track
   past the viewport once the columns collapse to 1fr under 900px. */
.results-layout > * { min-width: 0; }
.filters { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-head .title { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.filters-head .reset { font-size: 12px; font-weight: 600; color: var(--red); cursor: pointer; background: none; border: none; }
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group > .label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-60); }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 34px; font-size: 14px; color: var(--ink); cursor: pointer; }
.check-row input { width: 16px; height: 16px; accent-color: var(--navy); }
.search-input { height: 42px; border: 1px solid rgba(20, 33, 61, 0.16); border-radius: 8px; padding: 0 12px; font-size: 14px; background: var(--white); color: var(--ink); width: 100%; }

/* Result list row */
.result-list { display: flex; flex-direction: column; gap: 14px; }
.result-row { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; gap: 20px; align-items: stretch; transition: box-shadow 0.15s ease; }
.result-row:hover { box-shadow: 0 8px 24px rgba(20, 33, 61, 0.10); }
.date-block { width: 76px; flex: none; background: var(--navy); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.date-block .m { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ice); }
.date-block .d { font-size: 26px; font-weight: 800; color: #fff; line-height: 1; }
.date-block .d.tba { font-size: 15px; }
.result-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.result-title { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--navy); cursor: pointer; line-height: 1.25; }
.result-title:hover { color: var(--red); }
.result-org { font-size: 13.5px; color: rgba(23, 32, 51, 0.65); }
.result-facts { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--ink); margin-top: 2px; }
.result-facts b { font-weight: 700; }
.result-status { display: flex; gap: 16px; align-items: center; margin-top: 2px; flex-wrap: wrap; }
.result-actions { flex: none; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.result-actions .btn { height: 42px; padding: 0 20px; }
.fit-badge { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 5px; }
.fit-yes { color: var(--green); background: rgba(22, 132, 81, 0.1); }
.fit-no { color: rgba(23, 32, 51, 0.55); background: rgba(20, 33, 61, 0.06); font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Calendar                                                            */
/* ------------------------------------------------------------------ */
.cal { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cal-next { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; text-align: left; border: 1px solid #bfddef; border-radius: var(--radius); background: #edf7fc; color: var(--navy); padding: 14px 16px; margin-bottom: 14px; cursor: pointer; }
.cal-next span { color: var(--red); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 800; }
.cal-next strong { font-size: 15px; }
.cal-next small { color: var(--ink-60); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head .label { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--navy); }
.cal-nav { width: 38px; height: 38px; border: 1px solid var(--line-strong); background: var(--white); border-radius: 8px; cursor: pointer; font-size: 16px; color: var(--navy); }
.cal-nav:hover { border-color: var(--navy); }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cal-dow div { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(23, 32, 51, 0.45); padding: 6px 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell { min-height: 86px; border: 1px solid rgba(20, 33, 61, 0.07); border-radius: 8px; padding: 6px; background: #fbfbf9; display: flex; flex-direction: column; gap: 4px; }
.cal-cell .num { font-size: 12px; font-weight: 700; color: rgba(23, 32, 51, 0.55); }
.cal-marks { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cal-mark { width: 28px; height: 28px; padding: 0; border: 2px solid var(--navy); border-radius: 50%; background: var(--white); color: var(--navy); display: grid; place-items: center; overflow: hidden; cursor: pointer; font-size: 11px; font-weight: 900; box-shadow: 0 1px 3px rgba(20,33,61,.18); }
.cal-mark img { grid-area: 1/1; width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.cal-mark span { grid-area: 1/1; }
.cal-mark.deadline { border-color: var(--red); box-shadow: 0 0 0 1px rgba(200,20,40,.16); }
.cal-mark.ongoing { border-color: var(--green); box-shadow: 0 0 0 1px rgba(22,132,81,.18); }
.cal-mark.past { border-color: var(--slate); filter: grayscale(1); opacity: .62; }
.cal-mark:hover,.cal-mark:focus-visible { transform: translateY(-1px); box-shadow: 0 3px 7px rgba(20,33,61,.28); outline: none; }
.swatch.gray { background: var(--slate); }
.cal-legend { display: flex; gap: 18px; margin-top: 14px; font-size: 12px; color: var(--ink-60); }
.cal-legend span { display: flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.swatch.navy { background: var(--navy); }
.swatch.red { background: var(--red); }
.swatch.green { background: var(--green); }

/* ------------------------------------------------------------------ */
/* Detail                                                              */
/* ------------------------------------------------------------------ */
.detail-hero { position: relative; height: 280px; overflow: hidden; }
.detail-hero .media { position: absolute; inset: 0; }
.detail-hero .content-photo { background-position: center 42%; }
.detail-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,33,61,0.35), rgba(20,33,61,0.9)); }
.detail-hero-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.detail-hero-body .wrap { padding-bottom: 24px; }
.back-link { font-size: 13px; font-weight: 600; color: var(--ice); cursor: pointer; }
.status-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--green); padding: 5px 10px; border-radius: 6px; }
.status-tag.open { background: var(--green); }
.status-tag.closed { background: var(--slate); }
/* Neither an open registration nor a closed one: the organizer published no
   registration at all. Reads as informational, not as a negative signal. */
.status-tag.neutral { background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "intro registration" "content support"; gap: 28px 36px; align-items: start; padding-top: 32px; padding-bottom: 88px; }
.detail-intro { grid-area: intro; }
.detail-registration { grid-area: registration; position: sticky; top: 84px; }
.detail-content { grid-area: content; min-width: 0; }
.detail-support { grid-area: support; display: flex; flex-direction: column; gap: 14px; }
.detail-title { font-family: var(--serif); font-size: 42px; font-weight: 700; line-height: 1.1; color: var(--navy); margin-bottom: 10px; }
.detail-org { font-size: 16px; color: rgba(23, 32, 51, 0.7); margin-bottom: 24px; }
.detail-summary { font-size: 16px; line-height: 1.65; color: rgba(23, 32, 51, 0.82); max-width: 720px; margin: -8px 0 24px; }
.fit-panel { border-radius: var(--radius); padding: 18px 22px; border: 1px solid; }
.fit-panel .h { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.fit-panel .b { font-size: 15px; line-height: 1.5; }
.fit-panel.yes { border-color: rgba(22, 132, 81, 0.35); background: rgba(22, 132, 81, 0.07); color: #0f5e3b; }
.fit-panel.no { border-color: rgba(200, 20, 40, 0.35); background: rgba(200, 20, 40, 0.06); color: #8f1020; }
.fit-panel.neutral { border-color: rgba(20, 33, 61, 0.2); background: rgba(20, 33, 61, 0.03); color: var(--ink); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 24px 0; }
.fact { background: var(--white); padding: 16px 18px; }
.fact .k { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-50); margin-bottom: 5px; }
.fact .v { font-size: 15.5px; font-weight: 600; color: var(--navy); }
.detail-note { font-size: 15px; line-height: 1.6; color: rgba(23, 32, 51, 0.75); max-width: 640px; }

.reg-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 8px 24px rgba(20, 33, 61, 0.06); }
.reg-card .date { font-size: 13px; font-weight: 600; color: var(--ink-60); margin-bottom: 2px; }
.reg-card.status-compact .date { margin-bottom: 16px; }
.reg-card .dl { font-size: 15px; font-weight: 700; color: var(--red); margin-bottom: 16px; }
.reg-card .btn { height: 50px; font-size: 16px; font-weight: 800; }
.reg-actions { display: flex; gap: 10px; margin-top: 10px; }
.reg-actions .btn { flex: 1; height: 44px; font-size: 13.5px; }
.verified-panel { background: rgba(22, 132, 81, 0.07); border: 1px solid rgba(22, 132, 81, 0.3); border-radius: var(--radius-lg); padding: 18px 20px; }
.verified-panel .h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--green); }
.verified-panel .b { font-size: 13px; color: rgba(23, 32, 51, 0.7); margin-top: 6px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ------------------------------------------------------------------ */
/* Region page                                                         */
/* ------------------------------------------------------------------ */
.region-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; padding-top: 52px; padding-bottom: 88px; }
.region-row { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 16px; align-items: center; cursor: pointer; }
.region-row:hover { box-shadow: 0 8px 24px rgba(20, 33, 61, 0.10); }
.region-row .date-block { width: 64px; height: 64px; }
.region-row .date-block .d { font-size: 22px; }
.region-aside .card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; }
.region-aside .navy { background: var(--navy); color: #fff; }
.region-aside .navy h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.region-aside .navy p { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); margin: 0 0 14px; }

/* ------------------------------------------------------------------ */
/* States                                                              */
/* ------------------------------------------------------------------ */
.state { background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 60px 40px; text-align: center; }
.state .icon { width: 72px; height: 72px; border-radius: 50%; background: rgba(111, 183, 230, 0.18); margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--navy); }
.state .h { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--navy); }
.state .b { font-size: 15px; color: rgba(23, 32, 51, 0.65); max-width: 460px; margin: 10px auto 24px; }
.state .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.state-inline { padding: 40px; }

/* ------------------------------------------------------------------ */
/* Info bar (news/listings separation note)                            */
/* ------------------------------------------------------------------ */
.info-bar { background: var(--navy); border-radius: var(--radius-lg); padding: 26px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.info-bar .t { font-family: var(--serif); font-size: 20px; font-weight: 600; color: #fff; margin-top: 6px; max-width: 620px; }

/* Public news */
.page-intro { background: var(--navy); color: white; padding: 72px 0 64px; }
.page-intro h1 { font-family: var(--serif); font-size: clamp(38px, 6vw, 64px); line-height: 1.03; max-width: 820px; margin: 10px 0 16px; }
.page-intro p { max-width: 720px; color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.55; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; cursor: pointer; box-shadow: 0 8px 25px rgba(20,33,61,.06); transition: transform .18s ease, box-shadow .18s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(20,33,61,.12); }
.news-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: #e7edf2; }
/* Keep the event title on this square artwork inside the landscape card crop. */
.news-card img[src*="dallas-stars-tournaments-lists-2026-fall-showcase-in-san-antonio/image"] { object-position: center bottom; }
.news-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.news-card h2 { font-family: var(--serif); color: var(--navy); font-size: 25px; line-height: 1.15; margin: 10px 0; }
.news-card p { color: var(--ink-60); line-height: 1.55; margin-bottom: 18px; }
.news-card .section-link { align-self: flex-start; margin-top: auto; }
.article-page { padding-bottom: 88px; }
.article-cover { height: min(56vw, 560px); min-height: 320px; background: var(--navy); overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-shell { max-width: 820px; padding: 48px 32px 0; margin: 0 auto; }
.article-shell h1 { font-family: var(--serif); color: var(--navy); font-size: clamp(38px, 6vw, 62px); line-height: 1.04; margin: 14px 0 28px; }
.article-body { font-family: var(--serif); font-size: 21px; line-height: 1.72; color: var(--ink); }
.article-body p { margin-bottom: 22px; }
.source-box { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px; margin: 38px 0 20px; border: 1px solid #b9ddcb; border-radius: var(--radius); background: #f2faf6; }
.source-box strong, .source-box span { display: block; }
.source-box span { color: var(--ink-60); margin-top: 4px; }
.back-link.dark { border: 0; background: none; color: var(--navy); padding: 0; margin-bottom: 26px; cursor: pointer; }
.story-share { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 8px; flex-wrap: wrap; }
.story-share > div { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.thn-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.7); margin-top: 0; padding-bottom: calc(28px + var(--safe-bottom)); }
.thn-footer .wrap { padding-top: 40px; padding-bottom: 28px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a, .footer-links button { color: rgba(255, 255, 255, 0.72); font-size: 14px; font-weight: 600; background: none; border: none; cursor: pointer; padding: 0; }
.footer-links a:hover, .footer-links button:hover { color: var(--ice); }
.footer-note { font-size: 12.5px; color: rgba(255, 255, 255, 0.45); margin-top: 18px; max-width: 720px; line-height: 1.5; }

/* ------------------------------------------------------------------ */
/* Toast                                                               */
/* ------------------------------------------------------------------ */
.toast {
  position: fixed; left: 50%; bottom: calc(28px + var(--safe-bottom)); transform: translateX(-50%);
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600; z-index: 200; box-shadow: 0 8px 24px rgba(20, 33, 61, 0.35);
  animation: thnToast 0.25s ease;
}
@keyframes thnToast { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ------------------------------------------------------------------ */
/* Mobile tab bar (bottom nav with safe-area inset)                    */
/* ------------------------------------------------------------------ */
.thn-tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--white); border-top: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 0 calc(6px + var(--safe-bottom));
  padding-left: var(--safe-left); padding-right: var(--safe-right);
}
.thn-tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-height: 44px; padding: 6px 0; cursor: pointer;
  color: rgba(23, 32, 51, 0.5); background: none; border: none; text-decoration: none;
}
.thn-tab.active { color: var(--red); }
.thn-tab .ico { font-size: 18px; line-height: 1; }
.thn-tab .lbl { font-size: 10.5px; font-weight: 700; }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cta-split { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; grid-template-areas: "intro" "registration" "content" "support"; }
  .detail-registration { position: static; }
  .region-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-layout { grid-template-columns: 1fr; }
  .filters { display: none; position: static; }
  .filters.is-open { display: flex; }
  .mobile-filter-bar { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: -8px 0 18px; }
  .mobile-filter-toggle { width: 100%; min-height: 44px; }
  .mobile-filter-actions { display: block; position: sticky; top: 70px; z-index: 3; padding: 4px 0; background: var(--white); }
  .hero h1 { font-size: 48px; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  /* When the selects wrap to two columns, the CTA takes its own full row
     instead of sitting half-width in the first column (audit F-18). */
  .search-grid > .btn { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .cal-next { grid-template-columns: 1fr; gap: 4px; }
  .news-grid { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: 1fr; }
  .source-box { align-items: stretch; flex-direction: column; }
  .story-share, .story-share > div { align-items: stretch; flex-direction: column; }
  .article-shell { padding: 34px 20px 0; }
  .thn-header-inner { padding: 0 14px; gap: 8px; }
  .thn-logo { gap: 7px; }
  .thn-logo-mark { width: 24px; height: 24px; }
  .thn-logo-text { font-size: 12px; letter-spacing: 0.045em; }
  .thn-header-cta .btn-red { height: 40px; padding: 0 12px; font-size: 12px; }
  .thn-header-cta .cta-full { display: none; }
  .thn-header-cta .cta-short { display: inline; }
  .wrap { padding: 0 20px; }
  .hero-inner { padding: 72px 20px 120px; }
  .hero-photo { object-position: 62% center; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(10,22,44,0.96) 0%, rgba(13,28,54,0.78) 68%, rgba(13,28,54,0.42) 100%),
      linear-gradient(180deg, rgba(13,28,54,0.18) 35%, rgba(13,28,54,0.9) 100%);
  }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 17px; }
  .search-panel-shell { padding: 0 20px; }
  .search-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .facts-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .section { padding-top: 48px; }
  .section-title, .results-h1 { font-size: 28px; }
  .detail-title { font-size: 32px; }
  .result-row { flex-wrap: wrap; }
  .result-actions { flex-direction: row; width: 100%; }
  .result-actions .btn { flex: 1; }
  /* Show bottom tab bar, keep content clear of it */
  .thn-nav { display: none; }
  .thn-header-cta .btn-ghost-ice { display: none; }
  .thn-tabbar { display: grid; }
  body { padding-bottom: calc(64px + var(--safe-bottom)); }
  .toast { bottom: calc(78px + var(--safe-bottom)); }
}

/* ------------------------------------------------------------------ */
/* Email subscription                                                  */
/* ------------------------------------------------------------------ */
.subscribe-form { display: flex; flex-direction: column; gap: 12px; }
/* Hidden, not removed: the field must stay in form.elements so the submit
   payload keeps its shape (the server drops the year for adult anyway). */
.subscribe-form.is-adult .field-birth-year { display: none; }
.subscribe-form .field { text-align: left; }
.subscribe-note { font-size: 12px; line-height: 1.5; color: rgba(23, 32, 51, 0.55); }
.navy .subscribe-note, .cta-card.navy .subscribe-note { color: rgba(255, 255, 255, 0.6); }
.navy .subscribe-form .field, .cta-card.navy .subscribe-form .field { color: rgba(255, 255, 255, 0.85); }
.filter-subscribe { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.archive-toggle { border-top: 1px solid var(--line); padding-top: 14px; color: var(--navy); font-weight: 650; }
.filter-subscribe .label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
.subscribe-done { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: rgba(111, 183, 230, 0.12); }
.subscribe-done .h { font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.subscribe-done .b { font-size: 13.5px; line-height: 1.5; color: rgba(23, 32, 51, 0.7); }
.navy .subscribe-done, .cta-card.navy .subscribe-done { background: rgba(255, 255, 255, 0.08); border-color: rgba(111, 183, 230, 0.35); }
.navy .subscribe-done .h, .cta-card.navy .subscribe-done .h { color: #fff; }
.navy .subscribe-done .b, .cta-card.navy .subscribe-done .b { color: rgba(255, 255, 255, 0.75); }
.subscribe-page .subscribe-layout { display: grid; grid-template-columns: minmax(320px, 460px) 1fr; gap: 40px; align-items: start; }
.subscribe-card-page { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.subscribe-points { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.subscribe-points .point { font-size: 15px; line-height: 1.55; color: rgba(23, 32, 51, 0.75); }
.subscribe-points .point strong { color: var(--navy); }
@media (max-width: 860px) {
  .subscribe-page .subscribe-layout { grid-template-columns: 1fr; }
}
