/* Accessibility and touch basics for every public page (WCAG 2.1 AA). */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2100; padding: 10px 16px; border-radius: 8px; background: #111827; color: #fff !important; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; outline: 3px solid #fbbf24; outline-offset: 2px; }
main:focus { outline: none; }

/* A clear focus ring on anything you can tab to. */
body a:focus-visible, body button:focus-visible, body input:focus-visible, body select:focus-visible, body textarea:focus-visible, body [tabindex]:focus-visible, body .btn:focus-visible {
    outline: 3px solid var(--brand-link, #1d4ed8) !important; outline-offset: 2px !important; box-shadow: 0 0 0 5px rgba(255,255,255,.85) !important;
}

/* Buttons: big enough to tap, readable and consistent. */
body .btn { min-height: 44px; padding: 10px 20px; border-radius: var(--sp-button-radius, 10px); font-weight: 600; letter-spacing: normal; text-transform: none; line-height: 1.4; transition: background-color .15s, border-color .15s, color .15s; }
body .btn-sm { min-height: 40px; padding: 8px 14px; }
body .input-group .btn { min-height: 0; height: 100%; }
body :is(input, select, textarea).form-control { min-height: 44px; font-size: 16px; }
body textarea.form-control { min-height: 120px; }
body ::placeholder { color: #6b7280; opacity: 1; }

/* Links inside sentences are underlined so they don't rely on colour alone. */
main :is(p, td, dd, blockquote) a:not(.btn):not(.he-action) { text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    body *, body *::before, body *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Grey helper text in the old theme is too light to read (under 4.5:1). */
body .text-muted, body :is(.present, .future, .past) > span, body :is(.present, .future, .past) > span strong { color: var(--brand-muted, #4b5563) !important; }
.kicker a { text-decoration: underline; text-underline-offset: 2px; }

/* Without a brand the old theme still forces grey text on coloured buttons; the shared parts and brand rules are more specific and win when set. */
.btn:where(.btn-primary, .btn-success, .btn-xl, .search-btn, [type="submit"]) { color: #fff !important; }
/* Sponsor tier names (platinum, gold, bronze) and people names on an event were too light. */
.sponsor-tier-clean .tier-label h3 { color: var(--brand-heading, #1f2937) !important; }
.evd-aside .item > .name { color: var(--brand-link, #1e40af) !important; }
.evd-aside .item > .meta { color: #4b5563 !important; }
