/*
Theme Name:         TechVorta
Theme URI:          https://techvorta.com
Author:             Lana Emmanuel
Author URI:         https://themeforest.net/user/laniteboy1995
Description:        The world's most advanced tech WordPress theme. Military-grade security, AI-powered search, PWA support, live blogging, Core Web Vitals optimisation, and a complete editorial design system built for elite digital brands.
Version:            2.0.0
Requires at least:  6.4
Tested up to:       6.7
Requires PHP:       8.2
License:            GNU General Public License v2 or later
License URI:        https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:        techvorta
Tags:               technology, news, magazine, dark-mode, adsense, seo-optimized, full-site-editing, gutenberg, responsive-layout, rtl-language-support, accessibility-ready, custom-logo, custom-menu, featured-images, footer-widgets, translation-ready

TechVorta WordPress Theme — Copyright (C) 2026 Lana Emmanuel
https://techvorta.com

SPLIT LICENSE (ThemeForest / Envato Marketplace standard):

  PHP source files and CSS stylesheets are licensed under the
  GNU General Public License v2 or later (GPL-2.0-or-later).
  A copy of this license is included in LICENSE-GPL.txt and at
  https://www.gnu.org/licenses/gpl-2.0.html

  JavaScript files (assets/js/), image assets (assets/images/),
  SVG logo files, and all documentation are proprietary and are
  licensed under the ThemeForest / Envato Regular License or
  Extended License as purchased. Redistribution outside of
  Envato Marketplace is not permitted.
  See LICENSE-PROPRIETARY.txt for full terms.

THIRD-PARTY RESOURCES:
  Google Fonts — Syne, Instrument Sans, JetBrains Mono
  License: SIL Open Font License 1.1 (GPL-compatible)
  https://scripts.sil.org/OFL
*/

/* =============================================================================
   PHASE 2: DESIGN SYSTEM — TechVorta Token Architecture
   Awwwards-level design language. Every value is deliberate.
============================================================================= */

:root {
  /* ── Brand Primaries ── */
  --tv-cyan:          #00D4FF;
  --tv-cyan-dim:      #0099CC;
  --tv-cyan-muted:    rgba(0, 212, 255, 0.12);
  --tv-green:         #00FF94;
  --tv-green-dim:     #00CC75;
  --tv-orange:        #FF6B2B;
  --tv-red:           #FF2D55;
  --tv-purple:        #9B5DE5;

  /* ── Dark Surface Stack ── */
  --tv-bg:            #080810;
  --tv-surface-0:     #0C0C16;
  --tv-surface-1:     #111120;
  --tv-surface-2:     #16162A;
  --tv-surface-3:     #1C1C32;
  --tv-surface-4:     #22223A;

  /* ── Border Scale ── */
  --tv-border-0:      rgba(255,255,255,0.04);
  --tv-border-1:      rgba(255,255,255,0.08);
  --tv-border-2:      rgba(255,255,255,0.14);
  --tv-border-cyan:   rgba(0, 212, 255, 0.3);
  --tv-border-green:  rgba(0, 255, 148, 0.3);
  --tv-cyan-glow:     rgba(0, 212, 255, 0.25);

  /* ── Text Scale ── */
  --tv-text-0:        #FFFFFF;
  --tv-text-1:        #E8E8F2;
  --tv-text-2:        #A8A8C0;
  --tv-text-3:        #6A6A84;
  --tv-text-4:        #3A3A52;

  /* ── Phase 2: Typography System ──
     Display: Syne — geometric, futuristic authority
     Body: Instrument Sans — readable, modern precision
     Mono: JetBrains Mono — code credibility
  ── */
  --tv-font-display:  'Syne', system-ui, sans-serif;
  --tv-font-body:     'Instrument Sans', system-ui, sans-serif;
  --tv-font-mono:     'JetBrains Mono', 'Fira Code', monospace;

  /* ── Type Scale (fluid clamp) ── */
  --tv-text-xs:       clamp(0.7rem, 1.5vw, 0.75rem);
  --tv-text-sm:       clamp(0.8rem, 1.8vw, 0.875rem);
  --tv-text-base:     clamp(0.9rem, 2vw, 1rem);
  --tv-text-lg:       clamp(1rem, 2.5vw, 1.125rem);
  --tv-text-xl:       clamp(1.1rem, 3vw, 1.25rem);
  --tv-text-2xl:      clamp(1.25rem, 3.5vw, 1.5rem);
  --tv-text-3xl:      clamp(1.5rem, 4vw, 2rem);
  --tv-text-4xl:      clamp(2rem, 5vw, 2.75rem);
  --tv-text-5xl:      clamp(2.5rem, 6vw, 3.75rem);
  --tv-text-6xl:      clamp(3rem, 8vw, 5rem);

  /* ── Spacing Scale ── */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem;
  --sp-4: 1rem;    --sp-5: 1.25rem; --sp-6: 1.5rem;
  --sp-8: 2rem;    --sp-10: 2.5rem; --sp-12: 3rem;
  --sp-16: 4rem;   --sp-20: 5rem;   --sp-24: 6rem;

  /* ── Layout ── */
  --tv-container:     1320px;
  --tv-content-max:   780px;
  --tv-sidebar-w:     340px;
  --tv-header-h:      72px;

  /* ── Radii ── */
  --r-sm:  4px;   --r-md:  8px;
  --r-lg:  12px;  --r-xl:  16px;
  --r-2xl: 24px;  --r-full: 9999px;

  /* ── Elevation (Shadows) ── */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.5);
  --shadow-xl:   0 20px 80px rgba(0,0,0,0.6);
  --glow-cyan:   0 0 20px rgba(0,212,255,0.35), 0 0 60px rgba(0,212,255,0.12);
  --glow-green:  0 0 20px rgba(0,255,148,0.35), 0 0 60px rgba(0,255,148,0.12);

  /* ── Motion ── */
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    150ms;
  --dur-base:    250ms;
  --dur-slow:    400ms;
  --dur-slower:  600ms;

  /* ── Gradients ── */
  --grad-brand:   linear-gradient(135deg, #00D4FF 0%, #00FF94 100%);
  --grad-hero:    linear-gradient(160deg, rgba(0,212,255,0.15) 0%, rgba(0,255,148,0.05) 50%, transparent 100%);
  --grad-card:    linear-gradient(180deg, transparent 40%, rgba(8,8,16,0.95) 100%);
  --grad-surface: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
}

/* ── Light Mode Override ── */
[data-theme="light"] {
  --tv-bg:        #F0F0F8;
  --tv-surface-0: #FFFFFF;
  --tv-surface-1: #F8F8FF;
  --tv-surface-2: #F0F0FA;
  --tv-surface-3: #E8E8F5;
  --tv-surface-4: #E0E0F0;
  --tv-border-0:  rgba(0,0,0,0.04);
  --tv-border-1:  rgba(0,0,0,0.08);
  --tv-border-2:  rgba(0,0,0,0.14);
  --tv-text-0:    #08080F;
  --tv-text-1:    #14141E;
  --tv-text-2:    #3A3A52;
  --tv-text-3:    #7A7A94;
  --tv-text-4:    #A8A8C0;
  --shadow-md:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.12);
}

/* =============================================================================
   RESET & BASE
============================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--tv-header-h) + 16px);
}

body {
  background: var(--tv-bg);
  color: var(--tv-text-1);
  font-family: var(--tv-font-body);
  font-size: var(--tv-text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background var(--dur-slow) var(--ease-out),
              color var(--dur-slow) var(--ease-out);
}

/* Grain texture overlay — Phase 2 depth effect */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.35;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--tv-cyan); text-decoration: none; transition: color var(--dur-base) var(--ease-out); }
a:hover { color: var(--tv-green); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* =============================================================================
   PHASE 2: TYPOGRAPHY — Precision hierarchy
============================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--tv-font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--tv-text-0);
}
h1 { font-size: var(--tv-text-6xl); }
h2 { font-size: var(--tv-text-5xl); }
h3 { font-size: var(--tv-text-4xl); }
h4 { font-size: var(--tv-text-3xl); }
h5 { font-size: var(--tv-text-2xl); }
h6 { font-size: var(--tv-text-xl); }

[data-theme="light"] h1,[data-theme="light"] h2,
[data-theme="light"] h3,[data-theme="light"] h4,
[data-theme="light"] h5,[data-theme="light"] h6 { color: var(--tv-text-0); }

p { color: var(--tv-text-2); margin-bottom: var(--sp-4); }
strong, b { color: var(--tv-text-1); font-weight: 600; }
em { color: var(--tv-cyan); font-style: normal; }

/* Gradient text utility */
.tv-text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

blockquote {
  position: relative;
  border-left: 2px solid var(--tv-cyan);
  padding: var(--sp-5) var(--sp-8);
  margin: var(--sp-8) 0;
  background: var(--tv-surface-2);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
blockquote::before {
  content: '\201C';
  position: absolute; top: -0.5rem; left: 1rem;
  font-family: var(--tv-font-display);
  font-size: 5rem; line-height: 1;
  color: var(--tv-cyan); opacity: 0.2;
  pointer-events: none;
}
blockquote p { color: var(--tv-text-1); font-size: var(--tv-text-lg); font-style: italic; margin: 0; }
blockquote cite { display: block; margin-top: var(--sp-3); font-size: var(--tv-text-sm); color: var(--tv-text-3); }

code {
  font-family: var(--tv-font-mono);
  font-size: 0.875em;
  color: var(--tv-green);
  background: var(--tv-surface-3);
  border: 1px solid var(--tv-border-1);
  padding: 0.15em 0.45em;
  border-radius: var(--r-sm);
}
pre {
  background: var(--tv-surface-2);
  border: 1px solid var(--tv-border-1);
  border-left: 3px solid var(--tv-cyan);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  overflow-x: auto;
  margin: var(--sp-8) 0;
  position: relative;
}
pre code { background: none; border: none; padding: 0; color: var(--tv-text-1); font-size: var(--tv-text-sm); line-height: 1.7; }

/* =============================================================================
   LAYOUT SYSTEM
============================================================================= */
.tv-container {
  max-width: var(--tv-container);
  margin: 0 auto;
  padding: 0 var(--sp-8);
}
@media (max-width: 768px) { .tv-container { padding: 0 var(--sp-5); } }

.tv-grid {
  display: grid;
  grid-template-columns: 1fr var(--tv-sidebar-w);
  gap: var(--sp-12);
  align-items: start;
}
@media (max-width: 1100px) { .tv-grid { grid-template-columns: 1fr; } }

/* =============================================================================
   PHASE 2: READING PROGRESS + SCROLL EFFECTS
============================================================================= */
#tv-reading-progress {
  position: fixed; top: 0; left: 0; z-index: 10000;
  height: 3px; width: 0%;
  background: var(--grad-brand);
  box-shadow: var(--glow-cyan);
  transition: width 0.1s linear;
  border-radius: 0 var(--r-full) var(--r-full) 0;
}

/* =============================================================================
   HEADER — Fixed, glassmorphic, scroll-aware
============================================================================= */
#masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--tv-header-h);
  background: rgba(8, 8, 16, 0.7);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid var(--tv-border-0);
  transition: background var(--dur-slow) var(--ease-out),
              border-color var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out);
}
[data-theme="light"] #masthead { background: rgba(240, 240, 248, 0.85); }
#masthead.is-scrolled {
  background: rgba(8, 8, 16, 0.92);
  border-bottom-color: var(--tv-border-1);
  box-shadow: var(--shadow-md), 0 0 60px rgba(0,212,255,0.05);
}
[data-theme="light"] #masthead.is-scrolled { background: rgba(240, 240, 248, 0.96); }

.tv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--tv-header-h);
  gap: var(--sp-6);
}

/* ── Logo ── */
.tv-logo-wrap { flex-shrink: 0; display: flex; align-items: center; }
.tv-logo-wrap img, .tv-logo-wrap svg { height: 38px; width: auto; }

/* ── Primary Nav ── */
.tv-primary-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.tv-primary-nav a {
  font-family: var(--tv-font-display);
  font-size: var(--tv-text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--tv-text-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  transition: color var(--dur-base), background var(--dur-base);
  position: relative;
}
.tv-primary-nav a::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%; height: 2px;
  background: var(--grad-brand);
  border-radius: var(--r-full);
  transition: transform var(--dur-base) var(--ease-spring);
  transform-origin: center;
}
.tv-primary-nav a:hover,
.tv-primary-nav .current-menu-item > a { color: var(--tv-cyan); }
.tv-primary-nav a:hover::after,
.tv-primary-nav .current-menu-item > a::after { transform: translateX(-50%) scaleX(1); }

/* ── Header Actions ── */
.tv-header-actions { display: flex; align-items: center; gap: var(--sp-2); }

.tv-icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  background: var(--tv-surface-2);
  border: 1px solid var(--tv-border-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--tv-text-2);
  transition: all var(--dur-base) var(--ease-out);
  position: relative; overflow: hidden;
}
.tv-icon-btn:hover {
  color: var(--tv-cyan);
  border-color: var(--tv-border-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}
.tv-icon-btn .i-moon { position: absolute; opacity: 0; transform: rotate(90deg) scale(0.8); transition: all var(--dur-base); }
.tv-icon-btn .i-sun { transition: all var(--dur-base); }
[data-theme="light"] .tv-icon-btn .i-sun { opacity: 0; transform: rotate(-90deg) scale(0.8); }
[data-theme="light"] .tv-icon-btn .i-moon { opacity: 1; transform: rotate(0) scale(1); }

.tv-cta-btn {
  font-family: var(--tv-font-display);
  font-size: var(--tv-text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-5);
  background: var(--grad-brand);
  color: var(--tv-bg);
  border: none;
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease-out);
}
.tv-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
  color: var(--tv-bg);
}

/* ── Mobile Toggle ── */
.tv-hamburger {
  display: none;
  width: 38px; height: 38px;
  background: var(--tv-surface-2);
  border: 1px solid var(--tv-border-1);
  border-radius: var(--r-md);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.tv-hamburger span { display: block; width: 18px; height: 2px; background: var(--tv-text-1); border-radius: var(--r-full); transition: all var(--dur-base) var(--ease-out); }
.tv-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.tv-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.tv-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (max-width: 960px) {
  .tv-hamburger { display: flex; }
  .tv-primary-nav {
    position: fixed; top: var(--tv-header-h); left: 0; right: 0;
    background: var(--tv-surface-1);
    border-bottom: 1px solid var(--tv-border-1);
    flex-direction: column; align-items: stretch;
    padding: var(--sp-4);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out);
    z-index: 999;
  }
  .tv-primary-nav.is-open { transform: translateY(0); opacity: 1; }
  .tv-primary-nav a { padding: var(--sp-3) var(--sp-4); }
  .tv-cta-btn { display: none; }
}

/* ── Breaking News Ticker ── */
.tv-ticker {
  background: var(--tv-cyan);
  color: var(--tv-bg);
  height: 36px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: var(--tv-font-display);
  font-size: var(--tv-text-xs);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: var(--tv-header-h);
}
.tv-ticker-badge {
  flex-shrink: 0;
  background: var(--tv-bg);
  color: var(--tv-cyan);
  padding: 0 var(--sp-5);
  height: 100%;
  display: flex; align-items: center; gap: var(--sp-2);
  white-space: nowrap;
}
.tv-ticker-badge::after {
  content: '';
  border-left: 9px solid var(--tv-bg);
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  margin-left: var(--sp-2);
}
.tv-ticker-scroll { display: flex; gap: var(--sp-12); white-space: nowrap; animation: ticker 35s linear infinite; padding-left: var(--sp-8); }
.tv-ticker-scroll a { color: var(--tv-bg); }
.tv-ticker-scroll a:hover { text-decoration: underline; color: var(--tv-bg); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================================
   PHASE 2 HERO — The Visual Hook
   Conceptual: Full-width editorial grid with animated gradient mesh
   and overlapping asymmetric card layout
============================================================================= */
.tv-hero {
  position: relative;
  padding: var(--sp-16) 0 var(--sp-12);
  overflow: hidden;
}

/* Animated gradient mesh background */
.tv-hero::before {
  content: '';
  position: absolute;
  top: -30%; left: -20%;
  width: 70%; height: 120%;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.08) 0%, transparent 70%);
  animation: meshPulse 8s ease-in-out infinite;
  pointer-events: none;
}
.tv-hero::after {
  content: '';
  position: absolute;
  bottom: -20%; right: -10%;
  width: 50%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(0,255,148,0.06) 0%, transparent 70%);
  animation: meshPulse 10s ease-in-out infinite reverse;
  pointer-events: none;
}
@keyframes meshPulse { 0%,100%{transform:scale(1) translate(0,0);opacity:1;} 50%{transform:scale(1.1) translate(2%,-2%);opacity:0.7;} }

.tv-hero-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--sp-3);
  position: relative; z-index: 1;
}
@media (max-width: 900px) { .tv-hero-grid { grid-template-columns: 1fr; } }

/* =============================================================================
   CARDS — Phase 2 advanced card system
============================================================================= */
.tv-card {
  background: var(--tv-surface-1);
  border: 1px solid var(--tv-border-1);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease-spring),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out);
  position: relative;
  cursor: pointer;
}
/* Subtle inner light effect on hover */
.tv-card::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0,212,255,0.04), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
  pointer-events: none;
  border-radius: inherit;
}
.tv-card:hover { transform: translateY(-4px); border-color: var(--tv-border-cyan); box-shadow: var(--shadow-xl), var(--glow-cyan); }
.tv-card:hover::before { opacity: 1; }

.tv-card-thumb { position: relative; overflow: hidden; }
.tv-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.tv-card:hover .tv-card-thumb img { transform: scale(1.07); }
.tv-card-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,16,0.95) 0%, rgba(8,8,16,0.3) 40%, transparent 100%);
}

.tv-card-featured { grid-column: 1; grid-row: 1 / 3; }
.tv-card-featured .tv-card-thumb { height: 460px; }
@media (max-width: 900px) { .tv-card-featured .tv-card-thumb { height: 280px; } }
.tv-card-sm .tv-card-thumb { height: 190px; }

.tv-card-body { padding: var(--sp-6); position: relative; z-index: 1; }
.tv-card-featured .tv-card-body { padding: var(--sp-8); }

/* ── Badge System ── */
.tv-badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-family: var(--tv-font-display);
  font-size: var(--tv-text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px var(--sp-3);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-3);
}
.tv-badge-cyan { background: var(--tv-cyan); color: var(--tv-bg); }
.tv-badge-green { background: var(--tv-green); color: var(--tv-bg); }
.tv-badge-orange { background: var(--tv-orange); color: #fff; }
.tv-badge-red { background: var(--tv-red); color: #fff; }
.tv-badge-purple { background: var(--tv-purple); color: #fff; }
.tv-badge-outline { background: transparent; border: 1px solid var(--tv-cyan); color: var(--tv-cyan); }

/* ── Card Title ── */
.tv-card-title {
  font-family: var(--tv-font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--tv-text-0);
  margin-bottom: var(--sp-3);
  transition: color var(--dur-base) var(--ease-out);
}
.tv-card:hover .tv-card-title { color: var(--tv-cyan); }
.tv-card-featured .tv-card-title { font-size: var(--tv-text-4xl); }
.tv-card-sm .tv-card-title { font-size: var(--tv-text-xl); }

.tv-card-excerpt { color: var(--tv-text-2); font-size: var(--tv-text-sm); line-height: 1.65; margin-bottom: var(--sp-4); }

/* ── Meta Bar ── */
.tv-meta {
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
  font-size: var(--tv-text-xs); color: var(--tv-text-3);
}
.tv-meta-author { display: flex; align-items: center; gap: var(--sp-2); color: var(--tv-text-2); }
.tv-meta-avatar { width: 28px; height: 28px; border-radius: var(--r-full); border: 2px solid var(--tv-border-2); object-fit: cover; background: var(--tv-surface-3); }
.tv-meta-sep { color: var(--tv-border-2); }

/* =============================================================================
   AD ZONES — Phase 3 AdSense-ready, premium positioned
============================================================================= */
.tv-ad { display: flex; align-items: center; justify-content: center; background: var(--tv-surface-1); border: 1px dashed var(--tv-border-1); border-radius: var(--r-lg); position: relative; overflow: hidden; }
.tv-ad::before { content: 'Sponsored'; position: absolute; top: var(--sp-2); right: var(--sp-3); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tv-text-4); font-family: var(--tv-font-display); }
.tv-ad-728 { height: 90px; max-width: 728px; margin: var(--sp-8) auto; }
.tv-ad-970 { height: 250px; margin: var(--sp-10) auto; }
.tv-ad-300 { width: 100%; height: 250px; }
.tv-ad-160 { width: 160px; height: 600px; }
.tv-ad-mob { height: 50px; max-width: 320px; margin: var(--sp-4) auto; display: none; }
@media (max-width: 768px) { .tv-ad-728 { display: none; } .tv-ad-mob { display: flex; } }

/* =============================================================================
   SECTION HEADERS
============================================================================= */
.tv-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--tv-border-1);
  margin-bottom: var(--sp-8);
  position: relative;
}
.tv-section-head::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 64px; height: 2px;
  background: var(--grad-brand);
  border-radius: var(--r-full);
}
.tv-section-label {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--tv-font-display);
  font-size: var(--tv-text-sm);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tv-text-0);
}
.tv-section-label .tv-pulse {
  width: 9px; height: 9px;
  background: var(--tv-cyan);
  border-radius: var(--r-full);
  box-shadow: var(--glow-cyan);
  animation: pulseAnim 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulseAnim { 0%,100%{transform:scale(1);opacity:1;} 50%{transform:scale(0.7);opacity:0.4;} }
.tv-section-more {
  font-family: var(--tv-font-display);
  font-size: var(--tv-text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tv-cyan);
  display: flex; align-items: center; gap: var(--sp-2);
  transition: gap var(--dur-base) var(--ease-spring);
}
.tv-section-more:hover { gap: var(--sp-3); color: var(--tv-cyan); }

/* =============================================================================
   POST GRIDS
============================================================================= */
.tv-post-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-6); }
.tv-post-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-6); }
@media (max-width: 900px) { .tv-post-grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .tv-post-grid-3,.tv-post-grid-2 { grid-template-columns: 1fr; } }

/* ── List Layout ── */
.tv-post-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.tv-post-list-item {
  display: grid; grid-template-columns: 120px 1fr; gap: var(--sp-4);
  background: var(--tv-surface-1); border: 1px solid var(--tv-border-1);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
}
.tv-post-list-item:hover { border-color: var(--tv-border-cyan); transform: translateX(6px); }
.tv-post-list-thumb { overflow: hidden; }
.tv-post-list-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }
.tv-post-list-item:hover .tv-post-list-thumb img { transform: scale(1.08); }
.tv-post-list-body { padding: var(--sp-4) var(--sp-4) var(--sp-4) 0; display: flex; flex-direction: column; justify-content: center; }

/* =============================================================================
   SIDEBAR
============================================================================= */
.tv-sidebar { display: flex; flex-direction: column; gap: var(--sp-8); position: sticky; top: calc(var(--tv-header-h) + var(--sp-5)); }

.tv-widget {
  background: var(--tv-surface-1);
  border: 1px solid var(--tv-border-1);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.tv-widget-head {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-6);
  border-bottom: 1px solid var(--tv-border-1);
  font-family: var(--tv-font-display);
  font-size: var(--tv-text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tv-text-3);
}
.tv-widget-head::before { content: ''; width: 3px; height: 14px; background: var(--tv-cyan); border-radius: var(--r-full); box-shadow: var(--glow-cyan); flex-shrink: 0; }
.tv-widget-body { padding: var(--sp-6); }

/* ── Popular Posts ── */
.tv-popular { display: flex; flex-direction: column; gap: var(--sp-5); }
.tv-pop-item { display: flex; gap: var(--sp-3); align-items: flex-start; }
.tv-pop-rank { font-family: var(--tv-font-display); font-size: 1.5rem; font-weight: 800; color: var(--tv-border-2); line-height: 1; min-width: 30px; }
.tv-pop-title { font-size: var(--tv-text-sm); font-weight: 600; color: var(--tv-text-1); line-height: 1.4; transition: color var(--dur-base); cursor: pointer; }
.tv-pop-title:hover { color: var(--tv-cyan); }
.tv-pop-meta { font-size: var(--tv-text-xs); color: var(--tv-text-3); margin-top: var(--sp-1); }

/* ── Tags ── */
.tv-tag-cloud { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tv-tag {
  font-family: var(--tv-font-display);
  font-size: var(--tv-text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tv-text-2);
  background: var(--tv-surface-2);
  border: 1px solid var(--tv-border-1);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
}
.tv-tag:hover { color: var(--tv-cyan); border-color: var(--tv-border-cyan); background: var(--tv-cyan-muted); box-shadow: var(--glow-cyan); }

/* ── Newsletter ── */
.tv-newsletter-widget { text-align: center; }
.tv-nl-emoji { font-size: 2.5rem; margin-bottom: var(--sp-3); }
.tv-nl-title { font-family: var(--tv-font-display); font-size: var(--tv-text-xl); font-weight: 800; color: var(--tv-text-0); margin-bottom: var(--sp-2); }
.tv-nl-desc { font-size: var(--tv-text-sm); color: var(--tv-text-3); margin-bottom: var(--sp-5); }
.tv-nl-form { display: flex; flex-direction: column; gap: var(--sp-3); }

/* ── Form Elements ── */
.tv-input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--tv-surface-3);
  border: 1px solid var(--tv-border-1);
  border-radius: var(--r-md);
  color: var(--tv-text-0);
  font-family: var(--tv-font-body);
  font-size: var(--tv-text-sm);
  outline: none;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.tv-input::placeholder { color: var(--tv-text-4); }
.tv-input:focus { border-color: var(--tv-cyan); box-shadow: 0 0 0 3px var(--tv-cyan-muted); }
[data-theme="light"] .tv-input { background: var(--tv-surface-2); color: var(--tv-text-0); }

.tv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--tv-font-display);
  font-size: var(--tv-text-sm);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--sp-3) var(--sp-6);
  background: var(--grad-brand);
  color: var(--tv-bg);
  border: none;
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease-spring);
  cursor: pointer;
  width: 100%;
}
.tv-btn:hover { transform: translateY(-2px); box-shadow: var(--glow-cyan); color: var(--tv-bg); }
.tv-btn:active { transform: translateY(0); }

/* =============================================================================
   SINGLE POST
============================================================================= */
.tv-single-wrap { padding-top: var(--sp-8); }

.tv-breadcrumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2);
  font-size: var(--tv-text-xs); color: var(--tv-text-3);
  margin-bottom: var(--sp-6);
}
.tv-breadcrumbs a { color: var(--tv-text-3); transition: color var(--dur-base); }
.tv-breadcrumbs a:hover { color: var(--tv-cyan); }
.tv-breadcrumbs .sep { color: var(--tv-border-2); }

.tv-post-header { max-width: var(--tv-content-max); }
.tv-post-title {
  font-size: var(--tv-text-5xl);
  line-height: 1.1;
  color: var(--tv-text-0);
  margin: var(--sp-4) 0 var(--sp-6);
}

.tv-post-meta-bar {
  display: flex; align-items: center; gap: var(--sp-6); flex-wrap: wrap;
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--tv-border-1);
  border-bottom: 1px solid var(--tv-border-1);
  margin-bottom: var(--sp-8);
}

.tv-author-chip { display: flex; align-items: center; gap: var(--sp-3); }
.tv-author-chip-avatar { width: 44px; height: 44px; border-radius: var(--r-full); border: 2px solid var(--tv-cyan); object-fit: cover; background: var(--tv-surface-3); }
.tv-author-chip-name { font-size: var(--tv-text-sm); font-weight: 700; color: var(--tv-text-0); }
.tv-author-chip-role { font-size: var(--tv-text-xs); color: var(--tv-text-3); }

.tv-hero-image { width: 100%; border-radius: var(--r-xl); margin-bottom: var(--sp-10); overflow: hidden; position: relative; }
.tv-hero-image img { width: 100%; height: 480px; object-fit: cover; }
@media (max-width: 768px) { .tv-hero-image img { height: 260px; } }

/* Table of Contents */
.tv-toc {
  background: var(--tv-surface-2);
  border: 1px solid var(--tv-border-1);
  border-left: 3px solid var(--tv-cyan);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: var(--sp-5) var(--sp-6);
  margin: var(--sp-8) 0;
}
.tv-toc-title { font-family: var(--tv-font-display); font-weight: 800; font-size: var(--tv-text-sm); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tv-text-0); margin-bottom: var(--sp-4); display: flex; align-items: center; gap: var(--sp-2); }
.tv-toc ol { list-style: decimal; padding-left: var(--sp-6); }
.tv-toc li { margin-bottom: var(--sp-2); }
.tv-toc a { color: var(--tv-text-2); font-size: var(--tv-text-sm); transition: color var(--dur-base); }
.tv-toc a:hover { color: var(--tv-cyan); }

/* Post Content */
.tv-post-content { font-size: var(--tv-text-lg); line-height: 1.85; color: var(--tv-text-2); max-width: var(--tv-content-max); }
.tv-post-content h2 { font-size: var(--tv-text-4xl); color: var(--tv-text-0); margin: var(--sp-10) 0 var(--sp-4); }
.tv-post-content h3 { font-size: var(--tv-text-3xl); color: var(--tv-text-0); margin: var(--sp-8) 0 var(--sp-3); }
.tv-post-content p { margin-bottom: var(--sp-6); }
.tv-post-content a { color: var(--tv-cyan); border-bottom: 1px solid rgba(0,212,255,0.3); transition: border-color var(--dur-base); }
.tv-post-content a:hover { border-bottom-color: var(--tv-cyan); color: var(--tv-cyan); }
.tv-post-content ul { list-style: none; padding: 0; margin: var(--sp-6) 0; }
.tv-post-content ul li { padding-left: var(--sp-6); position: relative; margin-bottom: var(--sp-3); }
.tv-post-content ul li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; background: var(--tv-cyan); border-radius: var(--r-full); box-shadow: var(--glow-cyan); }
.tv-post-content ol { list-style: decimal; padding-left: var(--sp-6); margin: var(--sp-6) 0; }
.tv-post-content ol li { margin-bottom: var(--sp-3); }
.tv-post-content ol li::marker { color: var(--tv-cyan); font-weight: 700; }
.tv-post-content img { border-radius: var(--r-lg); margin: var(--sp-8) 0; }
.tv-post-content table { width: 100%; border-collapse: collapse; margin: var(--sp-8) 0; font-size: var(--tv-text-sm); }
.tv-post-content th { background: var(--tv-surface-2); color: var(--tv-text-0); font-family: var(--tv-font-display); font-size: var(--tv-text-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 2px solid var(--tv-cyan); }
.tv-post-content td { padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--tv-border-1); color: var(--tv-text-2); }
.tv-post-content tr:hover td { background: var(--tv-surface-2); }

/* Share Bar */
.tv-share-bar {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  padding: var(--sp-5) var(--sp-6);
  background: var(--tv-surface-2); border: 1px solid var(--tv-border-1);
  border-radius: var(--r-xl); margin: var(--sp-10) 0;
}
.tv-share-label { font-family: var(--tv-font-display); font-size: var(--tv-text-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tv-text-3); margin-right: var(--sp-2); }
.tv-share-btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md); border: none; cursor: pointer;
  font-size: var(--tv-text-xs); font-weight: 700;
  color: #fff; transition: all var(--dur-base) var(--ease-spring);
}
.tv-share-btn:hover { transform: translateY(-2px); }
.tv-share-x { background: #000; } .tv-share-fb { background: #1877F2; } .tv-share-li { background: #0A66C2; }
.tv-share-copy { background: var(--tv-surface-3); border: 1px solid var(--tv-border-1); color: var(--tv-text-2); }
.tv-share-copy:hover { color: var(--tv-cyan); border-color: var(--tv-border-cyan); }

/* ── Review Rating Box ── */
.tv-review-box {
  background: var(--tv-surface-2); border: 1px solid var(--tv-border-1);
  border-radius: var(--r-xl); padding: var(--sp-8); margin: var(--sp-8) 0;
}
.tv-review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--sp-6); flex-wrap: wrap; gap: var(--sp-4); }
.tv-review-score-wrap {}
.tv-review-num { font-family: var(--tv-font-display); font-size: 4rem; font-weight: 800; color: var(--tv-cyan); line-height: 1; }
.tv-review-num sup { font-size: 1rem; color: var(--tv-text-3); }
.tv-review-verdict { display: inline-block; margin-top: var(--sp-2); padding: var(--sp-1) var(--sp-3); background: rgba(0,255,148,0.1); border: 1px solid var(--tv-green); color: var(--tv-green); border-radius: var(--r-sm); font-family: var(--tv-font-display); font-size: var(--tv-text-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.tv-review-bars { display: flex; flex-direction: column; gap: var(--sp-4); }
.tv-rb { display: flex; align-items: center; gap: var(--sp-4); }
.tv-rb-label { font-size: var(--tv-text-sm); color: var(--tv-text-2); min-width: 110px; }
.tv-rb-track { flex: 1; height: 6px; background: var(--tv-surface-4); border-radius: var(--r-full); overflow: hidden; }
.tv-rb-fill { height: 100%; background: var(--grad-brand); border-radius: var(--r-full); width: 0; transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1); }
.tv-rb-val { font-size: var(--tv-text-sm); font-weight: 700; color: var(--tv-cyan); min-width: 32px; text-align: right; }

/* =============================================================================
   PHASE 2: MICRO-INTERACTIONS
============================================================================= */

/* Scroll reveal — JS adds .tv-revealed */
.tv-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slower) var(--ease-out),
              transform var(--dur-slower) var(--ease-out);
}
.tv-reveal.tv-revealed { opacity: 1; transform: translateY(0); }
.tv-reveal-delay-1 { transition-delay: 100ms; }
.tv-reveal-delay-2 { transition-delay: 200ms; }
.tv-reveal-delay-3 { transition-delay: 300ms; }

/* Counter animation */
.tv-counter { display: inline-block; }

/* Ripple effect */
.tv-ripple { position: relative; overflow: hidden; }
.tv-ripple::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--rx,50%) var(--ry,50%), rgba(0,212,255,0.15) 0%, transparent 70%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.tv-ripple:active::after { opacity: 1; }

/* =============================================================================
   PAGINATION
============================================================================= */
.tv-pagination { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); margin: var(--sp-16) 0; flex-wrap: wrap; }
.tv-page-link {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  background: var(--tv-surface-1); border: 1px solid var(--tv-border-1);
  border-radius: var(--r-md);
  font-family: var(--tv-font-display); font-size: var(--tv-text-sm); font-weight: 700;
  color: var(--tv-text-2); transition: all var(--dur-base) var(--ease-out);
}
.tv-page-link:hover, .tv-page-link.is-current {
  background: var(--tv-cyan); border-color: var(--tv-cyan); color: var(--tv-bg);
  box-shadow: var(--glow-cyan);
}
.tv-page-link.is-current { pointer-events: none; }

/* =============================================================================
   FOOTER
============================================================================= */
#colophon {
  background: var(--tv-surface-0);
  border-top: 1px solid var(--tv-border-1);
  margin-top: var(--sp-24);
}
.tv-footer-grid {
  padding: var(--sp-16) 0;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--sp-10);
}
@media (max-width: 960px) { .tv-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .tv-footer-grid { grid-template-columns: 1fr; } }

.tv-footer-brand-desc { font-size: var(--tv-text-sm); color: var(--tv-text-3); line-height: 1.75; margin: var(--sp-5) 0; }
.tv-socials { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.tv-soc {
  width: 36px; height: 36px;
  background: var(--tv-surface-2); border: 1px solid var(--tv-border-1);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--tv-text-3);
  transition: all var(--dur-base) var(--ease-spring);
}
.tv-soc:hover { color: var(--tv-cyan); border-color: var(--tv-border-cyan); transform: translateY(-3px); box-shadow: var(--glow-cyan); }

.tv-footer-col-title {
  font-family: var(--tv-font-display);
  font-size: var(--tv-text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tv-text-0);
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--tv-border-1);
}
.tv-footer-links { display: flex; flex-direction: column; gap: var(--sp-3); }
.tv-footer-links a {
  font-size: var(--tv-text-sm); color: var(--tv-text-3);
  display: flex; align-items: center; gap: var(--sp-2);
  transition: all var(--dur-base) var(--ease-out);
}
.tv-footer-links a:hover { color: var(--tv-cyan); padding-left: var(--sp-2); }

.tv-footer-bottom {
  border-top: 1px solid var(--tv-border-1);
  padding: var(--sp-6) 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--tv-text-xs); color: var(--tv-text-3);
  flex-wrap: wrap; gap: var(--sp-4);
}
.tv-footer-bottom a { color: var(--tv-cyan); }
.tv-footer-legal { display: flex; gap: var(--sp-6); flex-wrap: wrap; }

/* Gradient bottom bar */
.tv-footer-accent { height: 3px; background: var(--grad-brand); }

/* =============================================================================
   SCROLL TOP BTN
============================================================================= */
#tv-scroll-top {
  position: fixed; bottom: var(--sp-6); right: var(--sp-6); z-index: 500;
  width: 44px; height: 44px;
  background: var(--tv-cyan); border: none; border-radius: var(--r-md);
  color: var(--tv-bg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-cyan);
  opacity: 0; transform: translateY(20px);
  transition: all var(--dur-base) var(--ease-spring);
  cursor: pointer;
}
#tv-scroll-top.is-visible { opacity: 1; transform: translateY(0); }
#tv-scroll-top:hover { background: var(--tv-green); box-shadow: var(--glow-green); transform: translateY(-2px); }

/* =============================================================================
   WCAG 2.1 AAA ACCESSIBILITY (Phase 2)
============================================================================= */
:focus-visible {
  outline: 2px solid var(--tv-cyan);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.tv-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
  :root { --tv-border-1: rgba(255,255,255,0.3); --tv-border-2: rgba(255,255,255,0.5); }
  .tv-card { border-width: 2px; }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .tv-reveal { opacity: 1; transform: none; }
}

/* =============================================================================
   SEARCH OVERLAY
============================================================================= */
.tv-search-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(8,8,16,0.96);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.tv-search-overlay.is-open { opacity: 1; pointer-events: all; }
.tv-search-inner { width: 100%; max-width: 640px; padding: var(--sp-8); }
.tv-search-field {
  width: 100%; background: var(--tv-surface-2);
  border: 1px solid var(--tv-border-2); border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-8);
  font-size: var(--tv-text-3xl); font-family: var(--tv-font-display); font-weight: 700;
  color: var(--tv-text-0); outline: none;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.tv-search-field:focus { border-color: var(--tv-cyan); box-shadow: 0 0 0 4px var(--tv-cyan-muted); }
.tv-search-field::placeholder { color: var(--tv-text-4); }
.tv-search-close {
  position: absolute; top: var(--sp-8); right: var(--sp-8);
  background: none; border: none; color: var(--tv-text-3);
  font-size: 2rem; cursor: pointer; transition: color var(--dur-base);
}
.tv-search-close:hover { color: var(--tv-cyan); }
.tv-search-hint { font-family: var(--tv-font-display); font-size: var(--tv-text-xs); color: var(--tv-text-4); text-align: center; margin-top: var(--sp-4); letter-spacing: 0.08em; text-transform: uppercase; }

/* =============================================================================
   PRINT STYLES
============================================================================= */
@media print {
  #masthead, .tv-sidebar, .tv-ad, .tv-share-bar, #colophon, #tv-scroll-top,
  .tv-ticker, .tv-search-overlay { display: none !important; }
  body { background: white; color: black; font-size: 12pt; }
  a { color: black; text-decoration: underline; }
  .tv-post-content { max-width: 100%; }
  .tv-hero-image img { max-height: 400px; }
}

/* =============================================================================
   P0/P1 ADDITIONS — TOC · Bookmarks · Reactions · Reader Mode · Disclosure
============================================================================= */

/* ── Table of Contents ─────────────────────────────────────────────────── */
.tv-toc {
  background: var(--tv-surface-1);
  border: 1px solid var(--tv-border-1);
  border-left: 3px solid var(--tv-cyan);
  border-radius: var(--r-xl);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  max-width: 520px;
}
.tv-toc-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; margin-bottom: .85rem;
  font-family: var(--tv-font-display);
  font-size: .72rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--tv-cyan);
}
.tv-toc-head span { flex: 1; }
.tv-toc-toggle {
  background: none; border: none;
  color: var(--tv-text-4); font-size: 1.1rem; line-height: 1;
  cursor: pointer; padding: 0 .25rem;
  transition: color var(--dur-base);
}
.tv-toc-toggle:hover { color: var(--tv-cyan); }
.tv-toc-list {
  list-style: none; counter-reset: toc;
  display: flex; flex-direction: column; gap: .35rem;
}
.tv-toc-list li {
  counter-increment: toc;
  font-size: .85rem; line-height: 1.4;
}
.tv-toc-list li::before {
  content: counter(toc, decimal-leading-zero) ".";
  font-family: var(--tv-font-display);
  font-size: .65rem; font-weight: 800;
  color: var(--tv-text-4);
  margin-right: .5rem;
  letter-spacing: .04em;
}
.tv-toc-list a {
  color: var(--tv-text-2);
  text-decoration: none;
  transition: color var(--dur-base);
}
.tv-toc-list a:hover { color: var(--tv-cyan); }

/* ── Bookmark Button ───────────────────────────────────────────────────── */
.tv-bookmark-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: none;
  border: 1px solid var(--tv-border-1);
  border-radius: var(--r-full);
  padding: .4rem .9rem;
  color: var(--tv-text-3);
  font-family: var(--tv-font-display);
  font-size: .65rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-spring);
}
.tv-bookmark-btn:hover {
  color: var(--tv-cyan);
  border-color: var(--tv-border-cyan);
  background: var(--tv-cyan-muted);
  transform: translateY(-1px);
}
.tv-bookmark-btn[aria-pressed="true"] {
  color: var(--tv-cyan);
  border-color: rgba(0,212,255,.4);
  background: var(--tv-cyan-muted);
}

/* ── Reactions Bar ─────────────────────────────────────────────────────── */
.tv-reactions {
  display: flex; align-items: center; gap: .4rem;
  flex-wrap: wrap; padding: 1.25rem 0;
  border-top: 1px solid var(--tv-border-1);
  border-bottom: 1px solid var(--tv-border-1);
  margin: 1.5rem 0;
}
.tv-reactions-label {
  font-family: var(--tv-font-display);
  font-size: .62rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--tv-text-4);
  margin-right: .3rem;
}
.tv-reaction-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--tv-surface-2);
  border: 1px solid var(--tv-border-1);
  border-radius: var(--r-full);
  padding: .35rem .75rem;
  cursor: pointer;
  transition: all .2s var(--ease-spring);
}
.tv-reaction-btn:hover {
  border-color: var(--tv-border-cyan);
  background: var(--tv-cyan-muted);
  transform: translateY(-2px) scale(1.05);
}
.tv-reaction-btn.is-active {
  border-color: rgba(0,212,255,.35);
  background: var(--tv-cyan-muted);
}
.tv-reaction-emoji { font-size: 1rem; line-height: 1; transition: transform .2s var(--ease-spring); }
.tv-reaction-count {
  font-family: var(--tv-font-display);
  font-size: .68rem; font-weight: 800;
  color: var(--tv-text-3);
  min-width: 1ch;
}

/* ── Sponsored Disclosure ─────────────────────────────────────────────── */
.tv-disclosure {
  display: flex; align-items: flex-start; gap: .75rem;
  background: rgba(255,107,43,.06);
  border: 1px solid rgba(255,107,43,.2);
  border-left: 3px solid var(--tv-orange);
  border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .82rem;
  color: var(--tv-text-3);
  line-height: 1.6;
}
.tv-disclosure svg { color: var(--tv-orange); flex-shrink: 0; margin-top: 2px; }
.tv-disclosure p { margin: 0; }

/* ── Reader Mode ──────────────────────────────────────────────────────── */
body.tv-reader-mode .tv-post-content {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.85;
  max-width: 680px;
  margin: 0 auto;
  color: var(--tv-text-1);
}
body.tv-reader-mode .tv-sidebar,
body.tv-reader-mode .tv-ad,
body.tv-reader-mode .tv-share-bar,
body.tv-reader-mode .tv-reactions { display: none; }
body.tv-reader-mode .tv-post-layout { grid-template-columns: 1fr; }

/* =============================================================================
   P2/P3 ADDITIONS — TTS · Paywall · Price Tracker · Reader Toolbar · Live Blog
============================================================================= */

/* ── Reader Controls Toolbar ───────────────────────────────────────────── */
.tv-reader-toolbar { gap:.5rem; }
.tv-reader-ctrl-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--tv-surface-1);
  border: 1px solid var(--tv-border-1);
  border-radius: var(--r-full);
  padding: .35rem .8rem;
  color: var(--tv-text-3);
  font-family: var(--tv-font-display);
  font-size: .65rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-spring);
}
.tv-reader-ctrl-btn:hover {
  color: var(--tv-cyan); border-color: var(--tv-border-cyan);
  background: var(--tv-cyan-muted); transform: translateY(-1px);
}
.tv-reader-ctrl-btn[aria-pressed="true"] {
  color: var(--tv-cyan); border-color: rgba(0,212,255,.4);
  background: var(--tv-cyan-muted);
}

/* ── TTS Player ────────────────────────────────────────────────────────── */
.tv-tts-player {
  background: var(--tv-surface-1);
  border: 1px solid var(--tv-border-cyan);
  border-radius: var(--r-xl);
  padding: .85rem 1.25rem;
  margin-bottom: 1.5rem;
  animation: tv-tts-in .3s var(--ease-spring);
  box-shadow: 0 0 30px rgba(0,212,255,.08);
}
@keyframes tv-tts-in { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
.tv-tts-ctrl {
  background: none; border: none; cursor: pointer;
  color: var(--tv-text-2); padding: .3rem;
  border-radius: var(--r-md);
  transition: all .15s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tv-tts-ctrl:hover { color: var(--tv-cyan); background: var(--tv-cyan-muted); }
.tv-tts-play-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad-brand) !important;
  color: #080810 !important;
  box-shadow: var(--glow-cyan);
}
.tv-tts-play-btn:hover { transform: scale(1.08); }

/* ── Price Tracker ─────────────────────────────────────────────────────── */
.tv-price-tracker {
  background: var(--tv-surface-1);
  border: 1px solid var(--tv-border-1);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin: 2rem 0;
}
.tv-pt-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--tv-border-0);
  background: var(--tv-surface-2);
}
.tv-pt-title {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--tv-font-display);
  font-size: .75rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--tv-text-0);
}
.tv-pt-updated {
  font-size: .68rem; color: var(--tv-text-4);
  font-family: var(--tv-font-display);
}
.tv-pt-row {
  display: flex; align-items: center;
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--tv-border-0);
  text-decoration: none;
  transition: background var(--dur-base);
}
.tv-pt-row:last-of-type { border-bottom: none; }
.tv-pt-row:hover { background: var(--tv-surface-2); }
.tv-pt-retailer {
  font-family: var(--tv-font-display);
  font-size: .85rem; font-weight: 800;
  color: var(--tv-text-0);
  flex: 1;
}
.tv-pt-price {
  font-family: var(--tv-font-display);
  font-size: 1.05rem; font-weight: 800;
  color: var(--tv-cyan);
}
.tv-pt-badge {
  font-family: var(--tv-font-display);
  font-size: .58rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  color: #080810;
  background: var(--tv-green);
  padding: .15rem .5rem; border-radius: var(--r-full);
}
.tv-pt-disclaimer {
  font-size: .7rem; color: var(--tv-text-4);
  padding: .6rem 1.25rem;
  border-top: 1px solid var(--tv-border-0);
  background: var(--tv-surface-2);
  margin: 0;
}

/* ── Paywall ───────────────────────────────────────────────────────────── */
.tv-paywall-fade {
  position: relative; height: 120px; margin-top: -120px;
  background: linear-gradient(transparent, var(--tv-bg));
  pointer-events: none;
}
.tv-paywall {
  background: var(--tv-surface-1);
  border: 1px solid var(--tv-border-1);
  border-top: 3px solid var(--tv-cyan);
  border-radius: var(--r-xl);
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tv-paywall::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,255,.06) 0%, transparent 60%);
  pointer-events: none;
}
.tv-paywall-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.tv-paywall-title {
  font-family: var(--tv-font-display);
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -.02em; line-height: 1.1;
  color: var(--tv-text-0); margin-bottom: .75rem;
}
.tv-paywall-desc {
  font-size: .9rem; color: var(--tv-text-3);
  max-width: 420px; margin: 0 auto 1.5rem; line-height: 1.65;
}
.tv-paywall-actions {
  display: flex; flex-direction: column;
  align-items: center; gap: .75rem;
  margin-bottom: 1.5rem;
}
.tv-paywall-login {
  font-size: .8rem; color: var(--tv-text-3);
  text-decoration: underline;
  transition: color var(--dur-base);
}
.tv-paywall-login:hover { color: var(--tv-cyan); }
.tv-paywall-perks {
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: center;
}
.tv-paywall-perks span {
  font-family: var(--tv-font-display);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .05em; color: var(--tv-text-4);
}

/* ── Live Blog frontend ────────────────────────────────────────────────── */
.tv-live-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--tv-font-display);
  font-size: .65rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--tv-red);
  padding: .25rem .75rem; border-radius: var(--r-full);
  animation: tv-live-pulse 2s ease-in-out infinite;
}
@keyframes tv-live-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,45,85,.4); }
  50%      { box-shadow: 0 0 0 8px rgba(255,45,85,0); }
}
.tv-lb-entry {
  border-left: 3px solid var(--tv-border-1);
  padding: 1rem 1.5rem;
  margin-bottom: .25rem;
  position: relative;
  transition: all .3s var(--ease-out);
}
.tv-lb-entry.is-new {
  border-left-color: var(--tv-cyan);
  animation: tv-lb-flash .8s var(--ease-out);
}
.tv-lb-entry.is-breaking { border-left-color: var(--tv-red); }
@keyframes tv-lb-flash {
  from { background: rgba(0,212,255,.08); }
  to   { background: transparent; }
}
.tv-lb-entry::before {
  content: '';
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--tv-border-1);
  position: absolute; left: -7px; top: 1.25rem;
  border: 2px solid var(--tv-bg);
}
.tv-lb-entry.is-breaking::before { background: var(--tv-red); }
.tv-lb-entry.is-new::before      { background: var(--tv-cyan); box-shadow: var(--glow-cyan); }


/* =============================================================================
   P2/P3 ADDITIONS — Live Blog · Video · Podcast · Price Box · Paywall · Byline
============================================================================= */

/* ── Live Blog ──────────────────────────────────────────────────────── */
.tv-live-blog { margin: 2rem 0; }
.tv-lb-header {
  display: flex; align-items: center; gap: .85rem;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.tv-lb-live-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,45,85,.12); color: var(--tv-red);
  border: 1px solid rgba(255,45,85,.3); border-radius: var(--r-full);
  padding: .3rem .85rem;
  font-family: var(--tv-font-display); font-size: .65rem;
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  animation: tv-live-pulse 2s infinite;
}
@keyframes tv-live-pulse { 0%,100%{opacity:1} 50%{opacity:.65} }
.tv-lb-ended-badge {
  display: inline-flex; align-items: center;
  background: var(--tv-surface-2); color: var(--tv-text-4);
  border: 1px solid var(--tv-border-1); border-radius: var(--r-full);
  padding: .3rem .85rem;
  font-family: var(--tv-font-display); font-size: .65rem;
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.tv-lb-entry-count {
  font-family: var(--tv-font-display); font-size: .72rem;
  font-weight: 800; color: var(--tv-text-4); letter-spacing: .04em;
}
.tv-lb-updating {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; color: var(--tv-text-4);
  font-family: var(--tv-font-display);
}
.tv-lb-updating svg { animation: tv-spin 1.5s linear infinite; }
@keyframes tv-spin { to { transform: rotate(360deg); } }

.tv-lb-entries { display: flex; flex-direction: column; gap: .75rem; }
.tv-lb-entry {
  display: grid; grid-template-columns: 56px 1fr; gap: 1rem;
  background: var(--tv-surface-1);
  border: 1px solid var(--tv-border-1);
  border-radius: var(--r-xl); padding: 1.25rem;
  transition: border-color var(--dur-base);
}
.tv-lb-entry:hover { border-color: var(--tv-border-2); }
.tv-lb-entry.tv-lb-key {
  border-color: rgba(255,215,0,.3);
  background: rgba(255,215,0,.04);
}
.tv-lb-entry.tv-lb-new {
  animation: tv-lb-flash .8s ease;
  border-color: rgba(0,212,255,.4);
}
@keyframes tv-lb-flash { 0%{background:rgba(0,212,255,.12)} 100%{background:var(--tv-surface-1)} }
.tv-lb-entry-time {
  display: flex; flex-direction: column; align-items: center;
  gap: .3rem; padding-top: .2rem;
}
.tv-lb-entry-time time {
  font-family: var(--tv-font-mono); font-size: .7rem; font-weight: 500;
  color: var(--tv-cyan); letter-spacing: .04em;
}
.tv-lb-key-badge {
  font-family: var(--tv-font-display); font-size: .55rem;
  font-weight: 800; color: #FFD700;
  letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.tv-lb-entry-title {
  font-family: var(--tv-font-display); font-size: .95rem;
  font-weight: 800; color: var(--tv-text-0); margin-bottom: .5rem;
  line-height: 1.3;
}
.tv-lb-entry-content { font-size: .88rem; color: var(--tv-text-2); line-height: 1.65; }
.tv-lb-entry-author { font-size: .72rem; color: var(--tv-text-4); margin-top: .6rem; }
.tv-lb-empty { padding: 2rem; text-align: center; color: var(--tv-text-4); font-size: .88rem; }

/* ── Podcast Player ──────────────────────────────────────────────── */
.tv-podcast-player {
  background: var(--tv-surface-1); border: 1px solid var(--tv-border-1);
  border-radius: var(--r-xl); padding: 1.5rem; margin: 1.5rem 0;
}
.tv-pp-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; flex-wrap: wrap; gap: .5rem;
}
.tv-pp-meta { display: flex; align-items: center; gap: .75rem; }
.tv-pp-ep {
  font-family: var(--tv-font-display); font-size: .65rem;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tv-cyan);
  background: var(--tv-cyan-muted); border-radius: var(--r-full);
  padding: .25rem .6rem;
}
.tv-pp-duration { font-family: var(--tv-font-mono); font-size: .72rem; color: var(--tv-text-4); }
.tv-pp-transcript {
  font-family: var(--tv-font-display); font-size: .65rem;
  font-weight: 800; letter-spacing: .06em;
  color: var(--tv-text-3); text-decoration: none;
  transition: color var(--dur-base);
}
.tv-pp-transcript:hover { color: var(--tv-cyan); }
.tv-pp-audio { width: 100%; margin-bottom: 1rem; }
.tv-pp-listen-on {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  font-size: .75rem;
}
.tv-pp-listen-on span { color: var(--tv-text-4); }
.tv-pp-listen-on a {
  color: var(--tv-cyan); text-decoration: none; font-weight: 600;
  transition: opacity var(--dur-base);
}
.tv-pp-listen-on a:hover { opacity: .75; }

/* ── Lazy Video ──────────────────────────────────────────────────── */
.tv-lite-video:hover img { filter: brightness(.7); }
.tv-video-play-btn:hover span { transform: scale(1.1) !important; background: var(--tv-cyan) !important; }

/* ── Price Box ───────────────────────────────────────────────────── */
.tv-price-box {
  background: var(--tv-surface-1); border: 1px solid var(--tv-border-1);
  border-radius: var(--r-xl); padding: 1.5rem; margin: 1.5rem 0;
}
.tv-pb-header {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--tv-font-display); font-size: .72rem;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tv-green); margin-bottom: 1rem;
}
.tv-pb-list { display: flex; flex-direction: column; gap: .4rem; }
.tv-pb-item {
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none; padding: .85rem 1rem;
  background: var(--tv-surface-2); border: 1px solid var(--tv-border-1);
  border-radius: var(--r-lg);
  transition: all var(--dur-base);
}
.tv-pb-item:hover { border-color: var(--tv-border-green); transform: translateX(3px); }
.tv-pb-retailer { font-family: var(--tv-font-display); font-size: .82rem; font-weight: 800; color: var(--tv-text-1); flex: 1; }
.tv-pb-price { font-family: var(--tv-font-display); font-size: .95rem; font-weight: 800; color: var(--tv-green); }
.tv-pb-cta { font-family: var(--tv-font-display); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tv-text-4); margin-left: auto; white-space: nowrap; }
.tv-pb-note { font-size: .72rem; color: var(--tv-text-4); margin-top: .75rem; }

/* ── Paywall Gate ────────────────────────────────────────────────── */
.tv-paywall-teaser { position: relative; }
.tv-paywall-teaser::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--tv-bg));
}
.tv-paywall-gate {
  background: var(--tv-surface-1);
  border: 1px solid rgba(155,93,229,.3);
  border-radius: var(--r-2xl);
  padding: 2.5rem 2rem;
  text-align: center; margin: 1.5rem 0;
}
.tv-pw-icon { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1; }
.tv-pw-title {
  font-family: var(--tv-font-display); font-size: 1.35rem;
  font-weight: 800; color: var(--tv-text-0); margin-bottom: .75rem;
  letter-spacing: -.02em;
}
.tv-pw-desc { font-size: .9rem; color: var(--tv-text-3); max-width: 480px; margin: 0 auto 1.5rem; line-height: 1.65; }
.tv-pw-ctas { display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tv-pw-btn {
  font-family: var(--tv-font-display); font-size: .72rem;
  font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: .75rem 1.75rem; border-radius: var(--r-full);
  text-decoration: none; cursor: pointer; border: none;
  transition: all var(--dur-base);
}
.tv-pw-btn--primary { background: linear-gradient(135deg,var(--tv-purple),var(--tv-cyan)); color: #fff; }
.tv-pw-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(155,93,229,.4); }
.tv-pw-btn--ghost { background: transparent; border: 1px solid var(--tv-border-1); color: var(--tv-text-3); }
.tv-pw-btn--ghost:hover { border-color: var(--tv-border-2); color: var(--tv-text-1); }
.tv-pw-note { font-size: .72rem; color: var(--tv-text-4); }

/* ── Byline ──────────────────────────────────────────────────────── */
.tv-byline { font-size: .85rem; color: var(--tv-text-3); }
.tv-byline-author { color: var(--tv-text-2); font-weight: 600; text-decoration: none; transition: color var(--dur-base); }
.tv-byline-author:hover { color: var(--tv-cyan); }
.tv-byline-and { color: var(--tv-text-4); margin: 0 .2rem; }

/* ── Author Follow Button ────────────────────────────────────────── */
.tv-follow-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: transparent; border: 1px solid var(--tv-border-cyan);
  border-radius: var(--r-full); padding: .4rem 1rem;
  color: var(--tv-cyan);
  font-family: var(--tv-font-display); font-size: .65rem;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; transition: all var(--dur-base);
}
.tv-follow-btn:hover { background: var(--tv-cyan-muted); transform: translateY(-1px); }
.tv-follow-btn[data-state="following"] { background: var(--tv-cyan-muted); }
/* Language Switcher — appended to style.css */
.tv-lang-switcher { position: relative; }
.tv-lang-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: none; border: 1px solid var(--tv-border-1);
  border-radius: var(--r-full); padding: .35rem .75rem;
  color: var(--tv-text-3); cursor: pointer;
  font-family: var(--tv-font-display); font-size: .65rem;
  font-weight: 800; letter-spacing: .1em;
  transition: all var(--dur-base);
}
.tv-lang-btn:hover,
.tv-lang-btn[aria-expanded="true"] {
  border-color: var(--tv-border-cyan); color: var(--tv-cyan);
  background: var(--tv-cyan-muted);
}
.tv-lang-chevron { transition: transform .2s; }
.tv-lang-btn[aria-expanded="true"] .tv-lang-chevron { transform: rotate(180deg); }
.tv-lang-dropdown {
  position: absolute; top: calc(100% + .5rem); right: 0;
  min-width: 160px; list-style: none;
  background: var(--tv-surface-2);
  border: 1px solid var(--tv-border-2);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  z-index: 9999; overflow: hidden;
  display: none;
}
.tv-lang-switcher:focus-within .tv-lang-dropdown,
.tv-lang-btn[aria-expanded="true"] + .tv-lang-dropdown { display: block; }
.tv-lang-dropdown li a {
  display: block; padding: .6rem 1rem;
  font-size: .82rem; color: var(--tv-text-2);
  text-decoration: none; transition: background var(--dur-fast), color var(--dur-fast);
}
.tv-lang-dropdown li a:hover,
.tv-lang-dropdown li a[aria-current] {
  background: var(--tv-cyan-muted); color: var(--tv-cyan);
}

/* =============================================================================
   MOBILE FIXES — Touch targets, form zoom prevention, nav UX
   Addresses all WCAG 2.5.5 (44×44px) and iOS zoom (≥16px font) requirements
============================================================================= */

/* ── 1. Touch targets: all interactive elements ≥ 44×44px ─────────── */
.tv-icon-btn,
.tv-hamburger {
  width:  44px;
  height: 44px;
}
.tv-soc {
  width:  44px;
  height: 44px;
}
.tv-share-btn {
  min-height: 44px;
  min-width:  44px;
  padding: .65rem .9rem;
}
.tv-follow-btn,
.tv-reader-ctrl-btn,
.tv-pw-btn {
  min-height: 44px;
}
.tv-tag {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
/* Reaction buttons */
.tv-reaction-btn { min-height: 44px; }

/* ── 2. Newsletter input — missing definition + iOS font-size fix ──── */
.tv-nl-input {
  width: 100%;
  background: var(--tv-surface-2);
  border: 1px solid var(--tv-border-1);
  border-radius: var(--r-lg);
  padding: .85rem 1.1rem;
  font-size: 1rem;           /* ≥16px prevents iOS auto-zoom on focus */
  font-family: var(--tv-font-body);
  color: var(--tv-text-0);
  outline: none;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
  -webkit-appearance: none;  /* Remove iOS default styling */
  appearance: none;
}
.tv-nl-input:focus {
  border-color: var(--tv-cyan);
  box-shadow: 0 0 0 3px var(--tv-cyan-muted);
}
.tv-nl-input::placeholder { color: var(--tv-text-4); }

/* ── 3. All inputs/selects/textareas: force ≥16px to prevent iOS zoom ── */
input,
select,
textarea,
.tv-search-field {
  font-size: max(1rem, 16px);
}

/* ── 4. Hero section: reduce top/bottom padding on small screens ────── */
@media (max-width: 600px) {
  .tv-hero { padding: var(--sp-8) 0 var(--sp-6); }
  .tv-hero-content { text-align: center; }
  .tv-hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }
  .tv-hero-ctas .tv-btn,
  .tv-hero-ctas .tv-btn-outline {
    text-align: center;
    justify-content: center;
  }
  .tv-trust-bar {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-3);
    text-align: center;
  }
}

/* ── 5. Value pillars: single column on mobile ──────────────────────── */
@media (max-width: 640px) {
  .tv-pillars { grid-template-columns: 1fr; }
}

/* ── 6. Review bar: shrink label min-width on narrow screens ────────── */
@media (max-width: 440px) {
  .tv-rb { flex-wrap: wrap; gap: .3rem; }
  .tv-rb-label { min-width: 0; width: 100%; }
  .tv-rb-val { margin-left: auto; }
}

/* ── 7. Review box score: single-column on phones ───────────────────── */
@media (max-width: 500px) {
  .tv-review-header { flex-direction: column; gap: var(--sp-4); }
  .tv-review-score  { align-self: flex-start; }
}

/* ── 8. Share bar: wrap + stretch on mobile ─────────────────────────── */
@media (max-width: 520px) {
  .tv-share-bar {
    flex-wrap: wrap;
    gap: .5rem;
  }
  .tv-share-btn {
    flex: 1 1 calc(50% - .25rem);
    justify-content: center;
  }
}

/* ── 9. Reader toolbar: wrap on small phones ────────────────────────── */
@media (max-width: 480px) {
  .tv-reader-toolbar {
    flex-wrap: wrap;
    gap: .4rem;
  }
}

/* ── 10. Post meta bar: wrap on phones ──────────────────────────────── */
@media (max-width: 520px) {
  .tv-post-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }
}

/* ── 11. Podcast player: stacked on mobile ──────────────────────────── */
@media (max-width: 500px) {
  .tv-pp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
  }
  .tv-pp-listen-on { flex-wrap: wrap; gap: .5rem; }
}

/* ── 12. Price box: full-width buy buttons on phones ───────────────── */
@media (max-width: 500px) {
  .tv-pb-item {
    flex-wrap: wrap;
    gap: .4rem;
  }
  .tv-pb-cta {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

/* ── 13. Live blog: collapse timestamp to top strip ─────────────────── */
@media (max-width: 500px) {
  .tv-lb-entry {
    grid-template-columns: 1fr;
    gap: .5rem;
  }
  .tv-lb-entry-time {
    flex-direction: row;
    align-items: center;
    gap: .6rem;
    padding-top: 0;
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--tv-border-0);
  }
}

/* ── 14. TOC: full width on mobile ──────────────────────────────────── */
@media (max-width: 640px) {
  .tv-toc { margin: 1.5rem 0; }
}

/* ── 15. GDPR consent banner: full width on mobile ──────────────────── */
@media (max-width: 600px) {
  .tv-consent-banner { left: 0; right: 0; bottom: 0; border-radius: 0; }
  .tv-cb-inner {
    flex-direction: column;
    gap: var(--sp-4);
    align-items: stretch;
  }
  .tv-cb-actions {
    flex-direction: column;
    gap: var(--sp-2);
  }
  .tv-cb-actions button { width: 100%; min-height: 44px; }
}

/* ── 16. Lang switcher dropdown: full width on mobile ───────────────── */
@media (max-width: 400px) {
  .tv-lang-dropdown {
    right: auto;
    left: 0;
    min-width: 140px;
  }
}

/* ── 17. Footer social row: wrap on tiny screens ────────────────────── */
@media (max-width: 380px) {
  .tv-socials { flex-wrap: wrap; }
}

/* ── 18. Paywall gate: padding reduction on phones ──────────────────── */
@media (max-width: 480px) {
  .tv-paywall-gate { padding: 1.75rem 1.25rem; }
  .tv-pw-ctas { flex-direction: column; align-items: stretch; }
  .tv-pw-btn { text-align: center; }
}

/* ── 19. Container padding — extra tight on very small screens ──────── */
@media (max-width: 400px) {
  .tv-container { padding-left: var(--sp-4); padding-right: var(--sp-4); }
}

/* ── 20. Header: reduce height on mobile for more content space ──────── */
@media (max-width: 480px) {
  :root { --tv-header-h: 60px; }
}

/* ==========================================================================
   WOOCOMMERCE — TechVorta Dark Theme
   ========================================================================== */

/* ── Product Grid ─────────────────────────────────────────────────────────── */
.tv-wc-product-card {
    background: var(--tv-surface-1);
    border: 1px solid var(--tv-border-1);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: border-color var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base) var(--ease-out);
    display: flex;
    flex-direction: column;
}
.tv-wc-product-card:hover {
    border-color: var(--tv-border-cyan);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, .12);
}
.tv-wc-product-card .woocommerce-loop-product__title {
    font-family: var(--tv-font-display);
    font-size: var(--tv-text-base);
    font-weight: 700;
    color: var(--tv-text-0);
    padding: 1rem 1rem .25rem;
    margin: 0;
}
.tv-wc-product-card .price {
    padding: .25rem 1rem .75rem;
    font-family: var(--tv-font-display);
    font-size: var(--tv-text-lg);
    font-weight: 800;
    color: var(--tv-cyan);
}
.tv-wc-product-card .price del {
    color: var(--tv-text-4);
    font-size: var(--tv-text-sm);
    margin-right: .5rem;
}
.tv-wc-product-card .button.add_to_cart_button,
.tv-wc-product-card .button.product_type_external {
    display: block;
    margin: 0 1rem 1rem;
    padding: .6rem 1.25rem;
    background: var(--grad-brand);
    color: #080810;
    font-family: var(--tv-font-display);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--r-full);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: opacity var(--dur-base) var(--ease-out),
                transform var(--dur-base) var(--ease-out);
}
.tv-wc-product-card .button:hover {
    opacity: .88;
    transform: translateY(-1px);
}
.tv-wc-product-card .attachment-woocommerce_thumbnail {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

/* ── WC Table (cart) ──────────────────────────────────────────────────────── */
.tv-wc-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--tv-surface-1);
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--tv-border-1);
}
.tv-wc-table thead tr {
    background: var(--tv-surface-2);
}
.tv-wc-table th,
.tv-wc-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--tv-border-1);
    text-align: left;
    font-size: var(--tv-text-sm);
    color: var(--tv-text-1);
}
.tv-wc-table th {
    font-family: var(--tv-font-display);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tv-text-3);
}
.tv-wc-table .product-thumbnail img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--r-md);
}
.tv-wc-table .product-name a {
    color: var(--tv-text-0);
    font-weight: 600;
}
.tv-wc-table .product-name a:hover { color: var(--tv-cyan); }
.tv-wc-table .product-remove a {
    color: var(--tv-text-4);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color var(--dur-base);
}
.tv-wc-table .product-remove a:hover { color: var(--tv-red); }

/* ── WC Input fields ─────────────────────────────────────────────────────── */
.tv-wc-input,
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.woocommerce form .input-text {
    width: 100%;
    padding: .75rem 1rem;
    background: var(--tv-surface-2);
    border: 1px solid var(--tv-border-1);
    border-radius: var(--r-md);
    color: var(--tv-text-0);
    font-family: var(--tv-font-body);
    font-size: var(--tv-text-sm);
    transition: border-color var(--dur-base);
    -webkit-appearance: none;
}
.tv-wc-input:focus,
.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce form .input-text:focus {
    outline: none;
    border-color: var(--tv-cyan);
    box-shadow: 0 0 0 3px var(--tv-cyan-glow);
}

/* ── Cart totals ─────────────────────────────────────────────────────────── */
.woocommerce .cart_totals {
    background: var(--tv-surface-1);
    border: 1px solid var(--tv-border-1);
    border-radius: var(--r-xl);
    padding: 1.5rem;
}
.woocommerce .cart_totals h2 {
    font-family: var(--tv-font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--tv-text-0);
    margin-bottom: 1rem;
}
.woocommerce .cart_totals table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--tv-text-sm);
}
.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
    padding: .6rem 0;
    border-bottom: 1px solid var(--tv-border-1);
    color: var(--tv-text-2);
}
.woocommerce .cart_totals table .order-total th,
.woocommerce .cart_totals table .order-total td {
    font-family: var(--tv-font-display);
    font-weight: 800;
    color: var(--tv-text-0);
    font-size: 1.1rem;
    border: none;
}
.woocommerce .cart_totals .wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    padding: .9rem 1.5rem;
    background: var(--grad-brand);
    color: #080810;
    font-family: var(--tv-font-display);
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--r-full);
    text-align: center;
    cursor: pointer;
    margin-top: 1.25rem;
    transition: opacity var(--dur-base);
    text-decoration: none;
}
.woocommerce .cart_totals .wc-proceed-to-checkout .checkout-button:hover { opacity: .88; }

/* ── Single product ─────────────────────────────────────────────────────── */
.woocommerce div.product .product_title {
    font-family: var(--tv-font-display);
    font-size: var(--tv-text-3xl);
    font-weight: 800;
    color: var(--tv-text-0);
    letter-spacing: -.02em;
    margin-bottom: .75rem;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    font-family: var(--tv-font-display);
    font-size: var(--tv-text-2xl);
    font-weight: 800;
    color: var(--tv-cyan);
}
.woocommerce div.product .single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    padding: .9rem 2rem;
    background: var(--grad-brand);
    color: #080810;
    font-family: var(--tv-font-display);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--r-full);
    cursor: pointer;
    transition: opacity var(--dur-base), transform var(--dur-base);
}
.woocommerce div.product .single_add_to_cart_button:hover { opacity: .88; transform: translateY(-2px); }

/* ── My Account / Downloads ─────────────────────────────────────────────── */
.woocommerce-account .woocommerce {
    background: var(--tv-surface-1);
    border-radius: var(--r-xl);
    padding: 2rem;
    border: 1px solid var(--tv-border-1);
}
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: .6rem 1rem;
    border-radius: var(--r-md);
    color: var(--tv-text-2);
    font-size: var(--tv-text-sm);
    font-family: var(--tv-font-display);
    font-weight: 600;
    transition: all var(--dur-base);
}
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
    background: var(--tv-surface-2);
    color: var(--tv-cyan);
}

/* ── WC notices ─────────────────────────────────────────────────────────── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: var(--r-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: var(--tv-text-sm);
    list-style: none;
}

/* ── WC collaterals layout ──────────────────────────────────────────────── */
.tv-wc-collaterals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
@media (max-width: 767px) {
    .tv-wc-collaterals { grid-template-columns: 1fr; }
    .tv-wc-product-card .attachment-woocommerce_thumbnail { height: 180px; }
}

/* ==========================================================================
   ELEMENTOR EDITOR — TechVorta panel styles
   ========================================================================== */
.elementor-panel .tv-el-widget-icon { color: var(--tv-cyan, #00D4FF); }

