
  :root {
    --bg: #0f0a24;
    --bg-soft: #1a1235;
    --surface: #221847;
    --surface-2: #2b1f59;
    --border: rgba(155, 143, 199, 0.18);
    --border-strong: rgba(155, 143, 199, 0.32);
    --text: #f0ebff;
    --text-muted: #9b8fc7;
    --text-dim: #6e6395;
    --accent-cyan: #22d3ee;
    --accent-cyan-dim: rgba(34, 211, 238, 0.15);
    --accent-magenta: #c026d3;
    --accent-magenta-dim: rgba(192, 38, 211, 0.18);
    --accent-orange: #fb923c;
    --accent-green: #4ade80;
    --accent-yellow: #facc15;
    --sidebar-w: 260px;
    --header-h-mobile: 64px;
    --footer-h-mobile: 68px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 24px rgba(34, 211, 238, 0.25);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
  }
  a { color: inherit; text-decoration: none; }

  /* ───── LAYOUT GRID ───── */
  .layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: 100vh;
  }

  /* ───── SIDEBAR (DESKTOP/TABLET) ───── */
  .sidebar-left {
    background: var(--bg-soft);
    border-right: 1px solid var(--border);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 10;
  }
  .sidebar-left::-webkit-scrollbar { width: 4px; }
  .sidebar-left::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

  /* Logo block */
  .sb-logo {
    display: flex;
    justify-content: center;
    padding: 4px 0 4px;
  }
  .sb-logo img { width: 100%; max-width: 220px; height: auto; display: block; }

  /* Section labels */
  .sb-label {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-dim);
    padding: 0 8px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .sb-label::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
  }

  /* Nav */
  .sb-nav { display: flex; flex-direction: column; gap: 2px; }
  .sb-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 600; font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
  }
  .sb-nav-item:hover { background: var(--surface); color: var(--text); }
  .sb-nav-item.active {
    background: linear-gradient(90deg, var(--accent-cyan-dim), transparent);
    color: var(--accent-cyan);
    box-shadow: inset 2px 0 0 var(--accent-cyan);
  }
  .sb-nav-icon {
    flex-shrink: 0;
    image-rendering: pixelated;
    display: inline-block;
    width: 16px; height: 16px;
  }

  /* Search */
  .sb-search {
    display: flex; align-items: center; gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 12px;
    transition: all 0.15s;
  }
  .sb-search:focus-within {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px var(--accent-cyan-dim);
  }
  .sb-search input {
    flex: 1; background: transparent; border: none; outline: none;
    color: var(--text); padding: 10px 0; font-size: 13px; font-family: var(--font-body);
    width: 100%;
  }
  .sb-search input::placeholder { color: var(--text-dim); }
  .sb-search-icon { color: var(--text-dim); font-size: 14px; }

  /* Subscribe button */
  .sb-subscribe {
    background: linear-gradient(135deg, var(--accent-magenta), var(--accent-cyan));
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 11px 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-transform: uppercase;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 16px rgba(192, 38, 211, 0.4);
  }
  .sb-subscribe:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(192, 38, 211, 0.55); }

  /* Categories list */
  .sb-cats { display: flex; flex-direction: column; gap: 2px; }
  .sb-cat {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
  }
  .sb-cat:hover { background: var(--surface); color: var(--text); }
  .sb-cat-name { display: flex; align-items: center; gap: 9px; }
  .sb-cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .sb-cat-count {
    font-family: var(--font-display); font-weight: 700; font-size: 11px;
    background: var(--surface); padding: 2px 7px; border-radius: 5px;
    color: var(--text-dim);
  }

  /* Social */
  .sb-social { display: flex; gap: 6px; }
  .sb-social a {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    font-family: var(--font-display);
    font-weight: 700;
  }
  .sb-social a:hover { background: var(--accent-cyan); color: var(--bg); border-color: var(--accent-cyan); }

  /* Footer mini */
  .sb-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 10px;
  }
  .sb-footer-links {
    display: flex; flex-wrap: wrap; gap: 0 12px;
  }
  .sb-footer-links a {
    font-size: 11px; color: var(--text-dim); transition: color 0.15s;
  }
  .sb-footer-links a:hover { color: var(--accent-cyan); }
  .sb-copy { font-size: 10px; color: var(--text-dim); }

  /* ───── MOBILE HEADER & BOTTOM NAV (hidden on desktop) ───── */
  .mobile-header { display: none; }
  .mobile-bottom-nav { display: none; }
  .mobile-overlay { display: none; }

  /* ───── MAIN CONTENT ───── */
  .main {
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  /* HERO BG BAND */
  .hero-band {
    position: relative;
    background-image: url("bg-dynasgeek.jpg");
    background-size: cover;
    background-position: center;
    min-height: 320px;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
  }
  .hero-band::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,10,36,0.25) 0%, rgba(15,10,36,0.5) 50%, var(--bg) 100%);
    pointer-events: none;
  }
  .hero-band-inner { position: relative; z-index: 2; max-width: 720px; }
  .hero-tagline {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 36px;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 16px rgba(0,0,0,0.6);
    text-wrap: balance;
  }
  .hero-tagline .glow { color: var(--accent-cyan); text-shadow: 0 0 24px rgba(34,211,238,0.7); }
  .hero-tagline .glow-m { color: var(--accent-magenta); text-shadow: 0 0 24px rgba(192,38,211,0.7); }
  .hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    max-width: 480px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  }

  /* Page wrap */
  .page-wrap {
    padding: 36px 40px 60px;
    max-width: 1400px;
    width: 100%;
  }

  /* Ad banner */
  .ad-zone {
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.02);
    display: flex; align-items: center; justify-content: center; gap: 14px;
    color: var(--text-dim);
  }
  .ad-banner-top {
    min-height: 90px;
    margin-bottom: 36px;
  }
  .ad-zone-label {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
  }
  .ad-zone-size {
    font-family: var(--font-display); font-weight: 700; font-size: 13px; opacity: 0.6;
  }

  /* Section header */
  .section-h {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
  }
  .section-title {
    font-family: var(--font-display);
    font-weight: 800; font-size: 22px;
    letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 12px;
    color: var(--text);
  }
  .section-title-bar {
    width: 4px; height: 22px; border-radius: 2px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-magenta));
  }
  .section-link {
    font-family: var(--font-display); font-weight: 600; font-size: 13px;
    color: var(--accent-cyan); cursor: pointer; display: flex; align-items: center; gap: 4px;
  }
  .section-link:hover { color: var(--accent-magenta); }

  /* ───── HERO GRID (featured posts) ───── */
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    grid-template-rows: auto auto;
    gap: 18px;
    margin-bottom: 48px;
  }
  .hero-main {
    grid-row: 1 / 3;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; flex-direction: column;
  }
  .hero-main:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); border-color: var(--accent-cyan); }
  .hero-img {
    width: 100%; height: 320px; position: relative;
    background: linear-gradient(135deg, #4c1d95 0%, #1e3a8a 50%, #155e75 100%);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
  }
  .hero-img-tag {
    position: absolute; top: 14px; left: 14px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
  }
  .hero-content { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
  .pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-display); font-weight: 700; font-size: 11px;
    padding: 4px 10px; border-radius: 6px;
    letter-spacing: 0.8px; text-transform: uppercase; width: fit-content;
  }
  .pill-ia { background: var(--accent-magenta-dim); color: var(--accent-magenta); }
  .pill-gaming { background: rgba(251,146,60,0.18); color: var(--accent-orange); }
  .pill-tech { background: var(--accent-cyan-dim); color: var(--accent-cyan); }
  .pill-mobile { background: rgba(74,222,128,0.18); color: var(--accent-green); }
  .pill-actu { background: rgba(250,204,21,0.18); color: var(--accent-yellow); }
  .hero-title {
    font-family: var(--font-display);
    font-weight: 800; font-size: 26px; line-height: 1.22; letter-spacing: -0.5px;
    color: var(--text); text-wrap: balance;
  }
  .hero-excerpt {
    color: var(--text-muted); font-size: 14px; line-height: 1.65; flex: 1;
  }
  .hero-meta {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: 12px; color: var(--text-dim); margin-top: 4px;
  }
  .hero-meta .author { font-weight: 600; color: var(--text-muted); }
  .read-more {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-display); font-weight: 700; font-size: 13px;
    color: var(--accent-cyan); margin-top: 4px;
  }

  .hero-secondary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; flex-direction: column;
  }
  .hero-secondary:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); border-color: var(--accent-cyan); }
  .hero-secondary .hero-img { height: 150px; }
  .hero-secondary .hero-content { padding: 14px; gap: 8px; }
  .hero-secondary .hero-title { font-size: 15px; line-height: 1.3; }

  /* ───── CONTENT + RIGHT SIDEBAR ───── */
  .content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
    align-items: start;
  }

  /* Category chips */
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
  .chip {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-family: var(--font-display); font-weight: 600; font-size: 13px;
    cursor: pointer; transition: all 0.15s;
    white-space: nowrap;
  }
  .chip:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
  .chip.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    color: white; border-color: transparent;
  }

  /* Article cards */
  .articles { display: flex; flex-direction: column; gap: 16px; }
  .article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex; overflow: hidden; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  }
  .article-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-cyan);
  }
  .article-thumb {
    width: 200px; flex-shrink: 0;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .article-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
  .article-title {
    font-family: var(--font-display); font-weight: 700; font-size: 17px;
    line-height: 1.3; color: var(--text);
    text-wrap: balance;
  }
  .article-excerpt {
    font-size: 13px; color: var(--text-muted); line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .article-meta {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 12px; color: var(--text-dim); margin-top: auto; padding-top: 6px;
  }
  .article-meta .dot { color: var(--text-dim); opacity: 0.5; }

  /* Load more */
  .load-more-wrap { display: flex; justify-content: center; margin-top: 32px; }
  .btn-load-more {
    background: transparent;
    border: 1.5px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-family: var(--font-display); font-weight: 700; font-size: 14px;
    padding: 12px 28px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex; align-items: center; gap: 8px;
  }
  .btn-load-more:hover {
    background: var(--accent-cyan); color: var(--bg);
    box-shadow: 0 0 20px rgba(34,211,238,0.5);
  }

  /* Right sidebar */
  .sidebar-right { display: flex; flex-direction: column; gap: 20px; }
  .sb-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
  }
  .sb-card-title {
    font-family: var(--font-display); font-weight: 800; font-size: 15px;
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
    color: var(--text);
  }
  .most-read-list { display: flex; flex-direction: column; gap: 14px; }
  .most-read-item { display: flex; gap: 12px; cursor: pointer; transition: opacity 0.15s; }
  .most-read-item:hover { opacity: 0.75; }
  .most-read-num {
    font-family: var(--font-display); font-weight: 800; font-size: 28px;
    line-height: 1; flex-shrink: 0; width: 28px; text-align: right;
    color: var(--text-dim);
  }
  .most-read-num.top {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .most-read-body { flex: 1; min-width: 0; }
  .most-read-title { font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 1.35; color: var(--text); }
  .most-read-meta { font-size: 11px; color: var(--text-dim); margin-top: 3px; }

  /* Tags cloud */
  .tags-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
  .tag {
    background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-muted);
    font-family: var(--font-display); font-weight: 600; font-size: 11px;
    padding: 4px 10px; border-radius: 6px; cursor: pointer; transition: all 0.15s;
  }
  .tag:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

  /* ───── RESPONSIVE: TABLET (768-1024) — narrower sidebar ───── */
  @media (max-width: 1180px) {
    :root { --sidebar-w: 220px; }
    .sb-logo img { max-width: 180px; }
    .hero-grid { grid-template-columns: 1fr 280px; }
    .content-grid { grid-template-columns: 1fr 280px; gap: 24px; }
    .page-wrap { padding: 28px 24px 48px; }
    .hero-band { padding: 36px 24px; }
    .article-thumb { width: 160px; }
  }

  /* ───── RESPONSIVE: TABLET PORTRAIT (768-1024px) ───── */
  @media (max-width: 1024px) {
    .content-grid { grid-template-columns: 1fr; gap: 28px; }
    .sidebar-right {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }
    .sb-card { padding: 18px; }
    .hero-grid {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
    }
    .hero-main { grid-row: auto; }
    .hero-grid-secondaries {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }
  }

  /* ───── RESPONSIVE: MOBILE (<768px) ───── */
  @media (max-width: 767px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar-left { display: none; }
    .mobile-header {
      display: flex;
      position: sticky;
      top: 0;
      z-index: 50;
      height: var(--header-h-mobile);
      background: var(--bg-soft);
      border-bottom: 1px solid var(--border);
      align-items: center;
      justify-content: space-between;
      padding: 0 16px;
      backdrop-filter: blur(12px);
    }
    .mobile-header-btn {
      width: 40px; height: 40px;
      display: flex; align-items: center; justify-content: center;
      background: transparent;
      border: none;
      color: var(--text);
      cursor: pointer;
      font-size: 20px;
    }
    .mobile-logo { height: 36px; width: auto; }
    .main { padding-bottom: calc(var(--footer-h-mobile) + 16px); }
    .mobile-bottom-nav {
      display: flex;
      position: fixed;
      bottom: 0; left: 0; right: 0;
      height: var(--footer-h-mobile);
      background: var(--bg-soft);
      border-top: 1px solid var(--border);
      align-items: stretch;
      z-index: 50;
      backdrop-filter: blur(12px);
    }
    .mobile-nav-item {
      flex: 1;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 3px;
      color: var(--text-dim);
      cursor: pointer;
      font-family: var(--font-display); font-weight: 600; font-size: 10px;
      transition: color 0.15s;
    }
    .mobile-nav-item.active { color: var(--accent-cyan); }
    .mobile-nav-item .ico {
      width: 22px; height: 22px;
      display: flex; align-items: center; justify-content: center;
      font-size: 18px;
    }
    .mobile-nav-item.subscribe {
      background: linear-gradient(135deg, var(--accent-magenta), var(--accent-cyan));
      color: white; margin: 8px;
      border-radius: 12px;
      flex: 0 0 80px;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.5px;
    }

    /* Mobile slide-out menu */
    .mobile-overlay {
      display: block;
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(4px);
      z-index: 99;
      opacity: 0; pointer-events: none;
      transition: opacity 0.25s;
    }
    .mobile-overlay.open { opacity: 1; pointer-events: auto; }
    .mobile-drawer {
      position: fixed; top: 0; left: 0; bottom: 0;
      width: 280px;
      background: var(--bg-soft);
      z-index: 100;
      padding: 20px;
      overflow-y: auto;
      transform: translateX(-100%);
      transition: transform 0.25s;
      display: flex; flex-direction: column; gap: 18px;
    }
    .mobile-overlay.open + .mobile-drawer,
    .mobile-drawer.open { transform: translateX(0); }

    .hero-band {
      min-height: 200px;
      padding: 24px 20px;
    }
    .hero-tagline { font-size: 24px; }
    .hero-sub { font-size: 13px; }
    .page-wrap { padding: 20px 16px 24px; }
    .ad-banner-top { min-height: 70px; }
    .hero-grid { grid-template-columns: 1fr; gap: 14px; }
    .hero-grid-secondaries { grid-template-columns: 1fr; }
    .hero-main .hero-img, .hero-secondary .hero-img { height: 180px; }
    .hero-title { font-size: 20px; }
    .hero-content { padding: 16px; }
    .article-card { flex-direction: column; }
    .article-thumb { width: 100%; height: 160px; }
    .article-title { font-size: 15px; }
    .sidebar-right { grid-template-columns: 1fr; }
    .section-title { font-size: 18px; }
  }

  /* Hide drawer on desktop */
  @media (min-width: 768px) {
    .mobile-drawer { display: none; }
  }


/* ───── SINGLE ARTICLE STYLES ───── */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  z-index: 999; width: 0%; transition: width 0.1s linear;
}

.breadcrumb {
  max-width: 1400px; margin: 0 auto;
  padding: 20px 40px 0;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 12px; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-cyan); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--text); font-weight: 600; }

.article-wrapper {
  max-width: 1400px; margin: 0 auto;
  padding: 24px 40px 60px;
  display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start;
}
.article-main { min-width: 0; }

.article-header { margin-bottom: 32px; }
.article-category-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-magenta-dim); color: var(--accent-magenta);
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  padding: 5px 12px; border-radius: 6px; text-transform: uppercase;
  letter-spacing: 0.8px; margin-bottom: 16px; text-decoration: none;
}
.article-title {
  font-family: var(--font-display); font-weight: 800; font-size: 38px;
  line-height: 1.15; letter-spacing: -1px; color: var(--text);
  margin-bottom: 16px; text-wrap: balance;
}
.article-excerpt {
  font-size: 18px; color: var(--text-muted); line-height: 1.65;
  margin-bottom: 24px; font-style: italic;
  border-left: 3px solid var(--accent-cyan); padding-left: 16px;
}
.article-meta-bar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 16px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.author-block { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  color: white; flex-shrink: 0;
}
.author-avatar-has-img { padding: 0; background: none; overflow: hidden; }
.author-avatar-has-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.author-name { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.author-role { font-size: 12px; color: var(--text-muted); }
.meta-divider { width: 1px; height: 32px; background: var(--border); }
.meta-item { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.meta-item strong { color: var(--text); font-weight: 600; }

.share-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.share-label {
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px;
}
.share-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); font-family: var(--font-display); font-weight: 600;
  font-size: 12px; color: var(--text-muted); cursor: pointer; transition: all 0.15s;
  text-decoration: none;
}
.share-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.article-hero-img-wrap {
  position: relative;
  border-radius: 16px; overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}
.article-hero-img { width: 100%; height: auto; display: block; }
.article-hero-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  font-size: 12px; color: rgba(255,255,255,0.75); font-style: italic;
}

.article-body { font-size: 16px; line-height: 1.78; color: var(--text); }
.article-body h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 26px;
  letter-spacing: -0.4px; margin: 44px 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.article-body h2::before {
  content: ''; display: block; width: 4px; height: 24px;
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-magenta));
  border-radius: 2px; flex-shrink: 0;
}
.article-body h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  margin: 28px 0 12px;
}
.article-body p { margin-bottom: 20px; text-wrap: pretty; }
.article-body strong { font-weight: 700; color: var(--text); }
.article-body em { font-style: italic; color: var(--text-muted); }
.article-body a {
  color: var(--accent-cyan); text-decoration: underline;
  text-decoration-color: rgba(34,211,238,0.3);
  text-underline-offset: 3px;
}
.article-body a:hover { text-decoration-color: var(--accent-cyan); }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 24px 0; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--accent-cyan);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px; margin: 28px 0;
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  line-height: 1.45;
}
.article-body code {
  background: var(--surface); padding: 2px 7px;
  border-radius: 4px; font-size: 0.92em;
  color: var(--accent-cyan);
}
.article-body pre {
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 16px 20px; border-radius: 10px; overflow-x: auto;
  margin: 24px 0;
}
.article-body pre code { background: none; color: var(--text); padding: 0; }
.article-body table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
  background: var(--surface); border-radius: 12px; overflow: hidden;
  font-size: 14px;
}
.article-body table th, .article-body table td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.article-body table th {
  background: var(--bg-soft);
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
}

.article-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 36px 0 0; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-tag {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-muted);
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  padding: 5px 12px; border-radius: 7px; text-decoration: none;
  transition: all 0.15s;
}
.article-tag:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.author-bio {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; margin-top: 40px;
  display: flex; gap: 20px; align-items: flex-start;
}
.author-bio-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 22px; color: white;
}
.author-bio-avatar-has-img { background: none; overflow: hidden; }
.author-bio-avatar-has-img img { width: 100%; height: 100%; object-fit: cover; }
.author-bio-name { font-family: var(--font-display); font-weight: 800; font-size: 17px; margin-bottom: 4px; }
.author-bio-role { font-size: 13px; color: var(--accent-cyan); font-weight: 600; margin-bottom: 10px; }
.author-bio-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.related-section { margin-top: 48px; }
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 20px;
}
.related-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: all 0.2s; text-decoration: none; display: block;
}
.related-card:hover { transform: translateY(-3px); border-color: var(--accent-cyan); box-shadow: var(--shadow-glow); }
.related-thumb {
  height: 120px;
  background: linear-gradient(135deg, #4c1d95, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-thumb .thumb-placeholder {
  font-family: 'Courier New', monospace; font-size: 10px;
  color: rgba(255,255,255,0.3); letter-spacing: 1px;
}
.related-body { padding: 14px; }
.related-badge {
  font-family: var(--font-display); font-weight: 700; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 6px;
  color: var(--accent-cyan);
}
.related-title {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  line-height: 1.35; margin-bottom: 8px; color: var(--text);
}
.related-meta { font-size: 12px; color: var(--text-dim); }

/* ───── ARCHIVE / SEARCH HEADER ───── */
.archive-header {
  padding: 36px 0 28px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.archive-eyebrow {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent-cyan); margin-bottom: 8px;
}
.archive-title {
  font-family: var(--font-display); font-weight: 800; font-size: 32px;
  letter-spacing: -0.8px; color: var(--text);
  text-wrap: balance; margin-bottom: 10px;
}
.archive-description {
  color: var(--text-muted); font-size: 15px; max-width: 700px;
}
.glow { color: var(--accent-cyan); }

/* Pagination */
.pagination-wrap { margin-top: 36px; display: flex; justify-content: center; }
.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.page-numbers {
  padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  text-decoration: none; transition: all 0.15s;
}
.page-numbers:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.page-numbers.current {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  color: white; border-color: transparent;
}

/* ───── 404 ───── */
.error-404 { text-align: center; padding: 80px 20px; max-width: 600px; margin: 0 auto; }
.error-404-code {
  font-family: var(--font-display); font-weight: 800; font-size: 120px;
  line-height: 1; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -4px; margin-bottom: 10px;
}
.error-404-title { font-family: var(--font-display); font-weight: 800; font-size: 28px; margin-bottom: 14px; }
.error-404-desc { color: var(--text-muted); margin-bottom: 24px; }
.error-404-actions { margin-bottom: 32px; }
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-cyan));
  color: white; font-family: var(--font-display); font-weight: 700;
  padding: 12px 28px; border-radius: 10px; text-decoration: none;
  letter-spacing: 0.3px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(192,38,211,0.4); }

/* ───── SEARCH FORM ───── */
.search-form-inner {
  display: flex; align-items: center; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  max-width: 480px; margin: 0 auto;
}
.search-form-icon { padding: 0 12px; color: var(--text-muted); }
.search-form input[type="search"] {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); padding: 12px 0; font-size: 14px;
}
.search-form-btn {
  background: var(--accent-cyan); color: var(--bg);
  border: none; padding: 12px 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  cursor: pointer;
}

/* ───── PAGE TEMPLATE ───── */
.page-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.page-title {
  font-family: var(--font-display); font-weight: 800; font-size: 32px;
  letter-spacing: -0.8px;
}
.page-featured img {
  width: 100%; border-radius: 16px; margin-bottom: 32px;
}
.page-content { max-width: 760px; margin: 0 auto; padding: 0 40px; }

/* ───── COMMENTS ───── */
.comments-wrap { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.comments-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; }

/* ───── ADMIN BAR ADJUST ───── */
.admin-bar .sidebar-left { top: 32px; height: calc(100vh - 32px); }
.admin-bar .mobile-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .sidebar-left { top: 46px; height: calc(100vh - 46px); }
  .admin-bar .mobile-header { top: 46px; }
}

/* ───── RESPONSIVE TWEAKS ───── */
@media (max-width: 1180px) {
  .article-wrapper { grid-template-columns: 1fr 280px; gap: 24px; padding: 24px; }
  .article-title { font-size: 32px; }
  .breadcrumb { padding: 16px 24px 0; }
}
@media (max-width: 1024px) {
  .article-wrapper { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .article-wrapper { padding: 16px 16px 40px; gap: 24px; }
  .article-title { font-size: 24px; }
  .article-excerpt { font-size: 15px; padding-left: 12px; }
  .article-meta-bar { gap: 12px; padding: 12px 0; }
  .meta-divider { display: none; }
  .breadcrumb { padding: 12px 16px 0; font-size: 11px; }
  .article-body h2 { font-size: 21px; margin-top: 32px; }
  .article-body { font-size: 15px; }
  .related-grid { grid-template-columns: 1fr; }
  .archive-header { padding: 24px 0 20px; }
  .archive-title { font-size: 22px; }
  .error-404-code { font-size: 80px; }
  .page-content { padding: 0 16px; }
}

/* ───── SCREEN READER ───── */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute;
  width: 1px; word-wrap: normal;
}

/* ───── WIDGET COMMON ───── */
.widget { /* widgets use sb-card already */ }
.widget ul { list-style: none; padding: 0; }
.widget ul li {
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.widget ul li:last-child { border-bottom: none; }
.widget a { color: var(--text-muted); text-decoration: none; }
.widget a:hover { color: var(--accent-cyan); }
.ad-zone-widget { width: 100%; }


/* ───── WP_NAV_MENU NATIVE OUTPUT COMPATIBILITY ───── */
/* Style the UL > LI > A output from wp_nav_menu to match .sb-nav-item styling */
.sb-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.sb-nav > li { list-style: none; }
.sb-nav > li > a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.sb-nav > li > a:hover { background: var(--surface); color: var(--text); }
.sb-nav > li.current-menu-item > a,
.sb-nav > li.current_page_item > a {
  background: linear-gradient(90deg, var(--accent-cyan-dim), transparent);
  color: var(--accent-cyan);
  box-shadow: inset 2px 0 0 var(--accent-cyan);
}

/* Mobile bottom nav from wp_nav_menu */
.mobile-nav-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; width: 100%; height: 100%;
}
.mobile-nav-list > li {
  flex: 1; list-style: none;
  display: flex;
}
.mobile-nav-list > li > a {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 10px;
  padding: 4px;
}
.mobile-nav-list > li.current-menu-item > a { color: var(--accent-cyan); }

/* Footer links from wp_nav_menu */
.sb-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 12px; }
.sb-footer-links > li { list-style: none; }
.sb-footer-links > li > a {
  font-size: 11px; color: var(--text-dim); text-decoration: none; transition: color 0.15s;
}
.sb-footer-links > li > a:hover { color: var(--accent-cyan); }
