@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --purple: #7a57be;
  --dark-purple: #4a3371;
  --nav-purple: #52397a;
  --sky-blue: #87bce0;
  --sage-green: #8db87c;
  --navy: #1d3a56;
  --red: #c03828;
  --orange: #d06a20;
  --salmon: #e8896a;
  --ink: #2b2b2b;
  --surface: #ffffff;
  --purple-accent: #6b3fa0;
  --shadow: 0 8px 24px rgba(45, 35, 84, 0.14);
  --radius-lg: 20px;
  --radius-md: 12px;
  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Theme-aware content tokens (brand tokens above stay fixed across themes).
     Namespaced --theme-* to avoid colliding with existing tokens (e.g. --surface,
     used site-wide by .card) until those are deliberately migrated too. */
  --theme-bg: #f7f5fb;
  --theme-surface: #ffffff;
  --theme-surface-strong: #805fc1;
  --theme-text: #1c1040;
  --theme-text-muted: #6b6478;
  --theme-border: #dedce4;
  --theme-shadow-color: rgba(45, 35, 84, 0.14);

  /* Chrome tokens: announce bar, nav bar, breadcrumb/endcap panels, hero gradient.
     These previously stayed a fixed dark purple in both themes; light-mode values
     below give them a lighter purple identity, dark-mode values match the site's
     original fixed-dark look exactly (no change there).
     Light values are picked from the same hue/saturation as --purple, tuned so
     white text at full opacity clears WCAG AA (4.5:1): #704bb9 -> 6.18:1,
     #805fc1 -> 4.86:1. #9377ca is deliberately lighter (~3.7:1) but only ever
     sits behind the hero's decorative gradient corner, not text. */
  --theme-announce-bg: #704bb9;
  --theme-nav-bg: #704bb9;
  --theme-chrome-bg: #805fc1;
  --theme-hero-1: #9377ca;
  --theme-hero-2: #a58ed3;
  --theme-hero-3: #b7a5dc;

  /* Secondary/muted white text (opening times, breadcrumbs, visit details, footer,
     nav dropdown) was tuned at low opacity for the old near-black chrome. Against
     the lighter chrome above, low opacity can't reach 4.5:1 at any reasonable
     value, so these go near-opaque/light in light mode; dark mode below restores
     the original values exactly. */
  --announce-muted: rgba(255, 255, 255, 0.95);
  --announce-day: rgba(255, 255, 255, 0.88);
  --announce-time: rgba(255, 255, 255, 0.97);
  --announce-feature-copy: rgba(255, 255, 255, 0.95);
  --announce-feature-small: rgba(255, 255, 255, 0.9);
  --breadcrumb-muted: rgba(255, 255, 255, 0.95);
  --visit-intro: rgba(255, 255, 255, 0.96);
  --visit-small: rgba(255, 255, 255, 0.96);
  --footer-muted: rgba(255, 255, 255, 0.96);
  --theme-panel-muted: rgba(255, 255, 255, 0.96);
  --theme-hero-muted: rgba(255, 255, 255, 0.96);
  --dropdown-bg: var(--theme-surface);
  --dropdown-border: var(--theme-border);
  --dropdown-hover-bg: rgba(122, 87, 190, 0.1);
  --dropdown-title: var(--theme-text);
  --dropdown-subtitle: var(--theme-text-muted);

  /* Toast tokens: light shade + dark text in light mode, dark shade + light
     text in dark mode, for each semantic type. */
  --toast-info-bg: #eaf1ff;
  --toast-info-border: #c7dcff;
  --toast-info-text: #1c3d6a;
  --toast-warning-bg: #fff6dd;
  --toast-warning-border: #ffe19a;
  --toast-warning-text: #7a5900;
  --toast-error-bg: #fff2f0;
  --toast-error-border: #f0beb7;
  --toast-error-text: #8a2e21;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --theme-bg: #381a62;
    --theme-surface: #241a3d;
    --theme-surface-strong: #34255c;
    --theme-text: #f1eef7;
    --theme-text-muted: #b7aed0;
    --theme-border: rgba(255, 255, 255, 0.14);
    --theme-shadow-color: rgba(0, 0, 0, 0.4);
    --theme-announce-bg: #1c1040;
    --theme-nav-bg: #2d1760;
    --theme-chrome-bg: #1c1040;
    --theme-hero-1: #1c1040;
    --theme-hero-2: #3d1b7a;
    --theme-hero-3: #5a2e9a;
    --announce-muted: rgba(255, 255, 255, 0.62);
    --announce-day: rgba(255, 255, 255, 0.45);
    --announce-time: rgba(255, 255, 255, 0.66);
    --announce-feature-copy: rgba(255, 255, 255, 0.72);
    --announce-feature-small: rgba(255, 255, 255, 0.56);
    --breadcrumb-muted: rgba(255, 255, 255, 0.6);
    --visit-intro: rgba(255, 255, 255, 0.56);
    --visit-small: rgba(255, 255, 255, 0.48);
    --footer-muted: rgba(255, 255, 255, 0.68);
    --theme-panel-muted: rgba(255, 255, 255, 0.5);
    --theme-hero-muted: rgba(255, 255, 255, 0.6);
    --dropdown-bg: rgba(20, 10, 48, 0.97);
    --dropdown-border: rgba(255, 255, 255, 0.1);
    --dropdown-hover-bg: rgba(255, 255, 255, 0.1);
    --dropdown-title: rgba(255, 255, 255, 0.92);
    --dropdown-subtitle: rgba(255, 255, 255, 0.38);
    --toast-info-bg: #15294d;
    --toast-info-border: #2c4a7c;
    --toast-info-text: #bcd6ff;
    --toast-warning-bg: #4a3900;
    --toast-warning-border: #6b5300;
    --toast-warning-text: #ffd166;
    --toast-error-bg: #4a170f;
    --toast-error-border: #6e281c;
    --toast-error-text: #ffb4a3;
  }
}

:root[data-theme="dark"] {
  --theme-bg: #381a62;
  --theme-surface: #241a3d;
  --theme-surface-strong: #34255c;
  --theme-text: #f1eef7;
  --theme-text-muted: #b7aed0;
  --theme-border: rgba(255, 255, 255, 0.14);
  --theme-shadow-color: rgba(0, 0, 0, 0.4);
  --theme-announce-bg: #1c1040;
  --theme-nav-bg: #2d1760;
  --theme-chrome-bg: #1c1040;
  --theme-hero-1: #1c1040;
  --theme-hero-2: #3d1b7a;
  --theme-hero-3: #5a2e9a;
  --announce-muted: rgba(255, 255, 255, 0.62);
  --announce-day: rgba(255, 255, 255, 0.45);
  --announce-time: rgba(255, 255, 255, 0.66);
  --announce-feature-copy: rgba(255, 255, 255, 0.72);
  --announce-feature-small: rgba(255, 255, 255, 0.56);
  --breadcrumb-muted: rgba(255, 255, 255, 0.6);
  --visit-intro: rgba(255, 255, 255, 0.56);
  --visit-small: rgba(255, 255, 255, 0.48);
  --footer-muted: rgba(255, 255, 255, 0.68);
  --theme-panel-muted: rgba(255, 255, 255, 0.5);
  --theme-hero-muted: rgba(255, 255, 255, 0.6);
  --dropdown-bg: rgba(20, 10, 48, 0.97);
  --dropdown-border: rgba(255, 255, 255, 0.1);
  --dropdown-hover-bg: rgba(255, 255, 255, 0.1);
  --dropdown-title: rgba(255, 255, 255, 0.92);
  --dropdown-subtitle: rgba(255, 255, 255, 0.38);
  --toast-info-bg: #15294d;
  --toast-info-border: #2c4a7c;
  --toast-info-text: #bcd6ff;
  --toast-warning-bg: #4a3900;
  --toast-warning-border: #6b5300;
  --toast-warning-text: #ffd166;
  --toast-error-bg: #4a170f;
  --toast-error-border: #6e281c;
  --toast-error-text: #ffb4a3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--purple);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
  background: var(--theme-bg, var(--purple));
}

.announce {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 10px 16px 12px;
  font-size: 14px;
  line-height: 1.9;
}

.announce strong {
  font-weight: 800;
}

.announce a {
  color: #fff;
  text-decoration: underline;
}

.header-band {
  background: var(--purple);
  padding: 18px 0 22px;
}

.header-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

.search-wrap {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  width: 176px;
  height: 32px;
  padding: 0 12px;
}

.search-wrap input {
  border: 0;
  outline: 0;
  width: 100%;
  height: 100%;
  font-size: 14px;
  color: #555;
  padding: 0;
  background: transparent;
}

.search-icon {
  order: -1;
  width: 18px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #b7b7b7;
  font-size: 35px;
}

.brand {
  justify-self: center;
}

.brand img {
  height: 118px;
  width: auto;
}

.social-list {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-list a,
.social-row a,
.social-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  background: transparent;
  border: 0;
}

.social-list a svg {
  width: 23px;
  height: 23px;
  display: block;
}

.social-list a:hover,
.social-row a:hover,
.social-circle:hover {
  opacity: 0.82;
}

.main-nav {
  background: var(--nav-purple);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 0;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-inner {
  min-height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
}

.nav-link,
.nav-drop-toggle {
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 14px;
  text-transform: uppercase;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-link:hover,
.nav-drop-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.is-active,
.nav-drop-toggle.is-active {
  background: transparent;
}

.nav-cta {
  margin-left: 10px;
  border-radius: 10px;
  padding: 12px 20px;
  background: var(--orange);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-content {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 280px;
  background: #fff;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--orange);
  display: none;
  z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown.open .nav-dropdown-content {
  display: block;
}

.nav-dropdown-content a {
  display: block;
  text-decoration: none;
  color: #444;
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  line-height: 1.2;
}

.nav-dropdown-content a:last-child {
  border-bottom: 0;
}

.nav-dropdown-content a:hover {
  background: #f8f8f8;
}

.section-pad {
  padding: 32px 0;
}
