/*
Theme Name: Server News Hub
Theme URI: https://servernewshub.com/
Author: Server News Hub
Author URI: https://servernewshub.com/
Description: A modern professional WordPress theme for a server news publication: VPS, dedicated, cloud, bare metal, homelab and GPU servers. News front page with an animated latest ticker, a live clock, a featured story and per-category sections; sticky header with animated mobile menu, post cards with hover lift and image zoom, category pills, star ratings, comparison tables, FAQ accordions and schema.org JSON-LD (Article, Review, FAQPage, BreadcrumbList). AdSense-ready widget areas. No page builder, no jQuery, no webfonts — one CSS file, one small vanilla JS file. Works with Rank Math SEO and the WordPress core sitemap.
Version: 3.4.2
Requires at least: 6.0
Tested up to: 7.1
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: server-news-hub
Tags: blog, news, two-columns, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   Server News Hub v3.3.0 — style.css
   Lively, modern, professional — v3.0's energy, more alive:
   drifting gradients, a Ken Burns featured image, an animated
   ticker, shine sweeps, a live clock and a scroll progress
   bar. Mobile-first responsive. System font stacks only
   — zero webfont requests, zero external dependencies. Clean
   grotesque sans throughout (serif reverted in v3.1.1 — the
   user found it harder to read). Breakpoints: 480 / 640 /
   768 / 900 (nav) / 1024 / 1280.
   ============================================================ */

:root {
  /* Color system */
  --color-bg: #f6f7f9;
  --color-surface: #ffffff;
  --color-surface-muted: #eef1f5;
  --color-surface-hover: #e8ecf1;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-heading: #0b1220;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-soft: #dbeafe;
  --color-accent-2: #7c3aed;
  --color-accent-2-soft: #ede9fe;
  --color-accent-3: #0891b2;
  --color-dark: #0b1220;
  --color-dark-2: #141f38;
  --color-dark-3: #1e2d4d;
  /* Header navy (v3.4): the old near-black #0b1220 read as black
     ("đen quá"). These richer dark blues read as navy while staying
     dark and professional; white text still contrasts 12:1+. The
     blue→violet gradient accents are untouched. */
  --color-header: #1b2c55;
  --color-header-2: #22386b;
  --color-star: #d97706;
  --color-star-soft: #fef3c7;
  --color-pro: #15803d;
  --color-pro-bg: #f0fdf4;
  --color-con: #b91c1c;
  --color-con-bg: #fef2f2;
  --color-code-bg: #f1f5f9;
  --color-success: #16a34a;
  --color-highlight: #fde68a;

  /* Category accents (muted editorial palette) */
  --cat-vps: #2563eb;
  --cat-dedicated: #0f766e;
  --cat-cloud: #4f46e5;
  --cat-bare-metal: #92400e;
  --cat-homelab: #15803d;
  --cat-gpu: #be185d;
  --cat-news: #b91c1c;

  /* Gradients — tasteful navy-to-blue/violet, used with restraint
     on tiles, rules, underlines and hover states. v3.2 restores
     the v3.0 energy the flat v3.1 look took away. */
  --gradient-brand: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-accent: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);
  --gradient-dark: linear-gradient(135deg, #0b1220 0%, #1e2d4d 55%, #312e81 100%);
  --gradient-cta: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --gradient-news: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  --gradient-section: linear-gradient(180deg, #eef2fb 0%, #f4f6fc 100%);

  /* Shape & depth — soft, modern, alive: cards lift on hover
     and their shadows deepen with them. */
  --radius-lg: 14px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .05), 0 2px 8px rgba(11, 18, 32, .04);
  --shadow: 0 1px 3px rgba(11, 18, 32, .07), 0 8px 20px rgba(11, 18, 32, .06);
  --shadow-lg: 0 12px 32px rgba(11, 18, 32, .14);
  --shadow-card-hover: 0 4px 10px rgba(11, 18, 32, .08), 0 18px 36px rgba(11, 18, 32, .13);
  --shadow-accent: 0 4px 14px rgba(37, 99, 235, .28);

  /* Layout */
  --max-width: 1120px;
  --max-width-narrow: 780px;
  --header-height: 64px;
  --nav-height: 44px;

  /* Type — clean grotesque sans throughout. System stacks only. */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --transition: .25s var(--ease);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, video, iframe { max-width: 100%; height: auto; }
img { border-style: none; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); text-decoration: underline; text-underline-offset: 2px; }
::selection { background: var(--color-highlight); color: var(--color-heading); }
/* Sans for all headings (v3.1.1: serif reverted — harder to read);
   smaller headings behave as UI labels. */
h1, h2 {
  font-family: var(--font-sans);
  color: var(--color-heading);
  line-height: 1.18;
  margin: 1.4em 0 .5em;
  font-weight: 700;
  letter-spacing: -.015em;
}
h3, h4, h5, h6 {
  color: var(--color-heading);
  line-height: 1.3;
  margin: 1.4em 0 .5em;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); text-wrap: balance; }
h2 { font-size: clamp(1.45rem, 3.4vw, 1.8rem); text-wrap: balance; }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }
/* Editorial pull-quote: larger, italic, with a quiet ink
   rule — no background wash. */
blockquote {
  margin: 1.6em 0;
  padding: .2em 0 .2em 1.2em;
  border-left: 2px solid var(--color-heading);
  font-family: var(--font-sans);
  font-size: 1.14em;
  font-style: italic;
  line-height: 1.55;
  color: var(--color-heading);
}
blockquote p:last-child { margin-bottom: 0; }
blockquote cite {
  display: block;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: .8em;
}
code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--color-code-bg);
  border: 1px solid var(--color-border);
  padding: .15em .4em;
  border-radius: 4px;
}
pre {
  background: var(--color-dark);
  color: #e2e8f0;
  padding: 1.1em 1.3em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-dark-3);
  overflow-x: auto;
  font-size: .88rem;
  line-height: 1.65;
}
pre code { background: none; padding: 0; border: 0; color: inherit; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: 2em 0; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; }
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}
input[type="search"]:focus-visible, input[type="text"]:focus-visible,
input[type="email"]:focus-visible, input[type="url"]:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
}
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--color-dark); color: #fff; padding: .6em 1em; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: #fff; text-decoration: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
.container-narrow { max-width: var(--max-width-narrow); margin: 0 auto; padding: 0 16px; }

/* Scroll-reveal — the .reveal class is added by JS only, so content
   stays visible when JS is off. JS removes both classes once the
   transition ends, restoring each element's own hover transitions. */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in-view {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

/* ---------- Living motion (v3.3) ----------
   Slow, smooth, infinite motion that makes the site feel alive:
   drifting gradients and a gentle Ken Burns on the featured
   image. All of it freezes under prefers-reduced-motion (see
   the reduced-motion block at the end of this file). */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes ken-burns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(-1.5%, 1%); }
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-header);
  color: #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 4px 16px rgba(0, 0, 0, .22);
  transition: box-shadow var(--transition);
}
/* Gradient rule under the header — the brand's blue-to-violet signature. */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--gradient-accent);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 8px 24px rgba(0, 0, 0, .3); }
/* Scroll progress (v3.3) — a thin gradient bar fixed to the top of
   the viewport that fills as you read. JS sets scaleX on the fill
   (transform only, rAF-throttled). */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70;
  pointer-events: none;
}
.scroll-progress-fill {
  height: 100%; width: 100%;
  background: var(--gradient-accent);
  transform: scaleX(0); transform-origin: left;
  will-change: transform;
}
/* Row 1: logo + search (hamburger on mobile). Row 2 (.header-nav)
   carries the menu on its own line, so the 8 menu items never wrap
   into a ragged second row next to the logo. */
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: var(--header-height);
}
.site-branding { display: flex; align-items: center; gap: 11px; flex-shrink: 0; min-width: 0; }
.site-logo { display: block; max-height: 40px; width: auto; }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--gradient-brand);
  background-size: 250% 250%;
  animation: gradient-shift 10s ease-in-out infinite;
  color: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-accent);
  transition: transform var(--transition), box-shadow var(--transition);
}
.site-branding:hover .brand-mark { transform: scale(1.06) rotate(-2deg); box-shadow: 0 6px 18px rgba(37, 99, 235, .4); }
.brand-mark .logo-mark { display: block; }
/* Wordmark — the site's nameplate. */
.site-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.01em;
}
.site-title a { color: #fff; text-decoration: none; transition: color var(--transition); }
.site-title a:hover { color: #bfdbfe; text-decoration: none; }
.site-title .hub { color: #60a5fa; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .site-title .hub {
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    background-size: 200% 100%;
    animation: gradient-shift 8s ease-in-out infinite;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
}
.site-tagline {
  margin: 2px 0 0; font-size: .74rem; color: #94a3b8; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px;
}

/* Primary nav — hidden panel on mobile, inline row on desktop. */
.main-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--color-header-2);
  padding: 8px 16px 16px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
  pointer-events: none;
}
.main-nav.toggled {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  pointer-events: auto;
}
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.main-nav a {
  display: block; color: #cbd5e1; text-decoration: none;
  padding: .65em .6em; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: color var(--transition), background var(--transition);
}
.main-nav li:last-child a { border-bottom: 0; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-category-ancestor > a,
.main-nav .current-menu-parent > a, .main-nav .current-post-ancestor > a {
  color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none;
}
.main-nav .current-menu-item > a, .main-nav .current-category-ancestor > a,
.main-nav .current-menu-parent > a, .main-nav .current-post-ancestor > a {
  font-weight: 700;
}
.nav-search { margin-top: 12px; }
.nav-search .search-form { display: flex; }
.nav-search input[type="search"] {
  flex: 1; min-width: 0;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: .55em .8em; font-size: .95rem;
}
.nav-search input[type="search"]::placeholder { color: #94a3b8; }
.nav-search button {
  background: var(--gradient-brand); color: #fff; border: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: .55em 1em; cursor: pointer; font-weight: 600;
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
}
.nav-search button:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37, 99, 235, .5); }

/* Hamburger — three bars morph into an X. */
.menu-toggle {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; border-radius: var(--radius-sm); padding: 0;
  width: 42px; height: 42px; cursor: pointer; flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}
.menu-toggle:hover, .menu-toggle:focus-visible { background: rgba(255, 255, 255, .16); }
.menu-bars { display: block; width: 20px; }
.menu-bar {
  display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
  margin: 5px 0; transition: transform .25s var(--ease), opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-search { display: none; flex-shrink: 0; }
.header-search .search-form { display: flex; }
.header-search input[type="search"] {
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  padding: .45em .9em; width: 180px; font-size: .9rem;
  transition: width var(--transition), background var(--transition);
}
.header-search input[type="search"]:focus { width: 230px; background: rgba(255, 255, 255, .16); outline: none; box-shadow: 0 0 0 3px rgba(96, 165, 250, .35); }
.header-search input[type="search"]::placeholder { color: #94a3b8; }
.header-search button {
  background: var(--gradient-brand); color: #fff; border: 0;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0; padding: .45em .9em; cursor: pointer; font-weight: 600;
  box-shadow: var(--shadow-accent);
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
}
.header-search button:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37, 99, 235, .5); }

/* ---------- News ticker ---------- */
/* A real auto-scrolling marquee: the track holds two identical item
   sets and slides -50% in a seamless loop (see front-page.php).
   Pauses on hover/focus; under reduced motion it falls back to a
   static, hand-scrollable row (see the reduced-motion block). */
.ticker { background: var(--color-dark-2); color: #e2e8f0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ticker-inner { display: flex; align-items: center; gap: 0; padding-top: 0; padding-bottom: 0; }
.ticker-label {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  background: var(--gradient-news); color: #fff; font-size: .7rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; padding: .5em .9em;
  margin: 8px 16px 8px 0; border-radius: 4px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, .35);
}
.ticker-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #fff; flex-shrink: 0;
  animation: ticker-pulse 1.6s ease-in-out infinite;
}
@keyframes ticker-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.8); }
}
/* Edge fade so items glide in and out instead of hard-clipping. */
.ticker-viewport {
  overflow: hidden; flex: 1; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.ticker-track {
  display: flex; width: max-content;
  animation: ticker-scroll 45s linear infinite;
}
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-items {
  display: flex; gap: 28px; align-items: center; list-style: none; margin: 0;
  /* Trailing padding = one gap, so each set is an identical block
     and the -50% loop is seamless. */
  padding: 0 28px 0 0;
  white-space: nowrap; flex-shrink: 0;
}
.ticker-items li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .88rem; flex-shrink: 0; }
.ticker-items time {
  color: #94a3b8; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.ticker-items a { color: #e2e8f0; text-decoration: none; transition: color var(--transition); }
.ticker-items a:hover { color: #fff; text-decoration: none; }
.ticker-items li + li::before,
.ticker-items + .ticker-items li:first-child::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: #475569; flex-shrink: 0;
}

/* ---------- Masthead dateline ---------- */
/* Newspaper dateline: hairline above, double rule below. */
.masthead {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5fd 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 3px double var(--color-border-strong);
}
.masthead-inner {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 20px;
  padding-top: 11px; padding-bottom: 11px;
}
.masthead-date {
  margin: 0; font-family: var(--font-sans); font-size: .92rem;
  font-weight: 700; color: var(--color-heading);
}
/* Live clock (v3.3) — the visitor's local time, updated every
   second by JS. Quiet and small; hidden until JS fills it. */
.masthead-clock { font-weight: 600; color: var(--color-text-muted); font-size: .88rem; }
.masthead-clock::before { content: "\00B7"; margin: 0 7px; color: var(--color-border-strong); font-weight: 700; }
.masthead-clock:empty { display: none; }
.masthead-tagline { margin: 0; font-size: .85rem; color: var(--color-text-muted); flex: 1; min-width: 200px; }
.masthead-count {
  margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: .35em .9em; border-radius: var(--radius-pill);
}

/* ---------- Featured story ---------- */
/* The homepage's showpiece: image-led, strong headline, gradient
   accents — a proper featured feel, not a plain card. */
.featured-hero {
  padding: 28px 0 8px;
  background: linear-gradient(180deg, #e9eefb 0%, rgba(233, 238, 251, 0) 78%);
}
.featured-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr; position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.featured-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 3;
  background: var(--gradient-accent);
  background-size: 200% 100%;
  animation: gradient-shift 8s ease-in-out infinite;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.featured-media { position: relative; overflow: hidden; background: var(--color-surface-muted); }
/* Ken Burns (v3.3) — a very slow zoom/pan so the featured image
   feels alive. The hover zoom lives on the img itself, so the
   two transforms never fight. */
.featured-media a { display: block; animation: ken-burns 20s ease-in-out infinite alternate; }
.featured-media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.featured-card:hover .featured-media img { transform: scale(1.06); }
.featured-media .cat-pill { position: absolute; left: 16px; bottom: 16px; z-index: 2; }
.featured-body { padding: 26px 26px 28px; display: flex; flex-direction: column; }
.featured-body .cat-pill-row { margin-bottom: 10px; }
/* "Featured story" as a gradient pill badge, not a bare label. */
.featured-body .section-eyebrow {
  margin-bottom: 12px; align-self: flex-start;
  background: var(--gradient-brand); color: #fff;
  padding: .4em 1em; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-accent);
}
.featured-body .section-eyebrow::before { display: none; }
.featured-title {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 3.8vw, 2.25rem); line-height: 1.14;
  letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance;
}
.featured-title a { color: var(--color-heading); text-decoration: none; }
.featured-title a:hover { color: var(--color-accent); text-decoration: none; }
.featured-excerpt { color: var(--color-text-muted); font-size: 1.02rem; line-height: 1.65; margin: 0 0 1.1em; flex: 1; }
.featured-meta {
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center;
  font-size: .82rem; color: var(--color-text-muted);
  margin: 0 0 1.2em; padding-top: 14px; border-top: 1px solid var(--color-border);
}
.featured-meta > span + span::before {
  content: "\00B7"; color: var(--color-border-strong); margin-right: 10px; font-weight: 700;
}
.featured-meta a { color: var(--color-text); font-weight: 600; }
.featured-meta .byline-author a { color: var(--color-heading); }
.featured-readmore {
  font-weight: 700; font-size: .92rem; color: #fff !important;
  align-self: flex-start; text-decoration: none !important;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  animation: gradient-shift 8s ease-in-out infinite;
  padding: .6em 1.4em; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-accent);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}
.featured-readmore:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37, 99, 235, .45), 0 0 0 4px rgba(37, 99, 235, .12); filter: brightness(1.06); }

/* Author-initial circle used in every byline. */
.author-initial {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #1e2d4d 0%, #2563eb 100%); color: #fff;
  font-family: var(--font-sans); font-size: .8rem; font-weight: 700; line-height: 1;
  margin-right: 2px;
}
.byline-author { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Category section icons ---------- */
.cat-icon { display: block; flex-shrink: 0; }
.section-kicker-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: #eef2ff;
  background: color-mix(in srgb, var(--cat-accent, var(--color-accent)) 12%, #ffffff);
  color: var(--cat-accent, var(--color-accent));
}
.section-kicker-icon .cat-icon { width: 18px; height: 18px; }

/* ---------- Score badge (review cards) ---------- */
/* Quiet: white chip, ink numerals, hairline border — no gold shout. */
.score-badge {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: rgba(255, 255, 255, .96);
  color: var(--color-heading);
  border: 1px solid var(--color-border);
  font-weight: 700; font-size: .85rem; line-height: 1;
  padding: .45em .6em; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.score-badge small { font-size: .68rem; font-weight: 600; color: var(--color-text-muted); }

/* ---------- Stay updated ---------- */
.stay-updated {
  background: var(--gradient-dark); color: #e2e8f0;
  border-radius: var(--radius-lg); padding: 34px 30px; margin: 8px 0 44px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.stay-updated::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-accent);
}
/* Soft violet glow, top-right — depth without noise. */
.stay-updated::after {
  content: ""; position: absolute; top: -120px; right: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(124, 58, 237, .35) 0%, rgba(124, 58, 237, 0) 70%);
  pointer-events: none;
}
.stay-updated > * { position: relative; z-index: 1; }
.stay-updated h2 { color: #fff; margin: 0 0 .35em; font-size: clamp(1.4rem, 3vw, 1.7rem); }
.stay-updated > p:first-of-type { color: #cbd5e1; margin: 0 0 1.2em; max-width: 640px; }
.stay-updated .chip-links { justify-content: flex-start; margin-top: 1.4em; }
.stay-updated .chip-links a {
  background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #e2e8f0;
}
.stay-updated .chip-links a:hover {
  background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .35);
  transform: translateY(-2px);
}
.btn-rss {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--gradient-cta); color: #fff !important; font-weight: 700; font-size: .92rem;
  background-size: 200% 200%;
  animation: gradient-shift 8s ease-in-out infinite;
  padding: .6em 1.25em; border-radius: var(--radius-pill); text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, .35);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}
.btn-rss:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(234, 88, 12, .5), 0 0 0 4px rgba(234, 88, 12, .14); filter: brightness(1.05); }
.btn-rss svg { flex-shrink: 0; }

/* ---------- Sections & grids ---------- */
/* Rhythm comes from alternating soft-tinted bands (.section--alt),
   so the long homepage never reads as one flat wall. */
.section { padding: 48px 0 12px; }
.section--alt {
  background: var(--gradient-section);
  border-top: 1px solid #e3e9f7;
  border-bottom: 1px solid #e3e9f7;
}
/* Latest News (v3.4): its own warm-tinted band so the freshest
   content reads as fresh at a glance, plus a pulsing live dot in
   the kicker — the same pulse as the ticker's live dot. The cards
   reuse .post-grid/.post-card, so hover lift, image zoom and the
   shine sweep come for free. */
.section--alt.news-section {
  background: linear-gradient(180deg, #fdf2f2 0%, #f8f3fe 100%);
}
.news-live-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: #dc2626;
  animation: ticker-pulse 1.6s ease-in-out infinite;
}
.section-eyebrow {
  margin: 0 0 6px; font-size: .76rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--color-accent);
  display: flex; align-items: center; gap: 8px;
}
.section-eyebrow::before {
  content: ""; display: inline-block; width: 18px; height: 2px;
  background: var(--color-accent);
}
/* Section header: kicker (icon + count, category color), bold name,
   refined lede, gradient accent tick, pill "View all" button. */
.section-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.section-head::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 72px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cat-accent, var(--color-accent)), var(--color-accent-2));
  transition: transform .7s var(--ease) .15s;
}
/* The tick grows in when the header scrolls into view (v3.3) —
   JS adds .reveal/.in-view via the same observer as the cards. */
.section-head.reveal::after { transform: scaleX(0); transform-origin: left; }
.section-head.reveal.in-view::after { transform: scaleX(1); }
.section-head-text { min-width: 0; flex: 1 1 320px; }
.section-kicker {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cat-accent, var(--color-accent));
}
.section-title {
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 3.6vw, 2rem); margin: 0 0 .3em; line-height: 1.12;
  letter-spacing: -.02em;
}
.section-sub { color: var(--color-text-muted); margin: 0; max-width: 680px; font-size: .98rem; line-height: 1.6; }
a.view-all {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: .85rem; font-weight: 700; white-space: nowrap;
  color: var(--color-heading); text-decoration: none;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  padding: .5em 1.05em; margin-top: 4px;
  background: var(--color-surface);
  position: relative; overflow: hidden;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}
/* Gradient sweep (v3.3) — a soft light glides across the pill as
   its background turns gradient on hover. */
a.view-all::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: translateX(-180%) skewX(-20deg);
  transition: transform .6s var(--ease);
  pointer-events: none;
}
a.view-all:hover::before { transform: translateX(360%) skewX(-20deg); }
a.view-all:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cat-accent, var(--color-accent)), var(--color-accent-2));
  box-shadow: var(--shadow-accent);
  text-decoration: none;
  transform: translateY(-1px);
}
a.view-all span[aria-hidden="true"] { transition: transform var(--transition); }
a.view-all:hover span[aria-hidden="true"] { transform: translateX(3px); }

.post-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  margin-bottom: 36px;
}
/* Cards: alive and clickable — hover lifts the card, deepens the
   shadow, sweeps a gradient bar across the top and zooms the image. */
.post-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; position: relative;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.post-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 4;
  background: var(--gradient-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.post-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-5px);
}
.post-card:hover::before { transform: scaleX(1); }
.post-card-media { position: relative; overflow: hidden; background: var(--color-surface-muted); }
.post-card-thumb { display: block; aspect-ratio: 16/9; background: var(--color-surface-muted); overflow: hidden; position: relative; }
/* Shine sweep (v3.3) — a soft light glides across the image on
   hover, on top of the lift + zoom + gradient bar. */
.post-card-thumb::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 55%; z-index: 2;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .22) 42%, rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, .22) 58%, transparent 100%);
  transform: translateX(-180%) skewX(-18deg);
  transition: transform .9s var(--ease);
  pointer-events: none;
}
.post-card:hover .post-card-thumb::after { transform: translateX(320%) skewX(-18deg); }
.post-card-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s var(--ease);
}
.post-card:hover .post-card-thumb img { transform: scale(1.07); }
.post-card-thumb--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--color-dark); color: #fff;
  font-family: var(--font-sans); font-weight: 700; font-size: 1.2rem;
  text-align: center; padding: 16px; letter-spacing: -.01em;
}
/* Category pill — floats over the card image. */
.cat-pill {
  display: inline-block;
  background: rgba(11, 18, 32, .88);
  backdrop-filter: blur(4px);
  color: #fff !important;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .4em .95em; border-radius: var(--radius-pill); text-decoration: none !important;
  transition: background var(--transition);
}
a.cat-pill:hover { background: var(--color-accent); box-shadow: 0 4px 12px rgba(37, 99, 235, .35); }
.post-card-media .cat-pill { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card-title {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 1.2rem; margin: 0 0 .45em; line-height: 1.28; letter-spacing: -.01em; text-wrap: balance;
}
.post-card-title a { color: var(--color-heading); text-decoration: none; }
.post-card-title a:hover { color: var(--color-accent); text-decoration: none; }
.post-card:hover .post-card-title a { color: var(--color-accent); }
.post-card-rating {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 .55em; font-size: .9rem; color: var(--color-heading);
}
.post-card-excerpt { font-size: .93rem; color: var(--color-text-muted); margin: 0 0 1em; flex: 1; line-height: 1.6; }
/* Meta row: dot separators, small-caps labels, ink author name. */
.post-card-meta {
  font-size: .78rem; color: var(--color-text-muted);
  display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--color-border);
}
.post-card-meta > span + span::before {
  content: "\00B7"; color: var(--color-border-strong); margin-right: 10px; font-weight: 700;
}
.post-card-meta a { color: var(--color-heading); font-weight: 600; }
.post-card-readmore {
  margin-top: 12px; font-size: .88rem; font-weight: 700; color: var(--color-heading);
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
}
.post-card-readmore:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--color-heading); }
.post-card:hover .post-card-readmore { color: var(--color-accent); }
.post-card-readmore .arrow { transition: transform var(--transition); display: inline-block; }
.post-card-readmore:hover .arrow, .post-card:hover .post-card-readmore .arrow { transform: translateX(4px); }

/* Top picks — gradient top bar (always on) and gradient rank badge. */
.pick-card { position: relative; }
.pick-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 4;
  background: var(--gradient-accent);
  transform: none;
}
.pick-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: var(--gradient-brand); color: #fff; font-weight: 700; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .35em .8em; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-accent);
}
.pick-card .post-card-media .cat-pill { left: auto; right: 12px; }
.pick-card .post-card-body { padding-top: 16px; }

/* Trust strip */
.trust-strip {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 28px 26px; margin: 8px 0 44px;
  display: grid; grid-template-columns: 1fr; gap: 24px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.trust-strip::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-accent);
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; transition: transform var(--transition); }
.trust-item:hover { transform: translateY(-2px); }
.trust-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.trust-icon svg { display: block; }
.trust-strip h3 { font-size: 1rem; margin: 0 0 4px; }
.trust-strip p { font-size: .9rem; color: var(--color-text-muted); margin: 0; line-height: 1.6; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: .8rem; color: var(--color-text-muted); padding: 18px 0 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  letter-spacing: .01em;
}
.breadcrumbs a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumbs .sep { margin: 0 8px; color: var(--color-border-strong); }
.breadcrumbs .current { color: var(--color-text); font-weight: 600; }

/* ---------- Single post ---------- */
.single-wrap { padding: 8px 0 48px; }
.single-layout { padding-top: 16px; }
.single-main { max-width: var(--max-width-narrow); margin: 0 auto; min-width: 0; }
.single-header { margin-bottom: 20px; }
.single-header h1 { font-size: clamp(1.8rem, 4.6vw, 2.5rem); margin: .4em 0 .45em; letter-spacing: -.015em; }
.cat-pill-row { margin: 0 0 4px; }
.single-meta {
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center;
  color: var(--color-text-muted); font-size: .85rem; margin-bottom: 4px;
  padding-bottom: 16px; border-bottom: 1px solid var(--color-border);
}
.single-meta > span + span::before {
  content: "\00B7"; color: var(--color-border-strong); margin-right: 10px; font-weight: 700;
}
.single-meta a { color: var(--color-heading); font-weight: 600; }
.single-meta .updated {
  font-weight: 700; color: var(--color-accent);
  font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
}
.post-thumbnail {
  margin: 20px 0 26px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.post-thumbnail img { display: block; width: 100%; }
.post-thumbnail figcaption {
  background: var(--color-surface); color: var(--color-text-muted);
  font-size: .85rem; text-align: center; padding: 10px 14px;
}
.entry-content { font-size: 1.06rem; line-height: 1.78; }
.entry-content > p, .entry-content > ul, .entry-content > ol { max-width: 70ch; }
/* Drop cap on the opening paragraph — gradient ink, a signature. */
.entry-content > p:first-of-type::first-letter {
  font-family: var(--font-sans);
  font-size: 3.4em; font-weight: 700; line-height: .82;
  float: left; padding: .06em .12em 0 0; color: var(--color-heading);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .entry-content > p:first-of-type::first-letter {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
}
.entry-content > h2 {
  padding-top: .4em; border-top: 1px solid var(--color-border); margin-top: 1.6em;
}
.entry-content > h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.entry-content h3 { font-family: var(--font-sans); font-size: 1.3rem; }
/* Anchor targets clear the sticky header (64px on mobile,
   + the nav row on desktop — see the 900px block). */
.entry-content h2, .entry-content h3 { scroll-margin-top: 88px; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-content iframe { border-radius: var(--radius-sm); }
.entry-content a { font-weight: 500; }
.entry-footer { margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--color-border); font-size: .9rem; color: var(--color-text-muted); }
.entry-footer .tags-links a {
  display: inline-block; background: var(--color-surface-muted); border: 1px solid var(--color-border);
  border-radius: var(--radius-pill); padding: .15em .9em; margin: 0 6px 6px 0; font-size: .85rem; text-decoration: none; color: var(--color-text);
  transition: background var(--transition), border-color var(--transition);
}
.entry-footer .tags-links a:hover { background: var(--color-accent-soft); border-color: var(--color-accent-soft); }
.how-we-test-link { margin-top: 1em; }
.how-we-test-link a { font-weight: 700; }

/* Table of contents — quiet box, section-sign marker. */
.toc {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-left: 2px solid var(--color-heading);
  border-radius: var(--radius); padding: 18px 22px; margin: 0 0 1.8em; box-shadow: var(--shadow-sm);
}
.toc-title { font-weight: 700; font-size: 1rem; margin: 0 0 .6em; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--color-heading); }
.toc-title::before { content: "\00A7"; font-family: var(--font-sans); font-size: 1.15rem; color: var(--color-text-muted); margin-right: -4px; }
.toc-toggle { background: none; border: 0; color: var(--color-accent); cursor: pointer; font-size: .85rem; font-weight: 700; padding: 2px 4px; margin-left: auto; }
.toc-toggle:hover { text-decoration: underline; }
.toc ol, .toc ul { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .3em; }
.toc li li { font-size: .92em; }
.toc a { color: var(--color-text); text-decoration: none; }
.toc a:hover { color: var(--color-accent); text-decoration: underline; }
.toc.collapsed ol, .toc.collapsed ul { display: none; }

/* Star rating — muted amber, half star via a two-tone glyph. */
.rating-stars { color: var(--color-star); letter-spacing: 2px; font-size: 1.05rem; white-space: nowrap; }
.rating-stars .star-full { color: var(--color-star); }
.rating-stars .star-half {
  background: linear-gradient(90deg, var(--color-star) 50%, #cbd5e1 50%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rating-stars .star-off { color: #cbd5e1; }
.rating-box {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 3px solid var(--color-star); border-radius: var(--radius);
  padding: 18px 22px; margin: 1.4em 0; box-shadow: var(--shadow-sm);
}
.rating-box .rating-score {
  font-family: var(--font-sans);
  font-size: 2.4rem; font-weight: 700; line-height: 1; letter-spacing: -.02em;
  color: var(--color-heading);
}
.rating-box .rating-label { font-weight: 700; color: var(--color-heading); }
.rating-box .rating-note { font-size: .88rem; color: var(--color-text-muted); }

/* Pros / cons */
.pros-cons {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden; margin: 1.6em 0; box-shadow: var(--shadow-sm);
}
.pros-cons h4 { margin: 0 0 .7em; font-size: 1rem; }
.pros-cons ul { margin: 0; padding-left: 0; list-style: none; }
.pros-cons li { margin-bottom: .5em; font-size: .95rem; }
.pros-cons .pros { background: var(--color-pro-bg); padding: 20px 22px; }
.pros-cons .pros h4 { color: var(--color-pro); }
.pros-cons .cons { background: var(--color-con-bg); padding: 20px 22px; border-top: 1px solid var(--color-border); }
.pros-cons .cons h4 { color: var(--color-con); }
.pros-cons-title {
  grid-column: 1 / -1; background: var(--gradient-dark); color: #fff;
  font-weight: 700; padding: 12px 22px; font-size: 1rem; margin: 0;
}

/* Comparison tables — horizontal scroll wrapper on small screens.
   Small-caps header row, hairline rows, quiet hover. */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 1.6em 0; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 4px; }
table.comparison, .entry-content table {
  background: var(--color-surface); font-size: .92rem; min-width: 560px; margin: 0;
}
table.comparison th, .entry-content table th {
  background: var(--color-dark); color: #fff; text-align: left;
  padding: .8em .95em; font-weight: 700; white-space: nowrap;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}
table.comparison td, .entry-content table td {
  padding: .7em .95em; border-bottom: 1px solid var(--color-border); vertical-align: top;
}
table.comparison tr:nth-child(even) td, .entry-content table tr:nth-child(even) td { background: #f8fafc; }
table.comparison tr:hover td, .entry-content table tr:hover td { background: var(--color-surface-muted); }
table.comparison tr:last-child td, .entry-content table tr:last-child td { border-bottom: 0; }
table.comparison td:first-child, .entry-content table td:first-child { font-weight: 700; white-space: nowrap; color: var(--color-heading); }
.table-caption { font-size: .85rem; color: var(--color-text-muted); margin: .4em 0 1.4em; }

/* Callout / verdict boxes — flat fills, ink rules. */
.callout {
  border: 1px solid var(--color-accent-soft); border-left: 3px solid var(--color-accent);
  background: #eff6ff;
  border-radius: var(--radius); padding: 18px 22px; margin: 1.6em 0;
  box-shadow: var(--shadow-sm);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong:first-child { color: var(--color-heading); }
.verdict-box {
  background: var(--color-dark); color: #e2e8f0; border-radius: var(--radius-lg);
  padding: 26px 28px; margin: 1.8em 0; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.verdict-box::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-accent);
}
.verdict-box h3, .verdict-box h4 { color: #fff; margin-top: 0; font-family: var(--font-sans); font-size: 1.35rem; }
.verdict-box p:last-child { margin-bottom: 0; }
.verdict-box a { color: #93c5fd; }

/* FAQ */
.faq { margin: 1.4em 0; }
.faq-item {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] { border-color: var(--color-accent-soft); box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer; font-weight: 700; color: var(--color-heading);
  padding: 15px 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center;
  transition: background var(--transition);
}
.faq-item summary:hover { background: var(--color-surface-muted); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--color-accent);
  flex-shrink: 0; line-height: 1; transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 18px 16px; font-size: .97rem; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* Author box */
.author-box {
  display: flex; gap: 18px; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 22px; margin: 2.4em 0; box-shadow: var(--shadow-sm); align-items: flex-start;
}
.author-box .avatar { border-radius: 50%; flex-shrink: 0; border: 2px solid var(--color-border); }
.author-box-name { font-family: var(--font-sans); font-weight: 700; color: var(--color-heading); font-size: 1.1rem; margin: 0; }
.author-box-bio { font-size: .92rem; color: var(--color-text-muted); margin: .35em 0 0; line-height: 1.6; }

/* Related posts */
.related-posts { margin: 2.6em 0 0; padding-top: 2em; border-top: 1px solid var(--color-border); }
.related-posts h2 { font-size: 1.4rem; margin-bottom: 1em; }
.post-navigation {
  display: flex; justify-content: space-between; gap: 16px; margin: 2.4em 0 0;
  border-top: 1px solid var(--color-border); padding-top: 1.4em; font-size: .92rem;
}
.post-navigation a { text-decoration: none; font-weight: 600; }
.post-navigation a:hover { text-decoration: underline; }
.post-navigation .nav-label { display: block; font-size: .78rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-bottom: 4px; }
.post-navigation .nav-next { text-align: right; }

/* ---------- Archives, search, 404 ---------- */
/* Archive header: no card box — kicker, bold title,
   lede description, gradient tick below. */
.archive-header {
  padding: 24px 0 22px;
  margin: 20px 0 8px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.archive-header::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 72px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--archive-accent, var(--color-accent)), var(--color-accent-2));
}
.archive-header h1 { margin: 0 0 .3em; font-size: clamp(1.7rem, 4vw, 2.15rem); }
.archive-kicker {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--archive-accent, var(--color-accent));
}
.archive-icon { display: inline-flex; color: var(--archive-accent, var(--color-accent)); }
.archive-icon .cat-icon { width: 22px; height: 22px; }
.archive-description { color: var(--color-text-muted); max-width: 720px; font-size: 1rem; line-height: 1.6; }
.archive-description p { margin: 0; }
.archive-grid { margin-top: 28px; }
.no-results, .error-404 { padding: 56px 0; text-align: center; }
.no-results .archive-kicker, .error-404 .archive-kicker { justify-content: center; }
.no-results h1, .no-results h2, .error-404 h1 { font-size: 2rem; margin-top: .2em; }
.error-code {
  font-family: var(--font-sans);
  font-size: clamp(4.5rem, 16vw, 7.5rem); font-weight: 700; line-height: 1; margin: 0;
  color: var(--color-border-strong);
  letter-spacing: -.02em;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .error-code {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
}
.search-form--inline { display: flex; max-width: 480px; margin: 1.4em auto; border-radius: var(--radius-pill); }
.search-form--inline input[type="search"] {
  flex: 1; padding: .7em 1.2em; border: 1px solid var(--color-border); border-right: 0;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill); min-width: 0; background: #fff;
}
.search-form--inline input[type="search"]:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .16); }
.search-form--inline button {
  background: var(--gradient-brand); color: #fff; border: 0;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0; padding: .7em 1.3em; cursor: pointer; font-weight: 700;
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
}
.search-form--inline button:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37, 99, 235, .45); }
.chip-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 1.2em; }
.chip-links a {
  display: inline-block; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-pill); padding: .35em 1.1em; font-size: .88rem; font-weight: 600;
  color: var(--color-text); text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.chip-links a:hover { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-surface); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pagination { display: flex; justify-content: center; gap: 8px; margin: 8px 0 52px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-block; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); padding: .4em .9em; text-decoration: none; color: var(--color-text); font-weight: 600;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.pagination .page-numbers:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.pagination .page-numbers.current { background: var(--gradient-brand); border-color: transparent; color: #fff; box-shadow: var(--shadow-accent); }

/* ---------- Pages ---------- */
.page-wrap { padding: 24px 0 52px; }
.page-header { margin-bottom: 20px; }
.page-header h1 { font-size: clamp(1.8rem, 4.6vw, 2.3rem); margin: 0 0 .3em; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 2.6em; border-top: 1px solid var(--color-border); padding-top: 1.8em; }
.comments-area h2 { font-size: 1.3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.comment-list .children { list-style: none; padding-left: 20px; margin-top: 14px; }
.comment-author { font-weight: 700; color: var(--color-heading); }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-meta { font-size: .8rem; color: var(--color-text-muted); margin-bottom: .5em; }
.comment-meta a { color: var(--color-text-muted); }
.comment-form label { display: block; font-size: .85rem; font-weight: 600; color: var(--color-heading); margin-bottom: 5px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: .65em .85em; background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--color-accent); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .16); }
.comment-form .submit {
  background: var(--gradient-brand); color: #fff; border: 0; border-radius: var(--radius-sm);
  padding: .65em 1.5em; cursor: pointer; font-weight: 700;
  box-shadow: var(--shadow-accent);
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
}
.comment-form .submit:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37, 99, 235, .4); }

/* ---------- Sidebar & widgets ---------- */
.site-sidebar { max-width: 340px; margin: 36px auto 0; min-width: 0; }
.widget { margin-bottom: 28px; }
.widget-title {
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  margin: 0 0 .9em; padding-bottom: .6em;
  border-bottom: 2px solid var(--color-heading);
  border-image: linear-gradient(90deg, var(--color-heading), var(--color-accent)) 1;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: .45em 0; border-bottom: 1px solid var(--color-border); font-size: .95rem; }
.widget li:last-child { border-bottom: 0; }
.widget li a { text-decoration: none; color: var(--color-text); }
.widget li a:hover { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.widget_search .search-form { display: flex; }
.widget_search input[type="search"] {
  flex: 1; border: 1px solid var(--color-border); border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding: .55em .75em; min-width: 0;
}
.widget_search button {
  background: var(--gradient-brand); color: #fff; border: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: .55em .95em; cursor: pointer; font-weight: 600;
  transition: filter var(--transition), box-shadow var(--transition);
}
.widget_search button:hover { filter: brightness(1.1); box-shadow: 0 4px 14px rgba(37, 99, 235, .4); }

/* ---------- Ad slots (AdSense-ready widget areas) ----------
   Each slot reserves space with min-height so the layout does not
   shift when an ad loads. Slots render only when their widget
   area has widgets (see servernewshub_ad_slot() in functions.php). */
.ad-slot {
  background: var(--color-surface-muted);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px; margin: 20px auto; overflow: hidden;
}
.ad-slot-label {
  font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: 6px; line-height: 1;
}
.ad-slot .ad-widget { width: 100%; display: flex; justify-content: center; }
.ad-slot ins, .ad-slot iframe { max-width: 100%; }
.ad-slot--leaderboard { min-height: 112px; max-width: 970px; }
.ad-slot--below-title { min-height: 112px; max-width: 728px; margin: 18px auto 4px; }
.ad-slot--in-content { min-height: 264px; max-width: 728px; margin: 1.8em auto; }
.ad-slot--sidebar { min-height: 264px; width: 100%; max-width: 300px; margin: 0 0 28px; }
.ad-slot--footer { min-height: 112px; max-width: 970px; margin: 32px auto 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark); color: #94a3b8; margin-top: 48px; position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-accent);
}
.footer-widgets {
  display: grid; grid-template-columns: 1fr; gap: 36px; padding: 48px 0 32px;
}
.footer-grid-4 { grid-template-columns: 1fr; }
/* Footer column headings: small-caps labels, not uniform bold titles. */
.site-footer h3, .site-footer .widget-title {
  color: #fff; font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 0; margin-bottom: 1em; padding-bottom: .7em; position: relative;
}
.site-footer h3::after, .site-footer .widget-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px; border-radius: 2px; background: var(--gradient-accent);
}
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55em; font-size: .92rem; }
.site-footer li a { transition: color var(--transition); }
.site-footer li a:hover { text-decoration: underline; text-underline-offset: 2px; }
.footer-about p { font-size: .92rem; line-height: 1.65; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .site-title { font-size: 1.25rem; }
.footer-brand .brand-mark { width: 34px; height: 34px; }
.footer-legal a { font-weight: 500; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem;
}
.footer-disclosure { font-size: .8rem; line-height: 1.6; color: #64748b; padding-bottom: 22px; margin-bottom: 0; max-width: 860px; }

/* Back to top */
.back-to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 44px; height: 44px; border: 1px solid var(--color-border-strong); border-radius: 50%;
  background: var(--color-surface); color: var(--color-heading); font-size: 1.1rem; line-height: 1;
  cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility 0s linear .25s, background var(--transition), color var(--transition);
}
.back-to-top.visible {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity var(--transition), transform var(--transition), background var(--transition), color var(--transition);
}
.back-to-top:hover { background: var(--gradient-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-accent); }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  body { font-size: 17px; }
  .container, .container-narrow { padding: 0 20px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .pros-cons { grid-template-columns: 1fr 1fr; }
  .pros-cons .cons { border-top: 0; border-left: 1px solid var(--color-border); }
  .footer-widgets { grid-template-columns: repeat(2, 1fr); }
  .footer-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .featured-card { grid-template-columns: 1.15fr 1fr; }
  .featured-media { min-height: 320px; }
  .featured-body { padding: 32px 32px 34px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .ad-slot--leaderboard, .ad-slot--footer { min-height: 100px; }
  .ad-slot--below-title { min-height: 100px; }
}
@media (max-width: 899px) {
  /* Compact header row: logo + title only, no truncated tagline. */
  .site-tagline { display: none; }
}
@media (min-width: 900px) {
  /* Desktop nav: its own full-width bar under the logo row,
     no hamburger, one centered line — never wraps. */
  .menu-toggle { display: none; }
  .header-search { display: block; }
  .header-nav {
    background: var(--color-header-2);
    border-top: 1px solid rgba(255, 255, 255, .07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  }
  .main-nav {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; padding: 0; box-shadow: none; pointer-events: auto;
    transition: none;
  }
  .main-nav ul { flex-direction: row; justify-content: center; gap: 2px; flex-wrap: nowrap; }
  .main-nav a {
    position: relative; padding: .6em .75em; border-bottom: 0;
    font-size: .84rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
    white-space: nowrap;
  }
  /* Sliding gradient underline on hover + on the current page. */
  .main-nav a::after {
    content: ""; position: absolute; left: .75em; right: .75em; bottom: 3px;
    height: 2px; border-radius: 2px; background: var(--gradient-accent);
    background-size: 200% 100%;
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--transition);
  }
  .main-nav a:hover::after,
  .main-nav .current-menu-item > a::after,
  .main-nav .current-category-ancestor > a::after,
  .main-nav .current-menu-parent > a::after,
  .main-nav .current-post-ancestor > a::after { transform: scaleX(1); animation: gradient-shift 6s ease-in-out infinite; }
  .main-nav a:hover { background: none; }
  .main-nav .current-menu-item > a, .main-nav .current-category-ancestor > a,
  .main-nav .current-menu-parent > a, .main-nav .current-post-ancestor > a { background: none; color: #fff; }
  .nav-search { display: none; }
  .site-tagline { max-width: none; }
  .entry-content h2, .entry-content h3 { scroll-margin-top: 134px; }
}
@media (min-width: 1024px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-widgets { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid-4 { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  /* Roomier menu spacing once the viewport allows it. */
  .main-nav a { padding: .55em 1em; }
  .main-nav a::after { left: 1em; right: 1em; }
  /* Single post with sidebar: content + 300px ad/widget column. */
  .single-layout.has-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px; align-items: start;
  }
  .single-layout.has-sidebar .single-main { max-width: none; margin: 0; }
  .single-layout.has-sidebar .site-sidebar { max-width: none; margin: 0; position: sticky; top: calc(var(--header-height) + var(--nav-height) + 24px); }
  .single-layout.has-sidebar .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .section { padding-top: 52px; }
  .post-grid { gap: 24px; }
}

/* Very small screens (360px and below). */
@media (max-width: 400px) {
  .rating-box { padding: 16px; gap: 10px; }
  .author-box { flex-direction: column; }
  .post-navigation { flex-direction: column; }
  .post-navigation .nav-next { text-align: left; }
  .site-tagline { display: none; }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  /* The ticker stops entirely and becomes a hand-scrollable row. */
  .ticker-track { animation: none; }
  .ticker-live-dot, .news-live-dot { animation: none; }
  .ticker-viewport {
    overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: none; mask-image: none;
  }
  .ticker-viewport::-webkit-scrollbar { display: none; }
  /* v3.3 living motion freezes to its static states: no Ken Burns,
     no drifting gradients, no shine sweeps, no scroll progress bar.
     (The section-head tick and card reveal are JS-gated on reduced
     motion, so they never start; the clock sets once and stays.) */
  .featured-media a,
  .brand-mark,
  .site-title .hub,
  .featured-card::before,
  .featured-readmore,
  .btn-rss,
  .main-nav a::after { animation: none !important; }
  .scroll-progress { display: none; }
}

/* WordPress core alignment helpers */
.alignwide { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--color-text-muted); text-align: center; margin-top: .4em; }
.gallery { display: grid; gap: 12px; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
