/* Shared theme tokens. Light remains the existing editorial palette. */
:root{color-scheme:light;--surface:#fffdf8;--surface-raised:#fff;--surface-soft:#f0f3e9;--theme-text:#17352f;--theme-muted:#52695d;--theme-accent:#876430;--theme-border:#d7e1d5}
html[data-theme=dark]{color-scheme:dark;--paper:#10251f;--cream:#172f27;--surface:#19332a;--surface-raised:#203e33;--surface-soft:#254739;--ink:#f2eee2;--ink-2:#bdcdbf;--theme-text:#f2eee2;--theme-muted:#bdcdbf;--theme-accent:#d6bc83;--theme-border:#3b5749;--gold:#d6bc83;--sage:#a9c3a5;--sage-light:#254739;--line:rgba(186,210,183,.22);--shadow:0 18px 50px #0003;--rust:#a9553d}
.nav-wrap{gap:clamp(.65rem,1.5vw,1.4rem)}
.theme-toggle{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;padding:9px;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--ink);cursor:pointer}
.theme-toggle:hover{background:var(--cream);border-color:var(--gold)}
.theme-toggle svg{width:20px;height:20px;grid-area:1/1}
.theme-moon{display:none}
html[data-theme=dark] .theme-moon{display:block}
html[data-theme=dark] .theme-sun{display:none}
.theme-toggle[hidden],.theme-settings[hidden]{display:none}
.theme-settings{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}
.theme-settings label{font-size:.76rem}
.theme-settings select{max-width:100%;border:1px solid #789185;border-radius:8px;padding:.45rem .65rem;background:#173b31;color:#f2eee2;font-size:.76rem}
html[data-theme=dark] .site-header{background:#10251f;border-color:var(--line);box-shadow:0 8px 28px #0002}
html[data-theme=dark] .primary-nav{background:#10251f}
html[data-theme=dark] .primary-nav>a{color:var(--ink-2)}
html[data-theme=dark] .primary-nav>a:hover,html[data-theme=dark] .primary-nav>a[aria-current]{color:var(--ink)}
html[data-theme=dark] .primary-nav .nav-cta{background:#2c5644;color:#fff;border-color:#638268}
html[data-theme=dark] .brand-header .brand-wordmark img{filter:grayscale(1) invert(1) contrast(2.4);mix-blend-mode:screen}
html[data-theme=dark] .menu-button{background:var(--surface);border-color:var(--line)}
html[data-theme=dark] .button{background:#315e48;border-color:#739273;color:#fff}
html[data-theme=dark] .button:hover{background:#3c6e53}
html[data-theme=dark] .button.ghost{background:transparent;color:var(--ink)}
html[data-theme=dark] :is(.light-button,.booking-card .button){background:#dfd6b9;color:#18372c;border-color:#dfd6b9}
html[data-theme=dark] :is(input,select,textarea){color:var(--ink);accent-color:#a5c89b}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#9eb3a5;opacity:1}
html[data-theme=dark] :is(input,select,textarea):focus-visible{outline-color:#d6bc83}
html[data-theme=dark] ::selection{background:#bdab71;color:#10251f}

/* Reading surfaces, cards, dialogs, search controls and editorial panels. */
html[data-theme=dark] :is(.search-panel,.event-card,.provider-card,.recurring-card,.city-index a,.process-grid article,.contact-grid a,.aside-actions,.profile-quickfacts,.profile-brand-card,.provider-review-link,.provider-demo-review-link,.quickview-dialog,.calendar-month,.calendar-result,.about-story-grid article,.providers-for-example,.providers-for-preview,.providers-for-contact-aside,.ht-guide-card,.ht-tv-card,.place-topic-card,.gl-card,.dg-card,.dg-practice,.yoga-guide .yg-style,.yoga-guide .yg-faqs details,.yoga-guide .yg-glossary details,.kw-form,.provider-start-card,.provider-engagement-explanation){background:var(--surface);border-color:var(--theme-border);color:var(--ink)}
html[data-theme=dark] :is(.filter-bar,.place-discovery-filter,.ht-tv-controls,.ht-tv-related,.local-comparison,.local-advice,.practical-grid,.local-table-scroll caption,.place-local-shortcuts,.provider-reviews-panel,.provider-demo-reviews,.profile-local-links,.provider-demo-info-pills span,.provider-demo-offerings article,.providers-for-event-preview,.providers-for-demo-banner,.area-providers-section,.area-classes-section,.provider-spotlight-section,.profile-share-note,.home-intro-art,.kw-entry-band){background:var(--cream);border-color:var(--theme-border)}
html[data-theme=dark] :is(.tag-list li,.profile-mini-tags span,.profile-share-pills span,.form-intro-line,.consent-check,.agenda-tabs button:not([aria-selected=true]):hover,.provider-review-source,.provider-demo-review-source,.provider-demo-event-date,.calendar-day-detail,.ht-tv-empty,.ht-tv-topic,.ht-tv-origin,.ht-tv-maker-icon,.local-guide-link,.provider-local-link,.local-topics a,.local-page-jumps a,.local-page-jumps a span,.area-meta>span,.area-topics a,.area-empty,.search-empty,.provider-action-context,.kw-confirmation){background:var(--surface-soft);color:var(--ink-2);border-color:var(--theme-border)}
html[data-theme=dark] :is(.main-form input:not([type=checkbox]),.main-form select,.main-form textarea,.filter-bar input,.filter-bar select,.inline-form input[type=email],.search-select input,.search-select-options,.search-chip,.search-country,.place-search input,.place-suggestions,.place-discovery-filter select,.place-quick-choices a,.place-index-links a,.ht-tv-controls select,.ht-tv-search input,.provider-directory .provider-filter-details>summary,.kw-search input,.kw-search select,.kw-form input){background:var(--surface);color:var(--ink);border-color:var(--theme-border)}
html[data-theme=dark] :is(.search-select-options li:hover,.search-select-options li[aria-selected=true],.place-suggestions li:hover,.place-suggestions li[aria-selected=true],.search-chip:hover,.local-topics a:hover,.local-topics a[aria-current],.provider-review-link:hover,.provider-start-card:hover,.area-card:hover,.area-topics a:hover){background:var(--surface-raised);color:var(--ink)}
html[data-theme=dark] :is(.search-select-toggle,.place-search-compact label,.area-card,.place-topic-copy h3 a,.place-local-shortcuts strong,.place-local-shortcuts nav a,.local-page-jumps a,.local-table-scroll table,.local-table-scroll a,.local-answer-grid a,.local-more-nearby>summary,.local-more>summary,.local-advice>summary,.local-comparison>summary,.local-guide-link span span,.provider-local-link span,.provider-action-context,.editorial-meta-link,.editorial-meta summary::after,.editorial-meta a,.editorial-source-line a,.profile-local-links a,.form-image-options summary,.home-search select,.event-periods button,.calendar-detail-head button,.provider-review-link,.provider-demo-review-link,.provider-engagement-explanation a,.provider-status-help){color:var(--ink)}
html[data-theme=dark] :is(.place-selection-summary,.place-topic-copy p,.place-local-shortcuts p,.place-index-links small,.search-select-options span,.place-suggestions span,.local-card-source,.local-card-source a,.local-comparison>summary>span,.local-comparison>p,.local-table-scroll small,.local-answer-grid p,.editorial-meta,.editorial-source-line,.provider-directory [data-provider-progress],.provider-start-card p,.guide-example-label,.kw-prize span,.kw-fine,.kw-result,.kw-selection>span){color:var(--ink-2)}
html[data-theme=dark] :is(.local-table-scroll table,.local-table-scroll thead th){background:var(--surface);border-color:var(--theme-border)}
html[data-theme=dark] .area-card{background:var(--surface);border-color:var(--theme-border)}
html[data-theme=dark] :is(.area-province,.home-intro-path>span,.ht-guide-body .ht-guide-label,.provider-demo-event-category,.kw-art figcaption,.kw-hero h1 em){color:var(--gold)}
html[data-theme=dark] :is(.event-periods button[aria-pressed=true],.agenda-tabs button[aria-selected=true],.place-quick-choices a[aria-current],.place-quick-choices a:hover,.provider-directory .tag-list .is-selected-activity){background:#315e48;color:#fff}
html[data-theme=dark] :is(.cookie-banner,.cookie-dialog){background:var(--surface);color:var(--ink);border-color:var(--theme-border)}
html[data-theme=dark] :is(.cookie-close,.quickview-close){background:var(--surface-raised);color:var(--ink)}
html[data-theme=dark] .cookie-choice{background:#315e48;border-color:#739273;color:white}
html[data-theme=dark] .calendar-day{background:var(--surface);color:var(--ink);border-color:var(--theme-border)}
html[data-theme=dark] .calendar-day:hover{background:var(--surface-raised)}
html[data-theme=dark] .calendar-day.empty{background:transparent}
html[data-theme=dark] .calendar-weekdays{color:var(--ink-2)}
html[data-theme=dark] .calendar-badge.special{background:#55472a;color:#f3deb0}
html[data-theme=dark] .calendar-badge.weekly{background:#2d503d;color:#d4e6ce}
html[data-theme=dark] .calendar-result span{color:var(--gold)}
html[data-theme=dark] :is(.form-status[data-state=success],.provider-engagement-badge){background:#244a37;color:#d6eed4}
html[data-theme=dark] .form-status[data-state=error]{background:#4a2926;color:#f6c7b7}
html[data-theme=dark] .provider-engagement-badge.is-involved{background:#493f29;color:#eddbb1}
/* Keep supplied photos and brand marks true to their original colors. */
html[data-theme=dark] :is(.provider-card-initials,.provider-card-logo,.profile-logo-wrap,.providers-for-preview-initials,.providers-for-logo,.provider-photo-board b,.recurring-visual span,.event-date){color:#17352f}
html[data-theme=dark] .event-date small{color:#34534b}
html[data-theme=dark] .inline-form button{color:#17352f}
html[data-theme=dark] .tag-list.large li{color:white;background:#ffffff12}

/* Video library and guide cards. */
html[data-theme=dark] :is(.ht-tv-library-head h2,.ht-tv-controls label,.ht-tv-card h3,.ht-tv-guide-link,.ht-tv-maker,.ht-tv-source,.ht-tv-related h2,.ht-guide-card .ht-guide-body h3,.ht-guide-body .ht-guide-link){color:var(--ink)}
html[data-theme=dark] :is(.ht-tv-library-head [data-tv-results],.ht-tv-description,.ht-tv-stats,.ht-tv-date,.ht-tv-notice,.ht-tv-topic-copy small,.disclaimer-updated,.ht-guide-body>p:not(.ht-guide-label)){color:var(--ink-2)}
html[data-theme=dark] .ht-tv-topic-link{background:var(--surface);color:var(--ink);border-color:var(--theme-border)}
html[data-theme=dark] .ht-tv-card--world .ht-tv-origin{background:#493f29;color:#eddbb1}

/* Long guides retain their individual photography and warm accent colors. */
html[data-theme=dark] :is(.dg-guide,.yoga-guide,.gl-library){background:var(--paper);color:var(--ink)}
html[data-theme=dark] .dg-guide{--dg-ink:var(--ink);--dg-muted:var(--ink-2);--dg-cream:var(--cream);--dg-soft:#172f27;--dg-light:#203e33;--dg-border:var(--theme-border)}
html[data-theme=dark] .yoga-guide{--yg-ink:var(--ink);--yg-light:var(--cream);--yg-sand:#172f27;--yg-cream:var(--surface);--yg-soft:#203e33}
html[data-theme=dark] :is(.dg-filter,.dg-search,.yoga-guide .yg-choice-list button,.yoga-guide .yg-filters button,.yoga-guide .yg-search-wrap input,.yoga-guide .yg-local-list a){background:var(--surface);color:var(--ink);border-color:var(--theme-border)}
html[data-theme=dark] :is(.dg-filter.is-active,.dg-filter:hover,.yoga-guide .yg-choice-list button[aria-pressed=true],.yoga-guide .yg-filters button.is-active,.yoga-guide .yg-filters button:hover){background:#315e48;color:white}
html[data-theme=dark] :is(.dg-timeline-section,.dg-card-detail aside,.yoga-guide .yg-choice,.yoga-guide .yg-minifact,.yoga-guide .yg-choice-result,.yoga-guide .yg-filter-toolbar,.yoga-guide .yg-teacher-note,.yoga-guide .yg-clarifier,.yoga-guide .yg-insight-lead,.yoga-guide .yg-vocabulary,.yoga-guide .yg-questions,.yoga-guide .yg-safety,.yoga-guide .yg-local,.yoga-guide .yg-lineage,.yoga-guide .yg-paths-grid>div){background:var(--cream);border-color:var(--theme-border)}
html[data-theme=dark] :is(.dg-search input,.dg-count button,.dg-card h3,.dg-card-plus,.dg-expand,.dg-card-detail h4,.dg-tip strong,.dg-glossary summary,.dg-faq summary,.dg-local-list a,.dg-references li a,.dg-references>small a,.yoga-guide .yg-intro-large,.yoga-guide .yg-minifact p,.yoga-guide .yg-style-expand,.yoga-guide .yg-small-note b,.yoga-guide .yg-safety a,.yoga-guide .yg-sources a,.yoga-guide .yg-photo-caption p,.gl-card h2 a,.gl-card-link){color:var(--ink)}
html[data-theme=dark] :is(.dg-section-head>p,.dg-intro-lead,.dg-essence p,.dg-count,.dg-card-type,.dg-card-description,.dg-card-detail li,.dg-tip,.dg-insight-grid p,.dg-era p,.dg-glossary summary small,.dg-glossary details>p,.dg-faq details>p,.dg-step p,.dg-local-copy>p:not(.dg-kicker),.dg-local-copy small,.dg-local-list small,.dg-references>div>p:not(.dg-kicker),.dg-references>small,.yoga-guide .yg-section-heading>p,.yoga-guide .yg-intro-main>p:not(.yg-intro-large),.yoga-guide .yg-result-inner p,.yoga-guide .yg-footnote,.yoga-guide .yg-filter-head span,.yoga-guide .yg-style-short,.yoga-guide .yg-style-info,.yoga-guide .yg-checks li,.yoga-guide .yg-small-note,.yoga-guide .yg-no-matches,.yoga-guide .yg-clarifier p,.yoga-guide .yg-insight-lead p,.yoga-guide .yg-insight-lead small,.yoga-guide .yg-knowledge-grid p,.yoga-guide .yg-glossary summary small,.yoga-guide .yg-glossary details p,.yoga-guide .yg-safety p,.yoga-guide .yg-local p:not(.yg-kicker),.yoga-guide .yg-local-list small,.yoga-guide .yg-faqs p,.yoga-guide .yg-sources>p,.yoga-guide .yg-sources>small,.yoga-guide .yg-lineage p,.yoga-guide .yg-paths-head p,.yoga-guide .yg-paths-grid span,.gl-intro>div>p,.gl-section-head>span,.gl-card-body>p,.gl-outro p){color:var(--ink-2)}
html[data-theme=dark] :is(.dg-kicker,.dg-guide h2 em,.dg-card-promise,.dg-label,.dg-era-date,.yoga-guide .yg-kicker,.yoga-guide h2 em,.yoga-guide .yg-style-teaser,.yoga-guide .yg-result-label,.yoga-guide .yg-note-mark,.yoga-guide .yg-photo-caption span,.gl-card-meta,.gl-intro>p,.gl-section-head p){color:var(--gold)}
html[data-theme=dark] .yoga-guide .yg-result-links a{background:var(--surface-soft);color:var(--ink)}
html[data-theme=dark] .yoga-guide .yg-comparison .yg-section-heading>p{color:#cbd8cb}
html[data-theme=dark] :is(.dg-btn-light,.yoga-guide .yg-button-cream){background:#dfd6b9;color:#18372c}

/* Sticky contents and the map are themed independently from their imagery. */
html[data-theme=dark] .page-contents{background:#10251ff0}
html[data-theme=dark] :is(.page-contents .contents-shell,.page-contents[data-enhanced] .contents-links){background:var(--surface);border-color:var(--theme-border);scrollbar-color:#56745d transparent}
html[data-theme=dark] :is(.contents-heading,.page-contents .contents-links a,.page-contents[data-enhanced] .contents-toggle){color:var(--ink-2)}
html[data-theme=dark] .page-contents .contents-links{border-color:var(--theme-border)}
html[data-theme=dark] :is(.page-contents .contents-links a:hover,.page-contents .contents-links a[aria-current=location]){background:var(--surface-soft);color:var(--ink)}
html[data-theme=dark] :is(.contents-toggle-label,.contents-toggle svg,.contents-heading svg){color:var(--gold)}
html[data-theme=dark] :is(.directory-map-panel,.map-detail,.map-fullscreen-dialog,.leaflet-tooltip){background:var(--surface);border-color:var(--theme-border);color:var(--ink)}
html[data-theme=dark] :is(.map-panel-top,.map-status){background:var(--cream);border-color:var(--theme-border);color:var(--ink-2)}
html[data-theme=dark] :is(.map-toolbar,.map-panel-top .kicker,.map-view-button,.map-tooltip,.map-preview-copy .map-location-label){color:var(--ink)}
html[data-theme=dark] .map-view-switch{background:var(--surface);border-color:var(--theme-border)}
html[data-theme=dark] .map-view-button[aria-pressed=true]{background:#3a674e;color:white}
html[data-theme=dark] :is(.map-search-area,.map-detail-close,.provider-map .leaflet-control-zoom a){background:var(--surface);color:var(--ink);border-color:var(--theme-border)}
html[data-theme=dark] :is(.map-preview-copy .map-location-kind,.map-preview-copy .map-coordinate-note){color:var(--ink-2)}
html[data-theme=dark] .map-preview-copy .map-tags{color:var(--gold)}
html[data-theme=dark] .provider-map{background:#1c3436}
html[data-theme=dark] .tribe-map-tiles{filter:invert(1) hue-rotate(175deg) saturate(.45) brightness(.95) contrast(.9)}
html[data-theme=dark] .tribe-map-pin.is-cluster{box-shadow:0 0 0 5px #152d2580,0 4px 14px #0006}
html[data-theme=dark] .provider-map .leaflet-control-attribution{background:#19332aed;color:var(--ink-2)}
html[data-theme=dark] .provider-map .leaflet-control-attribution a{color:var(--ink)}
html[data-theme=dark] .leaflet-tooltip-top:before{border-top-color:var(--surface)}

@media(max-width:980px){.brand-header{margin-right:auto}.theme-toggle{order:2}.menu-button{order:3;flex-shrink:0}.primary-nav{order:4}.site-header .brand-header .brand-wordmark img{max-width:calc(100vw - 164px)}.nav-wrap{gap:10px}}
@media(max-width:420px){.site-header .brand-header .brand-wordmark img{width:190px;max-width:calc(100vw - 150px)}.theme-toggle{width:40px;height:40px;flex-basis:40px}.nav-wrap{gap:7px}}
@media print{.theme-toggle,.theme-settings{display:none!important}html[data-theme=dark]{--paper:white;--cream:#f6f3ea;--ink:#17352f;--ink-2:#34534b;--gold:#876430;--surface:white;--surface-soft:#f0f3e9;color-scheme:light}}

/* Small guide labels and monograms need their own foreground contrast. */
html[data-theme=dark] .profile-initials{color:#876430}
html[data-theme=dark] :is(.yoga-guide .yg-style-category,.yoga-guide .yg-style-info b){color:var(--ink-2)}
html[data-theme=dark] :is(.yoga-guide .yg-choice-list button span,.yoga-guide .yg-insight-lead>span,.yoga-guide .yg-safety>span,.yoga-guide .yg-local-list a>span:last-child,.yoga-guide .yg-lineage-names b,.yoga-guide .yg-filters button>span,.yoga-guide .yg-glossary summary b,.yoga-guide .yg-faqs summary span){color:var(--gold)}

html[data-theme=dark] :is(.yoga-guide .yg-choice-list button[aria-pressed=true] span,.yoga-guide .yg-filters button.is-active>span){color:#fff}
