/*
Theme Name: RAGE X Intelligence
Theme URI: https://ragex.co
Author: RAGE X Intelligence
Author URI: https://ragex.co
Description: A high-performance military intelligence news theme for RAGE X. Dark/Light/Auto color modes. Zero-CLS mobile. Blue screen fix. Professional homepage v4. Upgraded Command Center. Decode. Dominate. Deliver.
Version: 17.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ragex
Tags: news, magazine, dark, military, intelligence, responsive, custom-menu, featured-images, custom-logo, translation-ready
*/

/* Fonts loaded via preload in header.php for non-render-blocking performance */

/* =============================================
   BLUE SCREEN FIX v4.0
   Style html element directly BEFORE any other rules.
   Prevents browser default blue tint on slow CSS loads.
   ============================================= */
html {
  background-color: #0e0e0e;
  color: #E8E8E8;
  color-scheme: dark;
}
html[data-theme="light"] {
  background-color: #f4f4f4;
  color: #111111;
  color-scheme: light;
}
@media(prefers-color-scheme:light) {
  html[data-theme="auto"] {
    background-color: #f4f4f4;
    color: #111111;
    color-scheme: light;
  }
}

/* =============================================
   DARK THEME (DEFAULT)
   ============================================= */
:root,[data-theme="dark"]{
  color-scheme:dark;
  --rage-red:#9A0000;--rage-red-light:#C41C1C;--rage-red-dim:#6b0000;
  --tac-yellow:#CCAA00;--intel-blue:#1B365D;--intel-blue-light:#3a6aaa;
  --bg-body:#0e0e0e;--bg-s1:#141414;--bg-s2:#1a1a1a;--bg-s3:#202020;--bg-s4:#272727;
  --border:rgba(255,255,255,0.08);--border-mid:rgba(255,255,255,0.13);--border-strong:rgba(255,255,255,0.2);
  --text-p:#E8E8E8;--text-s:#A0A0A0;--text-m:#555555;--text-inv:#0e0e0e;
  --header-bg:#000;--nav-bg:#111;--nav-item:#666;--nav-hover:#fff;
  --card-bg:#141414;--card-border:rgba(255,255,255,0.07);--card-hover-border:#9A0000;
  --widget-bg:#141414;--widget-title-bg:#1a1a1a;
  --footer-bg:#000;--footer-border:rgba(255,255,255,0.06);
  --alert-bg:rgba(154,0,0,0.07);--alert-border:rgba(154,0,0,0.25);
  --analysis-bg:rgba(27,54,93,0.18);--analysis-border:#1B365D;
  --input-bg:#0e0e0e;--input-border:rgba(255,255,255,0.1);--input-c:#E8E8E8;--input-ph:#3a3a3a;
  --shadow-card:0 4px 24px rgba(0,0,0,0.7);--shadow-drop:0 8px 32px rgba(0,0,0,0.85);
  --scroll-track:#111;--scroll-thumb:#2e2e2e;
  --code-bg:#111;--code-c:#88ccdd;--sel-bg:rgba(154,0,0,0.3);
}

/* =============================================
   LIGHT THEME
   ============================================= */
[data-theme="light"]{
  color-scheme:light;
  --bg-body:#f4f4f4;--bg-s1:#ffffff;--bg-s2:#f0f0f0;--bg-s3:#e6e6e6;--bg-s4:#dedede;
  --border:rgba(0,0,0,0.1);--border-mid:rgba(0,0,0,0.16);--border-strong:rgba(0,0,0,0.25);
  --text-p:#111111;--text-s:#444444;--text-m:#888888;--text-inv:#ffffff;
  --header-bg:#ffffff;--nav-bg:#f5f5f5;--nav-item:#555;--nav-hover:#111;
  --card-bg:#ffffff;--card-border:rgba(0,0,0,0.09);--card-hover-border:#9A0000;
  --widget-bg:#ffffff;--widget-title-bg:#f0f0f0;
  --footer-bg:#111;--footer-border:rgba(255,255,255,0.07);
  --alert-bg:rgba(154,0,0,0.04);--alert-border:rgba(154,0,0,0.2);
  --analysis-bg:rgba(27,54,93,0.06);--analysis-border:#3a6aaa;
  --input-bg:#fff;--input-border:rgba(0,0,0,0.15);--input-c:#111;--input-ph:#aaa;
  --shadow-card:0 2px 16px rgba(0,0,0,0.1);--shadow-drop:0 8px 24px rgba(0,0,0,0.15);
  --scroll-track:#eee;--scroll-thumb:#ccc;
  --code-bg:#eee;--code-c:#005588;--sel-bg:rgba(154,0,0,0.15);
}

/* =============================================
   AUTO MODE (system preference)
   ============================================= */
@media(prefers-color-scheme:light){
  [data-theme="auto"]{
    --bg-body:#f4f4f4;--bg-s1:#fff;--bg-s2:#f0f0f0;--bg-s3:#e6e6e6;--bg-s4:#dedede;
    --border:rgba(0,0,0,0.1);--border-mid:rgba(0,0,0,0.16);--border-strong:rgba(0,0,0,0.25);
    --text-p:#111;--text-s:#444;--text-m:#888;--text-inv:#fff;
    --header-bg:#fff;--nav-bg:#f5f5f5;--nav-item:#555;--nav-hover:#111;
    --card-bg:#fff;--card-border:rgba(0,0,0,0.09);--card-hover-border:#9A0000;
    --widget-bg:#fff;--widget-title-bg:#f0f0f0;
    --footer-bg:#111;--footer-border:rgba(255,255,255,0.07);
    --alert-bg:rgba(154,0,0,0.04);--alert-border:rgba(154,0,0,0.2);
    --analysis-bg:rgba(27,54,93,0.06);--analysis-border:#3a6aaa;
    --input-bg:#fff;--input-border:rgba(0,0,0,0.15);--input-c:#111;--input-ph:#aaa;
    --shadow-card:0 2px 16px rgba(0,0,0,0.1);--shadow-drop:0 8px 24px rgba(0,0,0,0.15);
    --scroll-track:#eee;--scroll-thumb:#ccc;
    --code-bg:#eee;--code-c:#005588;--sel-bg:rgba(154,0,0,0.15);
  }
}

/* =============================================
   TYPOGRAPHY TOKENS
   ============================================= */
:root{
  --font-display:'Oswald',Impact,'Arial Black',sans-serif;
  --font-body:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --font-mono:'JetBrains Mono','Cascadia Code','Fira Code','Courier New',monospace;
  --font-serif:'Lora','Georgia','Times New Roman',serif;
  --container-xl:1320px;--container-lg:1100px;--container-md:800px;
  --transition:0.18s ease;--radius:2px;
}

/* =============================================
   RESET
   ============================================= */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{font-size:16px;scroll-behavior:smooth;-webkit-text-size-adjust:100%;scrollbar-color:var(--scroll-thumb) var(--scroll-track);scrollbar-width:thin;overflow-x:hidden;width:100%;}
::-webkit-scrollbar{width:6px;height:6px;}
::-webkit-scrollbar-track{background:var(--scroll-track);}
::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border-radius:3px;}
::-webkit-scrollbar-thumb:hover{background:var(--rage-red);}
::selection{background:var(--sel-bg);color:var(--text-p);}
body{background:var(--bg-body);color:var(--text-p);font-family:var(--font-body);font-weight:400;line-height:1.65;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:hidden;min-height:100vh;}
a{color:var(--text-p);text-decoration:none;transition:color var(--transition);}
a:hover{color:var(--rage-red-light);}
img{display:block;max-width:100%;height:auto;}
ul,ol{list-style:none;}
button,input,textarea,select{font-family:inherit;font-size:inherit;}
button{cursor:pointer;}
:focus-visible{outline:2px solid var(--rage-red);outline-offset:2px;}

/* Smooth theme transitions */
body,.site-header,.nav-primary,.article-card,.widget,.alert-panel,
.site-footer,.breaking-ticker,input,textarea,select{
  transition-property:background-color,border-color,color,box-shadow;
  transition-duration:0.25s;transition-timing-function:ease;
}

/* =============================================
   THEME TOGGLE
   ============================================= */
.theme-toggle{display:flex;align-items:center;gap:0;background:var(--bg-s2);border:1px solid var(--border);border-radius:20px;padding:3px;flex-shrink:0;}
.theme-toggle__btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:transparent;border:none;color:var(--text-m);font-size:13px;transition:all var(--transition);padding:0;line-height:1;}
.theme-toggle__btn:hover{color:var(--text-p);}
.theme-toggle__btn.is-active{background:var(--rage-red);color:#fff;}
.theme-toggle__btn[data-mode="light"]{font-size:14px;}
.theme-toggle__btn[data-mode="dark"]{font-size:13px;}
.theme-toggle__btn[data-mode="auto"]{font-size:11px;font-family:var(--font-mono);letter-spacing:-0.05em;font-weight:600;}

/* =============================================
   BREAKING TICKER — v4.0 Refined
   ============================================= */
.breaking-ticker{background:var(--rage-red);overflow:hidden;position:relative;z-index:100;border-bottom:1px solid var(--rage-red-dim);height:36px;display:flex;}
.breaking-ticker__inner{display:flex;align-items:stretch;width:100%;height:100%;}
.breaking-ticker__label{background:#000;color:var(--rage-red-light);font-family:var(--font-display);font-size:11px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;padding:0 16px;display:flex;align-items:center;gap:8px;white-space:nowrap;flex-shrink:0;border-right:2px solid var(--rage-red-dim);}
.breaking-ticker__label::before{content:'';display:inline-block;width:7px;height:7px;background:var(--rage-red-light);border-radius:50%;animation:pulse-dot 1.4s ease-in-out infinite;flex-shrink:0;}
@keyframes pulse-dot{0%,100%{opacity:1;transform:scale(1);}50%{opacity:.35;transform:scale(.65);}}
.breaking-ticker__scroll-wrap{overflow:hidden;flex:1;display:flex;align-items:center;-webkit-mask-image:linear-gradient(to right,transparent 0,black 40px,black calc(100% - 40px),transparent 100%);mask-image:linear-gradient(to right,transparent 0,black 40px,black calc(100% - 40px),transparent 100%);}
.breaking-ticker__track{display:inline-flex;align-items:center;white-space:nowrap;will-change:transform;animation:ticker-scroll var(--ticker-duration,55s) linear infinite;}
.breaking-ticker__track:hover{animation-play-state:paused;}
.breaking-ticker__item{font-family:var(--font-display);font-size:13px;font-weight:600;letter-spacing:.04em;color:#fff;padding:0 24px 0 0;text-transform:uppercase;display:inline-flex;align-items:center;gap:10px;flex-shrink:0;}
.breaking-ticker__item a{color:#fff;transition:color var(--transition);}
.breaking-ticker__item a:hover{color:#ffdd44;}
.breaking-ticker__sep{color:rgba(255,255,255,.3);padding-right:24px;font-size:10px;flex-shrink:0;}
@keyframes ticker-scroll{0%{transform:translateX(0);}100%{transform:translateX(-50%);}}

/* =============================================
   HEADER
   ============================================= */
.site-header{background:var(--header-bg);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:200;}
.site-header.is-scrolled{box-shadow:0 2px 24px rgba(0,0,0,.4);}
.header-inner{max-width:var(--container-xl);margin:0 auto;padding:0 24px;display:flex;align-items:center;gap:14px;height:68px;}
.site-logo{flex-shrink:0;}
.site-logo a{display:flex;align-items:center;gap:10px;text-decoration:none;}
.site-logo img{height:44px;width:auto;display:block;}
.site-logo__wordmark{display:flex;flex-direction:column;line-height:1;}
.site-logo__name{font-family:var(--font-display);font-size:30px;font-weight:900;letter-spacing:.04em;color:var(--text-p);text-transform:uppercase;line-height:1;}
.site-logo__name em{color:var(--rage-red);font-style:normal;}
.site-logo__tagline{font-family:var(--font-mono);font-size:9px;letter-spacing:.22em;color:var(--text-m);text-transform:uppercase;margin-top:3px;}
.header-spacer{flex:1;}
.header-live{display:flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:10px;letter-spacing:.15em;color:var(--text-m);text-transform:uppercase;border:1px solid var(--border);padding:5px 10px;border-radius:var(--radius);white-space:nowrap;flex-shrink:0;}
.header-live__dot{width:6px;height:6px;background:var(--rage-red-light);border-radius:50%;animation:pulse-dot 1.4s ease-in-out infinite;flex-shrink:0;}
.header-search{position:relative;flex-shrink:0;}
.header-search__input{background:var(--bg-s2);border:1px solid var(--border);color:var(--text-p);padding:8px 14px 8px 36px;font-size:13px;width:200px;border-radius:20px;outline:none;transition:border-color var(--transition),width .3s ease,background var(--transition),box-shadow .2s;}
.header-search__input::placeholder{color:var(--text-m);font-size:12px;letter-spacing:.04em;}
.header-search__input:focus{border-color:var(--rage-red);width:280px;background:var(--input-bg);box-shadow:0 0 0 3px rgba(154,0,0,.15);}
.header-search__icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--text-m);width:14px;height:14px;pointer-events:none;transition:color .15s;}
.header-search__input:focus + .header-search__icon,
.header-search:focus-within .header-search__icon{color:var(--rage-red);}
.header-toggle{display:none;background:none;border:1px solid var(--border);color:var(--text-p);width:38px;height:38px;align-items:center;justify-content:center;flex-direction:column;gap:5px;border-radius:var(--radius);flex-shrink:0;padding:8px;}
.header-toggle span{display:block;width:18px;height:2px;background:var(--text-p);border-radius:1px;transition:all .2s ease;transform-origin:center;}
.header-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.header-toggle.is-open span:nth-child(2){opacity:0;transform:scaleX(0);}
.header-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* =============================================
   NAV
   ============================================= */
.nav-primary{background:var(--nav-bg);border-bottom:2px solid var(--rage-red);position:relative;z-index:190;}
.nav-primary__wrap{max-width:var(--container-xl);margin:0 auto;padding:0 24px;}
.nav-primary__menu{display:flex;align-items:stretch;list-style:none;overflow-x:auto;scrollbar-width:none;gap:0;margin:0;padding:0;}
.nav-primary__menu::-webkit-scrollbar{display:none;}
.nav-primary__menu>li{position:relative;flex-shrink:0;}
.nav-primary__menu>li>a{display:flex;align-items:center;gap:5px;padding:13px 15px;font-family:var(--font-display);font-size:12.5px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--nav-item);border-bottom:3px solid transparent;margin-bottom:-2px;transition:color var(--transition),border-color var(--transition);white-space:nowrap;text-decoration:none;}
.nav-primary__menu>li>a:hover,.nav-primary__menu>li.current-menu-item>a,.nav-primary__menu>li.current-menu-ancestor>a,.nav-primary__menu>li.current-category-ancestor>a{color:var(--nav-hover);border-bottom-color:var(--rage-red);}
.nav-primary__menu>li.cat-alerts>a{color:var(--rage-red-light);}
.nav-primary__menu>li.cat-nuclear>a{color:var(--tac-yellow);}
.nav-primary__menu .sub-menu{position:absolute;top:calc(100% + 2px);left:0;background:var(--bg-s2);border:1px solid var(--border);border-top:2px solid var(--rage-red);min-width:220px;opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .18s ease,transform .18s ease,visibility .18s;z-index:300;box-shadow:var(--shadow-drop);list-style:none;padding:4px 0;}
.nav-primary__menu>li:hover>.sub-menu,.nav-primary__menu>li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:translateY(0);}
.nav-primary__menu .sub-menu li a{display:block;padding:9px 16px;font-family:var(--font-display);font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--text-s);border-left:3px solid transparent;transition:all var(--transition);text-decoration:none;}
.nav-primary__menu .sub-menu li a:hover{color:var(--text-p);background:var(--bg-s3);border-left-color:var(--rage-red);}

/* =============================================
   LAYOUT
   ============================================= */
.container{max-width:var(--container-xl);margin:0 auto;padding:0 24px;}
.container--lg{max-width:var(--container-lg);margin:0 auto;padding:0 24px;}
.container--md{max-width:var(--container-md);margin:0 auto;padding:0 24px;}
.site-main{min-height:60vh;}
.layout-with-sidebar{display:grid;grid-template-columns:1fr 340px;gap:40px;max-width:var(--container-xl);margin:0 auto;padding:32px 24px 64px;align-items:start;}
.layout-full{max-width:var(--container-xl);margin:0 auto;padding:32px 24px 64px;}
.page-content{min-width:0;}

/* =============================================
   CATEGORY BADGES
   ============================================= */
.cat-badge{display:inline-block;font-family:var(--font-display);font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;padding:3px 8px;border-radius:1px;line-height:1.4;white-space:nowrap;flex-shrink:0;}
.cat-badge--alerts{background:var(--rage-red);color:#fff;}
.cat-badge--war{background:#5c1a1a;color:#ffaaaa;}
.cat-badge--intelligence{background:#1B365D;color:#c0d8ff;}
.cat-badge--defense{background:#1a2e1a;color:#88cc88;}
.cat-badge--nuclear{background:#2a2200;color:#CCAA00;}
.cat-badge--global{background:var(--bg-s3);color:var(--text-s);border:1px solid var(--border);}
.cat-badge--military{background:#1a1a30;color:#99aadd;}
.cat-badge--technology{background:#002828;color:#55cccc;}
.cat-badge--analysis{background:transparent;color:var(--intel-blue-light);border:1px solid var(--intel-blue-light);}
.cat-badge--reports{background:var(--bg-s3);color:var(--text-s);border:1px solid var(--border);}
.cat-badge--exclusive{background:#2a2200;color:#CCAA00;border:1px solid rgba(204,170,0,.35);}
.cat-badge--breaking{background:var(--rage-red);color:#fff;animation:badge-pulse 2s ease-in-out infinite;}
@keyframes badge-pulse{0%,100%{box-shadow:0 0 0 0 rgba(154,0,0,0);}50%{box-shadow:0 0 0 4px rgba(154,0,0,.2);}}

/* =============================================
   HERO — v4.0 Professional Upgrade
   ============================================= */
.hero-section{padding:0;}
.hero-grid{display:grid;grid-template-columns:1fr 380px;gap:3px;max-width:var(--container-xl);margin:0 auto;padding:0 24px;}
.hero-main{position:relative;overflow:hidden;background:var(--bg-s2);aspect-ratio:16/9;max-height:520px;display:block;}
.hero-main__img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .65s ease,filter .65s ease;}
.hero-main:hover .hero-main__img{transform:scale(1.03);filter:brightness(1.05);}
.hero-main__overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.96) 0%,rgba(0,0,0,.55) 40%,rgba(0,0,0,.08) 100%);pointer-events:none;}
.hero-main__stripe{position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--rage-red);z-index:2;transition:width .3s ease;}
.hero-main:hover .hero-main__stripe{width:6px;}
.hero-main__body{position:absolute;bottom:0;left:0;right:0;padding:28px 28px 28px 32px;z-index:3;}
.hero-main__meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:10px;}
.hero-main__time{font-family:var(--font-mono);font-size:11px;color:rgba(255,255,255,.55);letter-spacing:.05em;}
.hero-main__title{font-family:var(--font-display);font-size:clamp(22px,2.8vw,38px);font-weight:900;line-height:1.1;letter-spacing:.01em;color:#fff;text-transform:uppercase;margin-bottom:10px;}
.hero-main__title a{color:#fff;text-decoration:none;transition:color .2s ease;}
.hero-main__title a:hover{color:#ffcccc;}
.hero-main__excerpt{font-size:14px;color:rgba(255,255,255,.65);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.hero-side{display:flex;flex-direction:column;gap:3px;}
.hero-side__item{position:relative;overflow:hidden;background:var(--bg-s3);flex:1;min-height:150px;display:block;}
.hero-side__img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease,filter .5s ease;}
.hero-side__item:hover .hero-side__img{transform:scale(1.05);filter:brightness(1.05);}
.hero-side__overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.92) 0%,rgba(0,0,0,.25) 60%,transparent 100%);pointer-events:none;}
.hero-side__body{position:absolute;bottom:0;left:0;right:0;padding:12px 14px;z-index:2;}
.hero-side__title{font-family:var(--font-display);font-size:16px;font-weight:800;line-height:1.2;text-transform:uppercase;color:#fff;margin-top:5px;}
.hero-side__title a{color:#fff;text-decoration:none;transition:color .2s ease;}
.hero-side__title a:hover{color:#ffcccc;}

/* ── Hero Layout Variants (controlled by Command Center → Homepage → Hero layout) ── */
.hero-grid--full-width{grid-template-columns:1fr;}
.hero-grid--full-width .hero-side{display:none;}
.hero-grid--full-width .hero-main{max-height:600px;aspect-ratio:21/9;}
.hero-grid--grid-3{grid-template-columns:1fr 1fr 1fr;gap:3px;}
.hero-grid--grid-3 .hero-main{aspect-ratio:4/3;max-height:420px;}
.hero-grid--grid-3 .hero-side{display:contents;}
.hero-grid--grid-3 .hero-side__item{aspect-ratio:4/3;min-height:auto;}
.hero-grid--grid-3 .hero-main__title{font-size:clamp(18px,2vw,26px);}
.hero-grid--magazine{grid-template-columns:1fr 1fr;grid-template-rows:auto auto;gap:3px;}
.hero-grid--magazine .hero-main{grid-row:1/3;}
.hero-grid--magazine .hero-side{display:grid;grid-template-columns:1fr 1fr;gap:3px;}

/* ── No-sidebar full-width layout (Command Center → Homepage → Show sidebar OFF) ── */
.homepage-body__inner--no-sidebar{grid-template-columns:1fr !important;}
.homepage-body__inner--no-sidebar .homepage-sidebar{display:none;}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding-bottom:12px;border-bottom:1px solid var(--border);position:relative;gap:12px;}
.section-header::after{content:'';position:absolute;bottom:-1px;left:0;width:56px;height:2px;background:var(--rage-red);}
.section-header__title{font-family:var(--font-display);font-size:12px;font-weight:800;letter-spacing:.22em;text-transform:uppercase;color:var(--text-p);display:flex;align-items:center;gap:8px;white-space:nowrap;}
.section-header__link{font-family:var(--font-mono);font-size:10px;letter-spacing:.1em;color:var(--text-m);text-transform:uppercase;white-space:nowrap;transition:color var(--transition);text-decoration:none;}
.section-header__link:hover{color:var(--rage-red-light);}

/* =============================================
   ARTICLE CARDS
   ============================================= */
.article-grid{display:grid;gap:3px;}
.article-grid--4{grid-template-columns:repeat(4,1fr);}
.article-grid--3{grid-template-columns:repeat(3,1fr);}
.article-grid--2{grid-template-columns:repeat(2,1fr);}
.article-grid--1{grid-template-columns:1fr;}

.article-card{background:var(--card-bg);border:1px solid var(--card-border);overflow:hidden;display:flex;flex-direction:column;transition:border-color var(--transition),transform .2s ease,box-shadow .2s ease;position:relative;}
.article-card:hover{border-color:var(--card-hover-border);transform:translateY(-2px);box-shadow:var(--shadow-card);}
.article-card--alert{border-left:3px solid var(--rage-red);}
.article-card__thumb{position:relative;overflow:hidden;aspect-ratio:16/9;background:var(--bg-s3);flex-shrink:0;}
.article-card__thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease;}
.article-card:hover .article-card__thumb img{transform:scale(1.05);}
.article-card__thumb-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.45),transparent);opacity:0;transition:opacity var(--transition);}
.article-card:hover .article-card__thumb-overlay{opacity:1;}
.article-card__body{padding:15px 16px;flex:1;display:flex;flex-direction:column;gap:7px;}
.article-card__meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;}
.article-card__time{font-family:var(--font-mono);font-size:10px;color:var(--text-m);letter-spacing:.04em;}
.article-card__title{font-family:var(--font-display);font-size:17px;font-weight:800;line-height:1.2;text-transform:uppercase;letter-spacing:.01em;flex:1;}
.article-card__title a{color:var(--text-p);text-decoration:none;}
.article-card__title a:hover{color:var(--rage-red-light);}
.article-card__excerpt{font-size:13px;color:var(--text-s);line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.article-card__footer{display:flex;align-items:center;justify-content:space-between;padding:9px 16px;border-top:1px solid var(--border);background:var(--bg-s2);margin-top:auto;}
.article-card__author,.article-card__readtime{font-family:var(--font-mono);font-size:10px;color:var(--text-m);letter-spacing:.06em;text-transform:uppercase;}

/* List item */
.article-list-item{display:flex;gap:14px;padding:12px 0;border-bottom:1px solid var(--border);align-items:flex-start;transition:background var(--transition);}
.article-list-item:last-child{border-bottom:none;}
.article-list-item__thumb{width:88px;height:60px;object-fit:cover;border-radius:1px;flex-shrink:0;display:block;}
.article-list-item__thumb-placeholder{width:88px;height:60px;background:var(--bg-s3);flex-shrink:0;border-radius:1px;}
.article-list-item__body{flex:1;min-width:0;}
.article-list-item__meta{display:flex;align-items:center;gap:6px;margin-bottom:4px;flex-wrap:wrap;}
.article-list-item__title{font-family:var(--font-display);font-size:14px;font-weight:700;text-transform:uppercase;line-height:1.3;letter-spacing:.01em;}
.article-list-item__title a{color:var(--text-p);text-decoration:none;}
.article-list-item__title a:hover{color:var(--rage-red-light);}
.article-list-item__time{font-family:var(--font-mono);font-size:10px;color:var(--text-m);}

/* =============================================
   ALERT PANEL
   ============================================= */
.alert-panel{background:var(--alert-bg);border:1px solid var(--alert-border);border-left:4px solid var(--rage-red);overflow:hidden;}
.alert-panel__header{background:var(--rage-red);padding:9px 14px;display:flex;align-items:center;gap:8px;}
.alert-panel__header-label{font-family:var(--font-display);font-size:11px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:#fff;}
.alert-panel__items{padding:4px 0;}
.alert-panel__item{display:flex;gap:12px;padding:10px 14px;border-bottom:1px solid var(--alert-border);transition:background var(--transition);}
.alert-panel__item:last-child{border-bottom:none;}
.alert-panel__item:hover{background:rgba(154,0,0,.06);}
.alert-panel__item-dot{width:6px;height:6px;background:var(--rage-red-light);border-radius:50%;flex-shrink:0;margin-top:5px;}
.alert-panel__item-title{font-family:var(--font-display);font-size:13px;font-weight:700;text-transform:uppercase;line-height:1.3;color:var(--text-p);}
.alert-panel__item-title a{color:inherit;text-decoration:none;}
.alert-panel__item-title a:hover{color:var(--rage-red-light);}
.alert-panel__item-time{font-family:var(--font-mono);font-size:10px;color:var(--text-m);margin-top:3px;}

/* =============================================
   INTEL STRIP
   ============================================= */
.intel-strip{background:var(--bg-s1);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:12px 0;}
.intel-strip__inner{max-width:var(--container-xl);margin:0 auto;padding:0 24px;display:flex;gap:0;overflow-x:auto;scrollbar-width:none;}
.intel-strip__inner::-webkit-scrollbar{display:none;}
.intel-strip__item{display:flex;align-items:center;gap:10px;padding:0 28px;border-right:1px solid var(--border);flex-shrink:0;}
.intel-strip__item:first-child{padding-left:0;}
.intel-strip__item:last-child{border-right:none;}
.intel-strip__icon{font-size:18px;line-height:1;flex-shrink:0;}
.intel-strip__label{font-family:var(--font-mono);font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:var(--text-m);line-height:1;margin-bottom:3px;}
.intel-strip__value{font-family:var(--font-display);font-size:17px;font-weight:900;color:var(--text-p);line-height:1;}

/* =============================================
   SINGLE ARTICLE
   ============================================= */
.article-hero{position:relative;background:var(--bg-s2);overflow:hidden;}
.article-hero__img{width:100%;max-height:500px;object-fit:cover;display:block;opacity:.88;}
.article-hero__caption{background:var(--bg-s1);padding:7px 16px;font-family:var(--font-mono);font-size:11px;color:var(--text-m);letter-spacing:.04em;border-top:1px solid var(--border);}
.breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:0;font-family:var(--font-mono);font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:var(--text-m);margin-bottom:18px;padding:10px 0;border-bottom:1px solid var(--border);}
.breadcrumb a{color:var(--text-m);text-decoration:none;transition:color var(--transition);}
.breadcrumb a:hover{color:var(--text-p);}
.breadcrumb__sep{margin:0 8px;color:var(--border-mid);}
.breadcrumb__current{color:var(--text-s);}
.article-header{padding:28px 0 20px;border-bottom:1px solid var(--border);margin-bottom:28px;}
.article-header__meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:16px;}
.article-header__time{font-family:var(--font-mono);font-size:11px;color:var(--text-m);letter-spacing:.04em;}
.article-header__readtime{font-family:var(--font-mono);font-size:10px;color:var(--text-m);letter-spacing:.06em;text-transform:uppercase;}
.article-header__title{font-family:var(--font-display);font-size:clamp(26px,3.5vw,48px);font-weight:900;line-height:1.05;text-transform:uppercase;letter-spacing:.01em;margin-bottom:14px;color:var(--text-p);}
.article-header__subtitle{font-family:var(--font-serif);font-size:18px;font-style:italic;color:var(--text-s);line-height:1.6;margin-bottom:18px;border-left:3px solid var(--rage-red);padding-left:16px;}
.article-header__byline{display:flex;align-items:center;gap:12px;}
.article-header__avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid var(--border);flex-shrink:0;}
.article-header__author-name{font-family:var(--font-display);font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-p);}
.article-header__author-name a{color:inherit;text-decoration:none;}
.article-header__author-name a:hover{color:var(--rage-red-light);}
.article-header__author-role{font-family:var(--font-mono);font-size:10px;color:var(--rage-red-light);letter-spacing:.12em;text-transform:uppercase;margin-top:2px;}

/* Analysis label */
.analysis-label{display:flex;align-items:flex-start;gap:12px;background:var(--analysis-bg);border:1px solid var(--analysis-border);border-left:4px solid var(--intel-blue-light);padding:12px 16px;margin-bottom:24px;}
.analysis-label__badge{font-family:var(--font-mono);font-size:10px;font-weight:600;letter-spacing:.14em;color:#fff;background:var(--intel-blue);padding:4px 10px;text-transform:uppercase;white-space:nowrap;flex-shrink:0;border-radius:1px;}
.analysis-label__text{font-size:12px;color:var(--text-m);font-family:var(--font-mono);line-height:1.5;}

/* Article body */
.article-body{font-size:16px;line-height:1.82;color:var(--text-p);}
.article-body>*+*{margin-top:1.2em;}
.article-body p{margin-bottom:0;}
.article-body h2{font-family:var(--font-display);font-size:26px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--text-p);margin:2em 0 .7em;padding-left:14px;border-left:3px solid var(--rage-red);line-height:1.15;}
.article-body h3{font-family:var(--font-display);font-size:20px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--text-p);margin:1.5em 0 .5em;}
.article-body h4{font-family:var(--font-display);font-size:16px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-s);margin:1.2em 0 .4em;}
.article-body a{color:var(--intel-blue-light);border-bottom:1px solid transparent;transition:border-color var(--transition),color var(--transition);text-decoration:none;}
.article-body a:hover{border-bottom-color:var(--intel-blue-light);}
.article-body ul,.article-body ol{margin:1em 0 1.2em 1.4em;list-style:disc;}
.article-body ol{list-style:decimal;}
.article-body li{margin-bottom:.35em;color:var(--text-s);}
.article-body blockquote{margin:1.8em 0;padding:20px 24px;background:var(--analysis-bg);border-left:4px solid var(--intel-blue-light);font-family:var(--font-serif);font-style:italic;font-size:17px;color:var(--text-s);line-height:1.75;}
.article-body blockquote cite{display:block;margin-top:10px;font-size:12px;font-family:var(--font-mono);font-style:normal;color:var(--text-m);letter-spacing:.08em;text-transform:uppercase;}
.article-body code{font-family:var(--font-mono);font-size:13px;background:var(--code-bg);border:1px solid var(--border);padding:2px 6px;border-radius:2px;color:var(--code-c);}
.article-body pre{background:var(--bg-s1);border:1px solid var(--border);padding:20px;overflow-x:auto;font-family:var(--font-mono);font-size:13px;line-height:1.6;color:var(--code-c);position:relative;}
.article-body pre code{background:none;border:none;padding:0;color:inherit;}
.article-body table{width:100%;border-collapse:collapse;font-size:14px;}
.article-body th{background:var(--bg-s3);font-family:var(--font-display);font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;padding:10px 14px;text-align:left;border:1px solid var(--border);color:var(--text-s);}
.article-body td{padding:10px 14px;border:1px solid var(--border);color:var(--text-s);vertical-align:top;}
.article-body tr:nth-child(even) td{background:var(--bg-s2);}
.article-body img{max-width:100%;height:auto;border:1px solid var(--border);display:block;}
.article-body hr{border:none;border-top:1px solid var(--border);margin:2.5em 0;position:relative;}
.article-body hr::after{content:'✦';position:absolute;top:-10px;left:50%;transform:translateX(-50%);background:var(--bg-body);padding:0 12px;font-size:11px;color:var(--text-m);}
.article-body figcaption{font-family:var(--font-mono);font-size:12px;color:var(--text-m);letter-spacing:.04em;margin-top:6px;}

/* Article extras */
.article-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:28px;padding-top:18px;border-top:1px solid var(--border);}
.article-tags__label{font-family:var(--font-mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--text-m);flex-shrink:0;}
.article-tag{font-family:var(--font-mono);font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:var(--text-m);border:1px solid var(--border);padding:4px 10px;border-radius:1px;transition:all var(--transition);text-decoration:none;display:inline-block;}
.article-tag:hover{color:var(--text-p);border-color:var(--border-mid);}
.article-share{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:16px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-top:24px;}
.article-share__label{font-family:var(--font-mono);font-size:10px;letter-spacing:.15em;text-transform:uppercase;color:var(--text-m);flex-shrink:0;}
.share-btn{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-display);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:7px 14px;border-radius:1px;border:1px solid var(--border);background:transparent;color:var(--text-s);cursor:pointer;transition:all var(--transition);text-decoration:none;line-height:1;}
.share-btn:hover{border-color:var(--rage-red);color:var(--text-p);background:rgba(154,0,0,.06);}
.share-btn--x:hover{border-color:#1da1f2;color:#1da1f2;background:rgba(29,161,242,.06);}
.share-btn--tg:hover{border-color:#0088cc;color:#0088cc;background:rgba(0,136,204,.06);}

/* Post nav */
.post-nav{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin-top:28px;}
.post-nav__item{display:block;background:var(--bg-s1);border:1px solid var(--border);padding:16px;transition:border-color var(--transition),background var(--transition);text-decoration:none;}
.post-nav__item:hover{border-color:var(--rage-red);background:var(--bg-s2);}
.post-nav__item--next{text-align:right;}
.post-nav__dir{font-family:var(--font-mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--text-m);display:block;margin-bottom:6px;}
.post-nav__title{font-family:var(--font-display);font-size:14px;font-weight:700;text-transform:uppercase;line-height:1.2;color:var(--text-p);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

/* =============================================
   SIDEBAR & WIDGETS — BUG FIX
   ============================================= */
.sidebar{min-width:0;}
.widget{background:var(--widget-bg);border:1px solid var(--border);margin-bottom:24px;overflow:hidden;}
.widget .widget-body{padding:14px;}
.widget > :not(.widget-title):not(.widget-body):not(.alert-panel__header){padding-left:14px;padding-right:14px;}
.widget .widget-title{font-family:var(--font-display);font-size:11px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:var(--text-s);padding:10px 14px;background:var(--widget-title-bg);border-bottom:2px solid var(--rage-red);display:flex;align-items:center;gap:6px;margin:0;}
.widget-newsletter{border-color:rgba(154,0,0,.2);}
.widget-newsletter .widget-title{background:var(--rage-red);color:#fff;border-bottom:none;}

/* Forms */
.nl-form p{font-size:13px;color:var(--text-s);line-height:1.55;margin-bottom:12px;}
.nl-input{width:100%;background:var(--input-bg);border:1px solid var(--input-border);color:var(--input-c);padding:10px 12px;font-size:13px;margin-bottom:8px;outline:none;border-radius:1px;transition:border-color var(--transition),background var(--transition);display:block;}
.nl-input::placeholder{color:var(--input-ph);}
.nl-input:focus{border-color:var(--rage-red);}
.nl-submit{width:100%;background:var(--rage-red);color:#fff;border:none;padding:11px;font-family:var(--font-display);font-size:13px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;cursor:pointer;transition:background var(--transition);border-radius:1px;}
.nl-submit:hover{background:var(--rage-red-light);}

/* Trending */
.trending-item{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid var(--border);}
.trending-item:last-child{border-bottom:none;}
.trending-item__num{font-family:var(--font-display);font-size:24px;font-weight:900;color:var(--border-mid);line-height:1;width:26px;flex-shrink:0;text-align:right;transition:color var(--transition);padding-top:1px;}
.trending-item:hover .trending-item__num{color:var(--rage-red);}
.trending-item__title{font-family:var(--font-display);font-size:13px;font-weight:700;text-transform:uppercase;line-height:1.3;flex:1;}
.trending-item__title a{color:var(--text-p);text-decoration:none;}
.trending-item__title a:hover{color:var(--rage-red-light);}

/* Cat list */
.cat-list-item{display:flex;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--border);font-family:var(--font-display);font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;}
.cat-list-item:last-child{border-bottom:none;}
.cat-list-item a{color:var(--text-s);text-decoration:none;transition:color var(--transition);}
.cat-list-item a:hover{color:var(--text-p);}
.cat-list-item__count{font-family:var(--font-mono);font-size:11px;color:var(--text-m);background:var(--bg-s3);padding:2px 7px;border-radius:10px;flex-shrink:0;}

/* =============================================
   ARCHIVE
   ============================================= */
.archive-header{background:var(--bg-s1);border-bottom:2px solid var(--rage-red);padding:28px 0;margin-bottom:32px;}
.archive-header__inner{max-width:var(--container-xl);margin:0 auto;padding:0 24px;}
.archive-header__label{font-family:var(--font-mono);font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--text-m);margin-bottom:8px;}
.archive-header__title{font-family:var(--font-display);font-size:clamp(32px,5vw,48px);font-weight:900;text-transform:uppercase;letter-spacing:.02em;color:var(--text-p);display:flex;align-items:center;gap:14px;line-height:1;margin-bottom:8px;}
.archive-header__description{font-size:14px;color:var(--text-s);max-width:600px;line-height:1.6;margin-top:8px;}
.archive-header__count{font-family:var(--font-mono);font-size:11px;color:var(--text-m);letter-spacing:.06em;margin-top:10px;}

/* =============================================
   PAGINATION
   ============================================= */
/* Pagination → see v4.0 section below */

/* =============================================
   SEARCH
   ============================================= */
.search-block{background:var(--bg-s1);border:1px solid var(--border);padding:24px;margin-bottom:28px;}
.search-block__title{font-family:var(--font-mono);font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--text-m);margin-bottom:12px;}
.search-block__form{display:flex;gap:6px;}
.search-block__input{flex:1;background:var(--input-bg);border:1px solid var(--input-border);color:var(--input-c);padding:12px 14px;font-size:14px;outline:none;border-radius:1px;transition:border-color var(--transition),background var(--transition);}
.search-block__input::placeholder{color:var(--input-ph);}
.search-block__input:focus{border-color:var(--rage-red);}
.search-block__btn{background:var(--rage-red);color:#fff;border:none;padding:12px 24px;font-family:var(--font-display);font-size:13px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;cursor:pointer;transition:background var(--transition);border-radius:1px;white-space:nowrap;}
.search-block__btn:hover{background:var(--rage-red-light);}

/* =============================================
   404
   ============================================= */
.page-404{text-align:center;padding:80px 24px;}
.page-404__code{font-family:var(--font-display);font-size:clamp(80px,15vw,140px);font-weight:900;color:var(--rage-red);opacity:.2;line-height:1;margin-bottom:-16px;}
.page-404__title{font-family:var(--font-display);font-size:28px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;margin-bottom:12px;color:var(--text-p);}
.page-404__text{font-size:15px;color:var(--text-s);margin-bottom:28px;max-width:400px;margin-left:auto;margin-right:auto;}

/* =============================================
   FOOTER (always dark)
   ============================================= */
.site-footer{background:#000;border-top:2px solid rgba(255,255,255,.06);margin-top:0;}
[data-theme="light"] .site-footer,[data-theme="auto"] .site-footer{background:#0a0a0a;}
.footer-top{padding:48px 0;border-bottom:1px solid rgba(255,255,255,.06);}
.footer-grid{max-width:var(--container-xl);margin:0 auto;padding:0 24px;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;}
.footer-brand__name{font-family:var(--font-display);font-size:32px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#fff;line-height:1;margin-bottom:4px;}
.footer-brand__name em{color:var(--rage-red);font-style:normal;}
.footer-brand__tagline{font-family:var(--font-mono);font-size:9px;letter-spacing:.22em;color:#444;text-transform:uppercase;margin-bottom:14px;}
.footer-brand__description{font-size:13px;color:#555;line-height:1.6;margin-bottom:20px;max-width:300px;}
.footer-socials{display:flex;flex-wrap:wrap;gap:6px;}
.footer-social-link{font-family:var(--font-mono);font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:#444;border:1px solid #1e1e1e;padding:5px 10px;border-radius:1px;transition:all var(--transition);text-decoration:none;display:inline-block;}
.footer-social-link:hover{color:#fff;border-color:var(--rage-red);}
.footer-col__title{font-family:var(--font-display);font-size:11px;font-weight:800;letter-spacing:.2em;text-transform:uppercase;color:#555;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid #1e1e1e;}
.footer-col__links{display:flex;flex-direction:column;gap:8px;}
.footer-col__link{font-size:13px;color:#444;transition:color var(--transition);display:flex;align-items:center;gap:6px;text-decoration:none;}
.footer-col__link::before{content:'›';color:var(--rage-red);font-size:15px;}
.footer-col__link:hover{color:#aaa;}
.footer-bottom{padding:0;}
.footer-bottom__inner{max-width:var(--container-xl);margin:0 auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #1a1a1a;}
.footer-bottom__copy,.footer-bottom__link{font-family:var(--font-mono);font-size:11px;color:#333;letter-spacing:.05em;text-decoration:none;transition:color var(--transition);}
.footer-bottom__link:hover{color:#888;}
.footer-bottom__links{display:flex;gap:18px;flex-wrap:wrap;}
.footer-classify{font-family:var(--font-mono);font-size:9px;letter-spacing:.14em;color:#2a2a2a;text-transform:uppercase;border:1px solid #1e1e1e;padding:3px 8px;}

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top{position:fixed;bottom:24px;right:24px;width:40px;height:40px;background:var(--rage-red);border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s,background var(--transition),transform .2s;border-radius:1px;z-index:999;}
.scroll-top.is-visible{opacity:1;visibility:visible;}
.scroll-top:hover{background:var(--rage-red-light);transform:translateY(-2px);}

/* =============================================
   READING PROGRESS
   ============================================= */
.reading-progress{position:fixed;top:0;left:0;height:3px;background:linear-gradient(90deg,var(--rage-red),var(--rage-red-light));z-index:9999;width:0;transition:width .08s linear;pointer-events:none;opacity:0;box-shadow:0 0 8px rgba(154,0,0,.5);}
.reading-progress.is-active{opacity:1;}
/* Percentage label (shows on hover) */
.reading-progress::after{content:attr(data-pct);position:absolute;right:0;top:4px;font-family:var(--font-mono);font-size:9px;font-weight:700;letter-spacing:.12em;color:var(--rage-red-light);background:var(--bg-body);padding:2px 6px;border:1px solid var(--border);opacity:0;transition:opacity .2s;pointer-events:none;}
.reading-progress:hover::after{opacity:1;}

/* =============================================
   UTILITIES
   ============================================= */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.text-red{color:var(--rage-red-light);}.text-yellow{color:var(--tac-yellow);}.text-blue{color:var(--intel-blue-light);}.text-muted{color:var(--text-m);}
.skeleton{background:linear-gradient(90deg,var(--bg-s2) 25%,var(--bg-s3) 50%,var(--bg-s2) 75%);background-size:200% 100%;animation:skeleton-shimmer 1.5s infinite;border-radius:2px;}
@keyframes skeleton-shimmer{0%{background-position:200% 0;}100%{background-position:-200% 0;}}

/* =============================================
   COMMENTS
   ============================================= */
.comments-section{margin-top:40px;padding-top:28px;border-top:1px solid var(--border);}
.comments-title{font-family:var(--font-display);font-size:18px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;margin-bottom:20px;color:var(--text-p);}
.comment{padding:16px 0;border-bottom:1px solid var(--border);}
.comment:last-child{border-bottom:none;}
.comment-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:8px;}
.comment-author-name{font-family:var(--font-display);font-size:14px;font-weight:700;text-transform:uppercase;color:var(--text-p);}
.comment-date{font-family:var(--font-mono);font-size:11px;color:var(--text-m);}
.comment-content{font-size:14px;color:var(--text-s);line-height:1.65;}
.comment-reply-link{font-family:var(--font-mono);font-size:11px;color:var(--text-m);text-transform:uppercase;letter-spacing:.08em;margin-top:8px;display:inline-block;transition:color var(--transition);text-decoration:none;}
.comment-reply-link:hover{color:var(--rage-red-light);}
.comment-form input[type="text"],.comment-form input[type="email"],.comment-form input[type="url"],.comment-form textarea{background:var(--input-bg);border:1px solid var(--input-border);color:var(--input-c);padding:10px 12px;width:100%;font-size:14px;outline:none;border-radius:1px;transition:border-color var(--transition),background var(--transition);display:block;margin-bottom:14px;}
.comment-form input:focus,.comment-form textarea:focus{border-color:var(--rage-red);}
.comment-form textarea{min-height:120px;resize:vertical;}
.comment-form .submit{background:var(--rage-red);color:#fff;border:none;padding:11px 28px;font-family:var(--font-display);font-size:13px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;cursor:pointer;transition:background var(--transition);border-radius:1px;}
.comment-form .submit:hover{background:var(--rage-red-light);}

/* =============================================
   BLOCK EDITOR
   ============================================= */
.wp-block-pullquote{border-top:3px solid var(--rage-red);border-bottom:3px solid var(--rage-red);padding:24px;background:rgba(154,0,0,.05);margin:2em 0;}
.wp-block-pullquote blockquote{background:transparent;border:none;padding:0;}
.wp-block-pullquote p{font-family:var(--font-display);font-size:clamp(20px,2.5vw,28px);font-weight:700;text-transform:uppercase;color:var(--text-p);line-height:1.2;}
.wp-caption-text,.wp-element-caption{font-family:var(--font-mono);font-size:12px;color:var(--text-m);margin-top:6px;}
.alignleft{float:left;margin:0 24px 16px 0;}.alignright{float:right;margin:0 0 16px 24px;}.aligncenter{display:block;margin:0 auto 16px;}
.alignwide{margin-left:-40px;margin-right:-40px;max-width:calc(100% + 80px);}

/* =============================================
   RESPONSIVE
   ============================================= */
@media(max-width:1100px){
  .hero-grid{grid-template-columns:1fr 300px;}
  .layout-with-sidebar{grid-template-columns:1fr 300px;gap:28px;}
  .article-grid--4{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;gap:28px;}
}
@media(max-width:900px){
  .layout-with-sidebar{grid-template-columns:1fr;}
  .hero-grid{grid-template-columns:1fr;}
  .hero-side{flex-direction:row;}
  .hero-side__item{min-height:180px;}
  .article-grid--3{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:768px){
  html,body{overflow-x:hidden;width:100%;position:relative;}
  .header-inner{height:56px;gap:10px;}
  .header-search{display:none;}
  .header-live{display:none;}
  .header-toggle{display:flex;}
  .hero-main__title{font-size:20px;}
  .hero-side{flex-direction:column;}
  .hero-side__item{min-height:140px;}
  .article-grid--4,.article-grid--3,.article-grid--2{grid-template-columns:1fr;}
  .post-nav{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;gap:24px;}
  .footer-bottom__inner{flex-direction:column;text-align:center;gap:8px;}
  .nav-primary__wrap{padding:0;}
  /* v15.5: Mobile menu rules moved to comprehensive block at end of file */
  /* Mobile article reading improvements */
  .rx-article__title{font-size:clamp(22px,5vw,32px)!important;line-height:1.2!important;}
  .rx-article__deck{font-size:15px!important;}
  .article-body{font-size:16px!important;line-height:1.8!important;}
  .article-body p{margin-bottom:1.2em;}
  .rx-byline{flex-wrap:wrap;gap:8px;}
  .rx-byline__meta{font-size:11px;}
  .container--read{padding:0 18px;}
  /* Share bar mobile */
  .article-share{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;white-space:nowrap;padding-bottom:4px;}
  .article-share::-webkit-scrollbar{display:none;}
}
@media(max-width:480px){
  .container,.container--lg,.container--md{padding:0 16px;}
  .layout-with-sidebar,.layout-full{padding:20px 16px 40px;}
  .hero-grid{padding:0 16px;}
  .archive-header__title{font-size:28px;}
  .intel-strip__inner{padding:0 16px;}
  .intel-strip__item{padding:0 16px;}
}
@media print{
  .breaking-ticker,.nav-primary,.site-header,.sidebar,.site-footer,.scroll-top,.reading-progress,.article-share,.post-nav{display:none!important;}
  body{background:#fff;color:#000;font-size:12pt;}
  .article-body{font-size:11pt;line-height:1.5;}
  .article-header__title{font-size:22pt;color:#000;}
  a{color:#000;text-decoration:underline;}
  .article-body h2{border-left-color:#000;color:#000;}
}

/* =============================================
   AUTHOR BOX
   ============================================= */
.author-box{margin-top:32px;padding:24px;background:var(--bg-s1);border:1px solid var(--border);border-top:3px solid var(--rage-red);}
.author-box__inner{display:flex;gap:20px;align-items:flex-start;}
.author-box__avatar-col{flex-shrink:0;}
.author-box__avatar{width:80px;height:80px;border-radius:50%;object-fit:cover;border:2px solid var(--border);display:block;transition:border-color var(--transition);}
.author-box__avatar-col a:hover .author-box__avatar{border-color:var(--rage-red);}
.author-box__content{flex:1;min-width:0;}
.author-box__label{font-family:var(--font-mono);font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--text-m);display:block;margin-bottom:3px;}
.author-box__name{font-family:var(--font-display);font-size:20px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin-bottom:0;display:inline;}
.author-box__name a{color:var(--text-p);text-decoration:none;}
.author-box__name a:hover{color:var(--rage-red-light);}
.author-box__role{font-family:var(--font-mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--rage-red-light);display:block;margin-top:3px;margin-bottom:10px;}
.author-box__bio{font-size:14px;color:var(--text-s);line-height:1.65;margin-bottom:12px;}
.author-box__footer{display:flex;align-items:center;gap:14px;flex-wrap:wrap;}
.author-box__all-posts{font-family:var(--font-display);font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--intel-blue-light);text-decoration:none;transition:color var(--transition);}
.author-box__all-posts:hover{color:var(--rage-red-light);}
.author-box__socials{display:flex;gap:6px;flex-wrap:wrap;}
.author-box__social-link{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid var(--border);border-radius:50%;color:var(--text-m);font-size:12px;text-decoration:none;transition:all var(--transition);}
.author-box__social-link:hover{border-color:var(--rage-red);color:var(--text-p);background:rgba(154,0,0,.08);}

@media(max-width:600px){
  .author-box__inner{flex-direction:column;align-items:center;text-align:center;}
  .author-box__footer{justify-content:center;}
}

/* =============================================
   POST META (template part)
   ============================================= */
.post-meta{display:flex;flex-direction:column;gap:8px;margin-bottom:14px;}
.post-meta__badges{display:flex;align-items:center;flex-wrap:wrap;gap:6px;}
.post-meta__details{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-family:var(--font-mono);font-size:11px;color:var(--text-m);letter-spacing:.04em;}
.post-meta__author{display:inline-flex;align-items:center;gap:6px;}
.post-meta__author-avatar{width:20px;height:20px;border-radius:50%;object-fit:cover;vertical-align:middle;}
.post-meta__author-link{color:var(--text-s);text-decoration:none;font-weight:600;transition:color var(--transition);}
.post-meta__author-link:hover{color:var(--text-p);}
.post-meta__date{color:var(--text-m);}
.post-meta__readtime{color:var(--text-m);text-transform:uppercase;letter-spacing:.08em;}
.post-meta__views{color:var(--text-m);}
.post-meta__sep{color:var(--border-mid);}

/* =============================================
   SHARE BAR (template part)
   ============================================= */
.share-btn--wa:hover{border-color:#25D366;color:#25D366;background:rgba(37,211,102,.06);}
.share-btn--li:hover{border-color:#0A66C2;color:#0A66C2;background:rgba(10,102,194,.06);}
.share-btn svg{flex-shrink:0;}

/* =============================================
   PAGE LINKS (multi-page articles)
   ============================================= */
.page-links{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:24px 0;padding:14px;background:var(--bg-s1);border:1px solid var(--border);}
.page-links__label{font-family:var(--font-mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--text-m);margin-right:4px;}
.page-links a span,.page-links span span{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid var(--border);font-family:var(--font-display);font-size:13px;font-weight:700;text-decoration:none;transition:all var(--transition);}
.page-links a span{color:var(--text-s);}
.page-links a span:hover{border-color:var(--rage-red);color:var(--text-p);}
.page-links>span>span{background:var(--rage-red);border-color:var(--rage-red);color:#fff;}

/* =============================================
   STICKY SIDEBAR
   ============================================= */
.sidebar__sticky{position:sticky;top:calc(68px + 42px + 12px);}

/* =============================================
   THREAD / CATEGORY PAGE FILTER BAR
   ============================================= */
.archive-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid var(--border);}
.archive-filter__label{font-family:var(--font-mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--text-m);flex-shrink:0;}
.archive-filter__btn{font-family:var(--font-mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--text-m);border:1px solid var(--border);padding:5px 12px;background:transparent;cursor:pointer;transition:all var(--transition);border-radius:1px;text-decoration:none;display:inline-block;}
.archive-filter__btn:hover,.archive-filter__btn.is-active{color:#fff;border-color:var(--rage-red);background:rgba(154,0,0,.08);}

/* =============================================
   THREAT LEVEL BAR
   ============================================= */
.threat-bar{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:1px;margin-bottom:14px;}
.threat-bar__label{font-family:var(--font-mono);font-size:9px;letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.7);}
.threat-bar__level{font-family:var(--font-display);font-size:13px;font-weight:900;letter-spacing:.15em;text-transform:uppercase;color:#fff;}

/* =============================================
   ANALYSIS SPOTLIGHT (homepage)
   ============================================= */
.analysis-spotlight{background:var(--analysis-bg);border:1px solid var(--analysis-border);border-left:4px solid var(--intel-blue-light);padding:24px;position:relative;overflow:hidden;}
.analysis-spotlight::before{content:'RAGE X ANALYSIS';position:absolute;top:14px;right:14px;font-family:var(--font-mono);font-size:9px;letter-spacing:.18em;color:var(--intel-blue-light);border:1px solid var(--analysis-border);padding:2px 8px;}
.analysis-spotlight__title{font-family:var(--font-display);font-size:24px;font-weight:800;text-transform:uppercase;line-height:1.1;margin-bottom:10px;padding-right:130px;color:var(--text-p);}
.analysis-spotlight__title a{color:inherit;text-decoration:none;}
.analysis-spotlight__title a:hover{color:var(--rage-red-light);}
.analysis-spotlight__excerpt{font-family:var(--font-serif);font-size:15px;color:var(--text-s);line-height:1.7;margin-bottom:14px;}
.analysis-spotlight__link{font-family:var(--font-display);font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--intel-blue-light);display:inline-flex;align-items:center;gap:6px;text-decoration:none;transition:gap var(--transition),color var(--transition);}
.analysis-spotlight__link:hover{gap:10px;color:#6699cc;}
.analysis-spotlight__link::after{content:'→';}

/* =============================================
   MORE LINK
   ============================================= */
a.more-link{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-display);font-size:13px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--intel-blue-light);border:1px solid var(--analysis-border);padding:7px 14px;margin-top:8px;text-decoration:none;transition:all var(--transition);}
a.more-link:hover{background:var(--analysis-bg);color:var(--text-p);}

/* =============================================
   ATTACHMENT PAGE
   ============================================= */
.attachment-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1px;background:var(--border);border:1px solid var(--border);margin:20px 0;}
.attachment-meta__item{background:var(--bg-s1);padding:10px 12px;}
.attachment-meta__label{font-family:var(--font-mono);font-size:9px;letter-spacing:.16em;text-transform:uppercase;color:var(--text-m);margin-bottom:3px;}
.attachment-meta__value{font-family:var(--font-display);font-size:13px;font-weight:700;color:var(--text-p);}

/* =============================================
   RESPONSIVE FIXES
   ============================================= */
@media(max-width:768px){
  .analysis-spotlight__title{padding-right:0;font-size:18px;}
  .analysis-spotlight::before{display:none;}
  .author-box{padding:16px;}
  .author-box__avatar{width:60px;height:60px;}
}

/* =============================================
   HOMEPAGE BODY LAYOUT
   ============================================= */
.homepage-body {
  padding-top: 0;
  padding-bottom: 0;
}

.homepage-body__inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 32px 0 0;
  align-items: start;
}

.homepage-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.homepage-sidebar {
  position: relative;
}

/* =============================================
   HOMEPAGE CATEGORY SECTION
   ============================================= */
.homepage-cat-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.homepage-cat-section:last-child {
  border-bottom: none;
}

/* Section header */
.homepage-cat-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.homepage-cat-section__header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--cat-accent, var(--rage-red));
  transition: width 0.3s ease;
}

.homepage-cat-section:hover .homepage-cat-section__header::after {
  width: 80px;
}

.homepage-cat-section__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.homepage-cat-section__icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.homepage-cat-section__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-p);
  margin: 0;
  line-height: 1;
}

.homepage-cat-section__count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-m);
  background: var(--bg-s3);
  padding: 2px 8px;
  border-radius: 10px;
}

.homepage-cat-section__view-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cat-accent, var(--rage-red));
  text-decoration: none;
  white-space: nowrap;
  transition: gap var(--transition), opacity var(--transition);
  opacity: 0.7;
}

.homepage-cat-section__view-all:hover {
  gap: 8px;
  opacity: 1;
  color: var(--cat-accent, var(--rage-red));
}

/* Section footer link */
.homepage-cat-section__footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.homepage-cat-section__footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cat-accent, var(--rage-red));
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid var(--cat-accent, var(--rage-red));
  transition: all var(--transition);
  opacity: 0.7;
}

.homepage-cat-section__footer-link:hover {
  opacity: 1;
  background: rgba(154,0,0,0.07);
}

/* ── Headlines-only layout (Command Center → Homepage → Card style: Headlines only) ── */
.cat-section-headlines{display:flex;flex-direction:column;gap:0;}
.cat-section-headlines__item{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border);}
.cat-section-headlines__item:last-child{border-bottom:none;}
.cat-section-headlines__link{font-family:var(--font-display);font-size:15px;font-weight:700;color:var(--text-p);text-decoration:none;text-transform:uppercase;letter-spacing:.02em;flex:1;transition:color var(--transition);}
.cat-section-headlines__link:hover{color:var(--rage-red-light);}
.cat-section-headlines__time{font-family:var(--font-mono);font-size:10px;color:var(--text-m);letter-spacing:.05em;white-space:nowrap;}

/* =============================================
   FEATURED + GRID LAYOUT
   ============================================= */
.cat-section-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

/* Featured article (left) */
.cat-section-featured {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}

.cat-section-featured:hover {
  border-color: var(--cat-accent, var(--rage-red));
}

.cat-section-featured__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-s3);
  flex-shrink: 0;
}

.cat-section-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.cat-section-featured:hover .cat-section-featured__img {
  transform: scale(1.04);
}

.cat-section-featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.cat-section-featured:hover .cat-section-featured__overlay {
  opacity: 1;
}

.cat-section-featured__body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-section-featured__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-section-featured__time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-m);
  letter-spacing: 0.04em;
}

.cat-section-featured__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.01em;
  flex: 1;
}

.cat-section-featured__title a {
  color: var(--text-p);
  text-decoration: none;
}

.cat-section-featured__title a:hover {
  color: var(--cat-accent, var(--rage-red-light));
}

.cat-section-featured__excerpt {
  font-size: 14px;
  color: var(--text-s);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-section-featured__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-section-featured__author {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-m);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cat-section-featured__readtime {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-m);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* List (right column) */
.cat-section-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cat-section-list__item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: border-color var(--transition);
}

.cat-section-list__item:hover {
  border-color: var(--cat-accent, var(--rage-red));
}

.cat-section-list__link {
  display: flex;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  align-items: flex-start;
}

.cat-section-list__thumb {
  width: 80px;
  height: 56px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-s3);
}

.cat-section-list__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cat-section-list__item:hover .cat-section-list__img {
  transform: scale(1.06);
}

.cat-section-list__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-section-list__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cat-section-list__meta time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-m);
  letter-spacing: 0.03em;
}

.cat-section-list__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
  color: var(--text-p);
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-section-list__author {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-m);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Compact list (below featured card) */
.cat-section-list-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.cat-section-compact-list {
  display: flex;
  flex-direction: column;
}

/* =============================================
   NO SECTIONS NOTICE
   ============================================= */
.no-sections-notice {
  padding: 48px 24px;
  text-align: center;
  background: var(--bg-s1);
  border: 1px dashed var(--border-mid);
}

.no-sections-notice p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-m);
  letter-spacing: 0.05em;
}

/* =============================================
   CATEGORY ARCHIVE HEADER
   ============================================= */
.cat-archive-header {
  background: var(--bg-s1);
  border-bottom: 3px solid var(--cat-accent, var(--rage-red));
  padding: 0 0 24px;
  margin-bottom: 0;
}

.cat-archive-header__inner {
  padding-top: 20px;
}

.cat-archive-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cat-archive-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-m);
}

.cat-archive-header__breadcrumb a {
  color: var(--text-m);
  text-decoration: none;
  transition: color var(--transition);
}

.cat-archive-header__breadcrumb a:hover {
  color: var(--text-p);
}

.cat-archive-header__live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-m);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 1px;
}

.cat-archive-header__body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.cat-archive-header__icon {
  font-size: 48px;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.85;
}

.cat-archive-header__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-p);
  margin: 0 0 8px;
}

.cat-archive-header__desc {
  font-size: 14px;
  color: var(--text-s);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.cat-archive-header__stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-m);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Category sub-navigation */
.cat-archive-subnav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.cat-archive-subnav__link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-m);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 1px;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.cat-archive-subnav__link:hover {
  color: var(--text-p);
  border-color: var(--cat-accent, var(--rage-red));
  background: rgba(154,0,0,0.06);
}

/* =============================================
   CATEGORY FEATURED HERO
   ============================================= */
.cat-featured-hero {
  padding-top: 24px;
  padding-bottom: 24px;
}

.cat-featured-hero__article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: border-color var(--transition);
}

.cat-featured-hero__article:hover {
  border-color: var(--cat-accent, var(--rage-red));
}

.cat-featured-hero__media {
  position: relative;
  overflow: hidden;
  background: var(--bg-s3);
  min-height: 320px;
}

.cat-featured-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.cat-featured-hero__article:hover .cat-featured-hero__img {
  transform: scale(1.04);
}

.cat-featured-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.3));
  pointer-events: none;
}

.cat-featured-hero__img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: var(--bg-s3);
}

.cat-featured-hero__media-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cat-featured-hero__content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.cat-featured-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-featured-hero__time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-m);
  letter-spacing: 0.04em;
}

.cat-featured-hero__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0;
}

.cat-featured-hero__title a {
  color: var(--text-p);
  text-decoration: none;
}

.cat-featured-hero__title a:hover {
  color: var(--cat-accent, var(--rage-red-light));
}

.cat-featured-hero__excerpt {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-s);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-featured-hero__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  margin-top: auto;
}

.cat-featured-hero__byline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-featured-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--cat-accent, var(--rage-red));
  padding: 9px 18px;
  border-radius: 1px;
  text-decoration: none;
  transition: opacity var(--transition), gap var(--transition);
  white-space: nowrap;
}

.cat-featured-hero__cta:hover {
  opacity: 0.85;
  gap: 10px;
  color: #fff;
}

/* =============================================
   ARCHIVE MAIN AREA
   ============================================= */
.category-archive-main {}

/* .no-posts-message → see v4.0 section below */

/* =============================================
   ALERT PANEL — ALL LINK
   ============================================= */
.alert-panel__all {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-m);
  border-top: 1px solid var(--alert-border);
  text-decoration: none;
  text-align: center;
  transition: color var(--transition), background var(--transition);
}

.alert-panel__all:hover {
  color: var(--rage-red-light);
  background: rgba(154,0,0,0.05);
}

/* =============================================
   HERO PLACEHOLDER (no image)
   ============================================= */
.hero-main__img--placeholder {
  background: var(--bg-s3);
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 520px;
  display: block;
}

.hero-side__img--placeholder {
  background: var(--bg-s3);
  width: 100%;
  height: 100%;
  min-height: 150px;
  display: block;
}

/* =============================================
   HERO SIDE TIME
   ============================================= */
.hero-side__time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
  display: block;
  margin-top: 4px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .homepage-body__inner {
    grid-template-columns: 1fr 300px;
    gap: 28px;
  }

  .cat-section-featured-grid {
    grid-template-columns: 1fr;
  }

  .cat-section-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-featured-hero__article {
    grid-template-columns: 1fr;
  }

  .cat-featured-hero__media {
    min-height: 240px;
  }
}

@media (max-width: 900px) {
  .homepage-body__inner {
    grid-template-columns: 1fr;
  }

  .homepage-sidebar {
    display: none; /* show below on mobile via different template */
  }

  .cat-section-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cat-archive-header__body {
    flex-direction: column;
    gap: 10px;
  }

  .cat-archive-header__icon {
    font-size: 36px;
  }

  .cat-archive-header__title {
    font-size: 28px;
  }

  .cat-section-featured-grid {
    grid-template-columns: 1fr;
  }

  .cat-featured-hero__article {
    grid-template-columns: 1fr;
  }

  .cat-featured-hero__content {
    padding: 16px;
  }

  .homepage-cat-section {
    padding: 24px 0;
  }
}

@media (max-width: 480px) {
  .cat-archive-subnav {
    display: none;
  }
}


/* =============================================
   LIGHT MODE — CATEGORY SECTIONS
   ============================================= */
[data-theme="light"] .homepage-cat-section,
[data-theme="auto"] .homepage-cat-section {
  border-bottom-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .cat-section-featured,
[data-theme="auto"] .cat-section-featured,
[data-theme="light"] .cat-section-list__item,
[data-theme="auto"] .cat-section-list__item {
  background: #ffffff;
  border-color: rgba(0,0,0,0.09);
}

[data-theme="light"] .cat-archive-header,
[data-theme="auto"] .cat-archive-header {
  background: #f5f5f5;
}

[data-theme="light"] .cat-featured-hero__article,
[data-theme="auto"] .cat-featured-hero__article {
  background: #ffffff;
  border-color: rgba(0,0,0,0.09);
}

[data-theme="light"] .cat-archive-subnav__link,
[data-theme="auto"] .cat-archive-subnav__link {
  border-color: rgba(0,0,0,0.1);
  color: #555;
}

[data-theme="light"] .homepage-cat-section__count,
[data-theme="auto"] .homepage-cat-section__count {
  background: #e8e8e8;
}

/* =============================================
   HERO PLACEHOLDER SHIMMER
   ============================================= */
.hero-main__img--placeholder {
  background: linear-gradient(
    90deg,
    var(--bg-s2) 25%,
    var(--bg-s3) 50%,
    var(--bg-s2) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s infinite;
}

.hero-side__img--placeholder {
  background: linear-gradient(
    90deg,
    var(--bg-s2) 25%,
    var(--bg-s3) 50%,
    var(--bg-s2) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s infinite;
}

.cat-featured-hero__img-placeholder {
  background: linear-gradient(
    90deg,
    var(--bg-s2) 25%,
    var(--bg-s3) 50%,
    var(--bg-s2) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s infinite;
  min-height: 320px;
}

/* =============================================
   ACCESSIBILITY: Focus improvements
   ============================================= */
.nav-primary__menu > li > a:focus-visible,
.article-card a:focus-visible,
.cat-section-list__link:focus-visible,
.cat-featured-hero__cta:focus-visible {
  outline: 2px solid var(--rage-red);
  outline-offset: 2px;
}

/* =============================================
   PRINT: Category pages
   ============================================= */
@media print {
  .cat-archive-header,
  .cat-archive-subnav,
  .archive-filter,
  .homepage-sidebar,
  .cat-featured-hero__cta { display: none !important; }

  .cat-featured-hero__article { display: block; }
  .cat-featured-hero__media { display: none; }
}
/* =============================================
   V4.0 — AXIOS-LEVEL READING EXPERIENCE
   ============================================= */

/* ── Reading column ── */
.container--read {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}
.container--lg {
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Threat Bar ── */
.threat-bar {
  padding: 8px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
}
.threat-bar .container { display: flex; align-items: center; justify-content: center; gap: 10px; }
.threat-bar__level { font-size: 13px; }

/* ── Single Hero ── */
.single-hero { position: relative; overflow: hidden; max-height: 520px; }
.single-hero__img-wrap { position: relative; }
.single-hero__img { width: 100%; height: auto; max-height: 520px; object-fit: cover; display: block; }
.single-hero__gradient { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg-body) 0%, transparent 40%); pointer-events: none; }
.single-hero__caption { font-family: var(--font-mono); font-size: 11px; color: var(--text-m); letter-spacing: .04em; margin-top: 6px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }

/* ── Article Header (Axios-clean) ── */
.rx-article { padding-bottom: 48px; }
.rx-article__header { padding-top: 28px; }
.rx-crumb { font-family: var(--font-mono); font-size: 11px; color: var(--text-m); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rx-crumb a { color: var(--text-m); text-decoration: none; transition: color .15s; }
.rx-crumb a:hover { color: var(--text-p); }
.rx-article__badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.rx-article__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--text-p);
  margin-bottom: 16px;
}
.rx-article__deck {
  font-family: var(--font-serif);
  font-size: clamp(17px, 2vw, 20px);
  font-style: italic;
  color: var(--text-s);
  line-height: 1.55;
  margin-bottom: 20px;
  border-left: 3px solid var(--rage-red);
  padding-left: 16px;
}

/* ── Byline (Axios-style) ── */
.rx-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.rx-byline__avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--border); object-fit: cover; flex-shrink: 0; }
.rx-byline__info { flex: 1; min-width: 0; }
.rx-byline__name { font-family: var(--font-display); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text-p); text-decoration: none; }
.rx-byline__name:hover { color: var(--rage-red-light); }
.rx-byline__meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-m); letter-spacing: .03em; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.rx-byline__updated {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--tac-yellow);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: right;
  flex-shrink: 0;
}

/* ── Article body: Axios-level typography ── */
.rx-article .article-body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-p);
}
.rx-article .article-body > * + * { margin-top: 1.4em; }
.rx-article .article-body p { margin-bottom: 0; }
.rx-article .article-body h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 2.2em 0 .8em;
  padding-left: 14px;
  border-left: 3px solid var(--rage-red);
  line-height: 1.15;
}
.rx-article .article-body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 1.6em 0 .6em;
}
.rx-article .article-body blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  background: var(--analysis-bg);
  border-left: 4px solid var(--intel-blue-light);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--text-s);
  line-height: 1.7;
}
.rx-article .article-body img {
  margin: 2em auto;
  max-width: 100%;
  border: 1px solid var(--border);
}

/* Article layout with sidebar */
.rx-article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
  padding: 0 24px;
}
.rx-article-layout__main { min-width: 0; }
.rx-article-layout__sidebar { position: sticky; top: 80px; }
@media (max-width: 1000px) {
  .rx-article-layout { grid-template-columns: 1fr; }
  .rx-article-layout__sidebar { display: none; }
}

/* =============================================
   v10.1 — POLITICO / AXIOS READING EXPERIENCE
   ============================================= */

/* ── Drop cap (first paragraph of article) ── */
.article-body.has-dropcap > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.8em;
  font-weight: 900;
  float: left;
  line-height: 0.75;
  margin: 6px 12px 0 0;
  color: var(--rage-red);
  text-transform: uppercase;
}

/* ── Pull quote (use .pullquote class in editor) ── */
.article-body .pullquote,
.article-body .wp-block-pullquote {
  margin: 2.5em 0;
  padding: 28px 0;
  border-top: 3px solid var(--rage-red);
  border-bottom: 1px solid var(--border);
  border-left: none;
  background: none;
  text-align: center;
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--text-p);
}
.article-body .pullquote cite,
.article-body .wp-block-pullquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-m);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ── Improved paragraph rhythm ── */
.rx-article .article-body p {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.85;
  color: var(--text-p);
  letter-spacing: .005em;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* ── Section divider ── */
.article-body .section-break,
.article-body hr {
  border: none;
  margin: 3em auto;
  width: 80px;
  height: 0;
  border-top: 2px solid var(--rage-red-dim);
  position: relative;
}
.article-body hr::after {
  content: '✦';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-body);
  padding: 0 12px;
  font-size: 11px;
  color: var(--text-m);
}

/* ── Key fact / highlight box ── */
.article-body .key-fact,
.article-body .wp-block-group.is-style-key-fact {
  margin: 2em 0;
  padding: 20px 24px;
  background: var(--alert-bg);
  border: 1px solid var(--alert-border);
  border-left: 4px solid var(--rage-red);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
}
.article-body .key-fact strong:first-child {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--rage-red-light);
  margin-bottom: 8px;
}

/* ── Inline newsletter CTA mid-article ── */
.article-body .mid-article-cta {
  margin: 2.5em 0;
  padding: 24px;
  background: var(--bg-s2);
  border: 1px solid var(--border);
  text-align: center;
}
.article-body .mid-article-cta h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rage-red-light);
  margin-bottom: 8px;
}

/* ── Mobile article improvements ── */
@media (max-width: 768px) {
  .container--read { padding: 0 18px; }
  .rx-article__title { font-size: clamp(24px, 6vw, 32px); margin-bottom: 12px; }
  .rx-article__deck { font-size: 16px; padding-left: 12px; margin-bottom: 16px; }
  .rx-byline { gap: 10px; padding: 12px 0; }
  .rx-byline__avatar { width: 36px; height: 36px; }
  .rx-byline__name { font-size: 13px; }
  .rx-byline__updated { margin-left: 0; flex-basis: 100%; margin-top: 6px; text-align: left; font-size: 9px; }
  .rx-article .article-body { font-size: 16px; line-height: 1.75; }
  .rx-article .article-body h2 { font-size: 20px; margin: 1.8em 0 .6em; }
  .rx-article .article-body h3 { font-size: 17px; }
  .rx-article .article-body blockquote { padding: 16px 18px; font-size: 16px; margin: 1.5em 0; }
  .article-body .pullquote { font-size: 20px; padding: 20px 0; }
  .single-hero { max-height: 300px; }
  .single-hero__img { max-height: 300px; }
  .article-tags { flex-wrap: wrap; gap: 6px; }
  .post-nav { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 480px) {
  .container--read { padding: 0 14px; }
  .rx-article__title { font-size: 24px; }
  .rx-article .article-body { font-size: 15.5px; line-height: 1.72; }
  .rx-byline__meta { font-size: 10px; }
  .article-body.has-dropcap > p:first-of-type::first-letter { font-size: 3em; margin: 4px 8px 0 0; }
}

/* ── Live Intelligence Wire (homepage) ── */
.live-wire {
  background: var(--bg-s1);
  border-bottom: 1px solid var(--border);
  padding: 0;
  margin-bottom: 40px;
}
.live-wire__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--border);
}
.live-wire__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-wire__pulse {
  width: 8px;
  height: 8px;
  background: var(--rage-red-light);
  border-radius: 50%;
  animation: pulse-dot 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
.live-wire__title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rage-red-light);
  margin: 0;
}
.live-wire__timestamp {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--text-m);
  text-transform: uppercase;
  flex-shrink: 0;
}
.live-wire__feed {
  padding: 4px 0 8px;
  transition: opacity 0.2s ease;
}
.live-wire__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.live-wire__item:last-child {
  border-bottom: none;
}
.live-wire__item:hover {
  background: var(--bg-s2);
}
.live-wire__time {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-m);
  min-width: 44px;
  flex-shrink: 0;
}
.live-wire__breaking {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  background: var(--rage-red);
  color: #fff;
  padding: 2px 6px;
  flex-shrink: 0;
  animation: badge-pulse 2s ease-in-out infinite;
}
.live-wire__headline {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.3;
  color: var(--text-p);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--transition);
}
.live-wire__headline:hover {
  color: var(--rage-red-light);
}
.live-wire__ago {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--text-m);
  flex-shrink: 0;
  white-space: nowrap;
}
.live-wire__item .cat-badge {
  font-size: 9px;
  padding: 2px 6px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .live-wire__item {
    flex-wrap: wrap;
    gap: 6px;
  }
  .live-wire__headline {
    white-space: normal;
    order: 10;
    flex-basis: 100%;
  }
  .live-wire__ago { display: none; }
}

/* ── Category Header (v4) ── */
.cat-header {
  background: var(--bg-s1);
  border-bottom: 3px solid var(--cat-accent, var(--rage-red));
  padding: 24px 0 20px;
}
.cat-header__inner {}
.cat-header__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cat-header__live { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; color: var(--text-m); text-transform: uppercase; }
.cat-header__main { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.cat-header__icon { font-size: 42px; line-height: 1; flex-shrink: 0; }
.cat-header__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--text-p);
  line-height: 1;
}
.cat-header__desc { font-size: 14px; color: var(--text-s); line-height: 1.5; margin-top: 4px; max-width: 600px; }
.cat-header__stats { font-family: var(--font-mono); font-size: 11px; color: var(--text-m); letter-spacing: .06em; display: flex; gap: 8px; margin-top: 6px; }
.cat-header__nav { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-header__nav-link {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-m);
  border: 1px solid var(--border);
  padding: 5px 12px;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.cat-header__nav-link:hover { color: var(--text-p); border-color: var(--border-mid); background: var(--bg-s2); }

/* ── Category Featured Hero (v4) ── */
.cat-feat { padding: 24px 0 0; }
.cat-feat__article {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--bg-s1);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .2s;
}
.cat-feat__article:hover { border-color: var(--rage-red); }
.cat-feat__media { position: relative; min-height: 320px; overflow: hidden; }
.cat-feat__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.cat-feat__article:hover .cat-feat__img { transform: scale(1.03); }
.cat-feat__overlay { position: absolute; inset: 0; background: linear-gradient(to right, transparent 60%, rgba(0,0,0,.3)); pointer-events: none; }
.cat-feat__placeholder { background: var(--bg-s3); width: 100%; height: 100%; min-height: 320px; }
.cat-feat__badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.cat-feat__content { padding: 28px 28px 24px; display: flex; flex-direction: column; justify-content: center; }
.cat-feat__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-m); }
.cat-feat__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cat-feat__title a { color: var(--text-p); text-decoration: none; }
.cat-feat__title a:hover { color: var(--rage-red-light); }
.cat-feat__excerpt { font-size: 14px; color: var(--text-s); line-height: 1.6; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cat-feat__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.cat-feat__byline { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-m); }
.cat-feat__byline-avatar { border-radius: 50%; border: 2px solid var(--border); }
.cat-feat__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rage-red-light);
  border: 1px solid var(--rage-red);
  padding: 8px 16px;
  text-decoration: none;
  transition: all .15s;
}
.cat-feat__cta:hover { background: var(--rage-red); color: #fff; }

@media (max-width: 768px) {
  .cat-feat__article { grid-template-columns: 1fr; }
  .cat-feat__media { min-height: 220px; }
  .cat-feat__content { padding: 18px; }
}

/* ── Filter Bar (v4) ── */
.cat-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  flex-wrap: wrap;
}
.cat-filter__left { display: flex; align-items: center; gap: 6px; }
.cat-filter__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-m);
}
.cat-filter__btn {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-m);
  padding: 5px 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all .15s;
}
.cat-filter__btn:hover { color: var(--text-p); border-color: var(--border-mid); }
.cat-filter__btn.is-active { background: var(--rage-red); color: #fff; border-color: var(--rage-red); }
.cat-filter__page { font-family: var(--font-mono); font-size: 11px; color: var(--text-m); }

/* ── Social Follow Items ── */
.social-follow-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.social-follow-item__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-s);
  letter-spacing: .03em;
  text-decoration: none;
  transition: color .15s;
}
.social-follow-item__link:hover { color: var(--text-p); }
.social-follow-item__count { font-family: var(--font-mono); font-size: 11px; color: var(--tac-yellow); font-weight: 600; }

/* ── Pagination (improved) ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 28px 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  border: 1px solid var(--border);
  color: var(--text-s);
  text-decoration: none;
  transition: all .15s;
}
.pagination a:hover { border-color: var(--rage-red); color: var(--text-p); background: rgba(154,0,0,.06); }
.pagination .current { background: var(--rage-red); color: #fff; border-color: var(--rage-red); }
.pagination .dots { border: none; color: var(--text-m); }

/* ── No posts ── */
.no-posts-message {
  text-align: center;
  padding: 60px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-m);
}

/* ── Mobile refinements v4 ── */
@media (max-width: 768px) {
  .container--read { padding: 0 18px; }
  .rx-article__title { font-size: 24px; }
  .rx-article__deck { font-size: 16px; padding-left: 12px; }
  .rx-byline { flex-direction: column; align-items: flex-start; }
  .rx-byline__updated { margin-left: 0; margin-top: 6px; }
  .rx-article .article-body { font-size: 16px; line-height: 1.75; }
  .breaking-wire__grid { grid-template-columns: 1fr; }
  .cat-header__main { flex-direction: column; align-items: flex-start; }
  .cat-header__icon { font-size: 32px; }
  .cat-header__nav { display: none; }
}

@media (max-width: 480px) {
  .container--read { padding: 0 16px; }
  .rx-article__title { font-size: 22px; }
  .cat-feat__cta { display: none; }
}
.cat-main { min-width: 0; }

/* =================================================================
   V4.2 — PROFESSIONAL POLISH & COMPLETE LIGHT MODE FIX
   =================================================================
   Design principles:
   - More whitespace, less crowding
   - Wider gaps between elements
   - Professional restraint
   - Perfect light mode for every component
   ================================================================= */

/* v4.2 spacing overrides consolidated into v12.0 section */

/* ── Hero: more refined ── */
.hero-grid { gap: 4px; }
.hero-main__body { padding: 32px 32px 32px 36px; }
.hero-main__title { margin-bottom: 12px; }
.hero-side__body { padding: 14px 16px; }

/* v4.2 cat-section overrides → consolidated */

/* v4.2 rx-article overrides → consolidated */

/* v4.2 footer/cat overrides → consolidated */

/* Newsletter widget → defined in Forms section above */

/* =================================================================
   COMPLETE LIGHT MODE OVERRIDES
   Every component explicitly fixed for white backgrounds
   ================================================================= */
/* Light mode overrides — auto mode handled by @media rules above in :root section */

/* ── Light: Header ── */
[data-theme="light"] .site-header,
[data-theme="auto"] .site-header {
  border-bottom-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
[data-theme="light"] .site-header.is-scrolled,
[data-theme="auto"] .site-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
[data-theme="light"] .site-logo__name,
[data-theme="auto"] .site-logo__name {
  color: #111;
}
[data-theme="light"] .header-live,
[data-theme="auto"] .header-live {
  border-color: rgba(0,0,0,0.1);
  color: #888;
}

/* ── Light: Breaking ticker ── */
[data-theme="light"] .breaking-ticker__label,
[data-theme="auto"] .breaking-ticker__label {
  background: #1a1a1a;
}

/* ── Light: Nav ── */
[data-theme="light"] .nav-primary,
[data-theme="auto"] .nav-primary {
  background: #fff;
  border-bottom-color: #9A0000;
}

/* ── Light: Live Wire ── */
[data-theme="light"] .live-wire,
[data-theme="auto"] .live-wire {
  background: #fff;
  border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .live-wire__item,
[data-theme="auto"] .live-wire__item {
  border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .live-wire__item:hover,
[data-theme="auto"] .live-wire__item:hover {
  background: #f8f8f8;
}
[data-theme="light"] .live-wire__headline,
[data-theme="auto"] .live-wire__headline {
  color: #111;
}
[data-theme="light"] .live-wire__headline:hover,
[data-theme="auto"] .live-wire__headline:hover {
  color: #9A0000;
}
[data-theme="light"] .live-wire__time,
[data-theme="auto"] .live-wire__time {
  color: #999;
}
[data-theme="light"] .live-wire__ago,
[data-theme="auto"] .live-wire__ago {
  color: #aaa;
}

/* ── Light: Hero overlays ── */
[data-theme="light"] .hero-main__overlay,
[data-theme="auto"] .hero-main__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.05) 100%);
}
[data-theme="light"] .hero-side__overlay,
[data-theme="auto"] .hero-side__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}

/* ── Light: Article cards ── */
[data-theme="light"] .article-card,
[data-theme="auto"] .article-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
[data-theme="light"] .article-card:hover,
[data-theme="auto"] .article-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: #9A0000;
}
[data-theme="light"] .article-card__footer,
[data-theme="auto"] .article-card__footer {
  background: #fafafa;
  border-top-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .article-card__title a,
[data-theme="auto"] .article-card__title a {
  color: #111;
}

/* ── Light: Category badges — softer backgrounds ── */
[data-theme="light"] .cat-badge--alerts,
[data-theme="auto"] .cat-badge--alerts { background: #9A0000; color: #fff; }
[data-theme="light"] .cat-badge--war,
[data-theme="auto"] .cat-badge--war { background: #f0e0e0; color: #7a1a1a; border: 1px solid #dcc; }
[data-theme="light"] .cat-badge--intelligence,
[data-theme="auto"] .cat-badge--intelligence { background: #e0e8f4; color: #1B365D; border: 1px solid #c8d8ee; }
[data-theme="light"] .cat-badge--defense,
[data-theme="auto"] .cat-badge--defense { background: #e0f0e0; color: #2a5a2a; border: 1px solid #c0dcc0; }
[data-theme="light"] .cat-badge--nuclear,
[data-theme="auto"] .cat-badge--nuclear { background: #f8f0d8; color: #7a6200; border: 1px solid #e8dcc0; }
[data-theme="light"] .cat-badge--global,
[data-theme="auto"] .cat-badge--global { background: #f0f0f0; color: #555; border-color: #ddd; }
[data-theme="light"] .cat-badge--military,
[data-theme="auto"] .cat-badge--military { background: #e4e4f4; color: #2a2a60; border: 1px solid #ccccee; }
[data-theme="light"] .cat-badge--technology,
[data-theme="auto"] .cat-badge--technology { background: #e0f0f0; color: #1a5a5a; border: 1px solid #c0dede; }
[data-theme="light"] .cat-badge--reports,
[data-theme="auto"] .cat-badge--reports { background: #f0f0f0; color: #555; border-color: #ddd; }
[data-theme="light"] .cat-badge--analysis,
[data-theme="auto"] .cat-badge--analysis { color: #1B365D; border-color: #1B365D; }
[data-theme="light"] .cat-badge--exclusive,
[data-theme="auto"] .cat-badge--exclusive { background: #fdf6e0; color: #7a6200; border-color: #e8d88a; }
[data-theme="light"] .cat-badge--breaking,
[data-theme="auto"] .cat-badge--breaking { background: #9A0000; color: #fff; }

/* ── Light: Alert panel ── */
[data-theme="light"] .alert-panel,
[data-theme="auto"] .alert-panel {
  background: #fff;
  border-color: rgba(154,0,0,0.12);
}
[data-theme="light"] .alert-panel__item,
[data-theme="auto"] .alert-panel__item {
  border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .alert-panel__item:hover,
[data-theme="auto"] .alert-panel__item:hover {
  background: rgba(154,0,0,0.03);
}
[data-theme="light"] .alert-panel__item-title,
[data-theme="auto"] .alert-panel__item-title {
  color: #111;
}

/* ── Light: Widgets ── */
[data-theme="light"] .widget,
[data-theme="auto"] .widget {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
[data-theme="light"] .widget-title,
[data-theme="auto"] .widget-title {
  background: #f8f8f8;
  color: #111;
  border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .trending-item__num,
[data-theme="auto"] .trending-item__num {
  color: rgba(0,0,0,0.08);
}
[data-theme="light"] .trending-item__title a,
[data-theme="auto"] .trending-item__title a {
  color: #111;
}

/* ── Light: Category header ── */
[data-theme="light"] .cat-header,
[data-theme="auto"] .cat-header {
  background: #fff;
}
[data-theme="light"] .cat-header__title,
[data-theme="auto"] .cat-header__title {
  color: #111;
}
[data-theme="light"] .cat-header__nav-link,
[data-theme="auto"] .cat-header__nav-link {
  border-color: rgba(0,0,0,0.1);
  color: #666;
}
[data-theme="light"] .cat-header__nav-link:hover,
[data-theme="auto"] .cat-header__nav-link:hover {
  background: #f5f5f5;
  color: #111;
}

/* ── Light: Category featured hero ── */
[data-theme="light"] .cat-feat__article,
[data-theme="auto"] .cat-feat__article {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
[data-theme="light"] .cat-feat__title a,
[data-theme="auto"] .cat-feat__title a {
  color: #111;
}

/* ── Light: Category filter ── */
[data-theme="light"] .cat-filter,
[data-theme="auto"] .cat-filter {
  border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .cat-filter__btn,
[data-theme="auto"] .cat-filter__btn {
  border-color: rgba(0,0,0,0.12);
  color: #666;
}
[data-theme="light"] .cat-filter__btn:hover,
[data-theme="auto"] .cat-filter__btn:hover {
  background: #f5f5f5;
  color: #111;
}
[data-theme="light"] .cat-filter__btn.is-active,
[data-theme="auto"] .cat-filter__btn.is-active {
  background: #9A0000;
  color: #fff;
  border-color: #9A0000;
}

/* ── Light: Single article ── */
[data-theme="light"] .rx-article__title,
[data-theme="auto"] .rx-article__title {
  color: #111;
}
[data-theme="light"] .rx-article__deck,
[data-theme="auto"] .rx-article__deck {
  color: #555;
}
[data-theme="light"] .rx-byline,
[data-theme="auto"] .rx-byline {
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .rx-byline__name,
[data-theme="auto"] .rx-byline__name {
  color: #111;
}
[data-theme="light"] .rx-byline__avatar,
[data-theme="auto"] .rx-byline__avatar {
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .analysis-label,
[data-theme="auto"] .analysis-label {
  background: rgba(27,54,93,0.05);
  border-color: rgba(27,54,93,0.15);
  border-left-color: #3a6aaa;
}
[data-theme="light"] .article-body h2,
[data-theme="auto"] .article-body h2 {
  color: #111;
}
[data-theme="light"] .article-body blockquote,
[data-theme="auto"] .article-body blockquote {
  background: rgba(27,54,93,0.04);
  border-left-color: #3a6aaa;
  color: #444;
}

/* ── Light: Author box ── */
[data-theme="light"] .author-box,
[data-theme="auto"] .author-box {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
  border-top-color: #9A0000;
}

/* ── Light: Post navigation ── */
[data-theme="light"] .post-nav__item,
[data-theme="auto"] .post-nav__item {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .post-nav__item:hover,
[data-theme="auto"] .post-nav__item:hover {
  border-color: #9A0000;
  background: #fafafa;
}

/* ── Light: Section headers ── */
[data-theme="light"] .section-header,
[data-theme="auto"] .section-header {
  border-bottom-color: rgba(0,0,0,0.08);
}

/* ── Light: Intel strip ── */
[data-theme="light"] .intel-strip,
[data-theme="auto"] .intel-strip {
  background: #fff;
  border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .intel-strip__value,
[data-theme="auto"] .intel-strip__value {
  color: #111;
}

/* ── Light: Pagination ── */
[data-theme="light"] .pagination a,
[data-theme="light"] .pagination span,
[data-theme="auto"] .pagination a,
[data-theme="auto"] .pagination span {
  border-color: rgba(0,0,0,0.1);
  color: #555;
}
[data-theme="light"] .pagination a:hover,
[data-theme="auto"] .pagination a:hover {
  background: #f5f5f5;
  color: #111;
  border-color: #9A0000;
}
[data-theme="light"] .pagination .current,
[data-theme="auto"] .pagination .current {
  background: #9A0000;
  color: #fff;
  border-color: #9A0000;
}

/* ── Light: Threat bar ── */
[data-theme="light"] .threat-bar,
[data-theme="auto"] .threat-bar {
  color: #fff;
}

/* ── Light: Share buttons ── */
[data-theme="light"] .share-btn,
[data-theme="auto"] .share-btn {
  border-color: rgba(0,0,0,0.1);
  color: #666;
}
[data-theme="light"] .share-btn:hover,
[data-theme="auto"] .share-btn:hover {
  background: rgba(154,0,0,0.04);
  border-color: #9A0000;
  color: #111;
}

/* ── Light: Article tags ── */
[data-theme="light"] .article-tag,
[data-theme="auto"] .article-tag {
  border-color: rgba(0,0,0,0.1);
  color: #666;
}
[data-theme="light"] .article-tag:hover,
[data-theme="auto"] .article-tag:hover {
  border-color: rgba(0,0,0,0.2);
  color: #111;
  background: #f5f5f5;
}

/* ── Light: Theme toggle ── */
[data-theme="light"] .theme-toggle,
[data-theme="auto"] .theme-toggle {
  background: #f0f0f0;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .theme-toggle__btn,
[data-theme="auto"] .theme-toggle__btn {
  color: #aaa;
}
[data-theme="light"] .theme-toggle__btn:hover,
[data-theme="auto"] .theme-toggle__btn:hover {
  color: #111;
}

/* ── Light: Scroll top ── */
[data-theme="light"] .scroll-top,
[data-theme="auto"] .scroll-top {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  color: #555;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ── Light: Category section cards ── */
[data-theme="light"] .cat-section-featured,
[data-theme="auto"] .cat-section-featured {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
[data-theme="light"] .cat-section-list__item,
[data-theme="auto"] .cat-section-list__item {
  background: #fff;
  border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .cat-section-list__item:hover,
[data-theme="auto"] .cat-section-list__item:hover {
  background: #fafafa;
}
[data-theme="light"] .cat-section-list__title,
[data-theme="auto"] .cat-section-list__title {
  color: #111;
}
[data-theme="light"] .cat-section-featured__title a,
[data-theme="auto"] .cat-section-featured__title a {
  color: #111;
}

/* ── Light: Homepage sidebar category list ── */
[data-theme="light"] .cat-list-item a,
[data-theme="auto"] .cat-list-item a {
  color: #333;
}
[data-theme="light"] .cat-list-item__count,
[data-theme="auto"] .cat-list-item__count {
  background: #f0f0f0;
  color: #666;
}

/* ── Light: Social follow items ── */
[data-theme="light"] .social-follow-item__link,
[data-theme="auto"] .social-follow-item__link {
  color: #555;
}
[data-theme="light"] .social-follow-item__link:hover,
[data-theme="auto"] .social-follow-item__link:hover {
  color: #111;
}
[data-theme="light"] .social-follow-item__count,
[data-theme="auto"] .social-follow-item__count {
  color: #9A0000;
}

/* ── Light: Search input ── */
[data-theme="light"] .header-search__input,
[data-theme="auto"] .header-search__input {
  background: #f5f5f5;
  border-color: rgba(0,0,0,0.08);
  color: #111;
}
[data-theme="light"] .header-search__input:focus,
[data-theme="auto"] .header-search__input:focus {
  background: #fff;
  border-color: #9A0000;
}

/* ── Light: Reading progress bar ── */
[data-theme="light"] .reading-progress,
[data-theme="auto"] .reading-progress {
  background: rgba(154,0,0,0.1);
}

/* ── Light: Code blocks ── */
[data-theme="light"] .article-body pre,
[data-theme="auto"] .article-body pre {
  background: #f8f8f8;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .article-body code,
[data-theme="auto"] .article-body code {
  background: #f0f0f0;
  border-color: rgba(0,0,0,0.08);
  color: #c41c1c;
}

/* ── Light: Mobile nav (v15.1: expanded to 900px to match mobile menu breakpoint) ── */
@media (max-width: 900px) {
  [data-theme="light"] .nav-primary__menu,
  [data-theme="auto"] .nav-primary__menu {
    background: #fff;
  }
  [data-theme="light"] .nav-primary__menu::before,
  [data-theme="auto"] .nav-primary__menu::before {
    background: #fff;
    color: #666;
  }
  [data-theme="light"] .nav-primary__menu > li > a,
  [data-theme="auto"] .nav-primary__menu > li > a {
    border-bottom-color: rgba(0,0,0,0.06);
    color: #333;
  }
  [data-theme="light"] .nav-primary__menu > li > a:hover,
  [data-theme="light"] .nav-primary__menu > li.current-menu-item > a,
  [data-theme="auto"] .nav-primary__menu > li > a:hover,
  [data-theme="auto"] .nav-primary__menu > li.current-menu-item > a {
    background: #f8f8f8;
    color: #111;
  }
  [data-theme="light"] .nav-primary__menu .sub-menu,
  [data-theme="auto"] .nav-primary__menu .sub-menu {
    background: #f5f5f5;
  }
  [data-theme="light"] .nav-primary__menu .sub-menu li a,
  [data-theme="auto"] .nav-primary__menu .sub-menu li a {
    color: #444;
    border-bottom-color: rgba(0,0,0,0.04);
  }
  /* Hamburger icon lines */
  [data-theme="light"] .header-toggle span,
  [data-theme="auto"] .header-toggle span {
    background: #333;
  }
}

/* ── Light: News Dashboard (v15.1) ── */
[data-theme="light"] .news-dashboard,
[data-theme="auto"] .news-dashboard {
  background: #fff;
}
[data-theme="light"] .nd-grid,
[data-theme="auto"] .nd-grid {
  border-bottom-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .nd-lead,
[data-theme="auto"] .nd-lead {
  border-right-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .nd-lead__title a,
[data-theme="auto"] .nd-lead__title a {
  color: #111;
}
[data-theme="light"] .nd-lead__excerpt,
[data-theme="auto"] .nd-lead__excerpt {
  color: #555;
}
[data-theme="light"] .nd-carousel,
[data-theme="auto"] .nd-carousel {
  background: #f0f0f0;
}
[data-theme="light"] .nd-commentary,
[data-theme="auto"] .nd-commentary {
  background: #fafafa;
  border-left-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .nd-commentary__quote a,
[data-theme="auto"] .nd-commentary__quote a {
  color: #111;
}
[data-theme="light"] .nd-commentary__author-name,
[data-theme="auto"] .nd-commentary__author-name {
  color: #1B365D;
}
[data-theme="light"] .nd-card,
[data-theme="auto"] .nd-card {
  border-right-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .nd-card:hover,
[data-theme="auto"] .nd-card:hover {
  background: #f8f8f8;
}
[data-theme="light"] .nd-card__title a,
[data-theme="auto"] .nd-card__title a {
  color: #111;
}

/* ── Light: Homepage body & section headers ── */
[data-theme="light"] .homepage-body,
[data-theme="auto"] .homepage-body {
  background: #f4f4f4;
}
[data-theme="light"] .homepage-cat-section__top,
[data-theme="auto"] .homepage-cat-section__top {
  border-bottom-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .homepage-cat-section__title,
[data-theme="auto"] .homepage-cat-section__title {
  color: #111;
}

/* ── Light: Newsletter widget ── */
[data-theme="light"] .widget-newsletter,
[data-theme="auto"] .widget-newsletter {
  background: #fff;
}
[data-theme="light"] .nl-input,
[data-theme="auto"] .nl-input {
  background: #f5f5f5;
  border-color: rgba(0,0,0,0.1);
  color: #111;
}
[data-theme="light"] .nl-submit,
[data-theme="auto"] .nl-submit {
  background: #9A0000;
  color: #fff;
}

/* ── Light: Single hero caption ── */
[data-theme="light"] .single-hero__caption,
[data-theme="auto"] .single-hero__caption {
  color: #888;
}

/* ══════════════════════════════════════════════════════
   v15.1 — COMPREHENSIVE LIGHT THEME: Article & Page Content
   Ensures ALL content areas have proper light backgrounds
   and dark text. Covers single posts, pages, Gutenberg
   blocks, and all article body elements.
   ══════════════════════════════════════════════════════ */

/* ── Light: Full page background guarantee ── */
[data-theme="light"],
[data-theme="light"] body {
  background-color: #f4f4f4 !important;
  color: #111 !important;
}
@media (prefers-color-scheme: light) {
  [data-theme="auto"],
  [data-theme="auto"] body {
    background-color: #f4f4f4 !important;
    color: #111 !important;
  }
}

/* ── Light: Site main wrapper ── */
[data-theme="light"] .site-main,
[data-theme="auto"] .site-main {
  background: #f4f4f4;
}

/* ── Light: Layout containers ── */
[data-theme="light"] .layout-with-sidebar,
[data-theme="light"] .layout-full,
[data-theme="auto"] .layout-with-sidebar,
[data-theme="auto"] .layout-full {
  background: transparent;
}

/* ── Light: Article body text (posts + pages) ── */
[data-theme="light"] .article-body,
[data-theme="auto"] .article-body {
  color: #222;
}
[data-theme="light"] .article-body p,
[data-theme="light"] .article-body li,
[data-theme="light"] .article-body td,
[data-theme="auto"] .article-body p,
[data-theme="auto"] .article-body li,
[data-theme="auto"] .article-body td {
  color: #333;
}
[data-theme="light"] .article-body h2,
[data-theme="light"] .article-body h3,
[data-theme="light"] .article-body h4,
[data-theme="auto"] .article-body h2,
[data-theme="auto"] .article-body h3,
[data-theme="auto"] .article-body h4 {
  color: #111;
}
[data-theme="light"] .article-body a,
[data-theme="auto"] .article-body a {
  color: #1B365D;
}
[data-theme="light"] .article-body blockquote,
[data-theme="auto"] .article-body blockquote {
  background: rgba(27,54,93,0.04);
  border-left-color: #3a6aaa;
  color: #444;
}
[data-theme="light"] .article-body th,
[data-theme="auto"] .article-body th {
  background: #f0f0f0;
  color: #333;
  border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .article-body td,
[data-theme="auto"] .article-body td {
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .article-body tr:nth-child(even) td,
[data-theme="auto"] .article-body tr:nth-child(even) td {
  background: #f8f8f8;
}
[data-theme="light"] .article-body img,
[data-theme="auto"] .article-body img {
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .article-body hr,
[data-theme="auto"] .article-body hr {
  border-top-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .article-body hr::after,
[data-theme="auto"] .article-body hr::after {
  background: #f4f4f4;
  color: #aaa;
}
[data-theme="light"] .article-body figcaption,
[data-theme="auto"] .article-body figcaption {
  color: #888;
}

/* ── Light: Drop cap ── */
[data-theme="light"] .has-dropcap > p:first-of-type::first-letter,
[data-theme="auto"] .has-dropcap > p:first-of-type::first-letter {
  color: #9A0000;
}

/* ── Light: Single article header elements ── */
[data-theme="light"] .rx-crumb,
[data-theme="light"] .rx-crumb a,
[data-theme="auto"] .rx-crumb,
[data-theme="auto"] .rx-crumb a {
  color: #888;
}
[data-theme="light"] .rx-crumb a:hover,
[data-theme="auto"] .rx-crumb a:hover {
  color: #9A0000;
}
[data-theme="light"] .rx-article__title,
[data-theme="auto"] .rx-article__title {
  color: #111;
}
[data-theme="light"] .rx-article__deck,
[data-theme="auto"] .rx-article__deck {
  color: #555;
  border-left-color: #9A0000;
}

/* ── Light: Article layout sidebar ── */
[data-theme="light"] .rx-article-layout__sidebar .widget,
[data-theme="auto"] .rx-article-layout__sidebar .widget {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}

/* ── Light: Article tags ── */
[data-theme="light"] .article-tags__label,
[data-theme="auto"] .article-tags__label {
  color: #888;
}
[data-theme="light"] .article-tag,
[data-theme="auto"] .article-tag {
  border-color: rgba(0,0,0,0.1);
  color: #666;
}
[data-theme="light"] .article-tag:hover,
[data-theme="auto"] .article-tag:hover {
  border-color: rgba(0,0,0,0.2);
  color: #111;
  background: #f5f5f5;
}

/* ── Light: Article share buttons ── */
[data-theme="light"] .article-share,
[data-theme="auto"] .article-share {
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .article-share__label,
[data-theme="auto"] .article-share__label {
  color: #888;
}
[data-theme="light"] .share-btn,
[data-theme="auto"] .share-btn {
  border-color: rgba(0,0,0,0.1);
  color: #555;
}
[data-theme="light"] .share-btn:hover,
[data-theme="auto"] .share-btn:hover {
  background: rgba(154,0,0,0.04);
  border-color: #9A0000;
  color: #111;
}

/* ── Light: Threat bar ── */
[data-theme="light"] .threat-bar,
[data-theme="auto"] .threat-bar {
  color: #fff;
}

/* ── Light: Hero gradient blends to light bg ── */
[data-theme="light"] .single-hero__gradient,
[data-theme="auto"] .single-hero__gradient {
  background: linear-gradient(to top, #f4f4f4 0%, transparent 40%);
}

/* ── Light: Page header ── */
[data-theme="light"] .article-header__title,
[data-theme="auto"] .article-header__title {
  color: #111;
}

/* ── Light: Gutenberg blocks ── */
[data-theme="light"] .wp-block-paragraph,
[data-theme="auto"] .wp-block-paragraph {
  color: #333;
}
[data-theme="light"] .wp-block-heading,
[data-theme="auto"] .wp-block-heading {
  color: #111;
}
[data-theme="light"] .wp-block-list,
[data-theme="auto"] .wp-block-list {
  color: #333;
}
[data-theme="light"] .wp-block-quote,
[data-theme="auto"] .wp-block-quote {
  color: #444;
  border-left-color: #3a6aaa;
}
[data-theme="light"] .wp-block-table td,
[data-theme="light"] .wp-block-table th,
[data-theme="auto"] .wp-block-table td,
[data-theme="auto"] .wp-block-table th {
  border-color: rgba(0,0,0,0.1);
  color: #333;
}
[data-theme="light"] .wp-block-image img,
[data-theme="auto"] .wp-block-image img {
  border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .wp-block-code,
[data-theme="auto"] .wp-block-code {
  background: #f5f5f5;
  border-color: rgba(0,0,0,0.08);
  color: #c41c1c;
}

/* =================================================================
   ABOUT PAGE
   ================================================================= */
.rx-about__hero {
  background: var(--bg-s1);
  border-bottom: 3px solid var(--rage-red);
  padding: 56px 0 0;
  overflow: hidden;
}
.rx-about__hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: end;
}
.rx-about__hero-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--rage-red-light);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rx-about__hero-line {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--rage-red);
}
.rx-about__hero-name {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 400;
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--text-s);
  margin-bottom: 20px;
}
.rx-about__hero-name strong {
  font-weight: 900;
  color: var(--text-p);
  display: block;
}
.rx-about__hero-bio {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--text-s);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 24px;
}
.rx-about__hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 36px;
}
.rx-about__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 24px;
  text-decoration: none;
  transition: all .15s;
}
.rx-about__btn--primary {
  background: var(--rage-red);
  color: #fff;
  border: 1px solid var(--rage-red);
}
.rx-about__btn--primary:hover { background: var(--rage-red-light); }
.rx-about__btn--secondary {
  background: transparent;
  color: var(--text-s);
  border: 1px solid var(--border-mid);
}
.rx-about__btn--secondary:hover { color: var(--text-p); border-color: var(--text-s); }
.rx-about__hero-photo {
  display: flex;
  justify-content: center;
}
.rx-about__hero-photo img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
}
.rx-about__hero-placeholder {
  width: 200px;
  height: 240px;
  background: var(--bg-s3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--text-m);
}
@media (max-width: 768px) {
  .rx-about__hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .rx-about__hero-photo { order: -1; }
  .rx-about__hero-name { font-size: 48px; }
}

/* Stats bar */
.rx-about__stats {
  background: var(--bg-s2);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.rx-about__stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  text-align: center;
}
.rx-about__stat {
  padding: 8px 12px;
  border-right: 1px solid var(--border);
}
.rx-about__stat:last-child { border-right: none; }
.rx-about__stat-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--rage-red);
  line-height: 1;
}
.rx-about__stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-m);
  margin-top: 4px;
}
@media (max-width: 768px) {
  .rx-about__stats-grid { grid-template-columns: repeat(3, 1fr); }
  .rx-about__stat:nth-child(3) { border-right: none; }
}
@media (max-width: 480px) {
  .rx-about__stats-grid { grid-template-columns: repeat(2, 1fr); }
  .rx-about__stat:nth-child(2n) { border-right: none; }
}

/* Sections */
.rx-about__section {
  padding: 48px 24px;
}
.rx-about__h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-p);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.rx-about__h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--rage-red);
}
.rx-about__section p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-s);
  margin-bottom: 16px;
}

/* Pillars */
.rx-about__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.rx-about__pillar {
  background: var(--bg-s1);
  border: 1px solid var(--border);
  padding: 20px;
}
.rx-about__pillar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.rx-about__pillar-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-p);
}
.rx-about__pillar-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--rage-red-light);
  font-weight: 600;
}
.rx-about__pillar-desc {
  font-size: 13px;
  color: var(--text-m);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 768px) {
  .rx-about__pillars { grid-template-columns: 1fr; }
}

/* Credentials */
.rx-about__creds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 768px) {
  .rx-about__creds-grid { grid-template-columns: 1fr; gap: 32px; }
}
.rx-about__cred {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.rx-about__cred-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rx-about__cred-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-p);
  margin-bottom: 6px;
}
.rx-about__cred-desc {
  font-size: 14px;
  color: var(--text-s);
  line-height: 1.6;
  margin: 0;
}
.rx-about__cred-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-m);
  display: block;
  margin-top: 6px;
}
.rx-about__cred-level {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tac-yellow);
  border: 1px solid var(--tac-yellow);
  padding: 2px 8px;
  flex-shrink: 0;
}
.rx-about__cred-notice {
  background: var(--analysis-bg);
  border-left: 3px solid var(--intel-blue-light);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-s);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Brands grid */
.rx-about__brands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.rx-about__brand {
  background: var(--bg-s1);
  border: 1px solid var(--border);
  padding: 18px;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.rx-about__brand:hover { border-color: var(--rage-red); background: var(--bg-s2); }
.rx-about__brand-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-p);
  margin-bottom: 2px;
}
.rx-about__brand-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--rage-red-light);
  margin-bottom: 6px;
}
.rx-about__brand-desc {
  font-size: 12px;
  color: var(--text-m);
  line-height: 1.5;
}

/* Standards */
.rx-about__standards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.rx-about__standard {
  border-left: 3px solid var(--rage-red);
  padding: 12px 16px;
  background: var(--bg-s1);
}
.rx-about__standard-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-p);
  margin-bottom: 4px;
}
.rx-about__standard p {
  font-size: 13px;
  color: var(--text-m);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 768px) {
  .rx-about__standards { grid-template-columns: 1fr; }
}

/* CTA */
.rx-about__cta {
  background: var(--bg-s1);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.rx-about__cta p {
  font-size: 15px;
  color: var(--text-s);
  margin-bottom: 20px;
}

/* Light mode overrides for about */
[data-theme="light"] .rx-about__hero,
[data-theme="auto"] .rx-about__hero { background: #fff; }
[data-theme="light"] .rx-about__stats,
[data-theme="auto"] .rx-about__stats { background: #f8f8f8; }
[data-theme="light"] .rx-about__pillar,
[data-theme="auto"] .rx-about__pillar { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .rx-about__brand,
[data-theme="auto"] .rx-about__brand { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .rx-about__brand:hover,
[data-theme="auto"] .rx-about__brand:hover { background: #f8f8f8; }
[data-theme="light"] .rx-about__standard,
[data-theme="auto"] .rx-about__standard { background: #fff; }
[data-theme="light"] .rx-about__cta,
[data-theme="auto"] .rx-about__cta { background: #f8f8f8; }
[data-theme="light"] .rx-about__cred-notice,
[data-theme="auto"] .rx-about__cred-notice { background: rgba(27,54,93,0.04); }

/* =================================================================
   CONTACT / LINKTREE PAGE
   ================================================================= */
.rx-links {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  padding: 48px 24px 64px;
}
.rx-links__inner {
  width: 100%;
  max-width: 520px;
}
.rx-links__header {
  text-align: center;
  margin-bottom: 32px;
}
.rx-links__logo {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-p);
  margin-bottom: 4px;
}
.rx-links__logo em { color: var(--rage-red); font-style: normal; }
.rx-links__tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-m);
  margin-bottom: 8px;
}
.rx-links__desc {
  font-size: 14px;
  color: var(--text-s);
  line-height: 1.5;
}
.rx-links__group {
  margin-bottom: 24px;
}
.rx-links__group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-m);
  margin-bottom: 8px;
  padding-left: 4px;
}
.rx-links__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-s1);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  text-decoration: none;
  transition: all .15s;
}
.rx-links__link:hover {
  border-color: var(--rage-red);
  background: var(--bg-s2);
  transform: translateY(-1px);
}
.rx-links__link--primary {
  border-color: var(--rage-red);
  border-left: 3px solid var(--rage-red);
}
.rx-links__link--contact {
  border-left: 3px solid var(--intel-blue-light);
}
.rx-links__link-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.rx-links__link-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text-p);
  flex: 1;
}
.rx-links__link-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--tac-yellow);
  flex-shrink: 0;
}
.rx-links__newsletter {
  background: var(--bg-s1);
  border: 1px solid var(--border);
  padding: 18px;
}
.rx-links__newsletter p {
  font-size: 13px;
  color: var(--text-s);
  margin: 0 0 12px;
}
.rx-links__footer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--text-m);
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* Light mode overrides for links page */
[data-theme="light"] .rx-links__link,
[data-theme="auto"] .rx-links__link {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .rx-links__link:hover,
[data-theme="auto"] .rx-links__link:hover {
  background: #f8f8f8;
  border-color: #9A0000;
}
[data-theme="light"] .rx-links__link-text,
[data-theme="auto"] .rx-links__link-text { color: #111; }
[data-theme="light"] .rx-links__newsletter,
[data-theme="auto"] .rx-links__newsletter {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .rx-links__link-badge,
[data-theme="auto"] .rx-links__link-badge { color: #9A0000; }

/* =================================================================
   NEWSLETTER SYSTEM — FULL STYLES
   ================================================================= */
.ragex-nl-success {
  background: rgba(46,107,46,0.1);
  border: 1px solid rgba(46,107,46,0.3);
  border-left: 3px solid #2e6b2e;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #88cc88;
  margin-bottom: 16px;
}
.ragex-nl-error {
  background: rgba(154,0,0,0.07);
  border: 1px solid rgba(154,0,0,0.25);
  border-left: 3px solid var(--rage-red);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--rage-red-light);
  margin-bottom: 16px;
}
[data-theme="light"] .ragex-nl-success,
[data-theme="auto"] .ragex-nl-success {
  background: rgba(46,107,46,0.05);
  color: #2e6b2e;
}
.rx-about__hero-text { position: relative; z-index: 1; }
.rx-about__cta-form { margin-top: 16px; }
.rx-about__nl-form { display: inline-flex; gap: 0; flex-wrap: wrap; justify-content: center; }

/* =================================================================
   V6.0 — PUSH NOTIFICATION BANNER
   ================================================================= */
.ragex-push-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-s1);
  border: 1px solid var(--rage-red);
  border-left: 4px solid var(--rage-red);
  padding: 14px 18px;
  max-width: 480px;
  width: calc(100% - 32px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: pushBannerIn 0.4s ease;
}
@keyframes pushBannerIn {
  from { transform: translateX(-50%) translateY(100px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.ragex-push-banner__icon {
  font-size: 20px;
  flex-shrink: 0;
}
.ragex-push-banner__text {
  flex: 1;
  min-width: 0;
}
.ragex-push-banner__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-p);
}
.ragex-push-banner__text span {
  font-size: 12px;
  color: var(--text-s);
  line-height: 1.4;
}
.ragex-push-banner__allow {
  background: var(--rage-red);
  color: #fff;
  border: none;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.ragex-push-banner__allow:hover { background: var(--rage-red-light); }
.ragex-push-banner__dismiss {
  background: none;
  border: none;
  color: var(--text-m);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  transition: color .15s;
}
.ragex-push-banner__dismiss:hover { color: var(--text-p); }

[data-theme="light"] .ragex-push-banner,
[data-theme="auto"] .ragex-push-banner {
  background: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

/* ── New post indicator ── */
.live-wire__item--new {
  animation: wireItemNew 0.6s ease;
}
@keyframes wireItemNew {
  from { background: rgba(154,0,0,0.15); }
  to { background: transparent; }
}

/* =================================================================
   V6.0 — ENHANCED GUTENBERG EDITOR BLOCKS
   ================================================================= */

/* ── Intel Card Block (editor + frontend) ── */
.rx-block-intel-card {
  background: var(--bg-s1);
  border: 1px solid var(--border);
  border-left: 4px solid var(--rage-red);
  padding: 20px 24px;
  margin: 24px 0;
}
.rx-block-intel-card__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rage-red-light);
  margin-bottom: 8px;
}
.rx-block-intel-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-p);
  margin-bottom: 8px;
}
.rx-block-intel-card__body {
  font-size: 14px;
  color: var(--text-s);
  line-height: 1.7;
}

/* ── Key Points Block ── */
.rx-block-key-points {
  background: var(--bg-s1);
  border: 1px solid var(--border);
  padding: 24px;
  margin: 24px 0;
}
.rx-block-key-points__header {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rage-red-light);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.rx-block-key-points__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rx-block-key-points__item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-s);
  line-height: 1.6;
}
.rx-block-key-points__item:last-child { border-bottom: none; }
.rx-block-key-points__bullet {
  color: var(--rage-red);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 2px;
}

/* ── Source Citation Block ── */
.rx-block-source {
  display: flex;
  gap: 12px;
  background: var(--bg-s1);
  border: 1px solid var(--border);
  padding: 14px 18px;
  margin: 16px 0;
  align-items: flex-start;
}
.rx-block-source__type {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--bg-s3);
  color: var(--text-s);
  padding: 3px 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.rx-block-source__text {
  font-size: 13px;
  color: var(--text-s);
  line-height: 1.55;
  flex: 1;
}
.rx-block-source__confidence {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  flex-shrink: 0;
}
.rx-block-source__confidence--confirmed { background: rgba(46,107,46,0.15); color: #88cc88; }
.rx-block-source__confidence--developing { background: rgba(204,170,0,0.15); color: var(--tac-yellow); }
.rx-block-source__confidence--unverified { background: rgba(154,0,0,0.1); color: var(--rage-red-light); }

/* ── Threat Level Block ── */
.rx-block-threat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  margin: 20px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rx-block-threat--critical { background: rgba(154,0,0,0.12); border-left: 4px solid #9A0000; color: #ff6666; }
.rx-block-threat--high     { background: rgba(204,51,0,0.1); border-left: 4px solid #cc3300; color: #ff8844; }
.rx-block-threat--elevated { background: rgba(204,170,0,0.1); border-left: 4px solid #CCAA00; color: #CCAA00; }
.rx-block-threat--guarded  { background: rgba(27,54,93,0.1); border-left: 4px solid #1B365D; color: #6699cc; }
.rx-block-threat--low      { background: rgba(46,107,46,0.08); border-left: 4px solid #2e6b2e; color: #88cc88; }
.rx-block-threat__label { font-weight: 700; color: var(--text-m); }
.rx-block-threat__level { font-weight: 700; font-size: 13px; }
.rx-block-threat__context { margin-left: auto; color: var(--text-m); font-size: 10px; }

/* ── Data Table Block ── */
.rx-block-data-table {
  margin: 24px 0;
  overflow-x: auto;
}
.rx-block-data-table table {
  width: 100%;
  border-collapse: collapse;
}
.rx-block-data-table th {
  background: var(--bg-s3);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border);
  color: var(--text-s);
}
.rx-block-data-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-s);
  font-family: var(--font-mono);
}
.rx-block-data-table tr:nth-child(even) td { background: var(--bg-s2); }

/* Light mode for all blocks */
[data-theme="light"] .rx-block-intel-card,
[data-theme="auto"] .rx-block-intel-card { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .rx-block-key-points,
[data-theme="auto"] .rx-block-key-points { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .rx-block-source,
[data-theme="auto"] .rx-block-source { background: #fff; border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .rx-block-source__type,
[data-theme="auto"] .rx-block-source__type { background: #f0f0f0; color: #555; }
[data-theme="light"] .rx-block-data-table th,
[data-theme="auto"] .rx-block-data-table th { background: #f5f5f5; color: #333; border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .rx-block-data-table td,
[data-theme="auto"] .rx-block-data-table td { border-color: rgba(0,0,0,0.08); color: #333; }
[data-theme="light"] .rx-block-data-table tr:nth-child(even) td,
[data-theme="auto"] .rx-block-data-table tr:nth-child(even) td { background: #f8f8f8; }

/* =================================================================
   V7.0 — BUG FIXES, MOBILE PERFECTION, SEO PERFORMANCE
   =================================================================
   Fixes:
   - Mobile search (was hidden with no alternative)
   - Mobile sidebar (was display:none with no fallback)
   - Intel strip overflow on mobile
   - Hero side items cramped at 768px
   - Nav z-index conflicts with ticker
   - Footer external link security
   - CLS (Cumulative Layout Shift) prevention
   ================================================================= */

/* ── CLS Prevention: reserve space for elements ── */
.site-header { min-height: 68px; }
.breaking-ticker { min-height: 36px; }
.nav-primary { min-height: 44px; }

/* ── Mobile Search Toggle Button ── */
.header-search-toggle {
  display: none; /* hidden on desktop */
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-s);
  border-radius: var(--radius);
  flex-shrink: 0;
  transition: all var(--transition);
}
.header-search-toggle:hover { color: var(--text-p); border-color: var(--rage-red); }
.header-search-toggle[aria-expanded="true"] { color: var(--rage-red-light); border-color: var(--rage-red); }

/* ── Mobile Search Bar (slides down from header) ── */
.mobile-search-bar {
  background: var(--bg-s1);
  border-top: 1px solid var(--border);
  border-bottom: 2px solid var(--rage-red);
  padding: 10px 16px;
  display: none; /* controlled by JS */
}
.mobile-search-bar[hidden] { display: none !important; }
.mobile-search-bar.is-open { display: block; }
.mobile-search-bar__form {
  display: flex;
  gap: 6px;
  max-width: var(--container-xl);
  margin: 0 auto;
}
.mobile-search-bar__input {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--input-c);
  padding: 10px 14px;
  font-size: 15px;
  outline: none;
  border-radius: var(--radius);
  -webkit-appearance: none;
  transition: border-color var(--transition);
}
.mobile-search-bar__input::placeholder { color: var(--input-ph); }
.mobile-search-bar__input:focus { border-color: var(--rage-red); }
.mobile-search-bar__btn {
  background: var(--rage-red);
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  flex-shrink: 0;
  transition: background var(--transition);
}
.mobile-search-bar__btn:hover { background: var(--rage-red-light); }

/* Light mode for mobile search */
[data-theme="light"] .mobile-search-bar,
[data-theme="auto"] .mobile-search-bar { background: #fff; border-top-color: rgba(0,0,0,0.06); }

/* ── Mobile Sidebar Section (shown below main content on mobile) ── */
.homepage-sidebar-mobile {
  display: none;
  padding: 24px 0 32px;
  border-top: 2px solid var(--rage-red);
}

/* ── Intel Strip: scroll indicator on mobile ── */
.intel-strip { position: relative; }
.intel-strip__inner {
  -webkit-overflow-scrolling: touch;
}
.intel-strip::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to left, var(--bg-s1), transparent);
  pointer-events: none;
  opacity: 1;
  transition: opacity .3s;
}
.intel-strip.no-fade::after { opacity: 0; }
[data-theme="light"] .intel-strip::after,
[data-theme="auto"] .intel-strip::after { background: linear-gradient(to left, #fff, transparent); }

/* ── Responsive: 768px — Show mobile search, fix nav z-index ── */
@media (max-width: 768px) {

  /* Show mobile search toggle, hide desktop search */
  .header-search--desktop { display: none !important; }
  .header-search-toggle { display: flex; }

  /* Fix nav z-index vs ticker overlap */
  .nav-primary__menu {
    z-index: 600; /* above ticker z-index:100 */
  }

  /* Hero side items: better aspect ratio */
  .hero-side__item {
    min-height: 160px;
    aspect-ratio: 16/9;
  }

  /* Homepage sidebar: show mobile version */
  .homepage-sidebar-mobile { display: block; }

  /* Site header reduced height */
  .site-header { min-height: 56px; }

  /* Compact theme toggle on mobile */
  .theme-toggle { padding: 2px; }
  .theme-toggle__btn { width: 26px; height: 26px; }

  /* Intel strip: better scroll feel */
  .intel-strip__item { padding: 0 18px; }
  .intel-strip__item:first-child { padding-left: 0; }
}

/* ── Responsive: 480px — Further mobile refinements ── */
@media (max-width: 480px) {

  /* Header: tighter spacing */
  .header-inner { padding: 0 12px; gap: 8px; }

  /* Hide live badge on very small screens */
  .header-live { display: none; }

  /* Ticker label shorter */
  .breaking-ticker__label { padding: 0 10px; font-size: 10px; letter-spacing: .1em; }

  /* Intel strip items more compact */
  .intel-strip__item { padding: 0 14px; }
  .intel-strip__value { font-size: 15px; }
  .intel-strip__label { font-size: 8px; }

  /* Hero side: stack vertically, proper sizing */
  .hero-side__item { min-height: 130px; aspect-ratio: auto; }
  .hero-side__title { font-size: 14px; }

  /* Footer: single column, compact */
  .footer-top { padding: 24px 0; }
  .footer-brand__description { font-size: 12px; }
}

/* ── Responsive: 360px — Very small devices ── */
@media (max-width: 360px) {
  .header-inner { padding: 0 10px; }
  .theme-toggle { display: none; }
  .hero-main__title { font-size: 18px; }
  .hero-main__body { padding: 16px 16px 16px 20px; }
}

/* ── Newsletter feedback messages — improved ── */
.ragex-nl-success {
  background: rgba(46,107,46,0.95);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.ragex-nl-error {
  background: rgba(154,0,0,0.95);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ── Skip to content — Accessibility ── */
.skip-to-content {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rage-red);
  color: #fff;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 99999;
  transition: top .2s ease;
  text-decoration: none;
}
.skip-to-content:focus {
  top: 10px;
}

/* ── Focus trap for mobile menu ── */
.nav-primary__menu.is-open {
  overscroll-behavior: contain;
}

/* ── Improved touch targets for mobile ── */
@media (max-width: 768px) {
  .article-card__title a,
  .live-wire__item,
  .trending-item__title a,
  .alert-panel__item-title a,
  .cat-section-list__link,
  .pagination a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Better spacing in article list for touch */
  .article-list-item { padding: 14px 0; }
  .article-list-item__thumb { width: 80px; height: 56px; }

  /* Full-bleed hero on mobile */
  .hero-grid { padding: 0; }
}

/* ── Print improvements ── */
@media print {
  .mobile-search-bar,
  .header-search-toggle,
  .theme-toggle { display: none !important; }
}

/* ── Breadcrumb component (replaces inline styles) ── */
.rx-breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-m);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.rx-breadcrumb__link {
  color: var(--text-m);
  text-decoration: none;
  transition: color var(--transition);
}
.rx-breadcrumb__link:hover { color: var(--text-p); }
.rx-breadcrumb__sep {
  color: var(--text-m);
  margin: 0 8px;
  font-size: 11px;
}
.rx-breadcrumb__current { color: var(--text-s); }

/* =================================================================
   V8.1 — ANIMATIONS + MOBILE READABILITY PERFECTION
   =================================================================
   1. Scroll-triggered reveal animations
   2. Card hover microinteractions
   3. Page load staggered reveals
   4. Perfect mobile article reading experience
   5. Touch-optimized spacing
   ================================================================= */

/* ── ANIMATION SYSTEM ── */

/* Reveal animation base — elements start invisible, JS adds .is-visible */
.rx-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.rx-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.rx-stagger > .rx-reveal:nth-child(1) { transition-delay: 0s; }
.rx-stagger > .rx-reveal:nth-child(2) { transition-delay: 0.08s; }
.rx-stagger > .rx-reveal:nth-child(3) { transition-delay: 0.16s; }
.rx-stagger > .rx-reveal:nth-child(4) { transition-delay: 0.24s; }
.rx-stagger > .rx-reveal:nth-child(5) { transition-delay: 0.32s; }
.rx-stagger > .rx-reveal:nth-child(6) { transition-delay: 0.40s; }
.rx-stagger > .rx-reveal:nth-child(7) { transition-delay: 0.48s; }
.rx-stagger > .rx-reveal:nth-child(8) { transition-delay: 0.56s; }

/* Slide-in from left (for wire items) */
.rx-reveal--left {
  opacity: 0;
  transform: translateX(-20px);
}
.rx-reveal--left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up (for hero) */
.rx-reveal--scale {
  opacity: 0;
  transform: scale(0.97);
}
.rx-reveal--scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Fade only (for subtle elements) */
.rx-reveal--fade {
  opacity: 0;
  transform: none;
}
.rx-reveal--fade.is-visible {
  opacity: 1;
}

/* ── CARD HOVER EFFECTS ── */
.article-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
[data-theme="light"] .article-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.article-card__thumb img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.article-card:hover .article-card__thumb img {
  transform: scale(1.04);
}

.article-card__thumb-overlay {
  transition: opacity 0.3s ease;
}
.article-card:hover .article-card__thumb-overlay {
  opacity: 0.6;
}

/* ── HERO SECTION ANIMATIONS ── */
/* Hero reveal animation — v15.6: use visibility-safe version */
.hero-main {
  animation: heroReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
  will-change: transform;
}
@keyframes heroReveal {
  from { opacity: 0.3; transform: scale(0.995); }
  to { opacity: 1; transform: scale(1); }
}

.hero-side__item {
  animation: heroSideReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform;
}
.hero-side__item:nth-child(1) { animation-delay: 0.1s; }
.hero-side__item:nth-child(2) { animation-delay: 0.2s; }
.hero-side__item:nth-child(3) { animation-delay: 0.3s; }
.hero-side__item:nth-child(4) { animation-delay: 0.4s; }
@keyframes heroSideReveal {
  from { opacity: 0.2; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── LIVE WIRE ANIMATIONS ── */
.live-wire__item {
  animation: wireItemReveal 0.4s ease both;
}
.live-wire__item:nth-child(1) { animation-delay: 0s; }
.live-wire__item:nth-child(2) { animation-delay: 0.05s; }
.live-wire__item:nth-child(3) { animation-delay: 0.1s; }
.live-wire__item:nth-child(4) { animation-delay: 0.15s; }
.live-wire__item:nth-child(5) { animation-delay: 0.2s; }
.live-wire__item:nth-child(6) { animation-delay: 0.25s; }
.live-wire__item:nth-child(7) { animation-delay: 0.3s; }
.live-wire__item:nth-child(8) { animation-delay: 0.35s; }
@keyframes wireItemReveal {
  from { opacity: 0.2; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── LIVE WIRE PULSE ── */
.live-wire__pulse {
  animation: wirePulse 2s ease-in-out infinite;
}
@keyframes wirePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(154,0,0,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(154,0,0,0); }
}

/* ── ALERT PANEL ANIMATION ── */
.alert-panel__item {
  transition: background 0.2s ease, padding-left 0.2s ease;
}
.alert-panel__item:hover {
  background: var(--alert-bg);
  padding-left: 4px;
}

/* ── WIDGET REVEAL ── */
.widget {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* ── READING PROGRESS BAR — smooth ── */
.reading-progress {
  transition: width 0.08s linear;
}

/* ── NAV LINK UNDERLINE ANIMATION ── */
.nav-primary__menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--rage-red);
  transition: width 0.25s ease, left 0.25s ease;
}
.nav-primary__menu > li > a {
  position: relative;
}
.nav-primary__menu > li > a:hover::after,
.nav-primary__menu > li.current-menu-item > a::after {
  width: 100%;
  left: 0;
}

/* ── SCROLL TO TOP BUTTON ANIMATION ── */
.scroll-top {
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
.scroll-top:hover {
  transform: translateY(-3px);
  background: var(--rage-red);
  color: #fff;
}

/* ── ARTICLE HEADER STAGGERED REVEAL ── */
.rx-article__header .rx-crumb,
.rx-article__header .rx-article__badges,
.rx-article__header .rx-article__title,
.rx-article__header .rx-article__deck,
.rx-article__header .rx-byline {
  animation: articleHeaderReveal 0.5s ease both;
}
.rx-article__header .rx-crumb           { animation-delay: 0s; }
.rx-article__header .rx-article__badges { animation-delay: 0.05s; }
.rx-article__header .rx-article__title  { animation-delay: 0.08s; }
.rx-article__header .rx-article__deck   { animation-delay: 0.14s; }
.rx-article__header .rx-byline          { animation-delay: 0.2s; }
@keyframes articleHeaderReveal {
  from { opacity: 0.2; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── INTEL STRIP COUNTER ANIMATION ── */
.intel-strip__value {
  animation: countReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes countReveal {
  from { opacity: 0.3; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── CATEGORY SECTION DIVIDER ANIMATION ── */
.homepage-cat-section__top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rage-red);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.homepage-cat-section__top.is-visible::after {
  width: 60px;
}


/* =================================================================
   MOBILE ARTICLE READABILITY — PERFECT READING EXPERIENCE
   =================================================================
   Target: comfortable reading on iPhone SE → iPhone 16 Pro Max
   Key principles:
   - Larger body text (17-18px)
   - Generous line height (1.85)
   - Wider word/letter spacing for small screens
   - Full-bleed images (no wasted padding)
   - Touch-friendly link targets (min 44px)
   - Better blockquote/list spacing
   - Horizontal scroll for tables and code
   ================================================================= */

/* ── Tablet (768px) ── */
@media (max-width: 768px) {

  /* Article body — readable */
  .rx-article .article-body,
  .article-body {
    font-size: 17px;
    line-height: 1.85;
    word-spacing: 0.02em;
  }

  /* Paragraph spacing */
  .rx-article .article-body > * + *,
  .article-body > * + * {
    margin-top: 1.5em;
  }

  /* Headings — tighter on mobile */
  .rx-article .article-body h2,
  .article-body h2 {
    font-size: 21px;
    letter-spacing: 0.02em;
    margin: 2.2em 0 0.8em;
    padding-left: 12px;
  }

  .rx-article .article-body h3,
  .article-body h3 {
    font-size: 18px;
    margin: 1.8em 0 0.6em;
  }

  .rx-article .article-body h4,
  .article-body h4 {
    font-size: 14px;
  }

  /* Blockquotes — breathable */
  .rx-article .article-body blockquote,
  .article-body blockquote {
    font-size: 16px;
    line-height: 1.75;
    padding: 16px 18px;
    margin: 1.8em -4px;
    border-left-width: 3px;
  }

  /* Lists — touch-friendly spacing */
  .rx-article .article-body li,
  .article-body li {
    margin-bottom: 0.5em;
    line-height: 1.7;
    padding-left: 2px;
  }

  .rx-article .article-body ul,
  .rx-article .article-body ol,
  .article-body ul, .article-body ol {
    margin-left: 1.2em;
  }

  /* Links — touch target minimum 44px height via padding */
  .rx-article .article-body a,
  .article-body a {
    padding: 2px 0;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }

  /* Images — full bleed minus small margin */
  .rx-article .article-body img,
  .article-body img {
    margin-left: -4px;
    margin-right: -4px;
    max-width: calc(100% + 8px);
    border: none;
    border-radius: 0;
  }

  .rx-article .article-body figcaption,
  .article-body figcaption {
    font-size: 11px;
    padding: 6px 0;
    line-height: 1.5;
  }

  /* Tables — horizontal scroll wrapper */
  .rx-article .article-body table,
  .article-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 13px;
  }

  .rx-article .article-body th,
  .rx-article .article-body td,
  .article-body th, .article-body td {
    padding: 8px 12px;
    white-space: normal;
    min-width: 100px;
  }

  /* Code blocks — horizontal scroll */
  .rx-article .article-body pre,
  .article-body pre {
    font-size: 12px;
    padding: 16px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rx-article .article-body code,
  .article-body code {
    font-size: 13px;
    padding: 2px 5px;
    word-break: break-word;
  }

  /* HR separator */
  .article-body hr {
    margin: 2em 0;
  }

  /* Pullquote */
  .rx-article .article-body .wp-block-pullquote p {
    font-size: 20px;
  }

  /* Single hero — shorter on mobile */
  .single-hero {
    max-height: 320px;
  }
  .single-hero__img {
    max-height: 320px;
  }

  /* Article title — readable not cramped */
  .rx-article__title {
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: 0.01em;
  }

  /* Deck/subtitle */
  .rx-article__deck {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Byline spacing */
  .rx-byline {
    gap: 8px;
  }

  /* Author box */
  .author-box__inner {
    flex-direction: column;
    gap: 12px;
  }
  .author-box__avatar {
    width: 48px;
    height: 48px;
  }

  /* Share bar — horizontal scroll */
  .share-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  /* Related posts — single column */
  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Tags — wrap nicely */
  .article-tags {
    gap: 6px;
  }
  .article-tags a {
    padding: 6px 12px;
    font-size: 10px;
  }

  /* Comment section */
  .comment-body {
    font-size: 15px;
    line-height: 1.7;
  }

  /* Disable card hover lift on touch (causes sticky hover) */
  .article-card:hover {
    transform: none;
    box-shadow: var(--shadow-card);
  }
}

/* ── Small phones (480px and below) ── */
@media (max-width: 480px) {

  /* Slightly larger body text on small screens */
  .rx-article .article-body,
  .article-body {
    font-size: 17px;
    line-height: 1.88;
    letter-spacing: 0.01em;
  }

  /* More breathing room */
  .rx-article .article-body > * + * {
    margin-top: 1.6em;
  }

  /* Full-bleed images */
  .rx-article .article-body img {
    margin-left: -16px;
    margin-right: -16px;
    max-width: calc(100% + 32px);
  }

  /* Title sizing */
  .rx-article__title {
    font-size: 23px;
    line-height: 1.12;
  }

  .rx-article__deck {
    font-size: 14px;
    line-height: 1.55;
    padding-left: 10px;
    border-left-width: 2px;
  }

  /* Headings */
  .rx-article .article-body h2 {
    font-size: 19px;
    padding-left: 10px;
    border-left-width: 2px;
  }
  .rx-article .article-body h3 {
    font-size: 16px;
  }

  /* Blockquote */
  .rx-article .article-body blockquote {
    font-size: 15px;
    padding: 14px 14px;
    margin: 1.5em -8px;
  }

  /* Code */
  .rx-article .article-body pre {
    font-size: 11px;
    padding: 14px;
    margin-left: -16px;
    margin-right: -16px;
  }

  /* Wider container padding on very small */
  .container--read {
    padding: 0 18px;
  }

  /* Breadcrumb overflow */
  .rx-crumb {
    font-size: 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .rx-crumb::-webkit-scrollbar { display: none; }
}

/* ── Tiny phones (360px) ── */
@media (max-width: 360px) {
  .container--read {
    padding: 0 14px;
  }
  .rx-article .article-body {
    font-size: 16px;
    line-height: 1.85;
  }
  .rx-article__title {
    font-size: 21px;
  }
  .rx-article .article-body h2 {
    font-size: 18px;
  }
}

/* ── PREFERS REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .rx-reveal,
  .rx-reveal--left,
  .rx-reveal--scale,
  .rx-reveal--fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-main,
  .hero-side__item,
  .live-wire__item,
  .rx-article__header .rx-crumb,
  .rx-article__header .rx-article__badges,
  .rx-article__header .rx-article__title,
  .rx-article__header .rx-article__deck,
  .rx-article__header .rx-byline,
  .intel-strip__value {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .article-card {
    transition: border-color 0.15s ease;
  }
  .article-card:hover {
    transform: none;
  }
}

/* ============================================================
   LIVE WIRE PAGE — v11.0
   Full-page intelligence wire feed with auto-refresh
   ============================================================ */
.wire-page { padding-bottom: 60px; }

.wire-page__header {
  background: var(--bg-s1);
  border-bottom: 2px solid var(--rage-red);
  padding: 32px 0 24px;
  margin-bottom: 40px;
}
.wire-page__header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.wire-page__header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wire-page__pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--rage-red);
  border-radius: 50%;
  animation: wirePulse 2s ease-in-out infinite;
}
@keyframes wirePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(154,0,0,.5); }
  50% { opacity: .7; box-shadow: 0 0 0 8px rgba(154,0,0,0); }
}
.wire-page__heading {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-p);
  margin: 0;
}
.wire-page__status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--rage-red);
  background: rgba(154,0,0,.12);
  border: 1px solid rgba(154,0,0,.25);
  padding: 3px 10px;
  text-transform: uppercase;
}
.wire-page__header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.wire-page__clock {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--text-s);
}
.wire-page__refresh-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--text-m);
}
.wire-page__desc {
  font-size: 13px;
  color: var(--text-m);
  margin: 12px 0 0;
}

/* Wire items */
.wire-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: background .15s, opacity .4s, transform .4s;
}
.wire-item--new {
  opacity: 0;
  transform: translateY(-10px);
}
.wire-item:hover {
  background: var(--bg-s1);
}
.wire-item--breaking {
  border-left: 3px solid var(--rage-red);
  padding-left: 20px;
  background: var(--alert-bg);
}
.wire-item__time-col {
  flex: 0 0 60px;
  text-align: right;
}
.wire-item__time {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-p);
  display: block;
}
.wire-item__date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-m);
  letter-spacing: .06em;
  display: block;
  margin-top: 2px;
}
.wire-item__content {
  flex: 1;
  min-width: 0;
}
.wire-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.wire-item__breaking-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--rage-red);
  text-transform: uppercase;
}
.wire-item__analysis-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--intel-blue-light);
  background: var(--analysis-bg);
  border: 1px solid var(--analysis-border);
  padding: 2px 8px;
}
.wire-item__ago {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-m);
  letter-spacing: .04em;
}
.wire-item__headline {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 8px;
}
.wire-item__headline a {
  color: var(--text-p);
  text-decoration: none;
}
.wire-item__headline a:hover {
  color: var(--rage-red);
}
.wire-item__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-s);
  margin: 0 0 8px;
}
.wire-item__footer {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-m);
  letter-spacing: .04em;
}

/* Telegram CTA */
.wire-page__telegram {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.wire-page__telegram-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.wire-page__telegram-inner strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text-p);
}
.wire-page__telegram-inner p {
  font-size: 13px;
  color: var(--text-s);
  margin: 4px 0 0;
}
.wire-page__telegram-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #0088cc;
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s;
}
.wire-page__telegram-btn:hover {
  background: #006fa1;
  color: #fff;
}

.wire-page__empty {
  padding: 60px 0;
  text-align: center;
  color: var(--text-m);
  font-family: var(--font-mono);
  font-size: 13px;
}

@media (max-width: 768px) {
  .wire-page__header-inner { flex-direction: column; align-items: flex-start; }
  .wire-item { gap: 16px; }
  .wire-item__time-col { flex: 0 0 48px; }
  .wire-item__headline { font-size: 16px; }
  .wire-page__telegram-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   TABLE OF CONTENTS — v12.0
   ============================================================ */
.article-toc {
  background: var(--bg-s1);
  border: 1px solid var(--border-mid);
  border-left: 3px solid var(--rage-red);
  padding: 0;
  margin: 28px 0 32px;
  font-family: var(--font-body);
}
.article-toc__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--bg-s2);
  border-bottom: 1px solid var(--border);
}
.article-toc__icon {
  font-size: 14px;
}
.article-toc__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--text-s);
  text-transform: uppercase;
  flex: 1;
}
.article-toc__toggle {
  background: none;
  border: none;
  color: var(--text-m);
  cursor: pointer;
  font-size: 18px;
  padding: 0 4px;
  line-height: 1;
  transition: transform .2s;
}
.article-toc.is-collapsed .article-toc__toggle {
  transform: rotate(-90deg);
}
.article-toc.is-collapsed .article-toc__list {
  display: none;
}
.article-toc__list {
  list-style: none;
  counter-reset: toc-counter;
  padding: 12px 20px 16px;
  margin: 0;
}
.article-toc__list li {
  counter-increment: toc-counter;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.article-toc__list li:last-child {
  border-bottom: none;
}
.article-toc__list li::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--rage-red);
  margin-right: 10px;
  font-weight: 600;
}
.article-toc__list li a {
  font-size: 14px;
  color: var(--text-s);
  text-decoration: none;
  transition: color .15s;
}
.article-toc__list li a:hover {
  color: var(--text-p);
}
.article-toc__item--sub {
  padding-left: 24px !important;
}
.article-toc__item--sub::before {
  color: var(--text-m) !important;
}

/* ============================================================
   HOMEPAGE SPACING IMPROVEMENTS — v12.0
   More whitespace, cleaner section separation
   ============================================================ */
.homepage-cat-section {
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.homepage-cat-section:last-child {
  border-bottom: none;
  margin-bottom: 24px;
}
.homepage-cat-section__header {
  margin-bottom: 24px;
}
.homepage-cat-section__footer {
  margin-top: 20px;
}

/* Cleaner section header typography */
.homepage-cat-section__title {
  font-size: 16px;
  letter-spacing: .12em;
}
.homepage-cat-section__count {
  font-size: 11px;
}

/* Better card spacing */
.cat-section-featured-grid {
  gap: 24px;
}
.cat-section-list__item + .cat-section-list__item {
  margin-top: 0;
}

/* Hero section spacing */
.hero-section {
  margin-bottom: 40px;
}

/* Stats strip spacing */
.intel-strip {
  margin-bottom: 40px;
}

/* ============================================================
   PERFORMANCE — content-visibility for lazy rendering
   ============================================================ */
@media (min-width: 768px) {
  .homepage-cat-section:nth-child(n+4) {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
  }
}

/* Smooth scroll for TOC links */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================
   PUSH NOTIFICATION BANNER FIX — v12.0
   Show once, respect dismiss via localStorage
   ============================================================ */
.ragex-push-banner.is-dismissed {
  display: none !important;
}

/* ============================================================
   HEADLINES + THUMBNAILS LAYOUT — v12.1
   ============================================================ */
.cat-section-headlines-thumb {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cat-section-ht__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-p);
  transition: background .15s;
}
.cat-section-ht__item:last-child { border-bottom: none; }
.cat-section-ht__item:hover { background: var(--bg-s1); }
.cat-section-ht__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 50px;
  overflow: hidden;
  border-radius: 2px;
}
.cat-section-ht__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cat-section-ht__body { flex: 1; min-width: 0; }
.cat-section-ht__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.3;
  margin: 0;
  color: var(--text-p);
}
.cat-section-ht__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-m);
  margin-top: 3px;
}

/* =============================================
   v15.0 — NEWS DASHBOARD (Reuters-style)
   Hero carousel + commentary + card row
   ============================================= */
.news-dashboard { padding: 0; margin-bottom: 8px; }
.news-dashboard .container { max-width: var(--container-xl); margin: 0 auto; padding: 0 24px; }

/* ── Top Grid: Lead + Carousel + Commentary ── */
.nd-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 0.8fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.nd-lead {
  padding: 32px 28px 32px 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nd-lead__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.15;
  color: var(--text-p);
  margin: 0 0 14px;
}
.nd-lead__title a { color: inherit; }
.nd-lead__title a:hover { color: var(--rage-red); }
.nd-lead__excerpt {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-s);
  margin: 0 0 16px;
}
.nd-lead__time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-m);
  letter-spacing: .04em;
}

/* ── Carousel ── */
.nd-carousel {
  position: relative;
  overflow: hidden;
  background: var(--bg-s2);
}
.nd-carousel__slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
}
.nd-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}
.nd-carousel__slide.is-active { opacity: 1; z-index: 2; }
.nd-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nd-carousel__slide .nd-skeleton {
  width: 100%;
  height: 100%;
}

.nd-carousel__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 18px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  z-index: 5;
}
.nd-carousel__caption-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  opacity: 0.8;
}
.nd-carousel__caption-text {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  line-height: 1.4;
}

.nd-carousel__controls {
  position: absolute;
  bottom: 14px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}
.nd-carousel__btn,
.nd-carousel__pause {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
  border-radius: 0;
  padding: 0;
  line-height: 1;
}
.nd-carousel__btn:hover,
.nd-carousel__pause:hover {
  background: rgba(0,0,0,0.7);
  border-color: rgba(255,255,255,0.6);
}

/* Skeleton loader */
.nd-skeleton {
  background: linear-gradient(90deg, var(--bg-s2) 25%, var(--bg-s3) 50%, var(--bg-s2) 75%);
  background-size: 200% 100%;
  animation: nd-skeleton-pulse 1.5s ease infinite;
}
@keyframes nd-skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Commentary / Analysis card ── */
.nd-commentary {
  padding: 28px 24px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-s1);
}
.nd-commentary__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--intel-blue-light);
  margin-bottom: 14px;
}
.nd-commentary__quote {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-p);
  margin: 0 0 18px;
}
.nd-commentary__quote::before {
  content: '\201C\201C';
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--rage-red);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.nd-commentary__quote a { color: inherit; }
.nd-commentary__quote a:hover { color: var(--rage-red); }
.nd-commentary__author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nd-commentary__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-mid);
}
.nd-commentary__author-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--intel-blue-light);
}
.nd-commentary__author-role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-m);
  margin-top: 2px;
}

/* ── Bottom Row: News Cards ── */
.nd-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.nd-card {
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.nd-card:last-child { border-right: none; }
.nd-card:hover { background: var(--bg-s1); }
.nd-card__title {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.3;
  color: var(--text-p);
  margin: 0 0 10px;
}
.nd-card__title a { color: inherit; }
.nd-card__title a:hover { color: var(--rage-red); }
.nd-card__time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-m);
  letter-spacing: .04em;
}

/* ── 3-col variant ── */
.nd-cards--3 { grid-template-columns: repeat(3, 1fr); }

/* ── AJAX refresh transition ── */
.nd-refreshing { opacity: 0.4; transition: opacity 0.3s; }

/* ── Wire refresh indicator ── */
.live-wire__refresh-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-m);
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
  margin-left: auto;
}
.live-wire__refresh-indicator.is-refreshing { opacity: 1; }
.live-wire__refresh-dot {
  width: 6px; height: 6px;
  background: var(--tac-yellow);
  border-radius: 50%;
  animation: wire-refresh-blink 0.6s ease infinite alternate;
}
@keyframes wire-refresh-blink {
  0% { opacity: 0.3; } 100% { opacity: 1; }
}

/* ── Responsive: Tablet (kept for 769-1024px range) ── */
@media (max-width: 1024px) {
  .nd-grid,
  .nd-grid--no-commentary { grid-template-columns: 1fr; }
  .nd-lead { padding: 24px 0; border-right: none; border-bottom: 1px solid var(--border); }
  .nd-carousel__slides { min-height: 280px; }
  .nd-commentary { padding: 24px 0; border-left: none; border-top: 1px solid var(--border); }
  .nd-cards { grid-template-columns: 1fr 1fr; }
  .nd-card:nth-child(2n) { border-right: none; }
  .nd-cards--3 { grid-template-columns: 1fr 1fr; }
}

/* No-commentary variant (2-col on desktop) */
.nd-grid--no-commentary { grid-template-columns: 1fr 1.8fr; }

/* ══════════════════════════════════════════════════════
   v15.5 — COMPREHENSIVE MOBILE OVERHAUL
   Fixes: dashboard overflow, menu empty space, hero bleed,
   dark menu text, general mobile spacing, horizontal scroll
   ══════════════════════════════════════════════════════ */

/* ── GLOBAL: Kill horizontal overflow at every level ── */
html, body, .site-wrapper, .site-main {
  max-width: 100vw;
}

/* ── MOBILE MENU: Fill screen, readable text, close area ── */
@media (max-width: 900px) {
  .nav-primary__menu {
    background: var(--bg-body) !important;
    padding: 0 !important;
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 99999;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
  }
  .nav-primary__menu.is-open {
    display: flex;
    transform: translateX(0);
  }

  /* Menu header bar */
  .nav-primary__menu::before {
    content: 'RAGE X — NAVIGATION';
    display: block;
    position: sticky;
    top: 0;
    background: var(--bg-body);
    border-bottom: 2px solid var(--rage-red);
    padding: 20px 24px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .15em;
    color: var(--text-m);
    z-index: 1;
    margin-top: 60px; /* Clear sticky header */
  }

  /* Menu items — bigger, brighter, full width */
  .nav-primary__menu > li > a {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .08em;
    border-bottom: 1px solid var(--border);
    width: 100%;
    border-left: 3px solid transparent;
    transition: background .15s, border-color .15s, color .15s;
    color: var(--text-p) !important; /* Force readable text in both themes */
  }
  .nav-primary__menu > li > a:hover,
  .nav-primary__menu > li.current-menu-item > a {
    border-left-color: var(--rage-red);
    background: var(--bg-s2);
    color: var(--text-p) !important;
  }

  /* Sub-menus */
  .nav-primary__menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--bg-s2);
    padding: 0 0 4px 16px;
  }
  .nav-primary__menu .sub-menu li a {
    padding: 14px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-s) !important;
  }

  /* z-index elevation */
  .nav-primary:has(.is-open),
  .nav-primary.menu-elevated { z-index: 99998 !important; }
  body.menu-open .site-header { z-index: 100000 !important; }
  body.menu-open { overflow: hidden; position: fixed; width: 100%; top: 0; left: 0; right: 0; }
}

/* ── HERO: Prevent overflow, stack properly on mobile ── */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    padding: 0 16px;
    gap: 8px;
  }
  .hero-main {
    aspect-ratio: 16/10;
    max-height: 260px;
  }
  .hero-main__body { padding: 16px 18px; }
  .hero-main__title { font-size: 18px !important; margin-bottom: 6px; }
  .hero-main__excerpt { font-size: 13px; -webkit-line-clamp: 2; }
  .hero-side { flex-direction: column; gap: 8px; }
  .hero-side__item { min-height: 120px; }
  .hero-side__title { font-size: 14px; }
  .hero-section { margin-bottom: 24px; }
}

/* ── NEWS DASHBOARD: Force single-column on mobile ── */
@media (max-width: 768px) {
  .nd-grid,
  .nd-grid--no-commentary {
    grid-template-columns: 1fr !important;
  }
  .nd-lead {
    padding: 20px 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .nd-lead__title { font-size: 20px; }
  .nd-lead__excerpt { font-size: 14px; }
  .nd-carousel { order: -1; } /* Image first on mobile */
  .nd-carousel__slides { min-height: 200px; }
  .nd-commentary {
    padding: 20px 0;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .nd-commentary__quote { font-size: 16px; }
  .nd-cards { grid-template-columns: 1fr !important; }
  .nd-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
  }
  .nd-card:last-child { border-bottom: none; }
  .nd-card__title { font-size: 15px; }
  .news-dashboard { margin-bottom: 16px; }
  .news-dashboard .container { padding: 0 16px; }
}

/* ── WIRE: Mobile tightening ── */
@media (max-width: 768px) {
  .live-wire .container { padding: 0 16px; }
  .live-wire__header { padding: 10px 0 8px; flex-wrap: wrap; gap: 4px; }
  .live-wire__title { font-size: 11px; }
  .live-wire__item { padding: 9px 0; gap: 10px; }
  .live-wire__headline { font-size: 12.5px; }
  .live-wire__time { font-size: 10px; min-width: 38px; }
  .live-wire__ago { display: none; }
  .live-wire { margin-bottom: 16px; }
}

/* ── CATEGORY SECTIONS: Mobile spacing ── */
@media (max-width: 768px) {
  .homepage-body .container,
  .homepage-body { padding-left: 0; padding-right: 0; }
  .homepage-sections { padding: 0 16px; }
  .homepage-cat-section { margin-bottom: 32px; padding-bottom: 24px; }
  .cat-section-featured-grid { gap: 16px; }

  /* Cards stack single column */
  .cat-section-featured-grid { grid-template-columns: 1fr; }
  .article-card__body { padding: 12px; }
  .article-card__title { font-size: 14px; }
}

/* ── SIDEBAR: Hide on mobile (content-first) ── */
@media (max-width: 768px) {
  .homepage-sidebar { display: none; }
  .homepage-body__inner { grid-template-columns: 1fr !important; }
}

/* ── STATS STRIP: Mobile tighten ── */
@media (max-width: 768px) {
  .intel-strip { margin-bottom: 16px; }
  .intel-strip__inner { padding: 0 12px; gap: 12px; }
  .intel-strip__item { padding: 10px 0; }
  .intel-strip__value { font-size: 16px; }
  .intel-strip__label { font-size: 8px; }
}

/* ── TICKER: Mobile fit ── */
@media (max-width: 768px) {
  .breaking-ticker { height: 32px; }
  .breaking-ticker__label { padding: 0 10px; font-size: 9px; }
  .breaking-ticker__item { font-size: 12px; padding: 0 8px; }
}

/* ── HEADER: Mobile compact ── */
@media (max-width: 768px) {
  .header-inner {
    height: 52px;
    gap: 8px;
    padding: 0 12px;
  }
  .site-logo img,
  .site-logo a img { max-height: 32px; }
  .site-logo__name { font-size: 20px; }
  .theme-toggle { transform: scale(0.85); transform-origin: center; }
  .header-toggle { width: 34px; height: 34px; padding: 7px; }
}

/* ── FOOTER: Mobile ── */
@media (max-width: 768px) {
  .site-footer { padding: 32px 0 0; }
  .footer-grid { padding: 0 16px; }
}

/* ── Light mode mobile menu ── */
@media (max-width: 900px) {
  [data-theme="light"] .nav-primary__menu,
  [data-theme="auto"] .nav-primary__menu {
    background: #fff !important;
  }
  [data-theme="light"] .nav-primary__menu::before,
  [data-theme="auto"] .nav-primary__menu::before {
    background: #fff;
    color: #888;
  }
  [data-theme="light"] .nav-primary__menu > li > a,
  [data-theme="auto"] .nav-primary__menu > li > a {
    color: #222 !important;
    border-bottom-color: rgba(0,0,0,0.06);
  }
  [data-theme="light"] .nav-primary__menu > li > a:hover,
  [data-theme="light"] .nav-primary__menu > li.current-menu-item > a,
  [data-theme="auto"] .nav-primary__menu > li > a:hover,
  [data-theme="auto"] .nav-primary__menu > li.current-menu-item > a {
    background: #f5f5f5;
    color: #111 !important;
  }
  [data-theme="light"] .nav-primary__menu .sub-menu,
  [data-theme="auto"] .nav-primary__menu .sub-menu {
    background: #f5f5f5;
  }
  [data-theme="light"] .nav-primary__menu .sub-menu li a,
  [data-theme="auto"] .nav-primary__menu .sub-menu li a {
    color: #444 !important;
  }
}

/* =================================================================
   V15.6 — MOBILE PERFECTION, ZERO CLS, PREMIUM UX
   =================================================================
   Complete mobile overhaul per Reuters/Apple News standard:
   1. Eliminated layout shift (CLS) across all components
   2. Standardized all card image ratios
   3. Fixed overflow/wobble on all screen sizes
   4. Added proper will-change hints for GPU acceleration
   5. Touch-optimized tap targets (min 44px)
   6. Image space reservation to prevent content shift
   7. Removed sticky hover states on touch devices
   ================================================================= */

/* ── CLS PREVENTION: Pre-reserve image space before load ── */
.article-card__thumb {
  contain: layout style;
  will-change: transform;
}

.article-card__thumb img,
.cat-section-featured__img,
.cat-section-list__img,
.cat-section-ht__img,
.hero-main__img,
.hero-side__img,
.cat-feat__img,
.single-hero__img,
.nd-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── GPU acceleration for animated elements ── */
.article-card__thumb img,
.cat-section-featured__img,
.hero-main__img,
.hero-side__img {
  will-change: transform;
}

/* ── CARD STANDARDIZATION: identical structure, zero wobble ── */
.article-card {
  /* Force consistent height structure via flex */
  display: flex;
  flex-direction: column;
  /* Prevent transform-based hover from causing CLS */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
}

/* ── OVERFLOW KILL: nothing escapes the viewport ── */
*,
*::before,
*::after {
  max-width: 100%;
}
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

/* ── SMOOTH SCROLL: GPU-driven ticker (no layout recalc) ── */
.breaking-ticker__track {
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ── IMAGE SKELETON LOADERS: reserve space before load ── */
.article-card__thumb img[loading="lazy"],
.cat-section-list__img[loading="lazy"],
.cat-section-featured__img[loading="lazy"] {
  background: linear-gradient(90deg, var(--bg-s2) 25%, var(--bg-s3) 50%, var(--bg-s2) 75%);
  background-size: 200% 100%;
}
.article-card__thumb img[loading="lazy"]:not(.is-loaded) {
  animation: skeleton-shimmer 1.5s infinite;
}

/* ── MOBILE CARD LAYOUT: Reuters-level consistency ── */
@media (max-width: 768px) {

  /* Enforce single-column card grid with no gaps in size */
  .article-grid--4,
  .article-grid--3,
  .article-grid--2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* ALL cards get identical thumb ratio */
  .article-card__thumb {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    overflow: hidden;
    flex-shrink: 0;
  }

  /* Fixed title height: max 3 lines, never more */
  .article-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.3;
  }

  /* Consistent body padding on all cards */
  .article-card__body {
    padding: 12px 14px;
    gap: 8px;
  }

  .article-card__footer {
    padding: 8px 14px;
  }

  /* ZERO hover lift on touch devices — kills sticky hover bug */
  .article-card:hover {
    transform: none !important;
    box-shadow: var(--shadow-card) !important;
  }

  .article-card:hover .article-card__thumb img {
    transform: none !important;
  }

  /* Category section cards also standardized */
  .cat-section-featured__thumb {
    aspect-ratio: 16 / 9;
  }

  /* List items: fixed thumb size, no flex compression */
  .cat-section-list__thumb {
    flex: 0 0 72px;
    width: 72px;
    min-height: 50px;
    height: 50px;
  }

  /* Touch-friendly minimum target heights */
  .cat-section-list__link,
  .live-wire__item,
  .alert-panel__item,
  .trending-item {
    min-height: 44px;
  }

  /* Excerpt: max 2 lines on mobile for density */
  .article-card__excerpt {
    -webkit-line-clamp: 2;
    font-size: 12.5px;
  }

  /* Nav underline animation: disable on mobile (costly repaint) */
  .nav-primary__menu > li > a::after {
    display: none;
  }

  /* Scroll-triggered reveal: reduce movement on mobile */
  .rx-reveal {
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  /* Hero animations: faster, less movement on mobile */
  .hero-main {
    animation-duration: 0.4s;
  }

  /* Wire headlines: never truncate to single line on mobile */
  .live-wire__headline {
    overflow: visible;
    white-space: normal;
    text-overflow: unset;
  }
}

/* ── TINY PHONES (480px): Maximum efficiency ── */
@media (max-width: 480px) {

  /* Cards: even more compact */
  .article-card__body {
    padding: 10px 12px;
    gap: 7px;
  }

  .article-card__title {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

  .article-card__footer {
    padding: 7px 12px;
  }

  /* Meta badges: don't wrap messily */
  .article-card__meta {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .cat-badge {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .article-card__time {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Section headers: clean at tiny sizes */
  .homepage-cat-section__title {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  /* Ticker: more compact */
  .breaking-ticker__item {
    font-size: 11px;
    padding: 0 14px;
  }

  .breaking-ticker__sep {
    padding-right: 14px;
  }
}

/* ── PREVENT ANIMATION JANK: disable expensive animations on low-power ── */
@media (prefers-reduced-motion: reduce) {
  .hero-main,
  .hero-side__item,
  .live-wire__item,
  .intel-strip__value,
  .rx-article__header .rx-crumb,
  .rx-article__header .rx-article__badges,
  .rx-article__header .rx-article__title,
  .rx-article__header .rx-article__deck,
  .rx-article__header .rx-byline {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── HORIZONTAL SCROLL PREVENTION: all containers ── */
.container,
.container--lg,
.container--md,
.container--read,
.header-inner,
.nav-primary__wrap,
.footer-grid,
.intel-strip__inner,
.homepage-body,
.homepage-body__inner,
.homepage-sections {
  max-width: 100%;
  box-sizing: border-box;
}

/* ── LAYOUT STABILITY: body classes for scroll lock ── */
body.menu-open {
  position: fixed;
  width: 100%;
  overflow-y: scroll; /* keep scrollbar to prevent width jump */
}

/* ── TABLE OVERFLOW: prevent article tables from breaking layout ── */
.article-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  border-collapse: collapse;
}

/* ── IMG DIMENSIONS: prevent CLS on all images ── */
img {
  height: auto;
  max-width: 100%;
}

/* Force declared dimensions on post thumbnails */
.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── TOUCH SCROLL IMPROVEMENTS ── */
.nav-primary__menu {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.intel-strip__inner,
.article-share,
.breaking-ticker__scroll-wrap {
  -webkit-overflow-scrolling: touch;
}

/* ── SMOOTH SCROLL PERFORMANCE: content-visibility upgrade ── */
@media (min-width: 768px) {
  .homepage-cat-section:nth-child(n+4) {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
  }

  .site-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
  }
}

/* ── CARD IMAGE SMOOTH LOAD: fade in when loaded ── */
.article-card__thumb img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}
.article-card__thumb img.is-loaded,
.article-card__thumb img:not([loading]) {
  opacity: 1;
}

/* Fix: ensure non-lazy images show immediately */
.article-card__thumb img[loading="eager"],
.hero-main__img,
.single-hero__img {
  opacity: 1;
}

/* ── HOMEPAGE SECTION: single canonical spacing definition ── */
/* Override the fragmented v4.2/v12.0 definitions */
.homepage-cat-section {
  padding: 32px 0 28px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.homepage-cat-section:last-child {
  border-bottom: none;
  padding-bottom: 16px;
}

/* ── READ-MODE CONTAINER: clean and stable ── */
.container--read {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container--read {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .container--read {
    padding: 0 14px;
  }
}

/* ── TYPOGRAPHY CONTROL: prevent resize-driven layout shifts ── */
.article-card__title a,
.hero-main__title a,
.cat-section-featured__title a {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ── MOBILE NAV TYPOGRAPHY: max readability ── */
@media (max-width: 900px) {
  .nav-primary__menu > li > a {
    font-size: 16px !important;
    letter-spacing: 0.06em;
    line-height: 1.4;
  }
}

/* ── V15.6 DIAGNOSTIC: verify deduplication worked ── */
/* .pagination: defined once in v4.0 section */
/* .no-posts-message: defined once in v4.0 section */
/* .homepage-cat-section: canonical in this v15.6 block */

/* =============================================
   V15.7 CANONICAL MOBILE-FIRST STABILITY SYSTEM
   Final authority for cards, media, mobile spacing,
   overflow control, and zero-shift rendering.
   ============================================= */
:root {
  --rx-space-1: 8px;
  --rx-space-2: 12px;
  --rx-space-3: 16px;
  --rx-space-4: 24px;
  --rx-page-gutter: 16px;
  --rx-grid-gap: 16px;
  --rx-card-radius: 0;
  --rx-card-padding: 14px;
  --rx-card-title-size: 1rem;
  --rx-card-meta-size: 0.6875rem;
  --rx-card-excerpt-size: 0.875rem;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-overflow-scrolling: touch;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

.container,
.container--lg,
.container--md,
.container--read,
.layout-full,
.layout-with-sidebar,
.homepage-body,
.homepage-body__inner,
.homepage-sections,
.homepage-sidebar,
.article-grid,
.hero-grid,
.nd-grid,
.nd-cards,
.cat-section-featured-grid,
.cat-section-list-featured,
.cat-section-compact-list,
.cat-section-headlines-thumb,
.cat-main,
.page-content,
.rx-article-layout__main,
.rx-article-layout__sidebar {
  min-width: 0;
}

.container,
.container--lg,
.container--md,
.container--read {
  padding-left: var(--rx-page-gutter);
  padding-right: var(--rx-page-gutter);
}

.article-grid,
.article-grid--1,
.article-grid--2,
.article-grid--3,
.article-grid--4,
.nd-cards,
.homepage-body__inner,
.cat-section-featured-grid,
.cat-section-list-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--rx-grid-gap);
}

.article-grid {
  align-items: stretch;
}

.article-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: none;
  overflow: clip;
  contain: layout paint;
  border-radius: var(--rx-card-radius);
}

.article-card__media {
  display: block;
  color: inherit;
}

.article-card__thumb,
.cat-section-featured__thumb,
.cat-feat__media,
.single-hero__img-wrap,
.article-hero,
.hero-main,
.hero-side__item,
.nd-carousel__slides {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    var(--bg-s3);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.article-card__thumb--placeholder,
.hero-main__img--placeholder,
.hero-side__img--placeholder,
.cat-feat__placeholder {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    var(--bg-s3);
}

.article-card__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  transform: translateX(-100%);
  animation: rx-skeleton 1.5s linear infinite;
}

@keyframes rx-skeleton {
  to { transform: translateX(100%); }
}

.article-card__img,
.article-card__thumb img,
.cat-section-featured__img,
.cat-section-list__img,
.cat-section-ht__img,
.cat-feat__img,
.single-hero__img,
.article-hero__img,
.hero-main__img,
.hero-side__img,
.nd-carousel__img,
.nd-carousel__slide img,
.archive-report__img,
.article-list-item__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article-card:hover,
.article-card:hover .article-card__thumb img,
.article-card:hover .article-card__thumb-overlay {
  transform: none;
  box-shadow: none;
  opacity: 1;
}

.article-card__body {
  display: grid;
  grid-template-rows: min-content minmax(calc(2 * 1.2em), auto) 1fr min-content;
  gap: var(--rx-space-2);
  padding: var(--rx-card-padding);
}

.article-card__meta,
.article-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.article-card__meta {
  font-size: var(--rx-card-meta-size);
  min-height: 20px;
}

.article-card__footer {
  min-height: 18px;
  padding-top: 2px;
  color: var(--text-s);
  font-family: var(--font-mono);
  font-size: var(--rx-card-meta-size);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-card__author,
.article-card__readtime,
.article-card__time {
  white-space: nowrap;
}

.article-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--rx-card-title-size);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  min-height: calc(2 * 1.2em);
}

.article-card__title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.article-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--text-s);
  font-size: var(--rx-card-excerpt-size);
  line-height: 1.55;
  min-height: calc(3 * 1.55em);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.cat-section-list__link,
.cat-section-ht__item,
.article-list-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.cat-section-list__thumb,
.cat-section-ht__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-s3);
}

.cat-section-list__title,
.cat-section-ht__title,
.hero-side__title,
.cat-section-featured__title,
.cat-feat__title,
.nd-card__title,
.nd-lead__title {
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.cat-section-list__title,
.cat-section-ht__title,
.hero-side__title a,
.cat-section-featured__title a,
.cat-feat__title a,
.nd-card__title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.nd-grid {
  gap: var(--rx-grid-gap);
  border-bottom: 0;
  align-items: stretch;
}

.nd-lead,
.nd-commentary,
.nd-card {
  border: 1px solid var(--border);
  padding: var(--rx-space-4) var(--rx-space-3);
  background: var(--bg-s1);
}

.nd-card {
  min-width: 0;
}

.nd-carousel {
  overflow: hidden;
  background: var(--bg-s2);
}

.nd-carousel__slides {
  min-height: unset;
}

.nd-carousel__slide {
  position: absolute;
  inset: 0;
  will-change: opacity;
}

.hero-grid,
.homepage-body__inner,
.layout-with-sidebar,
.rx-article-layout {
  gap: var(--rx-space-4);
}

.homepage-cat-section {
  padding-top: 28px;
  padding-bottom: 28px;
}

.homepage-cat-section__header,
.cat-filter,
.cat-header__top,
.cat-header__main,
.cat-header__nav {
  gap: var(--rx-space-2);
}

.hero-main__body,
.cat-feat__content,
.nd-carousel__caption,
.single-hero__caption {
  min-width: 0;
}

.single-hero,
.article-hero {
  overflow: hidden;
}

.single-hero__img-wrap,
.article-hero {
  max-height: none;
}

.article-body,
.rx-article__header,
.cat-header__desc,
.nd-lead__excerpt {
  overflow-wrap: anywhere;
}

.nav-primary__menu.is-open {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nd-cards.article-grid {
  gap: var(--rx-grid-gap);
}

body.menu-open {
  position: static;
  width: auto;
  top: auto;
  left: auto;
  right: auto;
  overflow: hidden;
}

@media (min-width: 768px) {
  :root {
    --rx-page-gutter: 24px;
    --rx-card-padding: 16px;
  }

  .article-grid--2,
  .article-grid--3,
  .article-grid--4,
  .nd-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cat-section-featured-grid,
  .homepage-body__inner,
  .layout-with-sidebar,
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .article-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 3px;
  }

  .homepage-body__inner,
  .layout-with-sidebar {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .cat-section-featured-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .cat-section-list-featured {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
    align-items: start;
  }

  .nd-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr) minmax(280px, 0.8fr);
    gap: 0;
  }

  .nd-grid--no-commentary {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.45fr);
  }

  .nd-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }
}

@media (max-width: 767px) {
  .header-inner,
  .nav-primary__wrap,
  .layout-full,
  .layout-with-sidebar {
    padding-left: var(--rx-page-gutter);
    padding-right: var(--rx-page-gutter);
  }

  .header-inner {
    height: 60px;
  }

  .hero-main__body,
  .cat-feat__content,
  .nd-lead,
  .nd-commentary,
  .nd-card {
    padding: var(--rx-space-3);
  }

  .cat-section-list__link,
  .cat-section-ht__item,
  .article-list-item {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .hero-side {
    gap: var(--rx-grid-gap);
  }

  .nd-carousel {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .breaking-ticker__track {
    animation: none !important;
    transform: none !important;
  }
}

/* =============================================
   V4.0 — HOMEPAGE PROFESSIONAL UPGRADES
   ============================================= */

/* Enhanced card hover with lift + glow effect */
.article-card {
  transition: border-color var(--transition), transform .25s ease, box-shadow .25s ease;
}
.article-card:hover {
  border-color: var(--card-hover-border, #9A0000);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
[data-theme="light"] .article-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* Section divider line between homepage sections - replaces plain border */
.homepage-cat-section {
  border-bottom: none;
  position: relative;
}
.homepage-cat-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cat-accent, var(--rage-red)) 0%, var(--border) 30%, var(--border) 70%, transparent 100%);
}
.homepage-cat-section:last-child::after {
  display: none;
}

/* Refined live wire with better separation */
.live-wire {
  border-bottom: 2px solid var(--rage-red);
  background: var(--bg-s1);
  position: relative;
}
.live-wire::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rage-red), transparent);
}

/* Better news dashboard cards bottom row */
.nd-cards .article-card {
  border-left: 2px solid transparent;
  transition: border-left-color .2s ease, border-color var(--transition), transform .25s ease;
}
.nd-cards .article-card:hover {
  border-left-color: var(--rage-red);
}

/* Improved sidebar sticky with fade edge */
.sidebar__sticky {
  position: sticky;
  top: 80px;
}

/* Alert panel glow effect */
.alert-panel {
  border-color: rgba(154,0,0,.2);
  position: relative;
  overflow: hidden;
}
.alert-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rage-red), var(--rage-red-light), var(--rage-red));
  background-size: 200% 100%;
  animation: alert-glow 3s ease-in-out infinite;
}
@keyframes alert-glow {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Intel strip upgrade */
.intel-strip {
  position: relative;
  overflow: hidden;
}
.intel-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rage-red), transparent);
}

/* Improved category section header with animated underline */
.homepage-cat-section__header::after {
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.homepage-cat-section:hover .homepage-cat-section__header::after {
  width: 100px;
}

/* Better visual hierarchy for homepage body */
.homepage-body {
  background: var(--bg-body);
  position: relative;
}

/* Smooth scroll reveal animation for sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.homepage-cat-section {
  animation: fadeInUp 0.4s ease-out both;
}

/* Widget refinement */
.widget {
  transition: border-color var(--transition), box-shadow var(--transition);
}
.widget:hover {
  border-color: var(--border-mid);
}

/* Reading time badge improvement */
.article-card__footer {
  font-variant-numeric: tabular-nums;
}

/* Newsletter widget upgrade */
.widget-newsletter {
  background: linear-gradient(135deg, rgba(154,0,0,.08), transparent);
}
.widget-newsletter .widget-title {
  background: linear-gradient(90deg, var(--rage-red), var(--rage-red-light));
}

/* Social follow items hover */
.social-follow-item {
  transition: background var(--transition), transform var(--transition);
  border-radius: 2px;
  padding: 4px 0;
}
.social-follow-item:hover {
  background: rgba(154,0,0,.05);
}

/* Hero section container-level padding on mobile */
@media (max-width: 767px) {
  .hero-grid {
    padding: 0 var(--rx-page-gutter, 16px);
  }
  .hero-main__body {
    padding: 16px;
  }
  .hero-main__title {
    font-size: clamp(18px, 5vw, 26px);
  }
}

/* Better print styles */
@media print {
  .breaking-ticker,
  .live-wire,
  .header-toggle,
  .theme-toggle,
  .scroll-top,
  .reading-progress,
  .mobile-search-bar,
  .intel-strip,
  .widget-newsletter,
  .site-footer,
  .nav-primary {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .article-body {
    font-size: 12pt !important;
    line-height: 1.6 !important;
  }
}
