/* Competition results board on an event page (cmsportal compose_results.go,
 * data_table "event_results"): the category chips, the ranked table and the
 * empty state. The board polls its own route on the event day, so the
 * swapped-in markup must look identical to the embedded one: every rule here
 * keys on the board's own classes, never on its position in the page.
 * The competitor pages (product registration form and competitor card) sit
 * in one narrow .portal-competition frame, rules at the end of this file:
 * the form's controls are the shared .nhc-form vocabulary (portal-forms.css)
 * and the card's times table reuses the board's table classes. */
.portal-results { margin: 2rem 0 0; max-width: 48rem; }
.portal-results-title { font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; color: var(--portal-muted); margin: 0 0 1rem; }
.portal-results-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.portal-results-chip { display: inline-flex; align-items: center; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--portal-border); background: var(--portal-surface); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: inherit; }
.portal-results-chip:hover { border-color: var(--portal-accent); color: var(--portal-accent); }
.portal-results-chip[aria-current="page"] { background: var(--portal-accent); border-color: var(--portal-accent); color: var(--portal-accent-ink); }
.portal-results-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.portal-results-table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.4; }
.portal-results-table th, .portal-results-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--portal-border); text-align: left; vertical-align: top; white-space: nowrap; }
.portal-results-table th { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--portal-muted); }
.portal-results-rank { text-align: right; color: var(--portal-muted); }
.portal-results-name { white-space: normal; min-width: 10rem; font-weight: 600; }
.portal-results-club { display: block; font-size: .78rem; font-weight: 400; color: var(--portal-muted); }
.portal-results-time { font-variant-numeric: tabular-nums; text-align: right; }
.portal-results-total { font-weight: 700; }
.portal-results-empty { margin: 0; font-size: .875rem; line-height: 1.625; color: var(--portal-muted); }

.portal-competition { box-sizing: border-box; max-width: 36rem; margin: 0 auto; padding: 1.75rem; border: 1px solid var(--portal-border); border-radius: 1rem; background: var(--portal-surface); }
.portal-competition h1 { margin: 0 0 .5rem; font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.15; overflow-wrap: anywhere; }
.portal-competition-event { margin: 0 0 .75rem; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--portal-accent); }
.portal-competition-intro { margin: 0 0 1.5rem; line-height: 1.6; color: var(--portal-muted); }
.portal-competition .nhc-form small { font-size: .8125rem; color: var(--portal-muted); }
.portal-competition .nhc-form > button[data-submit-action] { align-self: stretch; margin-top: .5rem; }
.portal-competition-number { display: flex; align-items: baseline; gap: .75rem; margin: 1rem 0 1.25rem; }
.portal-competition-number span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--portal-muted); }
.portal-competition-number strong { font-size: 3rem; line-height: 1; color: var(--portal-accent); font-variant-numeric: tabular-nums; }
.portal-competition-details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .5rem 1rem; margin: 0 0 1.5rem; }
.portal-competition-details dt { padding-top: .2rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--portal-muted); }
.portal-competition-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.portal-competition-details small { display: block; font-weight: 400; color: var(--portal-muted); }
/* A QR code scans only dark on light, whatever the theme. */
.portal-competition-qr { display: block; box-sizing: border-box; width: min(100%, 16rem); height: auto; margin: 0 auto 1.5rem; padding: .75rem; border-radius: .75rem; background: #fff; }
.portal-competition-links { margin: 1.5rem 0 0; font-size: .875rem; line-height: 1.6; }
.portal-competition-links a { color: var(--portal-accent); }
@media (max-width: 640px) {
  .portal-competition { padding: 1.25rem 1rem; border-radius: .75rem; }
}
