/* ════════════════════════════════════════════
   TOOLSPECT — theme.css v29
   Midnight Indigo Edition
   Palette: Deep Navy · Electric Violet · Warm Gold · Rose
   ════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,700;1,9..144,900&family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ── Backgrounds ────────────────────────── */
  --bg:          #07091c;
  --surface:     #0d1130;
  --surface-2:   #131840;
  --surface-3:   #1a2055;

  /* ── Borders ────────────────────────────── */
  --border:      rgba(109, 91, 239, .18);
  --border-2:    rgba(109, 91, 239, .09);

  /* ── Violet (primary) ───────────────────── */
  --violet:      #6d5bef;
  --violet-hi:   #8b7cf8;
  --violet-lo:   #4f3fcc;
  --violet-glow: rgba(109, 91, 239, .16);
  --violet-dim:  rgba(109, 91, 239, .36);

  /* ── Teal (scores / trust) — replaces old amber/gold ── */
  --gold:        #2dd4bf;
  --gold-hi:     #5eead4;
  --gold-glow:   rgba(45, 212, 191, .13);
  --gold-dim:    rgba(45, 212, 191, .32);

  /* ── Rose (secondary accent) ────────────── */
  --rose:        #f64f70;
  --rose-glow:   rgba(246, 79, 112, .12);
  --rose-dim:    rgba(246, 79, 112, .30);

  /* ── Text ───────────────────────────────── */
  --cream:       #eaedf8;
  --cream-2:     #9ba3c4;
  --text:        #d4d8ee;
  --muted:       #5a6490;

  /* ── Semantic ───────────────────────────── */
  --green:       #4ade80;
  --green-glow:  rgba(74, 222, 128, .10);
  --red:         #f87171;
  --red-glow:    rgba(248, 113, 113, .10);

  /* ── Legacy amber aliases ───────────────── */
  --amber:       var(--gold);
  --amber-hi:    var(--gold-hi);
  --amber-glow:  var(--gold-glow);
  --amber-dim:   var(--gold-dim);

  /* ── Layout ─────────────────────────────── */
  --nav-h:    62px;
  --ticker-h: 34px;

  /* ── Typography ─────────────────────────── */
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Outfit', system-ui, sans-serif;
  --mono:  'JetBrains Mono', 'Fira Code', monospace;
}

/* ════════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Ambient radial glow background — fixed so it doesn't scroll */
  background-image:
    radial-gradient(ellipse 90% 55% at 18% -8%,  rgba(109,91,239,.20) 0%, transparent 60%),
    radial-gradient(ellipse 65% 50% at 88% 12%,  rgba(246,79,112,.11) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(109,91,239,.10) 0%, transparent 55%);
  background-attachment: fixed;
}

/* ── Layout ── */
.ts-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.ts-site-body {
  padding-top: calc(var(--nav-h) + var(--ticker-h));
  min-height: 60vh;
}

/* ════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════ */
.ts-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(7, 9, 28, .86);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
/* Gradient shimmer line along the nav bottom */
.ts-nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-dim), var(--rose-dim), transparent);
  opacity: .6;
}

.ts-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Logo */
.ts-logo {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--cream);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -.02em;
  transition: opacity .15s;
}
.ts-logo:hover { opacity: .82; }
.ts-logo span {
  background: linear-gradient(130deg, var(--violet-hi), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* WordPress nav menu */
.ts-nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex: 1;
}
.ts-nav-menu li a {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.ts-nav-menu li a:hover { color: var(--cream); background: var(--surface-2); }
.ts-nav-menu li.current-menu-item > a,
.ts-nav-menu li.current_page_item  > a {
  color: var(--violet-hi);
  background: var(--violet-glow);
}

.ts-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ts-nl-btn {
  background: linear-gradient(135deg, var(--violet), var(--violet-lo));
  color: #fff;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 16px var(--violet-dim);
  transition: opacity .15s, transform .12s, box-shadow .15s;
}
.ts-nl-btn:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 5px 24px var(--violet-dim); }

/* Hamburger */
.ts-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.ts-ham span {
  display: block;
  width: 20px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: .2s;
}

/* Mobile drawer */
.ts-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 800;
  background: rgba(9, 12, 32, .97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px 16px;
}
.ts-drawer.open { display: block; }

.ts-drawer-menu { list-style: none; }
.ts-drawer-menu li a {
  display: block;
  padding: 11px 0;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color .14s;
}
.ts-drawer-menu li:last-child a { border-bottom: none; }
.ts-drawer-menu li a:hover,
.ts-drawer-menu li.current-menu-item > a { color: var(--violet-hi); }

/* ════════════════════════════════════════════
   TICKER
   ════════════════════════════════════════════ */
.ts-ticker {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 800;
  height: var(--ticker-h);
  background: linear-gradient(90deg, #120c35, #0d1130 35%, #150e38 70%, #120c35);
  border-bottom: 1px solid var(--violet-dim);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ts-ticker-label {
  flex-shrink: 0;
  background: var(--violet);
  color: #fff;
  font-family: var(--mono);
  font-size: .53rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255,255,255,.12);
  white-space: nowrap;
}

.ts-ticker-track {
  display: flex;
  white-space: nowrap;
  animation: tsScroll 62s linear infinite;
}
.ts-ticker-track:hover { animation-play-state: paused; }

.ts-tick {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 400;
  color: var(--cream-2);
  padding: 0 40px;
  letter-spacing: .03em;
}
.ts-tick::before { content: '◆  '; color: var(--violet-hi); opacity: .55; font-size: .42rem; }

@keyframes tsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════
   ANNOUNCEMENT BAR
   ════════════════════════════════════════════ */
.ts-announce {
  background: rgba(109,91,239,.07);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  text-align: center;
}
.ts-announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ts-announce-fire { font-size: .9rem; }
.ts-announce-text { font-size: .82rem; color: var(--cream-2); }
.ts-announce-text strong { color: var(--cream); }
.ts-announce-text a {
  color: var(--violet-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}
.ts-announce-text a:hover { color: var(--gold); }

/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.ts-hero {
  padding: 52px 0 68px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
/* Large ambient orbs behind hero content */
.ts-hero::before {
  content: '';
  position: absolute;
  left: -140px; top: -100px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,91,239,.24) 0%, transparent 65%);
  pointer-events: none;
  animation: floatOrb 7s ease-in-out infinite alternate;
}
.ts-hero::after {
  content: '';
  position: absolute;
  right: -80px; bottom: -120px;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246,79,112,.14) 0%, transparent 65%);
  pointer-events: none;
  animation: floatOrb 9s ease-in-out infinite alternate-reverse;
}
@keyframes floatOrb {
  from { opacity: .55; transform: scale(1) translateY(0); }
  to   { opacity: 1;   transform: scale(1.06) translateY(-16px); }
}

.ts-hero-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Eyebrow pill tag */
.ts-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--violet-hi);
  margin-bottom: 20px;
  padding: 5px 14px;
  background: var(--violet-glow);
  border: 1px solid var(--violet-dim);
  border-radius: 20px;
}
/* Pulsing dot before the text */
.ts-eyebrow::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-hi);
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.25; } }

.ts-hero-left h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.06;
  letter-spacing: -.025em;
  margin-bottom: 20px;
}
/* Italic word gets the gold gradient */
.ts-hero-left h1 em {
  font-style: italic;
  background: linear-gradient(130deg, var(--gold-hi), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ts-hero-sub {
  font-size: 1.02rem;
  color: var(--cream-2);
  line-height: 1.78;
  max-width: 490px;
  margin-bottom: 30px;
}

/* CTA buttons */
.ts-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.ts-btn-primary {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--violet), var(--violet-lo));
  color: #fff;
  font-family: var(--sans);
  font-size: .93rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 24px var(--violet-dim), 0 0 0 1px var(--violet-dim);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.ts-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px var(--violet-dim), 0 0 0 1px var(--violet);
  color: #fff;
}

.ts-btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--cream-2);
  font-family: var(--sans);
  font-size: .93rem;
  font-weight: 500;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.ts-btn-ghost:hover { border-color: var(--violet-dim); color: var(--violet-hi); background: var(--violet-glow); }

/* Trust badges */
.ts-hero-trust {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 24px;
}
.ts-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  color: var(--cream-2);
  padding-right: 18px;
  margin-right: 18px;
  border-right: 1px solid var(--border);
  line-height: 1;
  white-space: nowrap;
}
.ts-trust-item:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.ts-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green-glow);
  border: 1px solid rgba(74,222,128,.25);
  color: var(--green);
  font-weight: 700;
  font-size: .6rem;
  flex-shrink: 0;
}

/* Featured review card */
.ts-hero-right { position: relative; z-index: 1; }

.ts-featured-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .2s, box-shadow .2s;
}
.ts-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 80px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
}
/* Top accent stripe */
.ts-featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--rose), transparent);
}
/* Ambient glow in card */
.ts-featured-card::after {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--violet-glow) 0%, transparent 70%);
  pointer-events: none;
}

.ts-featured-label {
  font-family: var(--mono);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--violet-hi);
  margin-bottom: 16px;
}
.ts-featured-empty { font-size: .86rem; color: var(--muted); line-height: 1.65; padding-top: 10px; }

.ts-featured-score {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(130deg, var(--gold-hi), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}
.ts-featured-score-label {
  font-family: var(--mono);
  font-size: .53rem;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.ts-featured-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.35;
  margin-bottom: 10px;
}
.ts-featured-excerpt {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ts-featured-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--violet), var(--violet-lo));
  color: #fff;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 3px 14px var(--violet-dim);
  transition: opacity .15s, transform .12s;
}
.ts-featured-link:hover { opacity: .88; transform: translateY(-1px); }

/* ════════════════════════════════════════════
   TOOL CAROUSEL
   ════════════════════════════════════════════ */
.ts-carousel-wrap {
  overflow: hidden;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.ts-carousel-wrap::before,
.ts-carousel-wrap::after {
  content: '';
  position: absolute;
  top: 68px; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.ts-carousel-wrap::before { left: 0;  background: linear-gradient(90deg,  var(--bg), transparent); }
.ts-carousel-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.ts-carousel-label {
  text-align: center;
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  position: relative;
  z-index: 3;
}

.ts-carousel-track-outer {
  overflow: hidden;
  position: relative;
}
.ts-carousel-track {
  display: flex;
  width: max-content;
  animation: tsCarousel 58s linear infinite;
}
.ts-carousel-track:hover { animation-play-state: paused; }

@keyframes tsCarousel {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ts-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 18px;
  margin-right: 10px;
  flex-shrink: 0;
  cursor: default;
  transition: border-color .15s, box-shadow .15s;
}
.ts-pill:hover { border-color: var(--violet-dim); box-shadow: 0 0 18px var(--violet-glow); }
.ts-pill-name { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--cream); }
.ts-pill-tag {
  font-family: var(--mono);
  font-size: .52rem;
  color: var(--violet-hi);
  background: var(--violet-glow);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--violet-dim);
}

/* ════════════════════════════════════════════
   HOME CONTENT GRID
   ════════════════════════════════════════════ */
.ts-home-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.ts-home-grid {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 28px;
  align-items: start;
}

.ts-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.ts-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.ts-sec-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--violet-hi);
  margin-bottom: 6px;
}
.ts-sec-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
}

/* Article cards */
.ts-cards-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--border);
}

.ts-card {
  background: var(--surface);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .15s, border-left-color .15s;
}
.ts-card:hover { background: var(--surface-2); border-left-color: var(--violet); }

.ts-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ts-card-cat {
  font-family: var(--mono);
  font-size: .54rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--violet-hi);
}
.ts-card-score {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid var(--gold-dim);
  padding: 2px 9px;
  border-radius: 5px;
  flex-shrink: 0;
}
.ts-card-title {
  font-family: var(--serif);
  font-size: .97rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.35;
  transition: color .14s;
}
.ts-card:hover .ts-card-title { color: var(--violet-hi); }
.ts-card-excerpt {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ts-card-meta {
  font-family: var(--mono);
  font-size: .56rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-2);
}

.ts-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* ── Author card ── */
.ts-author-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
/* Top gradient stripe */
.ts-author-mini::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--rose));
}
.ts-author-mini-label {
  display: block;
  font-family: var(--mono);
  font-size: .52rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.ts-author-mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ts-author-mini-av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: .82rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.ts-author-mini-name { font-family: var(--serif); font-size: .86rem; font-weight: 700; color: var(--cream); line-height: 1.2; }
.ts-author-mini-role {
  font-family: var(--mono);
  font-size: .5rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--violet-hi);
  margin-top: 2px;
}
.ts-author-mini-bio { font-size: .78rem; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.ts-author-mini-link {
  font-family: var(--mono);
  font-size: .57rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--violet-hi);
  text-decoration: none;
}
.ts-author-mini-link:hover { color: var(--gold); }

/* ── Rankings widget ── */
.ts-rankings-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  position: static;
}
.ts-rankings-title { font-family: var(--serif); font-size: .9rem; font-weight: 700; color: var(--cream); margin-bottom: 14px; }
.ts-r-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-2);
  text-decoration: none;
  transition: background .12s;
}
.ts-r-row:last-of-type { border-bottom: none; }
.ts-r-num { font-family: var(--mono); font-size: .66rem; color: var(--muted); width: 18px; flex-shrink: 0; }
.ts-r-name {
  font-family: var(--sans);
  font-size: .83rem;
  font-weight: 600;
  color: var(--cream);
  flex: 1;
  transition: color .14s;
}
.ts-r-row:hover .ts-r-name { color: var(--violet-hi); }
.ts-r-score { font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--gold); flex-shrink: 0; }
.ts-rankings-footer { margin-top: 12px; font-family: var(--mono); font-size: .54rem; color: var(--muted); text-align: right; }

/* ════════════════════════════════════════════
   NEWSLETTER SECTION
   ════════════════════════════════════════════ */
.ts-nl-section { padding: 72px 0; }

.ts-nl-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 52px 56px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 52px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
/* Glow orbs inside the newsletter box */
.ts-nl-box::before {
  content: '';
  position: absolute;
  right: -90px; top: -90px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,91,239,.18) 0%, transparent 65%);
  pointer-events: none;
}
.ts-nl-box::after {
  content: '';
  position: absolute;
  left: -50px; bottom: -70px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246,79,112,.10) 0%, transparent 65%);
  pointer-events: none;
}

.ts-nl-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.16;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.ts-nl-title em {
  font-style: italic;
  background: linear-gradient(130deg, var(--gold-hi), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ts-nl-sub { font-size: .9rem; color: var(--cream-2); line-height: 1.75; margin-bottom: 22px; position: relative; z-index: 1; }
.ts-nl-perks { display: flex; flex-direction: column; gap: 9px; position: relative; z-index: 1; }
.ts-nl-perk { font-size: .84rem; color: var(--text); padding-left: 22px; position: relative; }
.ts-nl-perk::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; font-size: .76rem; }

.ts-nl-right {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.ts-nl-form-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: var(--cream); margin-bottom: 4px; }
.ts-nl-form-sub { font-size: .72rem; color: var(--muted); margin-bottom: 20px; }
.ts-nl-fields { display: flex; flex-direction: column; gap: 10px; }
.ts-nl-input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--cream);
  font-family: var(--sans);
  font-size: .88rem;
  padding: 12px 15px;
  border-radius: 9px;
  outline: none;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.ts-nl-input:focus { border-color: var(--violet-dim); box-shadow: 0 0 0 3px rgba(109,91,239,.12); }
.ts-nl-input::placeholder { color: var(--muted); }
.ts-nl-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--violet), var(--violet-lo));
  color: #fff;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--violet-dim);
  transition: opacity .15s, transform .12s, box-shadow .15s;
}
.ts-nl-submit:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 8px 30px var(--violet-dim); }
.ts-nl-privacy { font-size: .64rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* ════════════════════════════════════════════
   SEARCH
   ════════════════════════════════════════════ */
.ts-search-form { position: relative; display: flex; align-items: center; }
.ts-search-icon { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }
.ts-search-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--cream);
  font-family: var(--sans);
  font-size: .8rem;
  padding: 7px 12px 7px 30px;
  border-radius: 8px;
  outline: none;
  width: 160px;
  transition: border-color .15s, width .25s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
.ts-search-input:focus {
  border-color: var(--violet-dim);
  width: 200px;
  box-shadow: 0 0 0 3px rgba(109,91,239,.10);
}
.ts-search-input::placeholder { color: var(--muted); }
.ts-search-input::-webkit-search-cancel-button { display: none; }
.ts-drawer-search { padding: 12px 0 8px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.ts-footer {
  border-top: 1px solid var(--border);
  padding: 52px 0 32px;
  position: relative;
}
.ts-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-dim), var(--rose-dim), transparent);
}

.ts-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-2);
  margin-bottom: 24px;
}
.ts-footer-logo {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--cream);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}
.ts-footer-logo span {
  background: linear-gradient(130deg, var(--violet-hi), var(--rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ts-footer-tagline { font-size: .82rem; color: var(--muted); line-height: 1.65; margin-bottom: 18px; }
.ts-footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-soc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: .57rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 7px;
  transition: border-color .14s, color .14s;
}
.ts-soc-link:hover { border-color: var(--violet-dim); color: var(--violet-hi); }
.ts-footer-col-title {
  font-family: var(--mono);
  font-size: .57rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--violet-hi);
  margin-bottom: 16px;
}
.ts-footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ts-footer-links li a { font-size: .85rem; color: var(--cream-2); text-decoration: none; transition: color .14s; }
.ts-footer-links li a:hover { color: var(--violet-hi); }
.ts-footer-bottom {}
.ts-footer-copy { font-family: var(--mono); font-size: .57rem; color: var(--muted); text-align: center; }

/* Simple footer fallback */
.ts-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }

/* ════════════════════════════════════════════
   PAGE TEMPLATE
   ════════════════════════════════════════════ */
.ts-page-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--border); }
.ts-page-h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.ts-page-body { padding: 48px 0 80px; }

/* ════════════════════════════════════════════
   PROSE
   ════════════════════════════════════════════ */
.ts-prose { max-width: 720px; font-size: .97rem; line-height: 1.82; }
.ts-prose p { margin-bottom: 20px; color: var(--text); }
.ts-prose p:last-child { margin-bottom: 0; }
.ts-prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  font-weight: 700;
  color: var(--cream);
  margin: 44px 0 14px;
  line-height: 1.2;
}
.ts-prose h2:first-child { margin-top: 0; }
.ts-prose h3 { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; color: var(--cream); margin: 32px 0 10px; }
.ts-prose a { color: var(--violet-hi); text-decoration: underline; text-underline-offset: 3px; }
.ts-prose a:hover { color: var(--gold); }
.ts-prose strong { color: var(--cream); font-weight: 700; }
.ts-prose em { font-style: italic; }
.ts-prose ul, .ts-prose ol { margin: 0 0 20px 22px; display: flex; flex-direction: column; gap: 7px; }
.ts-prose li { line-height: 1.75; color: var(--text); }
.ts-prose blockquote {
  border-left: 3px solid var(--violet);
  padding: 16px 22px;
  margin: 28px 0;
  background: var(--surface);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--cream-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.ts-prose hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.ts-prose img { max-width: 100%; border-radius: 12px; border: 1px solid var(--border); margin: 20px 0; display: block; }
.ts-prose table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: .88rem; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ts-prose th { background: var(--surface-2); color: var(--cream-2); font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.ts-prose td { padding: 11px 14px; border-bottom: 1px solid var(--border-2); vertical-align: top; color: var(--text); }
.ts-prose tr:last-child td { border-bottom: none; }
.ts-prose tr:hover td { background: var(--surface); }

/* ════════════════════════════════════════════
   CATEGORY PAGES
   ════════════════════════════════════════════ */
.ts-cat-page { padding-bottom: 80px; }

.ts-cat-hero {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.ts-cat-hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  pointer-events: none;
  opacity: .7;
}
.ts-cat-hero--review::before     { background: radial-gradient(circle, rgba(245,185,66,.16) 0%, transparent 65%); }
.ts-cat-hero--comparison::before { background: radial-gradient(circle, rgba(109,91,239,.20) 0%, transparent 65%); }
.ts-cat-hero--alternative::before{ background: radial-gradient(circle, rgba(74,222,128,.13) 0%, transparent 65%); }
.ts-cat-hero--pricing::before    { background: radial-gradient(circle, rgba(246,79,112,.16) 0%, transparent 65%); }
.ts-cat-hero--contact::before    { background: radial-gradient(circle, rgba(109,91,239,.16) 0%, transparent 65%); }

.ts-cat-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: .57rem;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.ts-cat-hero--comparison .ts-cat-eyebrow  { color: var(--violet-hi); }
.ts-cat-hero--alternative .ts-cat-eyebrow { color: var(--green); }
.ts-cat-hero--pricing .ts-cat-eyebrow     { color: var(--rose); }

.ts-cat-h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.1;
  letter-spacing: -.022em;
  margin-bottom: 12px;
}
.ts-cat-sub { font-size: .97rem; color: var(--cream-2); max-width: 520px; line-height: 1.7; }
.ts-cat-body { padding: 48px 0 0; }

/* Empty state */
.ts-cat-empty {
  text-align: center;
  padding: 80px 28px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.ts-cat-empty-icon { font-size: 2.5rem; margin-bottom: 18px; opacity: .5; }
.ts-cat-empty h2 { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--cream-2); margin-bottom: 10px; }
.ts-cat-empty p { font-size: .9rem; color: var(--muted); line-height: 1.65; max-width: 380px; margin: 0 auto; }
.ts-cat-empty strong { color: var(--cream-2); }

/* Listing cards */
.ts-listing {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--border);
}

.ts-list-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  padding: 28px 28px 28px 32px;
  text-decoration: none;
  border-left: 4px solid transparent;
  transition: background .15s;
  position: relative;
}
.ts-list-card:hover { background: var(--surface-2); }

.ts-list-card--review      { border-left-color: var(--gold); }
.ts-list-card--comparison  { border-left-color: var(--violet); }
.ts-list-card--alternative { border-left-color: var(--green); }
.ts-list-card--pricing     { border-left-color: var(--rose); }

.ts-lc-left { flex: 1; }
.ts-lc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: .57rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.ts-lc-tool {
  font-weight: 500;
  color: var(--gold);
  background: var(--gold-glow);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--gold-dim);
}
.ts-list-card--comparison .ts-lc-tool  { color: var(--violet-hi); background: var(--violet-glow); border-color: var(--violet-dim); }
.ts-list-card--alternative .ts-lc-tool { color: var(--green); background: var(--green-glow); border-color: rgba(74,222,128,.25); }
.ts-list-card--pricing .ts-lc-tool     { color: var(--rose); background: var(--rose-glow); border-color: var(--rose-dim); }
.ts-lc-sep { opacity: .35; }

.ts-lc-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.32;
  margin-bottom: 8px;
  transition: color .14s;
}
.ts-list-card:hover .ts-lc-title { color: var(--violet-hi); }
.ts-lc-excerpt { font-size: .84rem; color: var(--muted); line-height: 1.65; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ts-lc-cta { font-family: var(--mono); font-size: .63rem; font-weight: 500; letter-spacing: .07em; color: var(--violet-hi); text-transform: uppercase; }

.ts-lc-score {
  flex-shrink: 0;
  text-align: center;
  padding: 14px 20px;
  background: var(--gold-glow);
  border: 1px solid var(--gold-dim);
  border-radius: 12px;
  min-width: 88px;
}
.ts-lc-score-num {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.ts-lc-score-label { font-family: var(--mono); font-size: .52rem; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; margin-top: 4px; }

/* ════════════════════════════════════════════
   CONTACT PAGE
   ════════════════════════════════════════════ */
.ts-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ts-contact-info-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--cream); margin-bottom: 12px; }
.ts-contact-info-sub { font-size: .9rem; color: var(--text); line-height: 1.75; margin-bottom: 28px; }
.ts-contact-detail { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.ts-contact-detail:last-of-type { margin-bottom: 28px; }
.ts-cd-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.ts-cd-label { font-family: var(--mono); font-size: .55rem; letter-spacing: .11em; text-transform: uppercase; color: var(--violet-hi); margin-bottom: 3px; }
.ts-cd-val { font-size: .88rem; color: var(--cream-2); }
.ts-contact-nl { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-top: 28px; }
.ts-contact-nl-title { font-family: var(--serif); font-size: .95rem; font-weight: 700; color: var(--cream); margin-bottom: 4px; }
.ts-contact-nl-sub { font-size: .76rem; color: var(--muted); margin-bottom: 13px; }
.ts-contact-nl-row { display: flex; gap: 9px; flex-wrap: wrap; }

.ts-contact-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.ts-form-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--cream); margin-bottom: 22px; }
.ts-form-error { background: var(--red-glow); border: 1px solid rgba(248,113,113,.3); color: var(--red); font-size: .84rem; padding: 11px 16px; border-radius: 8px; margin-bottom: 18px; }
.ts-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.ts-form-group { margin-bottom: 14px; }
.ts-form-row .ts-form-group { margin-bottom: 0; }
.ts-form-label { display: block; font-family: var(--mono); font-size: .57rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ts-req { color: var(--rose); }
.ts-form-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--cream);
  font-family: var(--sans);
  font-size: .9rem;
  padding: 10px 14px;
  border-radius: 9px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  resize: none;
}
.ts-form-input:focus { border-color: var(--violet-dim); box-shadow: 0 0 0 3px rgba(109,91,239,.12); }
.ts-form-input::placeholder { color: var(--muted); }
.ts-form-select { appearance: none; cursor: pointer; }
.ts-form-textarea { min-height: 140px; resize: vertical; }
.ts-form-submit {
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  background: linear-gradient(135deg, var(--violet), var(--violet-lo));
  color: #fff;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--violet-dim);
  transition: opacity .15s, transform .12s, box-shadow .15s;
}
.ts-form-submit:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 8px 30px var(--violet-dim); }
.ts-form-success { text-align: center; padding: 48px 20px; }
.ts-form-success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green-glow); border: 2px solid rgba(74,222,128,.30); color: var(--green); font-size: 1.4rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.ts-form-success h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--cream); margin-bottom: 8px; }
.ts-form-success p { font-size: .9rem; color: var(--muted); }

/* ════════════════════════════════════════════
   READING PROGRESS BAR
   ════════════════════════════════════════════ */
.ts-prog { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.04); z-index: 9999; pointer-events: none; }
.ts-prog-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--violet), var(--rose)); transition: width .1s linear; }

/* ════════════════════════════════════════════
   SINGLE POST (article page)
   ════════════════════════════════════════════ */
.ts-single-page { padding-top: 0; padding-bottom: 80px; min-height: 60vh; }

.ts-sgl-header { padding: 24px 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 0; }

.ts-sgl-bc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-family: var(--mono);
  font-size: .57rem;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 12px;
}
.ts-sgl-bc a { color: var(--muted); text-decoration: none; transition: color .15s; }
.ts-sgl-bc a:hover { color: var(--violet-hi); }
.ts-sgl-bc-cur { color: var(--cream-2); max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ts-sgl-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ts-sgl-badge {
  font-family: var(--mono);
  font-size: .54rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid var(--violet-dim);
  color: var(--violet-hi);
  background: var(--violet-glow);
}
.ts-sgl-meta-txt { font-family: var(--mono); font-size: .57rem; color: var(--muted); letter-spacing: .04em; }
.ts-sgl-dot { color: var(--border); }
.ts-sgl-score-pill {
  font-family: var(--mono);
  font-size: .57rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 2px 9px;
  border-radius: 20px;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  background: var(--gold-glow);
}

.ts-sgl-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0;
}

.ts-sgl-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0 36px;
  align-items: start;
  margin-top: 28px;
}

.ts-sgl-main { min-width: 0; }
.ts-sgl-main .rv-section { padding-top: 36px !important; padding-bottom: 36px !important; }
.ts-sgl-main .rv-section:first-child { padding-top: 20px !important; }
.ts-sgl-main .rv-h2, .ts-sgl-main h2 { margin-top: 0 !important; margin-bottom: 16px !important; color: var(--cream) !important; }
.ts-sgl-main .rv-h3, .ts-sgl-main h3 { margin-top: 24px !important; margin-bottom: 10px !important; color: var(--cream) !important; }

.ts-sgl-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + var(--ticker-h) + 12px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
  max-height: calc(100vh - var(--nav-h) - var(--ticker-h) - 24px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--violet-dim) transparent;
  padding-right: 4px;
}
.ts-sgl-sidebar::-webkit-scrollbar { width: 4px; }
.ts-sgl-sidebar::-webkit-scrollbar-track { background: transparent; }
.ts-sgl-sidebar::-webkit-scrollbar-thumb { background: var(--violet-dim); border-radius: 2px; }

.ts-sw { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.ts-sw-label { font-family: var(--mono); font-size: .52rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--violet-hi); margin-bottom: 12px; }

.ts-sw-score { text-align: center; }
.ts-sw-tool { font-family: var(--serif); font-size: .95rem; font-weight: 700; color: var(--cream-2); margin-bottom: 6px; }
.ts-sw-score-num {
  font-family: var(--serif);
  font-size: 3.8rem;
  font-weight: 900;
  background: linear-gradient(130deg, var(--gold-hi), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}
.ts-sw-score-max { font-family: var(--mono); font-size: .56rem; color: var(--muted); letter-spacing: .08em; margin-bottom: 16px; }
.ts-sw-bars { display: flex; flex-direction: column; gap: 8px; }
.ts-sw-bar-row { display: flex; align-items: center; gap: 8px; }
.ts-sw-bar-label { font-family: var(--mono); font-size: .56rem; color: var(--cream-2); width: 70px; flex-shrink: 0; text-align: right; }
.ts-sw-bar-track { flex: 1; height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.ts-sw-bar-fill { height: 100%; background: linear-gradient(90deg, var(--violet), var(--rose)); border-radius: 3px; }
.ts-sw-bar-val { font-family: var(--mono); font-size: .62rem; font-weight: 600; color: var(--gold); width: 24px; flex-shrink: 0; }

.ts-sw-verdict-text { font-size: .84rem; color: var(--text); line-height: 1.65; margin-bottom: 12px; }
.ts-sw-verdict-link {
  display: block;
  background: linear-gradient(135deg, var(--violet), var(--violet-lo));
  color: #fff;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 16px var(--violet-dim);
  transition: opacity .15s, transform .12s;
}
.ts-sw-verdict-link:hover { opacity: .88; transform: translateY(-1px); }

/* Pros/Cons */
.ts-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin: 28px 0;
  background: var(--border);
}
.ts-pros, .ts-cons { background: var(--surface); padding: 20px; }
.ts-pros-label, .ts-cons-label { font-family: var(--mono); font-size: .57rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.ts-pros-label { color: var(--green); }
.ts-cons-label { color: var(--red); }
.ts-pros-list, .ts-cons-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ts-pros-list li, .ts-cons-list li { font-size: .85rem; color: var(--text); padding-left: 18px; position: relative; line-height: 1.5; }
.ts-pros-list li::before { content: '+'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.ts-cons-list li::before { content: '−'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* Pricing table */
.ts-price-table { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 28px 0; }
.ts-price-table table { width: 100%; border-collapse: collapse; }
.ts-price-table th { background: var(--surface-2); color: var(--cream-2); font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.ts-price-table td { padding: 11px 16px; border-bottom: 1px solid var(--border-2); font-size: .88rem; color: var(--text); }
.ts-price-table tr:last-child td { border-bottom: none; }
.ts-price-table tr:hover td { background: var(--surface); }
.ts-price-table .ts-ph { color: var(--cream); font-weight: 600; }
.ts-price-table .ts-ok { color: var(--green); }
.ts-price-table .ts-no { color: var(--red); opacity: .7; }
.ts-price-table .ts-part { color: var(--gold); }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 860px) {
  .ts-hero-split   { grid-template-columns: 1fr; }
  .ts-home-grid    { grid-template-columns: 1fr; }
  .ts-sidebar      { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .ts-author-mini,
  .ts-rankings-widget { flex: 1 1 260px; }
  .ts-nl-box       { grid-template-columns: 1fr; padding: 36px 28px; }
  .ts-contact-grid { grid-template-columns: 1fr; }
  .ts-footer-top   { grid-template-columns: 1fr 1fr; gap: 28px; }
  .ts-sgl-body     { grid-template-columns: 1fr; }
  .ts-sgl-sidebar  { position: static; max-height: none; overflow-y: visible; }
  .ts-pros-cons    { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --nav-h: 54px; --ticker-h: 30px; }
  .ts-hero          { padding-top: 28px !important; padding-bottom: 44px !important; }
  .ts-nav-menu      { display: none; }
  .ts-ham           { display: flex; }
  .ts-nl-btn        { display: none; }
  .ts-search-form   { display: none; }
  .ts-footer-top    { grid-template-columns: 1fr; }
  .ts-form-row      { grid-template-columns: 1fr; }
  .ts-hero-trust    { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ts-trust-item    { border-right: none; margin-right: 0; padding-right: 0; }
  .ts-list-card     { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ts-lc-score      { align-self: flex-start; }
  .ts-footer-inner  { flex-direction: column; align-items: flex-start; }
  .ts-footer-copy   { text-align: left; }
  .ts-nl-box        { padding: 28px 20px; }
  .ts-wrap          { padding: 0 18px; }
}

/* ════════════════════════════════════════════
   COMPREHENSIVE MOBILE FIXES
   Covers the full spectrum of layout, overflow,
   and readability issues on phones and small tablets.
   ════════════════════════════════════════════ */

/* ── Global overflow guard ── */
/* Everything must stay within the viewport width on mobile.
   The html element is the last line of defence — if any
   descendant bleeds past this, overflow-x scroll appears. */
@media (max-width: 767px) {
  html { overflow-x: hidden; }

  /* Prevent any element from ever being wider than the screen */
  img, video, iframe, table, pre, code, svg {
    max-width: 100%;
  }

  /* ── Navigation ── */
  .ts-nav-inner { padding: 0 16px; gap: 12px; }
  .ts-nav-menu  { display: none; }
  .ts-ham       { display: flex; }
  .ts-nl-btn    { display: none; }
  .ts-search-form { display: none; }

  /* ── Ticker: ensure it clips cleanly with no side-bleed ── */
  .ts-ticker { left: 0; right: 0; width: 100%; }

  /* ── Announce bar ── */
  .ts-announce-inner { padding: 0 16px; font-size: .78rem; }
  .ts-announce-text  { font-size: .78rem; }

  /* ── Wrapper: tighter padding on mobile ── */
  .ts-wrap { padding: 0 16px; }

  /* ── Hero ── */
  .ts-hero-split { grid-template-columns: 1fr; }
  .ts-hero-right { display: none; } /* featured card hidden — too wide for mobile hero */
  .ts-hero-left h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .ts-hero-sub { font-size: .93rem; }
  .ts-hero-actions { flex-direction: column; gap: 10px; }
  .ts-hero-actions a { width: 100%; justify-content: center; text-align: center; }

  /* ── Tool carousel ── */
  .ts-carousel-wrap  { overflow: hidden; } /* belt AND braces */
  .ts-carousel-wrap::before,
  .ts-carousel-wrap::after { width: 48px; } /* smaller fade on narrow screens */

  /* ── Home grid: single column, sidebar stacks below feed ── */
  .ts-home-grid { grid-template-columns: 1fr; gap: 32px; }
  .ts-sidebar   { flex-direction: column; gap: 12px; }
  .ts-author-mini,
  .ts-rankings-widget { flex: none; width: 100%; }

  /* ── Article cards ── */
  .ts-card-inner { padding: 16px 18px; }

  /* ── Category listing cards (Reviews, Alternatives, etc.) ── */
  .ts-listing { border-radius: 12px; }
  .ts-list-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 16px 20px 20px;
    /* Tighten the left border so it still shows on small screens */
    border-left-width: 3px;
  }
  .ts-lc-title  { font-size: .97rem; }
  .ts-lc-excerpt { -webkit-line-clamp: 3; } /* allow a bit more on mobile where there's no sidebar */
  .ts-lc-score  { align-self: flex-start; padding: 10px 14px; min-width: 72px; }
  .ts-lc-score-num { font-size: 1.7rem; }

  /* ── Prose tables: horizontal scroll instead of overflow ── */
  /* Wrap happens via a parent div in single.php; this ensures
     the table itself scrolls independently without breaking layout. */
  .ts-prose table  { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .ts-price-table  { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ts-price-table table { white-space: nowrap; }

  /* ── Single article page ── */
  .ts-sgl-body    { grid-template-columns: 1fr; margin-top: 20px; }
  .ts-sgl-sidebar { display: none; } /* Sidebar score widget hidden — mobile bar replaces it */
  .ts-sgl-title   { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  .ts-sgl-bc      { font-size: .52rem; }
  .ts-sgl-bc-cur  { max-width: 180px; }

  /* Article header meta pills: wrap instead of overflowing */
  .ts-sgl-meta { flex-wrap: wrap; gap: 6px; }

  /* Pros/cons: single column */
  .ts-pros-cons { grid-template-columns: 1fr; }

  /* Pagination */
  .ts-sgl-pag-inner { grid-template-columns: 1fr; }

  /* ── Newsletter section ── */
  .ts-nl-box { grid-template-columns: 1fr; padding: 28px 20px; gap: 28px; }
  .ts-nl-right { padding: 20px 18px; }
  .ts-nl-title { font-size: clamp(1.3rem, 5vw, 1.7rem); }
  .ts-inline-nl { padding: 22px 18px; }
  .ts-inline-nl-inner { grid-template-columns: 1fr; gap: 18px; }

  /* ── Category hero ── */
  .ts-cat-hero { padding: 32px 0 28px; }
  .ts-cat-h1   { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  /* ── Footer ── */
  .ts-footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ts-footer-social { flex-wrap: wrap; }

  /* ── Contact ── */
  .ts-contact-grid { grid-template-columns: 1fr; }
  .ts-form-row     { grid-template-columns: 1fr; }
}

/* Extra-small phones (≤ 430px) */
@media (max-width: 430px) {
  .ts-footer-top { grid-template-columns: 1fr; }
  .ts-hero-left h1 { font-size: clamp(1.55rem, 8vw, 1.9rem); }
  .ts-wrap { padding: 0 14px; }
  .ts-nav-inner { padding: 0 14px; }
  .ts-list-card { padding: 16px 14px 16px 16px; }
  .ts-card-inner { padding: 14px 16px; }
  .ts-sgl-title { font-size: clamp(1.35rem, 6vw, 1.7rem); }
  /* Category page hero is very tall on tiny phones */
  .ts-cat-hero { padding: 24px 0 20px; }
}

/* ════════════════════════════════════════════
   ARTICLE CONTENT — POST BODY OVERFLOW FIX
   The_content() outputs custom HTML from the
   WordPress editor which often contains elements
   with hardcoded pixel widths (comparison tables,
   verdict boxes, score sections). These rules use
   !important to override those inline styles and
   ensure NOTHING bleeds past the viewport.
   ════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* Step 1: Clip overflow at the column level.
     The column itself never exceeds the viewport. */
  .ts-sgl-main {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
  }

  /* Step 2: Force every single descendant element to respect
     the viewport width. This is the "nuclear" rule that catches
     any custom HTML block with an inline width like style="width:800px". */
  .ts-sgl-main * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Step 3: Tables get horizontal scroll treatment.
     display:block is required — without it, overflow-x:auto
     on a table element has no effect in most browsers.
     min-width on cells prevents them from becoming unreadably
     narrow when the table is forced into a smaller space. */
  .ts-sgl-main table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    max-width: 100% !important;
  }
  .ts-sgl-main td,
  .ts-sgl-main th {
    white-space: normal;
    min-width: 110px;
    word-break: break-word;
  }

  /* Step 4: Long URLs and technical words inside paragraphs
     break instead of overflowing the container. */
  .ts-sgl-main p,
  .ts-sgl-main li,
  .ts-sgl-main h1,
  .ts-sgl-main h2,
  .ts-sgl-main h3,
  .ts-sgl-main h4,
  .ts-sgl-main blockquote {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* Step 5: Embedded iframes (YouTube, Loom, etc.)
     keep a 16:9 ratio instead of overflowing. */
  .ts-sgl-main iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  /* Step 6: Images always stay within their container. */
  .ts-sgl-main img {
    width: auto;
    max-width: 100% !important;
    height: auto;
  }
}

/* ════════════════════════════════════════════
   SINGLE PAGE — ALL MISSING WIDGET STYLES
   These classes are generated by single.php
   ════════════════════════════════════════════ */

/* ── Sidebar score widget internals ── */
.ts-sw-score-header { margin-bottom: 12px; }
.ts-sw-tool-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream-2);
  margin-bottom: 4px;
}
/* The large score number + denom in the sidebar */
.ts-sw-score-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 6px 0 4px;
}
.ts-sw-score-num {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(130deg, var(--gold-hi), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Overwrite gradient when PHP passes an explicit color (green/red) */
.ts-sw-score-display[style] .ts-sw-score-num { background: none; -webkit-text-fill-color: inherit; }
.ts-sw-score-denom {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .05em;
  align-self: flex-end;
  padding-bottom: 8px;
}
/* Star row */
.ts-sw-stars {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.ts-star-on  { color: var(--gold); }
.ts-star-off { color: var(--surface-3); }

/* Score bar inside sidebar */
.ts-sw-bar-bg {
  height: 5px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}
.ts-sw-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--violet), var(--rose));
  transition: width .6s ease;
}

/* Verdict paragraph */
.ts-sw-verdict {
  font-size: .82rem;
  color: var(--cream-2);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 14px;
}
.ts-sw-verdict a { color: var(--violet-hi); }

/* Proof items (checkmarks) */
.ts-sw-proof {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.ts-sw-proof-item {
  font-size: .8rem;
  color: var(--cream-2);
  line-height: 1.45;
  display: flex;
  gap: 7px;
}
.ts-sw-check {
  color: var(--green);
  font-weight: 700;
  font-size: .72rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* CTA buttons inside sidebar */
.ts-sw-cta-btn {
  display: block;
  background: linear-gradient(135deg, var(--violet), var(--violet-lo));
  color: #fff !important;
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 9px;
  box-shadow: 0 4px 18px var(--violet-dim);
  transition: opacity .15s, transform .12s;
  margin-bottom: 8px;
}
.ts-sw-cta-btn:hover { opacity: .88; transform: translateY(-1px); }

.ts-sw-cta-secondary {
  display: block;
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-align: center;
  color: var(--muted) !important;
  text-decoration: none;
  transition: color .14s;
}
.ts-sw-cta-secondary:hover { color: var(--violet-hi) !important; }

/* Pending state */
.ts-sw-pending {
  text-align: center;
  padding: 14px 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ts-sw-pending-icon { font-size: 1.4rem; }
.ts-sw-pending-text { font-size: .82rem; color: var(--muted); }

/* ════════════════════════════════════════════
   INLINE NEWSLETTER (post-content)
   ════════════════════════════════════════════ */
.ts-inline-nl {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px;
  margin: 48px 0 32px;
  position: relative;
  overflow: hidden;
}
.ts-inline-nl::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--rose));
}
.ts-inline-nl::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,91,239,.14) 0%, transparent 70%);
  pointer-events: none;
}
.ts-inline-nl-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.ts-inline-nl-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: .55rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--violet-hi);
  margin-bottom: 8px;
}
.ts-inline-nl-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.25;
  margin-bottom: 8px;
}
.ts-inline-nl-sub {
  font-size: .86rem;
  color: var(--cream-2);
  line-height: 1.65;
}
.ts-inline-nl-right {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.ts-inline-nl-input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--cream);
  font-family: var(--sans);
  font-size: .88rem;
  padding: 11px 14px;
  border-radius: 9px;
  outline: none;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.ts-inline-nl-input:focus { border-color: var(--violet-dim); box-shadow: 0 0 0 3px rgba(109,91,239,.12); }
.ts-inline-nl-input::placeholder { color: var(--muted); }
.ts-inline-nl-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--violet), var(--violet-lo));
  color: #fff;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 4px 18px var(--violet-dim);
  transition: opacity .15s, transform .12s;
}
.ts-inline-nl-btn:hover { opacity: .88; transform: translateY(-1px); }
.ts-inline-nl-fine { font-size: .65rem; color: var(--muted); text-align: center; }

@media (max-width: 640px) {
  .ts-inline-nl { padding: 24px 20px; }
  .ts-inline-nl-inner { grid-template-columns: 1fr; gap: 20px; }
}

/* ════════════════════════════════════════════
   MOBILE STICKY SCORE BAR
   ════════════════════════════════════════════ */
.ts-mob-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: rgba(10, 13, 35, .96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  /* Hidden by default — JS adds .ts-mob-bar--visible */
  transform: translateY(100%);
  transition: transform .25s ease;
  /* Only show on mobile */
}
.ts-mob-bar--visible { transform: translateY(0); }

.ts-mob-bar-score {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
}
.ts-mob-bar-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}
.ts-mob-bar-denom {
  font-family: var(--mono);
  font-size: .6rem;
  color: var(--muted);
}
.ts-mob-bar-label {
  font-family: var(--mono);
  font-size: .55rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .09em;
  line-height: 1.3;
  flex: 1;
}
.ts-mob-bar-cta {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--violet), var(--violet-lo));
  color: #fff;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 3px 14px var(--violet-dim);
  white-space: nowrap;
}
/* Hide the mob bar on screens wider than 900px */
@media (min-width: 900px) { .ts-mob-bar { display: none !important; } }

/* ════════════════════════════════════════════
   ARTICLE PAGINATION (prev/next)
   ════════════════════════════════════════════ */
.ts-sgl-pagination {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.ts-sgl-pag-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ts-sgl-pag-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s;
}
.ts-sgl-pag-item:hover {
  border-color: var(--violet-dim);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.ts-sgl-pag-next { text-align: right; }
.ts-sgl-pag-dir {
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet-hi);
  font-weight: 500;
}
.ts-sgl-pag-tool {
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid var(--gold-dim);
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
}
.ts-sgl-pag-next .ts-sgl-pag-tool { align-self: flex-end; }
.ts-sgl-pag-title {
  font-family: var(--serif);
  font-size: .9rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ts-sgl-pag-score {
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--muted);
  font-weight: 500;
}
@media (max-width: 600px) { .ts-sgl-pag-inner { grid-template-columns: 1fr; } }

/* ── Back link ── */
.ts-sgl-back { margin-top: 20px; }
.ts-sgl-back-link {
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
  transition: color .14s;
}
.ts-sgl-back-link:hover { color: var(--violet-hi); }

/* ── More CTA (shown when only 1 article) ── */
.ts-sgl-more-cta {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.ts-sgl-more-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ts-sgl-more-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--rose), transparent);
}
.ts-sgl-more-label {
  display: block;
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet-hi);
  margin-bottom: 10px;
}
.ts-sgl-more-text {
  font-size: .9rem;
  color: var(--cream-2);
  line-height: 1.65;
  max-width: 500px;
  margin: 0 auto 20px;
}
.ts-sgl-more-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, var(--violet), var(--violet-lo));
  color: #fff;
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 9px;
  text-decoration: none;
  box-shadow: 0 4px 18px var(--violet-dim);
  transition: opacity .15s, transform .12s;
}
.ts-sgl-more-btn:hover { opacity: .88; transform: translateY(-1px); }

/* ════════════════════════════════════════════
   HOMEPAGE CARDS — upgrade from plain list
   to editorial magazine-style with score accent
   ════════════════════════════════════════════ */
.ts-cards-grid {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--border);
}

/* Override the previous flat card style */
.ts-card {
  background: var(--surface);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .15s, border-left-color .15s;
  position: relative;
  overflow: hidden;
}
.ts-card:hover { background: var(--surface-2); border-left-color: var(--violet); }

/* Large faint score watermark behind each homepage card */
.ts-card::before {
  content: attr(data-score);
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 900;
  color: var(--violet);
  opacity: .06;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.ts-card-inner {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.ts-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ts-card-cat {
  font-family: var(--mono);
  font-size: .54rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--violet-hi);
}
.ts-card-score {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid var(--gold-dim);
  padding: 2px 9px;
  border-radius: 5px;
  flex-shrink: 0;
}
.ts-card-title {
  font-family: var(--serif);
  font-size: .97rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.32;
  transition: color .14s;
}
.ts-card:hover .ts-card-title { color: var(--violet-hi); }
.ts-card-excerpt {
  font-size: .81rem;
  color: var(--muted);
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ts-card-meta {
  font-family: var(--mono);
  font-size: .55rem;
  color: var(--muted);
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ts-card-meta-cta {
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--violet-hi);
  opacity: 0;
  transition: opacity .14s;
}
.ts-card:hover .ts-card-meta-cta { opacity: 1; }
