/* Anej + Teja v1.80: home-only contrast corrections.
   Loaded AFTER home-editorial and color-modes. Never change grid, spacing,
   image/background overlays, opacity, transforms or layout. */
html[data-at-theme="dark"] body.home .at-home-v14{
  --at-home-night-bg:#101b20;
  --at-home-night-card:#1b2b31;
  --at-home-night-text:#edf5f6;
  --at-home-night-muted:#c7d9dc;
  --at-home-night-accent:#95e3e4;
  --at-home-night-border:#45616a;
  background-color:var(--at-home-night-bg)!important;
  color:var(--at-home-night-text)!important;
}
/* Section surfaces. Specifically undo light backgrounds fixed by the home styles. */
html[data-at-theme="dark"] body.home .at-home-v14 :is(.at-v12-intro,.at-v12-map-section,.at-v12-about,.at-featured-stories-section,.at-v14-discover),
html[data-at-theme="dark"] body.home .at-home-v14 .at-v12-section:has(.wp-block-query){
  background-color:var(--at-home-night-bg)!important;
  color:var(--at-home-night-text)!important;
}
/* All headings placed on unphotographed home sections. */
html[data-at-theme="dark"] body.home .at-home-v14 :is(.at-v12-intro,.at-v12-section,.at-v12-map-section,.at-featured-stories-section,.at-v12-about) :is(h1,h2,h3,h4,.wp-block-heading),
html[data-at-theme="dark"] body.home .at-home-v14 .at-v12-section:has(.wp-block-query) h2 {
  color:var(--at-home-night-text)!important;
}
html[data-at-theme="dark"] body.home .at-home-v14 :is(.at-v12-intro,.at-v12-section,.at-v12-map-section,.at-featured-stories-section,.at-v12-about) :is(p,.wp-block-paragraph,.wp-block-post-excerpt,.at-featured-intro,.at-latest-intro,.at-home-map-subline),
html[data-at-theme="dark"] body.home .at-home-v14 .at-v12-section .at-latest-intro {
  color:var(--at-home-night-muted)!important;
}
html[data-at-theme="dark"] body.home .at-home-v14 :is(.at-eyebrow,.at-featured-story-category,.at-latest-story-category,.at-explorer-kicker){color:var(--at-home-night-accent)!important}
/* Discover navigation: remove pale tiles and dark lettering. */
html[data-at-theme="dark"] body.home .at-home-v14 .at-v14-discover-row > .wp-block-column {
  background-color:transparent!important;
  border-color:var(--at-home-night-border)!important;
}
html[data-at-theme="dark"] body.home .at-home-v14 .at-v14-discover-row :is(a,a strong,p strong){color:var(--at-home-night-text)!important}
html[data-at-theme="dark"] body.home .at-home-v14 .at-v14-discover-row :is(span,small){color:var(--at-home-night-muted)!important}
html[data-at-theme="dark"] body.home .at-home-v14 .at-v14-discover-row a:hover{color:var(--at-home-night-accent)!important}
/* Latest cards had stronger daytime !important styles than the shared night stylesheet. */
html[data-at-theme="dark"] body.home .at-home-v14 .at-v12-section .wp-block-post-template .at-card,
html[data-at-theme="dark"] body.home .at-home-v14 .at-v12-section .wp-block-post-template .wp-block-group.at-card {
  background-color:var(--at-home-night-card)!important;
  color:var(--at-home-night-text)!important;
  border-color:var(--at-home-night-border)!important;
}
html[data-at-theme="dark"] body.home .at-home-v14 .at-v12-section .at-card :is(.wp-block-post-title,.wp-block-post-title a,h3,h3 a){color:var(--at-home-night-text)!important}
html[data-at-theme="dark"] body.home .at-home-v14 .at-v12-section .at-card :is(.wp-block-post-excerpt,.wp-block-post-excerpt__excerpt,.wp-block-post-date,p:not(.at-latest-story-category):not(.at-latest-story-link)){
  color:var(--at-home-night-muted)!important;
}
html[data-at-theme="dark"] body.home .at-home-v14 .at-v12-section .at-card :is(.at-latest-story-category,.at-latest-story-category a,.at-latest-story-link,.at-latest-story-link a){color:var(--at-home-night-accent)!important}
/* Editorially selected story cards have other selectors than latest cards. */
html[data-at-theme="dark"] body.home .at-home-v14 .at-featured-stories-section .at-featured-story-card{
  background-color:var(--at-home-night-card)!important;
  border-color:var(--at-home-night-border)!important;
  color:var(--at-home-night-text)!important;
}
html[data-at-theme="dark"] body.home .at-home-v14 .at-featured-stories-section .at-featured-story-card :is(.at-featured-story-title,.at-featured-story-title a,h3,h3 a){color:var(--at-home-night-text)!important}
html[data-at-theme="dark"] body.home .at-home-v14 .at-featured-stories-section .at-featured-story-card :is(.at-featured-story-excerpt,p:not(.at-featured-story-category):not(.at-featured-story-link)) {color:var(--at-home-night-muted)!important}
html[data-at-theme="dark"] body.home .at-home-v14 .at-featured-stories-section .at-featured-story-card :is(.at-featured-story-category,.at-featured-story-link,.at-featured-story-link a){color:var(--at-home-night-accent)!important}
/* Map heading, explanatory text and controls only: leave SVG/tiles/photos intact. */
html[data-at-theme="dark"] body.home .at-home-v14 .at-v12-map-section :is(.at-explorer-lead,.at-home-map-subline,.at-explorer-count,.at-grcija__map-note){color:var(--at-home-night-muted)!important}
html[data-at-theme="dark"] body.home .at-home-v14 .at-v12-map-section :is(.at-explorer-toolbar,.at-explorer-note,.at-grcija__name){background-color:var(--at-home-night-card)!important;color:var(--at-home-night-text)!important;border-color:var(--at-home-night-border)!important}
html[data-at-theme="dark"] body.home .at-home-v14 .at-v12-map-section :is(.at-explorer-filter,.at-grcija__controls button){background-color:#263e46!important;color:var(--at-home-night-text)!important;border-color:var(--at-home-night-border)!important}
html[data-at-theme="dark"] body.home .at-home-v14 .at-v12-map-section :is(.at-explorer-filter[aria-pressed="true"],.at-grcija__controls button[aria-pressed="true"]){background-color:#227781!important;color:#fff!important}
/* About section: restore intentionally white words on its PHOTOGRAPHIC highlight. */
html[data-at-theme="dark"] body.home .at-home-v14 .at-v12-about .at-v12-highlight :is(h2,h3,h4,p,strong,a){color:#fff!important}
html[data-at-theme="dark"] body.home .at-home-v14 .at-v12-about .at-v12-highlight .at-eyebrow{color:#b5ebe8!important}
/* Slider: regardless of the generic heading/paragraph rules, white must stay on image.
   Do not alter slider background images, pseudo-elements, position or opacity. */
html[data-at-theme="dark"] body.home .at-home-v14 .at-posts-slider :is(.at-posts-slide-copy,.at-posts-slide-copy h2,.at-posts-slide-copy h3,.at-posts-slide-copy h3 a,.at-posts-slide-copy p,.at-posts-slide-excerpt,.at-posts-slider-eyebrow){color:#fff!important}
html[data-at-theme="dark"] body.home .at-home-v14 .at-posts-slider :is(.at-posts-slide-date,.at-posts-slide-number){color:#e2f6f4!important}
/* Standard CTA has white letters even if nested in a dark section. */
html[data-at-theme="dark"] body.home .at-home-v14 :is(.wp-block-button__link,.at-posts-slide-read){background-color:#087c84!important;color:#fff!important}
html[data-at-theme="dark"] body.home .at-home-v14 :is(.wp-block-button__link,.at-posts-slide-read):hover{background-color:#05636d!important;color:#fff!important}
/* Explicit focus state for keyboard use. */
html[data-at-theme="dark"] body.home .at-home-v14 a:focus-visible{outline:2px solid #95e3e4!important;outline-offset:3px}
