/*
Theme Name: No Agent Travel Guide
Theme URI: https://noagenttravelguide.com
Author: No Agent Travel Guide
Author URI: https://noagenttravelguide.com
Description: Editorial WordPress theme for visa-intelligence content. Dark/light toggle, lime accent, DM Mono + Sora typography. Includes branded article (single.php) layout, category archives, ticker, newsletter band, and floating WhatsApp CTA.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: noagent
Tags: blog, two-columns, custom-menu, featured-images, threaded-comments, translation-ready, editor-style, full-site-editing
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[data-theme="dark"] {
  --bg: #111318; --bg2: #181c22; --bg3: #1f2530; --card: #161b24;
  --lime: #d4f53c; --lime-dim: rgba(212,245,60,0.10); --lime-border: rgba(212,245,60,0.25);
  --lime-text: #d4f53c;
  --white: #ffffff; --text: #f0f3f8; --muted: #b0b8c4; --dim: #7a8494;
  --border: rgba(255,255,255,0.08); --border2: rgba(255,255,255,0.14);
  --nav-bg: rgba(17,19,24,0.94);
  --toggle-bg: #1e2430; --toggle-border: rgba(255,255,255,0.14);
  --tag-bg: rgba(255,255,255,0.06); --tag-text: #b0b8c4;
  --featured-overlay: linear-gradient(to top, rgba(17,19,24,0.97) 0%, rgba(17,19,24,0.6) 55%, transparent 100%);
  --shadow: 0 24px 48px rgba(0,0,0,0.45);
  --rule: rgba(255,255,255,0.07);
  --hero-glow: rgba(212,245,60,0.07); --grid-line: rgba(255,255,255,0.05);
}
[data-theme="light"] {
  --bg: #f6f7f2; --bg2: #eef0e8; --bg3: #e4e8d8; --card: #ffffff;
  --lime: #5a7a00; --lime-dim: rgba(90,122,0,0.08); --lime-border: rgba(90,122,0,0.2);
  --lime-text: #4a6800;
  --white: #111111; --text: #1a1a1a; --muted: #444d38; --dim: #7a8060;
  --border: rgba(0,0,0,0.07); --border2: rgba(0,0,0,0.13);
  --nav-bg: rgba(246,247,242,0.94);
  --toggle-bg: #e4e8d8; --toggle-border: rgba(0,0,0,0.12);
  --tag-bg: rgba(0,0,0,0.05); --tag-text: #444d38;
  --featured-overlay: linear-gradient(to top, rgba(246,247,242,0.97) 0%, rgba(246,247,242,0.55) 55%, transparent 100%);
  --shadow: 0 24px 48px rgba(0,0,0,0.10);
  --rule: rgba(0,0,0,0.08);
  --hero-glow: rgba(90,122,0,0.05); --grid-line: rgba(0,0,0,0.05);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Sora', sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
a { color: var(--lime-text); }
img { max-width: 100%; height: auto; display: block; }

/* ---------- NAV ---------- */
nav.ng {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 6%; display: flex; align-items: center; justify-content: space-between; height: 64px;
  transition: background 0.3s, border-color 0.3s;
}
.nav-logo { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 18px; color: var(--white); letter-spacing: -0.02em; text-decoration: none; }
.nav-logo span { color: var(--lime-text); }
.nav-center { display: flex; align-items: center; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-center ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-link, .nav-center a {
  color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: 6px; transition: color 0.2s, background 0.2s;
  background: none; border: none; cursor: pointer; font-family: inherit; display: inline-block;
}
.nav-link:hover, .nav-center a:hover { color: var(--text); background: var(--border); }
.nav-link.active, .nav-center .current-menu-item > a { color: var(--lime-text); background: var(--lime-dim); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: flex; align-items: center;
  background: var(--toggle-bg); border: 1px solid var(--toggle-border);
  border-radius: 8px; padding: 3px; transition: all 0.3s; cursor: pointer;
}
.toggle-opt {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 26px; border-radius: 6px; font-size: 13px;
  transition: background 0.2s; user-select: none;
}
[data-theme="dark"]  .toggle-dark  { background: var(--border2); }
[data-theme="light"] .toggle-light { background: var(--border2); }
.nav-btn {
  background: var(--lime); color: #000; padding: 8px 18px; border-radius: 8px;
  text-decoration: none; font-size: 13px; font-weight: 700;
  transition: opacity 0.2s, transform 0.15s; border: none; cursor: pointer; font-family: inherit;
}
.nav-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ---------- MASTHEAD ---------- */
.masthead-outer { position: relative; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--rule); }
.masthead-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 100% at 20% 50%, black 0%, transparent 72%);
}
.masthead-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 520px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow) 0%, transparent 70%);
  top: -80px; left: -60px;
}
.masthead { padding: 52px 6% 48px; max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.masthead-top { display: flex; align-items: flex-end; justify-content: space-between; }
.masthead-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime-text);
  margin-bottom: 10px; display: block;
}
.masthead-title { font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -0.04em; color: var(--white); line-height: 1.05; }
.masthead-title span { color: var(--lime-text); }
.masthead-sub { font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.7; margin-top: 10px; max-width: 400px; }
.masthead-stat { text-align: right; }
.stat-num { font-family: 'DM Mono', monospace; font-size: 42px; font-weight: 500; color: var(--lime-text); line-height: 1; letter-spacing: -0.03em; }
.stat-label { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); display: block; margin-top: 4px; }

/* ---------- FILTER ---------- */
.filter-bar { padding: 0 6%; max-width: 1200px; margin: 0 auto; }
.filter-inner {
  display: flex; align-items: center; gap: 6px;
  padding: 16px 0; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--rule);
}
.filter-inner::-webkit-scrollbar { display: none; }
.filter-pill {
  flex-shrink: 0; padding: 6px 16px; border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  border: 1px solid var(--border2); color: var(--muted);
  background: none; cursor: pointer; font-family: 'Sora', sans-serif;
  transition: all 0.2s; white-space: nowrap; text-decoration: none;
}
.filter-pill:hover { color: var(--text); border-color: var(--border2); background: var(--bg3); }
.filter-pill.active { background: var(--lime-dim); color: var(--lime-text); border-color: var(--lime-border); }

/* ---------- POSTS ---------- */
.posts-wrap { padding: 32px 6% 0; max-width: 1200px; margin: 0 auto; }
.posts-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.posts-label { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.posts-count { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--dim); letter-spacing: 0.06em; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, background 0.3s;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.post-card:hover { border-color: var(--lime-border); transform: translateY(-3px); }
.post-thumb {
  width: 100%; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  position: relative; display: flex; align-items: center; justify-content: center; font-size: 48px;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-cat {
  position: absolute; top: 10px; left: 10px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #000; background: var(--lime); padding: 3px 10px; border-radius: 100px;
  text-decoration: none;
}
.post-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.post-meta {
  font-family: 'DM Mono', monospace; font-size: 10px; color: var(--dim);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.post-title { font-size: 15px; font-weight: 700; color: var(--white); letter-spacing: -0.02em; line-height: 1.35; margin-bottom: 10px; flex: 1; }
.post-excerpt { font-size: 12px; color: var(--muted); line-height: 1.65; font-weight: 300; margin-bottom: 16px; }
.post-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.post-author { display: flex; align-items: center; gap: 8px; }
.author-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--lime-dim); border: 1px solid var(--lime-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--lime-text); flex-shrink: 0;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 11px; font-weight: 600; color: var(--muted); }
.post-read-time { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--dim); }

/* ---------- NEWSLETTER ---------- */
.newsletter-band { padding: 52px 6%; max-width: 1200px; margin: 40px auto 0; }
.nl-card {
  background: var(--card); border: 1px solid var(--lime-border);
  border-radius: 16px; padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  position: relative; overflow: hidden;
}
.nl-card::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, var(--lime-dim) 0%, transparent 70%);
  pointer-events: none;
}
[data-theme="dark"] .nl-card { background: #0f1a08; }
[data-theme="light"] .nl-card { background: var(--bg2); }
.nl-eyebrow { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime-text); margin-bottom: 8px; }
.nl-title { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; color: var(--white); line-height: 1.2; margin-bottom: 6px; }
.nl-sub { font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.65; }
.nl-form { display: flex; gap: 10px; align-items: center; flex-shrink: 0; position: relative; z-index: 1; }
.nl-input {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 10px; padding: 12px 18px;
  font-family: 'Sora', sans-serif; font-size: 14px; color: var(--text);
  outline: none; width: 240px; transition: border-color 0.2s;
}
.nl-input::placeholder { color: var(--dim); }
.nl-input:focus { border-color: var(--lime-border); }
.nl-btn {
  background: var(--lime); color: #000; padding: 12px 22px; border-radius: 10px;
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; white-space: nowrap; transition: opacity 0.2s, transform 0.15s;
}
.nl-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ---------- TOPICS ---------- */
.topics-wrap { padding: 0 6% 40px; max-width: 1200px; margin: 0 auto; }
.topics-label { font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); display: block; margin-bottom: 16px; margin-top: 40px; }
.topics-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.topic-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 14px;
  cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.2s;
  text-align: center; text-decoration: none;
}
.topic-card:hover { border-color: var(--lime-border); background: var(--lime-dim); transform: translateY(-2px); }
.topic-icon { font-size: 20px; display: block; margin-bottom: 8px; }
.topic-name { font-size: 11px; font-weight: 700; color: var(--white); letter-spacing: -0.01em; display: block; }
.topic-count { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--dim); margin-top: 3px; display: block; }

/* ---------- TICKER ---------- */
.ticker-bar { background: var(--bg2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 0; overflow: hidden; position: relative; margin-bottom: 40px; }
.ticker-label {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; padding: 0 20px 0 6%;
  background: var(--lime); color: #000;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: 'DM Mono', monospace; white-space: nowrap;
}
.ticker-track { display: flex; gap: 0; animation: ticker 40s linear infinite; padding-left: calc(6% + 120px); }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { display: flex; align-items: center; gap: 32px; font-size: 12px; color: var(--muted); white-space: nowrap; padding-right: 60px; text-decoration: none; }
.ticker-item::before { content: '—'; color: var(--lime-text); margin-right: 12px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- LOAD MORE / PAGINATION ---------- */
.load-more-wrap { text-align: center; padding: 40px 6% 64px; }
.load-more-btn, .pagination a, .pagination span {
  background: transparent; color: var(--text);
  border: 1px solid var(--border2); padding: 13px 22px; border-radius: 10px;
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-decoration: none; display: inline-block; margin: 0 4px;
}
.load-more-btn:hover, .pagination a:hover { border-color: var(--lime-border); color: var(--lime-text); background: var(--lime-dim); }
.pagination .current { background: var(--lime-dim); color: var(--lime-text); border-color: var(--lime-border); }

/* ---------- FOOTER ---------- */
footer.fg {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 28px 6%;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--dim); }
.footer-links { display: flex; gap: 20px; list-style: none; padding: 0; margin: 0; }
.footer-links a { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--dim); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--lime-text); }

/* ---------- WHATSAPP FLOAT ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: transform 0.2s;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); animation: none; }
.wa-float svg { width: 26px; height: 26px; }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 16px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 4px 28px rgba(37,211,102,0.8), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ---------- SEARCH ---------- */
.search-bar {
  display: flex; align-items: center;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 10px; padding: 10px 16px; gap: 10px;
  transition: border-color 0.2s; width: 220px;
}
.search-bar:focus-within { border-color: var(--lime-border); }
.search-bar form { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; }
.search-bar button { background: none; border: none; color: var(--dim); cursor: pointer; padding: 0; font-size: 14px; }
.search-icon { color: var(--dim); font-size: 14px; flex-shrink: 0; }
.search-input {
  background: none; border: none; outline: none;
  font-family: 'Sora', sans-serif; font-size: 13px; color: var(--text); width: 100%;
}
.search-input::placeholder { color: var(--dim); }

/* ---------- SINGLE ARTICLE ---------- */
.article-outer { background: var(--bg); }
.article-hero {
  position: relative; max-width: 1200px; margin: 0 auto;
  padding: 56px 6% 32px;
}
.article-hero-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime-text);
  margin-bottom: 14px; display: flex; gap: 10px; align-items: center;
}
.article-hero-eyebrow a { color: var(--lime-text); text-decoration: none; }
.article-hero h1 {
  font-size: clamp(28px, 4.2vw, 54px); font-weight: 800;
  letter-spacing: -0.035em; color: var(--white); line-height: 1.08;
  max-width: 900px; margin-bottom: 20px;
}
.article-hero-sub { font-size: 17px; color: var(--muted); font-weight: 300; line-height: 1.6; max-width: 760px; margin-bottom: 28px; }
.article-meta-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--rule);
}
.article-author { display: flex; align-items: center; gap: 10px; }
.article-author .author-avatar { width: 36px; height: 36px; font-size: 13px; }
.article-author-name { font-size: 13px; font-weight: 700; color: var(--text); }
.article-author-role { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--dim); letter-spacing: 0.06em; text-transform: uppercase; }
.article-meta-dot { color: var(--dim); }
.article-meta-row time, .article-read-time {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--dim); letter-spacing: 0.06em; text-transform: uppercase;
}

.article-cover {
  max-width: 1200px; margin: 0 auto 40px; padding: 0 6%;
}
.article-cover-inner {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 16/8; background: linear-gradient(135deg, var(--bg3), var(--bg2));
  display: flex; align-items: center; justify-content: center; font-size: 96px;
}
.article-cover-inner img { width: 100%; height: 100%; object-fit: cover; }

.article-body-wrap {
  max-width: 760px; margin: 0 auto; padding: 0 6% 56px;
  font-size: 17px; line-height: 1.8; color: var(--text); font-weight: 300;
}
.article-body-wrap h2 {
  font-size: 28px; font-weight: 800; letter-spacing: -0.025em;
  color: var(--white); line-height: 1.2; margin: 40px 0 16px;
}
.article-body-wrap h3 {
  font-size: 21px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--white); line-height: 1.3; margin: 32px 0 12px;
}
.article-body-wrap h4 { font-size: 17px; font-weight: 700; color: var(--white); margin: 24px 0 10px; }
.article-body-wrap p { margin-bottom: 20px; }
.article-body-wrap a { color: var(--lime-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body-wrap ul, .article-body-wrap ol { margin: 0 0 22px 22px; }
.article-body-wrap li { margin-bottom: 8px; }
.article-body-wrap blockquote {
  border-left: 3px solid var(--lime);
  padding: 6px 0 6px 22px;
  margin: 28px 0; color: var(--text);
  font-size: 19px; font-style: italic; font-weight: 400;
  background: var(--lime-dim); border-radius: 0 8px 8px 0;
  padding: 18px 22px;
}
.article-body-wrap img { border-radius: 10px; margin: 24px 0; border: 1px solid var(--border); }
.article-body-wrap code {
  font-family: 'DM Mono', monospace; font-size: 14px;
  background: var(--bg3); padding: 2px 6px; border-radius: 4px;
}
.article-body-wrap pre {
  background: var(--bg2); border: 1px solid var(--border);
  padding: 18px; border-radius: 10px; overflow-x: auto;
  font-family: 'DM Mono', monospace; font-size: 13px; margin: 22px 0;
}
.article-body-wrap hr { border: 0; border-top: 1px solid var(--rule); margin: 36px 0; }

.article-tags { max-width: 760px; margin: 0 auto; padding: 0 6% 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.article-tag {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  background: var(--tag-bg); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 100px; text-decoration: none;
}
.article-tag:hover { color: var(--lime-text); border-color: var(--lime-border); }

.article-share {
  max-width: 760px; margin: 0 auto; padding: 24px 6% 40px;
  display: flex; align-items: center; gap: 14px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.share-label { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border2); color: var(--muted);
  text-decoration: none; transition: all 0.2s;
}
.share-btn:hover { color: var(--lime-text); border-color: var(--lime-border); background: var(--lime-dim); }
.share-btn svg { width: 14px; height: 14px; }

.author-bio-card {
  max-width: 760px; margin: 32px auto; padding: 28px;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  display: flex; gap: 18px;
}
.author-bio-card .author-avatar { width: 56px; height: 56px; font-size: 20px; flex-shrink: 0; }
.author-bio-body h4 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.author-bio-body .role { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; display: block; }
.author-bio-body p { font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.65; }

.related-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 6% 60px; }
.related-wrap .topics-label { margin-top: 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.post-nav {
  max-width: 1200px; margin: 0 auto; padding: 24px 6%;
  display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--rule);
}
.post-nav a {
  flex: 1; padding: 18px 22px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); text-decoration: none; color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.post-nav a:hover { border-color: var(--lime-border); background: var(--lime-dim); }
.post-nav .nav-dir { font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); display: block; margin-bottom: 6px; }
.post-nav .nav-title { font-size: 13px; font-weight: 700; color: var(--white); line-height: 1.4; }
.post-nav a.next { text-align: right; }

/* Comments */
.comments-area { max-width: 760px; margin: 0 auto; padding: 32px 6% 60px; }
.comments-area h3 { font-size: 18px; font-weight: 800; color: var(--white); margin-bottom: 20px; letter-spacing: -0.02em; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list li { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--border2); border-radius: 10px;
  padding: 12px 16px; font-family: 'Sora', sans-serif; font-size: 14px; color: var(--text);
  margin-bottom: 12px;
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit, .comment-form input[type="submit"] {
  background: var(--lime); color: #000; padding: 12px 22px; border-radius: 10px;
  font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; border: none; cursor: pointer;
}

/* ---------- 404 ---------- */
.error-404 { max-width: 720px; margin: 80px auto; padding: 0 6%; text-align: center; }
.error-404 .code { font-family: 'DM Mono', monospace; color: var(--lime-text); font-size: 14px; letter-spacing: 0.18em; }
.error-404 h1 { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; color: var(--white); margin: 12px 0 14px; }
.error-404 p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .nav-center { display: none; }
  .masthead-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .masthead-stat { text-align: left; }
  .posts-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .topics-grid { grid-template-columns: repeat(3, 1fr); }
  .nl-card { flex-direction: column; align-items: flex-start; }
  .nl-form { width: 100%; }
  .nl-input { flex: 1; width: auto; min-width: 0; }
  .search-bar { display: none; }
  .post-nav { flex-direction: column; }
  .post-nav a.next { text-align: left; }
}
@media (max-width: 600px) {
  nav.ng { padding: 0 4%; }
  .masthead, .filter-bar, .posts-wrap, .newsletter-band, .topics-wrap,
  .article-hero, .article-cover, .article-body-wrap, .article-tags, .article-share,
  .related-wrap, .post-nav, .comments-area, .author-bio-card { padding-left: 4%; padding-right: 4%; }
  .posts-grid, .related-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .ticker-label { display: none; }
  .ticker-track { padding-left: 4%; }
  .article-hero h1 { font-size: 32px; }
  .article-body-wrap { font-size: 16px; }
}

/* WP core alignment + screen reader */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--dim); text-align: center; margin-top: 6px; }
.sticky { /* placeholder for sticky posts */ }
.bypostauthor { /* placeholder */ }

/* Final CTA band */
.final-cta { padding: 96px 24px; text-align: center; border-top: 1px solid var(--rule); background: var(--bg2); }
.final-cta-inner { max-width: 760px; margin: 0 auto; }
.final-cta-eyebrow { font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime-text); margin-bottom: 18px; }
.final-cta-title { font-size: clamp(36px, 6vw, 64px); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; color: var(--text); margin-bottom: 22px; }
.final-cta-sub { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 560px; margin: 0 auto 32px; }
.final-cta-btn { display: inline-block; padding: 16px 32px; background: var(--lime); color: #111318; font-weight: 600; font-size: 15px; border-radius: 999px; text-decoration: none; transition: transform .15s ease, opacity .15s ease; }
.final-cta-btn:hover { transform: translateY(-1px); opacity: 0.92; }
.fg .footer-copy a { color: var(--lime-text); text-decoration: none; }
.fg .footer-copy a:hover { text-decoration: underline; }
