/*
 * Theme Name:  TheDivestedition
 * Version:     1.05
 * Description: Premium dark-green editorial news theme. Inspired by clean modern news layouts with a signature dark-green identity.
 * Author:      TheDivest
 * Text Domain: tde
 */

/* ─────────────────────────────────────────────────────────────────────────
   CSS CUSTOM PROPERTIES — dark-green brand system
   ───────────────────────────────────────────────────────────────────────── */
:root {
  /* ── Pure dark/charcoal backgrounds — zero green tint ── */
  --bg:            #0c0c0c;
  --bg-surface:    #141414;
  --bg-card:       #1a1a1a;
  --bg-elevated:   #222222;
  --bg-header:     #080808;
  --bg-nav:        #0e0e0e;
  --bg-footer:     #060606;

  /* ── Brand accent: green only for interactive/label use ── */
  --accent:        #25c86a;
  --accent-dark:   #1aad58;
  --accent-light:  #4dd98a;
  --blue:          #3b82f6;
  --blue-dark:     #2563eb;

  /* ── Pure neutral text — no tints ── */
  --text:          #ebebeb;
  --text-secondary:#c0c0c0;
  --text-muted:    #888888;
  --text-faint:    #555555;

  /* ── Neutral borders ── */
  --border:        rgba(255,255,255,0.06);
  --border-mid:    rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.20);

  /* ── Shadows ── */
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.5);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.55);
  --shadow-lg:  0 10px 44px rgba(0,0,0,0.65);

  /* ── Spacing / shape ── */
  --radius:  6px;
  --radius-sm: 4px;
  --font:    "Roboto", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Georgia", "Times New Roman", serif;
}

/* ─── LIGHT MODE ────────────────────────────────────────────────────────── */
html.light-mode {
  --bg:            #f2f2f2;
  --bg-surface:    #eaeaea;
  --bg-card:       #ffffff;
  --bg-elevated:   #f7f7f7;
  --bg-header:     #0a0a0a;   /* header stays dark like Okay News */
  --bg-nav:        #111111;
  --bg-footer:     #0a0a0a;
  --text:          #0d0d0d;
  --text-secondary:#333333;
  --text-muted:    #606060;
  --text-faint:    #999999;
  --border:        rgba(0,0,0,0.07);
  --border-mid:    rgba(0,0,0,0.12);
  --border-strong: rgba(0,0,0,0.22);
}

/* ─── RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, div, span, h1, h2, h3, h4, h5, h6, p, a, img, ul, ol, li,
form, label, input, textarea, select, button, nav, header, footer, main, article, section, aside {
  margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, main, nav, section { display: block; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
input, select, textarea, button { font-family: var(--font); font-size: inherit; }
input[type=text], input[type=email], input[type=search], input[type=password], select, textarea {
  -webkit-appearance: none; appearance: none;
}
button { cursor: pointer; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ─── GLOBAL ────────────────────────────────────────────────────────────── */
body {
  font: 400 15px/1.65 var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-y: scroll;
}
a:hover { color: var(--accent); }
.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.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; }

/* ─── TOP BAR ───────────────────────────────────────────────────────────── */
#top-bar {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  font-size: 12px;
  color: var(--text-muted);
}
#top-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#top-bar .tb-date { display: flex; align-items: center; gap: 6px; }
#top-bar .tb-date i { color: var(--accent); font-size: 11px; }
#top-bar .tb-social { display: flex; align-items: center; gap: 10px; }
#top-bar .tb-social a { color: var(--text-muted); font-size: 13px; transition: color .18s; }
#top-bar .tb-social a:hover { color: var(--accent); }

/* ─── HEADER ────────────────────────────────────────────────────────────── */
#header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
#header.scrolled { box-shadow: var(--shadow-md); }
#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}
.site-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-brand .brand-logo img { height: 34px; width: auto; display: block; }
.site-brand .brand-text-wrap { display: flex; flex-direction: column; line-height: 1.1; }
.site-brand .brand-name { font-size: 20px; font-weight: 700; letter-spacing: -.3px; color: #fff; }
.site-brand .brand-name span { color: var(--accent); }
.site-brand .brand-tagline { font-size: 10px; color: var(--text-muted); letter-spacing: .8px; text-transform: uppercase; }

/* Header right controls */
.header-controls { display: flex; align-items: center; gap: 8px; }
.hc-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: rgba(37,200,106,.22);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(37,200,106,.55);
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  transition: all .2s;
}
.hc-btn:hover  { background: rgba(37,200,106,.45); border-color: var(--accent); color: #fff; transform: scale(1.08); }
.hc-btn.active { background: var(--accent);        border-color: var(--accent); color: #fff; }
button.hc-btn  { background: rgba(37,200,106,.22); border: 1.5px solid rgba(37,200,106,.55); color: #fff; }
button.hc-btn:hover  { background: rgba(37,200,106,.45); border-color: var(--accent); color: #fff; transform: scale(1.08); }
button.hc-btn.active { background: var(--accent);        border-color: var(--accent); color: #fff; }

/* Search bar */
#search-bar {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-mid);
  padding: 12px 0;
  z-index: 800;
}
#search-bar.open { display: block; }
#search-bar .container { position: relative; }
#search-bar input[type=search] {
  width: 100%;
  height: 44px;
  padding: 0 50px 0 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
}
#search-bar input[type=search]:focus { outline: none; border-color: var(--accent); }
#search-bar input::placeholder { color: var(--text-faint); }
#search-bar .search-submit {
  position: absolute; top: 50%; right: 14px; transform: translateY(-50%);
  background: none; border: none; color: var(--text-muted); font-size: 15px; cursor: pointer;
}
#search-results-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  overflow: hidden;
  display: none;
}
#search-results-dropdown.open { display: block; }
.srd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .15s;
}
.srd-item:hover { background: rgba(37,200,106,.1); }
.srd-item img { width: 52px; height: 36px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.srd-item .srd-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; }
.srd-all { display: block; padding: 10px 16px; text-align: center; font-size: 12px; font-weight: 700; color: var(--accent); border-top: 1px solid var(--border); }
.srd-empty { padding: 16px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* ─── NAV ───────────────────────────────────────────────────────────────── */
#nav {
  background: var(--bg-nav);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 62px;
  z-index: 800;
}
#nav .container { display: flex; align-items: center; height: 46px; gap: 0; }
#nav .main-menu { display: flex; align-items: center; overflow-x: auto; flex: 1; }
#nav .main-menu ul { display: flex; align-items: center; white-space: nowrap; }
#nav .main-menu ul li { position: relative; }
#nav .main-menu ul li a {
  display: block;
  padding: 0 14px;
  line-height: 46px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .3px;
  text-transform: uppercase;
  transition: color .18s;
}
#nav .main-menu ul li a:hover,
#nav .main-menu ul li.current-menu-item > a,
#nav .main-menu ul li.current-menu-ancestor > a { color: var(--accent); }
#nav .main-menu ul li.current-menu-item > a { border-bottom: 2px solid var(--accent); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  background: rgba(37,200,106,.22);
  border: 1.5px solid rgba(37,200,106,.55);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .2s;
}
.nav-toggle:hover { background: rgba(37,200,106,.45); color: #fff; }

/* ─── MOBILE MENU ───────────────────────────────────────────────────────── */
#mobile-menu {
  display: none;
  position: fixed; inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.7);
}
#mobile-menu.open { display: block; }
#mobile-menu .mm-panel {
  position: absolute; top: 0; left: 0;
  width: min(300px, 90vw);
  height: 100%;
  background: var(--bg-card);
  border-right: 1px solid var(--border-mid);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
#mobile-menu .mm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-header);
}
#mobile-menu .mm-head .brand-name { font-size: 18px; font-weight: 700; color: #fff; }
#mobile-menu .mm-head .brand-name span { color: var(--accent); }
#mobile-menu .mm-close {
  background: none; border: none; color: var(--text-muted); font-size: 18px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
}
#mobile-menu .mm-close:hover { color: var(--accent); }
#mobile-menu .mm-nav ul li a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: all .18s;
}
#mobile-menu .mm-nav ul li a:hover { color: var(--accent); padding-left: 26px; background: rgba(37,200,106,.05); }
#mobile-menu .mm-footer {
  margin-top: auto;
  padding: 16px;
  display: flex; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
#mobile-menu .mm-footer a { color: var(--text-muted); font-size: 18px; transition: color .18s; }
#mobile-menu .mm-footer a:hover { color: var(--accent); }

/* ─── READING PROGRESS BAR ──────────────────────────────────────────────── */
#reading-progress {
  display: none;
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 9999;
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(37,200,106,.6);
}
.single-post #reading-progress { display: block; }

/* ─── PAGE LAYOUT ───────────────────────────────────────────────────────── */
#page-body { min-height: 60vh; padding: 30px 0 0; }
.layout-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
#primary { min-width: 0; }
#secondary { position: sticky; top: 120px; }

/* ─── HERO SECTION ──────────────────────────────────────────────────────── */
#hero {
  position: relative;
  margin-bottom: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.hero-image-link { display: block; }
.hero-image-link img {
  width: 100%; aspect-ratio: 21/9;
  object-fit: cover; display: block;
}
.hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 30px 28px 24px;
  background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.55) 60%, transparent 100%);
}
.hero-cat {
  display: inline-block;
  padding: 3px 10px 4px;
  background: rgba(37,200,106,.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(37,200,106,.7);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 12px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.hero-title a { color: #fff; }
.hero-title a:hover { color: var(--accent); }
.hero-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: rgba(255,255,255,.65); }
.hero-meta a { color: var(--accent); font-weight: 600; }
.hero-meta .dot { opacity: .5; }

/* Secondary featured strip */
#featured-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 30px; }
.strip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.strip-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-mid); }
.strip-card .sc-thumb { display: block; overflow: hidden; }
.strip-card .sc-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .35s; }
.strip-card:hover .sc-thumb img { transform: scale(1.05); }
.strip-card .sc-body { padding: 12px 14px 14px; }
.strip-card .sc-cat {
  display: inline-block; margin-bottom: 6px;
  padding: 2px 8px; background: rgba(37,200,106,.18); border: 1px solid var(--border-mid);
  border-radius: 3px; font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: .5px; text-transform: uppercase;
}
.strip-card .sc-title { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--text); margin-bottom: 8px; }
.strip-card .sc-title a:hover { color: var(--accent); }
.strip-card .sc-meta { font-size: 11px; color: var(--text-muted); }

/* ─── CONTENT TYPE NAV ──────────────────────────────────────────────────── */
#content-nav { margin-bottom: 20px; border-bottom: 1px solid var(--border); display: flex; gap: 4px; overflow-x: auto; }
#content-nav a {
  display: block;
  padding: 8px 14px 7px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all .18s;
}
#content-nav a:hover { color: var(--text); }
#content-nav a.active,
#content-nav .current > a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ─── POST GRID ─────────────────────────────────────────────────────────── */
#posts-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-bottom: 24px; }
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-mid); }
.post-card.full-width { grid-column: 1/-1; display: grid; grid-template-columns: 1.4fr 1fr; }
.post-card.full-width .pc-thumb { aspect-ratio: 4/3; }

.pc-thumb { display: block; overflow: hidden; }
.pc-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .35s; }
.post-card:hover .pc-thumb img { transform: scale(1.05); }
.pc-body { padding: 14px 16px 16px; }
.pc-cat {
  display: inline-block; margin-bottom: 7px;
  padding: 2px 8px;
  background: rgba(29,147,79,.85);
  border: 1px solid rgba(37,200,106,.6);
  border-radius: 3px;
  font-size: 10px; font-weight: 700; color: #fff; letter-spacing: .5px; text-transform: uppercase;
  transition: all .18s;
}
.pc-cat:hover { background: rgba(37,200,106,.95); }
.pc-title { font-size: 16px; font-weight: 700; line-height: 1.38; color: var(--text); margin-bottom: 10px; }
.pc-title a:hover { color: var(--accent); }
.post-card.full-width .pc-title { font-size: 20px; }
.pc-summary { display: none; font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.post-card.full-width .pc-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.pc-meta .pc-author { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); }
.pc-meta .pc-author img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.pc-meta .dot { opacity: .4; }

/* Post card interactions */
.pc-interactions { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.pc-int-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  transition: all .18s;
}
.pc-int-btn:hover { background: rgba(37,200,106,.15); border-color: var(--accent); color: var(--accent); }
.pc-int-btn.liked { border-color: var(--accent); color: var(--accent); background: rgba(37,200,106,.12); }
.pc-int-btn.unliked { border-color: #e23838; color: #e23838; background: rgba(226,56,56,.1); }

/* Pagination */
#pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 16px 0 30px; }
#pagination a,
#pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  background: rgba(22,22,22,.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  font-size: 13px; font-weight: 700; color: var(--text);
  transition: all .2s;
}
#pagination a:hover { background: rgba(37,200,106,.2); border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
#pagination span.current { background: linear-gradient(135deg,var(--accent),var(--accent-dark)); border-color: var(--accent); color: #fff; box-shadow: 0 3px 10px rgba(37,200,106,.35); }
#pagination .dots { background: none; border: none; color: var(--text-faint); }

/* ─── ARCHIVE TITLE / SECTION HEADERS ───────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--border-mid);
}
.section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--text);
}
.section-title .bar { width: 4px; height: 22px; background: var(--accent); border-radius: 2px; }
.section-see-all {
  font-size: 12px; font-weight: 700; color: var(--accent);
  padding: 4px 12px;
  background: rgba(37,200,106,.12);
  border: 1px solid var(--border-mid);
  border-radius: 20px;
  transition: all .18s;
}
.section-see-all:hover { background: rgba(37,200,106,.25); border-color: var(--accent); }

/* Category section on homepage */
.cat-section { margin-bottom: 36px; }

/* Nothing found */
#nothing { padding: 30px; text-align: center; color: var(--text-muted); font-size: 15px; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); }

/* ─── SIDEBAR ───────────────────────────────────────────────────────────── */
.widget { margin-bottom: 24px; }
.widget:last-child { margin-bottom: 0; }
.widget-title {
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--accent);
  margin-bottom: 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border-mid);
}
.widget ul li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text-muted); font-size: 13px; transition: color .18s; }
.widget ul li a:hover { color: var(--accent); }
.widget_tag_cloud .tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.widget_tag_cloud .tagcloud a {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px !important; font-weight: 600;
  background: rgba(37,200,106,.1);
  border: 1px solid var(--border-mid);
  border-radius: 20px; color: var(--accent);
  transition: all .18s;
}
.widget_tag_cloud .tagcloud a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Posts widget */
.tde-posts-widget .tde-pw-item {
  display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.tde-posts-widget .tde-pw-item:last-child { border-bottom: none; }
.tde-pw-num { font-size: 22px; font-weight: 700; color: var(--border-strong); min-width: 24px; line-height: 1; }
.tde-pw-img { width: 64px; height: 46px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.tde-pw-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); }
.tde-pw-title a:hover { color: var(--accent); }
.tde-pw-date { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* Search widget */
.widget_search .tde-search-form { display: flex; gap: 8px; }
.widget_search input[type=text],
.widget_search input[type=search] {
  flex: 1; height: 38px; padding: 0 12px;
  background: var(--bg-elevated); border: 1px solid var(--border-mid);
  border-radius: var(--radius); color: var(--text); font-size: 13px;
}
.widget_search input:focus { outline: none; border-color: var(--accent); }
.widget_search input[type=submit] {
  height: 38px; padding: 0 14px;
  background: var(--accent); border: none;
  border-radius: var(--radius); color: #fff; font-size: 13px; font-weight: 700;
  transition: background .18s;
}
.widget_search input[type=submit]:hover { background: var(--accent-dark); }

/* Newsletter widget */
.tde-newsletter-widget { padding: 18px; background: var(--bg-elevated); border: 1px solid var(--border-mid); border-radius: var(--radius); }
.tde-newsletter-widget .tnw-title { font-size: 16px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.tde-newsletter-widget .tnw-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.tde-newsletter-widget input[type=email] {
  width: 100%; height: 40px; padding: 0 14px; margin-bottom: 8px;
  background: var(--bg-card); border: 1px solid var(--border-mid);
  border-radius: var(--radius); color: var(--text); font-size: 13px;
}
.tde-newsletter-widget input[type=email]:focus { outline: none; border-color: var(--accent); }
.tde-newsletter-widget input[type=email]::placeholder { color: var(--text-faint); }
.tde-newsletter-widget input[type=submit] {
  width: 100%; height: 40px;
  background: linear-gradient(135deg,var(--accent),var(--accent-dark));
  border: none; border-radius: var(--radius);
  color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 3px 12px rgba(37,200,106,.3);
  transition: all .22s;
}
.tde-newsletter-widget input[type=submit]:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,200,106,.45); }
.tde-newsletter-widget .tnw-msg { display: none; font-size: 13px; color: var(--accent); margin-top: 8px; text-align: center; }
.tde-newsletter-widget .tnw-msg.show { display: block; }

/* ─── SINGLE POST ───────────────────────────────────────────────────────── */
.single-post #page-body { padding-top: 0; }
.post-layout { display: grid; grid-template-columns: 1fr 280px; gap: 36px; align-items: start; padding: 30px 0; }

/* Article header */
.article-wrap { min-width: 0; }
.article-breadcrumb { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.article-breadcrumb a { color: var(--text-muted); transition: color .18s; }
.article-breadcrumb a:hover { color: var(--accent); }
.article-breadcrumb .sep { opacity: .4; }
.article-cat {
  display: inline-block; margin-bottom: 12px;
  padding: 4px 12px; background: rgba(29,147,79,.88); border: 1px solid rgba(37,200,106,.6);
  border-radius: 3px; font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .6px; text-transform: uppercase;
}
.article-title { font-size: 30px; font-weight: 700; line-height: 1.25; color: var(--text); margin-bottom: 16px; }
.article-meta {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
  flex-wrap: wrap;
}
.article-author { display: flex; align-items: center; gap: 8px; }
.article-author img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-mid); }
.article-author .author-name { font-weight: 700; color: var(--accent); }
.article-author .author-name:hover { color: var(--accent-light); }
.article-date i { margin-right: 4px; color: var(--text-faint); }
.article-read-time i { margin-right: 4px; color: var(--text-faint); }

/* Share bar */
.share-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.share-bar .share-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px; font-weight: 700;
  border: 1px solid;
  transition: all .18s;
}
.share-btn.fb  { background: rgba(59,89,153,.15); border-color: rgba(59,89,153,.4); color: #7ba3f0; }
.share-btn.fb:hover  { background: #3b5999; border-color: #3b5999; color: #fff; }
.share-btn.tw  { background: rgba(29,161,242,.15); border-color: rgba(29,161,242,.4); color: #6ac3f5; }
.share-btn.tw:hover  { background: #1da1f2; border-color: #1da1f2; color: #fff; }
.share-btn.wa  { background: rgba(37,211,102,.15); border-color: rgba(37,211,102,.4); color: #5be07e; }
.share-btn.wa:hover  { background: #25d366; border-color: #25d366; color: #fff; }
.share-btn.cp  { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: var(--text-muted); }
.share-btn.cp:hover  { background: rgba(37,200,106,.2); border-color: var(--accent); color: var(--accent); }

/* Featured image */
.article-featured-image { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.article-featured-image img { width: 100%; display: block; }
.article-featured-image .caption { padding: 8px 12px; font-size: 12px; color: var(--text-muted); font-style: italic; background: var(--bg-elevated); }

/* Article body */
.article-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}
.article-body p { margin-bottom: 1.4em; }
.article-body h2 { font-size: 22px; font-weight: 700; color: var(--text); margin: 1.8em 0 .8em; padding-left: 14px; border-left: 3px solid var(--accent); }
.article-body h3 { font-size: 18px; font-weight: 700; color: var(--text); margin: 1.4em 0 .6em; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--accent-light); }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body em { font-style: italic; }
.article-body blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-size: 15px;
}
.article-body ul, .article-body ol { margin: 0 0 1.4em 1.4em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .5em; }
.article-body img { max-width: 100%; border-radius: var(--radius); margin: 1em 0; }
.article-body video { aspect-ratio: 16/9; width: 100%; height: auto; border-radius: var(--radius); }
/* YouTube / Vimeo embeds only — specific iframe sources get 16:9 */
.article-body iframe[src*="youtube.com"],
.article-body iframe[src*="youtu.be"],
.article-body iframe[src*="vimeo.com"],
.article-body iframe[src*="dailymotion.com"],
.article-body iframe[src*="rumble.com"] { aspect-ratio: 16/9; width: 100%; height: auto; border-radius: var(--radius); }
/* All other iframes (AdSense, embeds, etc.) — never override their dimensions */
.article-body iframe { max-width: 100%; }

/* Article footer */
.article-tags { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.article-tags .tags-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-right: 2px; }
.article-tags a { display: inline-block; padding: 4px 11px; font-size: 12px; font-weight: 600; background: rgba(37,200,106,.1); border: 1px solid var(--border-mid); border-radius: 20px; color: var(--accent); transition: all .18s; }
.article-tags a:hover { background: var(--accent); color: #fff; }

/* Author box */
.author-box {
  margin: 30px 0;
  padding: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  display: flex; gap: 18px;
  align-items: flex-start;
}
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-strong); flex-shrink: 0; }
.author-box .ab-body {}
.author-box .ab-name { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.author-box .ab-name a { color: var(--accent); }
.author-box .ab-bio { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; }
.author-box .ab-links { display: flex; gap: 10px; }
.author-box .ab-links a { font-size: 14px; color: var(--text-muted); transition: color .18s; }
.author-box .ab-links a:hover { color: var(--accent); }

/* Related posts */
.related-posts { margin: 30px 0; }
.related-posts .rp-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }

/* ─── NEWSLETTER BANNER ─────────────────────────────────────────────────── */
#newsletter-banner {
  background: linear-gradient(135deg, var(--bg-nav) 0%, rgba(8,8,8,.98) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
  margin-top: 40px;
}
#newsletter-banner .nb-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
#newsletter-banner .nb-title { font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
#newsletter-banner .nb-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }
#newsletter-banner form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
#newsletter-banner input[type=email] {
  flex: 1; height: 48px; padding: 0 18px;
  background: var(--bg-elevated); border: 1px solid var(--border-mid);
  border-radius: var(--radius); color: var(--text); font-size: 14px;
}
#newsletter-banner input[type=email]:focus { outline: none; border-color: var(--accent); }
#newsletter-banner input[type=email]::placeholder { color: var(--text-faint); }
#newsletter-banner input[type=submit] {
  height: 48px; padding: 0 24px;
  background: linear-gradient(135deg,var(--accent),var(--accent-dark));
  border: none; border-radius: var(--radius);
  color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 3px 14px rgba(37,200,106,.35);
  transition: all .22s;
  white-space: nowrap;
}
#newsletter-banner input[type=submit]:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(37,200,106,.5); }
.nb-message { font-size: 14px; color: var(--accent); margin-top: 12px; display: none; }
.nb-message.show { display: block; }

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
#footer {
  background: var(--bg-footer);
  border-top: 2px solid var(--accent);
  padding: 48px 0 0;
  margin-top: 0;
}
.footer-inner { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 36px; margin-bottom: 36px; }
.footer-brand .fb-logo { margin-bottom: 12px; }
.footer-brand .fb-logo img { height: 32px; width: auto; }
.footer-brand .fb-name { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.footer-brand .fb-name span { color: var(--accent); }
.footer-brand .fb-tagline { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.footer-brand .fb-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-brand .fb-social a { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 50%; color: var(--text-muted); font-size: 14px; transition: all .18s; }
.footer-brand .fb-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-col .fc-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.4); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-col ul li { padding: 5px 0; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.6); transition: color .18s; }
.footer-col ul li a:hover { color: var(--accent); }
/* Hide Archives and Categories in footer — not useful in footer context */
#footer .widget_archive,
#footer .widget_categories { display: none !important; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 14px 0 15px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,.35);
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: color .18s; }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom .fb-links { display: flex; gap: 18px; }

/* ─── FORMS ─────────────────────────────────────────────────────────────── */
input[type=text], input[type=email], input[type=search], input[type=password], select, textarea {
  height: 42px; padding: 0 14px;
  background: var(--bg-elevated); border: 1px solid var(--border-mid);
  border-radius: var(--radius); color: var(--text); font-size: 14px;
  transition: border-color .18s;
}
input[type=text]:focus, input[type=email]:focus, input[type=search]:focus,
input[type=password]:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
textarea { height: auto; padding: 12px 14px; resize: vertical; }
input[type=submit], button[type=submit] {
  height: 42px; padding: 0 20px;
  background: var(--accent); border: none;
  border-radius: var(--radius); color: #fff;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .18s;
}
input[type=submit]:hover, button[type=submit]:hover { background: var(--accent-dark); }

/* ─── 404 ───────────────────────────────────────────────────────────────── */
.page-404 { text-align: center; padding: 80px 20px; }
.page-404 .e404 { font-size: 100px; font-weight: 700; color: var(--accent); opacity: .3; line-height: 1; }
.page-404 h1 { font-size: 28px; font-weight: 700; color: var(--text); margin: 12px 0 8px; }
.page-404 p { color: var(--text-muted); margin-bottom: 24px; font-size: 16px; }
.page-404 .btn-home { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--accent); border-radius: var(--radius); color: #fff; font-weight: 700; font-size: 15px; transition: background .18s; }
.page-404 .btn-home:hover { background: var(--accent-dark); }

/* ─── SEARCH PAGE ───────────────────────────────────────────────────────── */
.search-filter-wrap {
  padding: 20px; margin-bottom: 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.search-filter-wrap .sf-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.search-filter-wrap .sf-field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 140px; }
.search-filter-wrap label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.search-filter-wrap input, .search-filter-wrap select { width: 100%; }
.search-filter-wrap .sf-actions { display: flex; gap: 8px; align-items: flex-end; }
.btn-reset { padding: 0 16px; height: 42px; background: rgba(255,255,255,.05); border: 1px solid var(--border-mid); border-radius: var(--radius); color: var(--text-muted); font-size: 13px; font-weight: 600; transition: all .18s; }
.btn-reset:hover { background: rgba(255,255,255,.1); color: var(--text); }

/* ─── PAGE.PHP ──────────────────────────────────────────────────────────── */
.page-content { max-width: 800px; }
.page-title { font-size: 30px; font-weight: 700; color: var(--text); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.page-body { font-size: 16px; line-height: 1.75; color: var(--text); }
.page-body p { margin-bottom: 1.4em; }
.page-body h2 { font-size: 22px; font-weight: 700; margin: 1.8em 0 .8em; padding-left: 14px; border-left: 3px solid var(--accent); }
.page-body a { color: var(--accent); text-decoration: underline; }
.page-body img { max-width: 100%; border-radius: var(--radius); }

/* ─── AD SLOTS ──────────────────────────────────────────────────────────── */
.ad-slot { text-align: center; padding: 10px 0; }
.ad-slot-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-faint); margin-bottom: 6px; }

/* ─── COMMENTS ──────────────────────────────────────────────────────────── */
.comments-area { margin-top: 30px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.comments-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-list .comment:last-child { border-bottom: none; }
.comment-author img { width: 38px; height: 38px; border-radius: 50%; float: left; margin-right: 12px; }
.comment-meta .fn { font-weight: 700; color: var(--accent); font-size: 14px; }
.comment-meta .comment-date { font-size: 12px; color: var(--text-muted); }
.comment-content p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-top: 8px; }
#respond { margin-top: 24px; }
#respond .comment-reply-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
#respond input, #respond textarea { width: 100%; margin-bottom: 12px; background: var(--bg-elevated); border-color: var(--border-mid); color: var(--text); }
#respond input::placeholder, #respond textarea::placeholder { color: var(--text-faint); }

/* ─── UTILITIES ─────────────────────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.mt-0  { margin-top: 0; }
.mb-20 { margin-bottom: 20px; }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .layout-wrap { grid-template-columns: 1fr; }
  #secondary { position: static; display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; align-items: start; }
  #secondary .widget:last-child { margin-bottom: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-layout #secondary { display: block; }
  #featured-strip { grid-template-columns: 1fr 1fr; }
  .article-title { font-size: 24px; }
}

@media (max-width: 720px) {
  #top-bar .tb-date span { display: none; }
  #nav .main-menu { display: none; }
  .nav-toggle { display: flex; }
  #posts-grid { grid-template-columns: 1fr; }
  .post-card.full-width { grid-template-columns: 1fr; }
  .post-card.full-width .pc-thumb { aspect-ratio: 16/9; }
  #featured-strip { grid-template-columns: 1fr; }
  .hero-title { font-size: 20px; }
  .hero-overlay { padding: 18px 16px 16px; }
  .related-posts .rp-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
  #newsletter-banner form { flex-direction: column; gap: 12px; padding: 0 15px; max-width: 100%; }
  #newsletter-banner input[type=email],
  #newsletter-banner input[type=submit] { width: 100% !important; max-width: 100%; }
  #newsletter-banner { padding: 36px 0; }
  #newsletter-banner .nb-title { font-size: 22px; }
  #newsletter-banner .nb-sub   { font-size: 14px; margin-bottom: 18px; padding: 0 10px; }
  #secondary { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .article-title { font-size: 22px; }
  .share-btn span { display: none; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  #header .container { gap: 8px; }
  .site-brand .brand-tagline { display: none; }
}

/* ─── PRINT ─────────────────────────────────────────────────────────────── */
@media print {
  #top-bar, #nav, #mobile-menu, #search-bar, #reading-progress,
  .header-controls, .share-bar, .related-posts, .tde-newsletter-widget,
  #newsletter-banner, #footer, .ad-slot { display: none !important; }
  body { background: #fff; color: #000; }
  .article-body { color: #000; }
}

/* ─── HEADER BUTTON LABELS ───────────────────────────────────────────────── */
/* Visible text label under each icon — shows even if FA doesn't load */
.hc-btn {
  flex-direction: column;
  gap: 2px;
  width: 52px;
  height: 48px;
  border-radius: 8px;  /* pill-ish rectangle instead of circle */
  font-size: 14px;
}
.hc-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: inherit;
  line-height: 1;
}
/* Desktop: show label */
@media (min-width: 721px) {
  .hc-btn { width: 56px; height: 48px; }
}
/* Mobile: keep compact */
@media (max-width: 720px) {
  .hc-btn { width: 46px; height: 44px; }
  .hc-label { font-size: 8px; }
}

/* ─── MOBILE OVERFLOW FIX ────────────────────────────────────────────────── */
/* Prevents ANY element from causing horizontal scroll / wider-than-viewport */

/* Prevent horizontal scrollbar without clipping ads or content */
html { overflow-x: clip; }   /* stops scrollbar but does NOT clip like hidden does */
body { width: 100%; max-width: 100%; position: relative; }

/* All direct grid/flex children: force them to respect container width */
.layout-wrap > *,
.post-layout > *,
#secondary,
#secondary > *,
#secondary .widget,
.footer-inner > * { min-width: 0; max-width: 100%; }

/* Post cards and strip cards stay inside grid cells */
.post-card,
.strip-card,
.post-card * { max-width: 100%; }

/* Images and media: prevent overflow. NOTE: iframes excluded — Google AdSense
   controls iframe dimensions internally. Forcing !important overrides their sizing. */
img, video, embed, object, table { max-width: 100% !important; }
/* Iframes: max-width without !important so AdSense can override if needed */
iframe { max-width: 100%; }

/* Inputs and textareas on mobile */
input, select, textarea { max-width: 100%; }

/* The container itself must never exceed viewport */
.container { max-width: min(1160px, 100vw - 30px); }

/* ─── SINGLE POST MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 720px) {

  /* Post layout padding: remove the 30px that adds to total width */
  .post-layout { padding: 16px 0; gap: 20px; }

  /* Article body: all children width-constrained */
  .article-body * { max-width: 100%; word-break: break-word; overflow-wrap: break-word; }
  .article-body pre, .article-body code { overflow-x: auto; white-space: pre-wrap; }

  /* Share buttons row: wrap freely, no overflow */
  .share-bar { flex-wrap: wrap; gap: 6px; }
  .share-btn { padding: 5px 10px; }

  /* Header container: no gap overflow */
  #header .container { padding: 0 14px; }

  /* Page body container: tight on small screens */
  #page-body > .container { padding: 0 14px; max-width: 100%; width: 100%; }

  /* Force sidebar below content, full width, single column */
  #secondary { width: 100%; grid-template-columns: 1fr !important; }

  /* Footer inner: single column on very narrow screens */
  .footer-inner { gap: 20px; }
  .footer-brand .fb-social { gap: 8px; }

  /* Newsletter widget inside sidebar */
  .tde-newsletter-widget { max-width: 100%; overflow: hidden; }
  .tde-newsletter-widget input { width: 100%; max-width: 100%; }

  /* Hero overlay title doesn't overflow */
  .hero-title { font-size: 18px; word-break: break-word; }
  .hero-overlay { max-width: 100%; }

  /* Hide top bar on very small screens */
  #top-bar .tb-date { display: none; }
}

@media (max-width: 480px) {
  /* Ultra narrow phones: tighten container */
  .container { max-width: 100%; width: 100vw; padding: 0; }
  #page-body > .container { padding: 0 12px; width: 100%; }
  #header .container { padding: 0 12px; }

  /* No gap on post grid */
  #posts-grid { gap: 12px; }
  .layout-wrap { gap: 16px; }
}

/* ─── AD & ARTICLE CONTENT WIDTH FIX ────────────────────────────────────── */

/* Article wrap: constrained column in the grid, NO overflow clipping */
.article-wrap {
  min-width: 0;
  max-width: 100%;
  /* overflow: hidden intentionally removed — clips ads */
}

/* Article body: prevent text from stretching the layout */
.article-body {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Ad slot WRAPPER — constrain the container, never the ins element itself.
   Google controls ins dimensions. Only the parent wrapper needs width limits. */
.ad-slot {
  width: 100%;
  max-width: 100%;
  /* No overflow:hidden — that clips ads */
}

/* AdSense compliance: let Google control ad dimensions.
   Only set display:block and max-width on the wrapper, not the ins. */
.ad-slot ins.adsbygoogle,
.ad-slot .adsbygoogle {
  display: block;
  max-width: 100%;
  /* Do NOT force width: 100% — Google sizes ins elements internally */
}

@media (max-width: 720px) {
  /* On mobile: constrain the wrapper, let the ad scale naturally inside */
  .ad-slot {
    max-width: 100vw;
    overflow: visible; /* ensure nothing clips the ad */
  }
  /* Article content (text/images only, not ads) stays within bounds */
  .article-body > p,
  .article-body > h2,
  .article-body > h3,
  .article-body > ul,
  .article-body > ol,
  .article-body > blockquote,
  .article-body > figure { max-width: 100%; }
  .article-body pre, .article-body code { overflow-x: auto; white-space: pre-wrap; }
}


/* ==========================================================================
   v1.05 — EDITORIAL DESIGN SYSTEM UPDATE
   Inspired by Okay News: clean hierarchy, pure dark surfaces, calm editorial rhythm
   ========================================================================== */

/* ── 1. TYPOGRAPHY — editorial heading system ─────────────────────────── */
h1, h2, h3 { font-family: var(--font-heading); }
h4, h5, h6 { font-family: var(--font); }

body { font-size: 16px; line-height: 1.65; letter-spacing: -0.01em; }

/* Site brand tagline */
.site-brand .brand-tagline {
  font-family: var(--font);
  font-style: italic;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  opacity: 0.85;
}

/* ── 2. HEADER — pure dark, clean border ─────────────────────────────── */
#header {
  border-bottom-color: rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}
#header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.7);
}

/* Top bar — subtle, minimal */
#top-bar {
  font-size: 11px;
  letter-spacing: 0.3px;
  background: #040404;
  border-bottom-color: rgba(255,255,255,0.04);
}

/* Navigation — editorial spacing */
#nav { background: var(--bg-nav); }
#nav .main-menu ul li a {
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0 16px;
  font-family: var(--font);
  font-weight: 700;
}

/* ── 3. HERO — cinematic editorial feel ──────────────────────────────── */
.hero-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.3px;
}
@media (max-width: 720px) {
  .hero-title { font-size: 20px; }
}

/* ── 4. POST CARDS — clean editorial cards ───────────────────────────── */
.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.post-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}
.pc-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.2px;
}
.post-card.full-width .pc-title {
  font-size: 21px;
  letter-spacing: -0.3px;
}
.pc-cat {
  font-size: 10px;
  letter-spacing: 0.8px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 9px 3px;
  border-radius: var(--radius-sm);
}
.pc-meta { font-size: 11px; letter-spacing: 0.1px; }

/* ── 5. STRIP / SECONDARY FEATURED CARDS ────────────────────────────── */
.strip-card .sc-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.15px;
}
.strip-card .sc-meta { font-size: 11px; letter-spacing: 0.1px; }

/* ── 6. SECTION HEADERS — editorial desk labels ──────────────────────── */
.section-title {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section-title .bar { background: var(--accent); }

/* ── 7. CONTENT NAV — cleaner tab strip ─────────────────────────────── */
#content-nav { background: transparent; gap: 0; }
#content-nav a {
  font-size: 11px;
  letter-spacing: 0.8px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 16px 9px;
  color: var(--text-faint);
  border-bottom: 2px solid transparent;
}
#content-nav a:hover { color: var(--text-muted); }
#content-nav a.active,
#content-nav .current > a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── 8. SINGLE POST — Okay News editorial article style ─────────────── */
.article-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.4px;
  color: var(--text);
}
@media (max-width: 720px) {
  .article-title { font-size: 24px; letter-spacing: -0.2px; }
}

/* Article metadata strip */
.article-meta {
  font-size: 13px;
  gap: 16px;
  color: var(--text-muted);
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-mid);
}
.article-author .author-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}

/* Article body — Okay News reading quality */
.article-body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.80;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.article-body p { margin-bottom: 1.5em; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 2em 0 0.7em;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  letter-spacing: -0.2px;
}
.article-body h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 1.6em 0 0.5em;
  letter-spacing: -0.15px;
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 16px;
  color: var(--text-muted);
  margin: 1.6em 0;
}

/* Reading bar — Okay News reading strip */
.article-breadcrumb {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.article-cat {
  font-size: 10px;
  letter-spacing: 0.8px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px 4px;
  border-radius: var(--radius-sm);
}

/* Share buttons — minimal, like Okay News */
.share-bar { gap: 6px; margin-bottom: 22px; }
.share-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.share-btn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 5px 12px;
  border-radius: 20px;
}

/* Author box — Okay News newsroom style */
.author-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.author-box .ab-name { font-size: 15px; font-weight: 700; }
.author-box .ab-bio { font-size: 13px; line-height: 1.65; color: var(--text-muted); }

/* Related posts section header */
.related-posts .section-header {
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── 9. SIDEBAR — clean widgets ──────────────────────────────────────── */
.widget-title {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.tde-pw-title { font-family: var(--font); font-size: 13px; line-height: 1.45; }
.tde-pw-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--border-mid);
  font-family: var(--font-heading);
  min-width: 22px;
}

/* ── 10. PAGINATION — clean minimal ──────────────────────────────────── */
#pagination a,
#pagination span {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  min-width: 34px; height: 34px;
}
#pagination a:hover {
  background: rgba(37,200,106,0.12);
  border-color: rgba(37,200,106,0.4);
  color: var(--accent);
  transform: none;
  box-shadow: none;
}
#pagination span.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(37,200,106,0.3);
}

/* ── 11. NEWSLETTER BANNER — clean dark ──────────────────────────────── */
#newsletter-banner {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
#newsletter-banner .nb-title {
  font-family: var(--font-heading);
  font-size: 26px;
  letter-spacing: -0.3px;
}

/* ── 12. FOOTER — pure dark editorial ───────────────────────────────── */
#footer { background: var(--bg-footer); border-top: 1px solid var(--border); }
.footer-col .fc-title {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: var(--accent); }

/* ── 13. LIGHT MODE OVERRIDES — editorial light ──────────────────────── */
html.light-mode body { background: var(--bg); }
html.light-mode #posts-grid,
html.light-mode .layout-wrap { background: transparent; }
html.light-mode .post-card {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
html.light-mode .post-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border-color: var(--border-mid);
}
html.light-mode .pc-title a { color: var(--text); }
html.light-mode .article-body { color: #1a1a1a; }
html.light-mode .article-body h2,
html.light-mode .article-body h3 { color: #0d0d0d; }
html.light-mode .article-body blockquote { background: rgba(0,0,0,0.03); color: #555; }
html.light-mode .article-title { color: var(--text); }
html.light-mode #content-nav { border-bottom-color: var(--border-mid); }
html.light-mode #content-nav a { color: var(--text-muted); }
html.light-mode #content-nav a.active { color: var(--accent); }
html.light-mode #secondary { background: transparent; }
html.light-mode .widget-title { color: var(--text-faint); border-bottom-color: var(--border); }
html.light-mode .tde-newsletter-widget { background: var(--bg-elevated); border-color: var(--border-mid); }
html.light-mode #pagination a { background: var(--bg-card); border-color: var(--border-mid); color: var(--text-muted); }
html.light-mode .strip-card { background: var(--bg-card); border-color: var(--border); }
html.light-mode .author-box { background: var(--bg-elevated); border-color: var(--border); }
html.light-mode .hero-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.5) 60%, transparent 100%);
}

/* ── 14. SEARCH RESULTS DROPDOWN — pure dark ─────────────────────────── */
#search-results-dropdown { background: rgba(8,8,8,0.98); border-color: rgba(255,255,255,0.08); }
.srd-item:hover { background: rgba(255,255,255,0.04); }
.srd-all { color: var(--accent); border-top-color: rgba(255,255,255,0.06); }



/* ==========================================================================
   INLINE RELATED POST v2 — matches Quick Access pill card screenshot
   White card, full-width pill shape, bold title, green arrow circle
   ========================================================================== */

.inline-related-wrap {
  margin: 2.2em 0;
  clear: both;
}

/* ── "RELATED" label with ruled lines either side ── */
.irp-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-faint);
  margin: 0 0 12px;
}
.irp-label::before,
.irp-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-mid);
}

/* ── Pill card — dark mode default ── */
.inline-related-post {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 20px 20px 26px;
  background: #1e1e1e;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 60px;
  text-decoration: none;
  transition: all 0.22s ease;
}
.inline-related-post:hover {
  background: #252525;
  border-color: rgba(37,200,106,0.35);
  transform: translateX(5px);
  box-shadow: 0 4px 22px rgba(0,0,0,0.45);
}

/* ── Text body ── */
.irp-body { flex: 1; min-width: 0; }
.irp-cat {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin-bottom: 5px;
}
.irp-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.2px;
  color: #ebebeb;
  transition: color 0.18s;
}
.inline-related-post:hover .irp-title { color: var(--accent); }

/* ── Arrow circle ── */
.irp-arrow {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(37,200,106,0.14);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px;
  transition: all 0.22s ease;
}
.inline-related-post:hover .irp-arrow {
  background: var(--accent);
  color: #fff;
  transform: translateX(3px);
}

/* ── LIGHT MODE — pure white card exactly like the screenshot ── */
html.light-mode .irp-label { color: #aaa; }
html.light-mode .irp-label::before,
html.light-mode .irp-label::after { background: rgba(0,0,0,0.10); }

html.light-mode .inline-related-post {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
}
html.light-mode .inline-related-post:hover {
  background: #f8fff9;
  border-color: rgba(37,200,106,0.35);
  box-shadow: 0 6px 28px rgba(37,200,106,0.12);
}
html.light-mode .irp-title { color: #0d0d0d; }
html.light-mode .inline-related-post:hover .irp-title { color: #1aad58; }
html.light-mode .irp-arrow {
  background: rgba(37,200,106,0.13);
  color: #1a9955;
}
html.light-mode .inline-related-post:hover .irp-arrow {
  background: #25c86a;
  color: #fff;
}

/* ── Mobile ── */
@media (max-width: 720px) {
  .inline-related-post { padding: 16px 16px 16px 20px; border-radius: 50px; gap: 14px; }
  .irp-title { font-size: 16px; }
  .irp-arrow { width: 44px; height: 44px; font-size: 15px; }
  .inline-related-post:hover { transform: translateX(3px); }
}

/* ==========================================================================
   PURE DARK MODE ENFORCEMENT — explicit hex values, zero green in backgrounds
   ========================================================================== */

/* Core page surfaces — pure black/charcoal */
html:not(.light-mode) body          { background-color: #0c0c0c; }
html:not(.light-mode) #top-bar      { background: #040404; }
html:not(.light-mode) #header       { background: #080808; }
html:not(.light-mode) #nav          { background: #0e0e0e; }
html:not(.light-mode) #page-body    { background: #0c0c0c; }
html:not(.light-mode) #footer       { background: #060606; border-top-color: rgba(255,255,255,0.07); }
html:not(.light-mode) #newsletter-banner { background: #111111; }
html:not(.light-mode) #mobile-menu .mm-panel { background: #141414; }
html:not(.light-mode) #search-bar   { background: #080808; }

/* Cards and surfaces — pure dark greys, no tint */
html:not(.light-mode) .post-card         { background: #1a1a1a; border-color: rgba(255,255,255,0.06); }
html:not(.light-mode) .strip-card        { background: #1a1a1a; border-color: rgba(255,255,255,0.06); }
html:not(.light-mode) .author-box        { background: #1e1e1e; border-color: rgba(255,255,255,0.07); }
html:not(.light-mode) .article-body blockquote { background: rgba(255,255,255,0.03); }
html:not(.light-mode) .tde-newsletter-widget   { background: #1e1e1e; border-color: rgba(255,255,255,0.08); }
html:not(.light-mode) .widget_tag_cloud .tagcloud a  { background: #1e1e1e; border-color: rgba(255,255,255,0.08); }
html:not(.light-mode) #search-results-dropdown      { background: #0a0a0a; }
html:not(.light-mode) .comments-area    { background: #1a1a1a; border-color: rgba(255,255,255,0.06); }
html:not(.light-mode) #respond input,
html:not(.light-mode) #respond textarea { background: #222222; border-color: rgba(255,255,255,0.08); }

/* Text — pure neutrals */
html:not(.light-mode) .pc-title a       { color: #ebebeb; }
html:not(.light-mode) .article-title    { color: #ebebeb; }
html:not(.light-mode) .article-body     { color: #c8c8c8; }
html:not(.light-mode) .article-body h2,
html:not(.light-mode) .article-body h3  { color: #e8e8e8; }
html:not(.light-mode) .article-body strong { color: #ebebeb; }
html:not(.light-mode) .section-title    { color: #888888; }

