/* ==========================================================================
   Show Up And Play — Article / city guide styles
   Loads on top of app.css (tokens, nav, buttons, footer all come from there).
   ========================================================================== */

.article { position: relative; z-index: 1; }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: var(--faint); padding-top: 26px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--faint); }

/* ---------- Article hero ---------- */
.a-hero { padding-block: 26px clamp(30px, 4vw, 46px); }
.a-hero h1 { margin-top: 18px; max-width: 20ch; }
.a-hero .lead { margin-top: 18px; max-width: 68ch; }
.a-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 22px; font-size: .82rem; color: var(--muted); }
.a-meta .pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: .78rem;
}
.a-meta .pill svg { width: 13px; height: 13px; color: var(--muted); }

/* ---------- Key facts ---------- */
.facts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-block: clamp(26px, 4vw, 40px); }
.fact {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 19px;
  border-top: 2px solid var(--accent-line);
}
.fact h4 { font-size: .69rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 750; margin-bottom: 9px; }
.fact p { font-size: .93rem; color: var(--text); line-height: 1.5; font-weight: 600; }
.fact p a { color: var(--accent); text-decoration: none; }
.fact p a:hover { text-decoration: underline; }
.fact small { display: block; margin-top: 6px; font-size: .8rem; color: var(--muted); font-weight: 400; line-height: 1.5; }

/* ---------- Prose ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: clamp(38px, 5vw, 58px); margin-bottom: 16px; scroll-margin-top: 90px; }
.prose h3 { margin-top: 30px; margin-bottom: 10px; font-size: 1.06rem; }
.prose p { margin-bottom: 16px; color: var(--text-2); font-size: 1rem; line-height: 1.72; }
.prose p strong, .prose li strong { color: var(--text); font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; color: var(--text-2); line-height: 1.7; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose--wide { max-width: none; }

/* ---------- Callout ---------- */
.note {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius-sm);
  padding: 18px 20px; margin-block: 24px;
}
.note svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.note div { font-size: .92rem; color: var(--text-2); line-height: 1.65; }
.note b { color: var(--text); display: block; margin-bottom: 4px; font-size: .93rem; }
.note--warn { border-left-color: var(--warn); }
.note--warn svg { color: var(--warn); }

/* ---------- Club table ---------- */
.table-wrap {
  margin-block: 24px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-hint {
  padding: 11px 16px; margin: 0; font-size: .76rem; font-weight: 650;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border); background: var(--surface-2);
}
table.clubs { width: 100%; border-collapse: collapse; min-width: 1320px; font-size: .845rem; table-layout: fixed; }
col.c-club    { width: 15%; }
col.c-profile { width: 17%; }
col.c-fees    { width: 17%; }
col.c-levels  { width: 14%; }
col.c-leagues { width: 13%; }
col.c-fac     { width: 12%; }
col.c-comm    { width: 14%; }
col.c-ages    { width: 9%;  }
table.clubs thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface-3); color: var(--text);
  text-align: left; font-weight: 750; font-size: .74rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 13px 15px; white-space: nowrap;
  border-bottom: 1px solid var(--border-strong);
}
table.clubs td { padding: 15px; vertical-align: top; border-bottom: 1px solid var(--border); color: var(--text-2); line-height: 1.55; }
table.clubs tbody tr:last-child td { border-bottom: 0; }
table.clubs tbody tr:hover { background: var(--surface-2); }
table.clubs td.club-name { color: var(--text); font-weight: 650; min-width: 190px; }
table.clubs td.club-name a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
table.clubs td.club-name a:hover { color: var(--accent); }
table.clubs td.club-name small { display: block; margin-top: 5px; font-weight: 400; color: var(--muted); font-size: .8rem; }
.fee-known { color: var(--text); font-weight: 600; }
.fee-none { color: var(--faint); font-style: italic; }

/* Mobile: table becomes stacked cards */
@media (max-width: 860px) {
  .table-hint { display: none; }
  .table-scroll { overflow-x: visible; }
  table.clubs { min-width: 0; display: block; table-layout: auto; }
  table.clubs colgroup { display: none; }
  table.clubs thead { display: none; }
  table.clubs tbody, table.clubs tr, table.clubs td { display: block; width: 100%; }
  table.clubs tr {
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    margin: 12px; background: var(--surface-2); overflow: hidden;
  }
  table.clubs tbody tr:hover { background: var(--surface-2); }
  table.clubs td { border-bottom: 1px solid var(--border); padding: 11px 15px; }
  table.clubs tr td:last-child { border-bottom: 0; }
  table.clubs td::before {
    content: attr(data-label);
    display: block; font-size: .66rem; font-weight: 750;
    letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
    margin-bottom: 5px;
  }
  table.clubs td.club-name { background: var(--surface-3); font-size: 1rem; }
  table.clubs td.club-name::before { content: none; }
}

/* ---------- Adult league cards ---------- */
.leagues { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); margin-block: 22px; }
.league {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px;
  transition: transform .2s var(--ease), border-color .2s;
}
.league:hover { transform: translateY(-2px); border-color: var(--accent-line); }
.league h4 { font-size: 1rem; margin-bottom: 8px; }
.league h4 a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.league h4 a:hover { color: var(--accent); }
.league p { font-size: .875rem; color: var(--text-2); line-height: 1.6; }
.league .cost { display: inline-block; margin-top: 10px; font-size: .8rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 3px 10px; border-radius: 999px; }

/* ---------- Other cities ---------- */
.more-cities { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.more-cities a {
  padding: 8px 15px; border-radius: 999px; text-decoration: none;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: .86rem; font-weight: 650; color: var(--text-2);
  transition: all .18s var(--ease);
}
.more-cities a:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-1px); }

/* ---------- Sources ---------- */
.sources { margin-top: 18px; font-size: .85rem; color: var(--muted); line-height: 1.85; }
.sources a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.sources a:hover { color: var(--accent); border-bottom-color: var(--accent-line); }

/* ---------- Table of contents ---------- */
.toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px 22px; margin-block: 26px;
}
.toc h4 { font-size: .69rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 750; margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.toc li::marker { color: var(--accent); font-weight: 700; }
.toc a { color: var(--text-2); text-decoration: none; font-size: .9rem; }
.toc a:hover { color: var(--accent); }

/* ---------- Article CTA ---------- */
.a-cta {
  background: linear-gradient(135deg, var(--accent-soft), transparent 58%), var(--surface);
  border: 1px solid var(--accent-line); border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px); margin-block: clamp(34px, 5vw, 52px);
}
.a-cta h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: 10px; }
.a-cta p { color: var(--text-2); font-size: .95rem; max-width: 56ch; line-height: 1.65; }
.a-cta .row { margin-top: 20px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text-2);
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), color .18s;
  box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--accent); transform: translateY(-2px); }
.to-top svg { width: 17px; height: 17px; }
