/* ==========================================================
   Zyntro Support Site — Main Stylesheet
   Single CSS file per design system rules.
   ========================================================== */

/* --- @font-face: Zyntro Custom Font (5 weights) --- */

@font-face {
  font-family: 'Zyntro';
  src: url('https://zyntro-u-32-rhapsody-pz.b-cdn.net/brands/zyntro/website/167d0cf4-7d0e-44a5-9675-cea8d4980582.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Zyntro';
  src: url('https://zyntro-u-32-rhapsody-pz.b-cdn.net/brands/zyntro/website/b99f956a-6c98-4185-962e-7f4577cdab76.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Zyntro';
  src: url('https://zyntro-u-32-rhapsody-pz.b-cdn.net/brands/zyntro/website/1db7ced9-afcb-4e2e-9cd8-7ec0cd1224a5.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Zyntro';
  src: url('https://zyntro-u-32-rhapsody-pz.b-cdn.net/brands/zyntro/website/d352382a-9f87-4e96-9a44-8ba090e31ad0.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Zyntro';
  src: url('https://zyntro-u-32-rhapsody-pz.b-cdn.net/brands/zyntro/website/91d6b2d5-42ca-482c-8a44-0b829b599075.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Custom Properties (Light Mode Default) --- */

:root {
  --zd-orange: #e7510f;
  --zd-orange-light: #fdf0ea;
  --zd-orange-hover: #cf4710;
  --zd-charcoal: #1d1d1f;
  --zd-body: #1a1a1a;
  --zd-muted: #6e6e73;
  --zd-border: #d2d2d7;
  --zd-bg: #f5f5f5;
  --zd-surface: #ffffff;
  --zd-blue: #2563eb;
  --zd-blue-light: #eff6ff;
  --zd-success: #1a7d44;
  --zd-success-bg: #eaf5ef;
  --zd-info: #2563eb;
  --zd-info-bg: #eff6ff;
  --zd-warning: #d97b0a;
  --zd-warning-bg: #fef7ec;
  --zd-danger: #c5221f;
  --zd-danger-bg: #fdf0ef;
  --zd-font: 'Zyntro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --zd-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
  --zd-sidebar-width: 260px;
  --zd-toc-width: 200px;
  --zd-nav-height: 56px;
  --zd-content-max: 960px;
  --zd-radius: 8px;
  --zd-radius-lg: 12px;
}

/* --- Dark Mode Overrides --- */

[data-theme="dark"] {
  --zd-bg: #121214;
  --zd-surface: #1c1c1e;
  --zd-charcoal: #f5f5f7;
  --zd-body: #d1d1d6;
  --zd-muted: #a1a1a6;
  --zd-border: #38383a;
  --zd-orange: #f06927;
  --zd-orange-light: #2a1a12;
  --zd-orange-hover: #ff7a3d;
  --zd-blue-light: #111827;
  --zd-success-bg: #0f2118;
  --zd-info-bg: #111827;
  --zd-warning-bg: #1f1508;
  --zd-danger-bg: #1f0f0e;
}

/* --- Global Reset & Base --- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--zd-nav-height) + 1rem);
}

body {
  font-family: var(--zd-font);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--zd-body);
  background-color: var(--zd-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--zd-orange);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--zd-orange-hover);
}

img {
  max-width: 100%;
  height: auto;
}

kbd {
  background: var(--zd-bg);
  border: 1px solid var(--zd-border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.75rem;
  font-family: var(--zd-mono);
  color: var(--zd-muted);
}

/* --- Type Scale --- */

h1, h2, h3, h4, h5, h6 {
  color: var(--zd-charcoal);
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.625rem; font-weight: 700; margin-top: 2rem; }
h3 { font-size: 1.375rem; font-weight: 600; margin-top: 1.75rem; }
h4 { font-size: 1.125rem; font-weight: 600; margin-top: 1.5rem; }
h5 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: 1rem; }

small, .zd-caption {
  font-size: 0.8125rem;
  color: var(--zd-muted);
}

/* --- Navigation Bar --- */

.zd-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: var(--zd-nav-height);
  background: var(--zd-surface);
  border-bottom: 1px solid var(--zd-border);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: 1rem;
}

.zd-navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.zd-navbar-brand img {
  height: 28px;
  width: auto;
}

.zd-navbar-brand span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--zd-charcoal);
  padding-left: 0.5rem;
  border-left: 1px solid var(--zd-border);
}

.zd-navbar-search {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
}

.zd-navbar-search input {
  width: 100%;
  padding: 0.4rem 0.75rem 0.4rem 2.25rem;
  border: 1px solid var(--zd-border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-family: var(--zd-font);
  background: var(--zd-bg);
  color: var(--zd-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zd-navbar-search input:focus {
  outline: none;
  border-color: var(--zd-orange);
  box-shadow: 0 0 0 3px rgba(231, 81, 15, 0.12);
}

.zd-navbar-search .zd-search-wrapper {
  position: relative;
}

.zd-navbar-search .zd-search-wrapper i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--zd-muted);
  font-size: 0.875rem;
  pointer-events: none;
}

.zd-search-kbd {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  border-radius: 4px;
  padding: 0 0.35rem;
  font-size: 0.6875rem;
  font-family: var(--zd-mono);
  color: var(--zd-muted);
  line-height: 1.6;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.zd-navbar-search input:focus ~ .zd-search-kbd {
  opacity: 0;
}

/* --- Autosuggest Dropdown --- */

.zd-suggest-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  border-radius: var(--zd-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1050;
  scrollbar-width: thin;
}

.zd-suggest-dropdown.open {
  display: block;
}

.zd-suggest-item {
  display: block;
  padding: 0.625rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--zd-border);
  transition: background 0.1s ease;
  color: inherit;
}

.zd-suggest-item:last-of-type {
  border-bottom: none;
}

.zd-suggest-item:hover,
.zd-suggest-item.zd-suggest-active {
  background: var(--zd-bg);
  color: inherit;
}

.zd-suggest-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zd-charcoal);
  line-height: 1.4;
}

.zd-suggest-title mark {
  background: var(--zd-orange-light);
  color: var(--zd-orange);
  padding: 0 0.1rem;
  border-radius: 2px;
}

.zd-suggest-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.125rem;
}

.zd-suggest-type {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--zd-orange);
  background: var(--zd-orange-light);
  padding: 0.05rem 0.4rem;
  border-radius: 100px;
}

.zd-suggest-path {
  font-size: 0.6875rem;
  color: var(--zd-muted);
}

.zd-suggest-viewall {
  display: block;
  padding: 0.625rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--zd-orange);
  text-decoration: none;
  border-top: 1px solid var(--zd-border);
  transition: background 0.1s ease;
}

.zd-suggest-viewall:hover,
.zd-suggest-viewall.zd-suggest-active {
  background: var(--zd-bg);
  color: var(--zd-orange);
}

.zd-suggest-empty {
  padding: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--zd-muted);
}

.zd-navbar-search {
  position: relative;
}

.zd-navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

.zd-theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 6px;
  color: var(--zd-muted);
  font-size: 1.125rem;
  transition: color 0.15s ease, background 0.15s ease;
  display: flex;
  align-items: center;
}

.zd-theme-toggle:hover {
  color: var(--zd-charcoal);
  background: var(--zd-bg);
}

.zd-navbar-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--zd-muted);
  text-decoration: none;
  white-space: nowrap;
}

.zd-navbar-link:hover {
  color: var(--zd-orange);
}

/* --- Navbar Product Icons --- */

.zd-navbar-products {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.zd-navbar-product {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.zd-navbar-product:hover {
  background: var(--zd-bg);
  transform: scale(1.1);
}

.zd-navbar-product img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.zd-sidebar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.375rem;
  color: var(--zd-charcoal);
  font-size: 1.25rem;
}

/* --- Page Layout Wrapper --- */

.zd-page-wrapper {
  display: flex;
  margin-top: var(--zd-nav-height);
  min-height: calc(100vh - var(--zd-nav-height));
}

/* --- Sidebar --- */

.zd-sidebar {
  width: var(--zd-sidebar-width);
  flex-shrink: 0;
  background: var(--zd-surface);
  border-right: 1px solid var(--zd-border);
  position: sticky;
  top: var(--zd-nav-height);
  height: calc(100vh - var(--zd-nav-height));
  overflow-y: auto;
  padding: 1.25rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--zd-border) transparent;
}

.zd-sidebar::-webkit-scrollbar {
  width: 4px;
}

.zd-sidebar::-webkit-scrollbar-thumb {
  background: var(--zd-border);
  border-radius: 4px;
}

.zd-sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.zd-sidebar-section {
  margin-bottom: 0.25rem;
}

/* Reset for button-based sidebar links */
button.zd-sidebar-section-link,
button.zd-sidebar-child-link {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  text-align: left;
  font-family: var(--zd-font);
}

.zd-sidebar-section-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zd-body);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
  cursor: pointer;
}

.zd-sidebar-section-link:hover {
  background: var(--zd-bg);
  color: var(--zd-charcoal);
}

.zd-sidebar-section-link.active {
  color: var(--zd-orange);
  border-left-color: var(--zd-orange);
  font-weight: 600;
}

.zd-sidebar-section-link i {
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.zd-sidebar-section-link .zd-sidebar-chevron {
  margin-left: auto;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.zd-sidebar-section.expanded .zd-sidebar-chevron {
  transform: rotate(90deg);
}

.zd-sidebar-children {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
}

.zd-sidebar-section.expanded > .zd-sidebar-children {
  display: block;
}

.zd-sidebar-child-link {
  display: flex;
  align-items: center;
  padding: 0.35rem 1.25rem 0.35rem 3rem; /* overridden by inline depth-based padding */
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--zd-muted);
  text-decoration: none;
  transition: color 0.15s ease;
  cursor: pointer;
}

.zd-sidebar-child-link .zd-sidebar-chevron {
  margin-left: auto;
  font-size: 0.625rem;
}

.zd-sidebar-child-link:hover {
  color: var(--zd-charcoal);
}

.zd-sidebar-child-link.active {
  color: var(--zd-orange);
  font-weight: 600;
}

.zd-sidebar-count {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--zd-muted);
  background: var(--zd-bg);
  padding: 0.05rem 0.4rem;
  border-radius: 100px;
  margin-left: 0.25rem;
}

.zd-sidebar-article-link {
  display: block;
  padding: 0.25rem 1.25rem 0.25rem 3.75rem;
  font-size: 0.8125rem;
  color: var(--zd-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.zd-sidebar-article-link:hover {
  color: var(--zd-charcoal);
}

.zd-sidebar-article-link.active {
  color: var(--zd-orange);
  font-weight: 600;
}

/* --- Main Content --- */

.zd-content {
  flex: 1;
  min-width: 0;
  max-width: var(--zd-content-max);
  padding: 2rem 2.5rem;
  margin: 0 auto;
}

/* --- On-This-Page Rail (ToC) --- */

.zd-toc-rail {
  width: var(--zd-toc-width);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--zd-nav-height) + 1rem);
  height: fit-content;
  max-height: calc(100vh - var(--zd-nav-height) - 2rem);
  overflow-y: auto;
  padding: 1rem 1rem 1rem 0;
  display: none;
}

.zd-toc-rail h6 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zd-muted);
  margin-bottom: 0.75rem;
}

.zd-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--zd-border);
}

.zd-toc-list a {
  display: block;
  padding: 0.25rem 0 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--zd-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.zd-toc-list a:hover {
  color: var(--zd-charcoal);
}

.zd-toc-list a.active {
  color: var(--zd-orange);
  border-left-color: var(--zd-orange);
}

.zd-toc-list .zd-toc-h3 {
  padding-left: 1.5rem;
}

/* --- Breadcrumb --- */

.zd-breadcrumb {
  margin-bottom: 1.25rem;
}

.zd-breadcrumb .breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
}

.zd-breadcrumb .breadcrumb-item a {
  color: var(--zd-muted);
}

.zd-breadcrumb .breadcrumb-item a:hover {
  color: var(--zd-orange);
}

.zd-breadcrumb .breadcrumb-item.active {
  color: var(--zd-charcoal);
}

.zd-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--zd-muted);
}

/* --- Buttons --- */

.zd-btn-primary {
  background-color: var(--zd-orange);
  color: #ffffff;
  border: none;
  border-radius: var(--zd-radius);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  font-family: var(--zd-font);
  font-size: 0.875rem;
  transition: background-color 0.15s ease;
  cursor: pointer;
}
.zd-btn-primary:hover {
  background-color: var(--zd-orange-hover);
  color: #ffffff;
}

.zd-btn-secondary {
  background-color: var(--zd-charcoal);
  color: #ffffff;
  border: none;
  border-radius: var(--zd-radius);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  font-family: var(--zd-font);
  font-size: 0.875rem;
  cursor: pointer;
}

.zd-btn-outline {
  background: transparent;
  color: var(--zd-orange);
  border: 1.5px solid var(--zd-orange);
  border-radius: var(--zd-radius);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  font-family: var(--zd-font);
  font-size: 0.875rem;
  transition: background-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.zd-btn-outline:hover {
  background-color: var(--zd-orange);
  color: #ffffff;
}

/* --- Cards --- */

.zd-card {
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  border-radius: var(--zd-radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}

.zd-card:hover {
  border-color: var(--zd-orange);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  color: inherit;
}

.zd-card-icon {
  font-size: 1.5rem;
  color: var(--zd-orange);
  margin-bottom: 0.75rem;
}

.zd-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.375rem;
  color: var(--zd-charcoal);
}

.zd-card p {
  font-size: 0.8125rem;
  color: var(--zd-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.zd-card .zd-card-meta {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--zd-muted);
}

/* --- Callout Blocks --- */

.zd-callout {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--zd-radius);
  border-left: 4px solid;
  margin: 1.5rem 0;
}

.zd-callout-icon {
  flex-shrink: 0;
  font-size: 1.125rem;
  line-height: 1.5;
}

.zd-callout-body {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
}

.zd-callout-body p:last-child {
  margin-bottom: 0;
}

.zd-callout-tip {
  border-color: var(--zd-success);
  background: var(--zd-success-bg);
}
.zd-callout-tip .zd-callout-icon { color: var(--zd-success); }

.zd-callout-info {
  border-color: var(--zd-info);
  background: var(--zd-info-bg);
}
.zd-callout-info .zd-callout-icon { color: var(--zd-info); }

.zd-callout-warning {
  border-color: var(--zd-warning);
  background: var(--zd-warning-bg);
}
.zd-callout-warning .zd-callout-icon { color: var(--zd-warning); }

.zd-callout-important {
  border-color: var(--zd-danger);
  background: var(--zd-danger-bg);
}
.zd-callout-important .zd-callout-icon { color: var(--zd-danger); }

/* --- Code Blocks --- */

.zd-code-block {
  position: relative;
  background: #1e1e2e;
  border-radius: var(--zd-radius);
  overflow: hidden;
  margin: 1.5rem 0;
}

.zd-code-block pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  font-family: var(--zd-mono);
  background: #1e1e2e !important; /* override Prism theme bg */
  border-radius: 0;
}

.zd-code-block pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
}

.zd-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #15151e;
  font-size: 0.75rem;
  color: #a1a1a6;
  font-family: var(--zd-mono);
}

.zd-code-copy {
  cursor: pointer;
  color: #a1a1a6;
  background: none;
  border: none;
  font-size: 0.75rem;
  font-family: var(--zd-font);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s;
  padding: 0;
}

.zd-code-copy:hover { color: #ffffff; }

/* --- Inline Code --- */

code:not(pre code) {
  background: var(--zd-orange-light);
  color: var(--zd-charcoal);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-family: var(--zd-mono);
}

/* --- Tables --- */

.zd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 1.5rem 0;
}

.zd-table thead th {
  background: var(--zd-bg);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--zd-border);
  text-align: left;
}

.zd-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--zd-border);
  vertical-align: top;
}

.zd-table tbody tr:hover {
  background: var(--zd-bg);
}

/* --- Badges --- */

.zd-badge {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}

.zd-badge-audience-user  { background: #eff6ff; color: #2563eb; }
.zd-badge-audience-admin { background: #fef7ec; color: #d97b0a; }
.zd-badge-audience-dev   { background: #eaf5ef; color: #1a7d44; }
.zd-badge-product        { background: var(--zd-orange-light); color: var(--zd-orange); }

.zd-badge-content-type {
  background: var(--zd-bg);
  color: var(--zd-muted);
  font-weight: 500;
}

/* API Method Badges */
.zd-method-get    { background: #eaf5ef; color: #1a7d44; font-weight: 700; }
.zd-method-post   { background: #eff6ff; color: #2563eb; font-weight: 700; }
.zd-method-put    { background: #fef7ec; color: #d97b0a; font-weight: 700; }
.zd-method-delete { background: #fdf0ef; color: #c5221f; font-weight: 700; }

/* --- Hero Section --- */

.zd-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--zd-border);
  margin-bottom: 2rem;
}

.zd-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.zd-hero .zd-hero-sub {
  font-size: 1.125rem;
  color: var(--zd-muted);
  font-weight: 400;
  line-height: 1.6;
  max-width: 640px;
}

/* --- Home Page --- */

.zd-home {
  padding-top: var(--zd-nav-height);
}

.zd-home-hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background: var(--zd-surface);
  border-bottom: 1px solid var(--zd-border);
}

.zd-home-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.zd-home-hero p {
  font-size: 1.125rem;
  color: var(--zd-muted);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.zd-home-hero .zd-home-search {
  max-width: 520px;
  margin: 0 auto;
}

.zd-home-hero .zd-home-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1.5px solid var(--zd-border);
  border-radius: 100px;
  font-size: 1rem;
  font-family: var(--zd-font);
  background: var(--zd-bg);
  color: var(--zd-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zd-home-hero .zd-home-search input:focus {
  outline: none;
  border-color: var(--zd-orange);
  box-shadow: 0 0 0 4px rgba(231, 81, 15, 0.1);
}

/* --- Home Hero Product Strip --- */

.zd-product-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.zd-product-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--zd-radius);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.zd-product-icon:hover {
  background: var(--zd-bg);
  transform: translateY(-2px);
}

.zd-product-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.zd-product-icon span {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--zd-muted);
}

.zd-product-icon:hover span {
  color: var(--zd-charcoal);
}

.zd-home-categories {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.zd-home-categories h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.375rem;
}

/* --- Category Page --- */

.zd-category-header {
  margin-bottom: 1.5rem;
}

.zd-category-header h1 {
  margin-bottom: 0.375rem;
}

.zd-category-header p {
  color: var(--zd-muted);
  font-size: 1rem;
  margin-bottom: 0;
}

/* --- Subcategory Grid --- */

.zd-subcategories {
  margin-bottom: 2rem;
}

.zd-subcat-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.zd-subcat-item {
  display: block;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--zd-border);
  text-decoration: none;
  transition: background 0.1s ease;
}

.zd-subcat-item:first-child {
  border-top: 1px solid var(--zd-border);
}

.zd-subcat-item:hover {
  background: var(--zd-surface);
}

.zd-subcat-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--zd-charcoal);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zd-subcat-name > i:first-child {
  color: var(--zd-orange);
  font-size: 0.875rem;
}

.zd-subcat-arrow {
  font-size: 0.6875rem;
  color: var(--zd-muted);
  margin-left: auto;
}

.zd-subcat-desc {
  font-size: 0.8125rem;
  color: var(--zd-muted);
  margin-top: 0.25rem;
  padding-left: 1.375rem;
}

.zd-subcat-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--zd-muted);
  margin-top: 0.25rem;
  padding-left: 1.375rem;
}

/* --- Article Cards (used by category + product pages) --- */

.zd-article-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.zd-article-card {
  display: block;
  padding: 1.25rem 1.5rem;
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  border-bottom: none;
  text-decoration: none;
  transition: background 0.1s ease;
}

.zd-article-card:first-child {
  border-radius: var(--zd-radius) var(--zd-radius) 0 0;
}

.zd-article-card:last-child {
  border-bottom: 1px solid var(--zd-border);
  border-radius: 0 0 var(--zd-radius) var(--zd-radius);
}

.zd-article-card:only-child {
  border-radius: var(--zd-radius);
  border-bottom: 1px solid var(--zd-border);
}

.zd-article-card:hover {
  background: var(--zd-bg);
}

.zd-article-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.375rem;
}

.zd-article-card-type {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zd-orange);
}

.zd-article-card-type i {
  font-size: 0.625rem;
}

.zd-article-card-time {
  font-size: 0.6875rem;
  color: var(--zd-muted);
}

.zd-article-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--zd-charcoal);
}

.zd-article-card p {
  font-size: 0.8125rem;
  color: var(--zd-muted);
  margin: 0;
  line-height: 1.5;
}

.zd-articles-section h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zd-muted);
  margin-bottom: 0.75rem;
}

/* --- Product Page --- */

.zd-product-page {
  padding-bottom: 2rem;
}

.zd-product-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.zd-product-header-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.zd-product-header h1 {
  margin-bottom: 0.25rem;
}

.zd-product-header p {
  color: var(--zd-muted);
  margin-bottom: 0;
  font-size: 1rem;
}

.zd-all-products {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--zd-border);
}

.zd-all-products h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zd-muted);
  margin-bottom: 0.75rem;
}

.zd-product-active {
  background: var(--zd-orange-light);
  border-radius: var(--zd-radius);
}

.zd-product-active span {
  color: var(--zd-orange) !important;
  font-weight: 700;
}

/* --- Article Page --- */

.zd-article-wrapper {
  display: flex;
  gap: 2rem;
}

.zd-article-content {
  flex: 1;
  min-width: 0;
}

.zd-article-footer-meta {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--zd-border);
  font-size: 0.8125rem;
  color: var(--zd-muted);
}

.zd-article-footer-meta i {
  margin-right: 0.25rem;
}

/* --- Prev / Next Navigation --- */

.zd-prev-next {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--zd-border);
}

.zd-prev-next-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--zd-border);
  border-radius: var(--zd-radius-lg);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  max-width: 48%;
}

.zd-prev-next-link:hover {
  border-color: var(--zd-orange);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.zd-prev-next-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--zd-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.zd-prev-next-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--zd-charcoal);
}

.zd-prev-next-link.zd-next {
  text-align: right;
  margin-left: auto;
}

@media (max-width: 575.98px) {
  .zd-prev-next {
    flex-direction: column;
  }
  .zd-prev-next-link {
    max-width: 100%;
  }
}

/* --- Feedback Widget --- */

.zd-feedback {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--zd-bg);
  border-radius: var(--zd-radius-lg);
  text-align: center;
}

.zd-feedback p {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.zd-feedback-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.zd-feedback-btn {
  padding: 0.375rem 1rem;
  border: 1.5px solid var(--zd-border);
  border-radius: 100px;
  background: var(--zd-surface);
  cursor: pointer;
  font-family: var(--zd-font);
  font-size: 0.875rem;
  color: var(--zd-body);
  transition: border-color 0.15s ease, background 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.zd-feedback-btn:hover {
  border-color: var(--zd-orange);
}

.zd-feedback-btn.selected {
  border-color: var(--zd-orange);
  background: var(--zd-orange-light);
}

/* --- Prerequisites (Cross-Ref at top) --- */

.zd-prerequisites-xref {
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  border-left: 3px solid var(--zd-warning);
  border-radius: 0 var(--zd-radius) var(--zd-radius) 0;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.zd-prerequisites-xref h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--zd-charcoal);
}

.zd-prerequisites-xref h4 i {
  color: var(--zd-warning);
}

.zd-prerequisites-xref ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.zd-prerequisites-xref li {
  padding: 0.15rem 0;
  font-size: 0.9375rem;
}

/* --- Cross References (Related, at bottom) --- */

.zd-cross-references {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--zd-border);
}

.zd-cross-references h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

/* --- Search Page --- */

.zd-search-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  padding-top: calc(var(--zd-nav-height) + 2rem);
}

.zd-search-input {
  margin-bottom: 2rem;
}

.zd-search-input input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--zd-border);
  border-radius: var(--zd-radius);
  font-size: 1rem;
  font-family: var(--zd-font);
  background: var(--zd-surface);
  color: var(--zd-body);
}

.zd-search-input input:focus {
  outline: none;
  border-color: var(--zd-orange);
}

.zd-search-result {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--zd-border);
}

.zd-search-result h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.zd-search-result h3 a {
  color: var(--zd-charcoal);
}

.zd-search-result h3 a:hover {
  color: var(--zd-orange);
}

.zd-search-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.zd-search-result .zd-search-path {
  font-size: 0.75rem;
  color: var(--zd-muted);
}

.zd-search-pagination {
  margin-top: 2rem;
}

.zd-search-pagination .page-link {
  color: var(--zd-orange);
  font-size: 0.875rem;
  font-family: var(--zd-font);
}

.zd-search-pagination .page-item.active .page-link {
  background-color: var(--zd-orange);
  border-color: var(--zd-orange);
  color: #fff;
}

.zd-search-result .zd-search-excerpt {
  font-size: 0.875rem;
  color: var(--zd-body);
}

.zd-search-result .zd-search-excerpt mark {
  background: var(--zd-orange-light);
  color: var(--zd-orange);
  padding: 0.05rem 0.15rem;
  border-radius: 2px;
}

/* --- 404 Page --- */

.zd-404 {
  text-align: center;
  padding: calc(var(--zd-nav-height) + 4rem) 1.5rem 4rem;
  max-width: 520px;
  margin: 0 auto;
}

.zd-404 h1 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--zd-orange);
  margin-bottom: 0.5rem;
}

.zd-404 p {
  color: var(--zd-muted);
  margin-bottom: 1.5rem;
}

/* --- Footer --- */

.zd-footer {
  border-top: 1px solid var(--zd-border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--zd-muted);
  background: var(--zd-surface);
}

.zd-footer a {
  color: var(--zd-muted);
  text-decoration: none;
  margin: 0 0.5rem;
}

.zd-footer a:hover {
  color: var(--zd-orange);
}

/* --- Steps Block --- */

.zd-steps {
  counter-reset: step-counter;
  margin: 1.5rem 0;
}

.zd-step {
  counter-increment: step-counter;
  position: relative;
  padding-left: 3rem;
  padding-bottom: 1.5rem;
  border-left: 2px solid var(--zd-border);
  margin-left: 1rem;
}

.zd-step:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.zd-step::before {
  content: counter(step-counter);
  position: absolute;
  left: -1rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--zd-orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.zd-step h4 {
  margin-top: 0;
  font-size: 1rem;
  font-weight: 600;
}

/* --- Prerequisites Block --- */

.zd-prerequisites {
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  border-left: 3px solid var(--zd-info);
  border-radius: 0 var(--zd-radius) var(--zd-radius) 0;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}

.zd-prerequisites h4 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--zd-charcoal);
}

.zd-prerequisites h4 i {
  color: var(--zd-info);
}

.zd-prerequisites ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.zd-prerequisites li {
  padding: 0.2rem 0;
  font-size: 0.9375rem;
}

/* --- Key Concepts (Card Grid) --- */

.zd-key-concepts {
  margin: 1.5rem 0;
}

.zd-concept-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.zd-concept-card {
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  border-left: 3px solid var(--zd-orange);
  border-radius: 0 var(--zd-radius) var(--zd-radius) 0;
  padding: 1rem 1.25rem;
  transition: box-shadow 0.15s ease;
}

.zd-concept-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.zd-concept-term {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--zd-charcoal);
  margin-bottom: 0.375rem;
}

.zd-concept-term i {
  color: var(--zd-orange);
  font-size: 0.5rem;
  flex-shrink: 0;
}

.zd-concept-def {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--zd-body);
}

/* --- Capabilities (Vertical Stack) --- */

.zd-capabilities {
  margin: 1.5rem 0;
}

.zd-capability-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--zd-border);
}

.zd-capability-item:last-child {
  border-bottom: none;
}

.zd-capability-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--zd-orange-light);
  border-radius: var(--zd-radius);
  color: var(--zd-orange);
  font-size: 1.125rem;
}

.zd-capability-body h4 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.zd-capability-body p {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--zd-muted);
}

/* --- Content Link List (Continue Reading) --- */

.zd-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.zd-link-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--zd-border);
  font-size: 0.9375rem;
}

.zd-link-list li:last-child {
  border-bottom: none;
}

.zd-link-list a {
  font-weight: 500;
}

.zd-link-desc {
  color: var(--zd-muted);
  font-size: 0.8125rem;
}

/* --- Examples Block --- */

.zd-examples {
  margin: 1.5rem 0;
}

.zd-example-item {
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  border-left: 3px solid var(--zd-blue);
  border-radius: 0 var(--zd-radius) var(--zd-radius) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
}

.zd-example-item .zd-example-scenario {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.zd-example-item .zd-example-scenario-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zd-blue);
  white-space: nowrap;
}

.zd-example-item h5 {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--zd-charcoal);
}

.zd-example-item p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* --- Goal Block (Recipe) --- */

.zd-goal {
  background: var(--zd-orange-light);
  border-left: 4px solid var(--zd-orange);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--zd-radius) var(--zd-radius) 0;
  margin: 1.5rem 0;
}

.zd-goal p {
  margin-bottom: 0;
  font-weight: 500;
}

/* --- Endpoint Meta (API) --- */

.zd-endpoint-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--zd-bg);
  padding: 1rem 1.25rem;
  border-radius: var(--zd-radius);
  margin: 1.5rem 0;
  font-family: var(--zd-mono);
  font-size: 0.9375rem;
}

.zd-endpoint-meta .zd-badge {
  font-family: var(--zd-mono);
  font-size: 0.8125rem;
  padding: 0.25rem 0.5rem;
}

/* --- FAQ / Accordion --- */

.zd-faq .accordion-item {
  border: 1px solid var(--zd-border);
  margin-bottom: 0.5rem;
  border-radius: var(--zd-radius) !important;
  overflow: hidden;
}

.zd-faq .accordion-button {
  font-family: var(--zd-font);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--zd-charcoal);
  background: var(--zd-surface);
  padding: 0.75rem 1.25rem;
  gap: 0.75rem;
}

.zd-faq .accordion-button:not(.collapsed) {
  color: var(--zd-orange);
  background: var(--zd-orange-light);
  box-shadow: none;
}

.zd-faq .accordion-button:focus {
  box-shadow: none;
  border-color: var(--zd-border);
}

.zd-faq .accordion-body {
  font-size: 0.9375rem;
  color: var(--zd-body);
  padding: 0.75rem 1.25rem 1rem;
}

/* --- Field Group (Reference) --- */

.zd-field-group {
  margin: 1.5rem 0;
}

.zd-field-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--zd-border);
}

.zd-field-item:last-child {
  border-bottom: none;
}

.zd-field-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.375rem;
}

.zd-field-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.zd-field-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--zd-body);
}

.zd-field-default {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--zd-muted);
}

/* --- Enum List (Reference) --- */

.zd-enum-list {
  margin: 1.5rem 0;
}

.zd-enum-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.zd-enum-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--zd-border);
  font-size: 0.9375rem;
}

.zd-enum-item:last-child {
  border-bottom: none;
}

.zd-enum-item code {
  font-weight: 600;
}

/* --- Issues (Troubleshooting) --- */

.zd-issues {
  margin: 1.5rem 0;
}

.zd-issue-card {
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  border-radius: var(--zd-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
}

.zd-issue-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zd-muted);
  display: block;
  margin-bottom: 0.125rem;
}

.zd-issue-symptom .zd-issue-label { color: var(--zd-danger); }
.zd-issue-cause .zd-issue-label { color: var(--zd-warning); }
.zd-issue-solution .zd-issue-label { color: var(--zd-success); }

.zd-issue-card p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
}

.zd-issue-card > div:last-child p {
  margin-bottom: 0;
}

/* --- Decision Tree (Troubleshooting) --- */

.zd-decision-tree {
  margin: 1.5rem 0;
}

.zd-tree-node {
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  border-radius: var(--zd-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
}

.zd-tree-question {
  font-weight: 600;
  font-size: 1rem;
  color: var(--zd-charcoal);
  margin-bottom: 0.75rem;
}

.zd-tree-question i {
  color: var(--zd-blue);
}

.zd-tree-branches {
  padding-left: 1.5rem;
  border-left: 2px solid var(--zd-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.zd-tree-branch-label {
  font-weight: 600;
  font-size: 0.8125rem;
}

.zd-tree-yes .zd-tree-branch-label { color: var(--zd-success); }
.zd-tree-no .zd-tree-branch-label { color: var(--zd-danger); }

.zd-tree-answer {
  color: var(--zd-success);
  font-weight: 500;
}

/* --- Contact Support --- */

.zd-contact-support {
  margin: 2rem 0;
}

.zd-contact-support-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--zd-bg);
  border-radius: var(--zd-radius-lg);
  padding: 1.5rem 2rem;
}

.zd-contact-support-inner > i {
  font-size: 2rem;
  color: var(--zd-orange);
  flex-shrink: 0;
}

.zd-contact-support h3 {
  margin-top: 0;
  margin-bottom: 0.375rem;
  font-size: 1.125rem;
}

.zd-contact-support p {
  margin-bottom: 1rem;
  color: var(--zd-muted);
}

/* --- Response (API) --- */

.zd-response {
  margin: 1.5rem 0;
}

.zd-response-case {
  margin-bottom: 1.5rem;
}

.zd-response-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* --- Ingredients (Recipe) --- */

.zd-ingredients {
  margin: 1.5rem 0;
}

.zd-ingredients-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.zd-ingredient-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--zd-border);
}

.zd-ingredient-item:last-child {
  border-bottom: none;
}

.zd-ingredient-item > i {
  color: var(--zd-orange);
  flex-shrink: 0;
}

/* --- Variations (Recipe) --- */

.zd-variations {
  margin: 1.5rem 0;
}

.zd-variation-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--zd-border);
}

.zd-variation-item:last-child {
  border-bottom: none;
}

.zd-variation-item h4 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.zd-variation-item p {
  margin-bottom: 0;
  color: var(--zd-muted);
}

/* --- Result Block --- */

.zd-result {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--zd-success-bg);
  border-left: 3px solid var(--zd-success);
  border-radius: 0 var(--zd-radius) var(--zd-radius) 0;
}

.zd-result h2 {
  margin-top: 0;
}

/* --- Code Samples Tabs --- */

.zd-code-samples .nav-tabs {
  border-bottom: none;
}

.zd-code-samples .nav-tabs .nav-link {
  font-family: var(--zd-mono);
  font-size: 0.8125rem;
  color: var(--zd-muted);
  border: 1px solid var(--zd-border);
  border-bottom: none;
  border-radius: var(--zd-radius) var(--zd-radius) 0 0;
  background: var(--zd-bg);
  padding: 0.375rem 1rem;
}

.zd-code-samples .nav-tabs .nav-link.active {
  background: #15151e;
  color: #f5f5f7;
  border-color: #15151e;
}

/* --- Code Title --- */

.zd-code-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--zd-muted);
  margin-bottom: 0.25rem;
}

/* --- Comparison Table --- */

.zd-comparison-table {
  margin: 1.5rem 0;
}

.zd-table-comparison .zd-col-highlight {
  background: var(--zd-orange-light);
}

.zd-table-comparison thead .zd-col-highlight {
  color: var(--zd-orange);
  font-weight: 700;
}

/* --- Image Slider --- */

.zd-image-slider {
  margin: 1.5rem 0;
  border-radius: var(--zd-radius-lg);
  overflow: hidden;
}

.zd-image-slider .carousel-caption p {
  background: rgba(0, 0, 0, 0.6);
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

/* --- Video Embed --- */

.zd-video-embed {
  margin: 1.5rem 0;
}

.zd-video-title {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.zd-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--zd-radius-lg);
  background: #000;
}

.zd-video-wrapper iframe,
.zd-video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.zd-video-embed figcaption {
  font-size: 0.8125rem;
  color: var(--zd-muted);
  margin-top: 0.5rem;
  text-align: center;
}

/* --- Single Image --- */

.zd-single-image {
  margin: 1.5rem 0;
}

.zd-single-image img {
  display: block;
}

.zd-single-image figcaption {
  font-size: 0.8125rem;
  color: var(--zd-muted);
  margin-top: 0.5rem;
  text-align: center;
}

.zd-img-full { max-width: 100%; }
.zd-img-medium { max-width: 66%; }
.zd-img-small { max-width: 40%; }

@media (max-width: 575.98px) {
  .zd-img-medium,
  .zd-img-small {
    max-width: 100%;
  }
}

/* --- Checklist --- */

.zd-checklist {
  margin: 1.5rem 0;
}

.zd-checklist-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.zd-checklist-items li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--zd-border);
  font-size: 0.9375rem;
}

.zd-checklist-items li:last-child {
  border-bottom: none;
}

.zd-checklist-items li i {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.zd-checklist-items .zd-checked i {
  color: var(--zd-success);
}

.zd-checklist-items .zd-unchecked i {
  color: var(--zd-border);
}

.zd-checklist-items .zd-unchecked span {
  color: var(--zd-muted);
}

/* --- Stats Cards --- */

.zd-stats-cards {
  margin: 1.5rem 0;
}

.zd-stats-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.zd-stat-card {
  flex: 1;
  min-width: 120px;
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  border-radius: var(--zd-radius-lg);
  padding: 1.25rem;
  text-align: center;
}

.zd-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--zd-orange);
  line-height: 1.2;
}

.zd-stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--zd-charcoal);
  margin-top: 0.25rem;
}

.zd-stat-desc {
  font-size: 0.75rem;
  color: var(--zd-muted);
  margin-top: 0.25rem;
}

@media (max-width: 575.98px) {
  .zd-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Empty State --- */

.zd-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--zd-muted);
}

.zd-empty-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* --- Responsive Behavior --- */

@media (max-width: 991.98px) {
  .zd-page-wrapper > .zd-sidebar {
    display: none;
  }

  .zd-mobile-sidebar-body .zd-sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
  }

  .zd-sidebar-toggle {
    display: flex;
  }

  .zd-content {
    padding: 1.5rem 1rem;
  }

  .zd-toc-rail {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .zd-page-wrapper {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .zd-toc-rail {
    display: block;
  }
}

@media (max-width: 575.98px) {
  .zd-home-hero h1 {
    font-size: 1.75rem;
  }

  .zd-navbar-search {
    flex: 1;
    max-width: none;
    margin: 0 0.5rem;
  }

  .zd-navbar-search .zd-search-kbd {
    display: none;
  }

  .zd-navbar-link {
    display: none;
  }

  .zd-navbar-products {
    display: none;
  }

  .zd-home-hero .zd-caption {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .zd-navbar-products {
    display: none;
  }
}

/* --- Dark Mode Transitions --- */

body,
.zd-navbar,
.zd-sidebar,
.zd-card,
.zd-footer,
.zd-callout,
.zd-feedback,
.zd-prerequisites,
.zd-example-item {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* --- Print Styles --- */

@media print {
  .zd-navbar,
  .zd-sidebar,
  .zd-toc-rail,
  .zd-footer,
  .zd-feedback,
  .zd-sidebar-toggle,
  .zd-theme-toggle {
    display: none !important;
  }

  .zd-content {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .zd-page-wrapper {
    display: block;
  }

  body {
    color: #000;
    background: #fff;
  }

  a { color: #000; text-decoration: underline; }

  .zd-code-block {
    border: 1px solid #ccc;
    background: #f8f8f8;
  }
}

/* --- Mobile Sidebar (custom, no Bootstrap Offcanvas) --- */

.zd-mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--zd-sidebar-width);
  height: 100vh;
  background: var(--zd-surface);
  z-index: 1060;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.zd-mobile-sidebar.open {
  transform: translateX(0);
}

.zd-mobile-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--zd-border);
  flex-shrink: 0;
}

.zd-mobile-sidebar-header h5 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.zd-mobile-sidebar-header button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--zd-muted);
  font-size: 1.125rem;
  padding: 0.25rem;
  border-radius: 4px;
}

.zd-mobile-sidebar-header button:hover {
  color: var(--zd-charcoal);
  background: var(--zd-bg);
}

.zd-mobile-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.zd-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1055;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.zd-mobile-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* =============================================
   NotebookLM Cinematic Overviews
   ============================================= */

/* Hero */
.zd-notebook-hero {
  background: linear-gradient(135deg, var(--zd-surface) 0%, var(--zd-surface-raised) 100%);
  border-bottom: 1px solid var(--zd-border);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  margin-top: 3rem;
}
.zd-notebook-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}
.zd-notebook-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.75rem 0 0.5rem;
}
.zd-notebook-hero > p {
  color: var(--zd-muted);
}

/* NotebookLM Badge */
.zd-notebook-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--zd-muted);
}
.zd-notebook-badge-icon {
  width: 18px;
  height: 18px;
}

/* Disclosure */
.zd-notebook-disclosure {
  font-size: 0.78rem;
  color: var(--zd-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

/* Gallery */
.zd-notebook-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* Filter Pills */
.zd-notebook-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.zd-notebook-pill {
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  color: var(--zd-text);
  text-decoration: none;
  transition: all 0.15s;
}
.zd-notebook-pill:hover {
  border-color: var(--zd-primary);
  color: var(--zd-primary);
}
.zd-notebook-pill.active {
  background: var(--zd-primary);
  border-color: var(--zd-primary);
  color: #fff;
}

/* Video Grid */
.zd-notebook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 991px) {
  .zd-notebook-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .zd-notebook-grid { grid-template-columns: 1fr; }
}

/* Video Card */
.zd-notebook-card {
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.zd-notebook-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Thumbnail */
.zd-notebook-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}
.zd-notebook-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}
.zd-notebook-thumb:hover img {
  opacity: 0.8;
}
.zd-notebook-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.zd-notebook-play i {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.zd-notebook-thumb:hover .zd-notebook-play i {
  transform: scale(1.1);
  background: var(--zd-primary);
}
.zd-notebook-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* Card Body */
.zd-notebook-body {
  padding: 1rem;
}
.zd-notebook-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}
.zd-notebook-body p {
  font-size: 0.82rem;
  color: var(--zd-muted);
  margin: 0 0 0.5rem;
  line-height: 1.45;
}
.zd-notebook-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.zd-notebook-product-pill {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--zd-surface-raised);
  border: 1px solid var(--zd-border);
  color: var(--zd-muted);
  font-weight: 600;
}

/* Video Modal */
.zd-notebook-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.zd-notebook-modal.open {
  opacity: 1;
  visibility: visible;
}
.zd-notebook-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
}
.zd-notebook-modal-content {
  position: relative;
  width: 90%;
  max-width: 960px;
}
.zd-notebook-modal-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.zd-notebook-modal-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.zd-notebook-modal-x {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px 8px;
}
.zd-notebook-modal-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}
.zd-notebook-modal-badge img {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* Floating Action Button */
.zd-notebook-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.zd-notebook-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.zd-notebook-fab img {
  width: 26px;
  height: 26px;
}

/* Home page overviews strip */
.zd-home-notebooks {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
}
.zd-home-notebooks h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.zd-home-notebooks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.zd-home-notebooks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 991px) {
  .zd-home-notebooks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .zd-home-notebooks-grid { grid-template-columns: 1fr; }
}

/* Article page notebook callout */
.zd-notebook-callout {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--zd-surface-raised);
  border: 1px solid var(--zd-border);
  border-radius: 10px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.zd-notebook-callout:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.zd-notebook-callout-thumb {
  width: 120px;
  min-width: 120px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  position: relative;
}
.zd-notebook-callout-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.zd-notebook-callout-thumb .zd-notebook-play {
  position: absolute;
  inset: 0;
}
.zd-notebook-callout-thumb .zd-notebook-play i {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}
.zd-notebook-callout-body h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.zd-notebook-callout-body p {
  font-size: 0.78rem;
  color: var(--zd-muted);
  margin: 0;
}

/* ── Notebook Detail Page ── */
.zd-notebook-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  margin-top: 3rem;
}
.zd-notebook-detail-nav {
  margin-bottom: 1rem;
}
.zd-notebook-detail-nav a {
  text-decoration: none;
  color: var(--zd-muted);
}
.zd-notebook-detail-nav a:hover {
  color: var(--zd-primary);
}
.zd-notebook-detail-player {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.zd-notebook-detail-player video {
  display: block;
  width: 100%;
  background: #000;
}
.zd-notebook-detail-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 991px) {
  .zd-notebook-detail-body { grid-template-columns: 1fr; }
}
.zd-notebook-detail-main h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.zd-notebook-detail-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--zd-text);
  margin-bottom: 1rem;
}
.zd-notebook-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.zd-notebook-tag-pill {
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 10px;
  background: var(--zd-surface-raised);
  border: 1px solid var(--zd-border);
  color: var(--zd-text);
}
.zd-notebook-detail-disclosure {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--zd-surface-raised);
  border: 1px solid var(--zd-border);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--zd-muted);
  font-style: italic;
  margin-top: 1rem;
}
.zd-notebook-detail-sidebar h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}
.zd-notebook-related-card {
  display: block;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--zd-surface);
  border: 1px solid var(--zd-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--zd-text);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.zd-notebook-related-card:hover {
  border-color: var(--zd-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.zd-notebook-related-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zd-primary);
  margin-bottom: 0.15rem;
}
.zd-notebook-related-card h4 {
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.zd-notebook-related-card p {
  font-size: 0.78rem;
  color: var(--zd-muted);
  margin: 0 0 0.25rem;
  line-height: 1.4;
}
