/*
Theme Name: Specvaro
Theme URI: https://specvaro.com
Author: Specvaro
Description: Consumer tech blog theme for Specvaro — reviews, comparisons, buying guides.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: specvaro
*/

/* ============================================================
   FONTS — DM Sans (UI) + Source Serif 4 (body) bundled locally
   ============================================================ */
@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/DMSans-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/DMSans-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/DMSans-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/DMSans-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('assets/fonts/SourceSerif4-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('assets/fonts/SourceSerif4-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ============================================================
   DESIGN TOKENS — v1.2 Wirecutter/Tom's Guide lane
   Quiet chrome · white article paper · one teal accent
   ============================================================ */
:root {
  --bg:             #F5F7FA;
  --bg-elevated:    #FFFFFF;
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #EEF2F7;
  --bg-nav:         #FFFFFF;
  --bg-footer:      #101826;
  --bg-section:     #EEF2F7;
  --bg-article:     #FFFFFF;
  --bg-home-hero:   #F5F7FA;

  --text:           #0B1220;
  --text-dim:       #2A3447;
  --text-muted:     #5C6578;
  --text-on-dark:   #E8EEF6;

  --accent:         #0B6E90;
  --accent-dim:     #085574;
  --accent-bright:  #1490B8;
  --accent-soft:    rgba(11, 110, 144, 0.10);
  --accent-rgb:     11, 110, 144;

  --ember:          #D35400;
  --ember-soft:     rgba(211, 84, 0, 0.12);

  --success:        #157A3C;
  --success-soft:   rgba(21, 122, 60, 0.10);
  --danger:         #C1121F;
  --danger-soft:    rgba(193, 18, 31, 0.08);

  --border:         #D5DCE6;
  --border-light:   #E8EDF3;
  --shadow:         0 2px 12px rgba(11, 18, 32, 0.06);
  --shadow-hover:   0 8px 24px rgba(11, 18, 32, 0.10);
  --overlay:        rgba(11, 18, 32, 0.4);

  --font-ui:        'DM Sans', system-ui, sans-serif;
  --font-body:      'Source Serif 4', Georgia, 'Times New Roman', serif;

  --radius-sm:      4px;
  --radius:         8px;
  --radius-lg:      12px;

  --nav-h:          64px;
  --max-w:          1200px;
  --article-w:      680px;

  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* ============================================================
   READING PROGRESS BAR (signature element)
   ============================================================ */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 1000;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  transition: box-shadow 0.2s var(--ease);
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  opacity: 0.9;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 32px;
}

/* Logo */
.site-logo {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--text);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-logo .logo-s {
  color: var(--accent);
}
.site-logo img {
  height: 32px;
  width: auto;
}

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  background: var(--accent-soft);
}
.nav-link.active {
  color: var(--accent);
}

/* Dropdown arrow */
.nav-arrow {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform 0.2s var(--ease);
}
.nav-item:hover .nav-arrow,
.nav-item:focus-within .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  box-shadow: var(--shadow-hover);
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  transition: color 0.12s, background 0.12s;
}
.dropdown-link:hover {
  color: var(--text);
  background: var(--accent-soft);
}

/* Nav right: search + mobile toggle */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Search toggle + inline expand (no full-page overlay) */
.search-toggle,
.hamburger {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}
.search-toggle:hover, .hamburger:hover {
  color: var(--text);
  background: var(--accent-soft);
}
.hamburger { display: none; }

.nav-search {
  display: flex;
  align-items: center;
  position: relative;
}
.nav-search-field {
  display: none;
  align-items: center;
  gap: 0;
  margin-right: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: visible;
  width: min(280px, 42vw);
}
.nav-search.open .nav-search-field {
  display: flex;
}
.nav-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text);
  outline: none;
}
.nav-search-input::placeholder { color: var(--text-muted); }
.nav-search-submit {
  padding: 0 10px;
  color: var(--accent);
  display: flex;
  align-items: center;
}
.nav-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(320px, 90vw);
  max-height: 360px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  z-index: 250;
  padding: 6px;
}
.nav-search.open .nav-search-results:not(:empty) {
  display: block;
}
.nav-search-hit {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
}
.nav-search-hit:hover { background: var(--accent-soft); }
.nav-search-hit img {
  width: 48px; height: 36px;
  object-fit: cover;
  border-radius: 4px;
}
.nav-search-hit-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}
.nav-search-hit-cat {
  font-size: 11px;
  color: var(--accent);
  margin-top: 2px;
}

/* Legacy overlay removed — keep empty to avoid FOUC if cached */

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 300px; height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 400;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
  padding: 24px 0;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-overlay {
  position: fixed; inset: 0;
  background: var(--overlay);
  z-index: 390;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

.drawer-logo {
  padding: 0 24px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 20px;
}
.drawer-logo .logo-s { color: var(--accent); }

.drawer-nav { padding: 16px 0; }

.drawer-link {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.12s, background 0.12s;
}
.drawer-link:hover { color: var(--text); background: var(--accent-soft); }

.drawer-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.12s;
}
.drawer-accordion-toggle:hover { color: var(--text); }

.drawer-accordion-icon {
  width: 16px; height: 16px;
  fill: currentColor;
  transition: transform 0.2s;
}
.drawer-accordion-toggle.open .drawer-accordion-icon { transform: rotate(180deg); }

.drawer-children {
  display: none;
  background: var(--bg-card-hover);
}
.drawer-children.open { display: block; }

.drawer-child-link {
  display: block;
  padding: 10px 24px 10px 40px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.12s;
}
.drawer-child-link:hover { color: var(--text); }

/* ============================================================
   BADGES / LABELS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-cat {
  background: var(--accent-soft);
  color: var(--accent);
}
.badge-hot {
  background: var(--ember-soft);
  color: var(--ember);
}
.badge-new {
  background: var(--success-soft);
  color: var(--success);
}

/* ============================================================
   POST CARDS
   ============================================================ */
.post-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.post-card-hit {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}
.post-card-hit:hover .card-title { color: var(--accent); }
.card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-card-hover);
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.post-card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb-fallback {
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: var(--bg-card-hover);
}
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
}
.card-badge a { position: relative; z-index: 2; }

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a:hover { color: var(--accent); }

.card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
}
.card-meta .dot { opacity: 0.4; }

/* ============================================================
   HOMEPAGE — HERO
   ============================================================ */
.home-hero {
  padding: 36px 0 44px;
  background: var(--bg-home-hero);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Featured post — left */
.hero-featured {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}
.hero-featured:hover { border-color: var(--accent); }
.hero-featured-hit {
  display: block;
  color: inherit;
  text-decoration: none;
}
.hero-featured-hit:hover .hero-title { color: var(--accent); }
.hero-featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.hero-featured-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-card-hover);
}
.hero-featured-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.hero-featured:hover .hero-featured-thumb img { transform: scale(1.03); }

.hero-featured-body {
  padding: 28px;
}

.hero-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-bottom: 12px;
}

.hero-excerpt {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 10px;
}

/* Secondary posts — right column */
.hero-secondary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-secondary-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.hero-secondary-card:hover {
  border-color: var(--accent);
  transform: translateX(2px);
}
.hero-secondary-hit {
  display: grid;
  grid-template-columns: 140px 1fr;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}
.hero-secondary-hit:hover .secondary-title { color: var(--accent); }
.hero-secondary-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.secondary-thumb {
  overflow: hidden;
  background: var(--bg-card-hover);
  min-height: 100%;
}
.secondary-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.hero-secondary-card:hover .secondary-thumb img { transform: scale(1.06); }

.secondary-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.secondary-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.secondary-title a:hover { color: var(--accent); }

.secondary-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}
.section-link:hover { gap: 8px; }

/* ============================================================
   HOMEPAGE — CATEGORY SECTIONS
   ============================================================ */
.category-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================================
   HOMEPAGE — TRENDING STRIP
   ============================================================ */
.trending-strip {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.trending-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.trending-list::-webkit-scrollbar { display: none; }

.trending-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: border-color 0.15s, background 0.15s;
}
.trending-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.trending-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  min-width: 20px;
}

.trending-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ============================================================
   NEWSLETTER BAND
   ============================================================ */
.newsletter-band {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  text-align: center;
}

.newsletter-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.newsletter-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.newsletter-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 13px 18px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-input::placeholder { color: var(--text-muted); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--accent-dim); }
.btn-primary:active { transform: scale(0.98); }

/* ============================================================
   ARTICLE PAGE — SINGLE POST (read-first paper column)
   ============================================================ */
.article-main {
  min-width: 0;
  background: var(--bg-article);
  padding: 40px 44px 56px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}

.article-layout {
  display: grid;
  grid-template-columns: var(--article-w) minmax(220px, 280px);
  gap: 40px;
  align-items: start;
  padding: 40px 0 72px;
  max-width: calc(var(--article-w) + 280px + 40px);
  margin: 0 auto;
}

body.is-single,
body.single {
  background: var(--bg);
}

body.is-home,
body.home {
  background: var(--bg);
}

/* Article header */
.article-header {
  margin-bottom: 28px;
}

.article-cats {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.article-title {
  font-family: var(--font-ui);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.6px;
  color: var(--text);
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.article-meta .read-time {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Featured image */
.article-featured-img {
  margin: 28px 0 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-section);
  border: 1px solid var(--border-light);
}
.article-featured-img img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

/* Share — one control, panel of destinations (no "Share" label) */
.share-bar {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.share-menu {
  position: relative;
}
.share-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.share-trigger:hover,
.share-menu.open .share-trigger {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.share-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  padding: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  z-index: 40;
}
.share-menu.open .share-panel { display: block; }
.share-panel a,
.share-panel button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.share-panel a:hover,
.share-panel button:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Article body — primary reading surface */
.entry-content {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  max-width: none;
}

.entry-content > p:first-of-type {
  font-size: 1.08em;
  line-height: 1.75;
  color: var(--text-dim);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-ui);
  color: var(--text);
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 0.65em;
}

.entry-content h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.25px; }
.entry-content h3 { font-size: 1.15rem; font-weight: 600; }
.entry-content h4 { font-size: 1.05rem; font-weight: 600; }

.entry-content p { margin-bottom: 1.25em; }

.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(var(--accent-rgb), 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}
.entry-content a:hover { text-decoration-color: var(--accent); }

.entry-content strong { font-weight: 600; color: var(--text); }
.entry-content em { font-style: italic; }

.entry-content ul,
.entry-content ol {
  margin: 1.1em 0 1.35em 1.35em;
  list-style: revert;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.entry-content img {
  border-radius: var(--radius);
  margin: 1.75em 0;
  border: 1px solid var(--border-light);
}

.entry-content figcaption {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -1.25em;
  margin-bottom: 1.75em;
  font-style: italic;
}

.entry-content blockquote {
  margin: 1.75em 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-dim);
  font-style: italic;
}

/* Tags */
.article-tags {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-tags a {
  padding: 5px 12px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.15s, border-color 0.15s;
}
.article-tags a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   ENTRY CONTENT — COMPARISON TABLES
   ============================================================ */
.entry-content .table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
}
.entry-content table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 15px;
  display: table;
  table-layout: auto;
  border: none;
  border-radius: 0;
}

.entry-content thead th {
  background: var(--accent-dim);
  color: #fff;
  font-weight: 600;
  padding: 14px 18px;
  text-align: left;
  white-space: nowrap;
}

.entry-content tbody tr:nth-child(odd) td {
  background: #fff;
}
.entry-content tbody tr:nth-child(even) td {
  background: var(--bg-card-hover);
}
.entry-content tbody tr:hover td {
  background: var(--accent-soft);
}

.entry-content td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: top;
}

.entry-content tbody tr:last-child td { border-bottom: none; }

/* First column emphasis */
.entry-content td:first-child {
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ============================================================
   ENTRY CONTENT — FAQ (p > strong:only-child pattern)
   ============================================================ */
.entry-content p > strong:only-child {
  display: block;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  padding: 16px 0 6px 16px;
  border-left: 3px solid var(--accent);
  margin-top: 2em;
  margin-bottom: 0.4em;
  line-height: 1.4;
}

/* ============================================================
   ENTRY CONTENT — PROS & CONS
   Same as normal H2 / lists (no red/green headings or ✕/✓ icons)
   ============================================================ */

/* ============================================================
   AD SLOTS — empty placeholders for future monetization
   Hidden until .ad-slot--live or filled with an ad script
   ============================================================ */
.ad-slot {
  display: none;
  margin: 24px 0;
  min-height: 0;
  text-align: center;
}
.ad-slot.ad-slot--live,
.ad-slot:not(:empty) {
  display: block;
  min-height: 90px;
  padding: 12px;
  background: var(--bg-section);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}
.ad-slot-sidebar {
  margin: 0 0 24px;
}
.ad-slot-in-article {
  margin: 32px 0;
}
.ad-slot-below-header {
  margin: 0 0 24px;
}

/* ============================================================
   ENTRY CONTENT — VERDICT / CONCLUSION (Tom's Guide-style)
   ============================================================ */
.entry-content h2[data-verdict] {
  color: var(--accent-dim);
  margin-bottom: 0.5em;
}

.entry-content .verdict-panel {
  background: linear-gradient(180deg, rgba(11, 110, 144, 0.08), rgba(11, 110, 144, 0.03));
  border: 1px solid rgba(11, 110, 144, 0.22);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem 0.35rem;
  margin: 0 0 2em;
}
.entry-content .verdict-panel > *:last-child {
  margin-bottom: 1rem;
}
.entry-content .verdict-panel p {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dim);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

/* Table of contents */
.toc-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.toc-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.toc-list { display: flex; flex-direction: column; gap: 4px; }

.toc-item a {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
  line-height: 1.4;
}
.toc-item a:hover { color: var(--text); background: var(--accent-soft); }
.toc-item.active a {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

/* Related widget */
.related-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.widget-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.related-posts { display: flex; flex-direction: column; gap: 14px; }

.related-post {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
}

.related-thumb {
  width: 64px; height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card-hover);
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }

.related-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-title:hover { color: var(--accent); }

/* ============================================================
   CATEGORY / ARCHIVE PAGE
   ============================================================ */
.archive-header {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.archive-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.archive-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.archive-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: border-color 0.15s, color 0.15s;
}
.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */
.search-header {
  padding: 48px 0 32px;
}
.search-results-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.search-results-title span { color: var(--accent); }
.search-count { font-size: 14px; color: var(--text-muted); }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 16px;
}
.error-404 .error-num {
  font-size: 96px;
  font-weight: 700;
  color: var(--border-light);
  line-height: 1;
}
.error-404 h1 { font-size: 24px; font-weight: 600; }
.error-404 p { color: var(--text-muted); max-width: 400px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-footer);
  border-top: none;
  padding: 56px 0 32px;
  margin-top: 80px;
  color: var(--text-on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-about .footer-logo {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
  color: var(--text-on-dark);
}
.footer-logo .logo-s { color: var(--accent-bright); }

.footer-desc {
  font-size: 14px;
  color: rgba(232, 238, 246, 0.65);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(232, 238, 246, 0.45);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 14px;
  color: rgba(232, 238, 246, 0.7);
  transition: color 0.12s;
}
.footer-link:hover { color: #fff; }

/* ============================================================
   STATIC PAGES (About, Contact, Privacy, Disclaimer, Editorial)
   ============================================================ */
.page-shell {
  background: var(--bg);
  min-height: 60vh;
}
.page-container {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 80px;
}
.page-container--wide {
  max-width: 960px;
}
.page-article {
  background: var(--bg-article);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px 44px 48px;
}
.page-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.page-title {
  font-family: var(--font-ui);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--text);
}
.page-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 28px;
  max-width: 40rem;
}
.page-content {
  font-size: 17px;
  line-height: 1.75;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 36px;
  align-items: start;
  margin-top: 8px;
}
.contact-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}
.contact-card:first-child { padding-top: 0; }
.contact-card-title {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.contact-card-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0;
}
.contact-card-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.contact-form-wrap {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-form-title {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
}
.contact-form { display: grid; gap: 14px; }
.contact-field label {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: 15px/1.4 var(--font-ui);
  color: var(--text);
  background: #fff;
}
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-hp {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
}
.contact-alert {
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}
.contact-alert--ok {
  background: var(--success-soft);
  border: 1px solid rgba(21, 122, 60, 0.25);
  color: var(--success);
}
.contact-alert--err {
  background: var(--danger-soft);
  border: 1px solid rgba(193, 18, 31, 0.25);
  color: var(--danger);
}
.contact-form-wrap--solo {
  margin-top: 8px;
}
.contact-form .optional {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(232, 238, 246, 0.12);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  color: rgba(232, 238, 246, 0.45);
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .page-article { padding: 24px 18px 32px; }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .nav-link { font-size: 13px; padding: 8px 10px; }
}

@media (max-width: 1100px) {
  .article-layout {
    grid-template-columns: 1fr;
    max-width: 720px;
  }
  .article-sidebar { position: static; }
  .article-main { padding: 28px 24px 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .primary-nav { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .hero-secondary-hit { grid-template-columns: 100px 1fr; }
  .article-title { font-size: 26px; }
  .article-main { padding: 20px 16px 32px; }
  .entry-content { font-size: 17px; line-height: 1.75; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .share-bar { flex-wrap: wrap; }
  .container { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
