﻿/*
Theme Name: Sajber Fast
Text Domain: sajber-fast
Version: 2.1.0
*/

:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --surface: #0f0f10;
  --text: #e6e6e6;
  --muted: #9a9a9a;
  --border: #222;
  --link: #7db7ff;
  --linkHover: #a9d0ff;
  --accent: #4da3ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* SKIP LINK */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--link);
  color: #000;
  padding: 8px 16px;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* GLOBAL SAFETY */
html, body { overflow-x: hidden; width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a, p, h1, h2, h3, h4, h5, h6 { word-break: break-word; }
main, article, .container { min-width: 0; overflow-wrap: break-word; }

/* HEADINGS — Editorial Typography Scale */
h1, h2, h3, h4, h5, h6 {
  color: var(--link);
  font-weight: 700;
  line-height: 1.2;
  margin: 1.5em 0 0.6em;
}
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 0.5em;
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  margin: 1.8em 0 0.7em;
}
h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 1.6em 0 0.6em;
}
h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--link);
  margin: 1.5em 0 0.5em;
}
h5 {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.4em 0 0.5em;
}
h6 {
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.2em 0 0.4em;
}

/* Article content heading refinements */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  scroll-margin-top: 90px;
}
.article-content h2 {
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  margin: 2em 0 0.8em;
}
.article-content h3 {
  position: relative;
  padding-bottom: 8px;
  margin: 1.8em 0 0.7em;
}
.article-content h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.article-content h4 {
  color: var(--link);
  font-weight: 600;
}
.article-content h5,
.article-content h6 {
  color: var(--accent);
}

/* CONTAINER */
.container { max-width: 1200px; margin: auto; padding: 16px; }

/* LAYOUT STRUCTURAL ENGINE */
.layout { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 32px; 
}

@media (min-width: 1024px) { 
  .layout { 
    grid-template-columns: minmax(0, 1fr) 336px; 
    align-items: start;
  } 
}
.layout > * { min-width: 0; }

/* TOP BAR */
.top-bar { background: #0f0f10; border-bottom: 1px solid var(--border); font-size: 0.8rem; color: var(--muted); }
.top-inner { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px; }
.top-right a { color: var(--muted); text-decoration: none; }
.top-right a:hover { color: var(--link); }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(11,11,12,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; padding: 10px 16px; flex-wrap: nowrap; }

/* LOGO */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}
.logo img,
.logo .custom-logo,
.logo .custom-logo-link img {
  width: auto !important;
  height: clamp(40px, 5vh, 52px) !important;
  min-height: 40px;
  max-height: 56px !important;
  min-width: 100px;
  max-width: clamp(160px, 18vw, 260px) !important;
  display: block;
  object-fit: contain;
}

/* DESKTOP NAV */
.desktop-nav { display: none; flex: 1 1 auto; justify-content: center; }
@media (min-width: 769px) { .desktop-nav { display: flex; } }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  color: #ddd;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.nav-menu > li > a:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.nav-menu > li > a:active { transform: translateY(1px); }

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu > li > a[aria-current="page"] {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(77,163,255,0.25);
}

.has-mega { position: relative; }
.has-mega > a::after {
  content: "▾";
  font-size: 0.7rem;
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.has-mega:hover > a::after {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-search-item > a,
.nav-search-item > button {
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.nav-search-item > a:hover,
.nav-search-item > button:hover {
  color: var(--link);
  border-color: var(--link);
  background: var(--bg);
}

/* MEGA MENU */
.mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  display: none;
  z-index: 3000;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  min-width: 320px;
  max-width: 720px;
  width: max-content;
}
.mega-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.has-mega:hover .mega-menu {
  display: block;
  animation: megaFadeIn 0.18s ease;
}
@keyframes megaFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 1024px) { .mega-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .mega-grid { grid-template-columns: 1fr; } }

.mega-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  min-width: 0;
}
.mega-item:hover {
  background: #151517;
  border-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.mega-item__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
}
.mega-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.mega-item:hover .mega-item__thumb img { transform: scale(1.05); }
.mega-item__title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mega-item__date {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: auto;
}

/* HEADER ACTIONS */
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* HAMBURGER */
.menu-toggle {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  font-size: 1.4rem; line-height: 1; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); padding: 8px 12px;
  border-radius: 8px; cursor: pointer; z-index: 2500;
}
@media (min-width: 769px) { .menu-toggle { display: none; } }

/* MOBILE NAV */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,7,8,0.98);
  z-index: 99999;
  overflow-y: auto;
  padding: 0;
}
.mobile-nav.active { display: flex; flex-direction: column; }
.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(7,7,8,0.98);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.logo--mobile img { height: 32px; }
.menu-close {
  width: 44px; height: 44px; font-size: 1.5rem; line-height: 1; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav__list { list-style: none; padding: 16px; margin: 0; max-width: 480px; margin-left: auto; margin-right: auto; }
.mobile-nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: 1.1rem; text-decoration: none; font-weight: 500; }
body.menu-open { overflow: hidden; touch-action: none; }

/* PROGRESS BAR */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--link); z-index: 2001; transition: width 0.1s linear; }

/* HERO */
.featured-hero { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.hero__link { display: block; text-decoration: none; color: inherit; }
.hero__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.featured-hero:hover .hero__img { transform: scale(1.03); }
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(to top, rgba(0,0,0,0.95) 20%, rgba(0,0,0,0.7) 50%, transparent); }
.hero__kicker { display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.hero-content h1 { font-size: clamp(1.6rem, 5vw, 2.6rem); margin: 0 0 10px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,0.8); }
.hero__excerpt { margin: 0; font-size: 1rem; color: var(--muted); line-height: 1.5; max-width: 60ch; text-shadow: 0 1px 6px rgba(0,0,0,0.8); }

/* TRENDING */
.trending-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.trending-strip::-webkit-scrollbar { display: none; }
.trend-item { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; min-width: 140px; max-width: 320px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; text-decoration: none; color: var(--text); font-size: 0.85rem; font-weight: 500; line-height: 1.3; white-space: nowrap; }
.trend-item__thumb { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; }
.trend-item__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* GRID & CARDS */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.post-card { height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: transform 0.2s ease, border-color 0.2s ease; content-visibility: auto; contain-intrinsic-size: 0 320px; }
.post-card:hover { transform: translateY(-3px); border-color: #333; }
.post-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.post-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: color-mix(in oklab, var(--surface), var(--border) 20%); }
.post-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.post-card:hover .post-card__img { transform: scale(1.05); }
.post-card__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__kicker { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; }
.post-card__title { font-size: 1.05rem; margin: 0; line-height: 1.3; letter-spacing: -0.02em; font-weight: 700; }
.post-card__meta { margin: auto 0 0; font-size: 0.82rem; color: var(--muted); }

/* SIDEBAR STRUCTURAL BASE (Desktop Only Sticky Configuration) */
#sidebar { display: none; }
@media (min-width: 1024px) {
  #sidebar {
    display: block !important;
    position: sticky !important;
    top: 90px !important;
    height: auto !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important; /* Allow scroll inside sidebar only if widgets exceed monitor height */
    padding-top: 4px;
    align-self: start !important;
  }
}
#sidebar * { max-width: 100%; }
#sidebar .widget { border: 1px solid var(--border); padding: 14px; margin-bottom: 16px; background: var(--surface); border-radius: 10px; }
#sidebar h3 { font-size: 0.85rem; letter-spacing: 0.3px; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
#sidebar ul { list-style: none; padding: 0; margin: 0; }
#sidebar ul li { padding: 8px 0; border-bottom: 1px solid #1d1d1d; }
#sidebar ul li:last-child { border-bottom: none; }
#sidebar ul li a { color: var(--text); text-decoration: none; font-size: 0.92rem; }
#sidebar ul li a:hover { color: var(--link); }

/* SINGLE ARTICLE */
.single-article { background: var(--surface); padding: 18px; border: 1px solid var(--border); border-radius: 12px; max-width: 740px; margin: 0 auto; width: 100%; }
@media (min-width: 768px) { .single-article { padding: 28px; } }
.article-header h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0 0 16px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.featured-image { border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.featured-image img { width: 100%; height: auto; display: block; }

.meta-bar { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.meta-row { font-size: 0.88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.meta-sep { color: var(--border); }
.meta-author { color: var(--link); text-decoration: none; font-weight: 600; }
.meta-author:hover { text-decoration: underline; }

.article-content { font-size: 1.05rem; line-height: 1.75; color: color-mix(in oklab, var(--text), var(--muted) 20%); }
.article-content p { margin: 0 0 1.2em; }
.article-content img { border-radius: 10px; margin: 18px 0; cursor: zoom-in; }
.article-content iframe, .article-content video { max-width: 100%; border-radius: 10px; }

/* SHARE BAR */
.share-wrap { margin: 24px 0; }
.share-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); text-decoration: none; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; position: relative; }
.share-btn:hover { background: var(--surface); color: var(--text); border-color: #444; }
.share-fb:hover { color: #1877f2; border-color: #1877f2; }
.share-x:hover  { color: #fff; border-color: #fff; }
.share-wa:hover { color: #25d366; border-color: #25d366; }

/* AUTHOR BOX BASE */
.author-box { 
  display: flex; 
  flex-wrap: nowrap; 
  align-items: flex-start; 
  gap: 20px; 
  border: 1px solid var(--border); 
  padding: 20px; 
  margin-top: 2rem; 
  background: var(--surface); 
  border-radius: 12px; 
  position: relative;
}
.author-box__media { flex: 0 0 auto; }
.author-box__img, .author-box img.avatar { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.author-box__body { flex: 1; min-width: 0; }
.author-box__name { display: inline-block; font-size: 1.05rem; font-weight: 700; color: var(--text); text-decoration: none; margin: 0 0 6px; }
.author-box__name:hover { color: var(--link); }
.author-box__bio p { margin: 0; font-size: 0.94rem; color: var(--muted); line-height: 1.6; }

/* Hide mobile text toggle configurations on Desktop */
.author-bio-toggle { display: none !important; }

/* MOBILE-ONLY AUTHOR BOX FOLD RULES */
@media (max-width: 768px) {
  .author-box {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding-bottom: 64px !important;
  }
  .author-bio-toggle {
    display: inline-block !important;
    position: absolute !important;
    bottom: 16px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #1c1c1e !important;
    border: 1px solid var(--border) !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
  }
}

/* RELATED CARDS TRACK */
.related-section { margin-top: 2.5rem; content-visibility: auto; contain-intrinsic-size: 0 300px; }
.related-section__title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
.related-swiper { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.related-swiper::-webkit-scrollbar { display: none; }
.related-track { display: flex; gap: 14px; }
.related-card { flex: 0 0 260px; scroll-snap-align: start; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.related-card__link { display: block; text-decoration: none; color: inherit; }
.related-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: color-mix(in oklab, var(--surface), var(--border) 20%); }
.related-card__title { font-size: 0.95rem; margin: 0; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; padding: 12px; }

/* AD REGIONS CLS COVERS */
.ad-wrap { margin: 20px 0; display: flex; justify-content: center; }
.ad-top { min-height: 120px; }
.ad-mid { min-height: 280px; }

/* ============================================================
   MODERN COLUMN FOOTER COMPLETE FIX
============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  background: var(--bg);
}

.footer-main {
  padding: 48px 0;
}

.footer-main__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1024px) {
  .footer-main__inner {
    grid-template-columns: 280px 1fr;
    align-items: start;
    gap: 48px;
  }
}

/* Brand Section Details */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: block;
}

.footer-logo img,
.footer-logo .custom-logo,
.footer-logo .custom-logo-link img {
  max-width: 180px !important;
  height: auto !important;
  display: block;
}

.footer-logo a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* Footer Grid columns architecture */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 480px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* Navigation Columns & Item Typography Layouts */
.footer-col {
  min-width: 0;
}

.footer-col__title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 16px;
  font-weight: 700;
}

.footer-col__list,
.footer-social-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col__list a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
  display: inline-block;
}

.footer-col__list a:hover {
  color: var(--link);
}

.footer-social-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-social-list a svg {
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.footer-social-list a:hover {
  color: var(--link);
}

.footer-social-list a:hover svg {
  transform: scale(1.08);
}

/* Newsletter Block Element Design Constraints */
.footer-newsletter__text {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.4;
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.footer-newsletter input[type="email"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.footer-newsletter input[type="email"]:focus {
  border-color: var(--link);
  box-shadow: 0 0 0 2px rgba(125,183,255,0.15);
}

.footer-newsletter button {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.footer-newsletter button:hover {
  background: var(--bg);
  border-color: var(--link);
  color: var(--link);
}

/* Footer Bottom Strip Layout Engine */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  background: #09090a;
}

.footer-bottom__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: center;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-legal a:hover {
  color: var(--link);
}

.footer-legal__sep {
  color: var(--border);
  font-size: 0.75rem;
}

/* PAGINATION */
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: center; }
.pagination a, .pagination span { display: inline-block; padding: 0.4rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 0.9rem; }
.pagination a:hover { border-color: var(--link); color: var(--link); }
.pagination .current { border-color: var(--link); color: var(--link); font-weight: 600; }

/* SEARCH OVERLAY SAFE FIX */
.search-overlay { 
  position: fixed; 
  inset: 0; 
  background: rgba(7,7,8,0.98); 
  z-index: 4000; 
  display: none; 
}

/* --- TAIL RESPONSIVE SNIPPETS --- */
@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .container { padding-left: 12px; padding-right: 12px; }
  img, iframe, video { max-width: 100%; height: auto; }
  article { overflow: hidden; }
  body { padding-bottom: 70px; }
  .mobile-anchor-ad { position: fixed; bottom: 0; left: 0; width: 100%; min-height: 60px; background: #111; border-top: 1px solid #222; z-index: 99; }
  
  /* REDUCE MOBILE FOOTER ITEMS CLUTTER (Screenshot_3.jpg Clean Up) */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  /* Hides duplicate link sets (Categories, Pages lists) only on small viewports */
  .footer-grid .footer-col:nth-of-type(1),
  .footer-grid .footer-col:nth-of-type(2) {
    display: none !important;
  }
}

/* BACK TO TOP COMPONENT CONTROL (Strict positioning override logic) */
#toTop.to-top {
  position: fixed !important;
  bottom: 85px !important;  /* Elevates cleanly over anchor banners (Screenshot_25.png) */
  right: 20px !important;   /* Locks to the exact right edge */
  left: auto !important;    /* Breaks layout conflicts */
  z-index: 99999 !important;
  width: 44px;
  height: 44px;
  background: #151516 !important;
  border: 1px solid #333 !important;
  color: var(--text) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

@media print {
  .site-header, .top-bar, #sidebar, .mobile-nav, #toTop.to-top, .mobile-anchor-ad { display: none !important; }
  body { background: #fff; color: #000; }
  .container { max-width: 100%; padding: 0; }
}

/* Stretched Link Mechanism */
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card__link--stretched::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

/* Ensure isolated metadata or category links can still be tapped independently */
.post-card__kicker {
  position: relative;
  z-index: 2;
}