/* ═══════════════════════════════════════════════════════════
   🌸 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: 0.6875rem;
  line-height: 1.4;
}

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

.zt-toc #TableOfContents > ul > li {
  margin-bottom: 1px;
}

.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: 2px 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-3, 12px) 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 + section break */
.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: 3.5em;
  margin-bottom: 0.75em;
  padding-top: var(--space-6, 24px);
  padding-bottom: 0;
  border-top: 1px solid var(--border, #262626);
  border-bottom: none;
  border-left: 3px solid var(--accent, #818CF8);
  padding-left: var(--space-3, 12px);
  scroll-margin-top: 5rem;
}

/* First h2 doesn't need the top separator */
.zt-reading-body h2:first-of-type {
  margin-top: 1.5em;
  padding-top: 0;
  border-top: none;
}

/* Section intro — first paragraph after h2 gets higher contrast */
.zt-reading-body h2 + p {
  font-size: 1.05em;
  color: var(--text-primary, #F5F5F5);
  line-height: 1.7;
  margin-bottom: 1.5em;
}

.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;
}

/* Heading anchor links — # appears on hover */
.heading-anchor {
  opacity: 0;
  color: var(--text-muted, #737373);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.75em;
  margin-left: 0.4em;
  transition: opacity 0.15s;
  vertical-align: middle;
}
.zt-reading-body h2:hover .heading-anchor,
.zt-reading-body h3:hover .heading-anchor,
.zt-reading-body h4:hover .heading-anchor,
.heading-anchor:focus {
  opacity: 1;
}
.heading-anchor:hover {
  color: var(--accent, #818CF8);
}

/* Code block copy button */
.code-copy-btn {
  position: absolute;
  top: var(--space-2, 8px);
  right: var(--space-2, 8px);
  background: var(--bg-elevated, #1A1A1A);
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-sm, 6px);
  color: var(--text-muted, #737373);
  font-size: 0.7rem;
  padding: 3px 8px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, border-color 0.15s;
}
pre:hover .code-copy-btn { opacity: 1; }
.code-copy-btn:hover {
  color: var(--accent, #818CF8);
  border-color: var(--accent, #818CF8);
}
.code-copy-btn.copied {
  color: var(--success, #22C55E);
  border-color: var(--success, #22C55E);
  opacity: 1;
}

/* TOC active section highlight */
.zt-toc a.toc-active,
.zt-toc-mobile a.toc-active {
  color: var(--accent, #818CF8);
  font-weight: 600;
}

/* 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 ul li::marker {
  color: var(--accent, #818CF8);
}

.zt-reading-body ol li::marker {
  color: var(--accent, #818CF8);
  font-weight: 600;
}

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

.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: 500px;
  border-collapse: collapse;
  margin: 0;
  font-size: var(--zen-text-sm, 0.875rem);
}

/* Prevent column headers from breaking mid-word */
.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);
  white-space: nowrap;
}

.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);
  line-height: 1.6;
  min-width: 100px;
}

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

/* Zebra striping for readability */
.zt-reading-body tbody tr:nth-child(even) td {
  background: var(--bg-elevated, #1A1A1A);
}

/* First column as label — bolder for scanning */
.zt-reading-body td:first-child {
  color: var(--text-primary, #F5F5F5);
  font-weight: 500;
}

/* ── Mobile table → stacked cards ── */
@media (max-width: 640px) {
  .zt-table-wrap {
    border: none;
    border-radius: 0;
    overflow: visible;
  }
  .zt-table-wrap table,
  .zt-reading-body > table {
    min-width: 0;
  }
  .zt-table-wrap thead,
  .zt-reading-body > table > thead {
    display: none;
  }
  .zt-table-wrap tbody tr,
  .zt-reading-body > table > tbody > tr {
    display: block;
    background: var(--bg-elevated, #1A1A1A);
    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-3, 12px);
  }
  .zt-table-wrap td,
  .zt-reading-body > table > tbody > tr > td {
    display: block;
    padding: var(--space-1, 4px) 0;
    border-bottom: none;
    font-size: var(--zen-text-sm, 0.875rem);
    line-height: 1.5;
  }
  .zt-table-wrap td:first-child,
  .zt-reading-body > table > tbody > tr > td:first-child {
    font-weight: 600;
    color: var(--accent, #818CF8);
    font-size: 0.8rem;
    padding-bottom: var(--space-1, 4px);
  }
  .zt-table-wrap td:first-child::after {
    content: '';
  }
  /* Zebra off on mobile — cards have their own bg */
  .zt-reading-body tbody tr:nth-child(even) td {
    background: transparent;
  }
}

/* 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;
}

/* Image captions */
.zt-reading-body figure {
  margin: 1.5em 0;
}
.zt-reading-body figure img {
  margin: 0 0 var(--space-2, 8px);
}
.zt-reading-body figcaption {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
  text-align: center;
  line-height: 1.5;
}

/* ── 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;
}

/* Post Trio Navigator — three-post navigation strip at top of related blog posts (Zen) */
.zt-reading-body .post-trio {
  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-5, 20px) 0 var(--space-6, 24px);
  color: var(--text-secondary, #D4D4D4);
  max-width: var(--max-reading, 720px);
}
.zt-reading-body .post-trio strong { color: var(--text-primary, #F5F5F5); }
.zt-reading-body .post-trio a { color: var(--accent, #818CF8); }
.zt-reading-body .post-trio ul { margin: 0.5rem 0 0; padding-left: 1.4rem; }
.zt-reading-body .post-trio li { margin-bottom: 0.4rem; }

/* Prompt cards (blockquotes) — Zen version with copy affordance */
.zt-reading-body .prompt-cards {
  position: relative;
  margin: var(--space-4, 16px) 0;
}
.zt-reading-body .prompt-cards::before {
  content: 'Prompt';
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent, #818CF8);
  margin-bottom: var(--space-1, 4px);
}
.zt-reading-body .prompt-cards blockquote {
  border-left: 3px solid var(--accent, #818CF8);
  background: var(--accent-subtle, rgba(99,102,241,0.06));
  border-radius: 0 var(--radius-sm, 6px) var(--radius-sm, 6px) 0;
  padding: var(--space-3, 12px) var(--space-4, 16px);
  padding-right: var(--space-12, 48px);
  margin: 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; }

/* Copy button — injected by JS */
.prompt-copy-btn {
  position: absolute;
  top: var(--space-6, 24px);
  right: var(--space-2, 8px);
  background: var(--bg-elevated, #1A1A1A);
  border: 1px solid var(--border, #262626);
  border-radius: var(--radius-sm, 6px);
  color: var(--text-muted, #737373);
  font-size: 0.7rem;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.prompt-copy-btn:hover {
  color: var(--accent, #818CF8);
  border-color: var(--accent, #818CF8);
}
.prompt-copy-btn.copied {
  color: var(--success, #22C55E);
  border-color: var(--success, #22C55E);
}

/* 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: 2px var(--space-2, 8px);
  margin-bottom: 0;
  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: 0.6875rem;
  color: var(--text-secondary, #A3A3A3);
  line-height: 1.35;
  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: 0.625rem;
  color: var(--text-muted, #737373);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Blog cross-link rail (data/blog_cross_rail.toml) ───────────────────
   Curated "popular" picks on the right rail of /blog/ and every single post.
   Compact spec per Sush 2026-06-03: just names/codes, no descriptions, small font. */
.zt-cross-rail-section .zt-companion-link {
  padding: 3px 0;
  border-bottom: none;
}
.zt-cross-rail-section .zt-companion-link-title {
  font-size: 0.75rem;
  line-height: 1.3;
}
.zt-cross-rail-tagline {
  display: block;
  margin-top: 2px;
  font-size: 0.6875rem;
  color: var(--text-muted, #737373);
  line-height: 1.35;
}
.zt-cross-rail-viewall {
  display: inline-block;
  margin-top: var(--space-2, 8px);
  padding: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-muted, #737373);
  text-decoration: none;
  transition: color var(--transition, 150ms ease-out);
}
.zt-cross-rail-viewall:hover {
  color: var(--accent, #818CF8);
}

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

/* ═══════════════════════════════════════════════════════════
   🌸 Phase 12: Compact blog header — replaces heavy ft-hero
   ═══════════════════════════════════════════════════════════ */
.zt-blog-header {
  margin: 0 0 var(--space-4, 16px);
}
.zt-blog-header-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3, 12px);
}
.zt-blog-header-title {
  font-family: var(--font-heading);
  font-size: var(--text-h1, 2rem);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.zt-blog-header-count {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted);
  white-space: nowrap;
}
.zt-blog-header-desc {
  font-size: var(--zen-text-sm, 0.875rem);
  color: var(--text-tertiary);
  margin: var(--space-1, 4px) 0 0;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   🌸 Phase 12: Inline category filters (visible on all viewports)
   ═══════════════════════════════════════════════════════════ */
.zt-blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2, 8px);
  margin-bottom: var(--space-6, 24px);
  padding-bottom: var(--space-4, 16px);
  border-bottom: 1px solid var(--border);
}
.zt-blog-filter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1, 4px);
  padding: var(--space-1, 4px) var(--space-3, 12px);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-full, 9999px);
  color: var(--text-secondary);
  font-size: var(--text-caption, 0.75rem);
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}
.zt-blog-filter:hover {
  border-color: var(--border-emphasis);
  color: var(--text-primary);
}
.zt-blog-filter.active {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}
.zt-blog-filter-count {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.zt-blog-filter.active .zt-blog-filter-count {
  color: var(--accent);
  opacity: 0.7;
}
@media (max-width: 768px) {
  .zt-blog-header-title { font-size: 1.5rem; }
  .zt-blog-filters { gap: var(--space-1, 4px); }
  .zt-blog-filter { font-size: 0.7rem; padding: 3px var(--space-2, 8px); }
}

/* ═══════════════════════════════════════════════════════════
   🌸 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-4, 16px) 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;
}

/* ═══════════════════════════════════════════════════════════
   🌸 Phase 12: OPTION C — Title-First List (no cards, no desc)
   Title is the headline. Metadata sits below it, muted.
   ═══════════════════════════════════════════════════════════ */
.zt-blog-list--titlefirst {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.zt-blog-entry {
  display: block;
  padding: var(--space-4, 16px) 0;
  text-decoration: none;
  border-bottom: 1px solid var(--border, #262626);
  transition: background 150ms ease-out;
}
.zt-blog-entry:first-child {
  padding-top: 0;
}
.zt-blog-entry:hover {
  background: var(--bg-elevated, #1A1A1A);
  padding-left: var(--space-3, 12px);
  padding-right: var(--space-3, 12px);
  margin-left: calc(-1 * var(--space-3, 12px));
  margin-right: calc(-1 * var(--space-3, 12px));
  border-radius: var(--radius-sm, 6px);
}
.zt-blog-entry-title {
  font-size: var(--zen-text-base, 1rem);
  font-weight: 600;
  color: var(--text-primary, #F5F5F5);
  line-height: 1.5;
  margin: 0 0 var(--space-1, 4px);
}
.zt-blog-entry:hover .zt-blog-entry-title {
  color: var(--accent, #818CF8);
}
.zt-blog-entry-meta {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
  margin: 0;
  line-height: 1.4;
}
.zt-blog-entry-tag {
  color: var(--accent, #818CF8);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   🌸 Phase 12: OPTION A — River Rows (lightest, no cards)
   Tag + date on top line, title below, 1px separator. That's it.
   ═══════════════════════════════════════════════════════════ */
.zt-blog-list--river {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.zt-blog-row {
  display: block;
  padding: var(--space-4, 16px) var(--space-3, 12px);
  margin-left: calc(-1 * var(--space-3, 12px));
  margin-right: calc(-1 * var(--space-3, 12px));
  text-decoration: none;
  border-bottom: 1px solid var(--border, #262626);
  border-radius: var(--radius-sm, 6px);
  transition: background 150ms ease-out;
}
.zt-blog-row:last-child {
  border-bottom: none;
}
.zt-blog-row:hover {
  background: var(--bg-elevated, #1A1A1A);
  border-left: 2px solid var(--accent, #818CF8);
  padding-left: calc(var(--space-3, 12px) - 2px);
}
.zt-blog-row-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 2px;
}
.zt-blog-row-tag {
  font-size: var(--text-caption, 0.75rem);
  font-weight: 600;
  color: var(--accent, #818CF8);
}
/* Category tag hidden — filters at top are enough */
.zt-blog-row-tag-wrap {
  display: none;
}

.zt-blog-row-date {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
}
.zt-blog-row-title {
  font-size: var(--zen-text-sm, 0.875rem);
  font-weight: 500;
  color: var(--text-primary, #F5F5F5);
  line-height: 1.5;
  margin: 0;
}
.zt-blog-row:hover .zt-blog-row-title {
  color: var(--accent, #818CF8);
}

/* New row indicator — subtle dot before title (replaces the loud "New" word badge) */
.zt-blog-row--new {
  position: relative;
}
.zt-blog-row--new .zt-blog-row-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent, #6366F1);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  margin-top: -2px;
}

/* "New" badge (legacy — kept for any partials still using it; phased out in blog list) */
.zt-blog-row-new {
  color: var(--success, #22C55E);
  font-weight: 600;
  font-size: var(--text-caption, 0.75rem);
}

/* Filter status text */
.zt-blog-filter-status {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-muted, #737373);
  margin: calc(-1 * var(--space-2, 8px)) 0 var(--space-4, 16px);
}

/* Blog rows: mobile — title first, meta below, hide category */
@media (max-width: 768px) {
  .zt-blog-row {
    display: flex;
    flex-direction: column;
  }
  .zt-blog-row-meta {
    order: 2;
    justify-content: flex-start;
    margin-bottom: 0;
    margin-top: 2px;
  }
  .zt-blog-row-title {
    order: -1;
  }
}

/* ═══════════════════════════════════════════════════════════
   🌱 BLOG CLUSTERS — Style B container card (hub + spokes)
   Used by layouts/partials/blog-cluster-card.html
   ═══════════════════════════════════════════════════════════ */
.zt-blog-cluster {
  background: var(--bg-surface, #FBF4E8);
  border: 1px solid var(--border-emphasis, #D4C4A8);
  border-radius: var(--radius-md, 10px);
  padding: var(--space-5, 24px);
  margin: var(--space-3, 12px) calc(-1 * var(--space-3, 12px));
  position: relative;
}
.zt-blog-cluster-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent, #6366F1);
  background: rgba(99, 102, 241, 0.10);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-3, 12px);
}
html[data-theme="dark"] .zt-blog-cluster-label {
  background: rgba(129, 140, 248, 0.12);
}
.zt-blog-cluster .zt-blog-row.is-hub {
  padding: 0 0 var(--space-4, 16px);
  margin: 0;
  border-bottom: 1px solid var(--border, #E5D9C3);
  border-radius: 0;
}
.zt-blog-cluster .zt-blog-row.is-hub:hover {
  background: transparent;
  border-left: none;
  padding-left: 0;
}
.zt-blog-cluster .zt-blog-row.is-hub .zt-blog-row-title {
  font-size: var(--zen-text-md, 1.05rem);
  font-weight: 600;
}
.zt-blog-cluster-spoke-label {
  display: block;
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-tertiary, #7A6B58);
  font-style: italic;
  margin: var(--space-4, 16px) 0 var(--space-2, 8px);
}
.zt-blog-cluster-spokes {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.zt-blog-cluster-spoke {
  display: flex;
  align-items: baseline;
  gap: var(--space-3, 12px);
  padding: var(--space-2, 8px) var(--space-3, 12px);
  margin: 0 calc(-1 * var(--space-3, 12px));
  text-decoration: none;
  color: var(--text-secondary, #5C4E3C);
  border-radius: var(--radius-sm, 6px);
  font-size: 0.82rem;
  transition: background 150ms ease-out;
}
.zt-blog-cluster-spoke:hover {
  background: var(--bg-elevated, #F5ECD8);
  color: var(--accent, #6366F1);
}
.zt-blog-cluster-spoke-arrow {
  color: var(--text-tertiary, #7A6B58);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.zt-blog-cluster-spoke-title { flex: 1; }
.zt-blog-cluster-spoke-min {
  color: var(--text-muted, #9A8B78);
  font-size: var(--text-caption, 0.75rem);
  flex-shrink: 0;
}
.zt-blog-cluster-see-all {
  display: block;
  margin-top: var(--space-3, 12px);
  font-size: var(--text-caption, 0.75rem);
  color: var(--accent, #6366F1);
  text-decoration: none;
  padding-top: var(--space-2, 8px);
  border-top: 1px dashed var(--border, #E5D9C3);
}
.zt-blog-cluster-see-all:hover { text-decoration: underline; }

/* Cluster card — mobile */
@media (max-width: 768px) {
  .zt-blog-cluster { padding: var(--space-4, 16px); }
  .zt-blog-cluster-spoke {
    flex-wrap: wrap;
    padding: var(--space-2, 8px);
  }
  .zt-blog-cluster-spoke-title { font-size: 0.85rem; min-width: 0; }
  .zt-blog-cluster .zt-blog-row.is-hub .zt-blog-row-title {
    font-size: 1rem;
  }
}

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

/* Dot-grid container — always dark canvas for maximum contrast */
.zt-reading-body .mermaid {
  margin: 2rem 0;
  padding: 2rem;
  background:
    radial-gradient(circle, #404040 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: #1A1A1A;
  border: 1px solid #262626;
  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 + solid dark fill */
.zt-reading-body .mermaid .node rect,
.zt-reading-body .mermaid .node polygon {
  rx: 12 !important;
  ry: 12 !important;
  fill: #111111 !important;
  stroke: #333333 !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: #262626;
  border: 1px solid #404040;
  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: #E2E8F0;
  border-color: #525252;
}

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

.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, #404040 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: #1A1A1A;
}

.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;
}

/* Dark mode — diagrams already on dark canvas, no overrides needed */

/* Diagram shared — bold edge labels, transparent clusters */
.zt-reading-body .mermaid .edgeLabel,
.content-body .mermaid .edgeLabel {
  font-weight: 600 !important;
}
.zt-reading-body .mermaid .cluster rect,
.content-body .mermaid .cluster rect {
  fill: transparent !important;
}
.zt-reading-body .mermaid .label-container,
.content-body .mermaid .label-container {
  fill: transparent !important;
}

/* ═══════════════════════════════════════════════════════════
   🌸 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-4, 16px);
}

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

.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);
}

/* Level badges — muted grey (static metadata, not urgent) */
.zt-cert-badge--beginner,
.zt-cert-badge--intermediate,
.zt-cert-badge--advanced {
  color: var(--text-muted, #737373);
  border-color: var(--border, #262626);
  background: var(--bg-elevated, #1A1A1A);
}

.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(--success, #22C55E);
}

.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-btn--buy {
  background: #16a34a;
  color: #fff;
}
.zt-cert-btn--buy:hover {
  background: #15803d;
}

.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);
}
@media (max-width: 1024px) {
  .zt-sg-landing {
    padding: var(--space-4, 16px) var(--space-4, 16px) var(--space-12, 48px);
  }
}

/* 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: 500;
  color: var(--text-primary, #F5F5F5);
  margin: 0;
}

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

/* 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(180px, 1fr));
  gap: var(--space-3, 12px);
}

.zt-sg-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1, 4px);
  padding: var(--space-3, 12px);
  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-sg-card:hover {
  border-color: var(--accent, #818CF8);
}

.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: 600;
  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;
}

/* Status flags — coloured pills (actionable, users need to notice) */
.zt-sg-card-flag {
  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);
}
.zt-sg-card-flag--retiring {
  color: var(--badge-amber, #92400E);
  border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent);
  background: color-mix(in srgb, var(--warning) 8%, transparent);
}
.zt-sg-card-flag--beta {
  color: var(--badge-purple, #6D28D9);
  border: 1px solid color-mix(in srgb, var(--badge-purple) 30%, transparent);
  background: color-mix(in srgb, var(--badge-purple) 8%, transparent);
}
.zt-sg-card-flag--upcoming {
  color: var(--badge-blue, #1D4ED8);
  border: 1px solid color-mix(in srgb, var(--info) 30%, transparent);
  background: color-mix(in srgb, var(--info) 8%, transparent);
}

@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 */
/* Disclaimer — progressive disclosure */
.zt-lic-disclaimer-wrap {
  margin-top: var(--space-12, 48px);
}
.zt-lic-disclaimer-toggle {
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-muted, #737373);
  cursor: pointer;
  padding: var(--space-2, 8px) 0;
}
.zt-lic-disclaimer-toggle:hover { color: var(--text-secondary); }
.zt-lic-disclaimer {
  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-radius: var(--radius-sm, 6px);
  line-height: 1.6;
  margin-top: var(--space-2, 8px);
}

.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);
}
@media (max-width: 1024px) {
  .zt-lic-landing {
    padding: var(--space-4, 16px) var(--space-4, 16px) var(--space-12, 48px);
  }
}

/* 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: 500;
  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);
}

.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-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;
}

.zt-lic-card-price {
  font-weight: 600;
  color: var(--success, #10B981);
}

.zt-lic-card-price--free {
  font-weight: 600;
  color: var(--accent, #818CF8);
}

.zt-lic-card-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 1px var(--space-2, 8px);
  border-radius: var(--radius-full, 9999px);
  white-space: nowrap;
  margin-top: var(--space-1, 4px);
}
.zt-lic-badge--popular {
  color: var(--accent, #818CF8);
  background: var(--accent-subtle, rgba(99,102,241,0.08));
  border: 1px solid rgba(99,102,241,0.3);
}
.zt-lic-badge--value {
  color: var(--success, #10B981);
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.3);
}
.zt-lic-badge--coming {
  color: #F59E0B;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.3);
}

.zt-lic-card-name {
  font-size: var(--text-sm, 0.875rem);
  font-weight: 500;
  color: var(--text-primary, #1A1A1A);
  line-height: 1.3;
}

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

@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);
  }
  .zt-lic-card-tagline {
    display: none;
  }
}

/* ──────────────────────────────────────────
   🎬 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);
}
.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(180px, 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);
}
@media (max-width: 1024px) {
  .zt-reading--tools .zt-reading-content {
    padding: var(--space-4, 16px) var(--space-4, 16px) 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 — belief-led, left-aligned */
.zh-welcome {
  padding: var(--space-24, 96px) 0 var(--space-12, 48px);
  text-align: left;
}
.zh-title {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-primary, #171717);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 var(--space-6, 24px);
  max-width: 620px;
}
.zh-title-accent {
  color: var(--accent, #6366F1);
}
.zh-supporting {
  font-size: 1.0625rem;
  color: var(--text-secondary, #525252);
  line-height: 1.7;
  margin: 0 0 var(--space-6, 24px);
  max-width: 620px;
}
.zh-supporting strong {
  color: var(--text-primary, #171717);
  font-weight: 600;
}
.zh-supporting em {
  font-style: italic;
  color: var(--text-primary, #171717);
}
.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);
  text-decoration: none;
  transition: border-color 200ms ease-out, color 200ms ease-out;
}
.zh-badge:hover {
  border-color: var(--border-emphasis, #D4D4D4);
  color: var(--text-primary, #171717);
}
.zh-audience {
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-muted, #A3A3A3);
  margin: var(--space-3, 12px) 0 0;
}

/* Soft divider between hero and pull-quote */
.zh-divider {
  height: 1px;
  background: var(--border, #E5E5E5);
  margin: 0 0 var(--space-12, 48px);
}

/* Pull-quote — trust signal in someone else's voice */
.zh-pull {
  margin: 0 0 var(--space-16, 64px);
  padding: 0 0 0 var(--space-6, 24px);
  border-left: 2px solid var(--accent, #6366F1);
}
.zh-pull-quote {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.45;
  color: var(--text-primary, #171717);
  margin: 0 0 var(--space-3, 12px);
  max-width: 620px;
}
.zh-pull-quote::before {
  content: "\201C";
  color: var(--accent, #6366F1);
  font-weight: 700;
  margin-right: var(--space-1, 4px);
}
.zh-pull-quote::after {
  content: "\201D";
  color: var(--accent, #6366F1);
  font-weight: 700;
  margin-left: var(--space-1, 4px);
}
.zh-pull-cite {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-tertiary, #737373);
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2, 8px);
}
.zh-pull-cite::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--border, #E5E5E5);
  display: inline-block;
}

/* Doors intro — small uppercase label above pathways */
.zh-doors-intro {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-tertiary, #737373);
  margin: 0 0 var(--space-6, 24px);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* 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, transform 200ms ease-out;
}
.zh-path:hover {
  border-color: var(--accent, #6366F1);
  transform: translateY(-1px);
}
.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;
}
/* "New" tag */
.zh-new {
  color: var(--accent, #6366F1);
  font-weight: 600;
  font-size: 0.7rem;
  margin-left: var(--space-2, 8px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 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 — left border removed; design system says no per-card accents */

/* Section titles */
.zh-section-title {
  font-size: var(--text-caption, 0.75rem);
  font-weight: 600;
  color: var(--text-tertiary, #737373);
  margin: 0 0 var(--space-6, 24px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: var(--space-2, 8px);
  border-bottom: 1px solid var(--border, #E5E5E5);
}

/* 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 .zh-section-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: var(--space-3, 12px);
}
.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-strong, #4F46E5);
  color: white;
  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, #3730A3); }
.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: 2rem; }
  .zh-welcome { padding: var(--space-16, 64px) 0 var(--space-8, 32px); }
  .zh-supporting { font-size: 1rem; }
  .zh-pull-quote { font-size: 1.125rem; }
  .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: 500;
  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; }
}

/* About page pills (awards, certs) */
.zt-about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2, 8px);
  margin-bottom: var(--space-6, 24px);
}
.zt-about-pill {
  font-size: var(--text-caption, 0.75rem);
  font-weight: 500;
  color: var(--text-secondary, #525252);
  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);
}

/* Mobile TOC links */
.zt-toc-mobile-link {
  display: block;
  padding: 6px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm, 0.875rem);
}

/* About stats row */
.zt-about-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2, 8px);
  padding: var(--space-4, 16px) 0;
  margin-bottom: var(--space-4, 16px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.zt-about-stat {
  font-size: var(--text-sm, 0.875rem);
  font-weight: 500;
  color: var(--text-secondary);
}
.zt-about-stat-dot {
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   🧰 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);
}
@media (max-width: 640px) {
  .zt-page { padding: 0 var(--space-3, 12px) var(--space-8, 32px); }
}

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

.zt-header-row {
  display: flex;
  align-items: center;
  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;
}

/* ── Focus Mode Toggle Button ── */
.zt-fullscreen-btn {
  margin-left: auto;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm, 6px);
  color: var(--accent-foreground, #fff);
  padding: 4px 12px;
  cursor: pointer;
  transition: color 150ms ease-out, border-color 150ms ease-out, background-color 150ms ease-out;
  display: inline-flex; align-items: center; gap: 6px;
  flex-shrink: 0;
  font-size: 0.78rem; font-weight: 600; font-family: inherit;
}
.zt-fullscreen-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ── Focus Mode State ── */
.zt-reading--tool-detail.zt-tool-fullscreen {
  display: block;
}
.zt-reading--tool-detail.zt-tool-fullscreen > .zt-sidebar,
.zt-reading--tool-detail.zt-tool-fullscreen > .zt-companion {
  display: none;
}
.zt-reading--tool-detail.zt-tool-fullscreen > .zt-reading-content {
  max-width: none;
  margin: 0 auto;
  padding: 0 2rem;
}
.zt-tool-fullscreen .zt-reading-content .zt-page {
  max-width: none;
}
.zt-tool-fullscreen .zt-reading-content [class*="-container"],
.zt-tool-fullscreen .zt-reading-content [class*="-page"] {
  max-width: none;
}

/* ── 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-fullscreen-btn {
    display: none;
  }

  .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;
  }
}

/* ═══════════════════════════════════════════════════════════
   🌌 ABOUT — Cosmos-First Reimagining (10 May 2026)
   Scope: every selector starts with .zt-reading--about
   Goal: Move recruiter-bait (resume button) into Career section
         where context earns the tap; elevate cosmos discovery
         in the hero. Mirrors the cmd portal Wave A creative-juice
         pattern (terminal voice → here, the cosmos voice).
   ═══════════════════════════════════════════════════════════ */

/* Local pen tokens — borrows the notebook handwritten voice
   without depending on .zt-reading--notebook scope. */
.zt-reading--about {
  --about-pen: #B83230;
  --about-pen-soft: #D4574F;
  --about-tape: rgba(99, 102, 241, 0.10);
}
[data-theme="dark"] .zt-reading--about,
.dark .zt-reading--about {
  --about-pen: #FF7B6E;
  --about-pen-soft: #FF9A90;
  --about-tape: rgba(129, 140, 248, 0.18);
}

/* ── 1. "You are here" stamp ─────────────────────────────── */
.zt-reading--about .zt-about-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Special Elite', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  padding: 4px 10px;
  background: var(--about-tape);
  border: 1px dashed var(--accent);
  border-radius: 4px;
  margin: 0 0 var(--space-3, 12px);
  text-transform: lowercase;
  white-space: nowrap;
}
.zt-reading--about .zt-about-stamp-glyph {
  font-size: 0.95rem;
  line-height: 1;
  filter: saturate(0.9);
}

/* ── 2. Hero CTA row ─────────────────────────────────────── */
.zt-reading--about .zt-about-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: var(--space-3, 12px) 0 0;
}

/* Primary cosmos CTA — confident but not garish */
.zt-reading--about .zt-about-cta-cosmos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md, 10px);
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.005em;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: background 200ms ease-out, transform 200ms ease-out, box-shadow 200ms ease-out;
}
.zt-reading--about .zt-about-cta-cosmos:hover {
  background: var(--accent-hover);
}
@media (prefers-reduced-motion: no-preference) {
  .zt-reading--about .zt-about-cta-cosmos:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.25);
  }
  .zt-reading--about .zt-about-cta-cosmos:hover .zt-about-cta-cosmos-arrow {
    transform: translateX(2px);
  }
}
.zt-reading--about .zt-about-cta-cosmos-glyph {
  font-size: 1.05rem;
  line-height: 1;
}
.zt-reading--about .zt-about-cta-cosmos-arrow {
  display: inline-block;
  font-weight: 500;
  transition: transform 200ms ease-out;
}

/* Chip group (sibling links — whisper, not shout) */
.zt-reading--about .zt-about-chips {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  font-size: var(--text-sm, 0.875rem);
}
.zt-reading--about .zt-about-chip {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: color 150ms ease-out;
}
.zt-reading--about .zt-about-chip:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.zt-reading--about .zt-about-chip-arrow {
  color: var(--text-tertiary);
  margin-right: 1px;
  transition: color 150ms ease-out;
}
.zt-reading--about .zt-about-chip:hover .zt-about-chip-arrow {
  color: var(--accent);
}

/* ── 3. Caveat margin note (pen voice) ───────────────────── */
.zt-reading--about .zt-about-margin {
  font-family: 'Caveat', cursive;
  font-size: 1.18rem;
  line-height: 1.2;
  color: var(--about-pen);
  margin: var(--space-3, 12px) 0 0;
  letter-spacing: 0.005em;
  transform: rotate(-0.5deg);
  transform-origin: 0 50%;
}

/* ── 4. Planet chip strip ────────────────────────────────── */
.zt-reading--about .zt-about-planets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-2, 8px);
  margin: 0 0 var(--space-8, 32px);
}
.zt-reading--about .zt-about-planet {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 10px);
  text-decoration: none;
  transition: border-color 200ms ease-out, background 200ms ease-out, transform 200ms ease-out;
}
.zt-reading--about .zt-about-planet:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}
@media (prefers-reduced-motion: no-preference) {
  .zt-reading--about .zt-about-planet:hover { transform: translateY(-1px); }
}
.zt-reading--about .zt-about-planet-glyph {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.zt-reading--about .zt-about-planet-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.zt-reading--about .zt-about-planet-name {
  font-size: var(--text-sm, 0.875rem);
  font-weight: 600;
  color: var(--text-primary);
}
.zt-reading--about .zt-about-planet-tag {
  font-size: var(--text-caption, 0.75rem);
  color: var(--text-secondary);
  font-weight: 400;
}

/* ── 5. Career section resume hyperlink (whisper) ────────── */
.zt-reading--about .zt-about-resume-link {
  font-family: 'Special Elite', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 var(--space-4, 16px);
  letter-spacing: 0.005em;
}
.zt-reading--about .zt-about-resume-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 1px;
  transition: color 150ms ease-out, border-bottom-style 150ms ease-out;
}
.zt-reading--about .zt-about-resume-link a:hover {
  color: var(--accent-hover);
  border-bottom-style: solid;
}
.zt-reading--about .zt-about-resume-meta {
  display: inline;
  margin-left: 4px;
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

/* ── 6. Sidebar "Visit other planets" ────────────────────── */
.zt-reading--about .zt-companion-planets .zt-companion-link-title em {
  font-style: normal;
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 0.78rem;
  margin-left: 2px;
}
.zt-reading--about .zt-companion-link--featured {
  margin-top: var(--space-2, 8px);
  padding: 10px 12px;
  background: var(--accent-subtle);
  border-radius: var(--radius-md, 10px);
  transition: background 200ms ease-out;
}
.zt-reading--about .zt-companion-link--featured .zt-companion-link-title {
  color: var(--accent);
  font-weight: 600;
  font-size: var(--text-sm, 0.875rem);
}
.zt-reading--about .zt-companion-link--featured:hover {
  background: var(--accent);
}
.zt-reading--about .zt-companion-link--featured:hover .zt-companion-link-title,
.zt-reading--about .zt-companion-link--featured:hover .zt-companion-link-tag {
  color: #fff;
}

/* ── 7. Mobile (≤640px) — compact, scroll-snap, full-tap ─── */
@media (max-width: 640px) {
  .zt-reading--about .zt-about-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2, 8px);
  }
  .zt-reading--about .zt-about-cta-cosmos {
    justify-content: center;
    padding: 12px 18px;
    width: 100%;
  }

  /* Chip row → horizontal scroll-snap (no wrap), pill-style chips */
  .zt-reading--about .zt-about-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 6px;
    padding: 4px 0 6px;
    margin: 0;
    -webkit-overflow-scrolling: touch;
  }
  .zt-reading--about .zt-about-chips::-webkit-scrollbar { display: none; }
  .zt-reading--about .zt-about-chip {
    scroll-snap-align: start;
    flex-shrink: 0;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full, 9999px);
    font-size: 0.82rem;
  }
  .zt-reading--about .zt-about-chip:hover { text-decoration: none; }

  /* Planet strip → single column on phone, larger tap targets */
  .zt-reading--about .zt-about-planets {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .zt-reading--about .zt-about-planet {
    padding: 12px 14px;
  }

  /* Planet strip → hidden on mobile.
     Redundant with: hero cosmos CTA · ↗ all links chip · sidebar
     "Visit other planets" list (which stacks below content on phone). */
  .zt-reading--about .zt-about-planets {
    display: none;
  }

  /* Margin note: smaller, no rotation (less crammed on narrow) */
  .zt-reading--about .zt-about-margin {
    font-size: 1.05rem;
    transform: none;
    text-align: center;
  }

  /* Stamp aligns with the centered hero info on mobile */
  .zt-reading--about .zt-about-stamp {
    align-self: center;
  }

  /* CTA row aligns center too on mobile */
  .zt-reading--about .zt-about-cta-row {
    align-items: center;
  }
}

/* ── 8. Print stylesheet — recruiters who print get the resume ── */
@media print {
  .zt-reading--about .zt-about-stamp,
  .zt-reading--about .zt-about-cta-row,
  .zt-reading--about .zt-about-margin,
  .zt-reading--about .zt-about-planets,
  .zt-reading--about .zt-companion-planets {
    display: none !important;
  }
  .zt-reading--about .zt-about-resume-link {
    font-family: inherit;
    font-size: 1rem;
    color: #000;
  }
  .zt-reading--about .zt-about-resume-link a {
    border-bottom: none;
    color: #000;
  }
}