/* =====================================================================
   Abu News: dark scheme (iOS-style dark: near-black, #1c1c1e cards, frosted dark glass)
   Everything is scoped to .retheme-dark-scheme.
   ===================================================================== */
.retheme-dark-scheme {
  --wp--preset--color--background: #000000;
  --wp--preset--color--foreground: #1c1c1e;
  --wp--preset--color--heading: #f5f5f7;
  --wp--preset--color--body: #d1d1d6;
  --wp--preset--color--meta: #8e8e93;
  --wp--preset--color--outline: rgba(255,255,255,.14);
  --wp--preset--font-family--heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --wp--preset--font-family--body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --ios-line: rgba(255,255,255,.14);
  --ios-shadow: 0 1px 2px rgba(0,0,0,.5), 0 12px 32px rgba(0,0,0,.45);
  background: #000; color: #d1d1d6; -webkit-font-smoothing: antialiased;
}
.retheme-dark-scheme, .retheme-dark-scheme button, .retheme-dark-scheme input, .retheme-dark-scheme select, .retheme-dark-scheme textarea { font-family: var(--wp--preset--font-family--body); }
.retheme-dark-scheme h1, .retheme-dark-scheme h2, .retheme-dark-scheme h3, .retheme-dark-scheme h4, .retheme-dark-scheme .rt-post__title, .retheme-dark-scheme .wp-block-post-title { font-family: var(--wp--preset--font-family--heading); font-weight: 700; letter-spacing: -.022em; line-height: 1.22; color: #f5f5f7; }
.retheme-dark-scheme a { color: #ff6b73; }
.retheme-dark-scheme .rt-post__title a, .retheme-dark-scheme .wp-block-post-title a { color: #f5f5f7; }
.retheme-dark-scheme .rt-post__title a:hover { color: #ff6b73; }
.retheme-dark-scheme .entry-content, .retheme-dark-scheme .entry-content p, .retheme-dark-scheme .entry-content li { color: #d1d1d6; }
.retheme-dark-scheme .entry-content strong { color: #f5f5f7; }
.retheme-dark-scheme hr, .retheme-dark-scheme .wp-block-separator { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.14); }

/* ---------- header: dark frosted glass ---------- */
.retheme-dark-scheme .site-header__middle, .retheme-dark-scheme .site-header-mobile__middle {
  background: rgba(28,28,30,.72) !important; -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--ios-line);
}
.retheme-dark-scheme .site-header__main, .retheme-dark-scheme .site-header.abu-compact .site-header__main, .retheme-dark-scheme .site-header-mobile__main {
  background: rgba(28,28,30,.8) !important; -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  border: 0 !important; border-bottom: 1px solid var(--ios-line) !important;
}
.retheme-dark-scheme .site-header__main .rt-menu, .retheme-dark-scheme .site-header__main .rt-menu .menu-item a, .retheme-dark-scheme .site-header-mobile__main .rt-menu .menu-item a { color: #f5f5f7 !important; text-shadow: none; font-weight: 600; letter-spacing: 0; }
.retheme-dark-scheme .site-header__main .rt-menu .menu-item > a { padding: 8px 14px; border-radius: 999px; transition: background .2s ease, color .2s ease; }
.retheme-dark-scheme .site-header__main .rt-menu .menu-item a:before { display: none !important; }
.retheme-dark-scheme .site-header__main .rt-menu .menu-item > a:hover { background: rgba(255,255,255,.1); color: #fff !important; }
.retheme-dark-scheme .site-header__main .rt-menu .menu-item.current-menu-item > a, .retheme-dark-scheme .site-header__main .rt-menu .menu-item.current_page_item > a { background: rgba(255,59,71,.2); color: #ff6b73 !important; }
.retheme-dark-scheme .site-header__main .rt-menu .rt-menu-arrow { color: #8e8e93; }
.retheme-dark-scheme .site-header__main .rt-menu .sub-menu { background: rgba(44,44,46,.94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid var(--ios-line); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.6); padding: 8px; }
.retheme-dark-scheme .site-header__main .rt-menu .sub-menu a { color: #f5f5f7 !important; border-radius: 12px; }
.retheme-dark-scheme .abu-bar-search { background: rgba(255,255,255,.1); color: #f5f5f7; }
.retheme-dark-scheme .abu-bar-search:hover { background: #ff3b47; color: #fff; }
.retheme-dark-scheme .site-header.abu-compact { left: 12px; right: 12px; top: 10px; border-radius: 22px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.6), 0 0 0 1px var(--ios-line); }
.retheme-dark-scheme .site-header.abu-compact .site-header__main { padding-top: 8px; padding-bottom: 8px; }
.retheme-dark-scheme .rt-search-form__input { border-radius: 999px; background: rgba(118,118,128,.24); color: #f5f5f7; border: 0; }
.retheme-dark-scheme .rt-search-form__input::placeholder { color: #8e8e93; }
.retheme-dark-scheme .rt-search-form__icon, .retheme-dark-scheme .rt-header-icon, .retheme-dark-scheme .rt-social a { color: #d1d1d6; }
.retheme-dark-scheme .rt-menu-toggle span, .retheme-dark-scheme .rt-menu-toggle span:before, .retheme-dark-scheme .rt-menu-toggle span:after { background-color: #f5f5f7; }
.retheme-dark-scheme .rt-offcanvas-menu .rt-slidepanel__inner { background: #1c1c1e; }
.retheme-dark-scheme .rt-offcanvas-menu .rt-menu .menu-item a { color: #f5f5f7; }

/* ---------- flash bar ---------- */
.retheme-dark-scheme .abu-flash { background: #0a0a0c; border-bottom: 1px solid var(--ios-line); }
.retheme-dark-scheme .abu-flash__label { background: #e11d27; color: #fff; border-radius: 999px; }

/* ---------- slider + cards ---------- */
.retheme-dark-scheme .rt-swiper-gallery { background: #1c1c1e; border: 0; border-radius: var(--ios-r-xl, 30px) !important; box-shadow: var(--ios-shadow); overflow: hidden; }
.retheme-dark-scheme .rt-swiper-gallery .wp-block-cover { border-radius: 0 !important; }
.retheme-dark-scheme .rt-swiper-gallery__thumbnails .rt-post__title a, .retheme-dark-scheme .rt-swiper-gallery__thumbnails .rt-post__title { color: #e5e5ea; }
.retheme-dark-scheme .rt-post.is-style-list { background: #1c1c1e; border: 0; border-radius: var(--ios-r-l, 24px); padding: 14px; margin-top: 16px; box-shadow: var(--ios-shadow); transition: transform .25s ease, box-shadow .25s ease; }
.retheme-dark-scheme .rt-post.is-style-list:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.5), 0 18px 44px rgba(0,0,0,.6); }
.retheme-dark-scheme .rt-post__excerpt, .retheme-dark-scheme .rt-post__content p { color: #aeaeb2; }
.retheme-dark-scheme .rt-post-meta, .retheme-dark-scheme .rt-post-meta__item, .retheme-dark-scheme .rt-post-meta a { color: #8e8e93; }
.retheme-dark-scheme .rt-widget.is-widget-aside { background: #1c1c1e; border-radius: var(--ios-r-l, 24px); padding: 20px 20px 8px; margin-bottom: 20px; box-shadow: var(--ios-shadow); }
.retheme-dark-scheme .rt-block-heading, .retheme-dark-scheme .rt-widget__title { border: 0 !important; padding: 0 0 14px; margin: 0 0 14px; color: #f5f5f7; }
.retheme-dark-scheme .rt-block-heading:after, .retheme-dark-scheme .rt-widget__title:after, .retheme-dark-scheme .rt-block-heading__title:before, .retheme-dark-scheme .rt-widget__title:before { display: none !important; }
.retheme-dark-scheme .rt-block-heading__title, .retheme-dark-scheme .rt-widget__title { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; color: #f5f5f7; }
.retheme-dark-scheme .rt-post.is-style-list-small, .retheme-dark-scheme .widget_retheme_post article { border-color: rgba(255,255,255,.1); }
.retheme-dark-scheme .taxonomy-category a, .retheme-dark-scheme .rt-post-category a { border-radius: 999px; }
.retheme-dark-scheme .abu-arrow { background: rgba(44,44,46,.78); color: #f5f5f7; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.retheme-dark-scheme .abu-arrow:hover { background: #ff3b47; color: #fff; }
.retheme-dark-scheme .abu-cc { box-shadow: 0 0 0 2px #1c1c1e, 0 3px 8px rgba(0,0,0,.5); }
.retheme-dark-scheme .rt-swiper-gallery__thumbnails .swiper-slide.abu-thumb-active .rt-post__thumbnail { box-shadow: 0 0 0 3px #ff3b47; }

/* ---------- buttons / pager / inputs ---------- */
.retheme-dark-scheme .js-retheme-loop-load { background: #2c2c2e; color: #f5f5f7; border: 0; box-shadow: var(--ios-shadow); font-weight: 600; padding: 12px 26px; border-radius: 999px; }
.retheme-dark-scheme .abu-pager .abu-all-link a { background: #f5f5f7; color: #1d1d1f; border: 0; border-radius: 999px; }
.retheme-dark-scheme .abu-pager .abu-all-link a:hover { background: #ff3b47; color: #fff; }
.retheme-dark-scheme input[type=text], .retheme-dark-scheme input[type=email], .retheme-dark-scheme input[type=search], .retheme-dark-scheme input[type=password], .retheme-dark-scheme textarea, .retheme-dark-scheme select { background: #2c2c2e; color: #f5f5f7; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; }
.retheme-dark-scheme input::placeholder, .retheme-dark-scheme textarea::placeholder { color: #8e8e93; }
.retheme-dark-scheme .rt-btn, .retheme-dark-scheme .wp-block-button__link, .retheme-dark-scheme input[type=submit] { border-radius: 999px; }
.retheme-dark-scheme .rt-gotop { background: rgba(44,44,46,.82) !important; color: #f5f5f7; box-shadow: 0 8px 26px rgba(0,0,0,.6), 0 0 0 1px var(--ios-line); border-radius: 16px !important; }
.retheme-dark-scheme .rt-gotop:hover { background: #3a3a3c !important; color: #ff6b73; }

/* ---------- article parts ---------- */
.retheme-dark-scheme blockquote, .retheme-dark-scheme .wp-block-quote { background: #1c1c1e; color: #e5e5ea; border: 0; border-radius: var(--ios-r-l, 24px); padding: 22px 26px; box-shadow: var(--ios-shadow); }
.retheme-dark-scheme .rt-toc { background-color: #1c1c1e; border: 0; border-radius: var(--ios-r-l, 24px); box-shadow: var(--ios-shadow); color: #d1d1d6; }
.retheme-dark-scheme .rt-toc a, .retheme-dark-scheme .rt-toc-list a { color: #e5e5ea; }
.retheme-dark-scheme .abu-source { background: #1c1c1e; border: 0; border-radius: var(--ios-r-l, 24px); box-shadow: var(--ios-shadow); color: #d1d1d6; }
.retheme-dark-scheme .abu-source strong { color: #f5f5f7; }
.retheme-dark-scheme .abu-source__url { color: #8e8e93; }
.retheme-dark-scheme .abu-source a { color: #ff6b73; }
.retheme-dark-scheme .comment-respond, .retheme-dark-scheme .comments-area, .retheme-dark-scheme .rt-comments { color: #d1d1d6; }
.retheme-dark-scheme .comment-body, .retheme-dark-scheme .rt-comment { border-color: rgba(255,255,255,.12); }
.retheme-dark-scheme table, .retheme-dark-scheme th, .retheme-dark-scheme td { border-color: rgba(255,255,255,.14); }
.retheme-dark-scheme .jp-relatedposts-headline em, .retheme-dark-scheme .jp-relatedposts-post-title a { color: #f5f5f7 !important; }
.retheme-dark-scheme .jp-relatedposts-post-date, .retheme-dark-scheme .jp-relatedposts-post-context { color: #8e8e93 !important; opacity: 1 !important; }
.retheme-dark-scheme .rt-share a, .retheme-dark-scheme .rt-post-share a { color: #f5f5f7; }

/* ---------- search dropdown / toast / tooltip ---------- */
.retheme-dark-scheme .abu-sg { background: rgba(44,44,46,.96); color: #f5f5f7; border-color: var(--ios-line); box-shadow: 0 24px 60px rgba(0,0,0,.7); }
.retheme-dark-scheme .abu-sg__item { border-color: rgba(255,255,255,.08); }
.retheme-dark-scheme .abu-sg__item:hover, .retheme-dark-scheme .abu-sg__item.is-active { background: rgba(255,255,255,.08); }
.retheme-dark-scheme .abu-sg__meta { color: #8e8e93; }
.retheme-dark-scheme .abu-sg__all { background: transparent; color: #ff6b73; }
.retheme-dark-scheme .abu-sg__title mark { background: rgba(255,214,10,.3); color: #fff; }
.retheme-dark-scheme .abu-sg__catico { background: #3a3a3c; }
.retheme-dark-scheme .abu-toast { background: rgba(58,58,60,.95); }
.retheme-dark-scheme .rt-modal__inner, .retheme-dark-scheme .rt-global-search { background: #1c1c1e; color: #f5f5f7; }

/* ---------- footer ---------- */
.retheme-dark-scheme .site-footer { border-top: 0; border-radius: 34px 34px 0 0; margin-top: 30px; overflow: hidden; }
.retheme-dark-scheme .site-footer .rt-widget__title { color: #fff; }
.retheme-dark-scheme .site-footer, .retheme-dark-scheme .site-footer p, .retheme-dark-scheme .site-footer li { color: #c7c7cc; }
.retheme-dark-scheme .site-footer a { color: #e5e5ea; }
.retheme-dark-scheme .site-footer a:hover { color: #ff6b73; }
@media (max-width: 768px) { .retheme-dark-scheme .site-footer { border-radius: 28px 28px 0 0; } .retheme-dark-scheme .rt-post.is-style-list { padding: 12px; } .retheme-dark-scheme .rt-widget.is-widget-aside { padding: 16px 16px 4px; } }
/* section title links + leftover underline bars */
.retheme-dark-scheme .rt-block-heading__title a, .retheme-dark-scheme .rt-widget__title a { color: #f5f5f7 !important; text-decoration: none; }
.retheme-dark-scheme .rt-block-heading__title, .retheme-dark-scheme .rt-widget__title { border: 0 !important; padding-bottom: 0 !important; }
.retheme-dark-scheme .rt-block-heading__title::after, .retheme-dark-scheme .rt-widget__title::after { display: none !important; content: none !important; }

/* Submenu panel (dark) */
.retheme-dark-scheme .site-header .rt-menu .sub-menu, .retheme-dark-scheme .site-header .rt-menu ul ul { background: rgba(28,28,30,.97); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid var(--ios-line, rgba(255,255,255,.14)); border-radius: 16px; box-shadow: 0 18px 44px rgba(0,0,0,.6); overflow: hidden; }
.retheme-dark-scheme .site-header .rt-menu .sub-menu a { color: #f5f5f7; }
