/* AMRA NEWS | additive dark skin. Does not change existing light design.
   Adjust selectors after checking actual theme HTML in browser DevTools.
   Avoid CSS filter:invert() on the entire page: it damages photos, logos, videos and ads. */
html[data-amra-theme="dark"] {
  --amra-bg: #101318;
  --amra-surface: #191e26;
  --amra-surface-alt: #222934;
  --amra-text: #eef1f6;
  --amra-muted: #aab2be;
  --amra-line: #343d4b;
  --amra-accent: #ed4354; /* Replace with site's verified brand-red if different */
  color-scheme: dark;
}
html[data-amra-theme="dark"] body,
html[data-amra-theme="dark"] #page,
html[data-amra-theme="dark"] .site,
html[data-amra-theme="dark"] .site-content,
html[data-amra-theme="dark"] #content,
html[data-amra-theme="dark"] main,
html[data-amra-theme="dark"] .content-area,
html[data-amra-theme="dark"] .site-main,
html[data-amra-theme="dark"] .container-fluid {
  background-color: var(--amra-bg);
  color: var(--amra-text);
}
/* Header, desktop/mobile menus, ticker and footer */
html[data-amra-theme="dark"] :is(header.site-header, #masthead, .site-header, .main-header, .header-main, .header-inner, .sticky-header, .mobile-header, .offcanvas-menu, .mobile-menu, .search-popup, .search-modal, .navbar, .main-navigation, .primary-navigation, .top-bar, .top-header, .breaking-news, .news-ticker, .ticker-wrap, .ticker, footer.site-footer, #colophon, .site-footer, .footer-widgets, .footer-bottom) {
  background-color: var(--amra-surface);
  color: var(--amra-text);
  border-color: var(--amra-line);
}
/* Widgets and cards (not every div: avoid covering slider photos) */
html[data-amra-theme="dark"] :is(.widget, .sidebar .widget, .sidebar-widget, .post-card, .news-card, .article-card, .card, .editor-picks, .editors-picks, .featured-news, .section-box, .author-box, .related-posts, .related-articles, .comments-area, .comment-body, .pagination, .page-numbers, .breadcrumb, .breadcrumbs, .dropdown-menu) {
  background-color: var(--amra-surface);
  color: var(--amra-text);
  border-color: var(--amra-line);
}
/* Post body and titles */
html[data-amra-theme="dark"] :is(.entry-title, .post-title, .news-title, .section-title, .widget-title, .entry-header, .entry-content, .post-content, .article-content, .single-content, .post-excerpt, .entry-summary, .site-title, .site-description, .widget, .main-navigation, .menu, .menu-item, .breadcrumb, .breadcrumbs) {
  color: var(--amra-text);
}
html[data-amra-theme="dark"] :is(.entry-content, .post-content, .article-content, .single-content, .widget, .site-main, .site-footer) :is(p, li, h1, h2, h3, h4, h5, h6, strong, b) {
  color: var(--amra-text);
}
html[data-amra-theme="dark"] :is(.post-meta, .entry-meta, .article-meta, .post-date, .published, .author-name, .text-muted, .caption, figcaption, .wp-caption-text, small, .breadcrumbs) {
  color: var(--amra-muted);
}
html[data-amra-theme="dark"] :is(.entry-content, .post-content, .article-content, .single-content, .widget) a {color:#ff7785;}
html[data-amra-theme="dark"] :is(.main-navigation, .primary-navigation, .menu, .site-header, .site-footer, .post-card, .news-card, .article-card, .widget) a { color: var(--amra-text); }
html[data-amra-theme="dark"] a:hover { color: var(--amra-accent); }
html[data-amra-theme="dark"] :is(hr, .section-header, .widget-title, .post-item, .news-item, .article-item, .comment, .pagination, .page-numbers, table, th, td) { border-color: var(--amra-line); }
html[data-amra-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select, .search-field, .search-input) {
  color: var(--amra-text); background-color: var(--amra-surface-alt); border:1px solid var(--amra-line);
}
html[data-amra-theme="dark"] input::placeholder,
html[data-amra-theme="dark"] textarea::placeholder { color: var(--amra-muted); }
html[data-amra-theme="dark"] :is(blockquote, pre, code, .wp-block-quote, .wp-block-code, .wp-block-table, .wp-block-group.has-background) {
  background-color: var(--amra-surface-alt); color: var(--amra-text); border-color: var(--amra-line);
}
html[data-amra-theme="dark"] :is(table, .wp-block-table table) {background-color:var(--amra-surface);color:var(--amra-text);}
html[data-amra-theme="dark"] :is(tr:nth-child(even), thead) {background-color:var(--amra-surface-alt);}
/* WordPress blocks and optional theme utility classes */
html[data-amra-theme="dark"] :is(.wp-block-search, .wp-block-latest-posts, .wp-block-categories, .wp-block-archives, .wp-block-navigation__responsive-container.is-menu-open) {
 background-color:var(--amra-surface);color:var(--amra-text);
}
html[data-amra-theme="dark"] :is(.bg-white, .background-white, .white-bg) {background-color:var(--amra-surface) !important;}
html[data-amra-theme="dark"] :is(.text-dark, .text-black, .black-text) {color:var(--amra-text) !important;}
/* preserve image/video/ad content; darken only surrounding UI */
html[data-amra-theme="dark"] :is(img, picture, video, iframe, .advertisement, .ad-slot, .adsbygoogle) {filter:none;}
/* Keep white transparent logos readable: supply a separate dark logo if necessary. */
html[data-amra-theme="dark"] :focus-visible { outline:2px solid var(--amra-accent); outline-offset:3px; }

/* Shared toggle styles: works in both light and dark */
.amra-theme-control {position:relative; display:inline-flex; align-items:center; gap:8px; font-family:inherit; font-size:13px; z-index:10000;}
.amra-theme-toggle {display:inline-flex;align-items:center;gap:7px;border:1px solid #b9c0c9;border-radius:24px;background:#fff;color:#252a33;padding:9px 13px;font:inherit;cursor:pointer;line-height:1.3;}
.amra-theme-toggle:hover {border-color:#b81e2b;}
.amra-theme-floating {position:fixed;bottom:20px;left:20px;z-index:10000;}
html[data-amra-theme="dark"] .amra-theme-toggle {background:var(--amra-surface);color:var(--amra-text);border-color:var(--amra-line);}
@media(max-width:767px){.amra-theme-floating {left:12px;bottom:14px;}.amra-theme-toggle{padding:8px 10px;font-size:12px;}}
@media(prefers-reduced-motion:no-preference){html[data-amra-theme="dark"] body, .amra-theme-toggle {transition:background-color .18s ease,color .18s ease,border-color .18s ease;}}

/* 1.1.0: WordPress/theme background overrides */
html[data-amra-theme="dark"] body { background:#101318 !important; color:#eef1f6; }
html[data-amra-theme="dark"] :is(#page,#content,.site,.site-content,.site-main,main,.content-area,.container,.container-fluid,.wrapper,.main-wrapper,.page-wrapper,.site-wrapper) { background-color:#101318; color:#eef1f6; }
html[data-amra-theme="dark"] :is(article,.post,.hentry,.widget-area,.sidebar,.section-content,.news-section,.category-section) { color:#eef1f6; border-color:#343d4b; }
html[data-amra-theme="dark"] :is(h1,h2,h3,h4,h5,h6,.entry-title,.post-title,.section-title) { color:#eef1f6; }

/* === Amra News 1.2.1 | css identifier: 1.2.1-css-20261112-03 === */
/* Single icon only: moon shown in light mode; sun shown in dark mode. */
.amra-theme-control { display:inline-flex; align-items:center; z-index:10000; }
.amra-theme-control .amra-theme-toggle { width:40px; height:40px; min-width:40px; min-height:40px; padding:0; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; gap:0; line-height:1; background:transparent; color:inherit; border:1px solid currentColor; cursor:pointer; box-shadow:none; }
.amra-theme-toggle svg { display:block; width:21px; height:21px; pointer-events:none; }
html:not([data-amra-theme="dark"]) .amra-theme-toggle .amra-icon-sun {display:none;}
html[data-amra-theme="dark"] .amra-theme-toggle .amra-icon-moon {display:none;}
html[data-amra-theme="dark"] .amra-theme-toggle .amra-icon-sun {display:block;}
html:not([data-amra-theme="dark"]) .amra-theme-toggle .amra-icon-moon {display:block;}
html[data-amra-theme="dark"] .amra-theme-control .amra-theme-toggle { background:transparent; color:var(--amra-text); border-color:var(--amra-line); }
.amra-theme-control .amra-theme-toggle:focus-visible {outline:2px solid #ed4354;outline-offset:3px;}
@media(max-width:767px){.amra-theme-control .amra-theme-toggle{width:38px;height:38px;min-width:38px;min-height:38px;padding:0;}}

/* icon-only toggle; never expose legacy dropdown */
.amra-theme-control .amra-theme-menu, .amra-theme-control .amra-theme-label {display:none!important;}

/* Amra 1.2.2: exactly ONE icon rendered inside each button by JavaScript. */
.amra-theme-control .amra-theme-toggle svg {display:block!important;flex:0 0 auto;}
.amra-theme-control .amra-theme-toggle {font-size:0!important;}


/* ==============================================================
   Amra News 1.2.3 — contrast repair from supplied screenshots
   Scope ONLY dark theme. Do not alter media, overlays, ad content.
   ============================================================== */
html[data-amra-theme="dark"] {
  --amra-bg: #101318;
  --amra-surface: #191e26;
  --amra-surface-alt: #222934;
  --amra-text: #eef1f6;
  --amra-muted: #b4bdca;
  --amra-line: #343d4b;
}
/* Navigation had dark text on nearly black background. */
html[data-amra-theme="dark"] :is(nav, .navbar, .main-navigation, .primary-navigation, .header-menu, .main-menu, .nav-menu, .menu-container, .navbar-nav, .top-nav, .mobile-nav) :is(a, .nav-link, .menu-link, .menu-item, span) {
  color:#eef1f6 !important;
  opacity:1 !important;
  -webkit-text-fill-color:#eef1f6;
}
html[data-amra-theme="dark"] :is(nav, .navbar, .main-navigation, .primary-navigation, .header-menu, .main-menu, .nav-menu) a:hover,
html[data-amra-theme="dark"] :is(nav, .navbar, .main-navigation, .primary-navigation, .header-menu, .main-menu, .nav-menu) .current-menu-item > a {
  color:#ff6a78 !important;
  -webkit-text-fill-color:#ff6a78;
}
/* Individual tiles: images stay natural, but white text panels become dark. */
html[data-amra-theme="dark"] :is(.card, .news-card, .post-card, .article-card, .story-card, .news-item, .post-item, .article-item, .news-box, .post-box, .feature-card, .featured-card, .list-card, .category-card) {
  background-color:var(--amra-surface) !important;
  border-color:var(--amra-line) !important;
  color:var(--amra-text) !important;
}
html[data-amra-theme="dark"] :is(.card-body, .card-footer, .card-content, .card-text, .news-card-body, .news-card-content, .post-card-body, .post-content-wrap, .post-info, .news-info, .news-content, .article-info, .article-card-content, .story-content, .item-content, .item-details, .post-details, .news-details, .title-wrapper, .caption-wrapper) {
  background-color:var(--amra-surface) !important;
  color:var(--amra-text) !important;
}
html[data-amra-theme="dark"] :is(.card, .news-card, .post-card, .article-card, .story-card, .news-item, .post-item, .article-item, .news-box, .post-box, .feature-card, .featured-card, .list-card, .category-card) :is(h2,h3,h4,h5,h6,a,.title,.post-title,.news-title,.entry-title,.card-title) {
  color:var(--amra-text) !important;
  -webkit-text-fill-color:var(--amra-text);
  opacity:1 !important;
}
/* Large homepage category modules including Parliament. */
html[data-amra-theme="dark"] :is(.news-section, .category-section, .section-box, .section-content, .section-wrapper, .category-wrapper, .news-wrapper, .category-block, .section-panel, .news-panel, .parliament-section, .parliament-news, .parliament-block, .parliament-wrapper, .home-section, .homepage-section, .content-section) {
  background-color:var(--amra-surface) !important;
  color:var(--amra-text) !important;
  border-color:var(--amra-line) !important;
}
html[data-amra-theme="dark"] :is(.news-section, .category-section, .section-box, .section-content, .section-wrapper, .category-wrapper, .news-wrapper, .category-block, .section-panel, .news-panel, .parliament-section, .parliament-news, .parliament-block, .parliament-wrapper, .home-section, .homepage-section, .content-section) :is(h2,h3,h4,h5,h6,.section-title,.news-title,.post-title,a:not(.btn)) {
  color:var(--amra-text) !important;
  -webkit-text-fill-color:var(--amra-text);
  opacity:1 !important;
}
/* Bootstrap background/text utilities common in WordPress news themes. */
html[data-amra-theme="dark"] :is(.bg-light,.bg-white,.bg-body,.bg-body-tertiary,.bg-gray,.bg-grey,.background-light,.light-bg,.has-white-background-color,.has-background) {
  background-color:var(--amra-surface) !important;
}
html[data-amra-theme="dark"] :is(.text-white,.text-light,.text-dark,.text-black,.has-white-color,.has-black-color) {
  color:var(--amra-text) !important;
  -webkit-text-fill-color:var(--amra-text);
}
/* Keep text contrast in standalone headings, lists, footer and articles. */
html[data-amra-theme="dark"] :is(.entry-content,.article-content,.post-content,.single-content,.widget-area,.sidebar,.site-footer) :is(h1,h2,h3,h4,h5,h6,p,li,a,span) {
  color:inherit;
}
/* Do not paint image-based hero captions, slider overlays, video, or advertisements. */
html[data-amra-theme="dark"] :is(.hero-overlay,.image-overlay,.slide-overlay,.thumbnail-overlay,.featured-image,.post-thumbnail,.article-thumbnail,.video-container,.advertisement,.ad-slot,.adsbygoogle) {
  background-color:transparent;
}
html[data-amra-theme="dark"] :is(.hero-overlay,.image-overlay,.slide-overlay,.thumbnail-overlay) :is(h1,h2,h3,h4,a) {
  color:#fff !important;
  -webkit-text-fill-color:#fff;
}
/* Icon button stays a single icon; avoid inherited text tint */
html[data-amra-theme="dark"] .amra-theme-control .amra-theme-toggle { color:#f5d57d !important; -webkit-text-fill-color:currentColor; }
html[data-amra-theme="light"] .amra-theme-control .amra-theme-toggle { color:#252a33 !important; -webkit-text-fill-color:currentColor; }
