/* ==========================================================================
   TOOLS FOR GROWTH – presented by dealcode AI
   Design System: "Precision Editorial Intelligence" (Pure Light Mode · 2026)
   ========================================================================== */

:root {
  color-scheme: light;

  /* Surfaces (Pure Editorial Daylight + Signature Midnight Contrast Stage) */
  --bg-canvas: #fafbfd;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-muted-tint: #f8fafc;
  --bg-winner-tint: rgba(23, 82, 232, 0.038);
  --bg-stage-dark: #050228;
  --bg-stage-card: #0c1033;

  /* Ink & Typography */
  --ink-primary: #0b1120;
  --ink-secondary: #334155;
  --ink-muted: #64748b;
  --ink-on-dark: #f8fafc;
  --ink-on-dark-muted: #94a3b8;

  /* Brand & Semantic Accents (Bridging dealcode.ai + Editorial Authority) */
  --brand-cobalt: #1752e8;
  --brand-cobalt-hover: #1242c4;
  --brand-cobalt-soft: rgba(23, 82, 232, 0.09);
  --brand-coral: #fe4a49;
  --brand-coral-hover: #e53938;
  --brand-coral-soft: rgba(254, 74, 73, 0.1);
  --verify-emerald: #059669;
  --verify-emerald-bright: #00bb7f;
  --verify-emerald-soft: rgba(5, 150, 105, 0.1);
  --warn-amber: #d97706;
  --warn-amber-soft: rgba(217, 119, 6, 0.11);
  --trap-crimson: #dc2626;
  --trap-crimson-soft: rgba(220, 38, 38, 0.09);

  /* Hairlines & Shadows */
  --border-hairline: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.16);
  --border-on-dark: rgba(148, 163, 184, 0.18);
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 10px 28px -12px rgba(15, 23, 42, 0.07);
  --shadow-float: 0 18px 44px -10px rgba(11, 17, 32, 0.16), 0 2px 8px rgba(11, 17, 32, 0.06);

  /* Font Stacks */
  --font-display: "Sora", system-ui, -apple-system, sans-serif;
  --font-sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  /* Layout Containers & Radii */
  --shell-max: 1340px;
  --data-max: 1220px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 9999px;

  --header-h: 70px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--bg-canvas);
}

h1, h2, h3, h4, th {
  font-family: var(--font-display);
  color: var(--ink-primary);
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-top: 0;
}

p, li, dd {
  text-wrap: pretty;
  hyphens: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
}

:focus-visible {
  outline: 2.5px solid var(--brand-cobalt);
  outline-offset: 2px;
}

.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
}

.container {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 36px);
}

/* ==========================================================================
   1. GPU-NATIVE READING PROGRESS BAR (CSS Scroll-Driven Animation · 0 JS)
   ========================================================================== */
@keyframes tfg-scroll-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1100;
  background: linear-gradient(90deg, var(--brand-cobalt) 0%, var(--brand-coral) 60%, var(--verify-emerald-bright) 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

@supports (animation-timeline: scroll()) {
  .reading-progress {
    animation: tfg-scroll-progress linear both;
    animation-timeline: scroll(root block);
  }
}

/* ==========================================================================
   2. STICKY GLASSMORPHIC HEADER & VECTOR CO-BRANDING LOCKUP
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

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

.tfg-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(23, 82, 232, 0.2);
}

.tfg-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.14rem);
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  line-height: 1.1;
}

.presented-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  font-size: 11.5px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  min-height: 32px;
}

.presented-pill:hover {
  border-color: var(--brand-coral);
  background: #fff;
}

.presented-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-coral);
  box-shadow: 0 0 0 3px rgba(254, 74, 73, 0.2);
}

.dealcode-vector-wordmark {
  font-family: "Inter", var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #050228;
  font-size: 12.5px;
}

.dealcode-vector-wordmark span {
  color: var(--brand-coral);
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--brand-cobalt);
  background: var(--brand-cobalt-soft);
}

.nav-badge-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--verify-emerald-soft);
  color: var(--verify-emerald);
}

/* Desktop Mega Dropdown on Hover/Focus */
.mega-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: -80px;
  width: 720px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1050;
}

.nav-item:hover .mega-panel,
.nav-item:focus-within .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mega-card-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mega-card-link:hover {
  background: var(--bg-muted-tint);
  border-color: var(--border-hairline);
}

.mega-card-link strong {
  font-size: 13px;
  color: var(--ink-primary);
}

.mega-card-link small {
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* Header Utility Bar */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cmdk-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  color: var(--ink-muted);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cmdk-trigger:hover {
  background: #fff;
  border-color: var(--brand-cobalt);
  color: var(--ink-primary);
}

.cmdk-text {
  display: none;
}

.kbd-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--border-hairline);
  color: var(--ink-secondary);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  border: none;
  background: transparent;
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  min-height: 32px;
  transition: all 0.15s ease;
}

.lang-btn.active {
  background: #fff;
  color: var(--brand-cobalt);
  box-shadow: var(--shadow-xs);
}

.btn-primary-cobalt {
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--brand-cobalt);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(23, 82, 232, 0.24);
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary-cobalt:hover {
  background: var(--brand-cobalt-hover);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: #fff;
  color: var(--ink-primary);
  cursor: pointer;
}

@media (min-width: 1120px) {
  .desktop-nav { display: flex; }
  .cmdk-text { display: inline; }
  .btn-primary-cobalt { display: inline-flex; }
  .mobile-menu-btn { display: none; }
}

/* ==========================================================================
   3. TOP-LAYER POPOVERS & DIALOGS (@starting-style + allow-discrete)
   ========================================================================== */
[popover] {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--ink-primary);
  box-shadow: var(--shadow-float);
  padding: 18px 20px;
  max-width: min(420px, calc(100vw - 32px));
  margin: auto;
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, overlay 0.18s allow-discrete, display 0.18s allow-discrete;
}

[popover]:popover-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  [popover]:popover-open {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

dialog {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--bg-surface);
  color: var(--ink-primary);
  box-shadow: var(--shadow-float);
  max-width: min(680px, calc(100vw - 24px));
  width: 100%;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease, overlay 0.2s allow-discrete, display 0.2s allow-discrete;
}

dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

dialog::backdrop {
  background: rgba(11, 17, 32, 0.42);
  backdrop-filter: blur(4px);
}

@starting-style {
  dialog[open] {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

/* Mobile Slide-Over Drawer Dialog */
dialog.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0 0 0 auto;
  width: min(390px, 92vw);
  max-width: min(390px, 92vw);
  height: 100dvh;
  max-height: 100dvh;
  border-right: none;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overscroll-behavior: contain;
  transform: translateX(100%);
}

dialog.mobile-drawer[open] {
  opacity: 1;
  transform: translateX(0);
}

@starting-style {
  dialog.mobile-drawer[open] {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ==========================================================================
   4. HERO SECTION (Editorial Command Center + dealcode 20px Dot-Grid)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: clamp(32px, 5vw, 68px) 0 clamp(36px, 5vw, 60px);
  overflow: hidden;
}

.hero-dot-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#cbd5e1 1.15px, transparent 1.15px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 25%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 25%, transparent 95%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid rgba(5, 150, 105, 0.28);
  color: var(--verify-emerald);
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 12.5px);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(1.95rem, 1.35rem + 2.8vw, 3.55rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.032em;
  margin-bottom: 18px;
  color: var(--ink-primary);
}

.hero-title .highlight-gradient {
  background: linear-gradient(95deg, var(--brand-cobalt) 0%, #3b6ef8 55%, var(--brand-coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.18rem);
  color: var(--ink-secondary);
  max-width: 780px;
  margin: 0 auto 28px;
  line-height: 1.62;
}

/* Embedded Instant Search Bar */
.hero-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 16px;
  padding: 7px 8px 7px 18px;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 32px -12px rgba(23, 82, 232, 0.15);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-box:focus-within {
  border-color: var(--brand-cobalt);
  box-shadow: 0 0 0 4px rgba(23, 82, 232, 0.12), 0 12px 32px -12px rgba(23, 82, 232, 0.2);
}

.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: var(--ink-primary);
  min-width: 0;
}

.hero-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--brand-coral);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.hero-search-btn:hover {
  background: var(--brand-coral-hover);
}

/* Quick Intent Chips (Scrollable with Edge Fade on Mobile) */
.intent-chips-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}

.intent-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  gap: 6px;
  min-height: 38px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border-hairline);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.intent-chip:hover {
  border-color: var(--brand-cobalt);
  color: var(--brand-cobalt);
  transform: translateY(-1px);
}

/* 4 Empirical KPI Cards */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 1080px;
  margin-inline: auto;
}

@media (min-width: 820px) {
  .kpi-strip { grid-template-columns: repeat(4, 1fr); }
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-align: left;
  box-shadow: var(--shadow-card);
}

.kpi-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  color: var(--brand-cobalt);
  line-height: 1.15;
}

.kpi-value.coral { color: var(--brand-coral); }
.kpi-value.emerald { color: var(--verify-emerald); }

.kpi-label {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 4px;
  line-height: 1.35;
}

/* ==========================================================================
   5. SECTION HEADERS & BENTO GRID FOR 9 CATEGORIES + 2 CROSS-SUITE CLUSTERS
   ========================================================================== */
.section-block {
  padding: clamp(44px, 6vw, 84px) 0;
  border-top: 1px solid var(--border-hairline);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

@media (min-width: 860px) {
  .section-head.split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-cobalt);
}

.section-title {
  font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2.15rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0;
}

.section-desc {
  font-size: 15.5px;
  color: var(--ink-secondary);
  max-width: 680px;
  margin: 0;
}

.categories-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 680px) {
  .categories-bento { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1060px) {
  .categories-bento { grid-template-columns: repeat(3, 1fr); }
}

.category-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  border-color: var(--brand-cobalt);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -12px rgba(23, 82, 232, 0.14);
}

.cat-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.cat-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-cobalt-soft);
  color: var(--brand-cobalt);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
}

.cat-usp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--verify-emerald);
  background: var(--verify-emerald-soft);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.category-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.category-card p {
  font-size: 13.8px;
  color: var(--ink-secondary);
  margin: 0 0 14px;
  line-height: 1.55;
}

.replaces-box {
  background: var(--bg-muted-tint);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.replaces-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.replaces-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.replace-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid var(--border-hairline);
  color: var(--ink-secondary);
}

.cat-footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
  font-size: 13px;
  font-weight: 700;
}

.cat-guide-link {
  color: var(--brand-cobalt);
}

.cat-product-link {
  color: var(--ink-muted);
  font-size: 12px;
}

.cat-product-link:hover {
  color: var(--brand-coral);
}

/* Cross-Suite Banner Pair (Clusters 10 & 11) */
.cross-suite-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

@media (min-width: 860px) {
  .cross-suite-grid { grid-template-columns: repeat(2, 1fr); }
}

.cross-banner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ffffff 0%, #f4f7ff 100%);
  border: 1.5px solid rgba(23, 82, 232, 0.25);
  box-shadow: var(--shadow-card);
}

.cross-banner.coral-tint {
  background: linear-gradient(135deg, #ffffff 0%, #fff6f5 100%);
  border-color: rgba(254, 74, 73, 0.28);
}

/* ==========================================================================
   6. INTERACTIVE STACK & TCO CALCULATOR (Midnight Navy #050228 Contrast Stage)
   ========================================================================== */
.tco-stage-wrapper {
  background: var(--bg-stage-dark);
  color: var(--ink-on-dark);
  border-radius: var(--radius-xl);
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid rgba(75, 131, 255, 0.3);
  box-shadow: 0 24px 60px -16px rgba(5, 2, 40, 0.45);
  position: relative;
  overflow: hidden;
}

.tco-stage-wrapper::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(23, 82, 232, 0.32) 0%, rgba(254, 74, 73, 0.14) 45%, transparent 70%);
  pointer-events: none;
}

.tco-stage-wrapper h2,
.tco-stage-wrapper h3 {
  color: #fff;
}

.tco-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .tco-grid { grid-template-columns: 1.35fr 1fr; align-items: start; }
}

.tool-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-bottom: 22px;
}

@media (min-width: 640px) {
  .tool-picker-grid { grid-template-columns: repeat(3, 1fr); }
}

.picker-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-on-dark);
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.picker-tile:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.09);
}

.picker-tile.selected {
  background: rgba(23, 82, 232, 0.28);
  border-color: #5b8dff;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(91, 141, 255, 0.4);
}

.picker-tile-name {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
}

.picker-tile-price {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-on-dark-muted);
  display: block;
}

.picker-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.picker-tile.selected .picker-check {
  background: var(--verify-emerald-bright);
  border-color: var(--verify-emerald-bright);
  color: #050228;
  font-weight: 800;
}

.slider-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13.5px;
}

.slider-range {
  width: 100%;
  accent-color: var(--brand-coral);
  height: 6px;
  cursor: pointer;
}

/* Live TCO Receipt Card */
.tco-receipt {
  background: #ffffff;
  color: var(--ink-primary);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}

.tco-receipt h3 {
  color: var(--ink-primary);
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-strong);
  font-size: 14px;
}

.savings-callout {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(23, 82, 232, 0.08) 100%);
  border: 1.5px solid rgba(5, 150, 105, 0.35);
}

.savings-amount {
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 1.2rem + 1vw, 2.05rem);
  font-weight: 800;
  color: var(--verify-emerald);
  line-height: 1.15;
}

.tco-preset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tco-preset-btn:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.tco-preset-btn.active {
  background: rgba(23, 82, 232, 0.36);
  border-color: #5b8dff;
  color: #fff;
}

.savings-callout.is-higher {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.savings-callout.is-higher .savings-amount {
  color: var(--ink-primary);
}

/* ==========================================================================
   7. BUYER'S GUIDE COCKPIT & SINGLE-DOM RESPONSIVE TABLES (Card <-> Matrix)
   ========================================================================== */
.guide-showcase-shell {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: clamp(18px, 3.5vw, 38px);
  box-shadow: var(--shadow-card);
}

@media (max-width: 639px) {
  .guide-showcase-shell {
    padding: 16px 14px;
    border-radius: var(--radius-lg);
  }
}

.answer-first-lead-box {
  padding: 18px 20px;
  border: 1px solid var(--border-strong);
  background: var(--bg-muted-tint);
  border-radius: var(--radius-md);
  font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
  color: var(--ink-primary);
  margin: 16px 0 20px;
}

.omr-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

@media (min-width: 780px) {
  .omr-summary-grid { grid-template-columns: 1.2fr 1fr; }
}

.summary-bento {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.summary-bento h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  color: var(--brand-cobalt);
}

.summary-bento ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13.8px;
  color: var(--ink-secondary);
}

.summary-bento li + li {
  margin-top: 6px;
}

/* Table Toolbar & View Switcher */
.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 12px;
}

.table-toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
  max-width: 100%;
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  min-height: 34px;
  white-space: nowrap;
}

.seg-btn.active {
  background: #fff;
  color: var(--brand-cobalt);
  box-shadow: var(--shadow-xs);
}

@media (max-width: 639px) {
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .table-toolbar-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .table-toolbar .segmented-control {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    width: 100%;
  }
  .table-toolbar .seg-btn {
    width: 100%;
    padding: 6px 6px;
    font-size: 12px;
    min-height: 36px;
  }
}

.table-scroll-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: #fff;
}

.tfg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.8px;
  text-align: left;
}

.tfg-table thead th {
  background: var(--bg-subtle);
  padding: 12px 14px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--border-hairline);
  white-space: nowrap;
}

.tfg-table tbody tr {
  border-bottom: 1px solid var(--border-hairline);
  transition: background 0.14s ease;
}

.tfg-table tbody tr:last-child {
  border-bottom: none;
}

.tfg-table tbody tr:hover {
  background: var(--bg-muted-tint);
}

.tfg-table tbody tr.winner-row {
  background: var(--bg-winner-tint);
}

.tfg-table td {
  padding: 14px;
  vertical-align: middle;
}

.rank-num {
  font-weight: 800;
  font-size: 14px;
  color: var(--ink-muted);
}

.rank-num.is-pick {
  color: var(--brand-cobalt);
}

.vendor-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.tool-cell-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tool-cell-meta {
  min-width: 0;
}

.tool-cell-name {
  display: block;
  font-size: 14px;
  line-height: 1.28;
  color: var(--ink-primary);
  overflow-wrap: break-word;
}

.tool-cell-sub {
  display: block;
  font-size: 11.5px;
  line-height: 1.32;
  font-weight: 500;
  color: var(--ink-muted);
  overflow-wrap: break-word;
}

.tool-cell-sub.is-pick {
  color: var(--brand-cobalt);
  font-weight: 600;
}

.card-rank-pill {
  display: none;
}

.col-best-for {
  max-width: 290px;
}

.col-plan {
  max-width: 310px;
}

.hosting-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
}

.entry-price-val {
  font-weight: 700;
  color: var(--ink-primary);
}

.entry-price-src {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
  line-height: 1.32;
  margin-top: 2px;
}

.compare-select-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  gap: 7px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-cobalt);
  min-height: 36px;
  user-select: none;
}

.compare-select-label input[type="checkbox"] {
  accent-color: var(--brand-cobalt);
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}

.plan-cell-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.plan-cell-title {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.42;
  color: var(--ink-primary);
  overflow-wrap: break-word;
}

.metric-primary-num {
  font-weight: 700;
  font-size: 13.8px;
  color: var(--ink-primary);
}

.metric-annual-num {
  display: block;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-primary);
  line-height: 1.22;
}

.cell-metric-annual.is-pick .metric-annual-num {
  color: var(--brand-cobalt);
}

.metric-setup-note {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.32;
  margin-top: 2px;
}

.metric-setup-note.has-fee {
  color: var(--ink-muted);
}

.metric-setup-note.zero-fee {
  color: var(--verify-emerald);
}

.chip-flow-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.tool-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
  flex-shrink: 0;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--warn-amber-soft);
  color: #92400e;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
}

.trap-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  gap: 4px;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  background: var(--warn-amber-soft);
  color: #92400e;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.gap-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  padding: 3px 8px;
  margin: 2px 4px 2px 0;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--trap-crimson-soft);
  color: var(--trap-crimson);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}

.gap-chip.positive {
  background: var(--verify-emerald-soft);
  color: var(--verify-emerald);
}

/* ==========================================================================
   STATE-OF-THE-ART CARD MODE (< 900px automatic + manual .force-cards)
   Zero horizontal overflow down to 320px; 2-col KPI tiles + full-width chips
   ========================================================================== */
.table-scroll-container.force-cards {
  border: none;
  background: transparent;
  overflow: visible;
}

.table-scroll-container.force-cards .tfg-table thead {
  display: none;
}

.table-scroll-container.force-cards .tfg-table {
  display: block;
  width: 100%;
}

.table-scroll-container.force-cards .tfg-table tbody {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 14px;
  width: 100%;
}

@media (max-width: 899px) {
  .table-scroll-container:not(.force-matrix) {
    border: none;
    background: transparent;
    overflow: visible;
  }
  .table-scroll-container:not(.force-matrix) .tfg-table thead {
    display: none;
  }
  .table-scroll-container:not(.force-matrix) .tfg-table {
    display: block;
    width: 100%;
  }
  .table-scroll-container:not(.force-matrix) .tfg-table tbody {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
  }
}

@media (min-width: 680px) and (max-width: 899px) {
  .table-scroll-container:not(.force-matrix) .tfg-table tbody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Shared Card Anatomy (applies to .force-cards at all sizes AND < 900px auto) */
.table-scroll-container.force-cards .tfg-table tbody tr {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 0;
  box-shadow: var(--shadow-xs);
}

.table-scroll-container.force-cards .tfg-table tbody tr.winner-row {
  border-color: var(--brand-cobalt);
  background: #f6f9ff;
}

.table-scroll-container.force-cards .tfg-table td {
  grid-column: 1 / -1;
  min-width: 0;
  max-width: none;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--border-hairline);
}

.table-scroll-container.force-cards .tfg-table td:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.table-scroll-container.force-cards .tfg-table td::before {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  font-weight: 700;
}

.table-scroll-container.force-cards .tfg-table td.cell-rank {
  display: none !important;
}

.table-scroll-container.force-cards .tfg-table td.cell-vendor-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-hairline);
}

.table-scroll-container.force-cards .tfg-table td.cell-vendor-head::before {
  display: none;
  content: none;
}

.table-scroll-container.force-cards .tfg-table .tool-avatar {
  width: 38px;
  height: 38px;
  font-size: 13px;
}

.table-scroll-container.force-cards .tfg-table .tool-cell-name {
  font-size: 15px;
}

.table-scroll-container.force-cards .tfg-table .card-rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  height: 28px;
  min-width: 40px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.table-scroll-container.force-cards .tfg-table .card-rank-pill.is-pick {
  background: var(--brand-cobalt-soft);
  border-color: rgba(23, 82, 232, 0.28);
  color: var(--brand-cobalt);
}

.table-scroll-container.force-cards .tfg-table td.cell-kv {
  display: grid;
  grid-template-columns: minmax(92px, 38%) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.table-scroll-container.force-cards .tfg-table .td-val-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 0;
}

.table-scroll-container.force-cards .tfg-table td.cell-metric-box {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-muted-tint);
}

.table-scroll-container.force-cards .tfg-table td.cell-metric-box.is-pick {
  background: rgba(23, 82, 232, 0.06);
  border-color: rgba(23, 82, 232, 0.24);
}

.table-scroll-container.force-cards .tfg-table td.cell-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.table-scroll-container.force-cards .tfg-table td.cell-plan {
  padding-bottom: 2px;
  border-bottom: none;
}

.table-scroll-container.force-cards .tfg-table td.cell-action {
  padding: 4px 0 0;
  border-bottom: none;
}

.table-scroll-container.force-cards .tfg-table td.cell-action::before {
  display: none;
  content: none;
}

.table-scroll-container.force-cards .tfg-table .compare-select-label {
  display: flex;
  width: 100%;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--ink-primary);
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.table-scroll-container.force-cards .tfg-table .compare-select-label:has(input:checked) {
  background: var(--brand-cobalt-soft);
  border-color: var(--brand-cobalt);
  color: var(--brand-cobalt);
}

@media (max-width: 899px) {
  .table-scroll-container:not(.force-matrix) .tfg-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 15px;
    margin: 0;
    box-shadow: var(--shadow-xs);
  }
  .table-scroll-container:not(.force-matrix) .tfg-table tbody tr.winner-row {
    border-color: var(--brand-cobalt);
    background: #f6f9ff;
  }
  .table-scroll-container:not(.force-matrix) .tfg-table td {
    grid-column: 1 / -1;
    min-width: 0;
    max-width: none;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--border-hairline);
  }
  .table-scroll-container:not(.force-matrix) .tfg-table td:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }
  .table-scroll-container:not(.force-matrix) .tfg-table td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 10.5px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-muted);
    font-weight: 700;
  }
  .table-scroll-container:not(.force-matrix) .tfg-table td.cell-rank {
    display: none !important;
  }
  .table-scroll-container:not(.force-matrix) .tfg-table td.cell-vendor-head {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-hairline);
  }
  .table-scroll-container:not(.force-matrix) .tfg-table td.cell-vendor-head::before {
    display: none;
    content: none;
  }
  .table-scroll-container:not(.force-matrix) .tfg-table .tool-avatar {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }
  .table-scroll-container:not(.force-matrix) .tfg-table .tool-cell-name {
    font-size: 15px;
  }
  .table-scroll-container:not(.force-matrix) .tfg-table .card-rank-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    height: 28px;
    min-width: 40px;
    padding: 0 9px;
    border-radius: var(--radius-pill);
    background: var(--bg-subtle);
    border: 1px solid var(--border-hairline);
    font-size: 12px;
    font-weight: 800;
    color: var(--ink-muted);
    flex-shrink: 0;
  }
  .table-scroll-container:not(.force-matrix) .tfg-table .card-rank-pill.is-pick {
    background: var(--brand-cobalt-soft);
    border-color: rgba(23, 82, 232, 0.28);
    color: var(--brand-cobalt);
  }
  .table-scroll-container:not(.force-matrix) .tfg-table td.cell-kv {
    display: grid;
    grid-template-columns: minmax(92px, 38%) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }
  .table-scroll-container:not(.force-matrix) .tfg-table .td-val-end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    min-width: 0;
  }
  .table-scroll-container:not(.force-matrix) .tfg-table td.cell-metric-box {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-hairline);
    background: var(--bg-muted-tint);
  }
  .table-scroll-container:not(.force-matrix) .tfg-table td.cell-metric-box.is-pick {
    background: rgba(23, 82, 232, 0.06);
    border-color: rgba(23, 82, 232, 0.24);
  }
  .table-scroll-container:not(.force-matrix) .tfg-table td.cell-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .table-scroll-container:not(.force-matrix) .tfg-table td.cell-plan {
    padding-bottom: 2px;
    border-bottom: none;
  }
  .table-scroll-container:not(.force-matrix) .tfg-table td.cell-action {
    padding: 4px 0 0;
    border-bottom: none;
  }
  .table-scroll-container:not(.force-matrix) .tfg-table td.cell-action::before {
    display: none;
    content: none;
  }
  .table-scroll-container:not(.force-matrix) .tfg-table .compare-select-label {
    display: flex;
    width: 100%;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: var(--bg-subtle);
    color: var(--ink-primary);
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
  .table-scroll-container:not(.force-matrix) .tfg-table .compare-select-label:has(input:checked) {
    background: var(--brand-cobalt-soft);
    border-color: var(--brand-cobalt);
    color: var(--brand-cobalt);
  }
}

@media (max-width: 359px) {
  .table-scroll-container:not(.force-matrix) .tfg-table td.cell-metric-box,
  .table-scroll-container.force-cards .tfg-table td.cell-metric-box {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   HORIZONTAL MATRIX SCROLL MODE (.force-matrix, #compare-dialog, article tables)
   Pure-CSS scroll shadows + sticky 1st/vendor column on mobile & tablet
   ========================================================================== */
.table-scroll-container.force-matrix {
  background:
    linear-gradient(to right, #ffffff 30%, rgba(255, 255, 255, 0)) left center / 28px 100% no-repeat local,
    linear-gradient(to left, #ffffff 30%, rgba(255, 255, 255, 0)) right center / 28px 100% no-repeat local,
    linear-gradient(to right, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0)) left center / 12px 100% no-repeat scroll,
    linear-gradient(to left, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0)) right center / 12px 100% no-repeat scroll;
  background-color: #ffffff;
}

@media (max-width: 899px) {
  .table-scroll-container.force-matrix .tfg-table {
    font-size: 13px;
  }
  .table-scroll-container.force-matrix .tfg-table th,
  .table-scroll-container.force-matrix .tfg-table td {
    padding: 10px 11px;
  }
  .table-scroll-container.force-matrix:not(#shortlist-wrap) .tfg-table th:first-child,
  .table-scroll-container.force-matrix:not(#shortlist-wrap) .tfg-table td:first-child,
  #shortlist-wrap.force-matrix .tfg-table th:nth-child(2),
  #shortlist-wrap.force-matrix .tfg-table td:nth-child(2) {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #ffffff;
    border-right: 1px solid var(--border-hairline);
    min-width: 132px;
    max-width: 175px;
  }
  .table-scroll-container.force-matrix:not(#shortlist-wrap) .tfg-table thead th:first-child,
  #shortlist-wrap.force-matrix .tfg-table thead th:nth-child(2) {
    background: var(--bg-subtle);
    z-index: 3;
  }
  .table-scroll-container.force-matrix:not(#shortlist-wrap) .tfg-table tbody tr.winner-row td:first-child,
  #shortlist-wrap.force-matrix .tfg-table tbody tr.winner-row td:nth-child(2) {
    background: #f6f9ff;
  }
}

/* ==========================================================================
   8. OMR-STYLE 2x2 GROWTH GRID + 4D BENCHMARK BARS & COMPLIANCE PASSPORT
   ========================================================================== */
.grid-inspector-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .grid-inspector-layout { grid-template-columns: 1fr 1.18fr; align-items: start; }
}

.quadrant-card,
.inspector-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow-card);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: var(--bg-subtle);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill.active {
  background: var(--brand-cobalt);
  border-color: var(--brand-cobalt);
  color: #fff;
}

.quadrant-plane {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 460px;
  background:
    linear-gradient(to right, transparent 49.8%, rgba(15, 23, 42, 0.12) 49.8%, rgba(15, 23, 42, 0.12) 50.2%, transparent 50.2%),
    linear-gradient(to bottom, transparent 49.8%, rgba(15, 23, 42, 0.12) 49.8%, rgba(15, 23, 42, 0.12) 50.2%, transparent 50.2%),
    radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 18px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quadrant-leader-tint {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 50%;
  background: linear-gradient(225deg, rgba(23, 82, 232, 0.08) 0%, rgba(5, 150, 105, 0.04) 100%);
  pointer-events: none;
}

.q-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  padding: 6px 8px;
  pointer-events: none;
}

.q-tr { top: 8px; right: 8px; color: var(--brand-cobalt); }
.q-tl { top: 8px; left: 8px; }
.q-br { bottom: 8px; right: 8px; }
.q-bl { bottom: 8px; left: 8px; }

.grid-node {
  position: absolute;
  transform: translate(-50%, 50%);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 2.5px solid #fff;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.grid-node:hover,
.grid-node.active {
  transform: translate(-50%, 50%) scale(1.16);
  box-shadow: 0 0 0 4px rgba(23, 82, 232, 0.25), 0 10px 22px rgba(15, 23, 42, 0.28);
  z-index: 5;
}

.grid-node.dimmed {
  opacity: 0.2;
}

/* 4D OMR Sub-Rating Bars with Category Benchmark Tick */
.omr-bars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 18px 0;
}

@media (min-width: 640px) {
  .omr-bars-grid { grid-template-columns: repeat(2, 1fr); }
}

.omr-bar-item {
  background: var(--bg-muted-tint);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.omr-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.omr-track {
  position: relative;
  height: 10px;
  border-radius: var(--radius-pill);
  background: #e2e8f0;
  overflow: visible;
}

.omr-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand-cobalt), var(--verify-emerald-bright));
  transition: width 0.35s var(--ease-out-expo);
}

.omr-benchmark-marker {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--ink-primary);
  z-index: 2;
}

.omr-meta-sub {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

/* 6-Tile Compliance Passport */
.compliance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 14px 0 18px;
}

@media (min-width: 640px) {
  .compliance-grid { grid-template-columns: repeat(2, 1fr); }
}

.compliance-tile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-hairline);
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
}

.status-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.status-dot.ok { background: var(--verify-emerald-soft); color: var(--verify-emerald); }
.status-dot.warn { background: var(--warn-amber-soft); color: var(--warn-amber); }
.status-dot.bad { background: var(--trap-crimson-soft); color: var(--trap-crimson); }

/* Honest Dual Verdict (MOS Style) */
.verdict-dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 680px) {
  .verdict-dual { grid-template-columns: repeat(2, 1fr); }
}

.verdict-box {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.verdict-box.pros {
  background: rgba(5, 150, 105, 0.05);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.verdict-box.cons {
  background: rgba(217, 119, 6, 0.05);
  border: 1px solid rgba(217, 119, 6, 0.28);
}

.verdict-box ul {
  margin: 8px 0 0;
  padding-left: 16px;
}

.verdict-box li + li { margin-top: 5px; }

.replacement-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(95deg, #050228 0%, #132259 100%);
  color: #fff;
  font-size: 13px;
}

/* ==========================================================================
   9. AI BRIEF MAGAZINE, WORKFLOW BRIDGE & 4-LANGUAGE NEWSLETTER STAGE
   ========================================================================== */
.brief-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 980px) {
  .brief-layout { grid-template-columns: 1.25fr 1fr; }
}

.brief-featured-card,
.brief-side-card,
.workflow-bridge-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.source-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-secondary);
}

.workflow-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 16px;
}

@media (min-width: 820px) {
  .workflow-split { grid-template-columns: 1fr 1fr; }
}

.wf-pane {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
}

.wf-pane.diy {
  background: #fff9f9;
  border-color: rgba(220, 38, 38, 0.22);
}

.wf-pane.native {
  background: #f4fbf8;
  border-color: rgba(5, 150, 105, 0.32);
}

/* Newsletter Stage */
.newsletter-stage {
  margin-top: 28px;
  background: var(--bg-stage-dark);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 920px) {
  .newsletter-stage { grid-template-columns: 1.2fr 1fr; }
}

.newsletter-stage h3 { color: #fff; font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem); margin-bottom: 10px; }

.newsletter-stage .filter-pill:hover:not(.active),
.rail-card.dark .rail-nl-pill:hover:not(.active) {
  border-color: var(--brand-cobalt);
  color: var(--ink-primary);
  background: #ffffff;
}

.newsletter-stage .filter-pill:focus-visible,
.rail-card.dark .rail-nl-pill:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 2px;
}

.rail-nl-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.rail-card.dark .rail-nl-pill {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nl-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.nl-email-input {
  flex: 1;
  min-width: 210px;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14.5px;
}

.nl-email-input:user-invalid {
  border-color: var(--brand-coral);
  background: rgba(254, 74, 73, 0.12);
}

.nl-email-input:user-valid {
  border-color: var(--verify-emerald-bright);
}

/* Compact Centered Newsletter Modal (<dialog id="newsletter-modal-dialog">) */
dialog.nl-modal-dialog {
  margin: auto;
  max-width: min(460px, calc(100vw - 24px));
  max-height: min(90dvh, 680px);
  width: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  padding: 0;
  background:
    radial-gradient(circle at 92% 0%, rgba(45, 212, 191, 0.16), transparent 46%),
    radial-gradient(circle at 0% 100%, rgba(27, 86, 253, 0.22), transparent 52%),
    var(--bg-stage-dark);
  color: #ffffff;
  box-shadow: 0 24px 64px rgba(11, 17, 32, 0.45);
}

dialog.nl-modal-dialog::backdrop {
  background: rgba(11, 17, 32, 0.56);
  backdrop-filter: blur(5px);
}

.nl-modal-shell {
  padding: 22px 24px 20px;
}

.nl-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.nl-modal-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(94, 234, 212, 0.32);
  background: rgba(94, 234, 212, 0.1);
  color: #5eead4;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nl-modal-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nl-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
}

.nl-modal-close-btn:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 2px;
}

.nl-modal-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.08rem + 0.55vw, 1.46rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.nl-modal-sub {
  margin: 0 0 14px;
  font-size: 13.8px;
  line-height: 1.54;
  color: #cbd5e1;
}

.nl-modal-benefits {
  list-style: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.nl-modal-benefits li {
  position: relative;
  padding-left: 19px;
  font-size: 12.8px;
  line-height: 1.44;
  color: #e2e8f0;
}

.nl-modal-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #5eead4;
  font-weight: 800;
}

.nl-modal-form {
  display: grid;
  gap: 10px;
}

.nl-modal-lang-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nl-modal-lang-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
}

.nl-modal-lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.nl-modal-dialog .nl-modal-lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 28px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
}

.nl-modal-dialog .nl-modal-lang-pill.active {
  background: var(--brand-cobalt);
  border-color: var(--brand-cobalt);
  color: #ffffff;
}

.nl-modal-dialog .nl-modal-lang-pill:hover:not(.active) {
  background: #ffffff;
  border-color: var(--brand-cobalt);
  color: var(--ink-primary);
}

.nl-modal-dialog .nl-modal-lang-pill:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 2px;
}

.nl-modal-input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.nl-modal-email {
  min-width: 0;
  width: 100%;
  height: 44px;
  font-size: 14px;
}

.nl-modal-email::placeholder {
  color: #94a3b8;
}

.nl-modal-submit {
  width: 100%;
  height: 44px;
  justify-content: center;
  font-size: 14px;
}

.nl-modal-feedback {
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
}

.nl-modal-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  justify-content: center;
}

.nl-modal-dismiss-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.nl-modal-dismiss-btn:hover {
  color: #ffffff;
}

.nl-modal-dismiss-btn:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .nl-modal-shell {
    padding: 18px 18px 16px;
  }

  .nl-modal-title {
    font-size: 1.16rem;
  }

  .nl-modal-sub {
    font-size: 13.2px;
  }
}

/* ==========================================================================
   10. 11-CLUSTER / 55-GUIDE MEGA-FOOTER (Desktop Grid / Mobile <details>)
   ========================================================================== */
.mega-footer {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
  background: #f3f6fb;
  border-top: 1px solid var(--border-strong);
  padding: clamp(40px, 6vw, 72px) 0 100px;
}

.suite-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 36px;
}

.suite-module-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border-hairline);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-primary);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.suite-module-pill:hover {
  border-color: var(--brand-cobalt);
  color: var(--brand-cobalt);
}

.footer-clusters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 760px) {
  .footer-clusters-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (min-width: 1120px) {
  .footer-clusters-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; }
}

.footer-cluster-acc {
  background: #fff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 0;
  box-sizing: border-box;
}

.footer-cluster-acc.cross-highlight {
  border-color: rgba(23, 82, 232, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.footer-cluster-acc > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 62px;
  padding: 9px 14px;
  box-sizing: border-box;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.3px;
  line-height: 1.32;
  cursor: pointer;
}

.footer-cluster-acc:not([open]) {
  height: 64px;
  overflow: hidden;
}

.footer-cluster-acc:not([open]) > summary {
  height: 62px;
}

.footer-cluster-acc > summary > span:first-child {
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.32;
}

.footer-cluster-acc summary::-webkit-details-marker { display: none; }

.footer-guide-list {
  list-style: none;
  margin: 0 14px;
  padding: 10px 0 13px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-guide-list a {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.4;
  display: block;
}

.footer-guide-list a:hover {
  color: var(--brand-cobalt);
  text-decoration: underline;
}

/* ==========================================================================
   11. FLOATING GLASSMORPHIC COMPARE DOCK
   ========================================================================== */
.compare-dock {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translate(-50%, 140%);
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(14px);
  color: #fff;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.28s var(--ease-out-expo);
  width: max-content;
  max-width: calc(100vw - 20px);
}

#compare-dock-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#open-compare-modal-btn,
#clear-compare-btn {
  flex-shrink: 0;
}

.compare-dock.visible {
  transform: translate(-50%, 0);
}

dialog.compare-dialog {
  width: calc(100vw - 20px);
  max-width: 880px;
}

.compare-dialog-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.compare-dialog-body {
  padding: 20px 22px;
  max-height: 76dvh;
  overflow-y: auto;
}

.compare-th-vendor {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

#tariff-source-popover {
  width: min(420px, calc(100vw - 24px));
}

@media (max-width: 639px) {
  .compare-dock {
    gap: 8px;
    padding: 8px 10px 8px 14px;
  }
  #compare-dock-label {
    font-size: 12px !important;
  }
  .compare-dialog-head {
    padding: 14px 16px;
  }
  .compare-dialog-body {
    padding: 14px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   12. V2 EDITORIAL PUBLICATION ARCHITECTURE (Masters-of-Search Style + UWG)
   ========================================================================== */
[hidden] {
  display: none !important;
}

/* Editorial Subscribe Button in Header (replaces hard-sell CTA) */
.btn-editorial-subscribe {
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  gap: 6px;
  height: 38px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  background: #050228;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #050228;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-editorial-subscribe:hover {
  background: var(--brand-cobalt);
  border-color: var(--brand-cobalt);
  transform: translateY(-1px);
}

@media (min-width: 1120px) {
  .btn-editorial-subscribe {
    display: inline-flex;
  }
}

/* Masters-of-Search-Inspired Masthead & 3-Card Hero Bento */
.mos-hero-masthead {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 0 32px;
  text-align: left;
}

.mos-kicker-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-cobalt);
  margin-bottom: 16px;
}

.mos-hero-title {
  font-size: clamp(2rem, 1.45rem + 2.4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -0.032em;
  margin: 0 0 14px;
  color: var(--ink-primary);
}

.mos-hero-lead {
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.16rem);
  color: var(--ink-secondary);
  max-width: 720px;
  margin: 0;
  line-height: 1.6;
}

.hero-bento-mos {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 1000px) {
  .hero-bento-mos {
    grid-template-columns: 1.18fr 1fr;
    align-items: stretch;
  }
}

.mos-right-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mos-lead-card,
.mos-playbook-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mos-lead-card:hover,
.mos-playbook-card:hover {
  border-color: var(--brand-cobalt);
  box-shadow: 0 16px 36px -14px rgba(23, 82, 232, 0.14);
}

/* Card 3: The Growth Index (#050228 Midnight Interactive Archive Q&A) */
.mos-index-card {
  background: var(--bg-stage-dark);
  color: var(--ink-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 26px);
  border: 1px solid rgba(91, 141, 255, 0.34);
  box-shadow: 0 18px 40px -14px rgba(5, 2, 40, 0.42);
  position: relative;
  overflow: hidden;
}

.mos-index-card h3 {
  color: #fff;
  font-size: 1.18rem;
  margin: 4px 0 6px;
}

.index-question-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.index-q-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.index-q-chip:hover,
.index-q-chip.active {
  background: var(--brand-cobalt);
  border-color: #6b96ff;
  color: #fff;
}

.index-answer-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.55;
  color: #f1f5f9;
}

/* Section 2: "More from The AI Brief" Stream */
.brief-stream-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 860px) {
  .brief-stream-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.brief-stream-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.brief-stream-item:hover {
  border-color: var(--brand-cobalt);
  transform: translateY(-2px);
}

/* Section 3: Practitioner Playbooks (3-Column Editorial Blueprints) */
.playbooks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 960px) {
  .playbooks-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.playbook-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.playbook-steps-preview {
  margin: 0;
  padding-left: 18px;
  font-size: 13.2px;
  color: var(--ink-secondary);
}

.playbook-steps-preview li + li {
  margin-top: 6px;
}

.playbook-author-note {
  background: var(--bg-muted-tint);
  border-top: 1px dashed var(--border-strong);
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--ink-muted);
}

/* Section 4: Zeit- & Kostencheck (4 synchronisierte Subgrid-Karten) */
.field-notes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 680px) {
  .field-notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1080px) {
  .field-notes-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

.field-note-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.field-note-card:hover {
  border-color: rgba(31, 61, 255, 0.36);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.field-note-top {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-hairline);
}

.field-note-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.field-note-metric {
  font-size: clamp(1.65rem, 1.42rem + 0.55vw, 1.95rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--brand-cobalt);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.field-note-title {
  font-size: 1.01rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-primary);
  margin: 0 0 10px;
}

.field-note-body {
  font-size: 13.5px;
  line-height: 1.58;
  color: var(--ink-secondary);
  margin: 0 0 16px;
  flex: 1;
}

.field-note-foot {
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 10px;
  margin-top: auto;
}

.field-note-source {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-muted);
}

.field-note-cta {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-cobalt);
  text-decoration: none;
  white-space: nowrap;
}

.field-note-cta:hover,
.field-note-cta:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@supports (grid-template-rows: subgrid) {
  @media (min-width: 680px) {
    .field-note-card {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
      row-gap: 0;
    }

    .field-note-foot {
      margin-top: 0;
      align-self: end;
    }
  }
}

/* Two-Part Editorial Footer (Masters of Search Pattern) */
.mos-editorial-footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 36px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-strong);
}

@media (min-width: 920px) {
  .mos-editorial-footer-top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.mos-footer-col h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.mos-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.mos-footer-col a:hover {
  color: var(--brand-cobalt);
  text-decoration: underline;
}

/* View B (Subpage) Open Methodology & UWG-Safe Indicators */
.methodology-disclosure-box {
  background: #f8fafc;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 860px) {
  .methodology-disclosure-box {
    grid-template-columns: repeat(3, 1fr);
  }
}

.coverage-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.coverage-pill.full {
  background: var(--brand-cobalt-soft);
  border-color: rgba(23, 82, 232, 0.28);
  color: var(--brand-cobalt);
}

.tariff-source-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  gap: 5px;
  margin-top: 5px;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--brand-cobalt);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.tariff-source-btn:hover {
  background: var(--brand-cobalt-soft);
}

.module-coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 14px 0 18px;
}

.mod-check-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--border-hairline);
  background: var(--bg-muted-tint);
  color: var(--ink-muted);
}

.mod-check-pill.covered {
  background: var(--verify-emerald-soft);
  border-color: rgba(5, 150, 105, 0.3);
  color: var(--verify-emerald);
}

.status-dot.info {
  background: var(--brand-cobalt-soft);
  color: var(--brand-cobalt);
}

.status-dot.gap {
  background: var(--bg-subtle);
  color: var(--ink-muted);
}

.neutral-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  padding: 5px 10px;
  margin: 2px 4px 2px 0;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  color: var(--ink-secondary);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
}

.chip-flow-wrap .neutral-chip {
  margin: 0;
}

.plan-cell-body .tariff-source-btn {
  margin-top: 0;
  min-height: 30px;
  padding: 4px 11px;
  border-radius: 7px;
}

.neutral-chip.positive {
  background: var(--verify-emerald-soft);
  border-color: rgba(5, 150, 105, 0.28);
  color: var(--verify-emerald);
}


/* ==========================================================================
   13. RESPONSIVE 3-TIER HEADER, MOBILE POPOVER & SLIDE-OVER NAVIGATION DRAWER
   ========================================================================== */
.site-header {
  height: 64px;
  overflow-x: clip;
}

.header-inner {
  flex-wrap: nowrap;
  gap: 10px;
}

.brand-cluster {
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-home-link {
  white-space: nowrap;
  flex-shrink: 0;
}

.tfg-wordmark {
  white-space: nowrap;
}

/* Base co-brand graphic wrapper (used in footer & tablet/desktop header) */
.presented-graphic-wrap {
  display: inline-flex;
  align-items: center;
  border-left: 1px solid rgba(15, 23, 42, 0.13);
  padding-left: 10px;
  margin-left: 2px;
  flex-shrink: 0;
}

.presented-by-graphic {
  display: block;
  height: 14.5px;
  width: auto;
  user-select: none;
  pointer-events: none;
}

/* Tier 1: Smartphone Header (< 768px) -> 2-line stacked co-branding + compact touch controls */
.site-header .brand-home-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.site-header .tfg-mark {
  width: 36px;
  height: 36px;
}

.site-header .header-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2.5px;
}

.site-header .tfg-wordmark {
  font-size: 0.96rem;
  line-height: 1.06;
}

.site-header .presented-graphic-wrap {
  border-left: none;
  padding-left: 0;
  margin-left: 0;
}

.site-header .presented-by-graphic {
  height: 11px;
  width: auto;
}

.desktop-nav {
  display: none !important;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 7px 10px;
  font-size: 13.5px;
  line-height: 1.2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-header .cmdk-trigger {
  width: 40px;
  height: 40px;
  padding: 0;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
}

.site-header .cmdk-trigger .kbd-pill {
  display: none;
}

.cmdk-text {
  display: none !important;
  white-space: nowrap;
}

.lang-switcher {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 2px;
}

.lang-btn {
  padding: 4px 7px;
  min-height: 28px;
  font-size: 11px;
  white-space: nowrap;
}

.header-lang-desktop {
  display: none !important;
}

.mobile-lang-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  gap: 4px;
  height: 40px;
  min-width: 50px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: var(--bg-subtle);
  color: var(--ink-primary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mobile-lang-trigger:hover {
  background: #ffffff;
  border-color: var(--brand-cobalt);
}

.btn-editorial-subscribe {
  display: none !important;
  height: 36px;
  padding: 0 15px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-header .mobile-menu-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: var(--bg-subtle);
  color: var(--ink-primary);
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.site-header .mobile-menu-btn svg,
.site-header .cmdk-trigger svg,
.mobile-lang-trigger svg {
  pointer-events: none;
}

.site-header .cmdk-trigger,
.mobile-lang-trigger,
.drawer-close-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.site-header .mobile-menu-btn:hover {
  background: #ffffff;
  border-color: var(--brand-cobalt);
}

/* Ultra-small smartphone guard (< 360px down to 320px) */
@media (max-width: 359px) {
  .site-header .container {
    padding-inline: 12px;
  }
  .site-header .brand-home-link {
    gap: 7px;
  }
  .site-header .tfg-mark {
    width: 32px;
    height: 32px;
  }
  .site-header .tfg-wordmark {
    font-size: 0.86rem;
  }
  .site-header .presented-by-graphic {
    height: 9.8px;
  }
  .header-actions {
    gap: 4px;
  }
  .site-header .cmdk-trigger,
  .site-header .mobile-menu-btn {
    width: 38px;
    height: 38px;
  }
  .mobile-lang-trigger {
    height: 38px;
    min-width: 46px;
    padding: 0 8px;
    font-size: 11px;
  }
}

/* Footer brand wrap on very narrow screens */
@media (max-width: 440px) {
  .mega-footer .brand-cluster {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}

/* Tier 2: Tablet Header (768px to 1159px) -> single-line brand + 4-lang switcher + drawer menu */
@media (min-width: 768px) {
  .site-header {
    height: var(--header-h);
  }
  .header-inner {
    gap: 12px;
  }
  .site-header .brand-home-link {
    gap: 10px;
  }
  .site-header .tfg-mark {
    width: 34px;
    height: 34px;
  }
  .site-header .header-brand-text {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .site-header .tfg-wordmark {
    font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.14rem);
    line-height: 1.1;
  }
  .site-header .presented-graphic-wrap {
    border-left: 1px solid rgba(15, 23, 42, 0.13);
    padding-left: 10px;
    margin-left: 2px;
  }
  .site-header .presented-by-graphic {
    height: 14.5px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-lang-desktop {
    display: inline-flex !important;
  }
  .mobile-lang-trigger {
    display: none !important;
  }
}

/* Pointer/Keyboard devices (>= 1024px) get the ⌘K shortcut pill inside search trigger */
@media (min-width: 1024px) and (hover: hover) {
  .site-header .cmdk-trigger {
    width: auto;
    height: 36px;
    padding: 0 10px;
  }
  .site-header .cmdk-trigger .kbd-pill {
    display: inline-flex;
  }
}

/* Tier 3: Full Desktop Header (>= 1160px) -> Mega-Menu unclipped + Subscribe CTA */
@media (min-width: 1160px) {
  .site-header {
    overflow: visible;
  }
  .desktop-nav {
    display: flex !important;
  }
  .btn-editorial-subscribe {
    display: inline-flex !important;
  }
  .site-header .mobile-menu-btn {
    display: none !important;
  }
}

@media (min-width: 1300px) {
  .cmdk-text {
    display: inline !important;
  }
  .nav-link {
    padding: 8px 11px;
    font-size: 13.8px;
  }
}

/* Mobile Language Popover (#mobile-lang-popover) */
#mobile-lang-popover.mobile-lang-popover {
  position: fixed;
  inset: 68px max(12px, env(safe-area-inset-right)) auto auto;
  margin: 0;
  width: 196px;
  max-width: calc(100vw - 24px);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  box-shadow: var(--shadow-float);
}

.mobile-lang-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 6px 11px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.mobile-lang-opt:hover {
  background: var(--bg-subtle);
}

.mobile-lang-opt-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-lang-opt-label strong {
  font-size: 11.5px;
  color: var(--ink-muted);
  min-width: 22px;
}

.mobile-lang-check {
  opacity: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-cobalt);
}

.mobile-lang-opt.active {
  background: var(--brand-cobalt-soft);
  color: var(--brand-cobalt);
}

.mobile-lang-opt.active .mobile-lang-opt-label strong {
  color: var(--brand-cobalt);
}

.mobile-lang-opt.active .mobile-lang-check {
  opacity: 1;
}

/* Upgraded Mobile Slide-Over Navigation Drawer (#mobile-drawer) */
.drawer-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 20px max(18px, env(safe-area-inset-bottom));
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-hairline);
}

.drawer-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.drawer-brand-lockup .tfg-mark {
  width: 36px;
  height: 36px;
}

.drawer-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5px;
}

.drawer-brand-stack .tfg-wordmark {
  font-size: 1rem;
  line-height: 1.08;
}

.drawer-presented-graphic {
  display: block;
  height: 11.5px;
  width: auto;
  user-select: none;
  pointer-events: none;
}

.drawer-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: var(--bg-subtle);
  color: var(--ink-primary);
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.drawer-close-btn:hover {
  background: #ffffff;
  border-color: var(--brand-cobalt);
}

.drawer-search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.drawer-search-trigger:hover {
  background: #ffffff;
  border-color: var(--brand-cobalt);
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: #ffffff;
  color: var(--ink-primary);
  font-size: 14.5px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.drawer-nav-item:hover {
  background: var(--bg-muted-tint);
  border-color: var(--brand-cobalt);
}

.drawer-nav-arrow {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.drawer-shortlists-acc {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: #ffffff;
  overflow: hidden;
}

.drawer-shortlists-acc > summary.drawer-acc-summary {
  list-style: none;
  border: none;
  border-radius: 0;
}

.drawer-shortlists-acc > summary.drawer-acc-summary::-webkit-details-marker {
  display: none;
}

.drawer-acc-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 13px;
  transition: transform 0.18s ease;
}

.drawer-shortlists-acc[open] > summary.drawer-acc-summary {
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-muted-tint);
  color: var(--brand-cobalt);
}

.drawer-shortlists-acc[open] .drawer-acc-chevron {
  transform: rotate(180deg);
  color: var(--brand-cobalt);
}

.drawer-clusters-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--bg-canvas);
}

.drawer-cluster-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease;
}

.drawer-cluster-link:hover {
  background: #ffffff;
  color: var(--brand-cobalt);
}

.drawer-cluster-link.is-cross {
  background: rgba(23, 82, 232, 0.04);
}

.drawer-lang-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 6px;
}

.drawer-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.drawer-lang-switcher {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  padding: 3px;
}

.drawer-lang-switcher .lang-btn {
  width: 100%;
  min-height: 36px;
  font-size: 12px;
}

.drawer-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--bg-stage-dark);
  background: var(--bg-stage-dark);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.drawer-primary-cta:hover {
  background: var(--brand-cobalt);
  border-color: var(--brand-cobalt);
}

.drawer-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--brand-cobalt);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.drawer-secondary-cta:hover {
  border-color: var(--brand-cobalt);
  background: var(--brand-cobalt-soft);
}

/* ==========================================================================
   MEGA-DROPDOWN SUBMENU FIX (Marktübersichten ▾)
   Verhindert Vererbung von white-space: nowrap aus .desktop-nav & Spalten-Overflow
   ========================================================================== */
.mega-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50% !important;
  right: auto !important;
  width: min(770px, calc(100vw - 32px)) !important;
  box-sizing: border-box;
  white-space: normal !important;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 22px 48px -12px rgba(15, 23, 42, 0.16), 0 4px 14px rgba(15, 23, 42, 0.06);
  padding: 18px 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-56%) translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1050;
}

/* Unsichtbare Hover-Brücke zwischen Nav-Link und Dropdown-Panel */
.mega-panel::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-item:hover .mega-panel,
.nav-item:focus-within .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-56%) translateY(0);
}

.mega-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-hairline);
}

.mega-panel-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--brand-cobalt);
  text-transform: uppercase;
}

.mega-panel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  border: none;
  background: var(--brand-cobalt-soft);
  color: var(--brand-cobalt);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.mega-panel-cta:hover {
  background: var(--brand-cobalt);
  color: #ffffff;
}

.mega-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mega-grid-2-cross {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-hairline);
}

.mega-card-link {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-sans);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: normal !important;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.mega-card-link:hover {
  background: var(--bg-muted-tint);
  border-color: rgba(23, 82, 232, 0.18);
}

.mega-card-link.mega-card-cross {
  background: rgba(23, 82, 232, 0.045);
  border-color: rgba(23, 82, 232, 0.12);
}

.mega-card-link.mega-card-cross:hover {
  background: rgba(23, 82, 232, 0.09);
  border-color: rgba(23, 82, 232, 0.28);
}

.mega-card-top {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  width: 100%;
  min-width: 0;
}

.mega-cluster-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 5px;
  background: var(--bg-subtle);
  color: var(--ink-muted);
  flex-shrink: 0;
  margin-top: 1px;
}

.mega-cluster-num.cross {
  background: rgba(23, 82, 232, 0.12);
  color: var(--brand-cobalt);
}

.mega-card-link strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-primary);
  overflow-wrap: break-word;
  min-width: 0;
}

.mega-card-link small {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--ink-muted);
  padding-left: 26px;
}

.mega-card-link:hover strong,
.mega-card-link:hover small {
  color: var(--brand-cobalt);
}

/* ==========================================================================
   DISCREET BOTTOM EDITORIAL & METHODOLOGY GRAPHIC (PURE PATH SVG, NO TEXT DOM)
   ========================================================================== */
.editorial-colophon-section {
  padding: 20px 0 44px;
  border-top: none;
}

.editorial-colophon-graphic-wrap {
  border-top: 1px solid var(--border-hairline);
  padding-top: 22px;
}

.editorial-colophon-graphic-wrap picture {
  display: block;
  width: 100%;
}

.methodology-note-graphic {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  user-select: none;
  pointer-events: none;
}

@media (min-width: 760px) {
  .methodology-note-graphic {
    max-width: 1180px;
  }
}

/* ==========================================================================
   14. VISUAL EDITORIAL PHOTOGRAPHY & MAGAZINE CARD GRID
   Auflockerung aller Hero-, Brief-, Playbook- & Reader-Ansichten
   ========================================================================== */
.mos-lead-card.has-media,
.mos-playbook-card.has-media,
.brief-stream-item.has-media,
.playbook-card.has-media {
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.card-media-bleed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
  border-bottom: 1px solid var(--border-hairline);
  cursor: pointer;
  flex-shrink: 0;
}

.card-media-bleed.hero-lead-media {
  aspect-ratio: 16 / 8.6;
}

.card-media-bleed.panoramic {
  aspect-ratio: 21 / 8.4;
}

.card-media-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 2, 40, 0.36) 0%,
    rgba(5, 2, 40, 0.08) 34%,
    rgba(5, 2, 40, 0) 56%
  );
  pointer-events: none;
}

.card-media-bleed img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  transform: scale(1);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-media-bleed.panoramic img {
  object-position: center 22%;
}

.mos-lead-card.has-media:hover .card-media-bleed img,
.mos-playbook-card.has-media:hover .card-media-bleed img,
.brief-stream-item.has-media:hover .card-media-bleed img,
.playbook-card.has-media:hover .card-media-bleed img {
  transform: scale(1.04);
}

.card-media-overlay-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.media-frosted-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #0b1120;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(5, 2, 40, 0.14);
}

.media-frosted-badge.cobalt {
  color: var(--brand-cobalt);
}

.media-frosted-badge.coral {
  color: var(--brand-coral);
}

.media-frosted-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(11, 17, 32, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.card-body-pad {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.card-body-pad.hero-lead-body {
  padding: clamp(18px, 2.4vw, 26px);
}

.clickable-card-headline {
  cursor: pointer;
  transition: color 0.15s ease;
}

.clickable-card-headline:hover {
  color: var(--brand-cobalt);
}

/* 3x2 Visuelles Magazin-Grid für "Mehr aus The AI Brief" */
.brief-stream-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 660px) {
  .brief-stream-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .brief-stream-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

/* Artikel- & Playbook-Reader Cover-Foto */
.reader-cover-figure {
  margin: 0 0 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  background: #f8fafc;
}

.reader-cover-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.reader-cover-figure figcaption {
  padding: 9px 14px;
  font-size: 12px;
  color: var(--ink-muted);
  background: #f8fafc;
  border-top: 1px solid var(--border-hairline);
}

/* View B (Unterseite): Zweispaltiger Editorial-Header mit Foto */
.subpage-editorial-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}

@media (min-width: 920px) {
  .subpage-editorial-hero {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.92fr);
    gap: 26px;
  }
}

.subpage-hero-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #f8fafc;
  box-shadow: var(--shadow-card);
}

.subpage-hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  object-fit: cover;
}

.subpage-hero-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  background: #ffffff;
  border-top: 1px solid var(--border-hairline);
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.subpage-hero-caption .mono-num {
  font-weight: 700;
  color: var(--brand-cobalt);
  font-size: 10.5px;
}

/* ==========================================================================
   15. VIEW C: VOLLSTÄNDIGE ARTIKEL-UNTERSEITE (/de/ai-brief/[slug])
   Serverseitig gerendertes Magazin-Lese-Layout mit Sticky-TOC & Quellenleiste
   ========================================================================== */

.article-subpage-shell {
  padding: 28px 0 64px;
}

.article-top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}

.article-breadcrumb-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}

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

@media (min-width: 1020px) {
  .article-layout-grid {
    grid-template-columns: minmax(0, 740px) minmax(280px, 340px);
    justify-content: space-between;
    gap: 44px;
  }
}

.article-header-block {
  margin-bottom: 22px;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.article-rubric-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: rgba(23, 82, 232, 0.09);
  color: var(--brand-cobalt);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.68rem, 1.32rem + 1.55vw, 2.45rem);
  line-height: 1.17;
  letter-spacing: -0.024em;
  color: var(--ink-primary);
  margin: 0 0 16px;
}

.article-answer-first-lead {
  font-size: clamp(1.04rem, 0.99rem + 0.25vw, 1.18rem);
  line-height: 1.62;
  color: #1e293b;
  font-weight: 500;
  margin: 0 0 18px;
}

.article-sources-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-hairline);
}

.source-ext-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-primary);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.source-ext-link:hover {
  border-color: var(--brand-cobalt);
  color: var(--brand-cobalt);
}

.article-hero-figure {
  margin: 0 0 26px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #f8fafc;
  box-shadow: var(--shadow-card);
}

.article-hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-hero-figure figcaption {
  padding: 10px 16px;
  font-size: 12.5px;
  color: var(--ink-muted);
  background: #ffffff;
  border-top: 1px solid var(--border-hairline);
}

/* "Das Wichtigste in Kürze" Box */
.article-tldr-card {
  margin: 0 0 30px;
  padding: 20px 22px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--border-strong);
}

.article-tldr-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-cobalt);
  margin-bottom: 10px;
}

.article-tldr-list {
  margin: 0;
  padding-left: 19px;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.56;
  color: var(--ink-primary);
}

/* Langform-Lesetypografie */
.article-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.26rem, 1.14rem + 0.5vw, 1.52rem);
  line-height: 1.26;
  letter-spacing: -0.018em;
  color: var(--ink-primary);
  margin: 34px 0 12px;
  scroll-margin-top: 96px;
}

.article-prose p {
  font-size: 16px;
  line-height: 1.74;
  color: #273449;
  margin: 0 0 16px;
}

.article-inline-table-box {
  margin: 28px 0 32px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.article-inline-table-head {
  padding: 13px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Dezenter Praxis- & Produkt-Hinweis im Artikel */
.article-practitioner-callout {
  margin: 30px 0;
  padding: 20px 22px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.article-faq-block {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--border-strong);
  scroll-margin-top: 96px;
}

.article-faq-item {
  padding: 16px 18px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-hairline);
  margin-bottom: 12px;
}

.article-faq-item h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--ink-primary);
}

.article-faq-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* Rechte Spalte (Sticky Rail auf Desktop) */
.article-sticky-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 1020px) {
  .article-sticky-rail {
    position: sticky;
    top: 92px;
  }
}

.rail-card {
  padding: 18px 20px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.rail-card.dark {
  background: #050228;
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.rail-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.toc-link {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.toc-link:hover,
.toc-link.active {
  background: #f1f5fe;
  color: var(--brand-cobalt);
  font-weight: 600;
}

.pipeline-trace-banner {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid rgba(5, 150, 105, 0.28);
  font-size: 12.8px;
  line-height: 1.5;
  color: #064e3b;
}

.article-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 14px;
}

@media (min-width: 720px) {
  .article-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* ==========================================================================
   16. AUTOREN-BYLINES & ANSICHT D: REDAKTIONS-SEITE (/de/redaktion)
   ========================================================================== */

.byline-author-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  gap: 7px;
  padding: 3px 10px 3px 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.byline-author-chip:hover {
  border-color: var(--brand-cobalt);
  color: var(--brand-cobalt);
  background: var(--brand-cobalt-soft);
}

.byline-avatar-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.byline-avatar-photo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 4px rgba(5, 2, 40, 0.16);
  flex-shrink: 0;
  display: block;
}

.card-byline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--ink-muted);
}

.card-byline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
  cursor: pointer;
}

.card-byline-link:hover {
  color: var(--brand-cobalt);
  text-decoration: underline;
}

/* Autorenzeile oben im Vollartikel (Ansicht C) */
.article-author-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-hairline);
}

.article-author-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.article-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: var(--bg-subtle);
  border: 2px solid #ffffff;
  box-shadow: 0 3px 10px rgba(5, 2, 40, 0.16);
  cursor: pointer;
  flex-shrink: 0;
}

.article-author-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.article-author-name-btn {
  padding: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-primary);
  cursor: pointer;
  text-align: left;
}

.article-author-name-btn:hover {
  color: var(--brand-cobalt);
  text-decoration: underline;
}

/* Google Bevorzugte Quellen (Preferred Sources): Desktop & Mobile */
.article-preferred-source-card {
  margin: 28px 0 8px;
  padding: 20px 22px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 640px) {
  .article-preferred-source-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
}

.preferred-source-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.preferred-source-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-cobalt);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.preferred-source-title {
  margin: 0 0 6px;
  font-size: 1.04rem;
  line-height: 1.3;
  color: var(--ink-primary);
}

.preferred-source-desc {
  margin: 0;
  font-size: 13.6px;
  line-height: 1.56;
  color: var(--ink-secondary);
}

.preferred-source-rail-desc {
  margin: 0 0 12px;
  font-size: 12.8px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.preferred-source-btn-slot {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 40px;
  max-width: 100%;
}

.preferred-source-btn-slot [google-add-preferred-source-btn] {
  max-width: 100%;
}

/* Rail-Variante nur auf Desktop anzeigen, damit auf Mobile (< 1020px) keine Dopplung entsteht */
.rail-preferred-source-card {
  display: none;
}

@media (min-width: 1020px) {
  .rail-preferred-source-card {
    display: block;
    padding: 16px;
  }

  .rail-preferred-source-card .preferred-source-btn-slot {
    width: 100%;
  }
}

/* Fallback-Deeplink-Button (nur sichtbar bei blockiertem publisher.js oder ohne JS) */
.preferred-source-fallback-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #747775;
  color: #1f1f1f;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  max-width: 100%;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.preferred-source-fallback-link:hover {
  background: #f1f5f9;
  border-color: var(--brand-cobalt);
}

/* Autoren-Box unter dem Vollartikel */
.article-author-footer-card {
  margin: 32px 0 10px;
  padding: 22px 24px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--border-strong);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .article-author-footer-card {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

/* Ansicht D: Redaktions-Seite (/de/redaktion) */
.authors-subpage-shell {
  padding: 32px 0 68px;
}

.authors-hero-head {
  max-width: 780px;
  margin: 0 0 32px;
}

.authors-hero-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1.45rem + 1.5vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 8px 0 12px;
  color: var(--ink-primary);
}

.authors-hero-head p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin: 0;
}

.authors-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

@media (min-width: 920px) {
  .authors-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.author-profile-card {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  scroll-margin-top: 96px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.author-profile-card.focused {
  border-color: var(--brand-cobalt);
  box-shadow: 0 18px 38px -16px rgba(23, 82, 232, 0.2);
}

.author-profile-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-hairline);
}

.author-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 220px;
  min-width: 0;
}

.author-avatar-xl {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: var(--bg-subtle);
  border: 2.5px solid #ffffff;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -6px rgba(5, 2, 40, 0.28);
}

.author-photo-xl {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.author-linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  flex-shrink: 0;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: #f8fafc;
  color: #0a66c2;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.author-linkedin-btn:hover {
  border-color: #0a66c2;
  background: #eff6ff;
}

.author-focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.author-articles-timeline {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.author-timeline-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-hairline);
  transition: border-color 0.15s ease;
}

.author-timeline-item:hover {
  border-color: var(--brand-cobalt);
}

.author-timeline-btn {
  padding: 0;
  border: none;
  background: transparent;
  font-size: 13.4px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink-primary);
  text-align: left;
  cursor: pointer;
}

.author-timeline-btn:hover {
  color: var(--brand-cobalt);
}

.editorial-principles-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #f8fafc;
  border: 1px solid var(--border-strong);
}

@media (min-width: 820px) {
  .editorial-principles-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==========================================================================
   13. BUYER'S GUIDE DEEP-DIVE & LEGAL / METHODOLOGY SUBPAGES
   ========================================================================== */
.guide-editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 960px) {
  .guide-editorial-grid {
    grid-template-columns: 1.25fr 1fr;
  }
}

.guide-criteria-card {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.8vw, 28px);
  box-shadow: var(--shadow-xs);
}

.info-legal-card {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow-card);
  margin-bottom: 48px;
}

/* ==========================================================================
   14. SCALABLE CONTENT ARCHITECTURE (Curated Homepage Caps, Hubs & Accordions)
   ========================================================================== */

/* 1. Homepage Capped Section Controls & Footers */
.section-head-with-filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 22px;
}

.home-topic-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
}

.home-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.topic-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  gap: 6px;
  min-height: 34px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.topic-pill-btn:hover {
  border-color: var(--brand-cobalt);
  color: var(--brand-cobalt);
  background: var(--brand-cobalt-soft);
}

.topic-pill-btn.active {
  background: var(--brand-cobalt);
  border-color: var(--brand-cobalt);
  color: #ffffff;
}

.topic-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.06);
  color: inherit;
}

.topic-pill-btn.active .topic-pill-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.section-cap-footer {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-xs);
}

.section-cap-meta {
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.section-cap-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  gap: 7px;
  min-height: 38px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--brand-cobalt);
  background: var(--brand-cobalt-soft);
  color: var(--brand-cobalt);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.section-cap-cta:hover {
  background: var(--brand-cobalt);
  color: #ffffff;
  transform: translateY(-1px);
}

/* 2. Homepage Compact Market Overviews Compass (Section 03) */
.home-clusters-compass-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 680px) {
  .home-clusters-compass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .home-clusters-compass-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.compass-cluster-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.compass-cluster-card:hover {
  border-color: var(--brand-cobalt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.compass-cluster-card.is-cross {
  background: rgba(23, 82, 232, 0.03);
  border-color: rgba(23, 82, 232, 0.2);
}

.compass-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
}

.compass-head-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.compass-icon-tile {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--brand-cobalt-soft);
  border: 1px solid rgba(23, 82, 232, 0.16);
  color: var(--brand-cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.compass-cluster-card:hover .compass-icon-tile {
  background: var(--brand-cobalt);
  border-color: var(--brand-cobalt);
  color: #ffffff;
}

.compass-card-title {
  font-size: 1.02rem;
  line-height: 1.32;
  margin: 12px 0 5px;
  color: var(--ink-primary);
}

.compass-card-lead {
  margin: 0 0 12px;
  font-size: 12.8px;
  color: var(--ink-secondary);
  line-height: 1.48;
}

.compass-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  border: 1px solid var(--border-hairline);
  box-sizing: border-box;
  flex-shrink: 0;
}

.compass-cluster-card.is-cross .compass-num-badge {
  background: var(--brand-cobalt-soft);
  color: var(--brand-cobalt);
  border-color: rgba(23, 82, 232, 0.22);
}

.compass-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted-tint);
  border: 1px solid var(--border-hairline);
  color: var(--ink-muted);
  box-sizing: border-box;
  flex-shrink: 0;
}

.compass-vendor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 5px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--border-hairline);
  box-sizing: border-box;
}

.compass-vendor-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  font-size: 11px;
  font-weight: 600;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-muted-tint);
  border: 1px solid var(--border-hairline);
  color: var(--ink-secondary);
  box-sizing: border-box;
}

@media (min-width: 680px) {
  .compass-card-lead {
    min-height: calc(2 * 1.48em);
  }

  .compass-vendor-row {
    min-height: 60px;
  }
}

@supports (grid-template-rows: subgrid) {
  @media (min-width: 680px) {
    .compass-cluster-card {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
      row-gap: 0;
      align-items: start;
    }

    .compass-vendor-row {
      margin-top: 0;
      align-self: stretch;
    }
  }
}

/* 3. Dedicated Hub & Archive Views (/ai-brief/, /playbooks/, /shortlist/) */
.hub-subpage-shell {
  padding: 28px 0 68px;
}

.hub-masthead {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 30px);
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

.hub-masthead-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.hub-masthead h1 {
  font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 10px;
}

.hub-masthead p {
  margin: 0;
  font-size: 15.2px;
  color: var(--ink-secondary);
  max-width: 760px;
  line-height: 1.6;
}

.hub-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-xs);
}

.hub-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hub-search-wrap {
  position: relative;
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  align-items: center;
}

.hub-search-icon {
  position: absolute;
  left: 12px;
  color: var(--ink-muted);
  pointer-events: none;
  display: inline-flex;
}

.hub-search-input {
  width: 100%;
  height: 40px;
  padding: 0 34px 0 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-muted-tint);
  color: var(--ink-primary);
  font-size: 16px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

@media (min-width: 768px) {
  .hub-search-input {
    font-size: 14px;
  }
}

.hub-search-input:focus {
  outline: none;
  border-color: var(--brand-cobalt);
  background: #ffffff;
}

.hub-search-clear {
  position: absolute;
  right: 8px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--ink-muted);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hub-view-seg {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  gap: 3px;
}

.hub-seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hub-seg-btn.active {
  background: #ffffff;
  color: var(--brand-cobalt);
  border-color: var(--border-hairline);
  box-shadow: var(--shadow-xs);
}

.hub-results-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* 4. Compact Daily List Mode for /ai-brief/ (25 items / page) */
.brief-compact-shell {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.brief-compact-month-group + .brief-compact-month-group {
  border-top: 1px solid var(--border-strong);
}

.brief-compact-month-head {
  padding: 10px 18px;
  background: var(--bg-muted-tint);
  border-bottom: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brief-compact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-hairline);
  text-decoration: none;
  color: inherit;
  transition: background 0.14s ease;
}

.brief-compact-row:last-child {
  border-bottom: none;
}

.brief-compact-row:hover {
  background: #f4f7ff;
}

@media (min-width: 960px) {
  .brief-compact-row {
    grid-template-columns: 148px 168px minmax(0, 1fr) auto 76px;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
  }
}

.brief-compact-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.brief-compact-topic-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-cobalt-soft);
  border: 1px solid rgba(23, 82, 232, 0.16);
  color: var(--brand-cobalt);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  width: fit-content;
}

.brief-compact-main h3 {
  font-size: 14.6px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 3px;
  color: var(--ink-primary);
}

.brief-compact-row:hover .brief-compact-main h3 {
  color: var(--brand-cobalt);
}

.brief-compact-main p {
  margin: 0;
  font-size: 12.8px;
  color: var(--ink-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brief-compact-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.brief-compact-read {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-cobalt);
  text-align: right;
  white-space: nowrap;
}

/* 5. Crawlable Pagination Bar */
.hub-pagination {
  margin-top: 26px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  min-width: 36px;
  height: 36px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.14s ease;
}

.page-btn:hover:not([disabled]):not(.active) {
  border-color: var(--brand-cobalt);
  color: var(--brand-cobalt);
  background: var(--brand-cobalt-soft);
}

.page-btn.active {
  background: var(--brand-cobalt);
  border-color: var(--brand-cobalt);
  color: #ffffff;
}

.page-btn[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
}

/* 6. Market Overviews Hub (/shortlist/) Directory (Independent Columns, Zero Neighbor Stretch) */
.shortlist-clusters-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.shortlist-cluster-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

@media (min-width: 980px) {
  .shortlist-clusters-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.shortlist-cluster-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-xs);
  align-self: stretch;
}

.shortlist-cluster-card.is-cross {
  background: rgba(23, 82, 232, 0.025);
  border-color: rgba(23, 82, 232, 0.24);
}

.shortlist-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.shortlist-guide-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--bg-muted-tint);
  border: 1px solid var(--border-hairline);
  font-size: 13.4px;
  font-weight: 600;
  color: var(--ink-primary);
  text-decoration: none;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.shortlist-guide-link:hover {
  border-color: var(--brand-cobalt);
  background: #ffffff;
  color: var(--brand-cobalt);
}

.shortlist-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  width: 100%;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px dashed var(--border-strong);
  background: transparent;
  color: var(--brand-cobalt);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.shortlist-expand-btn:hover {
  background: var(--brand-cobalt-soft);
  border-color: var(--brand-cobalt);
}

/* 7. Mega-Menu Scroll Cap, Active Nav Indicator & CmdK Filter Bar */
.mega-panel.mega-panel-scalable {
  max-height: min(74vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-link.is-active-hub {
  color: var(--brand-cobalt);
  background: var(--brand-cobalt-soft);
}

.cmdk-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--bg-muted-tint);
  border-bottom: 1px solid var(--border-hairline);
}

.cmdk-filter-bar:empty {
  display: none;
}

.cmdk-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-muted-tint);
  border-top: 1px solid var(--border-hairline);
  font-size: 12px;
  color: var(--ink-muted);
}

.cmdk-footer-bar:empty {
  display: none;
}

/* 8. Footer Archive Link & Independent Accordion Columns (Zero Neighbor Stretch) */
.footer-clusters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start !important;
}

@media (min-width: 760px) {
  .footer-clusters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start !important;
  }
}

@media (min-width: 1120px) {
  .footer-clusters-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: start !important;
  }
}

.footer-cluster-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.footer-cluster-acc {
  align-self: stretch;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.footer-cluster-acc[open] {
  border-color: var(--brand-cobalt);
  box-shadow: var(--shadow-card);
}

.footer-acc-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
}

.footer-acc-chevron {
  display: inline-block;
  font-size: 11px;
  color: var(--ink-muted);
  transition: transform 0.18s ease, color 0.18s ease;
}

.footer-cluster-acc[open] .footer-acc-chevron {
  transform: rotate(180deg);
  color: var(--brand-cobalt);
}

.footer-hub-more-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 12.8px;
  font-weight: 800;
  color: var(--brand-cobalt) !important;
}

.footer-cookie-btn {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.footer-cookie-btn:hover {
  color: var(--brand-cobalt);
  text-decoration: underline;
}

/* ==========================================================================
   COOKIE-BANNER (ANALOG ZU DEALCODE.AI)
   ========================================================================== */
.tfg-cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #050228;
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -12px 32px rgba(5, 2, 40, 0.28);
  z-index: 9999;
  padding: 16px 0 max(16px, env(safe-area-inset-bottom));
  font-family: var(--font-sans);
}

.tfg-cookie-container {
  max-width: 1220px;
  margin: 0 auto;
  padding-inline: 28px;
}

.tfg-cookie-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.tfg-cookie-copy {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tfg-cookie-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.tfg-cookie-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
}

.tfg-cookie-link {
  color: #93c5fd;
  text-decoration: underline;
}

.tfg-cookie-link:hover {
  color: #bfdbfe;
}

.tfg-cookie-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.tfg-cookie-btn-secondary,
.tfg-cookie-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.2;
  border-radius: 9px;
  cursor: pointer;
  min-height: 36px;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.tfg-cookie-btn-secondary {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #e2e8f0;
  padding: 8px 14px;
  font-weight: 600;
}

.tfg-cookie-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.tfg-cookie-btn-primary {
  background-color: #1752e8;
  border: 1px solid #1752e8;
  color: #ffffff;
  padding: 8px 16px;
  font-weight: 700;
}

.tfg-cookie-btn-primary:hover {
  background-color: #1244c4;
  border-color: #1244c4;
}

.tfg-cookie-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tfg-cookie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.tfg-cookie-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tfg-cookie-label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: #ffffff;
}

.tfg-cookie-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #1752e8;
  cursor: pointer;
  flex-shrink: 0;
}

.tfg-cookie-checkbox:disabled {
  cursor: default;
}

.tfg-cookie-card-desc {
  font-size: 12px;
  color: #94a3b8;
  margin: 4px 0 0 25px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .tfg-cookie-bar {
    padding: 10px 0 max(10px, env(safe-area-inset-bottom));
  }

  .tfg-cookie-container {
    padding-inline: 16px;
  }

  .tfg-cookie-compact {
    gap: 10px;
  }

  .tfg-cookie-copy {
    flex: 1 1 100%;
    gap: 2px;
  }

  .tfg-cookie-title {
    font-size: 13.5px;
  }

  .tfg-cookie-desc {
    font-size: 12px;
    line-height: 1.38;
  }

  .tfg-cookie-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .tfg-cookie-btn-secondary {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .tfg-cookie-btn-primary {
    grid-column: 1 / -1;
    min-height: 40px;
    padding: 8px 14px;
    font-size: 12.5px;
  }
}
