/* Hometown and club pride (Helpers/TownPride.cs): the medal tally on an event page, the town and club pages and lists. */

/* ---- the tally on an event page (Pages/Shared/_TownTally.cshtml) */
.tally { border: 1px solid var(--ag-line); border-radius: 20px; background: #FFFFFF; overflow: hidden; }
.tally__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 16px 20px 10px; }
.tally__title { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--ag-font-display); font-size: 20px; font-weight: 600; color: var(--ag-ink); }
.tally__title i { color: #B8860B; }
.tally__sub { margin: 0; font-size: 14px; color: var(--ag-muted); }
.tally__rows { display: grid; }
.tally__row { display: grid; grid-template-columns: 28px minmax(0, 1fr) repeat(3, 44px); gap: 8px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--ag-line-2); font-variant-numeric: tabular-nums; }
.tally__row--head { padding-top: 6px; padding-bottom: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ag-muted); }
.tally__row--head span { text-align: center; }
.tally__rank { font-family: var(--ag-font-display); font-weight: 600; color: var(--ag-deep); }
.tally__town { font-weight: 700; color: var(--ag-ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tally__town:hover { text-decoration: underline; }
.tally__town small { display: block; font-size: 12px; font-weight: 500; color: var(--ag-muted); }
.tally__n { text-align: center; font-weight: 800; color: var(--ag-ink); }
.tally__n--0 { color: var(--ag-line); font-weight: 600; }
.medal { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; }
.medal--g { background: #E8A317; } .medal--s { background: #94A3B8; } .medal--b { background: #C27C4A; }
@media (max-width: 420px) { .tally__row { grid-template-columns: 24px minmax(0, 1fr) repeat(3, 34px); padding-inline: 14px; } .tally__head { padding-inline: 14px; } .tally__town { white-space: normal; } }

/* ---- town and club pages */
.pride-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin: 0 0 28px; }
.pride-stats div { padding: 14px 16px; border: 1px solid var(--ag-line); border-radius: 14px; }
.pride-stats dt { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ag-muted); }
.pride-stats dd { margin: 4px 0 0; font-family: var(--ag-font-display); font-size: 26px; font-weight: 600; color: var(--ag-ink); font-variant-numeric: tabular-nums; }
.pride-stats dd small { font-family: var(--ag-font-body); font-size: 14px; font-weight: 600; color: var(--ag-muted); margin-left: 6px; }
.pride-roster { display: grid; border: 1px solid var(--ag-line); border-radius: 16px; overflow: hidden; margin: 0; padding: 0; list-style: none; }
.pride-roster li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--ag-line-2); }
.pride-roster li:first-child { border-top: 0; }
.pride-roster__face { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ag-tint); color: var(--ag-deep); font-weight: 800; font-size: 14px; }
.pride-roster__name { font-weight: 700; color: var(--ag-ink); text-decoration: none; }
a.pride-roster__name:hover { text-decoration: underline; }
.pride-roster__meta { display: block; font-size: 13px; color: var(--ag-muted); }
.pride-roster__meta a { color: var(--ag-cyan-ink); text-decoration: none; }
.pride-roster__medals { display: flex; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ag-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pride-roster__medals span { display: inline-flex; align-items: center; gap: 4px; }
.pride-events { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pride-events a { display: inline-block; padding: 6px 12px; border: 1px solid var(--ag-line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ag-deep); text-decoration: none; background: #FFFFFF; }
.pride-events a:hover { background: var(--ag-tint); border-color: var(--ag-arc); }
.pride-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pride-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--ag-line); border-radius: 16px; background: #FFFFFF; color: inherit; text-decoration: none; transition: border-color 0.15s; }
.pride-list a:hover { border-color: var(--ag-arc); }
.pride-list b { font-family: var(--ag-font-display); font-size: 17px; font-weight: 600; color: var(--ag-ink); }
.pride-list small { color: var(--ag-muted); font-size: 13px; }
.pride-list b { grid-column: 1; grid-row: 1; }
.pride-list small { grid-column: 1; grid-row: 2; }
.pride-list .pride-roster__medals { grid-column: 2; grid-row: 1 / span 2; }
.pride-note { margin: 24px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--ag-tint); color: var(--ag-text); font-size: 15px; }
.pride-note a { color: var(--ag-cyan-ink); }
.pride-section { margin-top: 36px; }
.pride-section h2 { margin: 0 0 14px; font-family: var(--ag-font-display); font-size: 22px; font-weight: 600; color: var(--ag-ink); }

/* the towns or clubs page before any surfer has named one (2026-11-03) */
.pride-empty { display: grid; gap: 10px; justify-items: start; max-width: 680px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--ag-line); border-radius: 22px; background: linear-gradient(160deg, #FFFFFF, var(--ag-tint)); box-shadow: var(--ag-shadow-soft); }
.pride-empty h2 { margin: 0; font-family: var(--ag-font-display); font-size: clamp(22px, 3vw, 28px); font-weight: 600; color: var(--ag-ink); }
.pride-empty p { margin: 0; color: var(--ag-text); }
.pride-empty .ag-actions { margin: 8px 0 0; }
