﻿/*
Theme Name: TechVergeon Editorial
Theme URI: https://techvergeon.com
Author: Muneeb
Author URI: https://techvergeon.com
Description: TechVergeon — Independent Tech News, Reviews & Buying Guides WordPress Theme (AI, Mobile, Computing, Software & How-To) with full Gutenberg, Elementor, Reader Comments, Cloudflare Turnstile & Mobile Responsive Architecture.
Version: 3.2.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 8.1
Text Domain: techvergeon
*/
/* ==========================================================================
   TECHVERGEON EDITORIAL DESIGN SYSTEM
   Inspired by: Wired, The Verge, MIT Technology Review, TechCrunch, ZDNet,
   TechRadar & Engadget â€” Strictly White + Ink Black + Single Brand Accent
   ========================================================================== */

:root {
  --tv-bg: #ffffff;
  --tv-surface: #f8fafc;
  --tv-surface-alt: #f1f5f9;
  --tv-ink: #0b0f17;
  --tv-ink-secondary: #334155;
  --tv-ink-muted: #64748b;
  --tv-border: #e2e8f0;
  --tv-border-strong: #0b0f17;
  --tv-accent: #e11d48;
  --tv-accent-hover: #be123c;
  --tv-accent-soft: #fff1f2;
  --tv-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tv-font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --tv-font-mono: 'JetBrains Mono', monospace;
  --tv-container: 1280px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--tv-bg);
  color: var(--tv-ink);
  font-family: var(--tv-font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font-family: inherit;
}

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

/* ==========================================================================
   1. MASTHEAD & NAVIGATION (Wired / The Verge / TechCrunch Editorial Bar)
   ========================================================================== */

.tv-masthead {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--tv-ink);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.admin-bar .tv-masthead {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .tv-masthead {
    top: 46px;
  }
}

.tv-sub-header {
  position: relative;
  z-index: 90;
  background: var(--tv-bg);
}

.tv-mobile-controls {
  display: none;
  align-items: center;
  gap: 8px;
}

.tv-mobile-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tv-mobile-icon-btn:hover,
.tv-mobile-icon-btn.active {
  background: var(--tv-accent);
  border-color: var(--tv-accent);
}

.tv-mobile-search-panel {
  background: #131926;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tv-mobile-search-form {
  display: flex;
  gap: 8px;
  max-width: var(--tv-container);
  margin: 0 auto;
}

.tv-mobile-search-input {
  flex: 1;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  padding: 0 12px;
  color: #ffffff;
  font-size: 14px;
}

.tv-mobile-search-input::placeholder {
  color: #94a3b8;
}

.tv-mobile-search-input:focus {
  outline: none;
  border-color: var(--tv-accent);
}

.tv-mobile-search-submit {
  height: 40px;
  padding: 0 16px;
  background: var(--tv-accent);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-family: var(--tv-font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.tv-mobile-drawer {
  background: #0b0f17;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 3px solid var(--tv-accent);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.tv-mobile-drawer-inner {
  padding: 18px 16px 24px;
  max-width: var(--tv-container);
  margin: 0 auto;
}

.tv-mobile-drawer-heading {
  font-family: var(--tv-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tv-mobile-drawer-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.tv-mobile-drawer-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 700;
}

.tv-mobile-drawer-link:hover,
.tv-mobile-drawer-link.active {
  background: var(--tv-accent);
  border-color: var(--tv-accent);
  color: #ffffff;
}

.tv-masthead-inner {
  max-width: var(--tv-container);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tv-brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tv-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tv-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.tv-edition-tag {
  font-family: var(--tv-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.tv-masthead-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tv-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.tv-search-input {
  width: 260px;
  height: 38px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  padding: 0 36px 0 34px;
  color: #ffffff;
  font-size: 13px;
  transition: all 0.15s ease;
}

.tv-search-input::placeholder {
  color: #94a3b8;
}

.tv-search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--tv-accent);
  width: 300px;
}

.tv-search-icon {
  position: absolute;
  left: 11px;
  color: #94a3b8;
  pointer-events: none;
}

.tv-search-shortcut {
  position: absolute;
  right: 8px;
  font-family: var(--tv-font-mono);
  font-size: 11px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  padding: 1px 6px;
  pointer-events: none;
}

.tv-newsletter-btn {
  height: 38px;
  padding: 0 16px;
  background: var(--tv-accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.tv-newsletter-btn:hover {
  background: var(--tv-accent-hover);
}

/* Primary Category Bar */
.tv-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--tv-border);
}

.tv-navbar-inner {
  max-width: var(--tv-container);
  margin: 0 auto;
  padding: 0 24px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow-x: auto;
}

.tv-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.tv-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--tv-ink);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}

.tv-nav-link:hover,
.tv-nav-link.active {
  color: var(--tv-accent);
  border-bottom-color: var(--tv-accent);
}

.tv-nav-date {
  font-family: var(--tv-font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--tv-ink-muted);
  white-space: nowrap;
}

/* Trending Topics Continuous Right-to-Left Loop Ticker */
.tv-trending-bar {
  background: var(--tv-surface);
  border-bottom: 1px solid var(--tv-border);
  font-size: 12.5px;
  overflow: hidden;
}

.tv-trending-inner {
  max-width: var(--tv-container);
  margin: 0 auto;
  padding: 0 24px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 0;
}

.tv-trending-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--tv-font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tv-accent);
  white-space: nowrap;
  padding-right: 14px;
  border-right: 1px solid var(--tv-border);
  background: var(--tv-surface);
  z-index: 2;
  height: 100%;
  flex-shrink: 0;
}

.tv-trending-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tv-accent);
  animation: tv-pulse-dot 1.8s ease-in-out infinite;
}

@keyframes tv-pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

.tv-trending-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.tv-trending-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  will-change: transform;
  animation: tv-ticker-rtl 42s linear infinite;
}

.tv-trending-viewport:hover .tv-trending-track {
  animation-play-state: paused;
}

@keyframes tv-ticker-rtl {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.tv-trending-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 20px;
}

.tv-trending-tag {
  font-family: var(--tv-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tv-ink);
  background: #e2e8f0;
  padding: 1px 6px;
  border-radius: 2px;
}

.tv-trending-item a {
  color: var(--tv-ink-secondary);
  font-weight: 600;
  font-size: 12.5px;
}

.tv-trending-item a:hover {
  color: var(--tv-accent);
  text-decoration: underline;
}

.tv-trending-sep {
  color: #cbd5e1;
  margin-left: 12px;
  font-size: 12px;
}

/* ==========================================================================
   2. SECTION HEADERS & EYEBROWS (Wired / MIT Technology Review Rules)
   ========================================================================== */

.tv-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--tv-border);
}

.tv-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 12px;
  margin-bottom: 24px;
  border-top: 3px solid var(--tv-ink);
}

.tv-section-title {
  font-family: var(--tv-font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--tv-ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tv-section-title-square {
  width: 10px;
  height: 10px;
  background: var(--tv-accent);
  display: inline-block;
}

.tv-section-more {
  font-family: var(--tv-font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tv-ink);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tv-section-more:hover {
  color: var(--tv-accent);
}

.tv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tv-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tv-accent);
  margin-bottom: 8px;
}

.tv-kicker-badge {
  background: var(--tv-ink);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 2px;
  font-size: 10px;
}

.tv-meta {
  display: flex;
   flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--tv-ink-muted);
  margin-top: 10px;
}

.tv-meta-author {
  font-weight: 600;
  color: var(--tv-ink);
}

.tv-meta-sep {
  color: #cbd5e1;
}

/* ==========================================================================
   3. HOMEPAGE ABOVE-THE-FOLD: TOP STORIES BENTO GRID
      (1 Big Lead + Secondary Stories + Numbered "Most Popular" Rail)
   ========================================================================== */

.tv-hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 0.85fr;
  gap: 28px;
  align-items: start;
}

/* Left Column: Lead Story + 2 Sub-Features */
.tv-lead-column {
  padding-right: 28px;
  border-right: 1px solid var(--tv-border);
}

.tv-lead-card {
  display: block;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--tv-border);
}

.tv-lead-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tv-surface-alt);
  margin-bottom: 16px;
  border: 1px solid var(--tv-border);
}

.tv-lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tv-lead-card:hover .tv-lead-media img {
  transform: scale(1.02);
}

.tv-lead-title {
  font-family: var(--tv-font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--tv-ink);
  margin-bottom: 12px;
}

.tv-lead-card:hover .tv-lead-title {
  color: var(--tv-accent);
}

.tv-lead-dek {
  font-size: 16px;
  line-height: 1.55;
  color: var(--tv-ink-secondary);
}

.tv-sublead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.tv-sublead-card {
  display: flex;
  flex-direction: column;
}

.tv-sublead-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--tv-surface-alt);
  margin-bottom: 10px;
  border: 1px solid var(--tv-border);
}

.tv-sublead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-sublead-title {
  font-family: var(--tv-font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--tv-ink);
}

.tv-sublead-card:hover .tv-sublead-title {
  color: var(--tv-accent);
}

/* Middle Column: Secondary Top Stories (4 Stacked Stories) */
.tv-secondary-column {
  padding-right: 28px;
  border-right: 1px solid var(--tv-border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tv-secondary-card {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--tv-border);
  align-items: start;
}

.tv-secondary-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tv-secondary-thumb {
  width: 116px;
  height: 80px;
  overflow: hidden;
  background: var(--tv-surface-alt);
  border: 1px solid var(--tv-border);
}

.tv-secondary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-secondary-title {
  font-family: var(--tv-font-display);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.32;
  color: var(--tv-ink);
}

.tv-secondary-card:hover .tv-secondary-title {
  color: var(--tv-accent);
}

/* Right Column: "Most Popular" Numbered Rail (The Verge / MIT Tech Review) */
.tv-popular-rail {
  background: var(--tv-surface);
  border: 1px solid var(--tv-border);
  border-top: 3px solid var(--tv-accent);
  padding: 20px;
}

.tv-popular-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tv-border);
}

.tv-popular-title {
  font-family: var(--tv-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tv-ink);
}

.tv-popular-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tv-popular-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--tv-border);
  align-items: start;
}

.tv-popular-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tv-popular-num {
  font-family: var(--tv-font-mono);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: var(--tv-accent);
}

.tv-popular-headline {
  font-family: var(--tv-font-display);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--tv-ink);
  display: block;
}

.tv-popular-item:hover .tv-popular-headline {
  color: var(--tv-accent);
}

/* ==========================================================================
   4. REVIEWS & BUYING GUIDES SHOWCASE (TechRadar / ZDNet Scorecard Strip)
   ========================================================================== */

.tv-reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.tv-review-card {
  background: var(--tv-bg);
  border: 1px solid var(--tv-border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tv-review-card:hover {
  border-color: var(--tv-ink);
}

.tv-review-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--tv-surface-alt);
  border-bottom: 1px solid var(--tv-border);
}

.tv-review-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-score-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--tv-ink);
  color: #ffffff;
  font-family: var(--tv-font-mono);
  font-size: 13px;
  font-weight: 800;
  padding: 5px 9px;
  border-left: 3px solid var(--tv-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tv-verdict-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--tv-accent);
  color: #ffffff;
  font-family: var(--tv-font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
}

.tv-review-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tv-review-title {
  font-family: var(--tv-font-display);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--tv-ink);
  margin-bottom: 8px;
}

.tv-review-card:hover .tv-review-title {
  color: var(--tv-accent);
}

.tv-review-verdict {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--tv-ink-secondary);
  margin-bottom: 12px;
  flex: 1;
}

/* ==========================================================================
   5. CHRONOLOGICAL "LATEST NEWS" RIVER + SIDEBAR (TechCrunch / The Verge)
   ========================================================================== */

.tv-river-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.tv-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--tv-border);
}

.tv-filter-tab {
  padding: 7px 14px;
  font-family: var(--tv-font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--tv-surface);
  color: var(--tv-ink-secondary);
  border: 1px solid var(--tv-border);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tv-filter-tab:hover {
  border-color: var(--tv-ink);
  color: var(--tv-ink);
}

.tv-filter-tab.active {
  background: var(--tv-ink);
  color: #ffffff;
  border-color: var(--tv-ink);
}

.tv-river-list {
  display: flex;
  flex-direction: column;
}

.tv-river-item {
  display: grid;
  grid-template-columns: 150px 1fr 220px;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--tv-border);
  align-items: start;
}

.tv-river-item:first-child {
  padding-top: 4px;
}

.tv-river-meta-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tv-river-date {
  font-family: var(--tv-font-mono);
  font-size: 12px;
  color: var(--tv-ink-muted);
}

.tv-river-read {
  font-size: 12px;
  color: var(--tv-ink-muted);
}

.tv-river-title {
  font-family: var(--tv-font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--tv-ink);
  margin-bottom: 8px;
}

.tv-river-item:hover .tv-river-title {
  color: var(--tv-accent);
}

.tv-river-excerpt {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--tv-ink-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-river-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--tv-surface-alt);
  border: 1px solid var(--tv-border);
}

.tv-river-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-load-more-btn {
  margin-top: 24px;
  width: 100%;
  padding: 13px 20px;
  background: var(--tv-surface);
  border: 1px solid var(--tv-ink);
  color: var(--tv-ink);
  font-family: var(--tv-font-mono);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tv-load-more-btn:hover {
  background: var(--tv-ink);
  color: #ffffff;
}

/* Sticky Sidebar Widgets */
.tv-sticky-rail {
  position: sticky;
  top: 132px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tv-sidebar-box {
  background: var(--tv-surface);
  border: 1px solid var(--tv-border);
  border-top: 3px solid var(--tv-ink);
  padding: 22px;
}

.tv-sidebar-box-title {
  font-family: var(--tv-font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tv-ink);
  margin-bottom: 12px;
}

/* ==========================================================================
   6. 4-CATEGORY SPOTLIGHT ROWS (Engadget / Wired Category Desks)
   ========================================================================== */

.tv-cat-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.tv-cat-card {
  display: flex;
  flex-direction: column;
}

.tv-cat-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--tv-surface-alt);
  border: 1px solid var(--tv-border);
  margin-bottom: 12px;
}

.tv-cat-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-cat-card-title {
  font-family: var(--tv-font-display);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.32;
  color: var(--tv-ink);
  margin-bottom: 6px;
}

.tv-cat-card:hover .tv-cat-card-title {
  color: var(--tv-accent);
}

/* ==========================================================================
   7. SINGLE ARTICLE & REVIEW PAGE (Wired + TechRadar + ZDNet + Sticky TOC)
   ========================================================================== */

.tv-article-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--tv-border);
}

.tv-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tv-font-mono);
  font-size: 12px;
  color: var(--tv-ink-muted);
  margin-bottom: 14px;
}

.tv-breadcrumbs a:hover {
  color: var(--tv-accent);
  text-decoration: underline;
}

.tv-article-h1 {
  font-family: var(--tv-font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--tv-ink);
  max-width: 920px;
  margin-bottom: 14px;
}

.tv-article-dek {
  font-size: 19px;
  line-height: 1.5;
  color: var(--tv-ink-secondary);
  max-width: 840px;
  margin-bottom: 20px;
}

.tv-byline-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--tv-border);
}

.tv-byline-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tv-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tv-ink);
  color: #ffffff;
  font-family: var(--tv-font-mono);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  padding: 36px 0 64px;
  align-items: start;
}

.tv-article-hero-figure {
  margin-bottom: 28px;
}

.tv-article-hero-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border: 1px solid var(--tv-border);
  background: var(--tv-surface-alt);
}

.tv-article-caption {
  font-family: var(--tv-font-mono);
  font-size: 11.5px;
  color: var(--tv-ink-muted);
  margin-top: 8px;
}

/* ZDNet-Style "Key Takeaways / What to Know" Box */
.tv-takeaways-box {
  background: var(--tv-surface);
  border: 1px solid var(--tv-border);
  border-left: 4px solid var(--tv-ink);
  padding: 22px 24px;
  margin-bottom: 28px;
}

.tv-takeaways-title {
  font-family: var(--tv-font-mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tv-ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tv-takeaways-list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--tv-ink-secondary);
}

/* TechRadar-Style Review Scorecard Box */
.tv-verdict-box {
  border: 2px solid var(--tv-ink);
  background: #ffffff;
  margin-bottom: 32px;
}

.tv-verdict-header {
  background: var(--tv-ink);
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tv-verdict-score-big {
  background: var(--tv-accent);
  color: #ffffff;
  font-family: var(--tv-font-mono);
  font-size: 24px;
  font-weight: 800;
  padding: 8px 16px;
}

.tv-verdict-body {
  padding: 22px 24px;
}

.tv-pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--tv-border);
}

.tv-pros-list,
.tv-cons-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

/* Editorial Prose Typography (Strictly Scoped, Zero Bleed) */
.tv-prose {
  font-size: 17px;
  line-height: 1.75;
  color: #1e293b;
}

.tv-prose h2 {
  font-family: var(--tv-font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--tv-ink);
  margin: 36px 0 14px;
  padding-top: 12px;
  border-top: 1px solid var(--tv-border);
  scroll-margin-top: 140px;
}

.tv-prose h3 {
  font-family: var(--tv-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--tv-ink);
  margin: 24px 0 10px;
}

.tv-prose p {
  margin-bottom: 20px;
}

.tv-prose ul,
.tv-prose ol {
  margin: 0 0 22px 22px;
}

.tv-prose li {
  margin-bottom: 8px;
}

.tv-prose blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--tv-accent);
  background: var(--tv-surface);
  font-family: var(--tv-font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--tv-ink);
}

.tv-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
}

.tv-spec-table th,
.tv-spec-table td {
  padding: 11px 14px;
  border: 1px solid var(--tv-border);
  text-align: left;
}

.tv-spec-table th {
  background: var(--tv-surface);
  font-weight: 700;
  color: var(--tv-ink);
  width: 34%;
}

/* Sticky Table of Contents in Right Sidebar */
.tv-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tv-toc-link {
  display: block;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--tv-ink-secondary);
  padding: 6px 10px;
  border-left: 2px solid var(--tv-border);
  transition: all 0.15s ease;
}

.tv-toc-link:hover,
.tv-toc-link.active {
  color: var(--tv-accent);
  border-left-color: var(--tv-accent);
  background: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   8. SHARE YOUR EXPERIENCE SECTION & FOOTER
   ========================================================================== */

.tv-experience-section {
  background: var(--tv-surface);
  border-top: 3px solid var(--tv-ink);
  padding: 56px 0;
  margin-top: 48px;
}

.tv-experience-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: start;
}

.tv-experience-title {
  font-family: var(--tv-font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--tv-ink);
  margin-bottom: 12px;
}

.tv-experience-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--tv-ink-secondary);
  margin-bottom: 24px;
}

.tv-recent-notes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tv-note-card {
  background: #ffffff;
  border: 1px solid var(--tv-border);
  border-left: 3px solid var(--tv-ink);
  padding: 16px 18px;
}

.tv-note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.tv-note-author {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tv-ink);
}

.tv-note-stars {
  font-family: var(--tv-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--tv-accent);
}

.tv-note-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--tv-ink-secondary);
}

/* Form Card */
.tv-exp-form-card {
  background: #ffffff;
  border: 2px solid var(--tv-ink);
  border-top: 5px solid var(--tv-accent);
  padding: 32px;
}

.tv-exp-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--tv-border);
}

.tv-exp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.tv-exp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.tv-exp-row-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tv-exp-label {
  font-family: var(--tv-font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tv-ink);
}

.tv-exp-input,
.tv-exp-select,
.tv-exp-textarea {
  width: 100%;
  background: var(--tv-surface);
  border: 1px solid #cbd5e1;
  padding: 10px 13px;
  font-size: 14px;
  color: var(--tv-ink);
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tv-exp-input:focus,
.tv-exp-select:focus,
.tv-exp-textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--tv-ink);
}

.tv-star-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 41px;
}

.tv-star-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--tv-border);
  background: var(--tv-surface);
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.tv-star-btn.active {
  background: var(--tv-ink);
  border-color: var(--tv-ink);
  color: #fbbf24;
}

.tv-exp-submit {
  width: 100%;
  height: 46px;
  background: var(--tv-ink);
  color: #ffffff;
  border: none;
  font-family: var(--tv-font-mono);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tv-exp-submit:hover {
  background: var(--tv-accent);
}

.tv-footer {
  background: var(--tv-ink);
  color: #cbd5e1;
  padding: 56px 0 36px;
  margin-top: 0;
  border-top: 4px solid var(--tv-accent);
}

.tv-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tv-footer-heading {
  font-family: var(--tv-font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 16px;
}

.tv-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.tv-footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.tv-footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #94a3b8;
}

/* Category Page Lead Feature Card (2-column on desktop, stacked image-top on mobile) */
.tv-cat-lead-card {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--tv-border);
  align-items: center;
}

.tv-cat-lead-card .tv-lead-media {
  margin-bottom: 0;
}

.tv-contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1080px) {
  .tv-hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tv-popular-rail {
    grid-column: 1 / -1;
  }
  .tv-reviews-grid,
  .tv-cat-spotlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tv-river-layout,
  .tv-article-layout,
  .tv-experience-grid,
  .tv-contact-grid {
    grid-template-columns: 1fr;
  }
  /* Hide the right sidebar completely on Article pages on tablet & mobile */
  .tv-article-layout .tv-sticky-rail {
    display: none !important;
  }
  .tv-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* TechCrunch-Style Mobile Header + Stacked Category Lead Card */
@media (max-width: 820px) {
  .tv-desktop-only,
  .tv-edition-tag,
  .tv-nav-date {
    display: none !important;
  }
  .tv-mobile-controls {
    display: inline-flex;
  }
  .tv-masthead-inner {
    height: 58px;
    padding: 0 16px;
    flex-wrap: nowrap;
  }
  .tv-logo-img {
    height: 28px;
  }
  .tv-navbar-inner {
    padding: 0 12px;
    height: 42px;
  }
  .tv-nav-link {
    height: 42px;
    padding: 0 10px;
    font-size: 12px;
  }
  .tv-cat-lead-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
}

@media (max-width: 768px) {
  .tv-container {
    padding: 0 16px;
  }
  .tv-section {
    padding: 26px 0;
  }
  .tv-hero-grid,
  .tv-sublead-grid,
  .tv-reviews-grid,
  .tv-cat-spotlight-grid,
  .tv-pros-cons-grid,
  .tv-exp-form-row,
  .tv-footer-grid {
    grid-template-columns: 1fr;
  }
  .tv-lead-column,
  .tv-secondary-column {
    padding-right: 0;
    border-right: none;
  }
  /* Secondary & River Article Cards on Mobile: Image on TOP, Title/Meta/Description BELOW */
  .tv-secondary-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .tv-secondary-thumb {
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .tv-river-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
  }
  .tv-river-thumb {
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-bottom: 2px;
  }
  .tv-river-meta-col {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .tv-river-meta-col .tv-kicker {
    margin-bottom: 0;
  }
  .tv-river-title {
    font-size: 19px;
  }
  .tv-lead-title {
    font-size: 23px;
  }
  .tv-article-h1 {
    font-size: 26px;
  }
  .tv-article-dek {
    font-size: 16px;
  }
  .tv-verdict-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .tv-exp-form-card {
    padding: 20px 16px;
  }
  .tv-mobile-drawer-list {
    grid-template-columns: 1fr;
  }
}

