/* Anej + Teja v1.76: SINGLE night-mode stylesheet.
   Dark mode may change color / border / shadow only: NEVER grid, layout, positioning,
   dimensions, opacity or cover background overlays. The daytime UI is the layout source of truth. */

/* Tokens: do not override Gutenberg's semantic "white" swatch globally. */
html[data-at-theme="dark"] {
  color-scheme:dark;
  --at-paper:#101b20;--at-bg:#101b20;--at-ink:#edf5f6;--at-text:#edf5f6;
  --at-surface:#1b2b31;--at-soft:#20383f;--at-sand:#20383f;
  --at-accent:#84dce0;--at-accent-dark:#b9eff0;
  --at-night-bg:#101b20;--at-night-card:#1b2b31;--at-night-elev:#20343b;
  --at-night-text:#edf5f6;--at-night-muted:#bdcfd2;
  --at-night-link:#95e3e4;--at-night-border:#45616a;
}
/* Page-level surfaces (no generic group selectors, no .wp-block-cover or image wrappers). */
html[data-at-theme="dark"] body,
html[data-at-theme="dark"] body .wp-site-blocks,
html[data-at-theme="dark"] body :is(main.at-new-homepage,main.at-post-layout,main.at-destinations-page,main.at-magazine-category,main.at-standard-page),
html[data-at-theme="dark"] body :is(.at-v12-section,.at-v12-map-section,.at-v12-about,.at-featured-stories-section,.at-v12-intro,.at-v14-discover,.at-section,.at-explorer){
 background-color:var(--at-night-bg)!important;color:var(--at-night-text);
}
html[data-at-theme="dark"] body :is(.at-v12-intro,.at-v12-section,.at-featured-stories-section,.at-v12-map-section,.at-v12-about,.at-magazine-category,.at-destinations-page,.at-post-layout) :is(h1,h2,h3,h4,h5,h6,.wp-block-heading){color:var(--at-night-text)!important}
html[data-at-theme="dark"] body :is(.at-new-homepage,.at-magazine-category,.at-destinations-page,.at-post-layout) :is(p,li,.wp-block-post-excerpt,.wp-block-post-date){color:var(--at-night-muted)}
html[data-at-theme="dark"] body :is(.at-eyebrow,.at-explorer-kicker,.at-featured-story-category,.at-latest-story-category,.atps-section-label,.at-sidebar-heading){color:var(--at-night-link)!important}
/* Cards and bounded content surfaces (never blanket .wp-block-group or all columns). */
html[data-at-theme="dark"] body :is(.at-card,.at-featured-story-card,.at-destination-tile,.at-destination-card,.at-related-card,.at-related-story-card,.at-category-featured-card,.at-category-post-card,.atps-premium,.atps-widget,.at-post-sidebar,.at-sidebar-widget,.at-feature-copy,.at-explorer-toolbar,.at-explorer-empty,.at-share-rail,.at-share-rail__restore,.at-quick-links,.at-tip-box,.at-article-tip,.atinfo-strip){
 background-color:var(--at-night-card)!important;
 color:var(--at-night-text)!important;
 border-color:var(--at-night-border)!important;
}
/* Important: preserve transparent media wrappers and full-size images. */
html[data-at-theme="dark"] body :is(.at-card,.at-featured-story-card,.at-destination-tile) :is(.wp-block-post-featured-image,figure,img,.at-destination-card-media){background-color:transparent!important}
html[data-at-theme="dark"] body :is(.at-card,.at-featured-story-card,.at-destination-tile,.at-related-card,.at-category-post-card) :is(h2,h3,h4,.wp-block-post-title,.at-featured-story-title){color:var(--at-night-text)!important}
html[data-at-theme="dark"] body :is(.at-card,.at-featured-story-card,.at-destination-tile,.at-related-card,.at-category-post-card) :is(p,.wp-block-post-excerpt,.wp-block-post-excerpt__excerpt,.at-featured-story-excerpt,.wp-block-post-date){color:var(--at-night-muted)!important}
html[data-at-theme="dark"] body :is(.at-card,.at-featured-story-card,.at-destination-tile,.at-related-card,.at-category-post-card) a:not(.wp-block-button__link){color:var(--at-night-link)!important}
html[data-at-theme="dark"] body :is(.wp-block-post-content,.at-post-main,.at-article-shell) :is(p,li,h1,h2,h3,h4,h5,h6){color:var(--at-night-text)!important}
html[data-at-theme="dark"] body :is(.wp-block-post-content,.at-post-sidebar-column,.atps-premium) a:not(.wp-block-button__link){color:var(--at-night-link)!important}
html[data-at-theme="dark"] body .wp-block-post-content a:hover{color:#d6faf5!important}
/* Homepage: preserve hero geometry and its original photographic gradient. */
html[data-at-theme="dark"] body.home .at-home-v14 .at-posts-slider :is(.at-posts-slider-viewport,.at-posts-slide,.at-posts-slide-media,.at-posts-slide-copy){
 background-color:transparent!important;
}
html[data-at-theme="dark"] body.home .at-home-v14 .at-posts-slider :is(.at-posts-slide-copy h1,.at-posts-slide-copy h2,.at-posts-slide-copy h3,.at-posts-slide-copy h3 a,.at-posts-slide-copy p,.at-posts-slide-copy .at-posts-slide-excerpt,.at-posts-slider-eyebrow){color:#fff!important}
html[data-at-theme="dark"] body.home .at-home-v14 .at-posts-slide-copy :is(.at-posts-slide-date,.at-posts-slide-number){color:#d6f4f1!important}
html[data-at-theme="dark"] body.home .at-home-v14 .at-posts-slide-read{background-color:#087c84!important;color:#fff!important}
html[data-at-theme="dark"] body.home .at-home-v14 .at-v14-discover-row > .wp-block-column{background:transparent!important;border-color:var(--at-night-border)!important}
html[data-at-theme="dark"] body.home .at-home-v14 .at-v14-discover-row :is(a,strong){color:var(--at-night-text)!important}
html[data-at-theme="dark"] body.home .at-home-v14 .at-v14-discover-row span{color:var(--at-night-muted)!important}
html[data-at-theme="dark"] body.home .at-home-v14 :is(.at-latest-intro,.at-featured-intro,.at-home-map-subline){color:var(--at-night-muted)!important}
/* Individual post and category covers: never recolor the image/overlay or title layer. */
html[data-at-theme="dark"] body :is(.wp-block-cover,.at-magazine-cover,.at-category-cover,.at-hero,.at-story-fullbleed,.at-posts-slide-media){filter:none!important}
html[data-at-theme="dark"] body :is(.at-magazine-cover,.at-category-cover,.at-hero,.wp-block-cover) :is(.wp-block-cover__inner-container,.at-magazine-cover-content){background:transparent!important}
html[data-at-theme="dark"] body :is(.at-magazine-cover,.at-category-cover,.at-hero,.wp-block-cover) :is(.at-magazine-title,.at-magazine-category,.at-post-cover-meta,h1,h2,h3){color:#fff!important}
html[data-at-theme="dark"] body.single-post .at-story-fullbleed .at-post-cover-meta :is(a,strong,span){color:#fff!important}
/* Sidebar, article extras and plug-in components. */
html[data-at-theme="dark"] body :is(.atps-mini-about h2,.atps-mini-name,.atps-mini-item,.atps-mini-about-copy,.atps-mini-about-copy p){color:var(--at-night-text)!important}
html[data-at-theme="dark"] body :is(.atps-mini-heading,.atps-mini-map,.atps-mini-link){color:var(--at-night-link)!important}
html[data-at-theme="dark"] body .atps-category-link{background:#263e46!important;color:var(--at-night-link)!important;border-color:var(--at-night-border)!important}
html[data-at-theme="dark"] body .atq-toc details{background:var(--at-night-card)!important;color:var(--at-night-text)!important;border-color:var(--at-night-border)!important}
html[data-at-theme="dark"] body .atq-toc :is(summary,.atq-toc__hint){color:var(--at-night-text)!important}
html[data-at-theme="dark"] body .atq-toc :is(a,.atq-toc__extra > summary){color:var(--at-night-link)!important}
html[data-at-theme="dark"] body .atq-toc .atq-toc__extra{background:transparent!important}
html[data-at-theme="dark"] body .atinfo-strip :is(.atinfo-item strong,.atinfo-label){color:var(--at-night-text)!important}
html[data-at-theme="dark"] body .atinfo-strip .atinfo-icon{color:var(--at-night-link)!important}
html[data-at-theme="dark"] body :is(.at-tip-box,.at-article-tip,.wp-block-post-content blockquote,.wp-block-post-content .wp-block-quote){background:var(--at-night-elev)!important;color:var(--at-night-text)!important;border-color:var(--at-night-link)!important}
html[data-at-theme="dark"] body :is(.wp-block-post-content blockquote p,.wp-block-post-content blockquote cite){color:var(--at-night-text)!important}
html[data-at-theme="dark"] body :is(.wp-block-table table,.wp-block-table td,.wp-block-table th){background:var(--at-night-card)!important;color:var(--at-night-text)!important;border-color:var(--at-night-border)!important}
/* Controls and filter states, not map art. */
html[data-at-theme="dark"] body :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select,.wp-block-search__input,.at-explorer-filter,.at-grcija__controls button,.at-share-rail__button,.at-share-rail__close){background-color:#263e46!important;color:var(--at-night-text)!important;border-color:#55757c!important}
html[data-at-theme="dark"] body :is(input,textarea)::placeholder{color:#b9d0d3!important;opacity:1}
html[data-at-theme="dark"] body :is(.at-explorer-filter[aria-pressed="true"],.at-grcija__controls button[aria-pressed="true"]){background-color:#217880!important;color:#fff!important}
html[data-at-theme="dark"] body :is(.at-share-rail__label,.at-share-rail__zoom-value,.at-share-rail__night-label){color:#c1f0f0!important}
html[data-at-theme="dark"] body .at-share-rail__feedback{background-color:var(--at-night-card)!important;color:var(--at-night-text)!important}
html[data-at-theme="dark"] body :is(.at-grcija__name,.at-explorer-note){background-color:var(--at-night-elev)!important;color:var(--at-night-text)!important;border-color:var(--at-night-border)!important}
html[data-at-theme="dark"] body :is(.at-explorer-lead,.at-explorer-note,.at-explorer-count,.at-grcija__map-note){color:var(--at-night-muted)!important}
/* Footer is dark; header is handled by always-white header-cover-v174.css. */
html[data-at-theme="dark"] body :is(.at-footer,.at-footer.wp-block-group){background-color:#172930!important;color:var(--at-night-text)!important;border-color:var(--at-night-border)!important}
html[data-at-theme="dark"] body .at-footer :is(p,li,a){color:var(--at-night-text)!important}
html[data-at-theme="dark"] body :is(a,button,input,select,textarea):focus-visible{outline:2px solid #9ae5e7!important;outline-offset:3px}
/* Toolbar theme button icon and separators (previously in old dark CSS). */
.at-share-rail__mode-divider{width:25px;height:1px;background:#c8e0dd;margin:3px auto}
.at-share-rail__night svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.at-share-rail__night-label{font-size:9px;line-height:1.2;text-align:center;max-width:48px;color:var(--at-share-ink,#07515a)}
.at-share-rail__night:focus-visible{outline:3px solid var(--at-accent,#087c84);outline-offset:3px}
@media(max-width:767px){.at-share-rail__mode-divider{height:24px;width:1px;margin:0 2px;flex:0 0 1px}.at-share-rail__night-label{font-size:9px;max-width:40px}.at-share-rail__night{min-width:34px;flex-basis:34px}}
@media(max-width:440px){.at-share-rail__night-label{display:none}}
@media(prefers-reduced-motion:reduce){.at-share-rail__night{transition:none}}
