/* AI guide: one graphite, silver and red visual system. */
:root{
 --paper:#171a20;--surface:#20242b;--surface-raised:#2b3039;
 --ink:#f3f4f6;--muted:#bcc3cd;--red:#ff4b4b;--red-dark:#df364e;
 --line:#303641;--shadow:0 10px 30px rgba(0,0,0,.18);
 color:var(--ink);background:var(--paper);color-scheme:dark;
}
body.theme-dark{background:radial-gradient(ellipse at 90% 0,rgba(117,30,47,.09),transparent 450px),var(--paper);color:var(--ink)}
body.theme-dark ::selection{background:#843342;color:#fff}
body.theme-dark .brand-pair .brand-chixuli{filter:grayscale(1) invert(1) brightness(1.7);mix-blend-mode:screen}
body.theme-dark .brand-pair .brand-club{filter:brightness(0) invert(1);mix-blend-mode:normal}
body.theme-dark .brand-rule{background:#505661}
body.theme-dark .desktop-nav a{color:var(--muted)}
body.theme-dark .desktop-nav a.active,body.theme-dark .desktop-nav a:hover{color:var(--red)}
body.theme-dark .welcome-card{background:var(--surface);border-color:#333a46;box-shadow:0 16px 42px rgba(0,0,0,.24)}
body.theme-dark .welcome-visual{background:#08090c}
body.theme-dark .welcome-visual:after{display:block;z-index:2;height:24px;background:linear-gradient(to top,var(--surface),rgba(24,27,33,0))}
body.theme-dark #overview .arrival-summary{background:var(--surface)}
body.theme-dark .event-date{color:#ff4b4b}
body.theme-dark .event-hotel{color:var(--ink)}
body.theme-dark .event-checkin{color:#d0d5de}
body.theme-dark .event-checkin>span{color:#a7afbc}
body.theme-dark .task-links>a{background:var(--surface);border-color:#353c48;color:var(--ink);box-shadow:0 6px 20px rgba(0,0,0,.14)}
body.theme-dark .task-links>a:hover{background:#252a33;border-color:#657080}
body.theme-dark .task-links>a.task-featured{background:#c52630;border-color:#e74650}
body.theme-dark .task-links>a.task-featured:hover{background:#df303a;border-color:#ff525c}
body.theme-dark .task-links>a>.icon,body.theme-dark .task-featured .task-arrow{color:#ff4b4b}
body.theme-dark .task-arrow{color:#aab3c2}
body.theme-dark .mobile-nav{background:rgba(25,29,36,.98);border-color:#3b4350;box-shadow:0 -6px 24px rgba(0,0,0,.18)}
body.theme-dark .mobile-nav a{color:#aeb7c5}
body.theme-dark .mobile-nav a.active{color:#ff4b4b}
body.theme-dark .button.primary,body.theme-dark .primary{background:#b91e2b;border-color:#da4053;color:#fff}
body.theme-dark .button.primary:hover,body.theme-dark .primary:hover{background:#d02c41}
body.theme-dark .button.dark{background:#2c323d;border-color:#515c6e;color:#f5f6f8}
body.theme-dark .button.dark:hover{background:#3a4351}
body.theme-dark .button.secondary{background:var(--surface-raised);border-color:#485361;color:var(--ink)}
body.theme-dark .skip-link{background:#f3f4f6;color:#16191e}
body.theme-dark button:focus-visible,body.theme-dark a:focus-visible,body.theme-dark input:focus-visible,body.theme-dark summary:focus-visible,body.theme-dark [tabindex]:focus-visible{outline-color:#ff4b4b}

/* V15: dark content surfaces. Load after guide-sections-v7.css and guide-v7.css.
   Color-only overrides: retain the existing typography, spacing and layout. */

body.theme-dark :is(#schedule, #stay, #venue, #prepare, #help, #explore) .section-heading h2,
body.theme-dark #help .help-intro > h2 {
  color: var(--ink);
}

body.theme-dark :is(#schedule, #stay, #venue, #prepare, #help, #explore) .section-heading p {
  color: var(--muted);
}

body.theme-dark :is(.program-shell, .stay-main, .booking-help, .venue-grid, .checklist-panel, .class-notes, .contact-panel, .faq-list, .explore-disclosure) {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

/* Course dates, topic text and breaks use separate charcoal surfaces. */
body.theme-dark #schedule .day-tabs {
  background: #12151a;
  border-bottom-color: var(--line);
}

body.theme-dark #schedule .day-tab {
  color: var(--muted);
}

body.theme-dark #schedule .day-tab.active {
  color: var(--red);
  background: var(--surface-raised);
}

body.theme-dark #schedule .session::before {
  background: #4c3942;
}

body.theme-dark #schedule .session::after,
body.theme-dark #schedule .session-time strong::before {
  background: var(--surface);
  border-color: var(--red);
}

body.theme-dark #schedule .course-disclosure {
  border-bottom-color: var(--line);
}

body.theme-dark #schedule .course-summary h3,
body.theme-dark #schedule .course-topic,
body.theme-dark #schedule .course-label {
  color: var(--red);
}

body.theme-dark #schedule .course-description,
body.theme-dark #schedule .course-description p {
  color: #c4cbd5;
}

body.theme-dark #schedule .course-chevron {
  color: var(--muted);
}

body.theme-dark #schedule .checkin-content,
body.theme-dark #schedule .checkin-content h3 {
  color: var(--ink);
}

body.theme-dark #schedule .break-session {
  background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--line);
}

body.theme-dark #schedule .break-session .session-time strong,
body.theme-dark #schedule .break-session .session-time > span {
  color: #c4cbd5;
}

body.theme-dark #schedule .program-foot {
  background: #14171c;
  border-top-color: var(--line);
  color: var(--muted);
}

/* Hotel rules stay prominent without bright pink panels. */
body.theme-dark #stay .section-stamp,
body.theme-dark #stay .booking-warning {
  background: #2c2024;
  border-color: #703137;
}

body.theme-dark #stay .section-stamp,
body.theme-dark #stay .warning-heading {
  color: var(--red);
}

body.theme-dark #stay .booking-warning > p {
  color: #e1e4e9;
}

body.theme-dark #stay .booking-warning > p strong {
  color: #ff4b4b;
}

body.theme-dark #stay .extra-person {
  border-top-color: #703137;
}

body.theme-dark #stay .extra-person > span:first-child,
body.theme-dark #stay .extra-person strong small,
body.theme-dark #stay .extra-person > .included {
  color: #c9cbd1;
}

body.theme-dark #stay .extra-person > strong {
  color: var(--red);
}

body.theme-dark #stay .booking-steps {
  color: var(--muted);
}

body.theme-dark #stay .booking-steps li > span {
  background: var(--surface-raised);
  border-color: #48515f;
  color: #c4cbd5;
}

/* Keep the hotel photograph intact; only its placeholder is recolored. */
body.theme-dark #venue .venue-photo {
  background: var(--surface-raised);
}

body.theme-dark #venue .parking-tag {
  background: var(--surface-raised);
  color: #d4dae3;
}

/* Checklist controls remain distinguishable in both states. */
body.theme-dark #prepare .progress-track {
  background: var(--line);
}

body.theme-dark #prepare .checklist label {
  border-bottom-color: var(--line);
}

body.theme-dark #prepare .custom-check {
  background: #12151a;
  border-color: #697487;
}

body.theme-dark #prepare .checklist input:checked + .custom-check {
  background: #bd263d;
  border-color: #bd263d;
}

body.theme-dark #prepare .custom-check > .icon {
  color: #fff;
}

body.theme-dark #prepare .checklist input:focus-visible + .custom-check {
  outline-color: var(--red);
}

body.theme-dark #prepare .checklist input:checked ~ span:last-child strong,
body.theme-dark #prepare .checklist input:checked ~ strong {
  color: var(--muted);
  text-decoration-color: #828c9d;
}

body.theme-dark #prepare .class-note > span {
  color: var(--muted);
}

body.theme-dark #prepare .weather-note > .icon {
  color: var(--red);
}

/* Help and nearby recommendations retain their existing reading hierarchy. */
body.theme-dark #help .faq-list details {
  border-bottom-color: var(--line);
}

body.theme-dark #help .faq-list summary > .icon,
body.theme-dark #explore .explore-disclosure > summary > .icon,
body.theme-dark #explore .place-arrow,
body.theme-dark #explore .food-item > span:first-child {
  color: var(--muted);
}

body.theme-dark #explore .place-image {
  background: var(--surface-raised);
}

body.theme-dark #explore .food-item {
  border-bottom-color: var(--line);
}

/* Booking dialog: dark chrome, readable warning, unchanged original QR. */
body.theme-dark #booking-dialog {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 24px 100px rgba(0, 0, 0, .56);
}

body.theme-dark #booking-dialog::backdrop {
  background: rgba(4, 6, 10, .78);
}

body.theme-dark #booking-dialog .dialog-header {
  background: var(--surface);
  border-bottom-color: var(--line);
}

body.theme-dark #booking-dialog .icon-button {
  background: var(--surface-raised);
  border-color: #48515f;
  color: var(--ink);
}

body.theme-dark #booking-dialog .icon-button:hover {
  background: #303641;
}

body.theme-dark #booking-dialog .dialog-warning {
  background: #2c2024;
  border-color: #703137;
  color: #e1e4e9;
}

body.theme-dark #booking-dialog .dialog-warning > strong {
  color: var(--red);
}

body.theme-dark #booking-dialog .dialog-warning p {
  color: #e1e4e9;
}

body.theme-dark #booking-dialog .dialog-warning b,
body.theme-dark #booking-dialog .dialog-warning p strong {
  color: #ff4b4b;
}

body.theme-dark #booking-dialog .booking-qr {
  background: #fff;
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}

body.theme-dark #booking-dialog .qr-caption {
  color: var(--ink);
}

body.theme-dark .toast {
  background: #303641;
  color: var(--ink);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
}

/* Preserve a legible current-page printout. */
@media print{
 :root{--paper:#fff;--surface:#fff;--surface-raised:#f2f2f2;--ink:#111;--muted:#444;--red:#a21f30;--line:#ccc;color-scheme:light}
 body.theme-dark,body.theme-dark *{background:transparent!important;color:#111!important;box-shadow:none!important;border-color:#ccc!important}
 body.theme-dark{background:#fff!important}
 body.theme-dark .welcome-art{display:none}
 body.theme-dark .welcome-visual:after{display:none}
}

/* V16: brighter charcoal surfaces and true-red accents. */
body.theme-dark .course-slogan{color:#cbd0d8}
body.theme-dark .slogan-cross{color:var(--red)}
body.theme-dark .task-links>a.task-featured{color:#fff}
body.theme-dark .task-links>a.task-featured>.icon,
body.theme-dark .task-links>a.task-featured .task-arrow{color:#fff}
body.theme-dark #schedule .course-summary h3{color:var(--ink)}
body.theme-dark #schedule .course-topic{color:var(--red)}
body.theme-dark #schedule .day-tab.active{color:#fff}
body.theme-dark #schedule .day-tab.active:after{background:var(--red)}
body.theme-dark .button.primary,body.theme-dark .primary{background:#c52630;border-color:#e74650}
body.theme-dark .button.primary:hover,body.theme-dark .primary:hover{background:#df303a}
