/* marketing/public/ratings/assets/ratings.css
 *
 * Scrimly Ratings public pages. Shared by the server-rendered pages
 * (functions/modules/clubRatings/render.js) and the static Next.js pages.
 * Brand kit v2 (scrimly-brand-kit.zip, START-HERE.md): paper page, bone top
 * bar, deep green hero band, links and stars, one marigold button per screen,
 * white cards with a tan line, charcoal footer. Never marigold text on light.
 * No inline styles anywhere (CSP style-src 'self'), so
 * score bars use the .w10 to .w50 width classes at the bottom.
 */
/* Fonts served from getscrimly.com, not Google (2026-11-05): no third
 * party request, and nothing to fail when Google Fonts is blocked. Latin
 * subset covers English and Spanish. SIL Open Font License 1.1, see
 * assets/fonts/OFL-*.txt. Both are variable fonts: one file each. */
@font-face {
  font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 800 900; font-display: swap;
  src: url('/ratings/assets/fonts/big-shoulders-display-latin.woff2?v=1') format('woff2');
}
@font-face {
  font-family: 'Jost'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/ratings/assets/fonts/jost-latin.woff2?v=1') format('woff2');
}

:root {
  --paper: #fbf7ee;
  --bone: #f1e7d3;
  --charcoal: #2e2925;
  --green: #24574a;
  --green-dark: #1b4439;
  --marigold: #f6ae2d;
  --stone: #6b6459;
  --line: #d9d0be;
  --success: #1f7a4d;
  --error: #b8360f;
  --white: #fff;
  --star-off: #948a76;
  --radius: 8px;
  --radius-card: 14px;
  /* Impact is a close narrow fallback on nearly every Windows and Mac. */
  --head: 'Big Shoulders Display', Impact, 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
  --body: 'Jost', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--charcoal);
  display: flex; flex-direction: column; min-height: 100vh;
  font-family: var(--body); font-size: 18px; line-height: 1.5;
  overflow-wrap: anywhere;
}
/* Footer at the bottom on short pages (server pages: body; static pages: .ratings-root). */
body > main, .ratings-root > main { flex: 1 0 auto; width: 100%; }
a { color: var(--green); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover { color: var(--charcoal); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--marigold); outline-offset: 2px;
}
h1, h2 { font-family: var(--head); font-weight: 900; line-height: 1.05; letter-spacing: 0.01em; margin: 0 0 14px; }
h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 40px); margin-top: 40px; }
p { margin: 0 0 12px; }
/* Scrimly mark in place of a headline's question mark (flipped S and dot). */
.qmark { display: inline-block; white-space: nowrap; }
.qmark svg { height: 0.84em; width: auto; vertical-align: baseline; margin-left: 0.06em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--stone); }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 clamp(16px, 5vw, 64px); }
main.wrap { padding-top: clamp(28px, 5vw, 48px); padding-bottom: clamp(36px, 6vw, 56px); }

/* Top bar and footer */
.top { background: var(--bone); border-bottom: 1.5px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--charcoal); text-decoration: none; }
.brand:hover { color: var(--charcoal); }
.brand-logo { display: block; width: auto; height: 60px; } /* plain patch, no stars (2026-11-06) */
.brand-product { font-family: var(--head); font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; letter-spacing: 0.04em; }
.lang {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: 16px; font-weight: 500; color: var(--charcoal); text-decoration: none;
  background: transparent; border: 1.5px solid var(--charcoal);
}
.lang:hover { color: var(--charcoal); background: var(--paper); }
@media (max-width: 400px) {
  .brand { gap: 10px; }
  .brand-logo { height: 48px; }
  .brand-product { font-size: 22px; }
  .lang { padding: 0 14px; }
}
.foot { background: var(--charcoal); color: var(--bone); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 0 24px; padding-top: 20px; padding-bottom: 20px; font-size: 15px; }
.foot a { color: var(--bone); display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--white); }

/* Buttons */
/* One marigold button per screen; everything else is .btn-ghost or a link. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; background: var(--marigold); color: var(--charcoal);
  border: 0; cursor: pointer; font-family: var(--body); font-weight: 700; font-size: 18px;
  padding: 10px 26px; border-radius: var(--radius); text-decoration: none; text-align: center; min-height: 52px;
}
.btn:hover { background: #e89f1c; color: var(--charcoal); }
.btn-wide { display: flex; width: 100%; margin: 16px 0; }
@media (min-width: 640px) { .btn-wide { display: inline-flex; width: auto; } }
.btn-ghost { background: transparent; color: var(--charcoal); border: 2px solid var(--green); }
.btn-ghost:hover { background: var(--bone); }
.link-btn {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; background: none; border: 0; color: var(--green);
  cursor: pointer; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 0.15em;
}

/* Home: full-width deep green hero band above the main column */
.hero-band { background: var(--green); color: var(--bone); padding: clamp(44px, 8vw, 88px) 0; }
.hero-band h1 { font-size: clamp(48px, 8vw, 92px); line-height: 1; margin: 0; }
.lede { font-size: clamp(19px, 2.4vw, 23px); color: var(--stone); max-width: 620px; }
.hero-band .lede { color: var(--bone); margin: 18px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; max-width: 620px; }
.hero-actions .search { flex: 1 1 260px; margin: 0; max-width: none; }
.hero-band + main.wrap > section:first-child h2 { margin-top: 0; }
/* Home activity line (home-activity-line, Wireframe W-1 to W-3): quiet; two fixed lines on phones. */
.activity { margin: 18px 0 0; padding: 8px 0; max-width: 620px; font-size: 15px; color: rgba(241, 231, 211, 0.8); }
.activity a { color: var(--bone); text-decoration: none; }
.activity a:hover, .activity a:focus-visible { text-decoration: underline; }
.activity-item + .activity-item::before { content: " · "; }
.activity-item.is-extra { display: none; }
@media (max-width: 639px) {
  /* Two fixed lines, so long club names fit after the Spanish lead-in and the height never changes. */
  .activity { min-height: calc(3em + 16px); line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .activity-item { display: none; }
  .activity-item.is-current { display: inline; animation: activity-fade 300ms ease-in; }
  .activity-item + .activity-item::before { content: none; }
}
@keyframes activity-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .activity-item.is-current { animation: none; } }
.how ol { padding-left: 24px; margin: 0; }
.how li { margin-bottom: 8px; }
.how li:last-child { margin-bottom: 0; }

/* Search and type-ahead */
.search { position: relative; margin: 16px 0; max-width: 36rem; }
.search input {
  width: 100%; min-height: 52px; padding: 10px 16px; font: inherit; font-size: 18px;
  color: var(--charcoal); background: var(--white); border: 1.5px solid var(--stone); border-radius: var(--radius);
}
.search input::placeholder { color: var(--stone); }
.typeahead {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5; list-style: none; margin: 4px 0 0; padding: 4px 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 20px rgba(46, 41, 37, 0.12);
}
.typeahead a { display: block; padding: 10px 14px; color: var(--charcoal); text-decoration: none; }
.typeahead a:hover, .typeahead a:focus { background: var(--bone); }
.typeahead .muted { font-size: 15px; }

/* Lists */
.rows {
  list-style: none; margin: 0; padding: 0; overflow: hidden;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-card);
}
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px;
  padding: 10px 22px; border-bottom: 1.5px solid var(--line); color: var(--charcoal); text-decoration: none;
}
.rows li:last-child .row { border-bottom: 0; }
.row:hover { background: var(--paper); color: var(--charcoal); }
.club-row-main { display: flex; flex-direction: column; min-width: 0; }
.club-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score-sm { font-family: var(--head); font-weight: 800; font-size: 1.3rem; color: var(--green); white-space: nowrap; }
.crumb { margin-bottom: 8px; font-size: 15px; }
.crumb a { text-decoration: none; }
.empty, .suggest { margin-top: 16px; }

/* Club page */
.facts { margin-bottom: 6px; }
/* Programs line and level tag (club-cost-and-level, Wireframe W-4, W-5). */
.programs { margin: 0 0 16px; color: var(--charcoal); font-size: 16px; }
.programs-label { font-weight: 700; }
.programs:has(+ .programs-source) { margin-bottom: 4px; }
.programs-source { margin: 0 0 16px; font-size: 14px; }
.programs-source a { color: inherit; }
.level-tag {
  display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px;
  background: var(--bone); color: var(--charcoal); font-size: 14px; font-weight: 700;
}
.banner { background: var(--bone); border-left: 4px solid var(--marigold); padding: 10px 14px; border-radius: 6px; }
/* Policy change notice under the header (features/policy-notice/, Wireframe S1). */
.policy-notice { background: var(--paper); border-bottom: 1px solid var(--line); }
.policy-notice p { margin: 0; padding: 10px 0; font-size: 15px; line-height: 1.45; color: var(--charcoal); }
.policy-notice a { color: var(--green); font-weight: 600; }
[hidden] { display: none !important; }
.seasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.seasons a {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--charcoal); background: var(--white);
  text-decoration: none; font-size: 16px; min-height: 44px; display: inline-flex; align-items: center;
}
.seasons a[aria-current="true"] { background: var(--green); color: var(--paper); border-color: var(--green); font-weight: 700; }
.score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.score .muted { flex-basis: 100%; }
.score-big { font-family: var(--head); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--green); }
.stars { color: var(--green); letter-spacing: 2px; font-size: 1.4rem; white-space: nowrap; }
.stars-off { color: var(--star-off); }
.bars { margin: 16px 0 8px; max-width: 36rem; }
.bar {
  display: grid; grid-template-columns: 1fr 3rem; grid-template-areas: "label label" "track value";
  gap: 4px 10px; align-items: center; margin-bottom: 12px;
}
.bar-label { grid-area: label; }
.bar-track { grid-area: track; height: 10px; background: var(--bone); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.bar-value { grid-area: value; text-align: right; font-weight: 700; }
@media (min-width: 400px) {
  .bar { grid-template-columns: 11rem 1fr 3rem; grid-template-areas: "label track value"; }
}
.card { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-card); padding: 20px; }
@media (min-width: 640px) { .card { padding: 24px; } }
.notice h2 { margin-top: 0; }
.notice, .comments, .about-ratings, .facts, .programs { max-width: 48rem; }
.comments { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.comment p { margin-bottom: 6px; }
.tags { font-size: 14px; color: var(--stone); }
.comment-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.about-ratings { margin-top: 32px; font-size: 15px; }

/* Report sheet: bottom sheet on phones, modal on desktop */
.sheet {
  border: 1px solid var(--line); border-radius: 16px 16px 0 0; padding: 20px 16px; background: var(--paper); color: var(--charcoal);
  width: 100%; max-width: 32rem; margin: auto auto 0; max-height: 90vh;
}
.sheet::backdrop { background: rgba(46, 41, 37, 0.55); }
@media (min-width: 640px) { .sheet { border-radius: 16px; margin: auto; } }
.radio { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.radio input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--green); }
.field { display: block; margin: 12px 0; }
.field textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; color: var(--charcoal);
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.report-status:empty { display: none; }

/* Rate flow and My ratings (static Next.js pages) */
.ratings-root { display: flex; flex-direction: column; min-height: 100vh; background: var(--paper); color: var(--charcoal); font-family: var(--body); }
.small { font-size: 15px; }
.right { text-align: right; }
.stack > * + * { margin-top: 8px; }
.input {
  display: block; width: 100%; min-height: 52px; padding: 10px 16px; font: inherit; font-size: 18px;
  color: var(--charcoal); background: var(--white); border: 1.5px solid var(--stone); border-radius: var(--radius);
}
.input::placeholder { color: var(--stone); }
.textarea { min-height: 8rem; resize: vertical; }
.code-input { font-size: 1.5rem; letter-spacing: 0.4em; text-align: center; max-width: 14rem; }
.phone-row { display: flex; gap: 8px; margin-top: 6px; }
.phone-cc { display: inline-flex; flex-shrink: 0; white-space: nowrap; align-items: center; padding: 0 12px; background: var(--bone); border-radius: var(--radius); font-weight: 500; }
.error { color: var(--error); }
.ok { color: var(--success); }
.step-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.progress { flex-basis: 100%; height: 6px; background: var(--bone); border-radius: 999px; overflow: hidden; }
.progress-fill { display: block; height: 100%; background: var(--green); }
.progress-fill.p1 { width: 33%; } .progress-fill.p2 { width: 66%; } .progress-fill.p3 { width: 100%; }
.q { font-size: 26px; margin-top: 28px; }
.chosen { background: var(--white); border: 2px solid var(--green); border-radius: var(--radius); padding: 12px 14px; }
.pick { display: block; width: 100%; text-align: left; padding: 10px 14px; background: none; border: 0; color: var(--charcoal); font: inherit; cursor: pointer; }
.pick:hover, .pick:focus { background: var(--bone); }
/* Share fallback: "Link copied" or the link to copy by hand. */
.share-note { margin: 8px 0 0; color: var(--success); }
.share-note:empty { display: none; }
.share-link { margin-top: 6px; font-size: 16px; color: var(--charcoal); }
/* Share box (features/ratings-share/, Wireframe S1, S2, S4). Ghost buttons
   only: the marigold Rate button stays the one accent (W-4). */
.share-box { max-width: 48rem; margin: 20px 0; }
.share-box [hidden] { display: none !important; }
.share-inline { border-top: 1px solid var(--line); margin: 20px 0 0; padding-top: 16px; }
.share-title { margin: 0 0 6px; font-size: 1.15rem; }
.share-inline .share-title { font-size: 1.05rem; }
.share-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.share-langs > span { flex-basis: 100%; }
.share-lang {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--charcoal); background: var(--white);
  font: inherit; font-size: 16px; min-height: 44px; cursor: pointer;
}
.share-lang[aria-pressed="true"] { background: var(--green); color: var(--paper); border-color: var(--green); font-weight: 700; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.share-actions .btn { min-height: 48px; padding: 8px 10px; font-size: 16px; }
@media (min-width: 640px) { .share-actions { display: flex; flex-wrap: wrap; } .share-actions .btn { padding: 8px 20px; } }
.share-fallback { margin-top: 10px; }
.share-fallback summary { cursor: pointer; color: var(--green); min-height: 44px; display: flex; align-items: center; }
.share-text { white-space: pre-line; overflow-wrap: anywhere; }
textarea.share-link { display: block; width: 100%; resize: vertical; font: inherit; font-size: 16px; }
/* Eligibility checkbox (rating-safeguards, Wireframe W-1, W-2). */
.eligible-card { margin: 20px 0 16px; }
.eligible { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 16px; line-height: 1.5; }
.eligible input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--green); }
.link-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.choice-stack { display: grid; gap: 8px; max-width: 28rem; }
.choice-row { display: flex; gap: 12px; }
.choice {
  min-height: 48px; padding: 10px 16px; border-radius: var(--radius); font: inherit; font-weight: 500; cursor: pointer; text-align: left;
  color: var(--charcoal); background: var(--white); border: 1px solid var(--line);
}
.choice-row .choice { flex: 1; text-align: center; max-width: 10rem; }
.choice.on, .chip.on { background: var(--green); color: var(--paper); border-color: var(--green); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-width: 56px; min-height: 44px; padding: 8px 12px; border-radius: 999px; font: inherit; font-weight: 500; cursor: pointer;
  color: var(--charcoal); background: var(--white); border: 1px solid var(--line);
}
.star-field { border: 0; padding: 0; margin: 0 0 18px; }
.star-field legend { display: flex; flex-direction: column; padding: 0; margin-bottom: 6px; }
.star-label { font-weight: 700; font-size: 18px; }
.star-input { display: flex; gap: 6px; }
.star { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 2rem; line-height: 1; color: var(--star-off); cursor: pointer; }
.star.on { color: var(--green); }
.star:focus-within { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.sticky { position: sticky; bottom: 12px; z-index: 2; box-shadow: 0 6px 18px rgba(46, 41, 37, 0.25); }
.btn:disabled, .btn:disabled:hover { background: var(--line); color: var(--stone); cursor: not-allowed; }
.warn { border-color: var(--marigold); border-left-width: 4px; margin-top: 12px; }
.warn h2 { margin-top: 0; }
.warn ul { padding-left: 20px; }
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rating-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.rating-title { margin-bottom: 6px; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--bone); font-size: 14px; }
.pill-published { background: rgba(31, 122, 77, 0.12); color: var(--success); }
.pill-comment_rejected { background: rgba(184, 54, 15, 0.1); color: var(--error); }
.skeleton { min-height: 96px; opacity: 0.5; }
.danger-zone { margin-top: 32px; }
.doc-list { padding-left: 22px; list-style: disc; }
.doc-steps { padding-left: 22px; list-style: decimal; }
.doc-list li, .doc-steps li { margin-bottom: 8px; padding-left: 4px; }
.doc-list li::marker, .doc-steps li::marker { color: var(--green); }
.doc-section h2 { font-size: 26px; margin-top: 36px; }
.doc-section p { line-height: 1.6; margin: 0 0 12px; }
.doc-section > p, .doc-section > ul, .doc-section > ol, section > .doc-list, main > .banner, main > h1 + .muted { max-width: 44rem; }
.doc-list li, .doc-steps li { line-height: 1.6; }
.doc-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 16px; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc-table thead th { color: var(--stone); font-weight: 500; border-bottom: 2px solid var(--line); }
.doc-table tbody th { font-weight: 700; }
@media (max-width: 640px) {
  .doc-table thead { display: none; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table th, .doc-table td { display: block; width: 100%; }
  .doc-table tr { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 4px 0; margin-bottom: 12px; }
  .doc-table th, .doc-table td { border-bottom: 0; padding: 6px 14px; }
  .doc-table td::before { content: attr(data-label); display: block; color: var(--stone); font-size: 14px; }
}
.done h1 { color: var(--green); }

/* Score bar widths: .wN = N tenths of a point out of 5 (w42 = 4.2 = 84%). */
.w10 { width: 20%; }
.w11 { width: 22%; }
.w12 { width: 24%; }
.w13 { width: 26%; }
.w14 { width: 28%; }
.w15 { width: 30%; }
.w16 { width: 32%; }
.w17 { width: 34%; }
.w18 { width: 36%; }
.w19 { width: 38%; }
.w20 { width: 40%; }
.w21 { width: 42%; }
.w22 { width: 44%; }
.w23 { width: 46%; }
.w24 { width: 48%; }
.w25 { width: 50%; }
.w26 { width: 52%; }
.w27 { width: 54%; }
.w28 { width: 56%; }
.w29 { width: 58%; }
.w30 { width: 60%; }
.w31 { width: 62%; }
.w32 { width: 64%; }
.w33 { width: 66%; }
.w34 { width: 68%; }
.w35 { width: 70%; }
.w36 { width: 72%; }
.w37 { width: 74%; }
.w38 { width: 76%; }
.w39 { width: 78%; }
.w40 { width: 80%; }
.w41 { width: 82%; }
.w42 { width: 84%; }
.w43 { width: 86%; }
.w44 { width: 88%; }
.w45 { width: 90%; }
.w46 { width: 92%; }
.w47 { width: 94%; }
.w48 { width: 96%; }
.w49 { width: 98%; }
.w50 { width: 100%; }

/* Report sheet after a successful send: only the thanks and Close remain. */
.report-form.is-sent .radio,
.report-form.is-sent .field,
.report-form.is-sent [type=submit] { display: none; }

/* Training listings (features/training-listings/, Wireframe screen 1).
 * Every card looks the same; no marigold on this page (W-5). */
.training-notice { background: var(--bone); margin: 16px 0 20px; }
.training-notice p { margin: 0; }
.filters { display: grid; gap: 12px; max-width: 36rem; margin: 0 0 16px; }
.filter { display: block; font-weight: 500; }
.filter select { margin-top: 6px; appearance: auto; }
.filters .btn { justify-self: start; }
.club-only { font-size: 15px; }
.listing-count { margin: 0 0 12px; font-size: 15px; }
.listings { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; max-width: 48rem; }
.listing p { margin: 0 0 4px; }
.listing-kinds { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone); }
.listing-name { font-family: var(--body); font-weight: 700; font-size: 21px; line-height: 1.25; margin: 2px 0 6px; }
.listing-visit { display: flex; width: 100%; margin: 12px 0 6px; }
@media (min-width: 640px) { .listing-visit { display: inline-flex; width: auto; } }
.listing-note, .listing-source, .listing-correct { font-size: 14px; }
.listing-correct a { color: inherit; }
.listing-club { font-size: 15px; margin-top: 6px; }
.provider-block { max-width: 48rem; }
.provider-block h2 { font-size: clamp(24px, 3.4vw, 32px); }

/* Club tryout dates (features/ratings-tryouts/, Wireframe screens 1 and 2). */
.tryouts-card { margin: 16px 0 20px; max-width: 48rem; }
.tryouts-card p { margin: 0 0 4px; }
.tryout-group { font-weight: 700; margin-top: 8px; }
.tryout-score { font-weight: 500; }

/* Menu in the top bar (header amendment, 2026-11-05). Phones: logo and
 * language on the first line, links on a second line inside the header.
 * Wider screens: one row, links beside the language switch. */
.top-inner { flex-wrap: wrap; row-gap: 0; }
.top-nav { order: 3; flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 2px 18px; padding: 0 0 12px; font-weight: 500; font-size: 16px; }
.top-nav a { color: var(--charcoal); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.top-nav a:hover { color: var(--green); }
.top-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
@media (min-width: 820px) {
  .top-inner { flex-wrap: nowrap; }
  .top-nav { order: 2; flex-basis: auto; margin-left: auto; padding: 0; gap: 22px; }
  .lang { order: 3; }
}

/* Home hero with a real published comment, and three cards (home
 * amendment, 2026-11-05). The comment card sits beside the hero text on
 * wide screens and below it on phones. */
.hero-grid.has-featured { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-grid.has-featured { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.featured { color: var(--charcoal); margin: 0; }
.featured-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 6px; }
.featured-text { margin: 10px 0; font-size: 17px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.featured figcaption { font-size: 14px; }
.home-cards { display: grid; gap: 14px; margin: 8px 0 8px; }
@media (min-width: 760px) { .home-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-card { display: block; color: var(--charcoal); text-decoration: none; }
.home-card:hover { border-color: var(--green); color: var(--charcoal); }
.home-card h2 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 32px); }
.home-card p { margin: 0; font-size: 16px; }

/* UX review fixes (2026-11-05): trust line by the Rate button, county
 * "just starting" banner. */
.hero-trust { margin: 12px 0 0; font-size: 15px; color: var(--bone); }
.starting { margin: 8px 0 16px; max-width: 48rem; }
.starting .btn { margin: 4px 0 8px; }
.small-note { font-size: 14px; margin: 0; }

/* Camps and training month calendar (features/training-listings/
 * Amendment 4). Green dots and selected day; no marigold (the one marigold
 * button stays Rate). 44px tap targets. */
.calendar { max-width: 28rem; margin: 8px 0 18px; padding: 14px 14px 10px; touch-action: pan-y; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.cal-head h2 { margin: 0; font-size: 24px; text-align: center; flex: 1; }
.cal-arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; font-size: 28px; line-height: 1; color: var(--green); text-decoration: none; }
a.cal-arrow:hover { background: var(--bone); }
.cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-grid th { font-size: 13px; font-weight: 600; color: var(--charcoal); opacity: 0.7; padding: 4px 0; text-align: center; }
.cal-grid td { height: 44px; padding: 0; text-align: center; vertical-align: middle; font-size: 15px; }
.cal-grid td.past { opacity: 0.4; }
.cal-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; }
.cal-grid td.today .cal-num { box-shadow: inset 0 0 0 1.5px var(--green); }
.cal-day { position: relative; display: flex; align-items: center; justify-content: center; height: 44px; color: var(--charcoal); text-decoration: none; font-weight: 600; }
.cal-day:hover .cal-num { background: var(--bone); }
.cal-dots { position: absolute; bottom: 1px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
.cal-dot { display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: var(--green); }
.cal-day[aria-current="date"] .cal-num { background: var(--green); color: var(--bone); }
.cal-empty { margin: 8px 0 0; font-size: 15px; }
.cal-note { margin: 8px 0 0; font-size: 14px; }
.cal-showing { margin: 4px 0 6px; font-weight: 600; }
.cal-weekly { margin: 0 0 10px; }

/* Calendar colors and layout (amendment, 2026-11-05). One dot color per
 * type, named in the legend and in each day's spoken label. Filters beside
 * the calendar on wide screens; a compact two column form on phones. */
.cal-dot.k-camp { background: #24574a; }
.cal-dot.k-clinic { background: #c98a12; }
.cal-dot.k-small_group { background: #b5452f; }
.cal-dot.k-private { background: #5b4a8b; }
.cal-dot.k-futsal { background: #2f6db5; }
.cal-dot.k-goalkeeper { background: #2e2925; }
.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; padding: 0; font-size: 14px; }
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cal-layout .calendar { margin: 0 0 16px; }
.cal-layout .filters { grid-template-columns: 1fr 1fr; gap: 10px; }
.cal-layout .filters .radio { grid-column: 1 / -1; min-height: 36px; }
.cal-layout .filters .btn { grid-column: 1 / -1; }
.cal-layout .filter select { margin-top: 4px; }
@media (min-width: 900px) {
  .cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 28px; align-items: start; margin-bottom: 8px; }
  .cal-layout .filters { grid-template-columns: 1fr; max-width: none; }
  .cal-layout .calendar { max-width: none; }
}

/* Working indicators (2026-11-05): three dots in a busy button, five stars
 * for a slow load (inline on My ratings, overlay when a page takes more than
 * 400ms). Marigold stars, the brand star color. */
.busy-dots { display: inline-flex; gap: 4px; align-items: center; vertical-align: middle; margin-left: 6px; }
.busy-dots > span { width: 6px; height: 6px; border-radius: 999px; background: currentColor; animation: busy-dot 1s ease-in-out infinite; }
.busy-dots > span:nth-child(2) { animation-delay: 0.15s; }
.busy-dots > span:nth-child(3) { animation-delay: 0.3s; }
@keyframes busy-dot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.btn .busy-dots:only-child { margin-left: 0; }
.loader-stars { display: inline-flex; gap: 8px; }
.loader-stars svg { fill: #f6ae2d; animation: loader-star 1.2s ease-in-out infinite; }
.loader-stars svg:nth-child(2) { animation-delay: 0.12s; }
.loader-stars svg:nth-child(3) { animation-delay: 0.24s; }
.loader-stars svg:nth-child(4) { animation-delay: 0.36s; }
.loader-stars svg:nth-child(5) { animation-delay: 0.48s; }
@keyframes loader-star { 0%, 60%, 100% { opacity: 0.3; transform: scale(0.85); } 30% { opacity: 1; transform: scale(1.1); } }
.star-loader { display: flex; justify-content: center; padding: 48px 0; }
.page-loader { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(241, 231, 211, 0.72); animation: loader-in 0.2s ease-out; }
.page-loader .loader-stars { padding: 18px 24px; border-radius: 999px; background: var(--charcoal); box-shadow: 0 8px 24px rgba(46, 41, 37, 0.25); }
@keyframes loader-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .busy-dots > span, .loader-stars svg, .page-loader { animation: none; }
  .busy-dots > span, .loader-stars svg { opacity: 1; }
}

/* Camps and training UX review (2026-11-05): tighter cards in two columns
 * on wide screens, the calendar folded under a button on phones, filters
 * that apply on change (button hidden when club.js runs). */
.listing-when { font-weight: 600; }
.listing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 10px 0 6px; }
.listing-actions .listing-visit { display: inline-flex; width: auto; margin: 0; min-height: 44px; }
.listing-actions .listing-club { font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
.listing-meta { font-size: 14px; margin-top: 4px; }
.listing-meta a { color: inherit; }
@media (min-width: 900px) {
  .listings { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; align-items: start; }
}
.filters.is-auto .btn { display: none; }
.results-anchor { scroll-margin-top: 12px; }
.cal-details { margin: 0 0 16px; }
.cal-summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--green); border-radius: 999px; color: var(--green); font-weight: 700; cursor: pointer; list-style: none; }
.cal-summary::-webkit-details-marker { display: none; }
.cal-summary::after { content: '▾'; }
.cal-details[open] > .cal-summary { margin-bottom: 10px; }
.cal-details[open] > .cal-summary::after { content: '▴'; }
@media (min-width: 900px) {
  .cal-details[open] > .cal-summary { display: none; }
  .cal-layout .cal-details { margin: 0; }
}

/* Parent guides (features/parent-guides/, Wireframe §3 to S8). No marigold
   button; text width capped for reading. */
a.level-tag { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a.level-tag:hover { background: var(--line); color: var(--charcoal); }
.guide { max-width: 44rem; }
.guide > p, .guide-section > p, .guide-section > ul { max-width: 38rem; }
.guide-section { margin: 28px 0; scroll-margin-top: 12px; }
.guide-section > h2 { margin-bottom: 10px; }
.toc { background: var(--bone); border-color: var(--bone); margin: 16px 0 8px; }
.toc-title { font-weight: 700; margin: 0 0 6px; }
.toc ul { margin: 0; padding-left: 18px; }
.toc li { margin: 4px 0; }
.toc a { display: inline-block; min-height: 32px; padding: 4px 0; }
.timeline { margin: 12px 0; }
.timeline-row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.timeline dt { font-weight: 700; }
.timeline dd { margin: 0; }
.checklist { list-style: none; padding: 0; margin: 12px 0; }
.checklist li { padding: 6px 0 6px 1.6em; text-indent: -1.6em; line-height: 1.5; }
.league-cards { display: grid; gap: 14px; margin: 12px 0; }
.league-card { scroll-margin-top: 12px; }
.league-card h3 { margin: 0 0 4px; font-family: var(--head); font-weight: 800; font-size: 1.25rem; }
.league-card dl { margin: 12px 0 0; }
.league-row { display: grid; gap: 2px 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.league-row dt { font-weight: 700; font-size: 15px; }
.league-row dd { margin: 0; }
@media (min-width: 400px) { .league-row { grid-template-columns: 9rem 1fr; } }
.cost-bands dl { margin: 0; }
.cost-band { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cost-band dt { font-weight: 700; }
.cost-band dd { margin: 2px 0 0; }
.budget { border-collapse: collapse; width: 100%; max-width: 26rem; margin: 12px 0; }
.budget th, .budget td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.budget td { text-align: right; white-space: nowrap; padding-left: 12px; }
.budget tfoot th, .budget tfoot td { font-weight: 700; border-bottom: 0; }
.age-lookup .age-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.age-lookup label { display: grid; gap: 4px; font-size: 15px; font-weight: 700; }
.age-lookup select { width: 100%; min-height: 48px; font-size: 16px; }
.age-out { margin: 14px 0 6px; min-height: 2.5em; }
.age-out p { margin: 0 0 6px; }
.age-out .btn { margin-top: 8px; }
.age-result { font-family: var(--head); font-weight: 800; font-size: 1.6rem; color: var(--green); }
.age-chart { border-collapse: collapse; width: 100%; margin: 12px 0; }
.age-chart th, .age-chart td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (max-width: 639px) {
  .age-chart thead { display: none; }
  .age-chart tr { display: grid; grid-template-columns: auto auto 1fr; gap: 0 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .age-chart th, .age-chart td { border: 0; padding: 0; }
  .age-chart td[data-label="Born"], .age-chart td[data-label="Nacidos"] { grid-column: 1 / -1; order: 3; }
}
.pill-new { display: inline-block; margin-bottom: 8px; padding: 2px 10px; border-radius: 999px; background: var(--bone); font-size: 13px; font-weight: 700; }
.guide-cards { display: grid; gap: 14px; margin: 16px 0; }
@media (min-width: 820px) { .guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .guide-card-first { grid-column: 1 / -1; } }
.guide-find { margin: 28px 0 16px; }
.guide-find h2 { margin-top: 0; }
.guide-more ul { margin: 4px 0 0; padding-left: 18px; }
.guide-sources { margin: 16px 0 32px; }
.guide-sources summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--green); }
.guide-sources li { margin: 6px 0; overflow-wrap: anywhere; }

/* Search by distance (features/distance-search/, Wireframe S1 to S6). Zip
   full width on phones, distance and age side by side; one row on desktop.
   Ghost button only. */
.zip-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-items: end; margin: 12px 0; max-width: 44rem; }
.zip-form label { display: grid; gap: 4px; font-size: 15px; font-weight: 700; }
.zip-form .zip-field, .zip-form .btn, .zip-form .zip-or { grid-column: 1 / -1; }
.zip-form .input { width: 100%; min-height: 48px; font-size: 16px; }
.zip-form .btn { min-height: 48px; }
.zip-or { margin: 4px 0 0; color: var(--stone); font-weight: 400; }
@media (min-width: 640px) {
  .zip-form { grid-template-columns: 9rem 9rem 9rem auto; }
  .zip-form .zip-field, .zip-form .btn { grid-column: auto; }
}
.near-card { margin: 20px 0; }
.near-card h2 { margin-top: 0; }
.hero-zip { margin: 10px 0 0; }
.hero-band .hero-zip a { color: var(--bone); }
.near-count { font-weight: 700; margin: 16px 0 2px; }
.near-noage { font-size: 1.1rem; margin-top: 24px; }

/* Tryout alerts (features/tryout-alerts/, Wireframe S1 to S5, S8). Ghost
   buttons only; the form opens in place. */
.alert-details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.alert-details summary { cursor: pointer; color: var(--green); min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.alerts-card { max-width: 48rem; margin: 16px 0; }
.alerts-card > p { margin: 0; }
.alert-form { display: grid; gap: 10px; max-width: 30rem; margin-top: 8px; }
.alert-form label { display: grid; gap: 4px; font-size: 15px; font-weight: 700; }
.alert-form .input { width: 100%; min-height: 48px; font-size: 16px; }
.alert-form .alert-adult { display: flex; gap: 10px; align-items: center; font-weight: 400; min-height: 44px; }
.alert-form .alert-adult input { width: 20px; height: 20px; margin: 0; }
.alert-form .btn { min-height: 48px; }
.alert-error { color: var(--danger, #a3261c); font-weight: 700; margin: 0; }
.alerts-page { max-width: 36rem; }
.alerts-page form { margin: 16px 0; }
