/*
Theme Name: Networking Signal
Theme URI: http://localhost:10046/
Author: Networking Signal
Description: A clean, Swiss-minimal custom theme for Networking Signal — a networking & IT knowledge base. Search-first homepage, editorial article grids, precise typography and a restrained neutral+blue palette. Content-safe.
Version: 2.1.0
Requires at least: 6.0
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: networking-signal
Tags: blog, technology, custom-logo, custom-menu, featured-images, two-columns, right-sidebar, translation-ready
*/

/* ==========================================================================
   1. Tokens — restrained, professional
   ========================================================================== */
:root {
  --blue:       #2563EB;
  --blue-600:   #1D4ED8;
  --blue-700:   #1E40AF;
  --blue-50:    #EFF6FF;
  --blue-100:   #DBEAFE;

  --ink:        #0F172A;   /* slate-900 */
  --ink-2:      #1E293B;   /* slate-800 */
  --body:       #475569;   /* slate-600 */
  --muted:      #94A3B8;   /* slate-400 */
  --line:       #E2E8F0;   /* slate-200 */
  --line-2:     #F1F5F9;   /* slate-100 */
  --surface:    #FFFFFF;
  --bg:         #FFFFFF;
  --bg-2:       #F8FAFC;   /* slate-50 */

  --font-display: 'Exo', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'Roboto Mono', ui-monospace, Consolas, monospace;

  --wrap: 1160px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 16px rgba(15,23,42,.05);
  --shadow-lg: 0 8px 40px rgba(15,23,42,.10);
  --ease: cubic-bezier(.4,0,.2,1);
  --dur: .2s;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16.5px; line-height: 1.65;
  color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--blue-700); }
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1.1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 15px; padding: 11px 22px; border-radius: var(--r-sm); cursor: pointer; border: 1px solid transparent; transition: all var(--dur) var(--ease); line-height: 1.2; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-600); color: #fff; }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--text { padding: 0; background: none; color: var(--blue); font-weight: 600; }
.btn--text:hover { color: var(--blue-700); gap: 11px; }
.btn svg { width: 16px; height: 16px; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }

/* Header overlays the dark hero/sub-hero (transparent), then turns solid on scroll.
   Applies on the homepage AND on any page with a dark sub-hero (.has-subhero). */
.home .site-header, .has-subhero .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.home .site-header .site-title-text, .has-subhero .site-header .site-title-text { color: #fff; }
.home .site-header .site-title-text b, .has-subhero .site-header .site-title-text b { color: #7DD3FC; }
.home .primary-nav a, .has-subhero .primary-nav a { color: #CBD5E1; }
.home .primary-nav a:hover, .home .primary-nav .current-menu-item > a,
.has-subhero .primary-nav a:hover, .has-subhero .primary-nav .current-menu-item > a { background: rgba(255,255,255,.1); color: #fff; }
.home .header-search, .has-subhero .header-search { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #E2E8F0; }
.home .header-search:hover, .has-subhero .header-search:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.home .nav-toggle, .has-subhero .nav-toggle { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.home .nav-toggle span, .has-subhero .nav-toggle span { background: #fff; }
/* Reserve space so the fixed header doesn't cover content */
.home .hero { padding-top: clamp(120px, 12vw, 190px); }

/* Scrolled state (JS adds .is-scrolled) → solid white header with dark text */
.home .site-header.is-scrolled, .has-subhero .site-header.is-scrolled { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px); border-bottom-color: var(--line); }
.home .site-header.is-scrolled .site-title-text, .has-subhero .site-header.is-scrolled .site-title-text { color: var(--ink); }
.home .site-header.is-scrolled .site-title-text b, .has-subhero .site-header.is-scrolled .site-title-text b { color: var(--blue); }
.home .site-header.is-scrolled .primary-nav a, .has-subhero .site-header.is-scrolled .primary-nav a { color: var(--body); }
.home .site-header.is-scrolled .primary-nav a:hover, .has-subhero .site-header.is-scrolled .primary-nav a:hover { background: var(--bg-2); color: var(--ink); }
.home .site-header.is-scrolled .header-search, .has-subhero .site-header.is-scrolled .header-search { background: var(--bg-2); border-color: var(--line); color: var(--body); }
.home .site-header.is-scrolled .nav-toggle, .has-subhero .site-header.is-scrolled .nav-toggle { background: var(--bg-2); border-color: var(--line); }
.home .site-header.is-scrolled .nav-toggle span, .has-subhero .site-header.is-scrolled .nav-toggle span { background: var(--ink); }
.home .site-header .site-branding img, .has-subhero .site-header .site-branding img { filter: brightness(0) invert(1); transition: filter var(--dur) var(--ease); }
.home .site-header.is-scrolled .site-branding img, .has-subhero .site-header.is-scrolled .site-branding img { filter: none; }

/* --- Sub-hero: compact dark banner for pages / archives / search --- */
.sub-hero { position: relative; background: linear-gradient(180deg, #0B1220 0%, #0F172A 60%, #111C33 100%); color: #fff; overflow: hidden; padding: clamp(110px, 13vw, 170px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid #1E293B; }
.sub-hero::before { content: ""; position: absolute; inset: -2px; z-index: 0;
  background-image: linear-gradient(rgba(59,130,246,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,.12) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse 85% 90% at 60% 20%, #000 30%, transparent 80%); }
.sub-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(460px 300px at 85% 10%, rgba(37,99,235,.28), transparent 70%), radial-gradient(380px 260px at 10% 90%, rgba(14,165,233,.2), transparent 70%); }
.sub-hero__nodes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sub-hero__nodes span { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #38BDF8; animation: ns-pulse 4s ease-in-out infinite; }
.sub-hero__nodes span:nth-child(1){ left: 12%; top: 40%; } .sub-hero__nodes span:nth-child(2){ left: 84%; top: 30%; background:#818CF8; animation-delay:1s; }
.sub-hero__nodes span:nth-child(3){ left: 70%; top: 72%; background:#34D399; animation-delay:2s; } .sub-hero__nodes span:nth-child(4){ left: 30%; top: 80%; animation-delay:1.5s; }
.sub-hero__inner { position: relative; z-index: 1; }
.sub-hero .crumbs { font-family: var(--font-mono); font-size: 13px; color: #94A3B8; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sub-hero .crumbs a { color: #CBD5E1; } .sub-hero .crumbs a:hover { color: #7DD3FC; }
.sub-hero .crumbs span { color: #475569; }
.sub-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; margin: 0; }
.sub-hero__desc { color: #94A3B8; font-size: 1.05rem; margin: 12px 0 0; max-width: 60ch; }
.header-inner { display: flex; align-items: center; gap: 30px; min-height: 66px; }
.site-branding { flex: 0 0 auto; display: flex; align-items: center; }
.site-branding img { max-height: 38px; width: auto; }
.site-branding .site-title-text { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.02em; }
.site-branding .site-title-text b { color: var(--blue); font-weight: 800; }
.primary-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.primary-nav a { font-family: var(--font-display); font-weight: 500; font-size: 14.5px; color: var(--body); padding: 7px 13px; border-radius: 7px; transition: all var(--dur) var(--ease); }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--bg-2); color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-search { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--bg-2); color: var(--body); border: 1px solid var(--line); transition: all var(--dur) var(--ease); }
.header-search:hover { background: var(--blue-50); color: var(--blue); border-color: var(--blue-100); }
.header-search svg { width: 18px; height: 18px; }
.nav-toggle { display: none; background: var(--bg-2); border: 1px solid var(--line); width: 42px; height: 42px; border-radius: var(--r-sm); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }

/* ==========================================================================
   5. Hero — search-first, animated network background
   ========================================================================== */
.hero { position: relative; background: linear-gradient(180deg, #0B1220 0%, #0F172A 55%, #111C33 100%); color: #fff; border-bottom: 1px solid #1E293B; overflow: hidden; padding: clamp(64px, 9vw, 124px) 0 clamp(60px, 8vw, 104px); text-align: center; }

/* Layer 1: animated moving grid */
.hero::before { content: ""; position: absolute; inset: -2px; z-index: 0;
  background-image: linear-gradient(rgba(59,130,246,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,.12) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 30%, transparent 78%);
  animation: ns-grid 22s linear infinite; }
@keyframes ns-grid { from { background-position: 0 0; } to { background-position: 46px 46px; } }

/* Layer 2: drifting glow blobs */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(420px 420px at 18% 22%, rgba(37,99,235,.28), transparent 70%),
    radial-gradient(460px 460px at 84% 30%, rgba(14,165,233,.22), transparent 70%),
    radial-gradient(380px 380px at 60% 90%, rgba(99,102,241,.18), transparent 70%);
  animation: ns-glow 16s ease-in-out infinite alternate; }
@keyframes ns-glow { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-16px,10px,0) scale(1.05); } 100% { transform: translate3d(14px,-8px,0) scale(1.02); } }

/* Layer 3: floating network nodes (SVG-free, pure CSS dots + pulse) */
.hero-nodes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-nodes span { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #38BDF8; box-shadow: 0 0 0 0 rgba(56,189,248,.5); animation: ns-pulse 4s ease-in-out infinite; }
.hero-nodes span::before { content: ""; position: absolute; left: 50%; top: 50%; width: 130px; height: 1px; background: linear-gradient(90deg, rgba(56,189,248,.4), transparent); transform-origin: left center; }
.hero-nodes span:nth-child(1) { left: 12%; top: 26%; animation-delay: 0s; }
.hero-nodes span:nth-child(1)::before { transform: rotate(35deg); }
.hero-nodes span:nth-child(2) { left: 82%; top: 20%; background: #818CF8; animation-delay: .8s; }
.hero-nodes span:nth-child(2)::before { transform: rotate(150deg); width: 100px; }
.hero-nodes span:nth-child(3) { left: 24%; top: 74%; background: #34D399; animation-delay: 1.6s; }
.hero-nodes span:nth-child(3)::before { transform: rotate(-40deg); width: 90px; }
.hero-nodes span:nth-child(4) { left: 74%; top: 78%; animation-delay: 2.2s; }
.hero-nodes span:nth-child(4)::before { transform: rotate(200deg); width: 110px; }
.hero-nodes span:nth-child(5) { left: 50%; top: 14%; background: #A78BFA; animation-delay: 1.1s; }
.hero-nodes span:nth-child(5)::before { transform: rotate(90deg); width: 70px; }
.hero-nodes span:nth-child(6) { left: 90%; top: 55%; background: #34D399; animation-delay: 2.8s; }
.hero-nodes span:nth-child(6)::before { transform: rotate(180deg); width: 80px; }
@keyframes ns-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(56,189,248,.45); opacity: .9; } 50% { box-shadow: 0 0 0 10px rgba(56,189,248,0); opacity: 1; } }

/* Layer 4: rising data particles (packets flowing up the network) */
.hero-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-particles i { position: absolute; bottom: -12px; width: 4px; height: 4px; border-radius: 50%; background: #38BDF8; opacity: 0; animation: ns-float linear infinite; }
@keyframes ns-float {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: .8; }
  90% { opacity: .8; }
  100% { transform: translateY(-105vh) scale(.4); opacity: 0; }
}
.hero-particles i:nth-child(1){ left: 8%;  animation-duration: 9s;  animation-delay: 0s;   background:#38BDF8; }
.hero-particles i:nth-child(2){ left: 20%; animation-duration: 12s; animation-delay: 2s;   background:#818CF8; }
.hero-particles i:nth-child(3){ left: 33%; animation-duration: 8s;  animation-delay: 1s;   background:#34D399; }
.hero-particles i:nth-child(4){ left: 46%; animation-duration: 14s; animation-delay: 3s;   background:#38BDF8; }
.hero-particles i:nth-child(5){ left: 58%; animation-duration: 10s; animation-delay: .5s;  background:#A78BFA; }
.hero-particles i:nth-child(6){ left: 70%; animation-duration: 13s; animation-delay: 2.5s; background:#34D399; }
.hero-particles i:nth-child(7){ left: 82%; animation-duration: 9s;  animation-delay: 1.5s; background:#38BDF8; }
.hero-particles i:nth-child(8){ left: 92%; animation-duration: 11s; animation-delay: 3.5s; background:#818CF8; }
.hero-particles i:nth-child(9){ left: 14%; animation-duration: 15s; animation-delay: 4s;   background:#34D399; }
.hero-particles i:nth-child(10){ left: 64%; animation-duration: 8s;  animation-delay: 5s;  background:#38BDF8; }

/* Layer 5: slow scan sweep */
.hero-scan { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-scan::after { content: ""; position: absolute; left: 0; right: 0; height: 180px; top: -180px;
  background: linear-gradient(180deg, transparent, rgba(56,189,248,.06), transparent);
  animation: ns-scan 7s ease-in-out infinite; }
@keyframes ns-scan { 0% { top: -180px; } 100% { top: 100%; } }

.hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .04em; color: #BFDBFE; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); padding: 7px 15px; border-radius: 999px; margin-bottom: 28px; backdrop-filter: blur(6px); }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.25); animation: ns-blink 2.4s ease-in-out infinite; }
@keyframes ns-blink { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .35em; }
.hero h1 .grad { background: linear-gradient(90deg, #60A5FA, #38BDF8 55%, #818CF8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: #94A3B8; font-size: clamp(1.05rem, 1.6vw, 1.28rem); max-width: 56ch; margin: 0 auto 36px; }
.hero-search { max-width: 600px; margin: 0 auto; }
.hero-search form { display: flex; gap: 8px; background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.5); border-radius: var(--r); padding: 7px; box-shadow: 0 20px 50px rgba(0,0,0,.35); transition: box-shadow var(--dur) var(--ease); }
.hero-search form:focus-within { box-shadow: 0 20px 60px rgba(37,99,235,.4), 0 0 0 3px rgba(56,189,248,.4); }
.hero-search .ic { display: grid; place-items: center; padding-left: 10px; color: var(--muted); }
.hero-search .ic svg { width: 20px; height: 20px; }
.hero-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font-size: 16px; padding: 12px 6px; font-family: var(--font-body); }
.hero-search input::placeholder { color: var(--muted); }
.hero-search input:focus { outline: none; }
.hero-search button { flex: 0 0 auto; background: var(--blue); color: #fff; border: 0; border-radius: var(--r-sm); padding: 12px 26px; font-family: var(--font-display); font-weight: 600; font-size: 15px; cursor: pointer; transition: background var(--dur) var(--ease); }
.hero-search button:hover { background: var(--blue-600); }
.hero-tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hero-tags a { font-size: 13.5px; color: #CBD5E1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); padding: 5px 13px; border-radius: 999px; transition: all var(--dur) var(--ease); }
.hero-tags a:hover { border-color: #38BDF8; color: #fff; background: rgba(56,189,248,.16); }

/* ==========================================================================
   6. Sections
   ========================================================================== */
.section { position: relative; padding: clamp(52px, 6.5vw, 88px) 0; background-color: var(--bg); }
.section--alt { background-color: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section > .wrap { position: relative; z-index: 1; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 3.5vw, 44px); flex-wrap: wrap; }
.section-head__text .eyebrow { display: block; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; margin: 0; letter-spacing: -.025em; }
.section-head p { color: var(--muted); margin: 10px 0 0; font-size: 15.5px; max-width: 52ch; }

/* Badge pill with pulsing dot — the recurring visual motif from the hero */
.badge-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-100); padding: 6px 13px; border-radius: 999px; margin-bottom: 14px; }
.badge-pill--dark { color: #BFDBFE; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.15); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(37,99,235,.5); animation: ns-dot 2.4s ease-in-out infinite; }
.badge-dot--green { background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
@keyframes ns-dot { 0%,100% { box-shadow: 0 0 0 0 rgba(37,99,235,.45); } 50% { box-shadow: 0 0 0 6px rgba(37,99,235,0); } }

.section--dots > .wrap, .section--grid > .wrap, .section--diagonal > .wrap { position: relative; z-index: 1; }

/* Stats band — plain white, bridges the dark hero into the light page */
.stats-band { position: relative; background: #fff; border-bottom: 1px solid var(--line); margin-top: -1px; }
.stats-band__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: clamp(28px, 3.5vw, 44px) 16px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.stat__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.02em; background: linear-gradient(135deg, var(--blue), #0EA5E9); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat__lbl { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); font-weight: 500; }

/* Topic categories — bento grid with a feature tile */
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.topic-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; transition: all var(--dur) var(--ease); position: relative; overflow: hidden; }
.topic-card::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--blue); transform: scaleY(0); transform-origin: bottom; transition: transform var(--dur) var(--ease); }
.topic-card:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.topic-card:hover::after { transform: scaleY(1); }
.topic-card--feature { grid-column: span 2; grid-row: span 2; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 26px; background: linear-gradient(150deg, #fff, var(--blue-50)); border-color: var(--blue-100); }
.topic-card--feature .topic-card__ic { width: 56px; height: 56px; }
.topic-card--feature .topic-card__ic svg { width: 28px; height: 28px; }
.topic-card--feature .topic-card__name { font-size: 1.4rem; }
.topic-card--feature .topic-card__go { align-self: flex-end; }
.topic-card__ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; background: var(--blue-50); display: grid; place-items: center; color: var(--blue); transition: all var(--dur) var(--ease); }
.topic-card:hover .topic-card__ic { background: var(--blue); color: #fff; transform: scale(1.05); }
.topic-card__ic svg { width: 22px; height: 22px; }
.topic-card__meta { min-width: 0; flex: 1; }
.topic-card__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.topic-card__count { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.topic-card__go { flex: 0 0 auto; color: var(--muted); transition: all var(--dur) var(--ease); opacity: 0; transform: translateX(-4px); }
.topic-card:hover .topic-card__go { color: var(--blue); opacity: 1; transform: none; }
.topic-card__go svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } .topic-card--feature { grid-column: span 2; grid-row: auto; flex-direction: row; align-items: center; } .topic-card--feature .topic-card__go { align-self: center; } }
@media (max-width: 520px) { .topic-grid { grid-template-columns: 1fr; } .topic-card--feature { grid-column: auto; } .stats-band__grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(3)::before, .stat:nth-child(1)::before { display: none; } }

/* CTA band — dark, echoes the hero */
.cta-band { position: relative; background: linear-gradient(135deg, #0F172A, #111C33 60%, #14264A); color: #fff; overflow: hidden; padding: clamp(56px, 7vw, 92px) 0; text-align: center; }
/* CTA band signature: NETWORK TOPOLOGY MESH (nodes + links, dark) */
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%2360a5fa' stroke-width='1' stroke-opacity='0.16'%3E%3Cline x1='25' y1='30' x2='100' y2='55'/%3E%3Cline x1='100' y1='55' x2='70' y2='115'/%3E%3Cline x1='70' y1='115' x2='25' y2='30'/%3E%3Cline x1='100' y1='55' x2='135' y2='110'/%3E%3Cline x1='25' y1='30' x2='0' y2='90'/%3E%3C/g%3E%3Cg fill='%2360a5fa' fill-opacity='0.3'%3E%3Ccircle cx='25' cy='30' r='3.5'/%3E%3Ccircle cx='100' cy='55' r='3.5'/%3E%3Ccircle cx='70' cy='115' r='3.5'/%3E%3Ccircle cx='135' cy='110' r='2.5'/%3E%3Ccircle cx='0' cy='90' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 280px 280px;
  mask-image: radial-gradient(ellipse 75% 85% at 50% 50%, #000, transparent 80%); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(500px 300px at 50% 0%, rgba(37,99,235,.3), transparent 70%); }
.cta-nodes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cta-nodes span { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #38BDF8; animation: ns-pulse 4s ease-in-out infinite; }
.cta-nodes span:nth-child(1){ left: 10%; top: 24%; } .cta-nodes span:nth-child(2){ left: 88%; top: 30%; background:#818CF8; animation-delay:1s; }
.cta-nodes span:nth-child(3){ left: 18%; top: 76%; background:#34D399; animation-delay:2s; } .cta-nodes span:nth-child(4){ left: 82%; top: 70%; animation-delay:1.5s; }
.cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; margin: 4px 0 .4em; }
.cta-inner p { color: #94A3B8; font-size: 1.08rem; margin: 0 auto 30px; max-width: 52ch; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn--glass { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.35); }

/* Scroll-reveal (JS adds .is-visible) */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   7. Article cards — editorial, no ugly placeholders
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: all var(--dur) var(--ease); }
.post-card:hover { border-color: #CBD5E1; box-shadow: var(--shadow); transform: translateY(-3px); }
.post-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); display: block; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.04); }
/* Intentional placeholder for image-less posts: subtle mono monogram, not a loud gradient */
.thumb-ph { width: 100%; height: 100%; display: grid; place-items: center; background:
  linear-gradient(135deg, var(--bg-2), #EEF2F7);
  color: #CBD5E1; }
.thumb-ph svg { width: 46px; height: 46px; opacity: .9; }
.post-badge { position: absolute; top: 12px; left: 12px; font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); background: rgba(255,255,255,.92); backdrop-filter: blur(4px); padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line); }
.post-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.14rem; line-height: 1.32; margin-bottom: .5em; letter-spacing: -.01em; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--blue); }
.post-excerpt { font-size: 14.5px; color: var(--muted); margin: 0 0 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }
.post-meta .read { margin-left: auto; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--blue); display: inline-flex; align-items: center; gap: 5px; }
.post-card:hover .read svg { transform: translateX(3px); }
.read svg { width: 13px; height: 13px; transition: transform var(--dur) var(--ease); }
.grid-cta { text-align: center; margin-top: clamp(30px, 4vw, 44px); }

/* Topic blocks (list variant) */
.topic-block { margin-top: clamp(44px, 5vw, 64px); }
.topic-block:first-of-type { margin-top: 0; }

/* Compact list row (for dense article lists) */
.post-row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.post-row:last-child { border-bottom: 0; }
.post-row__thumb { flex: 0 0 auto; width: 96px; height: 66px; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-2); }
.post-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-row__body { min-width: 0; }
.post-row__body h3 { font-size: 1.02rem; margin: 0 0 4px; line-height: 1.3; }
.post-row__body h3 a { color: var(--ink); }
.post-row__body h3 a:hover { color: var(--blue); }
.post-row__meta { font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }

/* ==========================================================================
   8. Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #94A3B8; padding: clamp(48px, 6vw, 72px) 0 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
/* Footer logo — same logo as the header, on a small white plate so a coloured
   logo stays crisp against the dark footer (no brightness/invert glitch). */
.footer-brand .custom-logo-link, .footer-brand .site-title-link { display: inline-block; margin-bottom: 16px; }
.footer-brand img, .footer-brand .custom-logo {
  max-height: 48px; width: auto; margin: 0; display: block;
  background: #fff; padding: 8px 12px; border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.footer-brand .site-title-text { color: #fff; font-size: 20px; }
.footer-brand .site-title-text b { color: #7DD3FC; }
.footer-brand p { max-width: 38ch; font-size: 14.5px; color: #94A3B8; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 13px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94A3B8; font-size: 14.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; font-size: 13px; color: #64748B; font-family: var(--font-mono); }

/* ==========================================================================
   9. Content pages
   ========================================================================== */
.page-hero { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: clamp(36px, 5vw, 60px) 0; }
.page-hero .crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; font-family: var(--font-mono); }
.page-hero .crumbs a { color: var(--body); }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.03em; }
.content-area { padding: clamp(40px, 5vw, 64px) 0; }
.content-single { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 48px); max-width: 800px; margin: 0 auto; box-shadow: var(--shadow); font-size: 17px; line-height: 1.75; }
.content-single h2 { font-size: 1.55rem; margin: 1.8em 0 .5em; }
.content-single h3 { font-size: 1.28rem; margin: 1.5em 0 .45em; }
.content-single p { margin: 0 0 1.3em; }
.content-single img { border-radius: var(--r); margin: 1.6em 0; border: 1px solid var(--line); }
.content-single a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--blue-100); }
.content-single a:hover { text-decoration-color: var(--blue); }
.content-single pre { background: var(--ink); color: #E2E8F0; padding: 18px 20px; border-radius: var(--r); overflow-x: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; }
.content-single code { font-family: var(--font-mono); font-size: .9em; background: var(--blue-50); color: var(--blue-700); padding: 2px 6px; border-radius: 5px; }
.content-single pre code { background: none; color: inherit; padding: 0; }
.content-single table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.content-single th, .content-single td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.content-single th { background: var(--bg-2); font-family: var(--font-display); color: var(--ink); }
.content-single blockquote { border-left: 3px solid var(--blue); background: var(--blue-50); margin: 1.6em 0; padding: 14px 22px; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 10px 15px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.pagination .current { background: var(--blue); color: #fff; border-color: transparent; }
.pagination a:hover { border-color: var(--blue); color: var(--blue); }

/* ==========================================================================
   9e. Inner pages (About, Contact, legal/text)
   ========================================================================== */
/* Content + side card layout for text pages */
.page-shell { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: clamp(24px,3.5vw,44px); align-items: start; max-width: 1080px; margin: 0 auto; }
.page-shell .content-single { max-width: 100%; margin: 0; }
.content-single--legal { font-size: 16px; }
.content-single--legal h2 { font-size: 1.4rem; }

/* Help card (page.php) */
.page-help { background: var(--ink); color: #cbd5e1; border-radius: var(--r-lg); padding: 28px; position: sticky; top: 90px; }
.page-help__ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(96,165,250,.15); display: grid; place-items: center; color: #7DD3FC; margin-bottom: 16px; }
.page-help__ic svg { width: 23px; height: 23px; }
.page-help h3 { color: #fff; font-size: 1.2rem; margin: 0 0 8px; }
.page-help p { font-size: 14.5px; color: #94A3B8; margin: 0 0 18px; }
.page-help .btn { width: 100%; justify-content: center; }

/* About intro — clean, left-aligned, no awkward quote boxes, tight spacing */
.content-single--about { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); }
.about-kicker { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--blue-700); background: var(--blue-50); border: 1px solid var(--blue-100); padding: 6px 13px; border-radius: 999px; margin-bottom: 22px; }
.content-single--about h1 { font-size: 1.7rem; margin: 0 0 .5em; }
/* Strip the original Gutenberg quote/centered styling so text reads naturally */
.content-single--about blockquote,
.content-single--about .wp-block-quote {
  border: 0; background: transparent; margin: 0; padding: 0; font-style: normal;
  text-align: left; color: var(--body); font-size: 1.08rem; line-height: 1.8; }
.content-single--about blockquote p,
.content-single--about .wp-block-quote p { text-align: left; margin: 0 0 1.1em; font-weight: 400; }
.content-single--about p:empty { display: none; }
.content-single--about blockquote p:last-child,
.content-single--about > *:last-child { margin-bottom: 0; }
.content-single--about [style*="text-align:center"],
.content-single--about [style*="text-align: center"],
.content-single--about .has-text-align-center { text-align: left !important; }
.content-single--about a { color: var(--blue); font-weight: 600; text-decoration: none; }
.content-single--about a:hover { color: var(--blue-700); text-decoration: underline; }

/* About: aside facts card */
.about-aside__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.about-aside__card h3 { font-size: 1.15rem; margin: 0 0 16px; }
.about-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.about-facts li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--body); }
.about-facts strong { color: var(--ink); font-family: var(--font-display); }
.about-facts__ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.about-facts__ic svg { width: 20px; height: 20px; }

/* Values grid */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; transition: all var(--dur) var(--ease); }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.value-card__ic { width: 52px; height: 52px; border-radius: 13px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.value-card__ic svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.2rem; margin: 0 0 8px; }
.value-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 20px; }
.team-card { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; align-items: flex-start; transition: all var(--dur) var(--ease); }
.team-card:hover { box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.team-card__avatar { flex: 0 0 auto; width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #0EA5E9); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; }
.team-card__avatar--alt { background: linear-gradient(135deg, #6366F1, #818CF8); }
.team-card__body h3 { font-size: 1.2rem; margin: 0 0 2px; }
.team-card__role { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.team-card__body p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Contact layout */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px,4vw,48px); align-items: start; max-width: 1080px; margin: 0 auto; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.contact-card__ic { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 13px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.contact-card__ic svg { width: 25px; height: 25px; }
.contact-card h3 { font-size: 1.1rem; margin: 2px 0 6px; }
.contact-card__link { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--blue); }
.contact-card__link:hover { color: var(--blue-700); }
.contact-card p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.contact-socials { display: flex; gap: 10px; margin-top: 14px; }
.contact-socials a { width: 42px; height: 42px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--line); color: var(--body); display: grid; place-items: center; transition: all var(--dur) var(--ease); }
.contact-socials a:hover { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateY(-2px); }
.contact-socials svg { width: 19px; height: 19px; }
.contact-note { font-size: 14px; color: var(--muted); background: var(--bg-2); border-radius: var(--r); padding: 16px 18px; }
.contact-note p { margin: 0; }

.contact-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px,3.5vw,40px); box-shadow: var(--shadow); }
.contact-form-wrap h2 { font-size: clamp(1.4rem,2.4vw,1.8rem); margin: 0 0 6px; }
.contact-form-sub { color: var(--muted); margin: 0 0 24px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-field span { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--ink); }
.cf-field input, .cf-field textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font-family: var(--font-body); font-size: 15px; background: var(--bg-2); color: var(--ink); resize: vertical; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.contact-form-note { margin-top: 16px; color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .page-shell, .contact-layout { grid-template-columns: 1fr; }
  .page-help, .about-aside__card { position: static; }
  .about-aside { order: -1; }
}
@media (max-width: 560px) { .cf-row { grid-template-columns: 1fr; } }

/* ==========================================================================
   9f. Single post — full article design
   ========================================================================== */
.post-hero { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: clamp(30px, 4vw, 52px) 0 clamp(24px, 3vw, 36px); }
.post-hero .wrap { max-width: 820px; }
.post-hero .crumbs { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-bottom: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.post-hero .crumbs a { color: var(--body); } .post-hero .crumbs span { color: var(--muted); }
.post-hero__cat { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--blue); padding: 5px 12px; border-radius: 6px; margin-bottom: 16px; }
.post-hero__cat:hover { background: var(--blue-600); color: #fff; }
.post-hero h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); letter-spacing: -.03em; line-height: 1.18; margin: 0 0 18px; }
.post-hero__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; }
.pm-author { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.pm-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #0EA5E9); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 12px; }
.pm-dot { color: var(--line); }

/* Featured image */
.post-featured { background: var(--bg-2); padding-bottom: clamp(28px, 4vw, 44px); }
.post-featured .wrap { max-width: 940px; }
.post-featured img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-md); }

/* Two-column layout */
.single-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(28px, 4vw, 52px); align-items: start; max-width: 1120px; margin: 0 auto; }
.post-article { max-width: 100%; margin: 0; }

/* Rich article typography */
.post-article { font-size: 17px; line-height: 1.8; }
.post-article > p:first-of-type { font-size: 1.15rem; color: var(--ink-2); }
.post-article h2 { font-size: 1.55rem; margin: 1.9em 0 .55em; padding-top: .3em; scroll-margin-top: 90px; }
.post-article h2::before { content: ""; display: block; width: 42px; height: 3px; background: var(--blue); border-radius: 3px; margin-bottom: .5em; }
.post-article h3 { font-size: 1.28rem; margin: 1.6em 0 .5em; scroll-margin-top: 90px; }
.post-article ul, .post-article ol { padding-left: 1.4em; margin: 0 0 1.3em; }
.post-article li { margin-bottom: .5em; }
.post-article ul li::marker { color: var(--blue); }
.post-article a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--blue-100); }
.post-article a:hover { text-decoration-color: var(--blue); }
.post-article img { border-radius: var(--r); margin: 1.6em 0; border: 1px solid var(--line); }
.post-article blockquote { border-left: 3px solid var(--blue); background: var(--blue-50); margin: 1.6em 0; padding: 16px 22px; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2); font-style: italic; }
.post-article table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; display: block; overflow-x: auto; }
.post-article th, .post-article td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.post-article th { background: var(--bg-2); font-family: var(--font-display); color: var(--ink); }
.post-article pre { background: var(--ink); color: #E2E8F0; padding: 18px 20px; border-radius: var(--r); overflow-x: auto; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; margin: 1.5em 0; }
.post-article :not(pre) > code { font-family: var(--font-mono); font-size: .9em; background: var(--blue-50); color: var(--blue-700); padding: 2px 6px; border-radius: 5px; }

/* Tags */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.post-tags__label { font-family: var(--font-display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin-right: 4px; }
.post-tags a { font-size: 13.5px; color: var(--body); background: var(--bg-2); border: 1px solid var(--line); padding: 5px 13px; border-radius: 999px; }
.post-tags a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }

/* Author box */
.author-box { display: flex; gap: 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin: 36px 0 0; }
.author-box__avatar { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #0EA5E9); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.author-box__label { font-family: var(--font-display); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); }
.author-box__body h3 { font-size: 1.2rem; margin: 3px 0 6px; }
.author-box__body p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* Prev / Next */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 36px 0 0; }
.post-nav__item { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; transition: all var(--dur) var(--ease); }
.post-nav__item:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.post-nav__next { text-align: right; }
.post-nav__dir { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: var(--blue); }
.post-nav__title { font-weight: 600; font-size: 14.5px; color: var(--ink); line-height: 1.35; }
.post-nav:has(.post-nav__next:only-child) { grid-template-columns: 1fr; }

/* ===== Comments ===== */
.post-comments { margin: 44px 0 0; padding-top: 32px; border-top: 1px solid var(--line); }
.comments-title, #reply-title, .comments-area > h2, #comments > h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 0 0 6px; }
#reply-title { margin-bottom: 4px; }
#reply-title small { font-weight: 500; font-size: .7em; margin-left: 8px; }
.comment-notes, .logged-in-as { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }
.comment-notes .required { color: var(--blue); }

/* Existing comments list */
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list ol.children { list-style: none; margin: 16px 0 0 clamp(16px, 4vw, 44px); padding: 0; }
.comment-body { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; margin-bottom: 16px; }
.comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-author .avatar { border-radius: 50%; width: 40px; height: 40px; }
.comment-author .fn { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-style: normal; }
.comment-author .says { display: none; }
.comment-metadata { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.comment-metadata a { color: var(--muted); }
.comment-content { color: var(--body); font-size: 15px; line-height: 1.65; }
.comment-content p { margin: 0 0 .8em; }
.reply { margin-top: 6px; }
.comment-reply-link { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--blue); background: #fff; border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.comment-reply-link:hover { border-color: var(--blue); background: var(--blue-50); }

/* Comment FORM — styled to match the theme */
.comment-respond, #respond { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 36px); box-shadow: var(--shadow); }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.comment-form .comment-form-comment { grid-column: 1 / -1; }
.comment-form .comment-form-url { grid-column: 1 / -1; }
.comment-form-cookies-consent, .comment-form .form-submit { grid-column: 1 / -1; }
.comment-form label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--ink); margin-bottom: 7px; }
.comment-form label .required { color: var(--blue); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px;
  font-family: var(--font-body); font-size: 15px; background: var(--bg-2); color: var(--ink); resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.comment-form textarea { min-height: 130px; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; font-size: 14px; color: var(--muted); }
.comment-form-cookies-consent input { margin-top: 3px; width: auto; }
.form-submit { margin: 0; }
.comment-form .submit, #submit { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; border: 0; border-radius: var(--r-sm); padding: 13px 28px; font-family: var(--font-display); font-weight: 600; font-size: 15px; cursor: pointer; transition: background var(--dur) var(--ease); width: auto; }
.comment-form .submit:hover, #submit:hover { background: var(--blue-600); }
.comments-area .no-comments { color: var(--muted); }
@media (max-width: 560px) { .comment-form { grid-template-columns: 1fr; } }

/* ===== Sidebar ===== */
.post-sidebar__inner { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
.side-card--author { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.side-author__avatar { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #0EA5E9); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.side-author__label { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.side-card--author strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.side-card__title { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 6px; }
.side-card__title span { font-size: 12px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.side-posts { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--blue-100) transparent; }
.side-posts::-webkit-scrollbar { width: 6px; } .side-posts::-webkit-scrollbar-thumb { background: var(--blue-100); border-radius: 6px; }
.side-posts li { border-bottom: 1px solid var(--line-2); }
.side-posts li:last-child { border-bottom: 0; }
.side-posts a { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; font-size: 14px; line-height: 1.4; color: var(--body); }
.side-posts__dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-100); margin-top: 7px; transition: background var(--dur) var(--ease); }
.side-posts a:hover { color: var(--blue); } .side-posts a:hover .side-posts__dot { background: var(--blue); }
.side-posts a.current-post, .side-posts .current-post { color: var(--blue); font-weight: 600; }
.side-card__more { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--blue); }
.side-card__more svg { width: 14px; height: 14px; }
.side-card--cta { text-align: center; background: var(--ink); color: #cbd5e1; border: 0; }
.side-cta__ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(96,165,250,.15); color: #7DD3FC; display: grid; place-items: center; margin: 0 auto 14px; }
.side-cta__ic svg { width: 24px; height: 24px; }
.side-card--cta h4 { color: #fff; font-size: 1.1rem; margin: 0 0 6px; }
.side-card--cta p { color: #94A3B8; font-size: 14px; margin: 0 0 16px; }
.side-card--cta .btn { width: 100%; justify-content: center; }

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; }
  .single-layout { grid-template-columns: 1fr; } .post-sidebar__inner { position: static; }
  .post-nav { grid-template-columns: 1fr; } .post-nav__next { text-align: left; } }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .primary-nav { position: fixed; inset: 66px 0 auto 0; background: #fff; margin: 0; padding: 12px 20px 20px; box-shadow: var(--shadow-lg); transform: translateY(-140%); transition: transform .3s var(--ease); border-bottom: 1px solid var(--line); max-height: calc(100dvh - 66px); overflow: auto; }
  body.nav-open .primary-nav { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: 2px; }
  .primary-nav a { display: block; padding: 12px 14px; font-size: 16px; }
  .header-inner { justify-content: space-between; }
}
@media (max-width: 560px) { body { font-size: 16px; } .footer-top { grid-template-columns: 1fr; } .section-head { align-items: flex-start; } .hero-search button { padding: 12px 18px; } }
/* Hero content entrance */
@keyframes ns-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-eyebrow { animation: ns-rise .6s .05s var(--ease) both; }
.hero h1 { animation: ns-rise .7s .15s var(--ease) both; }
.hero-lead { animation: ns-rise .7s .28s var(--ease) both; }
.hero-search { animation: ns-rise .7s .4s var(--ease) both; }
.hero-tags { animation: ns-rise .7s .52s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-eyebrow, .hero h1, .hero-lead, .hero-search, .hero-tags { opacity: 1 !important; transform: none !important; }
  .hero-nodes, .hero-particles, .hero-scan, .cta-nodes { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
