/* Anej + Teja v1.79 — Category-only dark palette, aligned with /destinacije/.
 * Deliberately changes paint (color/background/border/shadow) but NOT widths,
 * layout, image opacity, image filters, cover gradient, or map geometry.
 */
html[data-at-theme="dark"] body.category {
  --atce-night-bg: var(--at-night-bg,#101b20);
  --atce-night-card: var(--at-night-card,#1b2b31);
  --atce-night-elev: var(--at-night-elev,#20343b);
  --atce-night-text: var(--at-night-text,#edf5f6);
  --atce-night-muted: var(--at-night-muted,#bdcfd2);
  --atce-night-accent: var(--at-night-link,#95e3e4);
  --atce-night-border: var(--at-night-border,#45616a);
  --at-card-border: var(--atce-night-border);
  --at-card-ink: var(--atce-night-text);
}
/* The magazine's own wrapper was left with a fixed dark-green text color. */
html[data-at-theme="dark"] body.category :is(main:has(.atce-magazine),.atce-magazine,.atce-featured,.atce-map,.atce-list-heading) {
  color:var(--atce-night-text)!important;
  border-color:var(--atce-night-border)!important;
}
html[data-at-theme="dark"] body.category :is(.atce-section-heading h2,.atce-list-heading h2,.atce-featured-copy h3) {
  color:var(--atce-night-text)!important;
}
html[data-at-theme="dark"] body.category :is(.atce-section-heading>span,.atce-kicker,.atce-read) {
  color:var(--atce-night-accent)!important;
}
/* Featured card has hard-coded #fff!important in unified-story-cards.css. */
html[data-at-theme="dark"] body.category .atce-featured-card {
  background:var(--atce-night-card)!important;
  color:var(--atce-night-text)!important;
  border-color:var(--atce-night-border)!important;
  box-shadow:0 5px 22px rgba(0,0,0,.15)!important;
}
html[data-at-theme="dark"] body.category .atce-featured-card:hover {
  border-color:var(--atce-night-accent)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.24)!important;
}
html[data-at-theme="dark"] body.category .atce-featured-copy {
  color:var(--atce-night-text)!important;
  background-color:transparent!important;
}
html[data-at-theme="dark"] body.category .atce-featured-copy :is(h3,h3 a,strong) {
  color:var(--atce-night-text)!important;
}
html[data-at-theme="dark"] body.category .atce-featured-copy p {
  color:var(--atce-night-muted)!important;
}
html[data-at-theme="dark"] body.category .atce-featured-copy .atce-read {
  color:var(--atce-night-accent)!important;
}
/* Archive cards use Gutenberg groups, not the destination tile markup. */
html[data-at-theme="dark"] body.category .wp-block-query .wp-block-post-template > li > .wp-block-group,
html[data-at-theme="dark"] body.category .wp-block-query .wp-block-post-template > li .at-card {
  background:var(--atce-night-card)!important;
  color:var(--atce-night-text)!important;
  border-color:var(--atce-night-border)!important;
  box-shadow:0 5px 20px rgba(0,0,0,.15)!important;
}
html[data-at-theme="dark"] body.category .wp-block-query .wp-block-post-template > li > .wp-block-group:hover {
  border-color:var(--atce-night-accent)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.24)!important;
}
html[data-at-theme="dark"] body.category .wp-block-query .wp-block-post-template :is(.wp-block-post-title,.wp-block-post-title a,.at-card h3,.at-card h3 a) {
  color:var(--atce-night-text)!important;
}
html[data-at-theme="dark"] body.category .wp-block-query .wp-block-post-template :is(.wp-block-post-excerpt,.wp-block-post-excerpt__excerpt,.wp-block-post-date,.at-card p) {
  color:var(--atce-night-muted)!important;
}
html[data-at-theme="dark"] body.category .wp-block-query .wp-block-post-template a:hover,
html[data-at-theme="dark"] body.category .wp-block-query-pagination a {
  color:var(--atce-night-accent)!important;
}
html[data-at-theme="dark"] body.category .wp-block-query-pagination :is(.current,.page-numbers,.wp-block-query-pagination-numbers) {
  color:var(--atce-night-text)!important;
}
/* Preserve the natural photographic cover and existing white-on-photo content. */
html[data-at-theme="dark"] body.category .atce-hero :is(h1,h1 a,.atce-hero-intro,.atce-hero-link) {
  color:#ffffff!important;
}
html[data-at-theme="dark"] body.category .atce-hero .atce-eyebrow {
  color:#d2f2f0!important;
}
/* Map panel/filters match the dark destination explorer; do not recolor map art. */
html[data-at-theme="dark"] body.category :is(.atce-map .at-explorer-toolbar,.atce-map .at-explorer-note,.atce-map .at-destination-tile,.atce-map .at-explorer-empty) {
  background-color:var(--atce-night-card)!important;
  color:var(--atce-night-text)!important;
  border-color:var(--atce-night-border)!important;
}
html[data-at-theme="dark"] body.category .atce-map :is(.at-explorer-filter,.at-grcija__controls button,select,input) {
  background-color:#263e46!important;
  color:var(--atce-night-text)!important;
  border-color:#55757c!important;
}
html[data-at-theme="dark"] body.category .atce-map :is(.at-explorer-filter[aria-pressed="true"],.at-grcija__controls button[aria-pressed="true"]) {
  background-color:#217880!important;color:#ffffff!important;
}
html[data-at-theme="dark"] body.category .atce-map :is(.at-destination-tile h3,.at-destination-tile h3 a) {
  color:var(--atce-night-text)!important;
}
html[data-at-theme="dark"] body.category .atce-map :is(.at-destination-tile p,.at-explorer-count,.at-explorer-lead,.at-grcija__map-note) {
  color:var(--atce-night-muted)!important;
}
html[data-at-theme="dark"] body.category .atce-map :is(.at-destination-open,.at-destination-tile small) {
  color:var(--atce-night-accent)!important;
}
/* Don't add a dark wash to photographs or the embedded geographic SVG. */
html[data-at-theme="dark"] body.category :is(.atce-featured-image img,.wp-block-post-featured-image img,.atce-map svg,.atce-map img) {
  filter:none!important;
}
/* Visible focus in both color modes; no geometric change. */
html[data-at-theme="dark"] body.category :is(.atce-featured-card,.wp-block-post-title a,.atce-map button):focus-visible {
  outline:2px solid var(--atce-night-accent)!important;
  outline-offset:3px;
}
