/*
Theme Name: InfoSocial
Theme URI: https://infosocial.ma
Author: InfoSocial Media
Author URI: https://infosocial.ma
Description: Ultra-lightweight, SEO-optimized, dynamic and modern Arabic WordPress news theme for InfoSocial. Built with pure CSS, ambient red & green palette, native Web Platform APIs, and optimized for Core Web Vitals.
Version: 2.0.0
Tested up to: 6.8
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: infosocial
Tags: news, blog, rtl-language-support, custom-colors, featured-images, seo-ready, lightweight
*/

/* ==========================================================================
   1. Design Tokens & Adaptive Light / Dark Ambient Color System
   ========================================================================== */
:root {
  color-scheme: light dark;

  /* Raw Light Tokens — Lighter Ambient Sage Green & Soft Coral-Crimson Red */
  --green-light-mode: #2a7a60;
  --green-dark-light-mode: #20614c;
  --green-soft-light-mode: #3b9376;
  --green-tint-light-mode: #eff7f4;
  --green-tint-hover-light-mode: #dfefe9;

  --red-light-mode: #c24141;
  --red-dark-light-mode: #a33232;
  --red-soft-light-mode: #d65b5b;
  --red-tint-light-mode: #fbf1f1;
  --red-tint-hover-light-mode: #f5e2e2;

  --ink-light-mode: #171a19;
  --ink-sec-light-mode: #353b38;
  --paper-light-mode: #ffffff;
  --surface-light-mode: #f6f5f2;
  --surface-alt-light-mode: #eeece7;
  --border-light-mode: #dedcd6;
  --border-sub-light-mode: #eceae4;
  --muted-light-mode: #5b635f;
  --muted-2-light-mode: #848c88;

  /* Raw Dark Tokens — Lighter Ambient Mint-Pine & Warm Rose-Coral */
  --green-dark-mode: #5ec4a0;
  --green-dark-dark-mode: #47ad89;
  --green-soft-dark-mode: #7ad3b3;
  --green-tint-dark-mode: #1c332b;
  --green-tint-hover-dark-mode: #26453a;

  --red-dark-mode: #e58181;
  --red-dark-dark-mode: #d16868;
  --red-soft-dark-mode: #ef9e9e;
  --red-tint-dark-mode: #352020;
  --red-tint-hover-dark-mode: #462a2a;

  --ink-dark-mode: #edf0ee;
  --ink-sec-dark-mode: #c5cdc9;
  --paper-dark-mode: #161b19;
  --surface-dark-mode: #0f1311;
  --surface-alt-dark-mode: #1e2522;
  --border-dark-mode: #28302c;
  --border-sub-dark-mode: #202724;
  --muted-dark-mode: #96a09b;
  --muted-2-dark-mode: #6e7873;

  /* Active Semantic Tokens (Light Fallback Default) */
  --green: var(--green-light-mode);
  --green-dark: var(--green-dark-light-mode);
  --green-light: var(--green-soft-light-mode);
  --green-tint: var(--green-tint-light-mode);
  --green-tint-hover: var(--green-tint-hover-light-mode);

  --red: var(--red-light-mode);
  --red-dark: var(--red-dark-light-mode);
  --red-light: var(--red-soft-light-mode);
  --red-tint: var(--red-tint-light-mode);
  --red-tint-hover: var(--red-tint-hover-light-mode);

  --primary: var(--green);
  --primary-dark: var(--green-dark);
  --primary-light: var(--green-light);
  --primary-tint: var(--green-tint);
  --primary-tint-hover: var(--green-tint-hover);
  --accent: var(--red);
  --accent-tint: var(--red-tint);

  --ink: var(--ink-light-mode);
  --ink-secondary: var(--ink-sec-light-mode);
  --paper: var(--paper-light-mode);
  --surface: var(--surface-light-mode);
  --surface-alt: var(--surface-alt-light-mode);
  --border: var(--border-light-mode);
  --border-subtle: var(--border-sub-light-mode);
  --muted: var(--muted-light-mode);
  --muted-light: var(--muted-2-light-mode);

  --utility-bg-light-mode: #1d4a3c;
  --utility-bg-dark-mode: #11221c;
  --utility-bg: var(--utility-bg-light-mode);
  --utility-ink: #e2ede8;

  --studio-bg-light-mode: #17332a;
  --studio-bg-dark-mode: #10221c;
  --studio-bg: var(--studio-bg-light-mode);
  --studio-ink: #eef5f2;

  --weather-bg: #235947;
  --newsletter-bg: #1c3f34;

  --footer-bg-light-mode: #15211d;
  --footer-bg-dark-mode: #0f1613;
  --footer-bg: var(--footer-bg-light-mode);
  --footer-bottom-bg-light-mode: #0e1714;
  --footer-bottom-bg-dark-mode: #090e0c;
  --footer-bottom-bg: var(--footer-bottom-bg-light-mode);

  /* Category Specific Accents */
  --tag-local: var(--green);
  --tag-local-bg: var(--green-tint);
  --tag-econ-light-mode: #8d5816;
  --tag-econ-dark-mode: #dfa65c;
  --tag-econ-bg-light-mode: #f6efe3;
  --tag-econ-bg-dark-mode: #2b2316;
  --tag-econ: var(--tag-econ-light-mode);
  --tag-econ-bg: var(--tag-econ-bg-light-mode);

  --tag-sport-light-mode: #277c5b;
  --tag-sport-dark-mode: #5ec4a0;
  --tag-sport-bg-light-mode: #ecf7f2;
  --tag-sport-bg-dark-mode: #1b3128;
  --tag-sport: var(--tag-sport-light-mode);
  --tag-sport-bg: var(--tag-sport-bg-light-mode);

  --tag-culture-light-mode: #5b476e;
  --tag-culture-dark-mode: #b39acb;
  --tag-culture-bg-light-mode: #f0ecf4;
  --tag-culture-bg-dark-mode: #26202e;
  --tag-culture: var(--tag-culture-light-mode);
  --tag-culture-bg: var(--tag-culture-bg-light-mode);

  --tag-society-light-mode: #235b67;
  --tag-society-dark-mode: #6bb5c4;
  --tag-society-bg-light-mode: #e8f1f3;
  --tag-society-bg-dark-mode: #18292d;
  --tag-society: var(--tag-society-light-mode);
  --tag-society-bg: var(--tag-society-bg-light-mode);

  --tag-opinion: var(--red);
  --tag-opinion-bg: var(--red-tint);
  --tag-video: var(--red);
  --tag-video-bg: var(--red-tint);

  /* Typography, Sharp Editorial Radii & Elevation */
  --font:
    "IBM Plex Sans Arabic", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --font-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius: 4px;
  --radius-lg: 5px;
  --shadow-sm: 0 1px 2px rgba(15, 20, 18, 0.04);
  --shadow: 0 2px 6px rgba(15, 20, 18, 0.06);
  --shadow-hover: 0 6px 16px rgba(18, 35, 29, 0.09);
  --transition: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --wrap-width: 1220px;

  --scrollbar-track: var(--surface-alt);
  --scrollbar-thumb: var(--muted-light);

  accent-color: var(--green);
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Reflect meta[name="color-scheme"] override onto :root */
:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  color-scheme: dark;
}
:root:has(> head > meta[name="color-scheme"][content="light"]) {
  color-scheme: light;
}

/* Fallback for browsers without light-dark() */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --green: var(--green-dark-mode);
    --green-dark: var(--green-dark-dark-mode);
    --green-light: var(--green-soft-dark-mode);
    --green-tint: var(--green-tint-dark-mode);
    --green-tint-hover: var(--green-tint-hover-dark-mode);
    --red: var(--red-dark-mode);
    --red-dark: var(--red-dark-dark-mode);
    --red-light: var(--red-soft-dark-mode);
    --red-tint: var(--red-tint-dark-mode);
    --red-tint-hover: var(--red-tint-hover-dark-mode);
    --ink: var(--ink-dark-mode);
    --ink-secondary: var(--ink-sec-dark-mode);
    --paper: var(--paper-dark-mode);
    --surface: var(--surface-dark-mode);
    --surface-alt: var(--surface-alt-dark-mode);
    --border: var(--border-dark-mode);
    --border-subtle: var(--border-sub-dark-mode);
    --muted: var(--muted-dark-mode);
    --muted-light: var(--muted-2-dark-mode);
    --utility-bg: var(--utility-bg-dark-mode);
    --studio-bg: var(--studio-bg-dark-mode);
    --footer-bg: var(--footer-bg-dark-mode);
    --footer-bottom-bg: var(--footer-bottom-bg-dark-mode);
    --tag-econ: var(--tag-econ-dark-mode);
    --tag-econ-bg: var(--tag-econ-bg-dark-mode);
    --tag-sport: var(--tag-sport-dark-mode);
    --tag-sport-bg: var(--tag-sport-bg-dark-mode);
    --tag-culture: var(--tag-culture-dark-mode);
    --tag-culture-bg: var(--tag-culture-bg-dark-mode);
    --tag-society: var(--tag-society-dark-mode);
    --tag-society-bg: var(--tag-society-bg-dark-mode);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --green: var(--green-dark-mode);
  --green-dark: var(--green-dark-dark-mode);
  --green-light: var(--green-soft-dark-mode);
  --green-tint: var(--green-tint-dark-mode);
  --green-tint-hover: var(--green-tint-hover-dark-mode);
  --red: var(--red-dark-mode);
  --red-dark: var(--red-dark-dark-mode);
  --red-light: var(--red-soft-dark-mode);
  --red-tint: var(--red-tint-dark-mode);
  --red-tint-hover: var(--red-tint-hover-dark-mode);
  --ink: var(--ink-dark-mode);
  --ink-secondary: var(--ink-sec-dark-mode);
  --paper: var(--paper-dark-mode);
  --surface: var(--surface-dark-mode);
  --surface-alt: var(--surface-alt-dark-mode);
  --border: var(--border-dark-mode);
  --border-subtle: var(--border-sub-dark-mode);
  --muted: var(--muted-dark-mode);
  --muted-light: var(--muted-2-dark-mode);
  --utility-bg: var(--utility-bg-dark-mode);
  --studio-bg: var(--studio-bg-dark-mode);
  --footer-bg: var(--footer-bg-dark-mode);
  --footer-bottom-bg: var(--footer-bottom-bg-dark-mode);
  --tag-econ: var(--tag-econ-dark-mode);
  --tag-econ-bg: var(--tag-econ-bg-dark-mode);
  --tag-sport: var(--tag-sport-dark-mode);
  --tag-sport-bg: var(--tag-sport-bg-dark-mode);
  --tag-culture: var(--tag-culture-dark-mode);
  --tag-culture-bg: var(--tag-culture-bg-dark-mode);
  --tag-society: var(--tag-society-dark-mode);
  --tag-society-bg: var(--tag-society-bg-dark-mode);
}

/* Modern light-dark() token binding */
@supports (color: light-dark(white, black)) {
  :root {
    --green: light-dark(var(--green-light-mode), var(--green-dark-mode));
    --green-dark: light-dark(
      var(--green-dark-light-mode),
      var(--green-dark-dark-mode)
    );
    --green-light: light-dark(
      var(--green-soft-light-mode),
      var(--green-soft-dark-mode)
    );
    --green-tint: light-dark(
      var(--green-tint-light-mode),
      var(--green-tint-dark-mode)
    );
    --green-tint-hover: light-dark(
      var(--green-tint-hover-light-mode),
      var(--green-tint-hover-dark-mode)
    );

    --red: light-dark(var(--red-light-mode), var(--red-dark-mode));
    --red-dark: light-dark(
      var(--red-dark-light-mode),
      var(--red-dark-dark-mode)
    );
    --red-light: light-dark(
      var(--red-soft-light-mode),
      var(--red-soft-dark-mode)
    );
    --red-tint: light-dark(
      var(--red-tint-light-mode),
      var(--red-tint-dark-mode)
    );
    --red-tint-hover: light-dark(
      var(--red-tint-hover-light-mode),
      var(--red-tint-hover-dark-mode)
    );

    --ink: light-dark(var(--ink-light-mode), var(--ink-dark-mode));
    --ink-secondary: light-dark(
      var(--ink-sec-light-mode),
      var(--ink-sec-dark-mode)
    );
    --paper: light-dark(var(--paper-light-mode), var(--paper-dark-mode));
    --surface: light-dark(var(--surface-light-mode), var(--surface-dark-mode));
    --surface-alt: light-dark(
      var(--surface-alt-light-mode),
      var(--surface-alt-dark-mode)
    );
    --border: light-dark(var(--border-light-mode), var(--border-dark-mode));
    --border-subtle: light-dark(
      var(--border-sub-light-mode),
      var(--border-sub-dark-mode)
    );
    --muted: light-dark(var(--muted-light-mode), var(--muted-dark-mode));
    --muted-light: light-dark(
      var(--muted-2-light-mode),
      var(--muted-2-dark-mode)
    );

    --utility-bg: light-dark(
      var(--utility-bg-light-mode),
      var(--utility-bg-dark-mode)
    );
    --studio-bg: light-dark(
      var(--studio-bg-light-mode),
      var(--studio-bg-dark-mode)
    );
    --footer-bg: light-dark(
      var(--footer-bg-light-mode),
      var(--footer-bg-dark-mode)
    );
    --footer-bottom-bg: light-dark(
      var(--footer-bottom-bg-light-mode),
      var(--footer-bottom-bg-dark-mode)
    );

    --tag-econ: light-dark(
      var(--tag-econ-light-mode),
      var(--tag-econ-dark-mode)
    );
    --tag-econ-bg: light-dark(
      var(--tag-econ-bg-light-mode),
      var(--tag-econ-bg-dark-mode)
    );
    --tag-sport: light-dark(
      var(--tag-sport-light-mode),
      var(--tag-sport-dark-mode)
    );
    --tag-sport-bg: light-dark(
      var(--tag-sport-bg-light-mode),
      var(--tag-sport-bg-dark-mode)
    );
    --tag-culture: light-dark(
      var(--tag-culture-light-mode),
      var(--tag-culture-dark-mode)
    );
    --tag-culture-bg: light-dark(
      var(--tag-culture-bg-light-mode),
      var(--tag-culture-bg-dark-mode)
    );
    --tag-society: light-dark(
      var(--tag-society-light-mode),
      var(--tag-society-dark-mode)
    );
    --tag-society-bg: light-dark(
      var(--tag-society-bg-light-mode),
      var(--tag-society-bg-dark-mode)
    );
  }
}

/* Logo & Theme Toggle Visibility Branching */
.logo-dark-only {
  display: none !important;
}
.logo-light-only {
  display: block !important;
}
.theme-option-light {
  display: none;
}
.theme-option-dark {
  display: inline-flex;
  align-items: center;
}

@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])):not(
      [data-theme="light"]
    )
    .logo-light-only {
    display: none !important;
  }
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])):not(
      [data-theme="light"]
    )
    .logo-dark-only {
    display: block !important;
  }
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])):not(
      [data-theme="light"]
    )
    .theme-option-dark {
    display: none;
  }
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])):not(
      [data-theme="light"]
    )
    .theme-option-light {
    display: inline-flex;
    align-items: center;
  }
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .logo-light-only,
:root[data-theme="dark"] .logo-light-only {
  display: none !important;
}
:root:has(> head > meta[name="color-scheme"][content="dark"]) .logo-dark-only,
:root[data-theme="dark"] .logo-dark-only {
  display: block !important;
}
:root:has(> head > meta[name="color-scheme"][content="dark"])
  .theme-option-dark,
:root[data-theme="dark"] .theme-option-dark {
  display: none;
}
:root:has(> head > meta[name="color-scheme"][content="dark"])
  .theme-option-light,
:root[data-theme="dark"] .theme-option-light {
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   2. Reset & Base Typography
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--surface);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  color: var(--ink);
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  content-visibility: auto;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[hidden]:not([hidden="until-found"]) {
  display: none !important;
}

.wrap {
  width: var(--wrap-width);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 16px;
}

.scroll-sentinel {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 1px;
  height: 320px;
  pointer-events: none;
  visibility: hidden;
}

/* ==========================================================================
   3. Reading Progress Indicator (Scroll-Driven + Fallback)
   ========================================================================== */
#reading-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform-origin: 100% 50%;
  transform: scaleX(0);
  z-index: 999;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes grow-reading-progress {
      from {
        transform: scaleX(0);
      }
      to {
        transform: scaleX(1);
      }
    }

    #reading-progress {
      animation: grow-reading-progress auto linear;
      animation-timeline: scroll(root block);
    }
  }
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  inset-inline-start: 16px;
  background: var(--green);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}
.skip-link:focus {
  top: 10px;
}

/* ==========================================================================
   4. Utility Bar, Unified Sticky Masthead & Search Drawer
   ========================================================================== */
.utility {
  background: var(--utility-bg);
  color: var(--utility-ink);
  font-size: 11.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.utility .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 29px;
  gap: 12px;
}
.utility-left,
.utility-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.utility-right ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 14px;
}
.utility-right .sub-menu {
  display: none !important;
}
.utility a {
  color: var(--utility-ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.utility a:hover {
  color: #ffffff;
}
.weather-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #edf3f0;
}
.utility-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  display: inline-block;
  flex-shrink: 0;
}
.utility-sep {
  opacity: 0.4;
}

/* Unified Sticky Masthead */
.site-header {
  background: var(--paper);
  border-top: 3px solid var(--green);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
body.scrolled .site-header {
  box-shadow: var(--shadow);
  border-bottom-color: var(--green-tint-hover);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 9px;
  gap: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes infosocial-shrink-header {
      from {
        box-shadow: none;
      }
      to {
        box-shadow: var(--shadow);
        border-bottom-color: var(--green-tint-hover);
      }
    }
    @keyframes infosocial-shrink-logo {
      from {
        transform: scale(1);
      }
      to {
        transform: scale(0.92);
      }
    }
    .site-header {
      animation: infosocial-shrink-header linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 140px;
    }
    .site-header .logo img,
    .site-header .custom-logo-link img {
      transform-origin: center;
      animation: infosocial-shrink-logo linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 140px;
    }
  }
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  font-size: 24px;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -0.4px;
  text-decoration: none;
}
.logo img,
.custom-logo-link img,
.custom-logo {
  height: 44px;
  max-height: 48px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  display: block;
}
.logo-tagline {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  border-inline-start: 2px solid var(--red);
  padding-inline-start: 10px;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
@media (max-width: 1240px) {
  .logo-tagline {
    display: none;
  }
}

/* Header Actions & Unified Expandable Search Drawer */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-header-search {
  height: 36px;
  padding-inline: 11px;
  gap: 7px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
}
.btn-header-search:hover,
.btn-header-search[aria-expanded="true"] {
  background: var(--green-tint);
  color: var(--green);
  border-color: var(--green);
}
.search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  font-size: 10px;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}

/* Native Modal Search Popup Dialog */
.search-modal-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: 86dvh;
  margin: min(12vh, 88px) auto auto;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-modal-dialog[open] {
  display: flex;
  flex-direction: column;
}
.search-modal-dialog:modal {
  overscroll-behavior: contain;
}
.search-modal-dialog::backdrop {
  background: rgba(15, 28, 23, 0.56);
  backdrop-filter: blur(4px);
  overflow: hidden;
  overscroll-behavior: contain;
}
.search-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface);
}
.search-modal-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.search-modal-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 2px;
  display: inline-block;
}
.search-modal-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.search-modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
}
.search-modal-close:hover {
  background: var(--red-tint);
  color: var(--red);
  border-color: var(--red);
}
.search-modal-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.search-modal-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.search-input-icon {
  position: absolute;
  inset-inline-start: 14px;
  color: var(--muted);
  pointer-events: none;
}
.search-modal-form input[type="search"] {
  width: 100%;
  height: 46px;
  padding-inline: 44px 14px;
  font-size: 14.5px;
  background: var(--surface-alt);
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color var(--transition),
    background-color var(--transition);
}
.search-modal-form input[type="search"]:focus {
  border-color: var(--green);
  background: var(--paper);
}
.search-submit-btn {
  height: 46px;
  padding-inline: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--green);
  color: #ffffff;
  border: 0;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color var(--transition);
}
.search-submit-btn:hover {
  background: var(--red);
}
.search-modal-topics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.search-topics-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
}
.search-topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.search-topic-chip {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}
.search-topic-chip:hover {
  background: var(--green-tint);
  border-color: var(--green);
  color: var(--green);
}
.search-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--muted);
}
.search-modal-foot kbd {
  padding: 1px 6px;
  font-size: 10.5px;
  font-family: ui-monospace, monospace;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--ink);
}

.btn-theme-toggle,
.btn-toggle {
  width: 36px;
  height: 36px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
}
.btn-theme-toggle:hover,
.btn-toggle:hover {
  background: var(--green-tint);
  color: var(--green);
  border-color: var(--green);
}
.btn-toggle {
  display: none;
}
.btn-toggle svg {
  width: 19px;
  height: 19px;
}

/* Inline Main Navigation inside Sticky Masthead */
.nav-inline {
  background: transparent;
  border-bottom: 0;
  position: relative;
  z-index: 95;
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.primary-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  gap: 2px;
}
.primary-menu > li {
  position: relative;
  margin: 0;
  padding: 0;
}
.primary-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  white-space: nowrap;
  border-block-end: 2px solid transparent;
  text-decoration: none;
  border-radius: var(--radius-xs);
}
.primary-menu > li:hover > a,
.primary-menu > li > a[aria-current="page"],
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a {
  color: var(--green);
  border-block-end-color: var(--red);
  border-block-end-width: 2.5px;
  background: var(--green-tint);
}

/* Dropdown Chevron */
.primary-menu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s ease;
  opacity: 0.75;
}
.primary-menu .menu-item-has-children:hover > a::after,
.primary-menu .menu-item-has-children.hover-active > a::after {
  transform: rotate(225deg);
  margin-top: 3px;
}

/* Dropdown Submenu */
.primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  min-width: 225px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 2px solid var(--green);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 4px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
  z-index: 1000;
  pointer-events: none;
}
.primary-menu > li:hover > .sub-menu,
.primary-menu > li.hover-active > .sub-menu,
.primary-menu > li:focus-within:has(:focus-visible) > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.primary-menu .sub-menu li {
  position: relative;
}
.primary-menu .sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  border-bottom: 1px solid var(--border-subtle);
}
.primary-menu .sub-menu li:last-child > a {
  border-bottom: none;
}
.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus-visible {
  background: var(--green-tint);
  color: var(--green);
  padding-inline-start: 20px;
}
.primary-menu .sub-menu .sub-menu {
  top: 0;
  right: 100%;
  left: auto;
  border-radius: var(--radius);
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   5. Native Modal Navigation Drawer (<dialog> + Scroll Snap Swipe)
   ========================================================================== */
.mobile-nav-drawer {
  --drawer-width: min(21rem, 82dvw, 100dvw - 24px);
  --drawer-backdrop: 0;

  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
  color: var(--ink);
}
.mobile-nav-drawer:not([open]) {
  display: none;
}
.mobile-nav-drawer::backdrop {
  background: #090c0b;
  opacity: calc(var(--drawer-backdrop) * 0.58);
}

.drawer-scroller {
  position: relative;
  display: grid;
  grid-template-columns: 100% var(--drawer-width);
  overflow-x: scroll;
  overscroll-behavior: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  width: 100%;
  height: 100svh;
}
.drawer-scroller::-webkit-scrollbar {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .drawer-scroller {
    scroll-behavior: smooth;
  }
}
.drawer-spacer {
  scroll-snap-align: start;
  scroll-initial-target: nearest;
}
.drawer-sheet {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  height: 100svh;
  background: var(--paper);
  color: var(--ink);
  border-inline-start: 1px solid var(--border);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-align: end;
  scrollbar-width: thin;
}

@supports (animation-timeline: scroll()) {
  @property --drawer-backdrop {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
  }
  @keyframes fade-drawer-backdrop {
    0% {
      --drawer-backdrop: 0;
    }
    100% {
      --drawer-backdrop: 1;
    }
  }
  .mobile-nav-drawer {
    timeline-scope: --drawer-fade;
    animation: fade-drawer-backdrop linear both;
    animation-timeline: --drawer-fade;
  }
  .drawer-scroller {
    scroll-timeline: --drawer-fade x;
  }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.drawer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.drawer-brand .logo img,
.drawer-brand .custom-logo-link img {
  height: 30px;
  max-height: 32px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}
.drawer-tagline {
  font-size: 11px;
  color: var(--muted);
}
.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--ink-secondary);
}
.drawer-close:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.drawer-search {
  padding: 12px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--border-subtle);
}
.drawer-search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.drawer-search-form input {
  width: 100%;
  height: 38px;
  padding: 0 40px 0 12px;
  font-size: 13px;
  background: var(--surface-alt);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.drawer-search-form input:focus {
  border-color: var(--green);
}
.drawer-search-form button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-menu-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 8px 14px;
}
.mobile-menu > li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu a {
  flex: 1;
  display: block;
  padding: 11px 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.mobile-menu a:hover,
.mobile-menu a[aria-current="page"],
.mobile-menu li.current-menu-item > a {
  color: var(--green);
  background: var(--green-tint);
  border-inline-start: 3px solid var(--red);
  padding-inline-start: 12px;
}
.sub-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
}
.sub-menu-toggle:hover {
  background: var(--green-tint);
  color: var(--green);
}
.sub-menu-toggle svg {
  transition: transform 0.2s ease;
}
.mobile-menu .menu-item-has-children.is-open > .sub-menu-toggle svg {
  transform: rotate(180deg);
}
.mobile-menu .sub-menu {
  display: none;
  width: 100%;
  margin: 0 0 8px 0;
  padding: 4px 10px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border-inline-start: 3px solid var(--green);
}
.mobile-menu .menu-item-has-children.is-open > .sub-menu {
  display: block;
}
.mobile-menu .sub-menu li {
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-menu .sub-menu li:last-child {
  border-bottom: none;
}
.mobile-menu .sub-menu a {
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
}
.drawer-footer {
  padding: 12px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.drawer-weather {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* ==========================================================================
   6. Breaking News Ticker (Ambient Red Accent + Interactive Controls)
   ========================================================================== */
.ticker {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.ticker .wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 38px;
  gap: 10px;
}
.ticker .flag {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}
.ticker .flag-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .ticker .flag-dot {
    animation: ticker-pulse 2s ease-in-out infinite;
  }
}
@keyframes ticker-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.88);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}
.ticker-typewriter {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 0;
}
.ticker-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.4;
}
.ticker-link:hover {
  color: var(--red);
}
.ticker-typed-text {
  display: inline;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background-color: var(--red);
  margin-inline-start: 4px;
  flex-shrink: 0;
  vertical-align: middle;
}
@media (prefers-reduced-motion: no-preference) {
  .ticker-cursor {
    animation: ticker-blink 0.9s infinite;
  }
}
@keyframes ticker-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.ticker-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.ticker-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ticker-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--paper);
}

/* ==========================================================================
   7. Category Badges / Editorial Tags (Sharp Radii, High Contrast)
   ========================================================================== */
:where(a, span).tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  line-height: 1.45;
  flex-shrink: 0;
}
:where(a, span).tag-local {
  background: var(--tag-local-bg);
  color: var(--tag-local);
  border-color: var(--green-tint-hover);
}
:where(a, span).tag-econ {
  background: var(--tag-econ-bg);
  color: var(--tag-econ);
}
:where(a, span).tag-sport {
  background: var(--tag-sport-bg);
  color: var(--tag-sport);
}
:where(a, span).tag-culture {
  background: var(--tag-culture-bg);
  color: var(--tag-culture);
}
:where(a, span).tag-society {
  background: var(--tag-society-bg);
  color: var(--tag-society);
}
:where(a, span).tag-opinion {
  background: var(--tag-opinion-bg);
  color: var(--tag-opinion);
  border-color: var(--red-tint-hover);
}
:where(a, span).tag-video {
  background: var(--tag-video-bg);
  color: var(--tag-video);
  border-color: var(--red-tint-hover);
}

/* ==========================================================================
   8. Borderless Modern Newspaper Architecture, Bento Hero & Sections
   ========================================================================== */
.home-editorial-main {
  display: flex;
  flex-direction: column;
}
.hero-bento-band {
  padding: 16px 16px 26px;
  border-bottom: 1px solid var(--border);
}
.content {
  display: flex;
  gap: 28px;
  padding: 28px 16px 38px;
  align-items: flex-start;
}
.main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.side-col {
  width: 310px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 74px;
}

/* Borderless Editorial Sections (Homepage Grid, Economy, Opinions, Tabbed Stream) */
.editorial-section {
  padding-top: 24px;
  border-top: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.editorial-lead-section {
  padding-top: 0;
  border-top: 0;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-head h2::before {
  content: "";
  width: 4px;
  height: 19px;
  background: var(--green);
  border-bottom: 6px solid var(--red);
  border-radius: var(--radius-xs);
  display: inline-block;
  flex-shrink: 0;
}
.section-head a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.section-head a:hover {
  color: var(--green);
}
.editorial-list-stack {
  background: var(--paper);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

/* Inner Archive / Page / Sidebar Card Support */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.card:hover {
  border-color: var(--green-tint-hover);
  box-shadow: var(--shadow);
}
.side-col .card {
  background: var(--paper);
  border: 0;
  border-top: 2.5px solid var(--green);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-xs);
  box-shadow: none;
}
.side-col .card-head {
  background: transparent;
  padding: 12px 14px 10px;
}

/* Borderless Trending Topics Strip */
.trending-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 0 0 12px 0;
  margin-bottom: 18px;
  box-shadow: none;
}
.trending-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  padding-inline-end: 12px;
  border-inline-end: 1px solid var(--border);
  flex-shrink: 0;
}
.trending-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: var(--radius-xs);
  display: inline-block;
}
.trending-scroll {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.trending-scroll::-webkit-scrollbar {
  display: none;
}
.trending-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  white-space: nowrap;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}
.trending-pill span {
  color: var(--red);
  font-weight: 800;
}
.trending-pill:hover {
  background: var(--green-tint);
  border-color: var(--green);
  color: var(--green);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1.5px solid var(--border-subtle);
  background: var(--paper);
}
.card-head h1,
.card-head h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}
.card-head h2::before {
  content: "";
  width: 4px;
  height: 17px;
  background: var(--green);
  border-bottom: 5px solid var(--red);
  border-radius: var(--radius-xs);
  display: inline-block;
  flex-shrink: 0;
}
.card-head a {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}
.card-head a:hover {
  color: #ffffff;
  background: var(--red);
  border-color: var(--red);
  text-decoration: none;
}
.card-body {
  padding: 16px;
}

/* Scroll-Driven Subtle Card Entry Animation */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes editorial-reveal {
      entry 0% {
        opacity: 0.72;
        translate: 0 10px;
      }
      entry 40% {
        opacity: 1;
        translate: 0 0;
      }
    }

    .main-col > .card,
    .main-col > .editorial-section:not(.editorial-lead-section),
    .story-grid > .story-card,
    .multimedia-grid > .video-card {
      animation: editorial-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

/* ==========================================================================
   9. Banner Placements & Split-Feature Editorial Slider (Zero Gradients)
   ========================================================================== */
.banner-wrap-top {
  padding-top: 16px;
}
.banner-slot {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--green);
  border-radius: var(--radius);
  overflow: hidden;
}
.banner-slot-mid {
  border-inline-start-color: var(--red);
}
.banner-slot-img-link {
  position: relative;
  display: block;
}
.banner-slot-img-link img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
}
.banner-slot-img-link .banner-badge {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
}
.banner-slot-placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface-alt);
  flex-wrap: wrap;
}
.banner-ph-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.banner-badge {
  background: var(--red-tint);
  color: var(--red);
  border: 1px solid var(--red-tint-hover);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}
.banner-size {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.banner-ph-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
  min-width: 200px;
}
.banner-ph-cta {
  padding: 6px 14px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.banner-ph-cta:hover {
  background: var(--red);
  color: #fff;
}

/* Full-Width Bento Hero Showcase (Magazine Cover Slider + 4-Story Editorial Deck) */
.home-bento-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}
.home-bento-showcase.is-no-slider,
.home-bento-showcase.is-no-bento {
  grid-template-columns: 1fr;
}
.home-bento-showcase.is-no-slider .bento-side-deck {
  border-inline-start: 0;
  padding-inline-start: 0;
}

.home-slider-section {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.splide {
  visibility: visible;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--studio-bg);
}
.splide:not(.is-initialized) .splide__slide:not(:first-child) {
  display: none;
}
.splide__track {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.splide__slide {
  position: relative;
  background: var(--studio-bg);
  width: 100%;
  max-width: 100%;
}
.slider-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 430px;
  width: 100%;
  min-height: 430px;
  color: #fff;
  cursor: pointer;
}
.slider-card a.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.slider-card a.card-link:focus-visible {
  outline: none;
}
.slider-card:has(a.card-link:focus-visible) {
  outline: 2px solid var(--green-light);
  outline-offset: -3px;
}
.slider-card a:not(.card-link) {
  position: relative;
  z-index: 3;
}
.slider-media-pane {
  grid-area: 1 / 1;
  width: 100%;
  height: 430px;
  overflow: hidden;
  background: #0d1613;
}
.slider-media-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.slider-card:hover .slider-media-pane img {
  transform: scale(1.03);
}
.slider-media-badges {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.slider-editorial-pane {
  grid-area: 1 / 1;
  align-self: end;
  position: static;
  margin: 14px;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--studio-bg) 92%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-inline-start: 4px solid var(--red);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}
.slider-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #bce0d3;
  letter-spacing: 0.3px;
}
.slider-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-light);
}
.slider-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
  margin: 0;
}
.slider-title a {
  color: #ffffff;
}
.slider-card:hover .slider-title a {
  color: #cbe2d9;
}
.slider-excerpt {
  font-size: 12.5px;
  color: #d4e3dd;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slider-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.slider-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #a9c3b8;
}
.slider-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #6f9486;
}
.slider-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: #ff9c9c;
  white-space: nowrap;
}

/* Bento Editorial Side Deck */
.bento-side-deck {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-inline-start: 1px solid var(--border);
  padding-inline-start: 20px;
}
.bento-deck-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.bento-deck-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 1px;
  display: inline-block;
}
.bento-deck-head h2 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.bento-feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bento-feature-card a.card-link::after,
.bento-wire-row a.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.bento-feature-card a.card-link:focus-visible,
.bento-wire-row a.card-link:focus-visible {
  outline: none;
}
.bento-feature-card:has(a.card-link:focus-visible),
.bento-wire-row:has(a.card-link:focus-visible) {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.bento-feature-card a:not(.card-link),
.bento-wire-row a:not(.card-link) {
  position: relative;
  z-index: 1;
}
.bento-feature-thumb {
  height: 170px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
}
.bento-feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.bento-feature-card:hover .bento-feature-thumb img {
  transform: scale(1.03);
}
.bento-feature-meta,
.bento-wire-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.bento-time {
  font-size: 11px;
  color: var(--muted);
}
.bento-feature-body h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}
.bento-feature-card:hover h3 a,
.bento-wire-row:hover h4 a {
  color: var(--green);
}
.bento-excerpt {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bento-wire-list {
  display: flex;
  flex-direction: column;
}
.bento-wire-row {
  position: relative;
  padding-block: 11px;
  border-top: 1px solid var(--border-subtle);
}
.bento-wire-row h4 {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.splide__arrow {
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-dark);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
}
.splide__arrow:hover {
  background: var(--green);
  color: #fff;
}

.slider-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 6px 8px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.slider-thumbs {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.slider-thumbs::-webkit-scrollbar {
  display: none;
}
.slider-thumb {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-xs);
  padding: 4px;
  opacity: 0.72;
  transition:
    opacity var(--transition),
    border-color var(--transition),
    background-color var(--transition),
    scale 140ms ease-out;
  overflow: hidden;
  flex: 1 1 0;
  min-width: 112px;
  max-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: start;
  scroll-snap-align: center;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}
.slider-thumb > * {
  pointer-events: none;
}
.slider-thumb:hover {
  opacity: 1;
  background: var(--green-tint);
}
.slider-thumb:active {
  scale: 0.98;
}
.slider-thumb:focus-visible {
  opacity: 1;
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.slider-thumb.is-active {
  opacity: 1;
  border-color: var(--border);
  border-bottom-color: var(--red);
  box-shadow: inset 0 -2px 0 var(--red);
  background: var(--red-tint);
}
.slider-thumb img {
  width: 52px;
  height: 38px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}
.slider-thumb-label {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slider-status-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.slider-counter {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-inline: 6px;
}
.slider-autoplay-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.slider-autoplay-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-tint);
}

/* ==========================================================================
   10. Hero Story, Section Toolbar & Story Grid / List Switcher
   ========================================================================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  border-inline-start: 4px solid var(--red);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.hero:has(a.card-link:hover) {
  box-shadow: var(--shadow-hover);
  border-color: var(--green-tint-hover);
  border-inline-start-color: var(--red);
}
.hero:has(a.card-link:focus-visible) {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.hero a.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.hero a.card-link:focus-visible {
  outline: none;
}
.hero a:not(.card-link),
.hero button {
  position: relative;
  z-index: 1;
}
.hero-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--surface-alt);
}
.hero img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.hero:has(a.card-link:hover) img,
.hero:hover img {
  transform: scale(1.025);
}
.hero-text {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--red);
  background: var(--red-tint);
  border: 1px solid var(--red-tint-border);
  border-radius: var(--radius-xs);
}
.hero-text h1,
.hero-text .hero-headline {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink);
}
.hero-text h1 a:hover,
.hero-text .hero-headline a:hover,
.hero:has(a.card-link:hover) .hero-headline a {
  color: var(--green);
}
.hero-text p {
  color: var(--ink-secondary);
  font-size: 13.5px;
  line-height: 1.7;
}
.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}
.hero-read-cta {
  font-size: 12px;
  font-weight: 800;
  color: var(--red);
  transition:
    color var(--transition),
    transform var(--transition);
}
.hero:has(a.card-link:hover) .hero-read-cta {
  color: var(--green);
  transform: translateX(-3px);
}
.meta {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-light);
}

/* Section Toolbar & Grid/List View Switcher */
.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.section-toolbar-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-toolbar-title::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: var(--radius-xs);
  display: inline-block;
}
.view-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper);
}
.view-btn {
  width: 32px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.view-btn + .view-btn {
  border-inline-start: 1px solid var(--border);
}
.view-btn:hover {
  color: var(--green);
  background: var(--green-tint);
}
.view-btn.is-active {
  background: var(--green);
  color: #fff;
}

/* Story Grid (3 Columns + Dynamic List View Mode) */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.story-grid.is-list-view {
  grid-template-columns: 1fr;
  gap: 12px;
}

.story-card {
  position: relative;
  container: story-card / inline-size;
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}
.story-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}
.story-card a.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.story-card a.card-link:focus-visible {
  outline: none;
}
.story-card a:not(.card-link),
.story-card button {
  position: relative;
  z-index: 1;
}
.story-card:has(a.card-link:hover),
.story-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green);
  border-top-color: var(--red);
}
.story-card:has(a.card-link:focus-visible) {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.story-card .thumb-wrap {
  position: relative;
  width: 100%;
  height: 158px;
  overflow: hidden;
  background: var(--surface-alt);
}
.story-card-featured .thumb-wrap {
  height: 185px;
}
.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.story-card:has(a.card-link:hover) img,
.story-card:hover img {
  transform: scale(1.035);
}
.story-card .txt {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.story-card h3 {
  font-family: var(--font-display);
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
}
.story-card:has(a.card-link:hover) h3 a,
.story-card h3 a:hover {
  color: var(--green);
}
.story-card-excerpt {
  display: none;
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
}
.story-card .meta {
  margin-top: auto;
  padding-top: 6px;
}

@container story-card (inline-size > 440px) {
  .story-card-inner {
    flex-direction: row;
    align-items: stretch;
  }
  .story-card .thumb-wrap {
    width: 210px;
    height: auto;
    min-height: 148px;
    flex-shrink: 0;
  }
  .story-card .txt {
    padding: 16px 18px;
    justify-content: center;
  }
  .story-card h3 {
    font-size: 16px;
  }
  .story-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Compact List Rows */
.list-row {
  display: flex;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  transition: background-color var(--transition);
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row:hover {
  background: var(--green-tint);
}
.list-row img {
  width: 88px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}
.list-row .list-thumb-link {
  flex-shrink: 0;
  display: block;
}
.list-row .list-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.list-row h4 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.list-row h4 a:hover {
  color: var(--green);
}

/* ==========================================================================
   11. Interactive Tabbed Feed & Load More
   ========================================================================== */
.feed-tabs-head {
  flex-wrap: wrap;
}
.feed-tablist {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  max-width: 100%;
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
}
.feed-tablist::-webkit-scrollbar {
  display: none;
}
.feed-tablist [role="tab"] {
  position: relative;
  flex: none;
  scroll-snap-align: start;
  background: transparent;
  border: 0;
  padding: 6px 12px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.feed-tablist [role="tab"]:hover {
  color: var(--ink);
}
.feed-tablist [role="tab"][aria-selected="true"] {
  color: var(--red);
}
.feed-tablist [role="tab"][aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  border-block-end: 3px solid var(--red);
}
.feed-panels-grid {
  display: grid;
  grid-template-columns: 1fr;
}
.feed-panels-grid > [role="tabpanel"] {
  grid-area: 1 / 1;
}
.stream-list-wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}
.stream-list-wide .list-row {
  padding-inline: 0;
  border-bottom: 1px solid var(--border-subtle);
}
.load-more-wrap {
  padding: 18px 0 4px;
  border-top: 1px solid var(--border);
  background: transparent;
  text-align: center;
}
.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid var(--green);
  background: var(--paper);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  transition:
    background-color var(--transition),
    color var(--transition);
}
.btn-load-more:hover:not(:disabled) {
  background: var(--green);
  color: #fff;
}
.btn-load-more:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ==========================================================================
   12. Full-Width Dark Ambient Media Studio Band, Reels, Spotlights & Opinions
   ========================================================================== */
.media-studio-band {
  width: 100%;
  background: var(--studio-bg);
  color: var(--studio-ink);
  border-top: 3px solid var(--red);
  border-bottom: 3px solid var(--green);
  padding-block: 18px;
}
.studio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.studio-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.studio-kicker-dot {
  width: 9px;
  height: 9px;
  background: var(--red-light);
  border-radius: 2px;
  display: inline-block;
}
.studio-head h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
}
.studio-more-link {
  font-size: 12.5px;
  font-weight: 700;
  color: #e4f2ec;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xs);
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}
.studio-more-link:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

/* Dark Studio Overrides for Video Stage & Broadcast Queue */
.media-studio-band .video-theatre-stage {
  background: color-mix(in srgb, var(--studio-bg) 72%, #000000);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.media-studio-band .theatre-info-bar {
  background: color-mix(in srgb, var(--studio-bg) 78%, #000000);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-inline-start: 4px solid var(--red-light);
}
.media-studio-band .theatre-title a {
  color: #ffffff;
}
.media-studio-band .theatre-title a:hover {
  color: var(--green-soft-dark-mode);
}
.media-studio-band .theatre-duration {
  color: #b7d1c6;
}
.media-studio-band .theatre-article-link {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #e4f2ec;
}
.media-studio-band .theatre-article-link:hover {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}
.media-studio-band .video-queue-panel {
  background: color-mix(in srgb, var(--studio-bg) 80%, #000000);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.media-studio-band .video-queue-header {
  background: color-mix(in srgb, var(--studio-bg) 92%, #ffffff);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.media-studio-band .video-queue-heading {
  color: #ffffff;
}
.media-studio-band .video-queue-counter {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}
.media-studio-band .video-card {
  background: color-mix(in srgb, var(--studio-bg) 92%, #ffffff);
  border-color: rgba(255, 255, 255, 0.1);
}
.media-studio-band .video-card:hover {
  background: color-mix(in srgb, var(--studio-bg) 84%, #ffffff);
  border-color: var(--green-light);
}
.media-studio-band .video-card.is-playing {
  background: color-mix(in srgb, var(--studio-bg) 78%, #ffffff);
  border-color: var(--green-light);
  border-inline-start: 3px solid var(--red-light);
}
.media-studio-band .video-card h3,
.media-studio-band .video-select-btn {
  color: #f3f8f6;
}
.media-studio-band .video-card:hover .video-select-btn,
.media-studio-band .video-card.is-playing .video-select-btn {
  color: var(--green-soft-dark-mode);
}
.media-studio-band .video-card-index,
.media-studio-band .video-card-foot {
  color: #a4bfb4;
}
.media-studio-band .video-open-article {
  color: var(--red-soft-dark-mode);
}
.media-studio-band .video-open-article:hover {
  color: #ffffff;
}

/* Integrated Studio Sections Spacing (supports Video <-> Reels in any order) */
.media-studio-band .wrap > * + * {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.trending-standalone-band {
  padding: 16px 16px 0;
}
.trending-standalone-band .trending-bar {
  margin-bottom: 0;
}
.main-col .spotlight-duo-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}
.main-col .spotlight-duo-grid > .spotlight-card:first-child {
  border-inline-end: 0;
  padding-inline-end: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.media-studio-band .reels-head {
  background: transparent;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
.media-studio-band .reels-head h2 {
  color: #ffffff;
}
.media-studio-band .reels-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.media-studio-band .reels-nav-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}
.media-studio-band .reels-body {
  padding: 0;
}
.media-studio-band .reel-card {
  border-color: rgba(255, 255, 255, 0.16);
}

/* Light-First Adaptive Reels Band (Light in Light Mode, Dark in Dark Mode) */
.reels-band {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 20px;
}
.media-studio-band + .reels-band,
.hero-bento-band + .reels-band {
  border-top: 0;
}

/* Lower Full-Width Borderless Editorial Magazine Grid */
.lower-editorial-band {
  padding: 36px 16px 46px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.lower-editorial-band .editorial-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.reels-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.reels-head h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}
.reels-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.reels-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1877f2;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
}
.reels-nav-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.reels-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--muted-light);
  background: var(--surface);
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.reels-nav-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-tint);
}
.reels-body {
  padding: 14px 16px;
}
.reels-band .reels-body {
  padding: 0;
}
.reels-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: manipulation;
  scrollbar-width: thin;
  padding-bottom: 6px;
}
@media (prefers-reduced-motion: no-preference) {
  .reels-track {
    scroll-behavior: smooth;
  }
}
.reel-card {
  flex: 0 0 142px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0d10;
  box-shadow: var(--shadow);
}
.reel-media-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #0b0d10;
}
.reel-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 240ms ease-out;
}
@media (prefers-reduced-motion: no-preference) {
  .reel-card:hover .reel-poster-img {
    transform: scale(1.03);
  }
}
.reel-top-bar {
  position: absolute;
  top: 8px;
  inset-inline: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  z-index: 3;
  pointer-events: none;
}
.reel-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  background: rgba(14, 17, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.reel-fb-emblem {
  color: #ffffff;
  flex-shrink: 0;
}
.reel-play-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding-bottom: 30px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  touch-action: manipulation;
  cursor: pointer;
}
.reel-play-trigger:focus-visible {
  outline: none;
}
.reel-play-trigger:focus-visible .reel-play-icon {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  background: #1877f2;
  border-color: #ffffff;
}
.reel-play-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 19, 24, 0.76);
  border: 1.5px solid rgba(255, 255, 255, 0.82);
  color: #ffffff;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition:
    transform 160ms ease-out,
    background-color var(--transition),
    border-color var(--transition);
}
.reel-play-icon .icon-play {
  transform: translateX(-1px);
}
.reel-play-trigger:hover .reel-play-icon {
  transform: scale(1.08);
  background: #1877f2;
  border-color: #ffffff;
}
.reel-play-trigger:active .reel-play-icon {
  transform: scale(0.95);
}
.reel-bottom-dock {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 10px 10px 10px;
  background: rgba(11, 13, 16, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 3;
  pointer-events: none;
}
.reel-card-creator {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}
.reel-card-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1877f2;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.reel-card-avatar img,
.reel-fb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reel-card-author {
  font-size: 10.5px;
  font-weight: 700;
  color: #e4e6eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reel-card-verified {
  flex-shrink: 0;
}
.reel-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.38;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reels-admin-hint {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink-secondary);
  font-size: 13px;
}
.media-studio-band .reels-admin-hint {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #d6e4de;
}
.reels-admin-hint a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

/* Native Modal Dialog: Facebook Reels Full-Height Theater Viewer */
.reel-modal-dialog {
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  width: fit-content;
  max-width: 96dvw;
  max-height: 94dvh;
  overflow: visible;
  opacity: 0;
  transition-property: opacity, display, overlay;
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}
@media (prefers-reduced-motion: reduce) {
  .reel-modal-dialog {
    transition-duration: 0.1s;
  }
}
.reel-modal-dialog[open] {
  display: block;
  opacity: 1;
}
@starting-style {
  .reel-modal-dialog[open] {
    opacity: 0;
  }
}
.reel-modal-dialog:modal {
  overscroll-behavior: contain;
}
.reel-modal-dialog::backdrop {
  background: rgba(11, 12, 14, 0);
  overflow: hidden;
  overscroll-behavior: contain;
  transition-property: background-color, display, overlay;
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}
.reel-modal-dialog[open]::backdrop {
  background: rgba(11, 12, 14, 0.9);
}
@starting-style {
  .reel-modal-dialog[open]::backdrop {
    background: rgba(11, 12, 14, 0);
  }
}
.reel-fb-theater {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.reel-fb-theater-close,
.reel-fb-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(36, 37, 38, 0.92);
  color: #e4e6eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  transition:
    background-color var(--transition),
    transform 140ms ease-out;
}
.reel-fb-theater-close {
  align-self: flex-start;
  margin-top: 4px;
}
.reel-fb-theater-close:hover,
.reel-fb-nav-btn:hover {
  background: #3a3b3c;
  color: #ffffff;
}
.reel-fb-theater-close:focus-visible,
.reel-fb-nav-btn:focus-visible,
.reel-fb-hud-btn:focus-visible,
.reel-fb-watch-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.reel-fb-nav-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reel-fb-player-card {
  position: relative;
  height: min(740px, 88dvh);
  aspect-ratio: 9 / 16;
  max-width: calc(100dvw - 144px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.65);
}
.reel-modal-viewport {
  position: absolute;
  inset: 0;
  background: #000000;
  z-index: 1;
}
.reel-modal-viewport video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  border: 0;
  display: block;
}
.reel-modal-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}
.reel-fb-top-hud {
  position: absolute;
  top: 0;
  inset-inline: 0;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 4;
  pointer-events: none;
}
.reel-fb-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: rgba(18, 20, 24, 0.74);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.reel-fb-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}
.reel-fb-top-actions[hidden] {
  display: none;
}
.reel-fb-hud-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(18, 20, 24, 0.76);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--transition);
}
.reel-fb-hud-btn:hover {
  background: rgba(36, 39, 44, 0.94);
}
.reel-fb-player-card:not(.is-paused) #reel-fb-play-btn .icon-play,
.reel-fb-player-card.is-paused #reel-fb-play-btn .icon-pause,
.reel-fb-player-card:not(.is-muted) #reel-fb-mute-btn .icon-muted,
.reel-fb-player-card.is-muted #reel-fb-mute-btn .icon-unmuted {
  display: none;
}
.reel-fb-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  appearance: none;
  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #ffffff;
  pointer-events: none;
  animation: reel-spin 0.85s linear infinite;
}
.reel-fb-spinner[hidden] {
  display: none;
}
.reel-fb-spinner:indeterminate::-webkit-progress-bar {
  display: none;
  background: none;
}
.reel-fb-spinner:indeterminate::-webkit-progress-value {
  display: none;
  background: none;
}
.reel-fb-spinner:indeterminate::-moz-progress-bar {
  display: none;
  background: none;
}
@media (prefers-reduced-motion: reduce) {
  .reel-fb-spinner {
    animation-duration: 6s;
  }
}
@keyframes reel-spin {
  to {
    transform: translate(-50%, -50%) rotate(1turn);
  }
}
.reel-fb-error-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(10, 12, 16, 0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}
.reel-fb-error-fallback[hidden] {
  display: none;
}
.reel-fb-error-msg {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: #f0f2f5;
  margin: 0;
}
.reel-fb-stage-tap {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
}
.reel-fb-stage-tap[hidden] {
  display: none;
}
.reel-fb-stage-tap:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -3px;
}
.reel-fb-center-state {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(18, 20, 24, 0.78);
  border: 1.5px solid rgba(255, 255, 255, 0.44);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease-out,
    transform 160ms ease-out;
}
.reel-fb-player-card.is-paused:not(.is-buffering) .reel-fb-center-state {
  opacity: 1;
}
.reel-fb-bottom-hud {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 4;
  padding: 12px 12px 6px;
  background: rgba(11, 13, 16, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reel-fb-creator-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reel-fb-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1877f2;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}
.reel-fb-creator-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.reel-fb-creator-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.reel-fb-creator-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reel-fb-verified {
  flex-shrink: 0;
}
.reel-fb-cat-label {
  font-size: 11px;
  color: #b0b3b8;
  font-weight: 600;
}
.reel-fb-watch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  background: #1877f2;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 28px;
  transition: background-color var(--transition);
}
.reel-fb-watch-btn:hover {
  background: #166fe5;
  color: #ffffff;
}
.reel-fb-caption {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.48;
  color: #f0f2f5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reel-fb-scrubber-wrap {
  position: relative;
  width: 100%;
  height: 18px;
  display: flex;
  align-items: center;
}
.reel-fb-scrubber-wrap[hidden] {
  display: none;
}
.reel-fb-scrubber-track {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  overflow: hidden;
  transition: height 120ms ease-out;
}
.reel-fb-scrubber-wrap:hover .reel-fb-scrubber-track,
.reel-fb-scrubber-wrap:focus-within .reel-fb-scrubber-track {
  height: 5px;
}
.reel-fb-scrubber-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: right center;
}
html:not([dir="rtl"]) .reel-fb-scrubber-fill {
  transform-origin: left center;
}
.reel-fb-seek {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.reel-fb-seek:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 2px;
}
.reel-fb-seek::-webkit-slider-runnable-track {
  height: 18px;
  background: transparent;
}
.reel-fb-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 50%;
  background: #ffffff;
  border: 0;
  opacity: 0;
  transition: opacity 120ms ease-out;
}
.reel-fb-scrubber-wrap:hover .reel-fb-seek::-webkit-slider-thumb,
.reel-fb-seek:focus-visible::-webkit-slider-thumb {
  opacity: 1;
}
.reel-fb-seek::-moz-range-track {
  height: 18px;
  background: transparent;
  border: 0;
}
.reel-fb-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 0;
  opacity: 0;
}
.reel-fb-scrubber-wrap:hover .reel-fb-seek::-moz-range-thumb,
.reel-fb-seek:focus-visible::-moz-range-thumb {
  opacity: 1;
}
@media (max-width: 640px) {
  .reel-modal-dialog {
    width: 100dvw;
    max-width: 100dvw;
    height: 100dvh;
    max-height: 100dvh;
    inset: 0;
    margin: 0;
  }
  .reel-fb-theater {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
  }
  .reel-fb-player-card {
    width: 100%;
    height: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    border: 0;
  }
  .reel-fb-theater-close {
    position: absolute;
    top: max(10px, env(safe-area-inset-top, 0px));
    inset-inline-start: max(10px, env(safe-area-inset-left, 0px));
    z-index: 6;
    width: 44px;
    height: 44px;
    margin-top: 0;
  }
  .reel-fb-top-hud {
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    padding-inline-start: 62px;
  }
  .reel-fb-bottom-hud {
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }
  .reel-fb-nav-rail {
    position: absolute;
    inset-inline-end: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
  }
  .reel-fb-nav-btn,
  .reel-fb-hud-btn {
    width: 44px;
    height: 44px;
  }
}

/* Modern Split-Screen Video Studio + Interactive Broadcast Queue */
.video-studio-body {
  padding: 16px;
}
.video-studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.video-theatre-stage {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.theatre-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #131d19;
  overflow: hidden;
}
.theatre-fallback-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}
.theatre-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.video-theatre-stage:hover .theatre-poster {
  transform: scale(1.02);
}
.theatre-viewport iframe,
.theatre-viewport video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.theatre-stage-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(18, 30, 26, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}
.theatre-stage-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 1px;
  display: inline-block;
}
.theatre-stage-dur {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 12px;
  padding: 3px 8px;
  background: rgba(18, 30, 26, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xs);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.theatre-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition:
    transform var(--transition),
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition);
}
.theatre-play-btn svg {
  margin-inline-start: 2px;
}
.theatre-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.07);
  background: var(--red);
  color: #ffffff;
  border-color: #ffffff;
}
.theatre-fallback-cta {
  position: absolute;
  bottom: 16px;
  inset-inline-start: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--red);
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 800;
}
.theatre-fallback-cta:hover {
  background: var(--green);
}
.theatre-info-bar {
  padding: 14px 16px;
  background: var(--paper);
  border-top: 1px solid var(--border);
  border-inline-start: 4px solid var(--red);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.theatre-info-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.theatre-meta-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.theatre-duration {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.theatre-article-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  padding: 3px 9px;
  background: var(--green-tint);
  border: 1px solid var(--green-tint-border);
  border-radius: var(--radius-xs);
}
.theatre-article-link:hover {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
}
.theatre-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}
.theatre-title a {
  color: var(--ink);
}
.theatre-title a:hover {
  color: var(--green);
}

/* Queue Panel (Up-Next Broadcast List) */
.video-queue-panel {
  display: flex;
  flex-direction: column;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-queue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}
.video-queue-heading {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.video-queue-counter {
  font-size: 11.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--red);
  background: var(--red-tint);
  border: 1px solid var(--red-tint-border);
  border-radius: var(--radius-xs);
  padding: 2px 8px;
}
.video-playlist-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  max-height: 345px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.multimedia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.video-card {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--border);
  transition:
    transform var(--transition),
    border-color var(--transition),
    background-color var(--transition),
    box-shadow var(--transition);
}
.video-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}
.video-card.is-playing {
  background: var(--green-tint);
  border-color: var(--green);
  border-inline-start: 3px solid var(--red);
}
.video-card:has(.video-select-btn:focus-visible) {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.video-thumb-media {
  position: relative;
  width: 118px;
  height: 76px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #131d19;
  flex-shrink: 0;
}
.video-thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.video-card:hover .video-thumb-media img {
  transform: scale(1.04);
}
.play-indicator {
  position: absolute;
  bottom: 5px;
  inset-inline-start: 5px;
  width: 24px;
  height: 24px;
  background: rgba(18, 30, 26, 0.85);
  color: #ffffff;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition);
}
.video-card:hover .play-indicator,
.video-card.is-playing .play-indicator {
  background: var(--red);
}
.video-now-playing {
  display: none;
  position: absolute;
  top: 5px;
  inset-inline-start: 5px;
  background: var(--red);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
}
.video-card.is-playing .video-now-playing {
  display: inline-block;
}
.video-duration {
  position: absolute;
  bottom: 5px;
  inset-inline-end: 5px;
  background: rgba(18, 30, 26, 0.86);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 1px 5px;
  border-radius: var(--radius-xs);
}
.video-card .txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.video-card-meta-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.video-card-index {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.video-card.is-playing .video-card-index {
  color: var(--red);
}
.video-card h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}
.video-select-btn {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: start;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-select-btn::after {
  content: "";
  position: absolute;
  inset: 0;
}
.video-select-btn:focus-visible {
  outline: none;
}
.video-card:hover .video-select-btn,
.video-card.is-playing .video-select-btn {
  color: var(--green);
}
.video-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.video-open-article {
  position: relative;
  z-index: 1;
  font-weight: 700;
  color: var(--red);
}
.video-open-article:hover {
  color: var(--green);
  text-decoration: underline;
}

.opinions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.opinion-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--red);
  border-radius: var(--radius);
  align-items: flex-start;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.opinion-content {
  flex: 1;
}
.opinion-author {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--red);
}
.opinion-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  margin: 4px 0 6px;
}
.opinion-quote {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.split-category-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Dual Category Spotlight Bento (Borderless Split Columns) */
.spotlight-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.spotlight-duo-grid > .spotlight-card {
  padding-top: 0;
  border-top: 0;
}
.spotlight-duo-grid > .spotlight-card:first-child {
  border-inline-end: 1px solid var(--border);
  padding-inline-end: 32px;
}
.spotlight-body {
  display: flex;
  flex-direction: column;
}
.spotlight-lead {
  position: relative;
  padding: 0 0 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spotlight-lead a.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.spotlight-lead a.card-link:focus-visible {
  outline: none;
}
.spotlight-lead:has(a.card-link:focus-visible) {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.spotlight-lead a:not(.card-link) {
  position: relative;
  z-index: 1;
}
.spotlight-lead-thumb {
  display: block;
  height: 195px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-alt);
}
.spotlight-lead-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.spotlight-lead:hover .spotlight-lead-thumb img {
  transform: scale(1.025);
}
.spotlight-lead-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.spotlight-lead-info h3 {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}
.spotlight-lead:hover .spotlight-lead-info h3 a,
.spotlight-lead-info h3 a:hover {
  color: var(--green);
}
.spotlight-mini-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13.5px;
  transition:
    background-color var(--transition),
    padding-inline-start var(--transition);
}
.spotlight-mini-row:last-child {
  border-bottom: 0;
}
.spotlight-mini-row:hover {
  background: var(--green-tint);
  padding-inline-start: 10px;
}
.spotlight-bullet {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 1px;
  flex-shrink: 0;
}
.spotlight-mini-title {
  flex: 1;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}
.spotlight-mini-time {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* ==========================================================================
   13. Sidebar Widgets (Flat Solid Ambient Surfaces, Zero Gradients)
   ========================================================================== */
.rank-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
  transition:
    background-color var(--transition),
    padding-inline-start var(--transition);
}
.rank-row:last-child {
  border-bottom: 0;
}
.rank-row:hover {
  background: var(--green-tint);
  padding-inline-start: 20px;
}
.rank-num {
  width: 28px;
  border-inline-end: 2px solid var(--border);
  padding-inline-end: 8px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1.25;
  flex-shrink: 0;
}
.rank-row:nth-child(1) .rank-num {
  color: var(--red);
  border-inline-end-color: var(--red);
}
.rank-row:nth-child(2) .rank-num {
  color: var(--green);
  border-inline-end-color: var(--green);
}
.rank-row h4 {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

/* Weather & Prayer Widget (Solid Ambient Token Surface, Zero Gradient) */
.weather-prayer-widget {
  background: var(--weather-bg);
  color: #ffffff;
  border: 1px solid color-mix(in srgb, var(--weather-bg) 82%, #ffffff);
  border-radius: var(--radius);
  padding: 16px;
}
.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 10px;
}
.weather-temp {
  font-size: 24px;
  font-weight: 800;
}
.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  text-align: center;
  font-size: 11px;
}
.prayer-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 2px;
  border-radius: var(--radius-xs);
}
.prayer-item.is-next {
  background: var(--red);
  border-color: var(--red-light);
}
.prayer-name {
  color: #cbe2d9;
  font-size: 10px;
}
.prayer-item.is-next .prayer-name {
  color: #ffffff;
  font-weight: 700;
}
.prayer-time {
  font-weight: 700;
  margin-top: 2px;
}

/* Newsletter Widget */
.newsletter {
  background: var(--newsletter-bg);
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--newsletter-bg) 82%, #ffffff);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 20px;
}
.newsletter h3 {
  font-family: var(--font-display);
  font-size: 15.5px;
  margin-bottom: 6px;
  color: #fff;
}
.newsletter p {
  font-size: 12.5px;
  color: #cbe2d8;
  margin-bottom: 14px;
}
.newsletter form {
  display: flex;
  gap: 6px;
}
.newsletter input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding-inline: 10px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.newsletter input::placeholder {
  color: #8f9b96;
}
.newsletter button {
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.newsletter button:hover {
  background: var(--red-dark);
}
.newsletter-feedback {
  margin-top: 8px;
  font-size: 12px;
  color: #7cd4b4;
  font-weight: 600;
}

/* Ad Unit Box */
.ad-box {
  height: 250px;
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  gap: 6px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 6px;
  padding: 14px 16px;
}

/* ==========================================================================
   14. Single Article Page, Utility Bar, TOC & Embeds
   ========================================================================== */
.breadcrumb {
  font-size: 12.5px;
  color: var(--muted);
  padding: 8px 0 4px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a:hover {
  color: var(--green);
}

.article-header {
  background: var(--paper);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.article-header h1 {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.45;
  font-weight: 800;
  margin: 12px 0;
  color: var(--ink);
}
.article-lede {
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.article-meta .author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.article-meta .author .name {
  font-size: 13.5px;
  font-weight: 700;
}
.article-meta .author .date {
  font-size: 12px;
  color: var(--muted);
}

.article-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}
.font-size-controls {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-alt);
}
.tool-btn {
  height: 32px;
  padding-inline: 10px;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 800;
}
.tool-btn + .tool-btn {
  border-inline-start: 1px solid var(--border);
}
.tool-btn:hover {
  background: var(--green-tint);
  color: var(--green);
}

.share {
  display: flex;
  gap: 6px;
}
.share a,
.share button {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-secondary);
}
.share a:hover,
.share button:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.share svg {
  width: 15px;
  height: 15px;
}
.copy-toast {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-tint);
  border: 1px solid var(--green);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

/* Auto Table of Contents */
.article-toc {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 22px;
}
.article-toc summary {
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}
.article-toc-list {
  margin-top: 10px;
  padding-inline-start: 18px;
  list-style: decimal;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.article-toc-list li {
  font-size: 13.5px;
  color: var(--ink-secondary);
}
.article-toc-list li.toc-h3 {
  margin-inline-start: 14px;
  font-size: 12.5px;
}
.article-toc-list a:hover {
  color: var(--red);
  text-decoration: underline;
}

.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--border);
}
.article-cover img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.article-cover figcaption {
  background: var(--paper);
  padding: 10px 16px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.article-body {
  font-size: var(--article-font-size, 16px);
  line-height: 1.95;
  color: var(--ink-secondary);
  max-width: 72ch;
}
.article-body p {
  margin-bottom: 20px;
}
.article-body blockquote {
  border-inline-start: 4px solid var(--red);
  background: var(--red-tint);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--ink);
  border-radius: var(--radius-sm);
}
.article-body h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 28px 0 12px;
  color: var(--ink);
}
.article-body h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 22px 0 10px;
  color: var(--ink);
}

/* Article Media & oEmbeds */
.article-body .wp-block-embed,
.article-body .infosocial-embed,
.article-body .responsive-embed,
.article-body .embed-container,
.entry-content .wp-block-embed {
  margin: 28px 0;
  clear: both;
  width: 100%;
}
.article-body .wp-block-embed.aligncenter,
.article-body .infosocial-embed.aligncenter {
  text-align: center;
}
.article-body .wp-block-embed__wrapper,
.article-body .infosocial-embed-video,
.article-body .responsive-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0e0d;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.article-body .wp-has-aspect-ratio .wp-block-embed__wrapper::before,
.article-body .wp-block-embed__wrapper::before {
  display: none !important;
}
.article-body .wp-block-embed__wrapper iframe,
.article-body .wp-block-embed__wrapper object,
.article-body .wp-block-embed__wrapper embed,
.article-body .infosocial-embed iframe,
.article-body .responsive-embed iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block;
}
.article-body
  iframe:not(.infosocial-embed iframe):not(.wp-block-embed__wrapper iframe):not(
    .instagram-media
  ):not([id^="twitter-widget"]):not(.tiktok-embed iframe):not(
    .wp-embedded-content
  ) {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  margin: 28px auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0b0e0d;
}
.article-body .wp-embed-aspect-4-3 .wp-block-embed__wrapper {
  aspect-ratio: 4 / 3;
}
.article-body .wp-embed-aspect-1-1 .wp-block-embed__wrapper {
  aspect-ratio: 1 / 1;
}
.article-body .wp-embed-aspect-9-16 .wp-block-embed__wrapper,
.article-body .is-type-vertical .wp-block-embed__wrapper,
.article-body .infosocial-embed-video.is-type-vertical {
  aspect-ratio: 9 / 16;
  max-width: 380px;
  margin-inline: auto;
}
/* Social & WordPress Rich Embeds (Instagram, X/Twitter, TikTok, WP Cards) */
.article-body .wp-block-embed.is-type-rich .wp-block-embed__wrapper,
.article-body .wp-block-embed-twitter .wp-block-embed__wrapper,
.article-body .wp-block-embed-instagram .wp-block-embed__wrapper,
.article-body .wp-block-embed-tiktok .wp-block-embed__wrapper,
.article-body .wp-block-embed-facebook .wp-block-embed__wrapper,
.article-body .wp-block-embed-wordpress .wp-block-embed__wrapper,
.article-body .infosocial-embed-social,
.article-body .infosocial-embed-wp {
  aspect-ratio: auto !important;
  background: transparent;
  border: 0;
  overflow: visible;
  display: flex;
  justify-content: center;
  width: 100%;
}
.article-body .wp-block-embed.is-type-rich .wp-block-embed__wrapper iframe,
.article-body .wp-block-embed-twitter .wp-block-embed__wrapper iframe,
.article-body .wp-block-embed-instagram .wp-block-embed__wrapper iframe,
.article-body .wp-block-embed-tiktok .wp-block-embed__wrapper iframe,
.article-body .wp-block-embed-facebook .wp-block-embed__wrapper iframe,
.article-body .wp-block-embed-wordpress .wp-block-embed__wrapper iframe,
.article-body .infosocial-embed-social iframe,
.article-body .infosocial-embed-wp iframe {
  position: relative !important;
  inset: auto !important;
  height: auto;
  max-width: 100%;
}
.article-body blockquote.instagram-media,
.article-body iframe.instagram-media,
.article-body .infosocial-embed-instagram blockquote {
  width: 100% !important;
  max-width: 540px !important;
  min-width: 0 !important;
  margin: 24px auto !important;
  background: var(--paper) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 14px 16px;
}
.article-body blockquote.twitter-tweet,
.article-body .twitter-tweet-rendered,
.article-body .infosocial-embed-twitter {
  max-width: 550px;
  width: 100%;
  margin-inline: auto !important;
}
.article-body blockquote.twitter-tweet {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--ink);
  background: var(--surface-alt);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}
.article-body blockquote.tiktok-embed,
.article-body .tiktok-embed {
  width: 100% !important;
  max-width: 340px !important;
  min-width: 280px !important;
  margin: 24px auto !important;
}
.article-body blockquote.tiktok-embed {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--red);
  background: var(--surface-alt);
  border-radius: var(--radius);
}
.article-body iframe.wp-embedded-content {
  width: 100% !important;
  max-width: 600px !important;
  margin-inline: auto !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  background: var(--paper) !important;
}

/* Native Internal Article Embed Card (Explicit Embeds Only) */
.article-body .infosocial-article-embed {
  position: relative;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 24px 0;
  padding: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--green);
  border-radius: var(--radius);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}
.article-body .infosocial-article-embed:has(a.card-link:hover) {
  border-color: var(--green);
  box-shadow: var(--shadow-hover);
}
.article-body .infosocial-article-embed:has(a.card-link:focus-visible) {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.article-body .infosocial-article-embed a.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}
.article-body .infosocial-article-embed a.card-link:focus-visible {
  outline: none;
}
.article-body .infosocial-article-embed a:not(.card-link) {
  position: relative;
  z-index: 1;
}
.infosocial-article-embed-thumb {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper);
}
.infosocial-article-embed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.infosocial-article-embed-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.infosocial-article-embed-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.infosocial-article-embed-kicker {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.infosocial-article-embed-title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.infosocial-article-embed:has(a.card-link:hover)
  .infosocial-article-embed-title
  a {
  color: var(--green);
}
.infosocial-article-embed-excerpt {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.infosocial-article-embed-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
}
.infosocial-article-embed-cta {
  margin-inline-start: auto;
  font-weight: 800;
  color: var(--green);
}
@media (max-width: 600px) {
  .article-body .infosocial-article-embed {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .infosocial-article-embed-excerpt {
    display: none;
  }
  .infosocial-article-embed-title {
    font-size: 14px;
  }
}
.article-body .wp-block-embed-youtube .wp-block-embed__wrapper::after,
.article-body .infosocial-embed-youtube::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--red);
  pointer-events: none;
  z-index: 2;
}
.article-body .wp-block-embed-vimeo .wp-block-embed__wrapper::after,
.article-body .infosocial-embed-vimeo::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--green);
  pointer-events: none;
  z-index: 2;
}
.article-body .wp-block-embed.is-type-audio .wp-block-embed__wrapper,
.article-body .wp-block-embed-spotify .wp-block-embed__wrapper,
.article-body .wp-block-embed-soundcloud .wp-block-embed__wrapper,
.article-body .infosocial-embed-audio {
  aspect-ratio: auto !important;
  background: transparent;
  border: none;
  overflow: visible;
}
.article-body .wp-block-embed-spotify iframe,
.article-body .infosocial-embed-audio iframe[src*="spotify"],
.article-body iframe[src*="spotify"] {
  position: relative !important;
  height: 152px !important;
  aspect-ratio: auto !important;
  border-radius: var(--radius) !important;
}
.article-body .wp-block-embed-soundcloud iframe,
.article-body .infosocial-embed-audio iframe[src*="soundcloud"],
.article-body iframe[src*="soundcloud"] {
  position: relative !important;
  height: 166px !important;
  aspect-ratio: auto !important;
  border-radius: var(--radius) !important;
}
.article-body video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #0b0e0d;
  margin: 24px 0;
  display: block;
  border: 1px solid var(--border);
}
.article-body audio {
  width: 100%;
  margin: 20px 0;
}
.article-body .wp-block-embed figcaption,
.article-body .infosocial-embed figcaption,
.article-body .responsive-embed figcaption,
.article-body .wp-element-caption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Bottom Article Most-Used Social Sharing Buttons (Official Brand Colors) */
.article-share {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.article-share-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 10px;
}
.article-share-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 1px;
  display: inline-block;
  flex: none;
}
.article-share-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.share-pill {
  --share-bg: var(--surface-alt);
  --share-hover: var(--green-tint);
  --share-border: var(--border);
  --share-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-block-size: 36px;
  padding: 6px 12px;
  background: var(--share-bg);
  border: 1px solid var(--share-border);
  border-radius: var(--radius);
  color: var(--share-fg);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  touch-action: manipulation;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform 140ms ease-out,
    box-shadow var(--transition);
}
.share-pill svg {
  flex: none;
}
.share-pill:hover {
  background: var(--share-hover);
  color: var(--share-fg);
  box-shadow: var(--shadow-hover);
}
.share-pill:active {
  transform: scale(0.97);
}
.share-pill:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.share-pill--whatsapp {
  --share-bg: #118744;
  --share-hover: #0d6f37;
  --share-border: #0d6f37;
  --share-fg: #ffffff;
}
.share-pill--facebook {
  --share-bg: #166fe5;
  --share-hover: #125bc0;
  --share-border: #125bc0;
  --share-fg: #ffffff;
}
.share-pill--x {
  --share-bg: #0f1419;
  --share-hover: #272c30;
  --share-border: #272c30;
  --share-fg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not(:has(> head > meta[name="color-scheme"][content="light"])):not(
      [data-theme="light"]
    )
    .share-pill--x {
    --share-border: rgba(255, 255, 255, 0.22);
  }
}
:root:has(> head > meta[name="color-scheme"][content="dark"]) .share-pill--x,
:root[data-theme="dark"] .share-pill--x {
  --share-border: rgba(255, 255, 255, 0.22);
}
.share-pill--telegram {
  --share-bg: #007cb8;
  --share-hover: #006699;
  --share-border: #006699;
  --share-fg: #ffffff;
}
.share-pill--linkedin {
  --share-bg: #0a66c2;
  --share-hover: #08529c;
  --share-border: #08529c;
  --share-fg: #ffffff;
}
.share-pill--copy:hover,
.share-pill--native:hover {
  --share-hover: var(--green-light-mode, #2a7a60);
  border-color: var(--green-light-mode, #2a7a60);
  color: #ffffff;
}
.share-copy-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.share-pill--copy .icon-check {
  display: none;
}
.share-pill--copy[data-copied] {
  --share-bg: var(--green-light-mode, #2a7a60);
  --share-hover: var(--green-light-mode, #2a7a60);
  border-color: var(--green-light-mode, #2a7a60);
  color: #ffffff;
}
.share-pill--copy[data-copied] .icon-copy {
  display: none;
}
.share-pill--copy[data-copied] .icon-check {
  display: block;
}
.share-pill--copy[data-failed] {
  --share-bg: var(--red-light-mode, #c24141);
  border-color: var(--red-light-mode, #c24141);
  color: #ffffff;
}
.share-copy-status {
  position: absolute;
  inset-block-end: calc(100% + 6px);
  inset-inline-start: 50%;
  transform: translateX(50%);
  padding: 4px 8px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms ease-out;
  z-index: 4;
}
.share-pill--copy[data-copied] + .share-copy-status,
.share-pill--copy[data-failed] + .share-copy-status {
  opacity: 1;
}

/* Bottom Article Channel Follow Banners (Google News, Telegram, WhatsApp) */
.article-channels {
  inline-size: 100%;
  container: article-channels / inline-size;
  margin: 18px 0 6px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.article-channels-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 10px;
}
.article-channels-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 1px;
  display: inline-block;
  flex: none;
}
.article-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.channel-banner {
  --channel-bg: var(--green);
  --channel-hover: var(--green-dark);
  --channel-border: var(--channel-hover);
  --channel-fg: #ffffff;
  --channel-sub-fg: rgba(255, 255, 255, 0.92);
  --channel-icon-bg: #ffffff;
  --channel-icon-fg: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  background: var(--channel-bg);
  border: 1px solid var(--channel-border);
  border-radius: var(--radius);
  color: var(--channel-fg);
  touch-action: manipulation;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform 140ms ease-out;
}
.channel-banner:hover {
  background: var(--channel-hover);
  border-color: var(--channel-border);
  color: var(--channel-fg);
  box-shadow: var(--shadow-hover);
}
.channel-banner:active {
  transform: scale(0.985);
}
.channel-banner:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.channel-banner--gnews {
  --channel-bg: #1a73e8;
  --channel-hover: #1558b0;
  --channel-border: #1558b0;
  --channel-fg: #ffffff;
  --channel-sub-fg: rgba(255, 255, 255, 0.92);
}
.channel-banner--telegram {
  --channel-bg: #007cb8;
  --channel-hover: #006699;
  --channel-border: #006699;
  --channel-fg: #ffffff;
  --channel-sub-fg: rgba(255, 255, 255, 0.92);
  --channel-icon-fg: #007cb8;
}
.channel-banner--whatsapp {
  --channel-bg: #118744;
  --channel-hover: #0d6f37;
  --channel-border: #0d6f37;
  --channel-fg: #ffffff;
  --channel-sub-fg: rgba(255, 255, 255, 0.92);
  --channel-icon-fg: #118744;
}
.channel-banner-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--channel-icon-bg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--channel-icon-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.channel-banner-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.channel-banner-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--channel-fg);
}
.channel-banner-sub {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--channel-sub-fg);
}
.channel-banner-arrow {
  color: var(--channel-sub-fg);
  flex: none;
  transition:
    transform 160ms ease-out,
    color var(--transition);
}
.channel-banner:hover .channel-banner-arrow {
  color: var(--channel-fg);
  transform: translateX(-3px);
}
@container article-channels (max-width: 600px) {
  .article-channels-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.article-tags a {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}
.article-tags a:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

/* ==========================================================================
   15. Pagination, Comments, Search Form, Footer & Scroll-Aware Back-to-Top
   ========================================================================== */
.page-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 700;
}
.page-links-label {
  color: var(--muted);
}
.page-links .page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding-inline: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--ink-secondary);
}
.page-links > .page-number {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}
.page-links a:hover .page-number {
  border-color: var(--green);
  color: var(--green);
}

.search-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.search-form .search-field {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
}
.search-form .search-field:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}
.search-form .search-submit {
  padding: 9px 18px;
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  transition: background-color var(--transition), border-color var(--transition);
}
.search-form .search-submit:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.comments-area {
  margin-top: 24px;
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.comment-list .children {
  margin-top: 12px;
  margin-inline-start: 22px;
  padding-inline-start: 14px;
  border-inline-start: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comment-body {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.comment-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ink);
}
.comment-author .avatar {
  border-radius: 50%;
}
.comment-metadata {
  font-size: 12px;
  color: var(--muted);
}
.comment-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-secondary);
}
.comment-body .reply {
  margin-top: 8px;
}
.comment-reply-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
}
.comment-reply-link:hover {
  color: var(--red);
}
.comment-reply-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.comment-notes,
.no-comments {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}
.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-form .comment-form-cookies-consent label {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--ink-secondary);
}
.comment-submit-btn {
  padding: 10px 22px;
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  background: var(--green);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}
.comment-submit-btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.nav-links {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding-inline: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-secondary);
}
.page-numbers:hover {
  border-color: var(--green);
  color: var(--green);
}
.page-numbers.current {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.site-footer {
  background: var(--footer-bg);
  color: #b7c2bd;
  padding: 40px 0 0;
  margin-top: auto;
  border-top: 3px solid var(--green);
}
.site-footer .wrap {
  display: flex;
  gap: 36px;
  padding-bottom: 30px;
  flex-wrap: wrap;
}
.footer-col {
  flex: 1;
  min-width: 170px;
}
.footer-brand .logo {
  color: #ffffff;
}
.footer-brand .logo img,
.footer-brand .custom-logo-link img {
  height: 52px;
  max-height: 56px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  margin-bottom: 8px;
}
.footer-brand p {
  font-size: 12.5px;
  margin-top: 8px;
  line-height: 1.65;
  color: #96a39d;
}
.footer-col h2.footer-heading,
.footer-col h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 6px;
}
.footer-col h2.footer-heading::after,
.footer-col h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 2px;
  background: var(--red);
}
.footer-col li {
  margin-bottom: 8px;
  font-size: 13px;
}
.footer-col a:hover {
  color: #ffffff;
}
.footer-bottom {
  background: var(--footer-bottom-bg);
  text-align: center;
  padding: 16px 0;
  font-size: 12px;
  color: #84918b;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   15b. Off-Screen Rendering Optimization & Layout Containment
   ========================================================================== */
.media-studio-band,
.reels-band,
.spotlight-duo-grid,
.feed-tabs-card,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 420px;
}
.weather-prayer-widget,
.newsletter,
.ad-box {
  contain: layout style paint;
}

/* Back-to-Top Button (Scroll-Aware) */
.back-to-top {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--green);
  color: #ffffff;
  border: 1px solid var(--green-dark);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  visibility: hidden;
  opacity: 0;
  translate: 0 12px;
  transition:
    visibility 0.25s,
    opacity 0.25s ease,
    translate 0.25s ease,
    background-color var(--transition);
}
.back-to-top:hover {
  background: var(--red);
  border-color: var(--red-dark);
}
body.scrolled .back-to-top {
  visibility: visible;
  opacity: 1;
  translate: 0 0;
}

/* ==========================================================================
   16. Forced Colors Mode (Windows High Contrast Accessibility)
   ========================================================================== */
@media (forced-colors: active) {
  .card,
  .story-card,
  .video-card,
  .opinion-card,
  .reel-card,
  .reels-nav-btn,
  :where(a, span).tag,
  .btn-load-more,
  .back-to-top,
  .weather-prayer-widget,
  .newsletter {
    border: 1px solid CanvasText;
  }
  .feed-tablist [role="tab"][aria-selected="true"]::after {
    border-block-end-color: Highlight;
  }
  :focus-visible {
    outline: 2px solid Highlight;
  }
}

/* ==========================================================================
   17. Responsive Breakpoints (Tablet & Compact Mobile)
   ========================================================================== */
@media (max-width: 1040px) {
  .nav-inline {
    display: none;
  }
  .btn-toggle {
    display: inline-flex;
  }
}

@media (max-width: 960px) {
  .hero-bento-band {
    padding: 12px 12px 20px;
  }
  .home-bento-showcase {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .bento-side-deck {
    border-inline-start: 0;
    padding-inline-start: 0;
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }
  .spotlight-duo-grid > .spotlight-card:first-child {
    border-inline-end: 0;
    padding-inline-end: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }
  .stream-list-wide {
    grid-template-columns: 1fr;
  }
  .media-studio-band {
    padding-block: 28px;
  }
  .reels-band {
    padding-block: 18px;
  }
  .hero {
    grid-template-columns: 1fr;
    border-inline-start: 0;
    border-top: 3px solid var(--red);
  }
  .hero img {
    height: 240px;
  }
  .story-grid,
  .related-grid,
  .multimedia-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .video-studio-layout {
    grid-template-columns: 1fr;
  }
  .video-playlist-grid {
    max-height: none;
  }
  .opinions-grid,
  .split-category-row,
  .spotlight-duo-grid {
    grid-template-columns: 1fr;
  }
  .slider-card {
    min-height: 360px;
    grid-template-rows: 360px;
  }
  .slider-media-pane {
    height: 360px;
  }
  .slider-thumb {
    flex: 0 0 68px;
    min-width: 68px;
    height: 48px;
    padding: 3px;
    justify-content: center;
  }
  .slider-thumb img {
    width: 100%;
    height: 100%;
  }
  .slider-thumb-label {
    display: none;
  }
  .content,
  #main-content:not(.home-editorial-main) {
    flex-direction: column;
    padding: 20px 12px 32px;
  }
  .lower-editorial-band {
    padding: 26px 12px 36px;
  }
  .main-col {
    width: 100%;
  }
  .side-col {
    width: 100%;
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .utility,
  .breadcrumb,
  .logo-tagline,
  .search-btn-label,
  .search-kbd {
    display: none !important;
  }
  .btn-header-search {
    width: 36px;
    padding-inline: 0;
  }
  .search-modal-dialog {
    margin: 16px auto auto;
    width: calc(100vw - 20px);
  }
  .search-modal-form {
    flex-direction: column;
  }
  .search-modal-foot {
    display: none;
  }
  .site-header .wrap {
    padding-block: 8px;
    padding-inline: 12px;
  }
  .logo img,
  .custom-logo-link img {
    height: 32px;
    max-height: 34px;
  }
  .slider-card {
    min-height: 0;
    grid-template-rows: auto auto;
  }
  .slider-media-pane {
    grid-area: 1 / 1;
    height: 220px;
  }
  .slider-editorial-pane {
    grid-area: 2 / 1;
    align-self: stretch;
    position: static;
    margin: 0;
    border: 0;
    border-radius: 0;
    border-top: 3px solid var(--red);
    background: var(--studio-bg);
    padding: 14px;
  }
  .slider-thumb {
    width: 58px;
    height: 44px;
    flex: 0 0 58px;
    min-width: 58px;
    padding: 3px;
    justify-content: center;
  }
  .media-studio-band,
  .reels-band {
    padding-block: 16px;
  }
  .media-studio-band .wrap > * + * {
    margin-top: 18px;
    padding-top: 16px;
  }
  .studio-head,
  .reels-head,
  .media-studio-band .reels-head {
    padding-bottom: 8px;
    margin-bottom: 10px;
    gap: 8px;
  }
  .studio-head h2,
  .reels-head h2 {
    font-size: 15.5px;
    line-height: 1.3;
  }
  .reels-title-wrap {
    min-width: 0;
    gap: 7px;
  }
  .reels-live-badge {
    font-size: 10px;
    padding: 2px 7px;
  }
  .reels-nav-controls {
    gap: 8px;
  }
  .reels-body {
    padding: 10px 12px;
  }
  .media-studio-band .reels-body,
  .reels-band .reels-body {
    padding: 0;
  }
  .reels-track {
    gap: 8px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .reels-track::-webkit-scrollbar {
    display: none;
  }
  .reel-card {
    flex: 0 0 136px;
  }
  .reel-media-stage {
    aspect-ratio: 1.95 / 3.25;
  }
  .reel-play-trigger {
    padding-bottom: 44px;
  }
  .reel-play-icon {
    width: 38px;
    height: 38px;
  }
  .reel-bottom-dock {
    padding: 7px 8px;
  }
  .reel-title {
    font-size: 11px;
    line-height: 1.32;
  }
  .slider-title {
    font-size: 16.5px;
  }
  .slider-excerpt,
  .splide__arrows,
  .splide__arrow {
    display: none !important;
  }
  .story-grid,
  .multimedia-grid,
  .related-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .video-card {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 9px;
  }
  .video-thumb-media {
    width: 98px;
    height: 66px;
  }
  .theatre-play-btn {
    width: 50px;
    height: 50px;
  }
  .story-card,
  .story-card .story-card-inner {
    flex-direction: row;
    align-items: center;
  }
  .story-card .thumb-wrap {
    width: 96px;
    height: 80px;
    min-height: 80px;
    flex-shrink: 0;
  }
  .story-card .txt {
    padding: 8px 10px;
    gap: 4px;
  }
  .story-card h3 {
    font-size: 12.5px;
  }
  .story-card-excerpt {
    display: none;
  }
  .trending-bar {
    padding: 8px 10px;
    gap: 8px;
  }
  .article-header {
    padding: 14px 16px;
  }
  .hero-text {
    padding: 14px;
  }
  .hero-text h1,
  .hero-text .hero-headline {
    font-size: 17px;
  }
  .hero img {
    height: 190px;
  }
  .list-row {
    padding: 9px 12px;
    gap: 10px;
  }
  .list-row img {
    width: 74px;
    height: 56px;
  }
  .list-row h4 {
    font-size: 12.5px;
  }
  .article-header h1 {
    font-size: 20px;
  }
  .article-cover img {
    height: 220px;
  }
  .site-footer .wrap {
    flex-direction: column;
    gap: 20px;
  }
}
