/* ═══════════════════════════════════════════════════════════
   🌸 ZEN READING ROOMS — Blog + long-form content styles
   Loaded for blog pages. Uses Zen design tokens from style.css :root.
   Pattern: 250px sticky sidebar + 720px reading content.
   ═══════════════════════════════════════════════════════════ */

/* ── Layout grid — 3-column like Stripe Docs ── */
.zt-reading {
  display: grid;
  grid-template-columns: var(--sidebar-width, 250px) 1fr 280px;
  min-height: calc(100vh - 200px);
  --reading-font-size: var(--text-body, 1rem);
  /* Sidebars fixed, content fills ALL remaining space */
}

/* ── Sidebar ── */
.zt-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: var(--space-4, 16px) 0;
  border-right: 1px solid var(--border-emphasis, #404040);
  background: var(--bg-page, #0A0A0A);
  scrollbar-width: thin;
  scrollbar-color: var(--border, #262626) transparent;
}

.zt-sidebar::-webkit-scrollbar {
  width: 4px;
}
.zt-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.zt-sidebar::-webkit-scrollbar-thumb {
  background: var(--border, #262626);
  border-radius: var(--radius-full, 9999px);
}

/* ── Table of Contents ── */
.zt-toc-title {
  font-size: var(--text-caption, 0.75rem);
  font-weight: 600;
  color: var(--text-muted, #737373);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-4, 16px);
  padding: 0;
}

.zt-toc #TableOfContents {
  font-size: var(--zen-text-sm, 0.875rem);
  line-height: 1.5;
}

.zt-toc #TableOfContents ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zt-toc #TableOfContents > ul > li {
  margin-bottom: var(--space-1, 4px);
}

.zt-toc #TableOfContents ul ul {
  margin-left: 6px;
  padding-left: var(--space-3, 12px);
  border-left: 1px solid var(--border-emphasis, #404040);
}

.zt-toc #TableOfContents a {
  display: block;
  padding: var(--space-1, 4px) var(--space-3, 12px);
  color: var(--text-tertiary, #A3A3A3);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0;
  transition: color var(--transition, 150ms ease-out), border-color var(--transition, 150ms ease-out);
}

.zt-toc #TableOfContents a:hover {
  color: var(--text-primary, #F5F5F5);
}

.zt-toc #TableOfContents a.active {
  color: var(--accent, #818CF8);
  border-left-color: var(--accent, #818CF8);
}

/* ── Mobile TOC (below title, hidden on desktop) ── */
.zt-toc-mobile {
  display: none;
  margin-bottom: var(--space-6, 24px);
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-md, 10px);
}

.zt-toc-mobile > summary {
  padding: var(--space-3, 12px) var(--space-4, 16px);
  font-size: var(--zen-text-sm, 0.875rem);
  font-weight: 600;
  color: var(--text-secondary, #D4D4D4);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
}

.zt-toc-mobile > summary::-webkit-details-marker {
  display: none;
}

.zt-toc-mobile > summary::before {
  content: '▸';
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
  transition: transform var(--transition, 150ms ease-out);
}

.zt-toc-mobile[open] > summary::before {
  transform: rotate(90deg);
}

.zt-toc-mobile .zt-toc-mobile-inner {
  padding: 0 var(--space-4, 16px) var(--space-3, 12px);
}

.zt-toc-mobile #TableOfContents {
  font-size: var(--zen-text-sm, 0.875rem);
  line-height: 1.5;
}

.zt-toc-mobile #TableOfContents ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zt-toc-mobile #TableOfContents ul ul {
  padding-left: var(--space-4, 16px);
}

.zt-toc-mobile #TableOfContents a {
  display: block;
  padding: var(--space-1, 4px) 0;
  color: var(--text-tertiary, #A3A3A3);
  text-decoration: none;
  transition: color var(--transition, 150ms ease-out);
}

.zt-toc-mobile #TableOfContents a:hover {
  color: var(--accent, #818CF8);
}

/* ── Reading content area ── */
.zt-reading-content {
  padding: var(--space-6, 24px) var(--space-12, 48px) var(--space-12, 48px);
  min-width: 0;
  /* No max-width — content fills the middle column naturally.
     Prose readability comes from the grid column sizing, not a cap. */
}

/* ── Title ── */
.zt-reading-content > h1 {
  font-size: var(--text-h1, 2rem);
  font-weight: 600;
  color: var(--text-primary, #F5F5F5);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3, 12px);
}

/* ── Meta line ── */
.zt-reading-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2, 8px);
  color: var(--text-muted, #737373);
  font-size: var(--zen-text-sm, 0.875rem);
  margin-bottom: var(--space-2, 8px);
}

.zt-reading-meta a {
  color: var(--accent, #818CF8);
  text-decoration: none;
}

.zt-reading-meta a:hover {
  text-decoration: underline;
}

.zt-reading-meta .zt-tag {
  display: inline-block;
  padding: 2px var(--space-2, 8px);
  font-size: var(--text-caption, 0.75rem);
  font-weight: 600;
  color: var(--accent, #818CF8);
  background: var(--accent-subtle, rgba(99,102,241,0.1));
  border-radius: var(--radius-full, 9999px);
}

.zt-reading-updated {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
  margin-bottom: var(--space-4, 16px);
}

/* ── Actions (share button, etc.) ── */
.zt-reading-actions {
  display: flex;
  gap: var(--space-2, 8px);
  margin-bottom: var(--space-6, 24px);
}

.zt-reading-actions button {
  background: var(--bg-elevated, #1A1A1A);
  border: 1px solid var(--border, #262626);
  color: var(--text-tertiary, #A3A3A3);
  padding: var(--space-1, 4px) var(--space-4, 16px);
  border-radius: var(--radius-sm, 6px);
  font-size: var(--zen-text-sm, 0.875rem);
  cursor: pointer;
  transition: color var(--transition, 150ms ease-out), border-color var(--transition, 150ms ease-out);
}

.zt-reading-actions button:hover {
  color: var(--text-primary, #F5F5F5);
  border-color: var(--border-emphasis, #404040);
}

/* ── Content body — Zen typography ── */
.zt-reading-body {
  font-size: var(--reading-font-size);
  line-height: 1.7;
  color: var(--text-secondary, #D4D4D4);
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: var(--max-reading, 720px);
  margin-left: auto;
  margin-right: auto;
}

/* Z18: Prose max-width — constrain reading text to ~72 chars/line */
.zt-reading-body > p,
.zt-reading-body > ul,
.zt-reading-body > ol,
.zt-reading-body > blockquote,
.zt-reading-body > dl,
.zt-reading-body > details,
.zt-reading-body > figure,
.zt-reading-body > h2,
.zt-reading-body > h3,
.zt-reading-body > h4,
.zt-reading-body > h5 {
  max-width: var(--max-reading, 720px);
}
/* Wide elements stay full-width: tables, pre, img, .mermaid, hr, div */

/* Headings — all use --text-primary, sized by token scale */
/* Z20: H2 left accent border — visual scanning aid */
.zt-reading-body h2 {
  font-size: var(--text-h2, 1.5rem);
  font-weight: 600;
  color: var(--text-primary, #F5F5F5);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  padding-bottom: 0;
  border-bottom: none;
  border-left: 3px solid var(--accent, #818CF8);
  padding-left: var(--space-3, 12px);
  scroll-margin-top: 5rem;
}

.zt-reading-body h3 {
  font-size: var(--text-h3, 1.25rem);
  font-weight: 600;
  color: var(--text-primary, #F5F5F5);
  line-height: 1.4;
  margin-top: 2em;
  margin-bottom: 0.5em;
  scroll-margin-top: 5rem;
}

.zt-reading-body h4 {
  font-size: var(--text-body, 1rem);
  font-weight: 600;
  color: var(--text-primary, #F5F5F5);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  scroll-margin-top: 5rem;
}

.zt-reading-body h5 {
  font-size: var(--zen-text-sm, 0.875rem);
  font-weight: 600;
  color: var(--text-tertiary, #A3A3A3);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Paragraphs */
.zt-reading-body p {
  margin-bottom: 1.25em;
}

/* Strong text emphasis */
.zt-reading-body p > strong:first-child,
.zt-reading-body li > strong:first-child {
  color: var(--text-primary, #F5F5F5);
}

/* Links */
.zt-reading-body a {
  color: var(--accent, #818CF8);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent-subtle, rgba(99,102,241,0.3));
  transition: color var(--transition, 150ms ease-out), text-decoration-color var(--transition, 150ms ease-out);
}

.zt-reading-body a:hover {
  color: var(--text-primary, #F5F5F5);
  text-decoration-color: var(--text-muted, #737373);
}

/* Lists */
.zt-reading-body ul,
.zt-reading-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25em;
}

.zt-reading-body li {
  margin-bottom: 0.4em;
  line-height: 1.7;
}

.zt-reading-body li > ul,
.zt-reading-body li > ol {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}

/* Horizontal rules */
.zt-reading-body hr {
  border: none;
  height: 1px;
  background: var(--border, #262626);
  margin: 2.5em 0;
}

/* Blockquotes */
.zt-reading-body blockquote {
  border-left: 3px solid var(--accent, #818CF8);
  padding: var(--space-3, 12px) var(--space-6, 24px);
  margin: 1.5em 0;
  color: var(--text-tertiary, #A3A3A3);
  background: var(--bg-elevated, #1A1A1A);
  border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
}

.zt-reading-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Tables — Z21: wrapped in .zt-table-wrap by JS */
.zt-table-wrap {
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-md, 10px);
  overflow-x: auto;
  margin: 1.5em 0;
}

.zt-table-wrap table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: var(--zen-text-sm, 0.875rem);
}

/* Unwrapped table fallback (before JS runs) */
.zt-reading-body > table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: var(--zen-text-sm, 0.875rem);
}

.zt-reading-body th {
  background: var(--bg-elevated, #1A1A1A);
  color: var(--text-primary, #F5F5F5);
  font-weight: 600;
  text-align: left;
  padding: var(--space-3, 12px) var(--space-4, 16px);
  border-bottom: 2px solid var(--border, #262626);
}

.zt-reading-body td {
  padding: var(--space-3, 12px) var(--space-4, 16px);
  border-bottom: 1px solid var(--border, #262626);
  color: var(--text-secondary, #D4D4D4);
}

.zt-reading-body tr:last-child td {
  border-bottom: none;
}

/* Inline code */
.zt-reading-body code {
  font-family: var(--zen-font-mono, 'JetBrains Mono', monospace);
  font-size: 0.875em;
  background: var(--bg-elevated, #1A1A1A);
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-sm, 6px);
  padding: 0.15em 0.4em;
}

/* Code blocks */
.zt-reading-body pre {
  background: var(--bg-surface, #141414);
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-md, 10px);
  padding: var(--space-4, 16px) var(--space-6, 24px);
  overflow-x: auto;
  margin: 1.5em 0;
}

.zt-reading-body pre code {
  font-family: var(--zen-font-mono, 'JetBrains Mono', monospace);
  font-size: var(--zen-text-sm, 0.875rem);
  line-height: 1.6;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

/* Images */
.zt-reading-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md, 10px);
  margin: 1.5em 0;
}

/* ── Video embed ── */
.zt-reading-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--border, #262626);
  margin-bottom: var(--space-6, 24px);
}

.zt-reading-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ── Prev/Next nav — override legacy styles within reading context ── */
.zt-reading-content .blog-pn {
  border-color: var(--border, #262626);
}

.zt-reading-content .blog-pn-link {
  border-color: var(--border, #262626);
  background: var(--bg-surface, #141414);
  color: var(--text-tertiary, #A3A3A3);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.zt-reading-content .blog-pn-link:hover {
  border-color: var(--border-emphasis, #404040);
  color: var(--accent, #818CF8);
}

/* ── End-of-post CTA ── */
.zt-reading-end {
  margin-top: var(--space-12, 48px);
  padding-top: var(--space-8, 32px);
  border-top: 1px solid var(--border, #262626);
}

.zt-reading-end h2 {
  font-size: var(--text-h3, 1.25rem);
  font-weight: 600;
  color: var(--text-primary, #F5F5F5);
  margin: 0 0 var(--space-4, 16px);
  border: none;
  padding: 0;
}

.zt-reading-end-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3, 12px);
  margin-bottom: var(--space-6, 24px);
}

.zt-reading-end-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-1, 4px);
  padding: var(--space-4, 16px);
  background: var(--bg-surface, #141414);
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-md, 10px);
  text-decoration: none;
  transition: border-color var(--transition, 150ms ease-out);
}

.zt-reading-end-link:hover {
  border-color: var(--border-emphasis, #404040);
}

.zt-reading-end-link-tag {
  font-size: var(--text-caption, 0.75rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent, #818CF8);
}

.zt-reading-end-link-title {
  color: var(--text-primary, #F5F5F5);
  font-size: var(--zen-text-sm, 0.875rem);
  font-weight: 600;
  line-height: 1.3;
}

.zt-reading-end-subscribe {
  display: flex;
  gap: var(--space-2, 8px);
  flex-wrap: wrap;
}

.zt-reading-end-sub {
  padding: var(--space-2, 8px) var(--space-4, 16px);
  background: var(--bg-elevated, #1A1A1A);
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-sm, 6px);
  color: var(--text-tertiary, #A3A3A3);
  text-decoration: none;
  font-size: var(--zen-text-sm, 0.875rem);
  transition: color var(--transition, 150ms ease-out), border-color var(--transition, 150ms ease-out);
}

.zt-reading-end-sub:hover {
  color: var(--text-primary, #F5F5F5);
  border-color: var(--border-emphasis, #404040);
}

/* ── Resources box ── */
.zt-reading-resources {
  margin-top: var(--space-8, 32px);
  padding: var(--space-6, 24px);
  background: var(--bg-elevated, #1A1A1A);
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-md, 10px);
}

/* ═══════════════════════════════════════════════════════════
   🌸 ZEN OVERRIDES — Legacy blog components in reading context
   Replaces glassmorphism with Zen tokens for light/dark support
   ═══════════════════════════════════════════════════════════ */

/* Living doc banner — Zen version */
.zt-reading-body .living-doc-banner {
  background: var(--bg-elevated, #1A1A1A);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border, #262626);
  border-left: 3px solid var(--warning, #EAB308);
  border-radius: var(--radius-md, 10px);
  padding: var(--space-4, 16px) var(--space-6, 24px);
  margin: var(--space-4, 16px) 0 var(--space-6, 24px);
  color: var(--text-secondary, #D4D4D4);
  max-width: var(--max-reading, 720px);
}

.zt-reading-body .living-doc-banner strong {
  color: var(--text-primary, #F5F5F5);
}

.zt-reading-body .living-doc-banner a {
  color: var(--accent, #818CF8);
}

/* Prompt example cards — Zen version */
.zt-reading-body .prompt-example {
  background: var(--bg-elevated, #1A1A1A);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border, #262626);
  border-left: 3px solid var(--accent, #818CF8);
  border-radius: var(--radius-md, 10px);
  padding: var(--space-4, 16px) var(--space-6, 24px);
  margin: var(--space-3, 12px) 0;
  color: var(--text-secondary, #D4D4D4);
  font-style: italic;
}

.zt-reading-body .prompt-example strong {
  color: var(--accent, #818CF8);
  font-style: normal;
}

/* Prompt cards (blockquotes) — Zen version */
.zt-reading-body .prompt-cards blockquote {
  border-left: 3px solid var(--accent, #818CF8);
  background: var(--bg-elevated, #1A1A1A);
  border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
  padding: var(--space-3, 12px) var(--space-4, 16px);
  margin: var(--space-2, 8px) 0;
  color: var(--text-secondary, #D4D4D4);
  font-size: var(--zen-text-sm, 0.875rem);
}

.zt-reading-body .prompt-cards blockquote p { color: var(--text-secondary, #D4D4D4); }
.zt-reading-body .prompt-cards blockquote strong { color: var(--accent, #818CF8); }
.zt-reading-body .prompt-cards blockquote em { color: var(--text-tertiary, #A3A3A3); font-style: normal; }

/* Cowork scenario cards — Zen version */
.zt-reading-body .cowork-scenario blockquote {
  border-left: 3px solid var(--accent, #818CF8);
  background: var(--bg-elevated, #1A1A1A);
  border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
  padding: var(--space-3, 12px) var(--space-4, 16px);
  margin: var(--space-2, 8px) 0;
  color: var(--text-secondary, #D4D4D4);
  font-size: var(--zen-text-sm, 0.875rem);
}

.zt-reading-body .cowork-scenario blockquote p { color: var(--text-secondary, #D4D4D4); }
.zt-reading-body .cowork-scenario blockquote strong { color: var(--text-primary, #F5F5F5); }
.zt-reading-body .cowork-scenario blockquote em { color: var(--accent, #818CF8); font-style: normal; }

/* Instruction cards — Zen version */
.zt-reading-body .instruction-cards blockquote {
  border-left: 3px solid var(--success, #22C55E);
  background: var(--bg-elevated, #1A1A1A);
  border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
  padding: var(--space-3, 12px) var(--space-4, 16px);
  margin: var(--space-2, 8px) 0;
  color: var(--text-secondary, #D4D4D4);
  font-size: var(--zen-text-sm, 0.875rem);
}

.zt-reading-body .instruction-cards blockquote p { color: var(--text-secondary, #D4D4D4); }
.zt-reading-body .instruction-cards blockquote strong { color: var(--success, #22C55E); }

/* Cowork persona pills — Zen: use accent for all, not per-color */
.zt-reading-body .cowork-persona {
  background: var(--accent-subtle, rgba(99,102,241,0.1));
  color: var(--accent, #818CF8);
  border: 1px solid var(--accent, #818CF8);
  border-radius: var(--radius-full, 9999px);
  font-size: var(--text-caption, 0.75rem);
  font-weight: 600;
  padding: 2px var(--space-3, 12px);
}

/* FAQ section — Zen override for neon magenta */
.zt-reading-body .blog-faq p > strong:first-child:last-child {
  color: var(--accent, #818CF8);
  border-top-color: var(--border, #262626);
}

/* Counter + Ko-fi pills — Zen version in blog context */
.zt-reading-badges .tool-counter {
  background: var(--bg-elevated, #1A1A1A);
  border: 1px solid var(--border, #262626);
  color: var(--text-muted, #737373);
}

.zt-reading-badges .tool-counter-num {
  color: var(--text-secondary, #D4D4D4);
}

.zt-reading-badges .tool-counter-verb {
  color: var(--text-muted, #737373);
  opacity: 1;
}

.zt-reading-badges .kofi-btn {
  background: var(--bg-elevated, #1A1A1A);
  border: 1px solid var(--border, #262626);
  color: var(--text-tertiary, #A3A3A3);
}

.zt-reading-badges .kofi-btn:hover,
.zt-reading-badges .kofi-btn:focus-visible {
  border-color: var(--border-emphasis, #404040);
  color: var(--text-primary, #F5F5F5);
  background: var(--bg-surface, #141414);
  box-shadow: none;
  transform: none;
}

.zt-reading-resources h2 {
  font-size: var(--text-h3, 1.25rem);
  color: var(--text-primary, #F5F5F5);
  margin: 0 0 var(--space-3, 12px);
  border: none;
  padding: 0;
}

.zt-reading-resources ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.zt-reading-resources li {
  margin-bottom: var(--space-2, 8px);
}

.zt-reading-resources a {
  color: var(--accent, #818CF8);
  text-decoration: none;
}

.zt-reading-resources a:hover {
  text-decoration: underline;
}

/* ── Progress bar ── */
.zt-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent, #818CF8);
  z-index: 9999;
  transition: width 50ms linear;
  pointer-events: none;
}

/* ── Ko-fi + counter badges ── */
.zt-reading-badges {
  display: flex;
  align-items: center;
  gap: var(--space-3, 12px);
  margin-bottom: var(--space-2, 8px);
}

/* ── Right companion sidebar ── */
.zt-companion {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: var(--space-6, 24px) var(--space-8, 32px) var(--space-6, 24px) var(--space-6, 24px);
  border-left: 1px solid var(--border-emphasis, #404040);
  scrollbar-width: none;
}

.zt-companion::-webkit-scrollbar {
  display: none;
}

/* Video widget */
.zt-companion-video {
  margin-bottom: var(--space-6, 24px);
}

.zt-companion-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border, #262626);
  transition: border-color var(--transition, 150ms ease-out);
}

.zt-companion-video-thumb:hover {
  border-color: var(--border-emphasis, #404040);
}

.zt-companion-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zt-companion-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-full, 9999px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  pointer-events: none;
  transition: background var(--transition, 150ms ease-out);
}

.zt-companion-video-thumb:hover .zt-companion-video-play {
  background: var(--accent, #818CF8);
}

.zt-companion-video-label {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
  margin-top: var(--space-2, 8px);
  text-align: center;
}

/* Expanded video player */
.zt-companion-video-player {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
  border: 1px solid var(--border, #262626);
}

.zt-companion-video-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.zt-companion-video-player.is-active {
  display: block;
}

.zt-companion-video-player.is-active + .zt-companion-video-thumb {
  display: none;
}

.zt-companion-video-collapse {
  display: none;
  width: 100%;
  padding: var(--space-1, 4px);
  margin-top: var(--space-2, 8px);
  background: transparent;
  border: none;
  color: var(--text-muted, #737373);
  font-size: var(--text-caption, 0.75rem);
  cursor: pointer;
  text-align: center;
}

.zt-companion-video-collapse:hover {
  color: var(--text-tertiary, #A3A3A3);
}

.zt-companion-video-player.is-active ~ .zt-companion-video-collapse {
  display: block;
}

/* Related posts in companion */
.zt-companion-section {
  margin-bottom: var(--space-6, 24px);
}

.zt-companion-title {
  font-size: var(--text-caption, 0.75rem);
  font-weight: 600;
  color: var(--text-muted, #737373);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--space-3, 12px);
}

.zt-companion-link {
  display: block;
  padding: var(--space-2, 8px) 0;
  text-decoration: none;
  border-bottom: 1px solid var(--border, #262626);
  transition: color var(--transition, 150ms ease-out);
}

.zt-companion-link:last-child {
  border-bottom: none;
}

.zt-companion-link-tag {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent, #818CF8);
}

.zt-companion-link-title {
  font-size: var(--zen-text-sm, 0.875rem);
  color: var(--text-secondary, #D4D4D4);
  line-height: 1.4;
  display: block;
  margin-top: 2px;
}

.zt-companion-link:hover .zt-companion-link-title {
  color: var(--text-primary, #F5F5F5);
}

/* Inline variant — emoji + name on same line (for popular items) */
.zt-companion-link--inline {
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
}
.zt-companion-link--inline .zt-companion-link-tag {
  display: inline;
  font-size: var(--text-body, 1rem);
  margin-bottom: 0;
}

/* Subscribe CTA in companion */
.zt-companion-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 8px);
}

.zt-companion-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2, 8px);
  padding: var(--space-2, 8px) var(--space-3, 12px);
  background: var(--bg-elevated, #1A1A1A);
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-sm, 6px);
  color: var(--text-tertiary, #A3A3A3);
  text-decoration: none;
  font-size: var(--zen-text-sm, 0.875rem);
  text-align: center;
  transition: color var(--transition, 150ms ease-out), border-color var(--transition, 150ms ease-out);
}

.zt-companion-cta-btn:hover {
  color: var(--text-primary, #F5F5F5);
  border-color: var(--border-emphasis, #404040);
}

/* ═══════════════════════════════════════════════════════════
   🌸 BLOG LIST NAV — Left sidebar for /blog/ index page
   ═══════════════════════════════════════════════════════════ */
.zt-blog-nav-section {
  padding: var(--space-3, 12px) var(--space-4, 16px);
  border-bottom: 1px solid var(--border, #262626);
}
.zt-blog-nav-label {
  font-size: var(--text-caption, 0.75rem);
  font-weight: 600;
  color: var(--text-muted, #737373);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 var(--space-2, 8px);
}
.zt-blog-nav-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-1, 4px) var(--space-2, 8px);
  margin-bottom: 2px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm, 6px);
  color: var(--text-secondary, #A3A3A3);
  font-size: var(--zen-text-sm, 0.875rem);
  cursor: pointer;
  transition: background 150ms ease-out, border-color 150ms ease-out;
}
.zt-blog-nav-cat:hover {
  background: var(--bg-elevated, #1A1A1A);
}
.zt-blog-nav-cat.active {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}
.zt-blog-nav-count {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
}
.zt-blog-nav-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2, 8px);
  padding: var(--space-1, 4px) var(--space-2, 8px);
  margin-bottom: 1px;
  text-decoration: none;
  border-radius: var(--radius-sm, 6px);
  transition: background 150ms ease-out;
}
.zt-blog-nav-link:hover {
  background: var(--bg-elevated, #1A1A1A);
}
.zt-blog-nav-link-title {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-secondary, #A3A3A3);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zt-blog-nav-link:hover .zt-blog-nav-link-title {
  color: var(--text-primary, #F5F5F5);
}
.zt-blog-nav-link-date {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Blog landing center column */
.zt-blog-landing {
  padding-top: var(--space-6, 24px);
}

/* ═══════════════════════════════════════════════════════════
   🌸 Z22: FONT SIZE CONTROLS — A+ / A- reader adjustment
   ═══════════════════════════════════════════════════════════ */
.zt-reading-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
  flex-wrap: wrap;
}

.zt-toolbar-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-sm, 6px);
  overflow: hidden;
}

.zt-toolbar-group button {
  background: var(--bg-elevated, #1A1A1A);
  border: none;
  border-right: 1px solid var(--border, #262626);
  color: var(--text-tertiary, #A3A3A3);
  padding: var(--space-1, 4px) var(--space-3, 12px);
  font-size: var(--zen-text-sm, 0.875rem);
  cursor: pointer;
  transition: color var(--transition, 150ms ease-out), background-color var(--transition, 150ms ease-out);
  line-height: 1.4;
}

.zt-toolbar-group button:last-child {
  border-right: none;
}

.zt-toolbar-group button:hover {
  color: var(--text-primary, #F5F5F5);
  background: var(--bg-surface, #141414);
}

.zt-toolbar-group button.is-active {
  color: var(--accent, #818CF8);
  background: var(--accent-subtle, rgba(99,102,241,0.1));
}

/* Stand-alone toolbar buttons */
.zt-toolbar-btn {
  background: var(--bg-elevated, #1A1A1A);
  border: 1px solid var(--border, #262626);
  color: var(--text-tertiary, #A3A3A3);
  padding: var(--space-1, 4px) var(--space-3, 12px);
  border-radius: var(--radius-sm, 6px);
  font-size: var(--zen-text-sm, 0.875rem);
  cursor: pointer;
  transition: color var(--transition, 150ms ease-out), border-color var(--transition, 150ms ease-out), background-color var(--transition, 150ms ease-out);
}

.zt-toolbar-btn:hover {
  color: var(--text-primary, #F5F5F5);
  border-color: var(--border-emphasis, #404040);
}

.zt-toolbar-btn.is-active {
  color: var(--accent, #818CF8);
  border-color: var(--accent, #818CF8);
  background: var(--accent-subtle, rgba(99,102,241,0.1));
}

/* ═══════════════════════════════════════════════════════════
   🌸 Z23: KINDLE WARM TINT — sepia/warm reading mode
   Scoped to .zt-reading to avoid bleeding into tools/nav.
   Works independently of light/dark theme.
   ═══════════════════════════════════════════════════════════ */
.zt-reading.zt-reading--warm {
  --bg-page: #FFF8F0;
  --bg-surface: #FBF4E8;
  --bg-elevated: #F5ECD8;
  --border: #E5D9C3;
  --border-emphasis: #D4C4A8;
  --text-secondary: #5C4E3C;
  --text-tertiary: #7A6B58;
  --text-muted: #9A8B78;
}

/* Dark + warm */
[data-theme="dark"] .zt-reading.zt-reading--warm {
  --bg-page: #1A1710;
  --bg-surface: #1F1B14;
  --bg-elevated: #252018;
  --border: #3D3528;
  --border-emphasis: #524838;
  --text-secondary: #D4C8B0;
  --text-tertiary: #A89880;
  --text-muted: #7A6B58;
}

/* Warm tint on the content area background */
.zt-reading.zt-reading--warm .zt-reading-content {
  background: var(--bg-page);
}

.zt-reading.zt-reading--warm .zt-sidebar {
  background: var(--bg-elevated);
  border-right-color: var(--border);
}

.zt-reading.zt-reading--warm .zt-companion {
  background: var(--bg-elevated);
  border-left-color: var(--border);
}

/* ═══════════════════════════════════════════════════════════
   🌸 Z24: FOCUS MODE — hide sidebars, center content
   ═══════════════════════════════════════════════════════════ */
.zt-reading.zt-reading--focused {
  grid-template-columns: 1fr;
}

.zt-reading--focused .zt-sidebar,
.zt-reading--focused .zt-companion {
  display: none;
}

.zt-reading--focused .zt-reading-content {
  max-width: 800px;
  margin: 0 auto;
  padding-left: var(--space-8, 32px);
  padding-right: var(--space-8, 32px);
}

/* ── Mobile responsive ── */
@media (max-width: 1024px) {
  .zt-reading {
    grid-template-columns: 1fr;
  }

  .zt-sidebar {
    display: none;
  }

  .zt-companion {
    display: none;
  }

  .zt-toc-mobile {
    display: block;
  }

  .zt-reading-content {
    max-width: 100%;
    padding: var(--space-4, 16px) var(--space-4, 16px) var(--space-12, 48px);
  }

  /* On mobile, inline video shows within content */
  .zt-reading-video-mobile {
    display: block;
    margin-bottom: var(--space-6, 24px);
  }

  /* Z24: Focus mode redundant on mobile — hide button */
  .zt-focus-toggle {
    display: none;
  }
}

@media (max-width: 640px) {
  .zt-reading-content > h1 {
    font-size: var(--text-h2, 1.5rem);
  }

  .zt-reading-body h2 {
    font-size: var(--text-h3, 1.25rem);
  }

  .zt-reading-body h3 {
    font-size: var(--text-body, 1rem);
  }

  .zt-reading-end-links {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   🌸 ZEN BLOG LIST — Card-based article listing
   Used by blog/list.html. Replaces legacy timeline.
   ═══════════════════════════════════════════════════════════ */

.zt-blog-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 16px);
}

.zt-blog-card {
  display: block;
  padding: var(--space-6, 24px);
  background: var(--bg-surface, #141414);
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-md, 10px);
  text-decoration: none;
  transition: border-color var(--transition, 150ms ease-out);
}

.zt-blog-card:hover {
  border-color: var(--border-emphasis, #404040);
}

.zt-blog-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-1, 4px);
}

.zt-blog-card-tag {
  display: inline-block;
  padding: 2px var(--space-2, 8px);
  font-size: var(--text-caption, 0.75rem);
  font-weight: 600;
  color: var(--accent, #818CF8);
  background: var(--accent-subtle, rgba(99,102,241,0.1));
  border-radius: var(--radius-full, 9999px);
}

.zt-blog-card-date {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
}

.zt-blog-card-title {
  font-size: var(--zen-text-sm, 0.875rem);
  font-weight: 600;
  color: var(--text-primary, #F5F5F5);
  line-height: 1.4;
  margin: 0;
}

.zt-blog-card:hover .zt-blog-card-title {
  color: var(--accent, #818CF8);
}

.zt-blog-card-desc {
  font-size: var(--zen-text-sm, 0.875rem);
  color: var(--text-tertiary, #A3A3A3);
  line-height: 1.5;
  margin: var(--space-1, 4px) 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   🌸 ZEN DIAGRAMS — Light dot-grid canvas + fullscreen
   Stripe Docs style: light canvas, white nodes, soft lines.
   ═══════════════════════════════════════════════════════════ */

/* Dot-grid container — light canvas like Stripe Docs */
.zt-reading-body .mermaid {
  margin: 2rem 0;
  padding: 2rem;
  background:
    radial-gradient(circle, #D4D4D4 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: #FAFAFA;
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  text-align: center;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  max-width: none;
  max-height: 800px;
}

/* Scale oversized SVGs to fit the container — user can ⛶ fullscreen for detail */
.zt-reading-body .mermaid svg {
  max-height: 740px;
  width: auto;
  height: auto;
}
/* Rounded node corners */
.zt-reading-body .mermaid .node rect,
.zt-reading-body .mermaid .node polygon {
  rx: 12 !important;
  ry: 12 !important;
}

/* SVG always fits container */
.zt-reading-body .mermaid svg,
.content-body .mermaid svg {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

/* Fullscreen button — subtle, appears on hover */
.zt-diagram-fs {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 6px;
  color: #A3A3A3;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  z-index: 10;
  opacity: 0;
  transition: opacity 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}

.mermaid:hover .zt-diagram-fs {
  opacity: 1;
}

.zt-diagram-fs:hover {
  color: #414552;
  border-color: #D4D4D4;
}

/* Fullscreen — light canvas fills screen */
.mermaid:fullscreen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(circle, #D4D4D4 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: #FAFAFA;
}

.mermaid:fullscreen svg {
  width: auto !important;
  max-width: 95vw !important;
  max-height: 90vh !important;
  height: auto !important;
}

.mermaid:fullscreen .zt-diagram-fs {
  opacity: 1;
  position: fixed;
  bottom: 24px;
  right: 24px;
}

/* iOS Safari fallback */
.mermaid.zt-diagram-fullscreen {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  margin: 0 !important;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(circle, #D4D4D4 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: #FAFAFA;
}

.mermaid.zt-diagram-fullscreen svg {
  width: auto !important;
  max-width: 95vw !important;
  max-height: 90vh !important;
}

.mermaid.zt-diagram-fullscreen .zt-diagram-fs {
  opacity: 1;
  position: fixed;
  bottom: 24px;
  right: 24px;
}

/* ═══════════════════════════════════════════════════════════
   🌸 ZEN CERT READING — Study guide sidebar layout
   Extends zt-reading for cert-tracker single pages.
   Left: cert navigation. Center: study guide. Right: exam CTA.
   ═══════════════════════════════════════════════════════════ */

/* ── Cert left sidebar nav ── */
/* Cert nav inherits base sidebar padding */

.zt-cert-nav {
  font-size: var(--zen-text-sm, 0.875rem);
}

.zt-cert-nav-header {
  display: block;
  padding: var(--space-3, 12px) var(--space-4, 16px);
  font-size: var(--zen-text-sm, 0.875rem);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border, #262626);
  transition: color 150ms ease-out;
}
.zt-cert-nav-header:hover {
  color: var(--accent);
}
.zt-cert-nav-header.active {
  color: var(--accent);
  border-left: 3px solid var(--accent);
}

.zt-cert-vendor {
  border-bottom: 1px solid var(--border, #262626);
}

.zt-cert-vendor > summary {
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
  padding: var(--space-2, 8px) var(--space-4, 16px);
  font-size: var(--zen-text-sm, 0.875rem);
  font-weight: 600;
  color: var(--text-secondary, #D4D4D4);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--transition, 150ms ease-out);
}

.zt-cert-vendor > summary::-webkit-details-marker { display: none; }

.zt-cert-vendor > summary:hover {
  color: var(--text-primary, #F5F5F5);
}

.zt-cert-vendor-count {
  font-size: var(--text-caption, 0.75rem);
  font-weight: 400;
  color: var(--text-muted, #737373);
  background: var(--bg-elevated, #1A1A1A);
  padding: 1px 6px;
  border-radius: var(--radius-full, 9999px);
  margin-left: auto;
}

/* ── Tree View: +/− toggles and connector lines ── */
.zt-cert-vendor > summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  line-height: 1;
  transition: color var(--transition, 150ms ease-out), border-color var(--transition, 150ms ease-out);
}
.zt-cert-vendor[open] > summary::before {
  content: '−';
}
.zt-cert-vendor > summary:hover::before {
  color: var(--text-secondary);
  border-color: var(--border-emphasis);
}

.zt-cert-vendor-body {
  margin-left: 23px;
  padding: var(--space-1, 4px) 0 var(--space-2, 8px) var(--space-3, 12px);
  border-left: 1px solid color-mix(in srgb, var(--accent, #818CF8) 30%, transparent);
}

/* Category labels (Microsoft sub-groups — collapsible) */
.zt-cert-category {
  margin-top: var(--space-2, 8px);
}

.zt-cert-category-name {
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
  padding: var(--space-1, 4px) 0;
  font-size: var(--text-caption, 0.75rem);
  font-weight: 600;
  color: var(--text-muted, #737373);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
}
.zt-cert-category-name::-webkit-details-marker { display: none; }
.zt-cert-category-name .zt-lic-nav-count {
  font-size: 0.65rem;
  text-transform: none;
  margin-left: auto;
}

/* Tree View: +/− toggle on category */
.zt-cert-category > summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 0.65rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  line-height: 1;
  transition: color var(--transition, 150ms ease-out), border-color var(--transition, 150ms ease-out);
}
.zt-cert-category[open] > summary::before {
  content: '−';
}
.zt-cert-category > summary:hover::before {
  color: var(--text-secondary);
  border-color: var(--border-emphasis);
}

/* Tree View: connector line for cert links inside a category */
.zt-cert-category-links {
  margin-left: 6px;
  padding: var(--space-1, 4px) 0 var(--space-1, 4px) var(--space-3, 12px);
  border-left: 1px solid color-mix(in srgb, var(--accent, #818CF8) 30%, transparent);
}

/* Cert links */
.zt-cert-link {
  display: flex;
  align-items: center;
  gap: var(--space-1, 4px);
  padding: var(--space-1, 4px) var(--space-3, 12px);
  color: var(--text-tertiary, #A3A3A3);
  text-decoration: none;
  border-left: 2px solid transparent;
  font-size: var(--zen-text-sm, 0.875rem);
  transition: color var(--transition, 150ms ease-out), border-color var(--transition, 150ms ease-out), background var(--transition, 150ms ease-out);
}

.zt-cert-link:hover {
  color: var(--text-primary, #F5F5F5);
  background: var(--bg-elevated, #1A1A1A);
}

.zt-cert-link.active {
  color: var(--accent, #818CF8);
  border-left-color: var(--accent, #818CF8);
  background: var(--accent-subtle, rgba(99,102,241,0.08));
  font-weight: 600;
}

.zt-cert-link-code {
  white-space: nowrap;
}

.zt-cert-link-flag {
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
}

/* SVG icon alignment in sidebar contexts */
.zt-cert-nav-header svg,
.zt-cert-vendor-name svg {
  display: inline-block;
  vertical-align: -2px;
  flex-shrink: 0;
}

.zt-cert-link-flag svg {
  display: inline-block;
  vertical-align: middle;
}

.zt-companion-link-tag svg {
  display: inline-block;
  vertical-align: middle;
}

.zt-companion-cta-btn svg {
  flex-shrink: 0;
}

/* ── Cert header (replaces hero) ── */
.zt-cert-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1, 4px);
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
  margin-bottom: var(--space-3, 12px);
}

.zt-cert-breadcrumb a {
  color: var(--text-tertiary, #A3A3A3);
  text-decoration: none;
}

.zt-cert-breadcrumb a:hover {
  color: var(--accent, #818CF8);
}

.zt-cert-title {
  font-size: var(--text-h1, 2rem);
  font-weight: 700;
  color: var(--text-primary, #F5F5F5);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3, 12px);
}

/* Badges */
.zt-cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2, 8px);
  margin-bottom: var(--space-4, 16px);
}

.zt-cert-badge {
  display: inline-block;
  padding: 2px var(--space-2, 8px);
  font-size: var(--text-caption, 0.75rem);
  font-weight: 600;
  border-radius: var(--radius-full, 9999px);
  background: var(--bg-elevated, #1A1A1A);
  border: 1px solid var(--border, #262626);
  color: var(--text-secondary, #D4D4D4);
}

.zt-cert-badge--beginner {
  color: var(--success, #10B981);
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.08);
}

.zt-cert-badge--intermediate {
  color: #3B82F6;
  border-color: rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.08);
}

.zt-cert-badge--advanced {
  color: #F59E0B;
  border-color: rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.08);
}

.zt-cert-badge--category {
  color: var(--accent, #818CF8);
  border-color: rgba(99,102,241,0.3);
  background: var(--accent-subtle, rgba(99,102,241,0.08));
}

.zt-cert-badge--retiring {
  color: #F59E0B;
  border-color: rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.08);
}

.zt-cert-badge--retired {
  color: #EF4444;
  border-color: rgba(239,68,68,0.3);
  background: rgba(239,68,68,0.08);
}

.zt-cert-badge--beta {
  color: #8B5CF6;
  border-color: rgba(139,92,246,0.3);
  background: rgba(139,92,246,0.08);
}

.zt-cert-badge--upcoming {
  color: #06B6D4;
  border-color: rgba(6,182,212,0.3);
  background: rgba(6,182,212,0.08);
}

/* Status banners */
.zt-cert-status {
  padding: var(--space-3, 12px) var(--space-4, 16px);
  border-radius: var(--radius-md, 10px);
  font-size: var(--zen-text-sm, 0.875rem);
  margin-bottom: var(--space-4, 16px);
  line-height: 1.5;
  color: var(--text-secondary, #D4D4D4);
}

.zt-cert-status--retiring {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
}

.zt-cert-status--retired {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.2);
}

.zt-cert-status--beta {
  background: rgba(139,92,246,0.06);
  border: 1px solid rgba(139,92,246,0.2);
}

.zt-cert-status--upcoming {
  background: rgba(6,182,212,0.06);
  border: 1px solid rgba(6,182,212,0.2);
}

/* Intro text helper */
.zt-cert-intro {
  color: var(--text-muted, #737373);
  font-size: var(--zen-text-sm, 0.875rem);
  margin-bottom: var(--space-4, 16px);
}

.zt-cert-free-label {
  color: var(--success, #10B981);
}

/* ── Right sidebar: Exam card ── */
.zt-companion--cert {
  padding-top: var(--space-4, 16px);
}

.zt-cert-exam-card {
  padding: var(--space-4, 16px);
  background: var(--bg-surface, #141414);
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-md, 10px);
  margin-bottom: var(--space-4, 16px);
}

.zt-cert-exam-code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: var(--zen-text-sm, 0.875rem);
  color: var(--text-muted, #737373);
  margin-bottom: 2px;
}

.zt-cert-exam-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #F5F5F5);
  line-height: 1.3;
  margin-bottom: var(--space-3, 12px);
}

.zt-cert-exam-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-2, 8px);
  margin-bottom: var(--space-3, 12px);
}

.zt-cert-exam-stat {
  text-align: center;
  padding: var(--space-2, 8px) var(--space-1, 4px);
  background: var(--bg-elevated, #1A1A1A);
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--border, #262626);
}

.zt-cert-exam-stat-num {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent, #818CF8);
  line-height: 1;
}

.zt-cert-exam-stat-label {
  display: block;
  font-size: 0.625rem;
  color: var(--text-muted, #737373);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.zt-cert-exam-price {
  font-size: var(--zen-text-sm, 0.875rem);
  color: var(--text-tertiary, #A3A3A3);
  text-align: center;
  margin-bottom: var(--space-3, 12px);
}

.zt-cert-exam-price strong {
  font-size: 1.25rem;
  color: var(--text-primary, #F5F5F5);
}

.zt-cert-exam-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 8px);
  margin-bottom: var(--space-3, 12px);
}

.zt-cert-btn {
  display: block;
  text-align: center;
  padding: var(--space-2, 8px) var(--space-3, 12px);
  border-radius: var(--radius-sm, 6px);
  font-size: var(--zen-text-sm, 0.875rem);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--transition, 150ms ease-out), transform var(--transition, 150ms ease-out);
}

.zt-cert-btn--primary {
  background: var(--accent, #818CF8);
  color: #fff;
}

.zt-cert-btn--primary:hover {
  background: var(--accent-hover, #6366F1);
  transform: translateY(-1px);
}

.zt-cert-btn--secondary {
  background: transparent;
  color: var(--accent, #818CF8);
  border: 1px solid var(--accent, #818CF8);
}

.zt-cert-btn--secondary:hover {
  background: var(--accent-subtle, rgba(99,102,241,0.08));
}

.zt-cert-btn--accent {
  display: inline-block;
  background: var(--accent, #818CF8);
  color: #fff;
  padding: var(--space-2, 8px) var(--space-4, 16px);
  border-radius: var(--radius-sm, 6px);
  font-weight: 600;
  font-size: var(--zen-text-sm, 0.875rem);
  text-decoration: none;
}

.zt-cert-btn--accent:hover {
  background: var(--accent-hover, #6366F1);
}

.zt-cert-exam-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.zt-cert-exam-features li {
  font-size: var(--zen-text-sm, 0.875rem);
  color: var(--text-tertiary, #A3A3A3);
  padding: var(--space-1, 4px) 0;
  border-bottom: 1px solid var(--border, #262626);
}

.zt-cert-exam-features li:last-child { border-bottom: none; }

.zt-cert-exam-plans {
  text-align: center;
  margin-top: var(--space-2, 8px);
}

.zt-cert-exam-plans a {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
  text-decoration: none;
}

.zt-cert-exam-plans a:hover { color: var(--accent, #818CF8); }

/* Prep time */
.zt-cert-prep {
  font-size: var(--zen-text-sm, 0.875rem);
  color: var(--text-tertiary, #A3A3A3);
  margin-bottom: var(--space-4, 16px);
}

.zt-cert-prep strong {
  color: var(--text-secondary, #D4D4D4);
}

/* Study planner in sidebar */
.zt-cert-planner-label {
  display: block;
  font-size: var(--zen-text-sm, 0.875rem);
  color: var(--text-tertiary, #A3A3A3);
}

.zt-cert-date-input {
  width: 100%;
  margin-top: var(--space-1, 4px);
  padding: var(--space-2, 8px);
  background: var(--bg-elevated, #1A1A1A);
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-sm, 6px);
  color: var(--text-primary, #F5F5F5);
  font-size: var(--zen-text-sm, 0.875rem);
}

.zt-cert-date-input:focus {
  outline: none;
  border-color: var(--accent, #818CF8);
}

/* Cert Compass CTA */
.zt-cert-compass-cta {
  margin: var(--space-8, 32px) 0;
  padding: var(--space-4, 16px);
  border-radius: var(--radius-md, 10px);
  background: var(--accent-subtle, rgba(99,102,241,0.06));
  border: 1px solid rgba(99,102,241,0.2);
  text-align: center;
}

.zt-cert-compass-cta p {
  color: var(--text-secondary, #D4D4D4);
  font-size: var(--zen-text-sm, 0.875rem);
  margin: 0 0 var(--space-3, 12px);
}

/* FAQ */
.zt-cert-faq {
  margin-top: var(--space-8, 32px);
}

.zt-cert-faq-item {
  background: var(--bg-surface, #141414);
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-md, 10px);
  margin-bottom: var(--space-2, 8px);
}

.zt-cert-faq-item > summary {
  color: var(--accent, #818CF8);
  font-size: var(--zen-text-sm, 0.875rem);
  font-weight: 700;
  padding: var(--space-3, 12px) var(--space-4, 16px);
  cursor: pointer;
  list-style: none;
}

.zt-cert-faq-item > summary::-webkit-details-marker { display: none; }

.zt-cert-faq-item > p {
  color: var(--text-tertiary, #A3A3A3);
  font-size: var(--zen-text-sm, 0.875rem);
  line-height: 1.6;
  padding: 0 var(--space-4, 16px) var(--space-3, 12px);
  margin: 0;
}

/* ── Zen overrides for cert-single-content (override cert-tracker.css emerald) ── */
.zt-reading--cert .cert-single-content h2 {
  color: var(--text-primary, #F5F5F5);
  font-size: var(--text-h2, 1.5rem);
  font-weight: 600;
  border-bottom: 1px solid var(--border, #262626);
  padding-bottom: var(--space-2, 8px);
  margin-top: var(--space-8, 32px);
  margin-bottom: var(--space-3, 12px);
}

.zt-reading--cert .cert-single-content h3 {
  color: var(--text-secondary, #D4D4D4);
  font-size: var(--text-h3, 1.25rem);
  font-weight: 600;
  margin-top: var(--space-6, 24px);
  margin-bottom: var(--space-2, 8px);
}

.zt-reading--cert .cert-single-content h4 {
  color: var(--text-secondary, #D4D4D4);
  font-size: 1rem;
  font-weight: 600;
  margin-top: var(--space-4, 16px);
  margin-bottom: var(--space-2, 8px);
}

.zt-reading--cert .cert-single-content {
  color: var(--text-tertiary, #A3A3A3);
  font-size: var(--zen-text-sm, 0.875rem);
  line-height: 1.7;
}

.zt-reading--cert .cert-single-content a {
  color: var(--accent, #818CF8);
  text-decoration: none;
}

.zt-reading--cert .cert-single-content a:hover {
  text-decoration: underline;
}

.zt-reading--cert .cert-single-content li {
  color: var(--text-tertiary, #A3A3A3);
}

.zt-reading--cert .cert-single-content li::marker {
  color: var(--accent, #818CF8);
}

.zt-reading--cert .cert-single-content th {
  color: var(--text-secondary, #D4D4D4);
  background: var(--bg-elevated, #1A1A1A);
  font-weight: 600;
}

.zt-reading--cert .cert-single-content td,
.zt-reading--cert .cert-single-content th {
  border-bottom-color: var(--border, #262626);
}

.zt-reading--cert .cert-single-content blockquote {
  border-left: 3px solid var(--accent, #818CF8);
  padding-left: var(--space-4, 16px);
  color: var(--text-tertiary, #A3A3A3);
  font-style: italic;
  margin: var(--space-4, 16px) 0;
}

.zt-reading--cert .cert-single-content hr {
  border: none;
  border-top: 1px solid var(--border, #262626);
  margin: var(--space-8, 32px) 0;
}

/* Video section heading override */
.zt-reading--cert .cert-video-section h2 {
  color: var(--text-primary, #F5F5F5);
  font-size: var(--text-h2, 1.5rem);
  font-weight: 600;
  margin-bottom: var(--space-2, 8px);
}

/* Curriculum domain override */
.zt-reading--cert .cert-curriculum h2 {
  color: var(--text-primary, #F5F5F5);
  font-size: var(--text-h2, 1.5rem);
  font-weight: 600;
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: var(--space-1, 4px);
}

/* Study plan output — compact for sidebar */
.zt-companion--cert .cert-plan-result {
  margin-top: var(--space-3, 12px);
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-tertiary, #A3A3A3);
}

.zt-companion--cert .cert-plan-result p {
  margin: 0 0 var(--space-2, 8px);
}

.zt-companion--cert .cert-plan-result strong {
  color: var(--text-secondary, #D4D4D4);
}

.zt-companion--cert .cert-plan-week {
  margin-bottom: var(--space-2, 8px);
  padding: var(--space-2, 8px) var(--space-3, 12px);
  background: var(--accent-subtle, rgba(99,102,241,0.06));
  border-radius: var(--radius-sm, 6px);
  border-left: 2px solid var(--accent, #818CF8);
}

.zt-companion--cert .cert-plan-week strong {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-secondary, #D4D4D4);
}

.zt-companion--cert .cert-plan-week ul {
  margin: var(--space-1, 4px) 0 0;
  padding-left: var(--space-4, 16px);
}

.zt-companion--cert .cert-plan-week li {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
  line-height: 1.5;
}

/* Progress bar override */
.zt-reading--cert .cert-progress-wrap {
  background: var(--bg-surface, #141414);
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-md, 10px);
  padding: var(--space-3, 12px) var(--space-4, 16px);
  margin-bottom: var(--space-4, 16px);
}

.zt-reading--cert .cert-progress-header {
  color: var(--text-secondary, #D4D4D4);
  font-size: var(--zen-text-sm, 0.875rem);
}

.zt-reading--cert .cert-progress-fill {
  background: var(--accent, #818CF8);
}

/* Collapsible toggle override */
.zt-reading--cert .cert-collapsible-toggle {
  cursor: pointer;
  color: var(--text-secondary, #D4D4D4);
}

.zt-reading--cert .cert-collapsible-toggle:hover {
  color: var(--accent, #818CF8);
}

/* Checkbox override */
.zt-reading--cert .cert-cb:checked {
  background: var(--accent, #818CF8);
  border-color: var(--accent, #818CF8);
}

.zt-reading--cert .cert-checked a {
  opacity: 0.5;
  text-decoration: line-through;
}

/* Related cards override */
.zt-reading--cert .cert-related-card {
  display: block;
  padding: var(--space-2, 8px) var(--space-3, 12px);
  background: var(--bg-surface, #141414);
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-sm, 6px);
  text-decoration: none;
  margin-bottom: var(--space-2, 8px);
  transition: border-color var(--transition, 150ms ease-out);
}

.zt-reading--cert .cert-related-card:hover {
  border-color: var(--accent, #818CF8);
}

.zt-reading--cert .cert-card-code {
  color: var(--accent, #818CF8);
  font-weight: 700;
  font-size: var(--zen-text-sm, 0.875rem);
}

.zt-reading--cert .cert-card-title {
  color: var(--text-tertiary, #A3A3A3);
  font-size: var(--text-caption, 0.75rem);
}
@media (max-width: 1024px) {
  .zt-reading--cert {
    grid-template-columns: 1fr;
  }

  .zt-sidebar--cert {
    display: none;
  }

  .zt-companion--cert {
    display: none;
  }

  .zt-cert-title {
    font-size: var(--text-h2, 1.5rem);
  }
}

@media (max-width: 640px) {
  .zt-cert-title {
    font-size: 1.25rem;
  }
}

/* ═══════════════════════════════════════════════════════════
   🌸 ZEN STUDY GUIDES LANDING — /study-guides/ index page
   Vendor-grouped cert card grid with search.
   ═══════════════════════════════════════════════════════════ */

.zt-sg-landing {
  padding: var(--space-6, 24px) var(--space-12, 48px) var(--space-16, 64px);
}

/* Hero — reuses ft-hero from free-tools.css (loaded via baseof.html) */
/* Shared hero pattern — also used by study guides & blog landing */
.ft-hero {
  padding: var(--space-8, 32px) 0 var(--space-6, 24px);
  margin: 0 0 var(--space-12, 48px);
  border-bottom: 1px solid var(--border);
}
.ft-hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-h1, 2rem);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-2, 8px);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.ft-hero-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-body, 1rem);
  line-height: 1.7;
  margin: 0 0 var(--space-4, 16px);
  max-width: var(--max-reading, 720px);
}
.ft-hero-subtitle a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.ft-hero-subtitle strong { color: var(--text-primary); }
.ft-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2, 8px);
}
.ft-hero-stat {
  font-size: var(--text-caption, 0.75rem);
  font-weight: 500;
  color: var(--text-tertiary);
  padding: var(--space-1, 4px) var(--space-3, 12px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .ft-hero-title { font-size: 1.5rem; }
  .ft-hero-meta { gap: var(--space-1, 4px); }
  .ft-hero-stat { font-size: 0.7rem; padding: 3px var(--space-2, 8px); }
}

/* Search — left-aligned inside grid */
.zt-sg-search-wrap {
  max-width: 480px;
  margin: 0 0 var(--space-8, 32px);
}

.zt-sg-search {
  width: 100%;
  padding: var(--space-3, 12px) var(--space-4, 16px);
  background: var(--bg-surface, #141414);
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-md, 10px);
  color: var(--text-primary, #F5F5F5);
  font-size: var(--zen-text-sm, 0.875rem);
  transition: border-color var(--transition, 150ms ease-out);
}

.zt-sg-search:focus {
  outline: none;
  border-color: var(--accent, #818CF8);
}

.zt-sg-search::placeholder {
  color: var(--text-muted, #737373);
}

/* Vendor sections */
.zt-sg-vendor {
  margin-bottom: var(--space-12, 48px);
}

.zt-sg-vendor-header {
  display: flex;
  align-items: center;
  gap: var(--space-3, 12px);
  margin-bottom: var(--space-6, 24px);
  padding-bottom: var(--space-3, 12px);
  border-bottom: 1px solid var(--border, #262626);
}

.zt-sg-vendor-title {
  font-size: var(--text-h3, 1.25rem);
  font-weight: 600;
  color: var(--text-primary, #F5F5F5);
  margin: 0;
}

.zt-sg-vendor-count-badge {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
  background: var(--bg-elevated, #1A1A1A);
  padding: 2px 8px;
  border-radius: var(--radius-full, 9999px);
}

/* Category sub-headers (Microsoft) */
.zt-sg-category {
  margin-bottom: var(--space-6, 24px);
}

.zt-sg-category-title {
  font-size: var(--zen-text-sm, 0.875rem);
  font-weight: 600;
  color: var(--text-muted, #737373);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 var(--space-3, 12px);
}

/* Card grid */
.zt-sg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-3, 12px);
}

.zt-sg-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1, 4px);
  padding: var(--space-4, 16px);
  background: var(--bg-surface, #141414);
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-md, 10px);
  text-decoration: none;
  transition: border-color var(--transition, 150ms ease-out), transform var(--transition, 150ms ease-out);
}

.zt-sg-card:hover {
  border-color: var(--accent, #818CF8);
  transform: translateY(-1px);
}

.zt-sg-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zt-sg-card-code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: var(--zen-text-sm, 0.875rem);
  font-weight: 700;
  color: var(--text-primary, #F5F5F5);
}

.zt-sg-card:hover .zt-sg-card-code {
  color: var(--accent, #818CF8);
}

.zt-sg-card-title {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-tertiary, #A3A3A3);
  line-height: 1.4;
}

.zt-sg-card-flag {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
}

@media (max-width: 640px) {
  .zt-sg-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2, 8px);
  }
}

/* ═══════════════════════════════════════════════════════════
   🌸 LICENSING READING ROOMS — Left sidebar nav + plan page styles
   ═══════════════════════════════════════════════════════════ */

/* ── Licence Navigation (Left Sidebar) ── */
.zt-lic-nav {
  font-size: var(--text-sm, 0.875rem);
}

.zt-lic-nav-header {
  display: block;
  padding: var(--space-3, 12px) var(--space-4, 16px);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  color: var(--accent, #818CF8);
  text-decoration: none;
  border-left: 3px solid var(--accent, #818CF8);
  border-bottom: 1px solid var(--border, #E5E5E5);
  transition: color var(--transition, 150ms ease-out);
}

.zt-lic-nav-header:hover {
  color: var(--accent-hover, #6366F1);
}

.zt-lic-nav-tool-link {
  display: block;
  padding: var(--space-1, 4px) var(--space-4, 16px);
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
  text-decoration: none;
  margin-bottom: var(--space-4, 16px);
  padding-bottom: var(--space-3, 12px);
  border-bottom: 1px solid var(--border, #E5E5E5);
  transition: color var(--transition, 150ms ease-out);
}

.zt-lic-nav-tool-link:hover {
  color: var(--accent, #818CF8);
}

.zt-lic-nav-group {
  margin-bottom: var(--space-1, 4px);
}

.zt-lic-nav-cat {
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
  padding: var(--space-2, 8px) var(--space-4, 16px);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  color: var(--text-secondary, #D4D4D4);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm, 6px);
  transition: background-color var(--transition, 150ms ease-out);
}

.zt-lic-nav-cat::-webkit-details-marker {
  display: none;
}

.zt-lic-nav-cat:hover {
  background: var(--accent-subtle, rgba(99,102,241,0.1));
}

.zt-lic-nav-count {
  font-size: var(--text-caption, 0.75rem);
  font-weight: 500;
  color: var(--text-muted, #737373);
  background: var(--bg-elevated, #F5F5F5);
  padding: 1px var(--space-2, 8px);
  border-radius: var(--radius-full, 9999px);
  margin-left: auto;
}

/* ── Tree View: +/− toggles and connector lines ── */
.zt-lic-nav-cat::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  line-height: 1;
  transition: color var(--transition, 150ms ease-out), border-color var(--transition, 150ms ease-out);
}
.zt-lic-nav-group[open] > .zt-lic-nav-cat::before {
  content: '−';
}
.zt-lic-nav-cat:hover::before {
  color: var(--text-secondary);
  border-color: var(--border-emphasis);
}

.zt-lic-nav-links {
  margin-left: 23px;
  padding: var(--space-1, 4px) 0 var(--space-2, 8px) var(--space-3, 12px);
  border-left: 1px solid color-mix(in srgb, var(--accent, #818CF8) 30%, transparent);
}

.zt-lic-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2, 8px);
  padding: var(--space-1, 4px) var(--space-3, 12px);
  color: var(--text-tertiary, #A3A3A3);
  text-decoration: none;
  font-size: var(--text-sm, 0.875rem);
  border-left: 2px solid transparent;
  border-radius: 0;
  transition: color var(--transition, 150ms ease-out), border-color var(--transition, 150ms ease-out), background-color var(--transition, 150ms ease-out);
}

.zt-lic-nav-link:hover {
  color: var(--text-primary, #F5F5F5);
  background: var(--accent-subtle, rgba(99,102,241,0.1));
}

.zt-lic-nav-link.active {
  color: var(--accent, #818CF8);
  font-weight: 600;
  border-left-color: var(--accent, #818CF8);
  background: var(--accent-subtle, rgba(99,102,241,0.1));
}

.zt-lic-nav-link-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.zt-lic-nav-link-price {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
  white-space: nowrap;
  flex-shrink: 0;
}

.zt-lic-nav-link.active .zt-lic-nav-link-price {
  color: var(--accent, #818CF8);
}

/* ── Licensing Reading Room — Plan page styles ── */
.zt-lic-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-muted, #737373);
  margin-bottom: var(--space-4, 16px);
  flex-wrap: wrap;
}

.zt-lic-breadcrumb a {
  color: var(--text-tertiary, #A3A3A3);
  text-decoration: none;
  transition: color var(--transition, 150ms ease-out);
}

.zt-lic-breadcrumb a:hover {
  color: var(--accent, #818CF8);
}

.zt-lic-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4, 16px);
  margin-bottom: var(--space-4, 16px);
  flex-wrap: wrap;
}

.zt-lic-price-block {
  display: flex;
  align-items: baseline;
  gap: var(--space-2, 8px);
  flex-wrap: wrap;
}

.zt-lic-price {
  font-size: var(--text-h1, 2rem);
  font-weight: 600;
  color: var(--accent, #818CF8);
  letter-spacing: -0.02em;
}

.zt-lic-price-unit {
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-muted, #737373);
}

.zt-lic-price-note {
  display: block;
  font-size: var(--text-sm, 0.875rem);
  color: var(--warning, #EAB308);
  margin-top: var(--space-1, 4px);
}

.zt-lic-badges {
  display: flex;
  gap: var(--space-2, 8px);
  flex-wrap: wrap;
}

.zt-lic-badge {
  padding: var(--space-1, 4px) var(--space-3, 12px);
  font-size: var(--text-caption, 0.75rem);
  font-weight: 600;
  color: var(--text-tertiary, #A3A3A3);
  background: var(--bg-elevated, #F5F5F5);
  border: 1px solid var(--border, #E5E5E5);
  border-radius: var(--radius-full, 9999px);
}

.zt-lic-badge--highlight {
  color: var(--accent, #818CF8);
  border-color: var(--accent, #818CF8);
  background: var(--accent-subtle, rgba(99,102,241,0.1));
}

.zt-lic-tagline {
  font-size: var(--text-body, 1rem);
  color: var(--text-secondary, #D4D4D4);
  margin-bottom: var(--space-2, 8px);
  line-height: 1.6;
}

.zt-lic-verified {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
  margin-bottom: var(--space-6, 24px);
}

/* Meta line (verified + reading time) */
.zt-lic-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
  margin-bottom: var(--space-4, 16px);
  flex-wrap: wrap;
}

/* Inline TOC — "In this guide" collapsible */
.zt-lic-toc {
  margin-bottom: var(--space-6, 24px);
  border: 1px solid var(--border, #E5E5E5);
  border-radius: var(--radius-md, 10px);
  background: var(--bg-elevated, #F5F5F5);
}

.zt-lic-toc > summary {
  padding: var(--space-3, 12px) var(--space-4, 16px);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  color: var(--text-secondary, #D4D4D4);
  cursor: pointer;
  list-style: none;
}

.zt-lic-toc > summary::-webkit-details-marker {
  display: none;
}

.zt-lic-toc > summary::before {
  content: '▸ ';
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
}

.zt-lic-toc[open] > summary::before {
  content: '▾ ';
}

.zt-lic-toc-inner {
  padding: 0 var(--space-4, 16px) var(--space-3, 12px);
}

.zt-lic-toc-inner #TableOfContents {
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.5;
}

.zt-lic-toc-inner #TableOfContents ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zt-lic-toc-inner #TableOfContents ul ul {
  padding-left: var(--space-4, 16px);
}

.zt-lic-toc-inner #TableOfContents a {
  display: block;
  padding: var(--space-1, 4px) 0;
  color: var(--text-tertiary, #A3A3A3);
  text-decoration: none;
  transition: color var(--transition, 150ms ease-out);
}

.zt-lic-toc-inner #TableOfContents a:hover {
  color: var(--accent, #818CF8);
}

.zt-lic-links {
  display: flex;
  gap: var(--space-3, 12px);
  flex-wrap: wrap;
  margin-bottom: var(--space-6, 24px);
}

.zt-lic-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2, 8px);
  padding: var(--space-2, 8px) var(--space-4, 16px);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 500;
  color: var(--text-secondary, #D4D4D4);
  background: var(--bg-elevated, #F5F5F5);
  border: 1px solid var(--border, #E5E5E5);
  border-radius: var(--radius-sm, 6px);
  text-decoration: none;
  transition: color var(--transition, 150ms ease-out), border-color var(--transition, 150ms ease-out);
}

.zt-lic-btn:hover {
  color: var(--text-primary, #F5F5F5);
  border-color: var(--border-emphasis, #D4D4D4);
}

.zt-lic-btn--primary {
  background: var(--accent, #6366F1);
  color: #fff;
  border-color: var(--accent, #6366F1);
}

.zt-lic-btn--primary:hover {
  background: var(--accent-hover, #4F46E5);
  color: #fff;
  border-color: var(--accent-hover, #4F46E5);
}

/* Related blogs in center column */
.zt-lic-related {
  margin-top: var(--space-12, 48px);
  padding-top: var(--space-8, 32px);
  border-top: 1px solid var(--border, #E5E5E5);
}

.zt-lic-related h2 {
  font-size: var(--text-h3, 1.25rem);
  font-weight: 600;
  color: var(--text-primary, #1A1A1A);
  margin-bottom: var(--space-4, 16px);
}

.zt-lic-related-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 8px);
}

.zt-lic-related-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3, 12px) var(--space-4, 16px);
  background: var(--bg-elevated, #F5F5F5);
  border: 1px solid var(--border, #E5E5E5);
  border-radius: var(--radius-sm, 6px);
  text-decoration: none;
  transition: border-color var(--transition, 150ms ease-out);
}

.zt-lic-related-link:hover {
  border-color: var(--accent, #818CF8);
}

.zt-lic-related-title {
  font-size: var(--text-sm, 0.875rem);
  font-weight: 500;
  color: var(--text-primary, #1A1A1A);
}

.zt-lic-related-date {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
  white-space: nowrap;
  margin-left: var(--space-4, 16px);
}

/* FAQ section */
.zt-lic-faq {
  margin-top: var(--space-12, 48px);
  padding-top: var(--space-8, 32px);
  border-top: 1px solid var(--border, #E5E5E5);
}

.zt-lic-faq h2 {
  font-size: var(--text-h3, 1.25rem);
  font-weight: 600;
  color: var(--text-primary, #1A1A1A);
  margin-bottom: var(--space-4, 16px);
}

.zt-lic-faq-item {
  border: 1px solid var(--border, #E5E5E5);
  border-radius: var(--radius-sm, 6px);
  margin-bottom: var(--space-2, 8px);
}

.zt-lic-faq-item > summary {
  padding: var(--space-3, 12px) var(--space-4, 16px);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  color: var(--text-primary, #1A1A1A);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition, 150ms ease-out);
}

.zt-lic-faq-item > summary::-webkit-details-marker {
  display: none;
}

.zt-lic-faq-item > summary::before {
  content: '▸ ';
  color: var(--text-muted, #737373);
  transition: transform var(--transition, 150ms ease-out);
}

.zt-lic-faq-item[open] > summary::before {
  content: '▾ ';
}

.zt-lic-faq-item > summary:hover {
  color: var(--accent, #818CF8);
}

.zt-lic-faq-item > p {
  padding: 0 var(--space-4, 16px) var(--space-3, 12px);
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-secondary, #D4D4D4);
  line-height: 1.6;
  margin: 0;
}

/* Disclaimer + attribution */
.zt-lic-disclaimer {
  margin-top: var(--space-12, 48px);
  padding: var(--space-4, 16px);
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-tertiary, #A3A3A3);
  background: var(--bg-elevated, #F5F5F5);
  border: 1px solid var(--border, #E5E5E5);
  border-left: 3px solid var(--warning, #EAB308);
  border-radius: var(--radius-sm, 6px);
  line-height: 1.6;
}

.zt-lic-disclaimer strong {
  color: var(--text-primary, #1A1A1A);
}

.zt-lic-disclaimer a {
  color: var(--accent, #818CF8);
  text-decoration: none;
}

.zt-lic-disclaimer a:hover {
  text-decoration: underline;
}

.zt-lic-attribution {
  margin-top: var(--space-4, 16px);
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
  text-align: center;
}

.zt-lic-attribution a {
  color: var(--accent, #818CF8);
  text-decoration: none;
}

.zt-lic-attribution a:hover {
  text-decoration: underline;
}

/* ── Responsive: licensing reading room ── */
@media (max-width: 1024px) {
  .zt-reading--lic .zt-sidebar--lic {
    display: none;
  }
  .zt-reading--lic .zt-companion {
    display: none;
  }
  .zt-reading--lic {
    grid-template-columns: 1fr;
  }
  .zt-lic-header {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════════════════════
   🌸 LICENSING LANDING PAGE — /licensing-docs/ card grid
   ═══════════════════════════════════════════════════════════ */

.zt-lic-landing {
  padding-bottom: var(--space-16, 64px);
}

/* Category quick-jump pills */
.zt-lic-pills {
  display: flex;
  gap: var(--space-2, 8px);
  flex-wrap: wrap;
  margin-bottom: var(--space-8, 32px);
  padding-bottom: var(--space-4, 16px);
  border-bottom: 1px solid var(--border, #E5E5E5);
}

.zt-lic-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1, 4px);
  padding: var(--space-1, 4px) var(--space-3, 12px);
  font-size: var(--text-caption, 0.75rem);
  font-weight: 500;
  color: var(--text-tertiary, #A3A3A3);
  background: var(--bg-elevated, #F5F5F5);
  border: 1px solid var(--border, #E5E5E5);
  border-radius: var(--radius-full, 9999px);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition, 150ms ease-out), border-color var(--transition, 150ms ease-out), background-color var(--transition, 150ms ease-out);
}

.zt-lic-pill:hover {
  color: var(--accent, #818CF8);
  border-color: var(--accent, #818CF8);
  background: var(--accent-subtle, rgba(99,102,241,0.1));
}

@media (max-width: 640px) {
  .zt-lic-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-3, 12px);
  }
  .zt-lic-pills::-webkit-scrollbar { display: none; }
}

.zt-lic-cat-section {
  margin-bottom: var(--space-12, 48px);
}

.zt-lic-cat-header {
  display: flex;
  align-items: center;
  gap: var(--space-3, 12px);
  margin-bottom: var(--space-6, 24px);
}

.zt-lic-cat-title {
  font-size: var(--text-h3, 1.25rem);
  font-weight: 600;
  color: var(--text-primary, #1A1A1A);
  margin: 0;
}
.zt-lic-cat-title svg,
.zt-lic-pill svg,
.zt-lic-nav-header svg,
.zt-lic-nav-tool-link svg,
.zt-lic-nav-cat svg {
  display: inline-block;
  vertical-align: -2px;
  flex-shrink: 0;
}

.zt-lic-cat-count {
  font-size: var(--text-caption, 0.75rem);
  font-weight: 500;
  color: var(--text-muted, #737373);
  background: var(--bg-elevated, #F5F5F5);
  padding: 2px var(--space-2, 8px);
  border-radius: var(--radius-full, 9999px);
}

.zt-lic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4, 16px);
}

.zt-lic-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1, 4px);
  padding: var(--space-4, 16px);
  background: var(--bg-surface, #FFFFFF);
  border: 1px solid var(--border, #E5E5E5);
  border-radius: var(--radius-md, 10px);
  text-decoration: none;
  transition: border-color var(--transition, 150ms ease-out);
}

.zt-lic-card:hover {
  border-color: var(--accent, #818CF8);
}

.zt-lic-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2, 8px);
}

.zt-lic-card-code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  color: var(--text-primary, #1A1A1A);
  line-height: 1.3;
}
.zt-lic-card:hover .zt-lic-card-code {
  color: var(--accent, #818CF8);
}

.zt-lic-card-name {
  font-size: var(--text-caption, 0.75rem);
  font-weight: 400;
  color: var(--text-tertiary, #A3A3A3);
  line-height: 1.3;
}

/* Big number card variant */
.zt-lic-card-bignum {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent, #818CF8);
  line-height: 1;
}
.zt-lic-card-biglabel {
  font-size: 0.65rem;
  color: var(--text-muted, #737373);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: -2px;
}

/* Split-line card variant */
.zt-lic-card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2, 8px);
}
.zt-lic-card-value {
  font-size: var(--text-caption, 0.75rem);
  white-space: nowrap;
  color: var(--text-muted, #737373);
}
.zt-lic-card-qs {
  font-weight: 600;
  color: var(--accent, #818CF8);
}
.zt-lic-card-price {
  font-weight: 500;
  color: var(--success, #10B981);
}

.zt-lic-card-bottom {
  display: flex;
  align-items: center;
  gap: var(--space-2, 8px);
  margin-top: var(--space-1, 4px);
}

.zt-lic-card-meta {
  font-size: var(--text-caption, 0.75rem);
  font-weight: 600;
  color: var(--accent, #818CF8);
}

.zt-lic-card-badge {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 1px var(--space-2, 8px);
  border-radius: var(--radius-full, 9999px);
  white-space: nowrap;
}
.zt-lic-card-badge--guide {
  color: var(--text-muted, #737373);
  background: var(--bg-elevated, #1A1A1A);
  border: 1px solid var(--border, #262626);
}
.zt-lic-card-badge--soon {
  color: #F59E0B;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.3);
}

@media (max-width: 640px) {
  .zt-lic-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2, 8px);
  }
  .zt-lic-card {
    padding: var(--space-3, 12px);
    /* min-width: 0 lets the grid track shrink below content min-width;
       word-break on the slug text lets long codes like
       "paloalto-netsec-professional" wrap inside the card instead of
       pushing the grid track past viewport (was 37px overflow at 375). */
    min-width: 0;
  }
  .zt-lic-card-code, .zt-lic-card-name {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ──────────────────────────────────────────
   🎬 VIDEO READING ROOMS
   Video-specific classes for cards, embeds,
   tags, related, and attribution.
   Reuses zt-reading grid + zt-lic nav.
   ────────────────────────────────────────── */

/* Video grid modifier */
.zt-reading--vid { /* inherits from zt-reading grid */ }
.zt-sidebar--vid { /* inherits from zt-sidebar */ }

/* Video card */
.zt-vid-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-surface, #FAFAFA);
  border: 1px solid var(--border, #E5E5E5);
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}
.zt-vid-card:hover {
  border-color: var(--border-emphasis, #D4D4D4);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.zt-vid-card-thumb {
  width: 100%;
  border-radius: var(--radius-sm, 6px) var(--radius-sm, 6px) 0 0;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.zt-vid-card-body {
  padding: var(--space-3, 12px);
}
.zt-vid-card-name {
  display: block;
  font-weight: 500;
  font-size: var(--text-sm, 0.875rem);
  line-height: 1.4;
  color: var(--text-primary, #171717);
}
.zt-vid-card-tagline {
  display: block;
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #A3A3A3);
  margin-top: var(--space-1, 4px);
}

/* Video grid (reuses zt-lic-grid layout) */
.zt-vid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4, 16px);
  margin-bottom: var(--space-6, 24px);
}

/* Video landing page */
.zt-vid-landing { /* inherits zt-reading-content */ }
.zt-vid-backlink {
  color: var(--accent, #6366F1);
  text-decoration: none;
}
.zt-vid-backlink:hover {
  text-decoration: underline;
}
.zt-vid-no-results {
  display: none;
  text-align: center;
  color: var(--text-muted, #A3A3A3);
  padding: var(--space-8, 32px) 0;
  font-size: var(--text-sm, 0.875rem);
}
.zt-vid-no-results[hidden] { display: none; }
.zt-vid-cat-section[hidden] { display: none; }

/* Video embed (16:9 responsive) */
.zt-vid-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--border, #E5E5E5);
  margin-bottom: var(--space-6, 24px);
}
.zt-vid-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Video meta line */
.zt-vid-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2, 8px);
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-secondary, #525252);
  margin-bottom: var(--space-4, 16px);
}

/* Video tags */
.zt-vid-tags {
  margin-top: var(--space-8, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2, 8px);
}
.zt-vid-tag {
  padding: 2px var(--space-3, 12px);
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-tertiary, #737373);
  background: var(--bg-elevated, #F5F5F5);
  border: 1px solid var(--border, #E5E5E5);
  border-radius: var(--radius-full, 9999px);
}

/* Video related section */
.zt-vid-related {
  margin-top: var(--space-8, 32px);
  padding-top: var(--space-6, 24px);
  border-top: 1px solid var(--border, #E5E5E5);
}
.zt-vid-related h2 {
  font-size: var(--text-base, 1rem);
  font-weight: 600;
  margin-bottom: var(--space-4, 16px);
  color: var(--text-primary, #171717);
}
.zt-vid-related-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2, 8px);
}
.zt-vid-related-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2, 8px) var(--space-3, 12px);
  border-radius: var(--radius-sm, 6px);
  text-decoration: none;
  color: inherit;
  transition: background 200ms ease-out;
}
.zt-vid-related-link:hover {
  background: var(--bg-elevated, #F5F5F5);
}
.zt-vid-related-title {
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-primary, #171717);
}
.zt-vid-related-date {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #A3A3A3);
  white-space: nowrap;
}

/* Video attribution */
.zt-vid-attribution {
  margin-top: var(--space-8, 32px);
  padding-top: var(--space-4, 16px);
  border-top: 1px solid var(--border, #E5E5E5);
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #A3A3A3);
}
.zt-vid-attribution a {
  color: var(--accent, #6366F1);
  text-decoration: none;
}
.zt-vid-attribution a:hover {
  text-decoration: underline;
}

/* Breadcrumb (shared pattern) */
.zt-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2, 8px);
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #A3A3A3);
  margin-bottom: var(--space-4, 16px);
}
.zt-breadcrumb a {
  color: var(--text-secondary, #525252);
  text-decoration: none;
}
.zt-breadcrumb a:hover {
  color: var(--accent, #6366F1);
}

/* Mobile adjustments for video cards */
@media (max-width: 480px) {
  .zt-vid-grid {
    grid-template-columns: 1fr;
  }
  .zt-vid-card-tagline {
    display: none;
  }
}

/* ──────────────────────────────────────────
   🧰 FREE TOOLS READING ROOM
   Override reading-content padding for the
   wider card grids used on the tools page.
   ────────────────────────────────────────── */
.zt-reading--tools .zt-reading-content {
  padding: var(--space-6, 24px) var(--space-8, 32px) var(--space-12, 48px);
}
.zt-tools-landing .ft-tools-body {
  max-width: none;
}
/* Make the container inside tools page transparent to the grid */
.zt-tools-landing .container {
  max-width: none;
  padding: 0;
}

/* ──────────────────────────────────────────
   🏠 ZEN HOMEPAGE — The river
   One truth per section. Maximum breathing room.
   ────────────────────────────────────────── */
.zh {
  max-width: var(--max-reading, 720px);
  margin: 0 auto;
  padding: 0 var(--space-6, 24px);
}

/* Welcome */
.zh-welcome {
  padding: var(--space-16, 64px) 0 var(--space-12, 48px);
  text-align: center;
}
.zh-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary, #171717);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 var(--space-4, 16px);
}
.zh-subtitle {
  font-size: var(--text-lg, 1.125rem);
  color: var(--text-secondary, #525252);
  line-height: 1.7;
  margin: 0 0 var(--space-4, 16px);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.zh-badge {
  display: inline-block;
  font-size: var(--text-caption, 0.75rem);
  font-weight: 500;
  color: var(--text-tertiary, #737373);
  padding: var(--space-1, 4px) var(--space-3, 12px);
  background: var(--bg-elevated, #F5F5F5);
  border: 1px solid var(--border, #E5E5E5);
  border-radius: var(--radius-full, 9999px);
}
.zh-audience {
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-muted, #A3A3A3);
  margin: var(--space-3, 12px) 0 0;
}

/* Pathways — individual cards with gaps */
.zh-pathways {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
  margin-bottom: var(--space-16, 64px);
}
.zh-path {
  display: flex;
  align-items: center;
  gap: var(--space-4, 16px);
  padding: var(--space-6, 24px) var(--space-8, 32px);
  background: var(--bg-surface, #FAFAFA);
  border: 1px solid var(--border, #E5E5E5);
  border-radius: var(--radius-md, 10px);
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}
.zh-path:hover {
  border-color: var(--accent, #6366F1);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.08);
}
.zh-path-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--text-primary, #171717);
  background: var(--bg-elevated, #F5F5F5);
  border-radius: var(--radius-sm, 6px);
}
.zh-path-text {
  flex: 1;
  min-width: 0;
}
.zh-path-label {
  display: block;
  font-size: var(--text-body, 1rem);
  font-weight: 600;
  color: var(--text-primary, #171717);
  margin-bottom: var(--space-1, 4px);
}
.zh-path-desc {
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-secondary, #525252);
  line-height: 1.5;
  flex: 1;
}
.zh-path-go {
  font-size: 1.25rem;
  color: var(--text-muted, #A3A3A3);
  transition: color 200ms ease-out, transform 200ms ease-out;
  flex-shrink: 0;
}
.zh-path:hover .zh-path-go {
  color: var(--accent, #6366F1);
  transform: translateX(4px);
}
/* Highlighted keywords inside cards */
.zh-hl {
  font-style: normal;
  color: var(--accent, #6366F1);
  font-weight: 600;
}

/* Nudge — "not sure where to start?" */
.zh-nudge {
  text-align: center;
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-muted, #A3A3A3);
  margin: var(--space-4, 16px) 0 var(--space-16, 64px);
}
.zh-nudge a {
  color: var(--accent, #6366F1);
  text-decoration: none;
}
.zh-nudge a:hover {
  text-decoration: underline;
}

/* Practice Exams card — subtle distinction as the paid offering */
.zh-path[href*="guided"] {
  border-left: 3px solid var(--accent, #6366F1);
}

/* Section titles */
.zh-section-title {
  font-size: var(--text-lg, 1.125rem);
  font-weight: 600;
  color: var(--text-primary, #171717);
  margin: 0 0 var(--space-6, 24px);
  letter-spacing: -0.01em;
}

/* Latest */
.zh-latest {
  margin-bottom: var(--space-16, 64px);
}
.zh-latest-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border, #E5E5E5);
  border: 1px solid var(--border, #E5E5E5);
  border-radius: var(--radius-md, 10px);
  overflow: hidden;
}
.zh-latest-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-4, 16px);
  padding: var(--space-4, 16px) var(--space-6, 24px);
  background: var(--bg-surface, #FAFAFA);
  text-decoration: none;
  color: inherit;
  transition: background 200ms ease-out;
}
.zh-latest-item:hover {
  background: var(--bg-elevated, #F5F5F5);
}
.zh-latest-date {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #A3A3A3);
  white-space: nowrap;
  min-width: 90px;
}
.zh-latest-title {
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-primary, #171717);
  font-weight: 500;
}
.zh-latest-item:hover .zh-latest-title {
  color: var(--accent, #6366F1);
}

/* Voices */
.zh-voices {
  margin-bottom: var(--space-16, 64px);
}
.zh-voices-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 16px);
}
.zh-voice {
  margin: 0;
  padding: var(--space-6, 24px);
  background: var(--bg-surface, #FAFAFA);
  border: 1px solid var(--border, #E5E5E5);
  border-radius: var(--radius-md, 10px);
}
.zh-voice p {
  margin: 0 0 var(--space-2, 8px);
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-primary, #171717);
  line-height: 1.6;
  font-style: italic;
}
.zh-voice cite {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #A3A3A3);
  font-style: normal;
}

/* Newsletter */
.zh-newsletter {
  text-align: center;
  margin-bottom: var(--space-16, 64px);
  padding: var(--space-8, 32px);
  background: var(--bg-surface, #FAFAFA);
  border: 1px solid var(--border, #E5E5E5);
  border-radius: var(--radius-md, 10px);
}
.zh-newsletter-desc {
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-secondary, #525252);
  margin: 0 0 var(--space-4, 16px);
}
.zh-newsletter-form {
  display: flex;
  gap: var(--space-2, 8px);
  max-width: 400px;
  margin: 0 auto var(--space-3, 12px);
}
.zh-newsletter-input {
  flex: 1;
  padding: var(--space-2, 8px) var(--space-4, 16px);
  border: 1px solid var(--border, #E5E5E5);
  border-radius: var(--radius-md, 10px);
  background: var(--bg-page, #FFFFFF);
  color: var(--text-primary, #171717);
  font-size: var(--text-sm, 0.875rem);
}
.zh-newsletter-input:focus {
  outline: none;
  border-color: var(--accent, #6366F1);
}
.zh-newsletter-btn {
  padding: var(--space-2, 8px) var(--space-6, 24px);
  background: var(--accent, #6366F1);
  color: #fff;
  border: none;
  border-radius: var(--radius-md, 10px);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease-out;
}
.zh-newsletter-btn:hover { background: var(--accent-hover, #4F46E5); }
.zh-newsletter-trust {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #A3A3A3);
  margin: 0;
}
.zh-newsletter-success p {
  font-size: var(--text-sm, 0.875rem);
  color: var(--success, #10B981);
  margin: 0;
}

/* Who */
.zh-who {
  text-align: center;
  padding: var(--space-12, 48px) 0 var(--space-16, 64px);
  border-top: 1px solid var(--border, #E5E5E5);
}
.zh-who-text {
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-secondary, #525252);
  margin: 0 0 var(--space-4, 16px);
}
.zh-who-text a {
  color: var(--text-primary, #171717);
  font-weight: 600;
  text-decoration: none;
}
.zh-who-text a:hover {
  color: var(--accent, #6366F1);
}
.zh-who-links {
  display: flex;
  justify-content: center;
  gap: var(--space-6, 24px);
}
.zh-who-links a {
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-muted, #A3A3A3);
  text-decoration: none;
  transition: color 200ms ease-out;
}
.zh-who-links a:hover {
  color: var(--accent, #6366F1);
}

/* Mobile */
@media (max-width: 640px) {
  .zh-title { font-size: 1.75rem; }
  .zh-welcome { padding: var(--space-12, 48px) 0 var(--space-8, 32px); }
  .zh-path {
    flex-wrap: wrap;
    gap: var(--space-3, 12px);
  }
  .zh-path-go { display: none; }
  .zh-latest-item { flex-direction: column; gap: var(--space-1, 4px); }
  .zh-latest-date { min-width: auto; }
}

/* Hide site name text in nav — logo icon is enough */
.site-logo-text { display: none; }

/* ──────────────────────────────────────────
   👤 ABOUT PAGE
   Hero card, timeline, Zen tokens.
   ────────────────────────────────────────── */
.zt-about-hero {
  display: flex;
  align-items: center;
  gap: var(--space-6, 24px);
  padding: var(--space-6, 24px);
  background: var(--bg-surface, #FAFAFA);
  border: 1px solid var(--border, #E5E5E5);
  border-radius: var(--radius-lg, 16px);
  margin-bottom: var(--space-8, 32px);
}
.zt-about-photo-wrap { flex-shrink: 0; }
.zt-about-headshot {
  width: 140px;
  height: 140px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  border: 3px solid var(--border-emphasis, #D4D4D4);
}
.zt-about-name {
  font-size: var(--text-h2, 1.5rem);
  font-weight: 600;
  color: var(--text-primary, #171717);
  margin: 0 0 var(--space-1, 4px);
  line-height: 1.3;
}
.zt-about-role {
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-secondary, #525252);
  margin: 0 0 var(--space-4, 16px);
}
.zt-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2, 8px);
}
.zt-about-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1, 4px);
  padding: var(--space-2, 8px) var(--space-4, 16px);
  background: var(--accent, #6366F1);
  color: #fff;
  border-radius: var(--radius-md, 10px);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  text-decoration: none;
  transition: background 200ms ease-out;
}
.zt-about-btn:hover { background: var(--accent-hover, #4F46E5); }
.zt-about-btn--secondary {
  background: var(--bg-elevated, #F5F5F5);
  color: var(--text-primary, #171717);
  border: 1px solid var(--border, #E5E5E5);
}
.zt-about-btn--secondary:hover {
  background: var(--bg-surface, #FAFAFA);
  border-color: var(--accent, #6366F1);
  color: var(--accent, #6366F1);
}

/* Timeline */
.zt-timeline {
  position: relative;
  padding-left: var(--space-6, 24px);
  border-left: 2px solid var(--border, #E5E5E5);
  margin: var(--space-4, 16px) 0 var(--space-8, 32px);
}
.zt-timeline-item {
  margin-bottom: var(--space-6, 24px);
  position: relative;
}
.zt-timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-6, 24px) - 5px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-emphasis, #D4D4D4);
  border: 2px solid var(--bg-page, #FAFAFA);
}
.zt-timeline-item--current::before {
  background: var(--accent, #6366F1);
}
.zt-timeline-date {
  display: block;
  font-size: var(--text-caption, 0.75rem);
  font-weight: 600;
  color: var(--text-muted, #A3A3A3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.zt-timeline-role {
  display: block;
  font-size: var(--text-body, 1rem);
  font-weight: 600;
  color: var(--text-primary, #171717);
  margin: var(--space-1, 4px) 0;
}
.zt-timeline-company {
  display: block;
  font-size: var(--text-sm, 0.875rem);
  color: var(--accent, #6366F1);
  font-weight: 500;
}
.zt-timeline-desc {
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-secondary, #525252);
  margin-top: var(--space-1, 4px);
  line-height: 1.6;
}

@media (max-width: 500px) {
  .zt-about-hero {
    flex-direction: column;
    text-align: center;
  }
  .zt-about-actions { justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════
   🧰 ZEN TOOL PAGES — Universal tool page styles
   Merged from zt-tools.css (Polish Phase 8).
   Tab selectors use specificity 0,3,0+ to override per-tool CSS
   regardless of source order.
   ═══════════════════════════════════════════════════════════ */

/* ── Page wrapper — marker class for tab/FAQ scoping ──
   Uses Zen --max-page for comfortable wide layout. */
.zt-page {
  max-width: var(--max-page, 1320px);
  margin: 0 auto;
  padding: 0 var(--space-8, 32px) var(--space-12, 48px);
}

/* ── Header: title + counter + subtitle ── */
.zt-header {
  margin-bottom: 20px;
  padding-top: 24px;
}

.zt-header-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.zt-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.zt-subtitle {
  color: var(--text-secondary, #a3a3a3);
  font-size: 0.875rem;
  margin: 4px 0 0;
  line-height: 1.4;
  max-width: 640px;
}

/* Counter — keeps .tool-counter class for JS compatibility */
.zt-header .tool-counter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  font-size: 0.75rem;
  color: var(--text-tertiary, #a3a3a3);
  background: var(--bg-elevated, #1a1a1a);
  border: 1px solid var(--border, #262626);
  border-radius: 999px;
}

.zt-header .tool-counter-num {
  font-weight: 700;
  color: var(--accent, #818CF8);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
}

.zt-header .tool-counter-verb {
  opacity: 0.7;
  margin-left: 0;
}

/* ── Tabs — underline style via ARIA selectors ──
   Specificity 0,3,0 beats per-tool class selectors (0,1,0). */
.zt-page [role="tablist"] {
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0 0 24px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border, #262626);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.zt-page [role="tablist"]::-webkit-scrollbar {
  display: none;
}

.zt-page [role="tablist"] > [role="tab"] {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  outline: none;
  flex: none;
  text-align: left;
  min-width: auto;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-tertiary, #a3a3a3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease-out, border-color 150ms ease-out;
  white-space: nowrap;
  flex-shrink: 0;
}

.zt-page [role="tablist"] > [role="tab"]:hover {
  color: var(--text-primary, #fff);
}

/* Active tab — targets both ARIA attribute and .active class */
.zt-page [role="tablist"] > [role="tab"][aria-selected="true"],
.zt-page [role="tablist"] > [role="tab"].active {
  color: var(--accent, #818CF8);
  border-bottom-color: var(--accent, #818CF8);
  background: transparent;
  box-shadow: none;
  font-weight: 600;
}

/* Tab emoji/icon spans — subtle, not dominant */
.zt-page [role="tab"] .cpmatrix-tab-emoji,
.zt-page [role="tab"] [class*="-tab-emoji"],
.zt-page [role="tab"] [class*="-tab-icon"] {
  margin-right: 4px;
}

/* ── FAQ — collapsed at bottom ── */
.zt-faq {
  margin-top: 48px;
  border-top: 1px solid var(--border, #262626);
  padding-top: 24px;
}

.zt-faq > summary {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  cursor: pointer;
  padding: 8px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.zt-faq > summary::-webkit-details-marker {
  display: none;
}

.zt-faq > summary::before {
  content: '▸';
  display: inline-block;
  transition: transform 150ms ease-out;
  font-size: 0.875rem;
  color: var(--text-tertiary, #a3a3a3);
}

.zt-faq[open] > summary::before {
  transform: rotate(90deg);
}

.zt-faq-list {
  max-width: 720px;
  padding-top: 16px;
}

.zt-faq-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border, #262626);
}

.zt-faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.zt-faq-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin: 0 0 6px;
  line-height: 1.4;
}

.zt-faq-item p {
  font-size: 0.875rem;
  color: var(--text-secondary, #a3a3a3);
  line-height: 1.6;
  margin: 0;
}

/* ── Bottom nav ── */
.zt-nav {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #262626);
  display: flex;
  justify-content: center;
}

.zt-nav a {
  font-size: 0.8125rem;
  color: var(--text-tertiary, #a3a3a3);
  text-decoration: none;
  transition: color 150ms ease-out;
}

.zt-nav a:hover {
  color: var(--accent, #818CF8);
}

/* ── Tool-page mobile adjustments ── */
@media (max-width: 768px) {
  .zt-title {
    font-size: 1.25rem;
  }

  .zt-header-row {
    gap: 8px;
  }

  .zt-page [role="tablist"] > [role="tab"] {
    padding: 8px 12px;
    font-size: 0.8125rem;
  }
}

/* ── Shared FAQ classes (used by template FAQ sections) ── */
.zt-faq-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}
.zt-faq-heading {
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary, #fff);
  margin-bottom: 1rem;
}
.zt-faq-detail {
  background: var(--bg-elevated, #1a1a1a);
  border: 1px solid var(--border, #262626);
  border-radius: 10px;
  margin-bottom: 0.75rem;
}
.zt-faq-summary {
  color: var(--accent, #818CF8);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
}
.zt-faq-summary::-webkit-details-marker { display: none; }
.zt-faq-answer {
  color: var(--text-secondary, #a3a3a3);
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 0 1.25rem 1rem;
  margin: 0;
}

/* ── Shared accent link class ── */
.zt-accent-link {
  color: var(--accent, #818CF8);
  font-weight: 600;
  text-decoration: none;
}
.zt-accent-link:hover {
  text-decoration: underline;
}


/* ── Tool DETAIL pages (baseof.html wrapping, uses .zt-reading grid) ── */
.zt-reading--tool-detail .zt-reading-content {
  min-width: 0;
}
.zt-reading--tool-detail .zt-reading-content .zt-page {
  max-width: none;
  min-width: 0;
  margin: 0;
}
.zt-reading--tool-detail .zt-reading-content [class*="-container"],
.zt-reading--tool-detail .zt-reading-content [class*="-page"],
.zt-reading--tool-detail .zt-reading-content [class*="-wrap"] {
  max-width: none;
}

/* ──────────────────────────────────────────
   🌸 Hub pages — shared Zen patterns (added 3 May 2026)
   Belief intro + voice + featured row + disclosure.
   Used by: study-guides, licensing-docs, blog, free-tools, videos, /guided/explore/
   ────────────────────────────────────────── */

/* Belief subtitle — the warmth-before-the-catalog line */
.zt-hub-intro {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: var(--space-2, 8px) 0 var(--space-6, 24px);
  max-width: 640px;
}
.zt-hub-intro em {
  font-style: normal;
  color: var(--text-primary);
  font-weight: 500;
}
.zt-hub-intro strong {
  color: var(--text-primary);
  font-weight: 600;
}
.zt-hub-intro a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: var(--accent-subtle);
  text-underline-offset: 2px;
  transition: text-decoration-color 150ms ease-out;
}
.zt-hub-intro a:hover { text-decoration-color: var(--accent); }

/* Voice — testimonial pull-quote (echoes homepage .zh-pull) */
.zt-hub-voice {
  margin: 0 0 var(--space-8, 32px);
  padding: 0 0 0 var(--space-6, 24px);
  border-left: 2px solid var(--accent);
  max-width: 640px;
}
.zt-hub-voice-quote {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0 0 var(--space-2, 8px);
  letter-spacing: -0.01em;
}
.zt-hub-voice-quote::before { content: "\201C"; color: var(--accent); margin-right: 2px; }
.zt-hub-voice-quote::after  { content: "\201D"; color: var(--accent); margin-left: 2px; }
.zt-hub-voice-cite {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-tertiary);
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2, 8px);
}
.zt-hub-voice-cite::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--border);
  display: inline-block;
}

/* Featured row — "Where to start" / "Most useful" / "Most watched" pinned above the catalog */
.zt-hub-featured {
  margin: 0 0 var(--space-8, 32px);
  padding-bottom: var(--space-6, 24px);
  border-bottom: 1px solid var(--border);
}
.zt-hub-featured-label {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-3, 12px);
  font-weight: 500;
}

/* Small disclosure / footnote line under header */
.zt-hub-disclosure {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted);
  margin: var(--space-2, 8px) 0 var(--space-4, 16px);
}

@media (max-width: 768px) {
  .zt-hub-intro { font-size: 0.9375rem; }
  .zt-hub-voice-quote { font-size: 1rem; }
}
/* ──────────────────────────────────────────
   📱 Hub pages — mobile refinement (3 May 2026)
   Casual mobile visitor sees: belief + voice + featured + simple list.
   Power-user filter clutter scrolls horizontally instead of wrapping.
   ────────────────────────────────────────── */

/* Tighter voice quote on narrow viewports — reclaim left padding */
@media (max-width: 640px) {
  .zt-hub-voice {
    padding-left: var(--space-4, 16px);
    margin-bottom: var(--space-6, 24px);
  }
  .zt-hub-voice-quote {
    font-size: 0.9375rem;
    line-height: 1.45;
  }
  .zt-hub-intro {
    margin-bottom: var(--space-4, 16px);
  }
  .zt-hub-featured {
    margin-bottom: var(--space-6, 24px);
    padding-bottom: var(--space-4, 16px);
  }
  .zt-hub-featured-label {
    margin-bottom: var(--space-2, 8px);
  }
}

/* Blog filter pills — horizontal scroll on mobile (matches .zt-lic-pills behaviour) */
@media (max-width: 640px) {
  .zt-blog-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-3, 12px);
  }
  .zt-blog-filters::-webkit-scrollbar { display: none; }
  .zt-blog-filter {
    flex-shrink: 0;
  }
}

/* Newsletter form — stack input + button on narrow */
@media (max-width: 480px) {
  .zh-newsletter-form {
    flex-direction: column;
    gap: var(--space-2, 8px);
  }
  .zh-newsletter-input,
  .zh-newsletter-btn {
    width: 100%;
  }
}

/* Featured row video grid — single column on narrowest (mirrors regular .zt-vid-grid mobile rule) */
@media (max-width: 480px) {
  .zt-hub-featured .zt-vid-grid {
    grid-template-columns: 1fr;
  }
}