:root {
  color-scheme: light;
  --navy: #0c1a3d;
  --navy-deep: #08122c;
  --navy-mid: #132a5c;
  --ink: #1a2230;
  --muted: #4a5564;
  --line: #e3dacd;
  --paper: #f4f1ea;
  --white: #ffffff;
  --nav-text: #f7f4ee;
  --heading: #0c1a3d;
  --text-strong: #0c1a3d;
  --link: #0c1a3d;
  --link-hover: #b88420;
  --gold: #c8942e;
  --gold-bright: #e8b84a;
  --gold-soft: #f5e6c3;
  --gold-bar: #d4a03a;
  --danger: #8d2c2c;
  --ok: #1d5c40;
  --card-rose: #c44d6f;
  --card-amber: #d9822b;
  --card-violet: #6b4fa0;
  --card-blue: #2f6fad;
  --card-green: #3d8f5c;
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --wrap: 1180px;
  --header-offset: 8.75rem;
  --shadow: 0 12px 32px rgba(8, 18, 44, 0.1);
  --shadow-hover: 0 20px 48px rgba(8, 18, 44, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.28s;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3efe6;
  --muted: #c2cad8;
  --line: #334055;
  --paper: #070d18;
  --white: #121b2e;
  --nav-text: #ffffff;
  --heading: #ffffff;
  --text-strong: #ffffff;
  --link: #f0c35a;
  --link-hover: #ffe09a;
  --gold: #e2b34a;
  --gold-bright: #f0c35a;
  --gold-soft: #ffe6b0;
  --gold-bar: #d4a03a;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] body {
  color: var(--ink);
  background: var(--paper);
}

html[data-theme="dark"] .header-brand {
  background: var(--white);
  border-bottom-color: var(--line);
  color: var(--text-strong);
}

html[data-theme="dark"] .header-hours-label,
html[data-theme="dark"] .header-hours-icon {
  color: var(--gold-bright);
}

html[data-theme="dark"] .header-hours-time {
  color: #f5f1e8;
}

html[data-theme="dark"] .header-hours-sep {
  background: #5a6a82;
}

html[data-theme="dark"] .header-contact a,
html[data-theme="dark"] .header-social-link {
  color: #f5f1e8;
}

html[data-theme="dark"] .header-contact a:hover,
html[data-theme="dark"] .header-social-link:hover {
  color: var(--gold-bright);
}

html[data-theme="dark"] .nav-link {
  color: #ffffff;
}

html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link[aria-current="page"],
html[data-theme="dark"] .nav-item.is-active > .nav-link {
  color: var(--gold-soft);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #0b1322;
  border-color: #3a465c;
  color: #ffffff;
}

html[data-theme="dark"] .contact-form select {
  background-color: #0b1322;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23e2b34a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .year-picker-trigger {
  background-color: #0b1322;
  border-color: #3a465c;
  color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23e2b34a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .year-picker-trigger.is-placeholder span {
  color: #9aa6ba;
}

html[data-theme="dark"] .year-picker-panel,
html[data-theme="dark"] .year-picker-panel-head {
  background: #0b1322;
  border-color: #3a465c;
  color: #ffffff;
}

html[data-theme="dark"] .year-picker-group {
  background: #101a2c;
  color: #9aa6ba;
  border-color: #3a465c;
}

html[data-theme="dark"] .year-picker-option {
  color: #ffffff;
  border-color: #2a3548;
}

html[data-theme="dark"] .year-picker-option:hover,
html[data-theme="dark"] .year-picker-option:focus-visible,
html[data-theme="dark"] .year-picker-option.is-selected {
  background: #152038;
  color: #f3d27a;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #9aa6ba;
}

html[data-theme="dark"] .field label,
html[data-theme="dark"] .contact-form-label,
html[data-theme="dark"] .contact-intro-title {
  color: #ffffff;
}

html[data-theme="dark"] .contact-intro-text,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .contact-form-note {
  color: #c5cedc;
}

html[data-theme="dark"] .btn-line {
  color: #ffffff;
  border-color: #4a5870;
}

html[data-theme="dark"] .btn-line:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-bright);
}

html[data-theme="dark"] .nav-toggle {
  color: #ffffff;
  border-color: #4a5870;
  background: var(--white);
}

html[data-theme="dark"] .nav-sub {
  background: #162235;
  border-color: #334055;
}

html[data-theme="dark"] .nav-sub a {
  color: #ffffff;
}

html[data-theme="dark"] .nav-sub a:hover {
  color: var(--gold-bright);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .about-subnav-list {
  background: var(--white);
  border-color: var(--line);
}

html[data-theme="dark"] .about-subnav-link {
  color: #f3efe6;
  background: transparent;
  border-color: transparent;
}

html[data-theme="dark"] .about-subnav-link:hover {
  background: #1a2538;
  color: #ffffff;
}

html[data-theme="dark"] .about-subnav-link.is-active {
  background: var(--navy-mid);
  color: var(--gold-soft);
  border-color: var(--navy-mid);
}

html[data-theme="dark"] .strip-feature {
  color: #ffffff;
}

html[data-theme="dark"] .strip-feature span {
  color: #c5cedc;
}

html[data-theme="dark"] .strip-features {
  background: var(--white);
  border-bottom-color: var(--line);
}

html[data-theme="dark"] .skip {
  color: #ffffff;
}

html[data-theme="dark"] .details dt {
  color: var(--gold-bright);
}

html[data-theme="dark"] .details dd,
html[data-theme="dark"] .details dd a {
  color: #f3efe6;
}

html[data-theme="dark"] .lede,
html[data-theme="dark"] .page-hero .lede,
html[data-theme="dark"] .sister-intro,
html[data-theme="dark"] .admin-team-intro,
html[data-theme="dark"] .measure {
  color: #d7deea;
}

html[data-theme="dark"] .admin-card {
  background: var(--white);
  border-color: var(--line);
}

html[data-theme="dark"] .admin-card-name {
  color: #ffffff;
}

html[data-theme="dark"] .admin-card-name.is-placeholder {
  color: #9aa6ba;
}

html[data-theme="dark"] .admin-card-role {
  color: var(--gold-bright);
}

html[data-theme="dark"] .sister-logo {
  background: linear-gradient(180deg, #182338 0%, var(--white) 100%);
  border-bottom-color: var(--line);
}

html[data-theme="dark"] .sister-copy {
  border-top-color: var(--gold-bar);
}

html[data-theme="dark"] .about-hub-card,
html[data-theme="dark"] .sister-card,
html[data-theme="dark"] .home-campus-shot,
html[data-theme="dark"] .home-campus-shot-caption,
html[data-theme="dark"] .campus-card,
html[data-theme="dark"] .campus-card-caption,
html[data-theme="dark"] .form-card,
html[data-theme="dark"] .contact-form,
html[data-theme="dark"] .contact-aside,
html[data-theme="dark"] .history-hero {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] .campus-card-caption,
html[data-theme="dark"] .home-campus-shot-caption {
  color: #ffffff;
}

html[data-theme="dark"] .about-hub-card h3,
html[data-theme="dark"] .sister-card h3,
html[data-theme="dark"] .mission-list strong,
html[data-theme="dark"] .facts dd,
html[data-theme="dark"] .stage-strip strong,
html[data-theme="dark"] .years li,
html[data-theme="dark"] .grades li,
html[data-theme="dark"] .stage-subject-list li,
html[data-theme="dark"] .stage-group,
html[data-theme="dark"] .stage-subject-table-wrap {
  color: #ffffff;
  background: var(--white);
  border-color: var(--line);
}

html[data-theme="dark"] .stage-subject-table thead th,
html[data-theme="dark"] .stage-subject-table tbody tr:nth-child(even) td,
html[data-theme="dark"] .stage-subject-table tbody tr.is-spacer:nth-child(even) td {
  background: color-mix(in srgb, var(--paper) 55%, var(--white));
}

html[data-theme="dark"] .stage-subject-table tbody tr.is-spacer:nth-child(odd) td {
  background: var(--white);
}

html[data-theme="dark"] .stage-subject-table tbody td {
  color: #ffffff;
  border-bottom-color: var(--line);
}

html[data-theme="dark"] .stage-group-name,
html[data-theme="dark"] .stage-section-title {
  color: #ffffff;
}

html[data-theme="dark"] .stage-group-text,
html[data-theme="dark"] .stage-subjects-intro {
  color: #c5cedc;
}

html[data-theme="dark"] .about-hub-card p,
html[data-theme="dark"] .sister-card .loc,
html[data-theme="dark"] .mission-list p,
html[data-theme="dark"] .stage-strip span {
  color: #c5cedc;
}

html[data-theme="dark"] .banner-ok {
  background: #143528;
  border-color: #1d5c40;
  color: #c8efd8;
}

html[data-theme="dark"] .banner-bad {
  background: #3a1a1a;
  border-color: #8d2c2c;
  color: #f5c8c8;
}

html[data-theme="dark"] .kicker {
  color: var(--gold-bright);
}

@media (max-width: 900px) {
  html[data-theme="dark"] .about-subnav-link {
    background: #1a2538;
    border-color: #334055;
    color: #f3efe6;
  }

  html[data-theme="dark"] .about-subnav-link.is-active {
    background: var(--navy-mid);
    color: var(--gold-soft);
  }
}
