/*!
Theme Name: TechVoyageur
Theme URI: https://example.com/techvoyageur
Author: TechVoyageur
Author URI: https://example.com
Description: Editorial travel-tech theme. Crisp landing page + DJI-style price-tracker article template, custom "Promo" post type with rating / price / stock meta, and a Top Promotions sidebar widget. Classic PHP theme — drop into wp-content/themes/.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: techvoyageur
Tags: blog, news, custom-menu, custom-logo, featured-images, two-columns, right-sidebar, editor-style
*/

/* =========================================================================
   TOKENS
   ========================================================================= */
:root {
  --tv-ink: #0b1733;
  --tv-ink-2: #3a4663;
  --tv-muted: #6b7489;
  --tv-border: #e6e8ee;
  --tv-surface: #f4f6fa;
  --tv-surface-accent: #eef2f9;
  --tv-bg: #ffffff;
  --tv-brand: #2657f0;
  --tv-brand-deep: #1d3fb8;
  --tv-topbar: #0b1733;
  --tv-pill-bg: #eef2f9;

  --tv-cta-red: #e23b3b;
  --tv-cta-red-deep: #b32a2a;
  --tv-price: #1f9d5f;
  --tv-promo: #f08a1c;
  --tv-shop-green: #4cb15e;

  --tv-radius-sm: 8px;
  --tv-radius: 12px;
  --tv-radius-lg: 16px;

  --tv-shadow-card: 0 1px 0 rgba(11,23,51,.04), 0 8px 30px rgba(11,23,51,.06);
  --tv-shadow-cta: 0 8px 24px rgba(38,87,240,.4);
  --tv-shadow-red: 0 6px 18px rgba(226,59,59,.35);

  --tv-container: 1280px;
}

/* =========================================================================
   RESET / BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--tv-ink);
  background: var(--tv-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.4px; text-wrap: pretty; }

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

.tv-skip-link { position: absolute; left: -9999px; }
.tv-skip-link:focus { left: 16px; top: 12px; z-index: 9999; background: #fff; padding: 8px 12px; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }

/* =========================================================================
   TOP UTILITY BAR
   ========================================================================= */
.tv-topbar {
  background: var(--tv-topbar);
  color: #cfd6e5;
  font-size: 13px;
  font-weight: 500;
}
.tv-topbar-inner {
  display: flex;
  align-items: center;
  height: 38px;
  gap: 24px;
}
.tv-topbar a { display: inline-flex; align-items: center; gap: 7px; }
.tv-topbar a:hover { color: #fff; }
.tv-topbar .tv-socials { margin-left: auto; display: flex; gap: 14px; align-items: center; color: #fff; }
.tv-topbar .tv-socials a { opacity: .85; }
.tv-topbar .tv-socials a:hover { opacity: 1; }
.tv-icon { display: inline-block; vertical-align: middle; flex: 0 0 auto; }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.tv-header { background: #fff; border-bottom: 1px solid var(--tv-border); }
.tv-header-inner {
  display: flex; align-items: center;
  padding: 18px 0;
}
.tv-logo { display: inline-flex; align-items: center; gap: 12px; }
.tv-logo-mark {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--tv-brand), var(--tv-brand-deep));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px rgba(38,87,240,.3);
}
.tv-logo-text { line-height: 1; }
.tv-logo-title { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; color: var(--tv-ink); }
.tv-logo-title em { font-style: normal; color: var(--tv-brand); }
.tv-logo-sub { font-size: 11.5px; color: var(--tv-muted); margin-top: 4px; letter-spacing: 0.3px; }

.tv-nav {
  display: flex; gap: 28px; margin-left: 56px;
  font-size: 15px; font-weight: 600; color: var(--tv-ink-2);
}
.tv-nav a { display: inline-flex; align-items: center; gap: 4px; transition: color .15s; }
.tv-nav a:hover { color: var(--tv-brand); }
.tv-nav .menu-item-has-children > a::after {
  content: ''; width: 12px; height: 12px; margin-left: 4px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") center/contain no-repeat;
}

.tv-header .tv-cta-primary { margin-left: auto; }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.tv-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; padding: 14px 22px; border-radius: 10px;
  font-weight: 700; font-size: 14.5px;
  transition: transform .15s, box-shadow .15s;
}
.tv-btn:hover { transform: translateY(-1px); }
.tv-btn-primary { background: var(--tv-brand); color: #fff; box-shadow: 0 4px 14px rgba(38,87,240,.35); }
.tv-btn-primary:hover { background: var(--tv-brand-deep); box-shadow: 0 8px 22px rgba(38,87,240,.45); }
.tv-btn-secondary { background: #fff; color: var(--tv-ink); border: 1.5px solid var(--tv-border); }
.tv-btn-secondary:hover { border-color: var(--tv-ink); }
.tv-btn-hero {
  padding: 16px 26px; border-radius: 12px; font-size: 15px;
  box-shadow: var(--tv-shadow-cta);
}
.tv-btn-red {
  background: var(--tv-cta-red); color: #fff;
  padding: 18px 46px; border-radius: 10px;
  font-weight: 800; font-size: 18px; letter-spacing: 1px;
  box-shadow: var(--tv-shadow-red);
}
.tv-btn-red:hover { background: var(--tv-cta-red-deep); }
.tv-btn-green {
  background: var(--tv-shop-green); color: #fff;
  border: 0; padding: 12px 14px; border-radius: 8px;
  font-weight: 800; font-size: 12.5px; letter-spacing: 1px;
  width: 100%;
}
.tv-btn-green:hover { background: #3a9c4c; }

/* =========================================================================
   HERO (landing)
   ========================================================================= */
.tv-hero {
  position: relative; min-height: 460px; overflow: hidden;
  background: linear-gradient(95deg, #f4ead7 0%, #f0e4d3 35%, #d8e3ee 75%, #c4d5ea 100%);
}
.tv-hero-inner { position: relative; padding: 80px 40px 60px; max-width: 640px; }
.tv-hero-photo {
  position: absolute; top: 0; right: 0; bottom: 0; left: 38%;
  background-image:
    linear-gradient(115deg, rgba(244,234,215,1) 0%, rgba(244,234,215,0) 22%),
    linear-gradient(135deg, #dee9f5 0%, #f3e3c8 55%, #f5d3a0 100%);
}
.tv-hero h1 {
  font-size: 64px; line-height: 1.05; font-weight: 800;
  letter-spacing: -1.8px; color: var(--tv-ink);
}
.tv-hero p {
  margin-top: 28px; font-size: 18px; line-height: 1.55;
  color: var(--tv-ink-2); font-weight: 500; max-width: 500px;
}
.tv-hero p .tv-highlight { color: var(--tv-brand); font-weight: 700; }
.tv-hero-ctas { margin-top: 34px; display: flex; gap: 14px; }

/* =========================================================================
   FEATURES PILLS
   ========================================================================= */
.tv-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 40px; }
.tv-feature { display: flex; gap: 14px; align-items: flex-start; }
.tv-feature-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--tv-pill-bg);
  display: grid; place-items: center;
  color: var(--tv-brand); flex-shrink: 0;
}
.tv-feature-title { font-weight: 700; font-size: 15px; color: var(--tv-ink); }
.tv-feature-desc { margin-top: 4px; font-size: 13.5px; color: var(--tv-muted); line-height: 1.45; white-space: pre-line; }

/* =========================================================================
   SECTION HEADINGS (with accent underline)
   ========================================================================= */
.tv-section-title {
  position: relative;
  font-size: 24px; font-weight: 800; letter-spacing: -0.5px;
  color: var(--tv-ink); margin: 0 0 26px;
}
.tv-section-title::after {
  content: ''; position: absolute; left: 0; bottom: -8px;
  width: 44px; height: 3px; border-radius: 3px; background: var(--tv-brand);
}
.tv-section-link {
  color: var(--tv-brand); font-size: 13.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}

/* =========================================================================
   ARTICLE CARDS
   ========================================================================= */
.tv-articles-section { padding: 24px 40px 0; }
.tv-articles-grid {
  display: grid; grid-template-columns: 1fr 280px; gap: 28px;
}
.tv-article-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.tv-article-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--tv-border);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.tv-article-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(11,23,51,.08); }
.tv-article-thumb {
  height: 168px; position: relative; overflow: hidden;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #dee9f5 0%, #f3e3c8 55%, #f5d3a0 100%);
  background-size: cover;
  background-position: center;
}
.tv-article-card img.tv-article-thumb-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.tv-article-tag {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--tv-brand); color: #fff;
  padding: 5px 11px; border-radius: 4px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.8px;
  text-transform: uppercase;
}
.tv-article-body { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.tv-article-title {
  font-size: 15.5px; font-weight: 700; line-height: 1.35;
  color: var(--tv-ink); min-height: 44px; margin: 0;
}
.tv-article-meta {
  margin-top: 14px; font-size: 12px; color: var(--tv-muted);
  display: flex; gap: 10px;
}

/* =========================================================================
   SIDEBAR (about + categories)
   ========================================================================= */
.tv-sidebar-about {
  background: var(--tv-surface-accent); border-radius: var(--tv-radius-lg);
  padding: 22px; align-self: flex-start; margin-top: 36px;
}
.tv-sidebar-about h3 { font-weight: 700; font-size: 16px; color: var(--tv-ink); margin: 0; }
.tv-sidebar-avatar {
  width: 120px; height: 120px; border-radius: 50%; margin: 16px auto;
  background: linear-gradient(135deg, #d6c39a, #7a8fa6);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.1) 0 2px, transparent 2px 10px),
                    linear-gradient(135deg, #d6c39a, #7a8fa6);
}
.tv-sidebar-about p { font-size: 13px; line-height: 1.55; color: var(--tv-ink-2); margin: 0; }
.tv-sidebar-rule { height: 1px; background: #dbe2ee; margin: 18px 0; }
.tv-cat-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tv-cat-list a {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--tv-ink-2); font-size: 13.5px; font-weight: 500;
}
.tv-cat-list a:hover { color: var(--tv-brand); }

/* =========================================================================
   GUIDES TILE ROW
   ========================================================================= */
.tv-guides { margin-top: 28px; padding: 32px 40px 40px; background: var(--tv-surface); }
.tv-guides-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tv-guide-tile {
  background: #fff; border-radius: 12px; padding: 18px 20px;
  border: 1px solid var(--tv-border);
  display: flex; align-items: center; gap: 14px;
  transition: box-shadow .2s, transform .2s;
}
.tv-guide-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11,23,51,.06); }
.tv-guide-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--tv-pill-bg);
  display: grid; place-items: center; color: var(--tv-brand);
}
.tv-guide-title { font-weight: 700; font-size: 14.5px; color: var(--tv-ink); }
.tv-guide-count { font-size: 12.5px; color: var(--tv-muted); margin-top: 2px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.tv-footer {
  background: var(--tv-topbar); color: #cfd6e5;
  margin-top: 60px; padding: 48px 0 24px;
}
.tv-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.tv-footer h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.tv-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13.5px; }
.tv-footer ul a { color: #cfd6e5; }
.tv-footer ul a:hover { color: #fff; }
.tv-footer-bottom {
  margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px; color: rgba(255,255,255,.5);
  display: flex; justify-content: space-between;
}

/* =========================================================================
   ARTICLE / PROMO PAGE
   ========================================================================= */
.tv-promo-body { background: #f4f5f7; min-height: 100vh; }
.tv-promo-header {
  background: #fff; border-bottom: 1px solid var(--tv-border);
  padding: 18px 0;
}
.tv-promo-header-inner {
  display: flex; align-items: center; gap: 28px;
}
.tv-promo-logo {
  width: 44px; height: 44px; border-radius: 50%; background: #2da08a;
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.tv-promo-search {
  flex: 1; max-width: 540px; position: relative;
  background: #f4f5f7; border-radius: 999px;
}
.tv-promo-search .tv-icon-search {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--tv-muted);
}
.tv-promo-search input {
  background: transparent; border: 0; outline: none; width: 100%;
  padding: 12px 18px 12px 44px; font-size: 14px; color: var(--tv-ink);
  border-radius: 999px;
}
.tv-promo-nav {
  display: flex; gap: 28px; margin-left: auto;
  font-size: 14.5px; font-weight: 600; color: var(--tv-ink-2);
}
.tv-promo-nav a:hover { color: var(--tv-brand); }
.tv-flag {
  display: inline-flex; align-items: center; gap: 6px;
}
.tv-flag-glyph {
  width: 22px; height: 16px; border-radius: 2px; overflow: hidden;
  display: inline-flex; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.tv-flag-glyph span { flex: 1; }
.tv-flag-fr-1 { background: #0055a4; }
.tv-flag-fr-2 { background: #fff; }
.tv-flag-fr-3 { background: #ef4135; }

/* Breadcrumb */
.tv-breadcrumb {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 0 0; font-size: 14px; color: var(--tv-muted);
}
.tv-breadcrumb a:hover { color: var(--tv-ink-2); }
.tv-breadcrumb .tv-crumb-current { color: var(--tv-ink-2); font-weight: 600; }

/* Promo h1 + sub */
.tv-promo-hero { margin-top: 18px; }
.tv-promo-hero h1 {
  font-size: 38px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.1;
  color: var(--tv-ink);
}
.tv-promo-hero h1 .tv-promo-h1-soft { font-weight: 400; color: var(--tv-ink-2); }
.tv-promo-hero .tv-promo-sub { margin-top: 12px; font-size: 16px; color: var(--tv-ink-2); line-height: 1.5; }

.tv-pill-updated {
  display: inline-flex; align-items: center; gap: 8px;
  background: #e6f6ec; color: #1c8b51;
  padding: 7px 13px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; margin-top: 8px;
}
.tv-pill-updated .tv-tick {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--tv-shop-green); color: #fff;
  display: grid; place-items: center;
}

/* Promo layout */
.tv-promo-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; margin-top: 8px; }
@media (max-width: 1024px) { .tv-promo-layout { grid-template-columns: 1fr; } }

/* Promo card */
.tv-promo-card {
  background: #fff; border-radius: var(--tv-radius-lg);
  padding: 32px 36px;
  box-shadow: var(--tv-shadow-card);
  border: 1px solid var(--tv-border);
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center;
  margin-top: 22px;
}
.tv-promo-card-stock {
  position: absolute; top: 22px; right: 22px;
  background: #fdf3e2; color: #e07f1a;
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 7px;
}
.tv-promo-card-stock .tv-tick {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--tv-shop-green); color: #fff;
  display: grid; place-items: center;
}
.tv-promo-detected {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--tv-promo); font-weight: 800; font-size: 19px;
  letter-spacing: -0.2px;
}
.tv-promo-price-row {
  margin-top: 18px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.tv-promo-price-label { font-size: 28px; font-weight: 700; color: var(--tv-ink); letter-spacing: -0.5px; }
.tv-promo-price { font-size: 40px; font-weight: 800; color: var(--tv-price); letter-spacing: -1px; }
.tv-promo-history {
  display: inline-block; margin-top: 4px; font-size: 14.5px;
  color: var(--tv-ink-2); font-style: italic;
  text-decoration: underline; text-decoration-color: rgba(0,0,0,.2);
}
.tv-promo-rating {
  margin-top: 18px; display: inline-flex; gap: 0; align-items: stretch;
  border: 1px solid var(--tv-border); border-radius: 10px; padding: 4px;
}
.tv-promo-rating > div { padding: 8px 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--tv-ink); }
.tv-promo-rating .tv-rating-sep { width: 1px; background: var(--tv-border); margin: 4px 0; padding: 0; }
.tv-promo-price-tier { letter-spacing: 1px; }
.tv-promo-price-tier .on { color: var(--tv-ink); }
.tv-promo-price-tier .off { color: #cdd2da; }
.tv-promo-image {
  height: 240px; border-radius: 12px; position: relative; overflow: hidden;
  background: #eef1f7;
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.025) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #f4f6fa 0%, #dee5ef 100%);
}
.tv-promo-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; }

/* Info pills row */
.tv-promo-info {
  margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border: 1px solid var(--tv-border); border-radius: 10px;
  overflow: hidden;
}
.tv-promo-info > div {
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
  justify-content: center;
}
.tv-promo-info > div + div { border-left: 1px solid var(--tv-border); }
.tv-promo-info strong { font-size: 15px; font-weight: 700; color: var(--tv-ink); }
.tv-promo-info .tv-c-time { color: #5b6479; }
.tv-promo-info .tv-c-truck { color: #e8a93a; }

/* Lede paragraph */
.tv-promo-lede {
  margin-top: 26px; font-size: 15.5px; line-height: 1.65;
  color: var(--tv-ink-2); max-width: 580px;
}

/* Pros list with green checks */
.tv-promo-h2 {
  font-size: 22px; font-weight: 800; color: var(--tv-ink);
  margin: 32px 0 18px; letter-spacing: -0.5px;
}
.tv-pros-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.tv-pros-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15.5px; color: var(--tv-ink-2);
}
.tv-pros-tick {
  width: 22px; height: 22px; border-radius: 50%;
  background: #e6f6ec; color: var(--tv-shop-green);
  display: grid; place-items: center; flex-shrink: 0; margin-top: 1px;
}
.tv-pros-list li strong { color: var(--tv-ink); font-weight: 700; }

/* FAQ */
.tv-faq { display: grid; gap: 10px; }
.tv-faq-item {
  background: #fff; border: 1px solid var(--tv-border); border-radius: 12px;
  padding: 16px 18px;
}
.tv-faq-item > summary {
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; list-style: none;
}
.tv-faq-item > summary::-webkit-details-marker { display: none; }
.tv-faq-marker {
  width: 22px; height: 22px; border-radius: 50%;
  background: #2da08a; color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0; font-size: 14px; font-weight: 800;
}
.tv-faq-q { font-size: 15px; font-weight: 600; color: var(--tv-ink); flex: 1; }
.tv-faq-chev { color: var(--tv-muted); transition: transform .2s; }
.tv-faq-item[open] .tv-faq-chev { transform: rotate(180deg); }
.tv-faq-body { margin-top: 12px; margin-left: 36px; font-size: 14px; color: var(--tv-ink-2); line-height: 1.6; }

/* Spec synthesis */
.tv-spec-grid {
  background: #fff; border: 1px solid var(--tv-border); border-radius: 12px;
  padding: 20px 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.tv-spec-key { font-size: 12px; color: var(--tv-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.tv-spec-val { font-size: 22px; font-weight: 800; color: var(--tv-ink); margin-top: 4px; }
.tv-spec-sub { font-size: 12.5px; color: var(--tv-muted); margin-top: 2px; }

/* Sidebar promo widget */
.tv-side-stack { display: grid; gap: 18px; align-content: start; }
.tv-side-promo {
  background: #fff; border: 1px solid var(--tv-border); border-radius: 14px;
  padding: 20px 18px;
}
.tv-side-promo h3 { font-size: 17px; font-weight: 800; color: var(--tv-ink); margin-bottom: 14px; }
.tv-side-promo h3 .tv-slash { color: var(--tv-muted); font-weight: 500; }
.tv-side-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.tv-side-list li {
  display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center;
}
.tv-side-thumb {
  height: 70px; border-radius: 8px; position: relative; overflow: hidden;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #dee9f5 0%, #f3e3c8 55%, #f5d3a0 100%);
}
.tv-side-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-side-disc {
  position: absolute; top: 6px; left: 6px;
  background: var(--tv-promo); color: #fff;
  font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 4px;
}
.tv-side-name { font-size: 14px; font-weight: 700; color: var(--tv-ink); line-height: 1.25; }
.tv-side-price { margin-top: 4px; font-size: 16px; font-weight: 800; color: var(--tv-cta-red); }
.tv-side-was { font-size: 12.5px; color: var(--tv-muted); text-decoration: line-through; }

/* =========================================================================
   ARCHIVE / GENERIC PAGES
   ========================================================================= */
.tv-page { padding: 40px 0 64px; }
.tv-page-title { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-bottom: 18px; }
.tv-prose { font-size: 16px; line-height: 1.7; color: var(--tv-ink-2); max-width: 720px; }
.tv-prose h2 { margin-top: 32px; font-size: 24px; color: var(--tv-ink); }
.tv-prose h3 { margin-top: 24px; font-size: 19px; color: var(--tv-ink); }
.tv-prose a { color: var(--tv-brand); text-decoration: underline; }
.tv-prose img { border-radius: 12px; margin: 16px 0; }

.tv-archive-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px;
}

.tv-pagination { display: flex; gap: 8px; margin-top: 36px; }
.tv-pagination a, .tv-pagination span {
  padding: 10px 14px; border-radius: 8px; border: 1px solid var(--tv-border);
  font-weight: 600; font-size: 14px; color: var(--tv-ink-2);
}
.tv-pagination .current { background: var(--tv-brand); color: #fff; border-color: var(--tv-brand); }

/* =========================================================================
   COMMENTS
   ========================================================================= */
.tv-comments { margin-top: 48px; max-width: 720px; }
.tv-comments h3 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.tv-comments .comment-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.tv-comments .comment-body { background: var(--tv-surface); border-radius: 12px; padding: 16px 18px; }
.tv-comments .comment-meta { font-size: 12px; color: var(--tv-muted); margin-bottom: 6px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1100px) {
  .tv-nav { display: none; }
  .tv-features { grid-template-columns: repeat(2, 1fr); }
  .tv-articles-grid { grid-template-columns: 1fr; }
  .tv-article-cards { grid-template-columns: repeat(2, 1fr); }
  .tv-guides-grid { grid-template-columns: repeat(2, 1fr); }
  .tv-hero h1 { font-size: 44px; }
  .tv-hero-photo { display: none; }
  .tv-promo-card { grid-template-columns: 1fr; }
  .tv-promo-image { height: 200px; }
  .tv-spec-grid { grid-template-columns: repeat(2, 1fr); }
  .tv-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .tv-archive-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .tv-container { padding: 0 20px; }
  .tv-hero-inner { padding: 40px 20px; }
  .tv-hero h1 { font-size: 36px; letter-spacing: -1px; }
  .tv-features, .tv-guides, .tv-articles-section { padding: 24px 20px; }
  .tv-features, .tv-article-cards, .tv-guides-grid, .tv-spec-grid { grid-template-columns: 1fr; }
  .tv-promo-header-inner { flex-wrap: wrap; gap: 12px; }
  .tv-promo-nav { width: 100%; justify-content: center; }
  .tv-promo-hero h1 { font-size: 28px; }
  .tv-archive-grid { grid-template-columns: 1fr; }
  .tv-footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   MODERN ARTICLE / SINGLE POST LAYOUT
   ========================================================================= */
.tv-article-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--tv-brand), var(--tv-promo));
  z-index: 9999; transition: width 50ms linear;
}
.tv-article-body { padding: 8px 0 64px; background: #fff; }
.tv-article-header { max-width: 820px; margin: 28px auto 0; padding: 0 8px; }
.tv-article-cat {
  display: inline-block; background: var(--tv-pill-bg); color: var(--tv-brand);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  margin-bottom: 18px;
}
.tv-article-h1 {
  font-size: 44px; font-weight: 800; line-height: 1.08; letter-spacing: -1.2px;
  color: var(--tv-ink); margin: 0 0 18px;
}
@media (max-width: 700px) { .tv-article-h1 { font-size: 30px; letter-spacing: -0.6px; } }
.tv-article-lede {
  font-size: 19px; line-height: 1.55; color: var(--tv-ink-2); font-weight: 500;
  margin: 0 0 24px;
}
.tv-article-author-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0 0; border-top: 1px solid var(--tv-border);
  gap: 16px; flex-wrap: wrap;
}
.tv-article-author { display: flex; align-items: center; gap: 12px; }
.tv-article-author-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(11,23,51,.08);
}
.tv-article-author-meta { display: flex; flex-direction: column; line-height: 1.3; }
.tv-article-author-meta strong { font-size: 14.5px; font-weight: 700; color: var(--tv-ink); }
.tv-article-author-meta span { font-size: 13px; color: var(--tv-muted); margin-top: 2px; }
.tv-article-share { display: inline-flex; gap: 6px; }
.tv-article-share a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--tv-surface); color: var(--tv-ink-2);
  transition: background .15s, color .15s, transform .15s;
}
.tv-article-share a:hover { background: var(--tv-brand); color: #fff; transform: translateY(-1px); }

/* Hero image */
.tv-article-hero {
  max-width: 1120px; margin: 32px auto 40px;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(11,23,51,.10);
}
.tv-article-hero img { width: 100%; height: auto; display: block; }

/* Layout grid: TOC + content */
.tv-article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 48px;
  justify-content: center;
  align-items: start;
}
@media (max-width: 980px) { .tv-article-layout { grid-template-columns: 1fr; gap: 16px; } }

.tv-article-aside { position: sticky; top: 24px; }
@media (max-width: 980px) { .tv-article-aside { position: static; } }
.tv-article-toc {
  background: var(--tv-surface);
  border-radius: 14px; padding: 20px 18px;
  border: 1px solid var(--tv-border);
}
.tv-article-toc h4 {
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--tv-muted); margin: 0 0 12px;
}
.tv-article-toc ol {
  margin: 0; padding: 0; list-style: none;
  counter-reset: tvtoc;
  font-size: 13.5px; line-height: 1.45;
}
.tv-article-toc li { counter-increment: tvtoc; position: relative; padding-left: 26px; margin-bottom: 10px; }
.tv-article-toc li::before {
  content: counter(tvtoc, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-size: 11px; font-weight: 800; color: var(--tv-brand); letter-spacing: 0.5px;
}
.tv-article-toc a {
  color: var(--tv-ink-2); transition: color .15s; display: block;
  border-left: 2px solid transparent; padding-left: 10px; margin-left: -12px;
}
.tv-article-toc a:hover { color: var(--tv-brand); }
.tv-article-toc a.is-active {
  color: var(--tv-brand); font-weight: 700; border-left-color: var(--tv-brand);
}

/* Prose: richer typography for articles */
.tv-article-content { max-width: 760px; font-size: 17.5px; line-height: 1.75; color: var(--tv-ink-2); }
.tv-article-content > p:first-of-type::first-letter {
  font-size: 56px; font-weight: 800; float: left;
  line-height: 0.9; padding: 4px 12px 0 0; color: var(--tv-brand);
}
.tv-article-content h2 {
  font-size: 28px; font-weight: 800; color: var(--tv-ink);
  margin: 48px 0 16px; letter-spacing: -0.6px; line-height: 1.2;
  scroll-margin-top: 24px;
  position: relative; padding-left: 18px;
}
.tv-article-content h2::before {
  content: ''; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 4px; border-radius: 2px; background: var(--tv-brand);
}
.tv-article-content h3 {
  font-size: 22px; font-weight: 700; color: var(--tv-ink);
  margin: 32px 0 12px; line-height: 1.25;
}
.tv-article-content p { margin: 0 0 18px; }
.tv-article-content a {
  color: var(--tv-brand); text-decoration: underline;
  text-decoration-color: rgba(38,87,240,.4); text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}
.tv-article-content a:hover { text-decoration-color: var(--tv-brand); }
.tv-article-content strong { color: var(--tv-ink); font-weight: 700; }
.tv-article-content blockquote {
  margin: 28px 0; padding: 20px 24px; border-left: 4px solid var(--tv-brand);
  background: var(--tv-surface); border-radius: 0 12px 12px 0;
  font-size: 18px; font-style: italic; color: var(--tv-ink);
}
.tv-article-content blockquote p:last-child { margin-bottom: 0; }
.tv-article-content ul, .tv-article-content ol {
  padding-left: 24px; margin: 0 0 22px;
}
.tv-article-content li { margin-bottom: 8px; }
.tv-article-content ul li::marker { color: var(--tv-brand); }
.tv-article-content img {
  border-radius: 14px; margin: 28px auto;
  box-shadow: 0 12px 30px rgba(11,23,51,.08);
}
.tv-article-content table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--tv-border); border-radius: 12px;
  overflow: hidden; margin: 28px 0; font-size: 14.5px;
}
.tv-article-content th, .tv-article-content td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--tv-border);
}
.tv-article-content th { background: var(--tv-surface); font-weight: 700; color: var(--tv-ink); font-size: 13.5px; }
.tv-article-content tr:last-child td { border-bottom: 0; }
.tv-article-content code {
  background: var(--tv-surface); padding: 2px 8px; border-radius: 6px;
  font-size: 0.92em; color: var(--tv-ink);
}

/* "Answer capsule" boxed paragraph: opt-in via .wp-block-quote.is-style-tv-capsule or .tv-capsule */
.tv-article-content .tv-capsule {
  background: linear-gradient(135deg, #eef4ff 0%, #f6f9ff 100%);
  border: 1px solid #dbe6ff; border-radius: 16px;
  padding: 22px 24px; margin: 24px 0;
  font-size: 16px; line-height: 1.6; color: var(--tv-ink);
}
.tv-article-content .tv-capsule strong { color: var(--tv-brand-deep); }

/* Author box */
.tv-author-box {
  max-width: 820px; margin: 56px auto 0;
  display: grid; grid-template-columns: 96px 1fr; gap: 24px;
  background: var(--tv-surface); border-radius: 18px;
  padding: 28px 28px; align-items: center;
}
.tv-author-box img { width: 96px; height: 96px; border-radius: 50%; }
.tv-author-box h3 { font-size: 18px; font-weight: 800; color: var(--tv-ink); margin: 0 0 8px; }
.tv-author-box p { font-size: 14.5px; line-height: 1.55; color: var(--tv-ink-2); margin: 0 0 10px; }
.tv-author-link { color: var(--tv-brand); font-weight: 700; font-size: 14px; }
.tv-author-link:hover { color: var(--tv-brand-deep); }
@media (max-width: 600px) {
  .tv-author-box { grid-template-columns: 1fr; text-align: center; padding: 22px 20px; }
  .tv-author-box img { margin: 0 auto; }
}

/* Related articles */
.tv-related { max-width: 1120px; margin: 64px auto 0; padding: 0 8px; }
.tv-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .tv-related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tv-related-grid { grid-template-columns: 1fr; } }
.tv-related-card {
  background: #fff; border: 1px solid var(--tv-border); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.tv-related-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11,23,51,.08); }
.tv-related-thumb {
  height: 160px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #dee9f5 0%, #f3e3c8 55%, #f5d3a0 100%);
}
.tv-related-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-related-body { padding: 16px 16px 18px; }
.tv-related-cat {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  color: var(--tv-brand);
}
.tv-related-title {
  font-size: 15.5px; font-weight: 700; line-height: 1.35;
  color: var(--tv-ink); margin: 6px 0 10px;
}
.tv-related-meta { font-size: 12px; color: var(--tv-muted); }

/* =========================================================================
   WORDPRESS ALIGNMENT HELPERS
   ========================================================================= */
.alignleft { float: left; margin: 0 16px 12px 0; }
.alignright { float: right; margin: 0 0 12px 16px; }
.aligncenter { display: block; margin: 16px auto; }
.alignwide { max-width: var(--tv-container); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text { font-size: 13px; color: var(--tv-muted); text-align: center; padding-top: 6px; }
.screen-reader-text { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
