/* Accessibility layer (Nov 2026). Loaded last on every public page.
   Goal: WCAG 2.1 AA. Colours below were checked for contrast: body text 4.5:1 or better, large text 3:1 or better. */
:root {
  --text-light: #5A677A;   /* was #718096 (4.0:1 on white); now 5.7:1 */
  --gold-ink: #946200;     /* gold for text on light backgrounds; brand gold #D4952A is only 2.6:1 on white */
}

/* Skip link: first stop for keyboard and screen-reader users */
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100000; padding: 12px 18px; border-radius: 8px; background: #fff; color: #0F1D33; font: 600 1rem/1.2 'Inter', system-ui, sans-serif; box-shadow: 0 8px 30px rgba(0,0,0,.35); text-decoration: underline; }
.skip-link:focus { top: 12px; outline: 3px solid #D4952A; outline-offset: 2px; }
main:focus { outline: none; }

/* A focus ring you can see on every background */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible, summary:focus-visible { outline: 3px solid #F0B95A; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(15,29,51,.85); border-radius: 4px; }

/* Gold buttons: navy text (6.5:1) instead of white (2.6:1) */
.btn-primary, .nav-cta, .nav-links .nav-cta, .nav-links.active .nav-cta, .event-register, .newsletter-form button { color: #0F1D33 !important; }
.btn-primary svg { stroke: #0F1D33; }
.btn-blue { background: #255E9E; color: #fff; }
.btn-blue:hover { background: #1B4F8A; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,94,158,.3); }

/* Gold accent words and labels: darker gold on light sections, brand gold stays on dark sections */
.section-title em { color: var(--gold-ink); }
:is(.rff, .prize, .sponsor-cta, .newsletter, .dark-section, .quote-banner, .expect, .tiers, .weather-section, .how-it-works, .vendor-form-section, .cta-band, .cta-banner, .cta:not(.cta-gold), .register-band, .register-nudge, .office-hours, .pickup-info-card, .hero, .hero-banner, .contact-hero, .page-hero, .map-info-bar, .booth-card-featured, .perk-card-featured, .event-card-featured, .hotel-featured-visual, .footer) .section-title em,
:is(.rff, .prize, .sponsor-cta, .newsletter, .dark-section, .quote-banner, .expect, .tiers, .weather-section, .how-it-works, .vendor-form-section, .cta-band, .cta-banner, .cta:not(.cta-gold), .register-band, .register-nudge, .office-hours, .pickup-info-card, .hero, .hero-banner, .contact-hero, .page-hero, .map-info-bar, .booth-card-featured, .perk-card-featured, .event-card-featured, .hotel-featured-visual, .footer) h1 em, :is(.rff, .prize, .sponsor-cta, .newsletter, .dark-section, .quote-banner, .expect, .tiers, .weather-section, .how-it-works, .vendor-form-section, .cta-band, .cta-banner, .cta:not(.cta-gold), .register-band, .register-nudge, .office-hours, .pickup-info-card, .hero, .hero-banner, .contact-hero, .page-hero, .map-info-bar, .booth-card-featured, .perk-card-featured, .event-card-featured, .hotel-featured-visual, .footer) h2 em, :is(.rff, .prize, .sponsor-cta, .newsletter, .dark-section, .quote-banner, .expect, .tiers, .weather-section, .how-it-works, .vendor-form-section, .cta-band, .cta-banner, .cta:not(.cta-gold), .register-band, .register-nudge, .office-hours, .pickup-info-card, .hero, .hero-banner, .contact-hero, .page-hero, .map-info-bar, .booth-card-featured, .perk-card-featured, .event-card-featured, .hotel-featured-visual, .footer) h3 em { color: #E3A53A; }

/* Small labels and footer headings that were too faint */
.footer-col h3, .footer-col h4 { color: rgba(255,255,255,.75) !important; }
.footer-col a, .footer-brand p, .footer-bottom, .footer-bottom span { color: rgba(255,255,255,.75) !important; }
.footer-col a:hover { color: #fff !important; }
.course-map-caption span, .course-map-caption span em { color: rgba(255,255,255,.85); opacity: 1; }
.prize-place-note, .prize-header .section-desc { color: rgba(255,255,255,.8); }
.pickup-location-label { color: rgba(255,255,255,.75); }
.sp-checks-label, .benefits-note a { color: #7A5200; }
.benefits-note a { text-decoration: underline; }
.comparison-card .badge-demolished { color: #991B1B; }
.comparison-card .badge-standing { color: #14532D; }
.year-marker { color: #4F7FB5; }
.dark-section .year-marker { color: rgba(255,255,255,.75); }

/* Keyboard users can open the menus that used to need a mouse hover */
@media (min-width: 769px) {
  .nav-links > li:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
}

/* Tablets (769-1024px): the desktop menu does not fit, so use the same full-screen menu as phones (cms.js opens it up to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-links { display: none !important; }
  .nav-toggle { display: flex !important; min-height: 44px; }
}

/* Pause button for moving content (hero video, ticker, photo carousel): WCAG 2.2.2 */
.motion-toggle { position: absolute; left: 16px; bottom: 16px; z-index: 11; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 100px; border: 1px solid rgba(255,255,255,.45); background: rgba(15,29,51,.82); color: #fff; font: 600 .8rem/1 'Inter', system-ui, sans-serif; letter-spacing: .02em; cursor: pointer; }
.motion-toggle svg { width: 14px; height: 14px; fill: currentColor; }
html.motion-paused .ticker-track, html.motion-paused .photo-strip-track, html.motion-paused .hero-bg img { animation-play-state: paused !important; }
@media (max-width: 600px) { .motion-toggle { left: 12px; bottom: 12px; padding: 10px 12px; } .motion-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Anyone who asks their device for less motion gets none of the looping animation */
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .photo-strip-track { animation: none !important; }
  .hero-badge-dot, .hero-scroll, .hero-scroll *, .scroll-line, .hero-shape, .hero-bg img { animation: none !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { transition: none !important; opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto !important; }
}

/* Inner pages: gold labels and badges on light backgrounds */
.faq-section .section-label, .map-section .section-header .section-label, .editorial-section .section-label, .cta-section .section-label,
.hotel-featured-tagline, .stay-row-hood, .position-card-number, .vol-callout-inner h2 em, .pickup-date, .lede-text .drop-cap, .stat-value .gold { color: var(--gold-ink); }
:is(.rff, .prize, .sponsor-cta, .newsletter, .dark-section, .quote-banner, .expect, .tiers, .weather-section, .how-it-works, .vendor-form-section, .cta-band, .cta-banner, .cta:not(.cta-gold), .register-band, .register-nudge, .office-hours, .pickup-info-card, .hero, .hero-banner, .contact-hero, .page-hero, .map-info-bar, .booth-card-featured, .perk-card-featured, .event-card-featured, .hotel-featured-visual, .footer) .section-label, .map-header .section-label { color: #E3A53A; }
.register-band-cta, .hotel-featured-badge, .btn-gold { color: #0F1D33 !important; }
.event-badge { color: #1F5594; }
.event-card-featured .event-badge { color: #F0B95A; }
.airport-code { color: #7A5200; }

/* Captions on photos: solid band instead of a fade, so the words never sit on a bright part of the picture */
.heritage-intro-image figcaption, .gal-slide figcaption, .full-image figcaption, .col-image figcaption, .photo-grid figcaption,
.hotel-featured-visual.has-photo .hotel-featured-caption { background: rgba(15,29,51,.9); color: #fff; padding-top: 12px; padding-bottom: 12px; }
/* Heritage page: the band sits flush under its photo with the words inset; on phones the full-width captions sit below the photo instead of over it */
.col-image figcaption, .photo-grid figcaption { padding-left: 14px; padding-right: 14px; margin-top: 0; border-radius: 0 0 8px 8px; }
.col-image img, .photo-grid figure img { border-radius: 8px 8px 0 0; }
@media (max-width: 768px) { .full-image figcaption { position: static; padding: 12px 20px; } }

/* Text over the hero video and page-top photos: darker shade behind it, brighter text on top */
.hero-bg::after { background: linear-gradient(135deg, rgba(15,29,51,.9) 0%, rgba(20,36,64,.82) 45%, rgba(27,45,78,.7) 100%), linear-gradient(to top, rgba(15,29,51,.95) 0%, transparent 45%); }
.hero-photo-shade { background: linear-gradient(to bottom, rgba(15,29,51,.72) 0%, rgba(15,29,51,.68) 50%, rgba(15,29,51,.92) 100%); }
.hero-subtitle, .hero-subtitle .nowrap, .title-line-sub, .title-line-sub .char, .countdown-label, .hero-banner-subtitle, .contact-hero-sub { color: rgba(255,255,255,.95) !important; }
.hero-title em, .hero-title em .char, .hero-badge-text, .hero-banner-label, .contact-hero-label { color: #F0B95A !important; }
.hero-badge { background: rgba(15,29,51,.8); border-color: rgba(240,185,90,.55); }
.btn-outline { border-color: rgba(255,255,255,.75); background: rgba(15,29,51,.35); }

/* Faint white text on dark sections */
.weather-stat-label, .tier-badge, .tier-jump a { color: rgba(255,255,255,.85); }
.tier-card-featured .tier-badge { color: #F0B95A; }
.newsletter-content p { color: rgba(255,255,255,.95); }
.newsletter { background: linear-gradient(135deg, #255E9E 0%, #1B2D4E 100%); }

/* Gold call-to-action band (homepage, travel): dark text on solid gold instead of white on a gold-to-blue fade */
.cta.cta-gold { background: linear-gradient(135deg, #C98A22 0%, #D4952A 55%, #E0A840 100%); }
.cta.cta-gold::before { display: none; }
.cta.cta-gold .section-label, .cta.cta-gold .section-title, .cta.cta-gold .section-title em, .cta.cta-gold .section-desc { color: #0F1D33; }
.cta.cta-gold .btn-gold-outline { color: #0F1D33; border-color: #0F1D33; }
.cta.cta-gold .btn-white { color: #0F1D33; }
.contact-hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(15,29,51,.62); }

/* Last few: buttons and quotes that sat on a bright part of a gradient */
.form-submit { background: #255E9E; }
.quote-banner { background: linear-gradient(135deg, #0F1D33 0%, #1B2D4E 60%, #22406B 100%); }
.quote-banner cite, .pull-quote cite, .hero-label { color: #F0B95A; }
.quote-banner cite span, .hero-scroll-hint span { color: rgba(255,255,255,.85); }
.tier-card-featured .tier-badge { color: #F8D48A; }
.about-float-badge, .about-float-badge strong { color: #0F1D33; }
.lightbox-caption { color: rgba(255,255,255,.92); }

/* The chat button owns the bottom-right corner: lift the footer's last row clear of it */
body:has(.tsm-chat) .footer { padding-bottom: 96px; }

/* Controls that are not on screen must not take keyboard focus */
.lightbox:not(.active) .lightbox-close { display: none; }
.faq-item:not(.open):not(.active) .faq-answer { visibility: hidden; }

/* "Message sent" panels receive focus so screen readers announce them; no ring round the whole panel */
#contactDone:focus, #formSuccess:focus, .tsm-form-done:focus { outline: none; box-shadow: none; }
