/* ==========================================================================
   VAMSI TECH NOTES — DESIGN SYSTEM v6
   Editorial Premium · Swiss Grid · Luxury Warmth
   Influenced by: Editorial Grid, Swiss Modernism, Luxury/Premium palette
   ========================================================================== */

/* --- FONTS (loaded via <link> in main.html for non-blocking) --- */

/* --- DESIGN TOKENS (Light Mode) --- */
:root {
  --vtn-font-heading: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --vtn-font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --vtn-font-mono: "JetBrains Mono", "Fira Code", monospace;
  --vtn-bg: #FAFAF9;
  --vtn-bg-alt: #F5F3F0;
  --vtn-brand: #B45309;
  --vtn-brand-light: #D97706;
  --vtn-brand-dark: #92400E;
  --vtn-text: #1C1917;
  --vtn-text-secondary: #44403C;
  --vtn-text-muted: #78716C;
  --vtn-text-light: #786F69;
  --vtn-surface: #FFFFFF;
  --vtn-border: #E7E5E4;
  --vtn-border-dark: #D6D3D1;
  --vtn-success: #166534;
  --vtn-warning: #92400E;
  --vtn-danger: #DC2626;
  --vtn-info: #1D4ED8;
  --vtn-shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04), 0 1px 3px rgba(28, 25, 23, 0.06);
  --vtn-shadow-md: 0 4px 6px rgba(28, 25, 23, 0.04), 0 10px 20px rgba(28, 25, 23, 0.06);
  --vtn-shadow-lg: 0 10px 25px rgba(28, 25, 23, 0.06), 0 20px 48px rgba(28, 25, 23, 0.08);
  --vtn-shadow-glow: 0 0 0 1px rgba(180, 83, 9, 0.1), 0 4px 16px rgba(180, 83, 9, 0.08);
  --vtn-radius: 10px;
  --vtn-radius-sm: 6px;
  --vtn-radius-lg: 16px;
  --vtn-radius-full: 9999px;
  --vtn-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --vtn-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);

  --md-primary-fg-color: #1C1917;
  --md-primary-fg-color--light: #292524;
  --md-primary-fg-color--dark: #0C0A09;
  --md-primary-bg-color: #FAFAF9;
  --md-primary-bg-color--light: rgba(250, 250, 249, 0.7);
  --md-accent-fg-color: #B45309;
  --md-text-link-color: #B45309;
  --md-default-bg-color: #FAFAF9;
}

/* System design SVG illustrations — compact sizing */
.md-content img[src*="system-design"] {
  max-width: 480px;
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 10px;
}
/* Hide glightbox caption for system-design images */
.md-content figure:has(img[src*="system-design"]) figcaption,
.md-content .glightbox-desc {
  display: none !important;
}

/* --- DESIGN TOKENS (Dark Mode) --- */
[data-md-color-scheme="slate"] {
  --vtn-bg: #1C1917;
  --vtn-bg-alt: #292524;
  --vtn-brand: #F59E0B;
  --vtn-brand-light: #FBBF24;
  --vtn-brand-dark: #D97706;
  --vtn-text: #FAFAF9;
  --vtn-text-secondary: #E7E5E4;
  --vtn-text-muted: #A8A29E;
  --vtn-text-light: #9C958F;
  --vtn-surface: #292524;
  --vtn-border: #44403C;
  --vtn-border-dark: #57534E;
  --vtn-success: #4ADE80;
  --vtn-warning: #FBBF24;
  --vtn-danger: #F87171;
  --vtn-info: #60A5FA;
  --vtn-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --vtn-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --vtn-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
  --vtn-shadow-glow: 0 0 0 1px rgba(245, 158, 11, 0.15), 0 4px 16px rgba(245, 158, 11, 0.1);

  --md-primary-fg-color: #0C0A09;
  --md-primary-fg-color--light: #1C1917;
  --md-primary-fg-color--dark: #000000;
  --md-primary-bg-color: #FAFAF9;
  --md-primary-bg-color--light: rgba(250, 250, 249, 0.7);
  --md-accent-fg-color: #F59E0B;
  --md-text-link-color: #F59E0B;
  --md-default-bg-color: #1C1917;
  --md-default-fg-color: #FAFAF9;
  --md-default-fg-color--light: #E7E5E4;
  --md-default-fg-color--lighter: #A8A29E;
  --md-default-fg-color--lightest: #78716C;
  --md-code-bg-color: #292524;
  --md-code-fg-color: #E7E5E4;
  --md-footer-bg-color: #0C0A09;
  --md-footer-bg-color--dark: #0C0A09;
  --md-typeset-a-color: #F59E0B;
  --md-text-font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --md-code-font: "JetBrains Mono", "Fira Code", monospace;
  --md-typeset-color: #FAFAF9;

  /* Mermaid: readable colors on dark background */
  --md-mermaid-label-fg-color: #E7E5E4;
  --md-mermaid-label-bg-color: transparent;
  --md-mermaid-edge-color: #A8A29E;
  --md-mermaid-node-bg-color: rgba(245, 158, 11, 0.08);
  --md-mermaid-node-fg-color: #F59E0B;
  --md-mermaid-sequence-actor-bg-color: #292524;
  --md-mermaid-sequence-actor-border-color: #F59E0B;
  --md-mermaid-sequence-actor-fg-color: #E7E5E4;
  --md-mermaid-sequence-actor-line-color: #57534E;
  --md-mermaid-sequence-actorman-bg-color: #292524;
  --md-mermaid-sequence-actorman-line-color: #F59E0B;
  --md-mermaid-sequence-box-bg-color: rgba(245, 158, 11, 0.06);
  --md-mermaid-sequence-box-fg-color: #A8A29E;
  --md-mermaid-sequence-label-bg-color: rgba(245, 158, 11, 0.08);
  --md-mermaid-sequence-label-fg-color: #F59E0B;
  --md-mermaid-sequence-loop-bg-color: rgba(245, 158, 11, 0.06);
  --md-mermaid-sequence-loop-border-color: #D97706;
  --md-mermaid-sequence-loop-fg-color: #A8A29E;
  --md-mermaid-sequence-message-fg-color: #E7E5E4;
  --md-mermaid-sequence-message-line-color: #57534E;
  --md-mermaid-sequence-note-bg-color: #292524;
  --md-mermaid-sequence-note-border-color: #44403C;
  --md-mermaid-sequence-note-fg-color: #E7E5E4;
  --md-mermaid-sequence-number-bg-color: #F59E0B;
  --md-mermaid-sequence-number-fg-color: #1C1917;
}

/* Mermaid dark-mode: fix inline style colors on subgraphs and edges */
[data-md-color-scheme="slate"] .mermaid .edgeLabel {
  color: #E7E5E4 !important;
  background: #292524 !important;
}

[data-md-color-scheme="slate"] .mermaid .flowchart-link {
  stroke: #78716C !important;
}

[data-md-color-scheme="slate"] .mermaid .marker {
  fill: #78716C !important;
  stroke: #78716C !important;
}

[data-md-color-scheme="slate"] .mermaid text {
  fill: #E7E5E4 !important;
}

[data-md-color-scheme="slate"] .mermaid .node rect,
[data-md-color-scheme="slate"] .mermaid .node circle,
[data-md-color-scheme="slate"] .mermaid .node polygon {
  stroke-width: 1.5px;
}

[data-md-color-scheme="slate"] .mermaid .cluster rect {
  stroke: #57534E !important;
  rx: 8;
  ry: 8;
}

/* Mermaid global: compact sizing */
.mermaid {
  margin: 1rem 0;
  font-size: 0.78rem !important;
}

.mermaid svg {
  max-width: 100%;
  height: auto;
}

/* Force font family on both schemes */
:root {
  --md-text-font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --md-code-font: "JetBrains Mono", "Fira Code", monospace;
}

/* ==========================================================================
   GLOBAL — Cream background everywhere
   ========================================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* --- Z-INDEX SCALE --- */
:root {
  --vtn-z-base: 0;
  --vtn-z-dropdown: 100;
  --vtn-z-sticky: 200;
  --vtn-z-overlay: 1000;
  --vtn-z-modal: 1100;
  --vtn-z-toast: 9999;
}

/* --- GLOBAL TOUCH OPTIMIZATION --- */
a, button, input, select, textarea, [role="button"] {
  touch-action: manipulation;
}

body,
.md-main,
.md-content {
  background: var(--vtn-bg) !important;
}

.md-sidebar {
  background: var(--vtn-bg);
}

@media screen and (min-width: 76.25em) {
  .md-sidebar {
    width: 14.5rem;
  }
  .md-sidebar--primary {
    width: 14.5rem;
  }
}

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

/* ==========================================================================
   CONTENT WIDTH
   ========================================================================== */

.md-grid {
  max-width: 74rem;
}

/* ==========================================================================
   HEADER — modern gradient, polished
   ========================================================================== */

.md-header {
  background: #1C1917;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  height: auto;
  border-bottom: none;
  color: #FAFAF9;
}

.md-header .md-header__button,
.md-header .md-search__icon,
.md-header .md-icon,
.md-header .md-header__title,
.md-header .md-header__topic,
.md-header .md-source,
.md-header [data-md-component="logo"],
.md-header .md-logo {
  color: #FAFAF9 !important;
}

.md-header .md-header__button:hover,
.md-header .md-search__icon:hover {
  opacity: 0.7;
}

[data-md-color-scheme="slate"] .md-header {
  background: #0C0A09;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-md-color-scheme="slate"] .md-typeset {
  color: var(--vtn-text);
}

[data-md-color-scheme="slate"] .md-typeset h1,
[data-md-color-scheme="slate"] .md-typeset h2,
[data-md-color-scheme="slate"] .md-typeset h3 {
  color: var(--vtn-text);
}

[data-md-color-scheme="slate"] .md-typeset h4 {
  color: var(--vtn-text-secondary);
}

[data-md-color-scheme="slate"] .md-typeset strong {
  color: var(--vtn-text);
}

[data-md-color-scheme="slate"] .md-sidebar {
  background: var(--vtn-bg);
}

[data-md-color-scheme="slate"] .md-nav__link {
  color: var(--vtn-text-secondary);
}

[data-md-color-scheme="slate"] .md-nav__item--nested > .md-nav__link {
  color: var(--vtn-text-muted);
}

[data-md-color-scheme="slate"] .md-nav--secondary .md-nav__title {
  color: var(--vtn-text-muted);
}

[data-md-color-scheme="slate"] .md-nav--secondary .md-nav__link {
  color: var(--vtn-text-muted);
}

.md-header__title {
  font-family: var(--vtn-font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.md-header__topic {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.md-header__topic:first-child {
  font-weight: 800;
  color: #FAFAF9;
  opacity: 1 !important;
  transform: none !important;
  position: relative !important;
}

.md-header__topic + .md-header__topic {
  display: none;
}


@media screen and (max-width: 76.25em) {
  .md-header__title {
    max-width: 10rem;
    overflow: hidden;
  }
  .md-header__topic + .md-header__topic {
    display: none;
  }
}

@media screen and (max-width: 550px) {
  .md-header__title {
    max-width: 7rem;
    font-size: 0.85rem;
  }
}

.md-header__inner {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  min-height: 2.4rem;
}

/* ==========================================================================
   NAVIGATION TABS — warm, readable, spaced
   ========================================================================== */

.md-tabs {
  background: #292524;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: visible;
  position: relative;
  z-index: 1;
}

.md-tabs .md-grid {
  max-width: none;
  overflow: visible;
}

.md-tabs__list {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
  flex-wrap: nowrap;
  padding-bottom: 2px;
}

.md-tabs__list::-webkit-scrollbar {
  height: 3px;
}

.md-tabs__list::-webkit-scrollbar-track {
  background: transparent;
}

.md-tabs__list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.md-tabs__list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

[data-md-color-scheme="slate"] .md-tabs {
  background: #1C1917;
}

.md-tabs__link {
  font-family: var(--vtn-font-body);
  font-weight: 500;
  font-size: 0.72rem;
  opacity: 0.75;
  padding: 0.5rem 0.45rem;
  transition: all 0.15s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.md-tabs__link:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px 4px 0 0;
}

.md-tabs__link--active {
  opacity: 1;
  font-weight: 600;
  position: relative;
  color: white;
}

.md-tabs__link--active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--vtn-brand);
  border-radius: 1px;
}

/* Fit all tabs on laptop screens */
@media screen and (max-width: 1440px) {
  .md-tabs__link {
    font-size: 0.75rem;
    padding: 0.5rem 0.5rem;
  }
}

@media screen and (max-width: 1280px) {
  .md-tabs__link {
    font-size: 0.72rem;
    padding: 0.45rem 0.4rem;
    letter-spacing: 0;
  }
}

/* ==========================================================================
   SIDEBAR — clean, readable
   ========================================================================== */

.md-sidebar {
  scrollbar-width: thin;
  scrollbar-color: var(--vtn-border) transparent;
}

.md-nav__link {
  font-family: var(--vtn-font-body);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--vtn-text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: var(--vtn-radius-sm);
  transition: all 0.12s ease;
  line-height: 1.4;
}

.md-nav__link:hover {
  color: var(--vtn-brand);
  background: var(--vtn-bg-alt);
}

.md-nav__link--active {
  color: var(--vtn-brand) !important;
  font-weight: 600;
  border-left: 2px solid var(--vtn-brand);
  padding-left: calc(0.5rem - 2px);
  background: var(--vtn-bg-alt);
}

.md-nav__item {
  padding: 0;
  margin: 0;
}

.md-nav__item--nested > .md-nav__link {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--vtn-text-muted);
  margin-top: 0.7rem;
  margin-bottom: 0.1rem;
  padding: 0.15rem 0.5rem;
}

.md-nav--secondary .md-nav__title {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vtn-text-muted);
  margin-bottom: 0.2rem;
}

.md-nav .md-nav {
  margin-left: 0.3rem;
}

/* ==========================================================================
   TYPOGRAPHY — Inter system, clean hierarchy, modular scale
   Scale: 16px (1rem) → 17.6px (1.1rem) → 20px (1.25rem) → 24px (1.5rem) → 32px (2rem)
   ========================================================================== */

.md-typeset {
  font-family: var(--vtn-font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--vtn-text-secondary);
  font-weight: 400;
  letter-spacing: -0.006em;
}

.md-typeset h1 {
  font-family: var(--vtn-font-heading);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  color: var(--vtn-text);
  margin-bottom: 0.4rem;
  line-height: 1.15;
}

.md-typeset h2 {
  font-family: var(--vtn-font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--vtn-text);
  margin-top: 2.2rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0;
  border-bottom: none;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.md-typeset h3 {
  font-family: var(--vtn-font-heading);
  font-weight: 550;
  font-size: 0.92rem;
  color: var(--vtn-text);
  margin-top: 1.6rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.md-typeset h4 {
  font-family: var(--vtn-font-heading);
  font-weight: 500;
  color: var(--vtn-text-muted);
  font-size: 0.82rem;
  margin-top: 1.1rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.md-typeset strong {
  color: var(--vtn-text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.md-typeset em {
  font-style: italic;
}

/* ==========================================================================
   LINKS — brand color, animated underline
   ========================================================================== */

.md-typeset a:not(.md-button):not(.md-nav__link):not(.vtn-card):not(.vtn-cta):not(.vtn-featured-card):not(.vtn-interview-highlight-btn) {
  color: var(--vtn-brand);
}

/* ==========================================================================
   CODE — clean, minimal border
   ========================================================================== */

.md-typeset pre {
  border-radius: 8px;
  border: 1px solid #3d3f41;
  margin: 1.6em 0;
  background: #2b2b2b !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: relative;
  overflow: hidden;
}

[data-md-color-scheme="slate"] .md-typeset pre {
  background: #2b2b2b !important;
  border-color: #3d3f41;
}

.md-typeset pre::before {
  content: none;
}

.md-typeset pre::after {
  content: none;
}

.md-typeset pre > code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  padding: 0.9em 1.1em;
  color: #A9B7C6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-md-color-scheme="slate"] .md-typeset pre > code {
  color: #A9B7C6;
}

.md-typeset code:not(pre code) {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  background: #3C3F41;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 400;
  border: 1px solid #4E5254;
  color: #A9B7C6;
}

[data-md-color-scheme="slate"] .md-typeset code:not(pre code) {
  background: #3C3F41;
  border-color: #4E5254;
  color: #A9B7C6;
}

.highlight .filename {
  background: #313335;
  color: #A9B7C6;
  font-weight: 500;
  padding: 0.4em 1.2em;
  border-radius: 8px 8px 0 0;
  font-size: 0.8rem;
  border-bottom: 1px solid #3d3f41;
}

[data-md-color-scheme="slate"] .highlight .filename {
  background: #313335;
  color: #A9B7C6;
  border-bottom-color: #3d3f41;
}

.md-clipboard {
  color: var(--vtn-text-muted) !important;
  transition: all 0.2s ease;
}
.md-clipboard:hover {
  color: var(--vtn-brand) !important;
  transform: scale(1.1);
}
.md-clipboard:active {
  transform: scale(0.95);
}

/* Syntax highlighting — IntelliJ Darcula theme */
.md-typeset .highlight .hll { background: rgba(50, 89, 148, 0.3) !important; }
.md-typeset .highlight .c,
.md-typeset .highlight .cm,
.md-typeset .highlight .c1,
.md-typeset .highlight .cs,
.md-typeset .highlight .cp { color: #808080 !important; font-style: italic !important; }
.md-typeset .highlight .k,
.md-typeset .highlight .kc,
.md-typeset .highlight .kd,
.md-typeset .highlight .kn,
.md-typeset .highlight .kp,
.md-typeset .highlight .kr,
.md-typeset .highlight .kt { color: #CC7832 !important; font-weight: 600 !important; }
.md-typeset .highlight .s,
.md-typeset .highlight .s1,
.md-typeset .highlight .s2,
.md-typeset .highlight .sb,
.md-typeset .highlight .sc,
.md-typeset .highlight .sd,
.md-typeset .highlight .sh { color: #6A8759 !important; }
.md-typeset .highlight .mi,
.md-typeset .highlight .mf,
.md-typeset .highlight .mh,
.md-typeset .highlight .mo,
.md-typeset .highlight .il { color: #6897BB !important; }
.md-typeset .highlight .na { color: #BBB529 !important; }
.md-typeset .highlight .nb,
.md-typeset .highlight .nc,
.md-typeset .highlight .ni,
.md-typeset .highlight .ne { color: #A9B7C6 !important; }
.md-typeset .highlight .nd { color: #BBB529 !important; }
.md-typeset .highlight .nf { color: #FFC66D !important; }
.md-typeset .highlight .nn,
.md-typeset .highlight .nt { color: #A9B7C6 !important; }
.md-typeset .highlight .nv,
.md-typeset .highlight .no { color: #9876AA !important; }
.md-typeset .highlight .o,
.md-typeset .highlight .ow { color: #A9B7C6 !important; }
.md-typeset .highlight .p { color: #A9B7C6 !important; }
.md-typeset .highlight .se { color: #CC7832 !important; }
.md-typeset .highlight .si { color: #CC7832 !important; }
.md-typeset .highlight .err { color: #BC3F3C !important; }
.md-typeset .highlight .w { color: #A9B7C6 !important; }
.md-typeset .highlight .n { color: #A9B7C6 !important; }

/* Syntax highlighting — dark mode inherits Darcula (same dark bg in both modes) */

/* ==========================================================================
   ADMONITIONS — subtle, clean
   ========================================================================== */

.md-typeset .admonition,
.md-typeset details {
  border-radius: var(--vtn-radius);
  border: 1px solid var(--vtn-border);
  box-shadow: none;
  overflow: hidden;
  margin: 1.5em 0;
  border-left: 3px solid;
  background: var(--vtn-surface);
  transition: box-shadow 0.2s ease;
}

.md-typeset details:hover {
  box-shadow: var(--vtn-shadow-sm);
}

.md-typeset details > summary {
  cursor: pointer;
  transition: background 0.15s ease;
}

.md-typeset details > summary:hover {
  background: var(--vtn-bg-alt) !important;
}

.md-typeset .admonition-title,
.md-typeset summary {
  font-family: var(--vtn-font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: -0.01em;
  background: var(--vtn-bg-alt) !important;
}

.md-typeset .note { border-left-color: var(--vtn-info); }
.md-typeset .tip, .md-typeset .hint { border-left-color: var(--vtn-success); }
.md-typeset .warning, .md-typeset .caution { border-left-color: var(--vtn-warning); }
.md-typeset .danger, .md-typeset .error { border-left-color: var(--vtn-danger); }
.md-typeset .abstract, .md-typeset .summary { border-left-color: var(--vtn-brand); }
.md-typeset .example { border-left-color: var(--vtn-text-muted); }

/* ==========================================================================
   TABLES — professional, distinctive
   ========================================================================== */

.md-typeset table:not([class]) {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius);
  overflow: hidden;
  width: 100%;
  font-size: 0.82rem;
}

.md-typeset table:not([class]) th {
  background: var(--vtn-bg-alt);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vtn-text-secondary);
  padding: 0.7rem 1rem;
  border-bottom: 2px solid var(--vtn-border);
}

.md-typeset table:not([class]) td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--vtn-border);
  vertical-align: top;
}

.md-typeset table:not([class]) tr:last-child td {
  border-bottom: none;
}

.md-typeset table:not([class]) tr:hover td {
  background: rgba(180, 83, 9, 0.02);
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background: var(--vtn-bg-alt);
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) tr:hover td {
  background: rgba(245, 158, 11, 0.04);
}

/* ==========================================================================
   SEARCH
   ========================================================================== */

.md-search__input {
  border-radius: var(--vtn-radius-full) !important;
}

.md-search-result__meta {
  color: var(--vtn-brand);
  font-weight: 600;
}

/* ==========================================================================
   FOOTER — warm dark, matching header
   ========================================================================== */

.md-footer {
  background: #1C1917;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-md-color-scheme="slate"] .md-footer {
  background: #0C0A09;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.md-footer-meta {
  background: transparent;
}

/* ==========================================================================
   TABLE OF CONTENTS
   ========================================================================== */

.md-nav--secondary {
  border-left: 1px solid var(--vtn-border);
}

.md-nav--secondary .md-nav__link {
  font-size: 0.68rem;
  padding: 0.12rem 0.5rem;
  line-height: 1.3;
  color: var(--vtn-text-muted);
}

.md-nav--secondary .md-nav__link--active {
  color: var(--vtn-brand);
  font-weight: 600;
}

.md-nav--secondary .md-nav__item {
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   CONTENT TABS
   ========================================================================== */

.md-typeset .tabbed-labels > label {
  font-weight: 500;
  font-size: 0.88rem;
}

.md-typeset .tabbed-labels > label:hover {
  color: var(--vtn-brand);
}

.md-typeset .tabbed-labels > label.tabbed-labels__active,
.md-typeset .tabbed-set > input:checked + label {
  color: var(--vtn-brand);
  border-color: var(--vtn-brand);
}

/* ==========================================================================
   TASK LISTS
   ========================================================================== */

.md-typeset [type="checkbox"] {
  accent-color: var(--vtn-brand);
}

.md-typeset .task-list-control [type="checkbox"]:checked {
  accent-color: var(--vtn-brand);
}

.md-typeset .task-list-indicator::after {
  background-color: var(--vtn-brand) !important;
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--vtn-border) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--vtn-border-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--vtn-text-muted);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media screen and (max-width: 76.25em) {
  .md-nav--primary .md-nav__title {
    background: linear-gradient(135deg, #1C1917, #292524);
    color: white;
    font-weight: 600;
    font-family: var(--vtn-font-body);
  }
  .md-nav--primary .md-nav__title .md-nav__icon::after {
    color: white;
  }
}

@media screen and (max-width: 768px) {
  .md-typeset h1 { font-size: 1.5rem; }
  .md-typeset h2 { font-size: 1.15rem; }
  .md-typeset h3 { font-size: 0.88rem; }
  .md-typeset { font-size: 0.86rem; }
  .vtn-hero h1 { font-size: 2rem !important; }
}

@media screen and (max-width: 550px) {
  .md-typeset { font-size: 0.84rem; }
  .md-typeset h1 { font-size: 1.3rem; }
  .md-typeset h2 { font-size: 1.05rem; }
  .md-content {
    padding: 0 0.5rem;
  }
  .vtn-hero {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding: 2.5rem 1.5rem 2rem;
    border-radius: var(--vtn-radius);
  }
  .vtn-hero h1 {
    font-size: 1.6rem !important;
    line-height: 1.15 !important;
  }
  .vtn-hero .vtn-subtitle {
    font-size: 0.9rem;
  }
  .vtn-hero .vtn-stats {
    gap: 1.5rem;
  }
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */

.md-top {
  background: var(--vtn-brand) !important;
  color: white;
  border-radius: var(--vtn-radius-full);
  font-weight: 600;
}

.md-top:hover {
  background: var(--vtn-brand-dark) !important;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.md-typeset .md-button {
  border-radius: var(--vtn-radius-sm);
  font-weight: 600;
}

.md-typeset .md-button--primary {
  background: var(--vtn-brand);
  border-color: var(--vtn-brand);
  color: white;
}

.md-typeset .md-button--primary:hover {
  background: var(--vtn-brand-dark);
  border-color: var(--vtn-brand-dark);
}

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */

.md-progress {
  background: var(--vtn-brand);
}

/* ==========================================================================
   ANNOTATIONS
   ========================================================================== */

.md-annotation__index {
  background: var(--vtn-brand) !important;
}

/* ==========================================================================
   SELECTION
   ========================================================================== */

::selection {
  background: rgba(180, 83, 9, 0.15);
  color: var(--vtn-text);
}

[data-md-color-scheme="slate"] ::selection {
  background: rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   HEADING ANCHOR HIGHLIGHT
   ========================================================================== */

:target {
  scroll-margin-top: 80px;
}
:target > * {
  animation: vtn-highlight-flash 2s ease-out;
}
@keyframes vtn-highlight-flash {
  0% { background-color: rgba(180, 83, 9, 0.12); border-radius: 4px; }
  100% { background-color: transparent; }
}

/* ==========================================================================
   ACTIVE NAV ITEM INDICATOR
   ========================================================================== */

.md-nav__link--active {
  position: relative;
  font-weight: 600 !important;
}
.md-nav__link--active::before {
  content: "";
  position: absolute;
  left: -0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--vtn-brand);
  border-radius: 2px;
}

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */

/* --- Hero — editorial, left-aligned, like reference --- */

.vtn-hero {
  text-align: left;
  padding: 4rem 2.5rem 3.5rem;
  margin-bottom: 3rem;
  margin-left: -2rem;
  margin-right: -2rem;
  border-bottom: none;
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius-lg);
  box-shadow: var(--vtn-shadow-md);
  position: relative;
  overflow: hidden;
}

.vtn-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(180, 83, 9, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

[data-md-color-scheme="slate"] .vtn-hero::before {
  background: radial-gradient(ellipse at top right, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
}

.vtn-hero .vtn-tag {
  display: inline-block;
  padding: 0.35em 0.9em;
  background: var(--vtn-brand);
  color: white;
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--vtn-radius-full);
  margin-bottom: 1.2rem;
}

.vtn-hero h1 {
  font-family: var(--vtn-font-heading) !important;
  color: var(--vtn-text) !important;
  font-size: 2.8rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.3rem !important;
  letter-spacing: -0.035em !important;
  line-height: 1.1 !important;
  -webkit-text-fill-color: var(--vtn-text) !important;
}

.vtn-hero .vtn-author {
  font-size: 0.95rem;
  color: var(--vtn-text-muted);
  margin-bottom: 1rem;
}

.vtn-hero .vtn-author strong {
  color: var(--vtn-text);
}

.vtn-hero .vtn-subtitle {
  color: var(--vtn-text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.65;
  margin-top: 0.8rem;
}

.vtn-hero .vtn-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.vtn-hero .vtn-stat {
  position: relative;
  padding-right: 2.5rem;
}

.vtn-hero .vtn-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--vtn-border);
}

@media (max-width: 550px) {
  .vtn-hero .vtn-stat { padding-right: 0; }
  .vtn-hero .vtn-stat::after { display: none; }
}

.vtn-hero .vtn-stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--vtn-text);
  display: block;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  -webkit-text-fill-color: var(--vtn-text) !important;
}

.vtn-hero .vtn-stat-label {
  font-size: 0.7rem;
  color: var(--vtn-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vtn-hero .vtn-cta {
  display: inline-block;
  margin-top: 1.8rem;
  padding: 0.8rem 2.2rem;
  background: var(--vtn-brand);
  color: white !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--vtn-radius-sm);
  text-decoration: none !important;
  border: none !important;
  transition: all var(--vtn-transition);
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.2);
}

.vtn-hero .vtn-cta:hover {
  background: var(--vtn-brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(180, 83, 9, 0.3);
}

.vtn-hero .vtn-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.2);
}

/* --- Section headers --- */

.vtn-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--vtn-text-muted);
  margin: 3rem 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.vtn-section-title::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--vtn-brand);
  flex-shrink: 0;
}

.vtn-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--vtn-border) 0%, transparent 100%);
}

/* --- Card grid --- */

.vtn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media screen and (max-width: 900px) {
  .vtn-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 550px) {
  .vtn-grid { grid-template-columns: 1fr; }
}

/* --- Cards --- */

.vtn-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius);
  padding: 1.15rem 1.3rem;
  text-decoration: none !important;
  color: var(--vtn-text) !important;
  transition: all var(--vtn-transition);
  position: relative;
  overflow: hidden;
}

.vtn-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--vtn-brand);
  transform: scaleY(0);
  transition: transform var(--vtn-transition);
  transform-origin: bottom;
  border-radius: 0 2px 2px 0;
}

.vtn-card:hover {
  border-color: var(--vtn-border-dark);
  box-shadow: var(--vtn-shadow-glow);
  transform: translateY(-2px);
}

.vtn-card:hover::before {
  transform: scaleY(1);
}

.vtn-card:active {
  transform: translateY(0);
  box-shadow: var(--vtn-shadow-sm);
}

.vtn-card-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--vtn-bg-alt);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius);
  transition: all var(--vtn-transition);
}

.vtn-card:hover .vtn-card-icon {
  background: var(--vtn-brand);
  border-color: var(--vtn-brand);
  color: white;
  transform: scale(1.05);
}

.vtn-card:hover .vtn-card-icon .twemoji,
.vtn-card:hover .vtn-card-icon svg {
  filter: brightness(0) invert(1);
}

.vtn-card-body {
  min-width: 0;
}

.vtn-card-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--vtn-text);
  display: block;
}

.vtn-card:hover .vtn-card-title {
  color: var(--vtn-brand);
}

.vtn-card-desc {
  font-size: 0.78rem;
  color: var(--vtn-text-muted);
  line-height: 1.45;
  margin-top: 2px;
  display: block;
}

/* --- Badges --- */

.vtn-badge {
  display: inline-block;
  padding: 0.12em 0.45em;
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 3px;
  margin-left: 0.4em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.vtn-badge-new {
  background: var(--vtn-brand);
  color: white;
}

.vtn-badge-hot {
  background: linear-gradient(135deg, var(--vtn-brand) 0%, var(--vtn-brand-dark) 100%);
  color: white;
}

/* ==========================================================================
   QUESTION ADMONITIONS
   ========================================================================== */

.md-typeset .admonition.question,
.md-typeset details.question {
  border-color: #e2e8f0 !important;
  background: #fafbfc !important;
}

.md-typeset .admonition.question > .admonition-title,
.md-typeset details.question > summary {
  background: #f5f7fa !important;
  border-bottom: 1px solid #e2e8f0;
  color: #334155 !important;
}

.md-typeset .admonition.question > .admonition-title::before,
.md-typeset details.question > summary::before {
  background-color: #94a3b8 !important;
  -webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"/></svg>') !important;
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"/></svg>') !important;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.question,
[data-md-color-scheme="slate"] .md-typeset details.question {
  border-color: #334155 !important;
  background: #1e293b !important;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.question > .admonition-title,
[data-md-color-scheme="slate"] .md-typeset details.question > summary {
  background: #263347 !important;
  border-bottom-color: #334155;
  color: #cbd5e1 !important;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.question > .admonition-title::before,
[data-md-color-scheme="slate"] .md-typeset details.question > summary::before {
  background-color: #64748b !important;
}

/* ==========================================================================
   CONTENT BODY
   ========================================================================== */

.md-typeset p {
  margin-bottom: 0.6em;
}

.md-typeset li {
  margin-bottom: 0.2em;
}

.md-typeset ul, .md-typeset ol {
  margin-bottom: 0.75em;
}

/* ==========================================================================
   HORIZONTAL RULES
   ========================================================================== */

.md-typeset hr {
  border: none;
  border-top: 1px solid var(--vtn-border);
  margin: 2.5em 0;
}

/* ==========================================================================
   BLOCKQUOTES — distinctive, brand-accented
   ========================================================================== */

.md-typeset blockquote {
  border-left: 3px solid var(--vtn-brand);
  background: rgba(180, 83, 9, 0.03);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--vtn-radius-sm) var(--vtn-radius-sm) 0;
  font-style: normal;
}
.md-typeset blockquote p {
  color: var(--vtn-text-secondary);
}

/* ==========================================================================
   PAGE-WIDE CONSISTENCY
   ========================================================================== */

.md-content__inner {
  padding-bottom: 3rem;
  max-width: 48rem;
  animation: vtn-fade-in 0.4s ease-out;
}

@keyframes vtn-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .md-content__inner { animation: none; }
}

/* Homepage needs full width for grids */
.md-content__inner:has(.vtn-hero) {
  max-width: 72rem;
}

.md-typeset img {
  border-radius: var(--vtn-radius);
  border: 1px solid var(--vtn-border);
}

/* ==========================================================================
   AI CHATBOT WIDGET
   ========================================================================== */

.vtn-chat-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  background: var(--vtn-brand);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--vtn-transition-fast);
}

.vtn-chat-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(180, 83, 9, 0.4);
}

.vtn-chat-fab svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.vtn-chat-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 370px;
  max-height: 500px;
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius);
  box-shadow: var(--vtn-shadow-lg);
  z-index: 1001;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.vtn-chat-panel.active {
  display: flex;
}

.vtn-chat-header {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--vtn-border);
  background: var(--vtn-bg-alt);
}

.vtn-chat-header h3 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--vtn-text);
}

.vtn-chat-header .vtn-chat-status {
  font-size: 0.7rem;
  color: var(--vtn-success);
  font-weight: 500;
}

.vtn-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: var(--vtn-bg);
}

.vtn-chat-msg {
  max-width: 85%;
  padding: 0.55rem 0.85rem;
  border-radius: var(--vtn-radius-sm);
  font-size: 0.83rem;
  line-height: 1.5;
}

.vtn-chat-msg.bot {
  background: var(--vtn-surface);
  color: var(--vtn-text-secondary);
  align-self: flex-start;
  border: 1px solid var(--vtn-border);
}

.vtn-chat-msg.user {
  background: var(--vtn-brand);
  color: white;
  align-self: flex-end;
}

.vtn-chat-input-area {
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--vtn-border);
  display: flex;
  gap: 0.5rem;
  background: var(--vtn-surface);
}

.vtn-chat-input {
  flex: 1;
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius-sm);
  padding: 0.5rem 0.8rem;
  font-size: 0.83rem;
  background: var(--vtn-bg);
  color: var(--vtn-text);
  font-family: inherit;
}

.vtn-chat-input:focus {
  border-color: var(--vtn-brand);
  outline: 2px solid rgba(180, 83, 9, 0.3);
  outline-offset: 1px;
}

.vtn-chat-send {
  padding: 0.5rem 0.85rem;
  min-height: 44px;
  min-width: 44px;
  background: var(--vtn-brand);
  color: white;
  border: none;
  border-radius: var(--vtn-radius-sm);
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background var(--vtn-transition-fast);
}

.vtn-chat-send:hover {
  background: var(--vtn-brand-dark);
}

.vtn-chat-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vtn-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1.2rem 0.7rem;
  background: var(--vtn-bg);
}

.vtn-chat-suggestion {
  font-size: 0.7rem;
  padding: 0.4em 0.75em;
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius-full);
  color: var(--vtn-text-muted);
  cursor: pointer;
  transition: all 0.12s ease;
}

.vtn-chat-suggestion:hover {
  border-color: var(--vtn-brand);
  color: var(--vtn-brand);
}

@media screen and (max-width: 550px) {
  .vtn-chat-panel {
    width: calc(100vw - 2rem);
    right: 1rem;
    bottom: 5rem;
  }
  .vtn-chat-fab {
    right: 1rem;
    bottom: 1.5rem;
    width: 48px;
    height: 48px;
  }
}

/* ==========================================================================
   MERMAID DIAGRAMS — Professional Documentation Quality
   Inspired by: Stripe, Cloudflare, Vercel docs
   ========================================================================== */

/* --- Container: centered, padded, subtle background --- */
pre.mermaid,
.mermaid {
  margin: 2rem auto;
  padding: 1.75rem 1.5rem;
  background: #F5F3F0;
  border: 1px solid var(--vtn-border);
  border-radius: 12px;
  overflow-x: auto;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

pre.mermaid:hover,
.mermaid:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Dark mode container — warm cream canvas for readability */
[data-md-color-scheme="slate"] pre.mermaid,
[data-md-color-scheme="slate"] .mermaid {
  background: #F5F3F0;
  border-color: #57534E;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --md-default-fg-color: #1C1917;
  --md-default-fg-color--light: #44403C;
  --md-default-fg-color--lighter: #D6D3D1;
  --md-default-fg-color--lightest: #ECEAE6;
  --md-default-bg-color: #F5F3F0;
  --md-mermaid-edge-color: #1C1917;
  --md-mermaid-label-bg-color: #F5F3F0;
  --md-mermaid-label-fg-color: #1C1917;
  --md-mermaid-node-bg-color: #ECEAE6;
  --md-mermaid-node-fg-color: #1C1917;
}

[data-md-color-scheme="slate"] pre.mermaid:hover,
[data-md-color-scheme="slate"] .mermaid:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* --- SVG sizing — prevent too-small or too-large diagrams --- */
pre.mermaid svg,
.mermaid svg {
  max-width: 100%;
  height: auto;
  min-height: 100px;
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* --- Node text: consistent, readable typography --- */
.mermaid .nodeLabel,
.mermaid .label {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

.mermaid .edgeLabel {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

/* --- Node shapes: rounded, consistent padding --- */
.mermaid .node rect,
.mermaid .node polygon,
.mermaid .node circle {
  rx: 8px;
  ry: 8px;
}

/* Extra internal padding for node text alignment */
.mermaid .node .label {
  padding: 4px 8px !important;
}

/* --- Edge/arrow styling: clean 2px lines --- */
.mermaid .edgePath .path,
.mermaid .flowchart-link {
  stroke-width: 2px !important;
}

/* Arrow markers */
.mermaid marker path {
  stroke-width: 1px;
}

/* --- Subgraph/cluster styling: subtle, organized --- */
.mermaid .cluster rect {
  rx: 12px !important;
  ry: 12px !important;
  stroke-width: 1.5px !important;
  fill: rgba(226, 232, 240, 0.3) !important;
  stroke: #CBD5E1 !important;
}

.mermaid .cluster span,
.mermaid .cluster text {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  fill: #475569 !important;
  color: #475569 !important;
}

/* --- Sequence diagram: professional actor/message styling --- */
.mermaid .actor {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

.mermaid .messageText {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.mermaid .loopText {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.mermaid .noteText {
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}

/* Sequence diagram lines — crisper */
.mermaid .messageLine0,
.mermaid .messageLine1 {
  stroke-width: 1.5px !important;
}

/* --- Dark mode text overrides — force dark text on cream --- */
[data-md-color-scheme="slate"] .mermaid .edgeLabel,
[data-md-color-scheme="slate"] .mermaid .edgeLabel span,
[data-md-color-scheme="slate"] .mermaid .relationshipLabel,
[data-md-color-scheme="slate"] .mermaid .messageText,
[data-md-color-scheme="slate"] .mermaid .loopText,
[data-md-color-scheme="slate"] .mermaid .labelText,
[data-md-color-scheme="slate"] .mermaid .actor,
[data-md-color-scheme="slate"] .mermaid .legend text,
[data-md-color-scheme="slate"] .mermaid .classTitleText,
[data-md-color-scheme="slate"] .mermaid .classText {
  fill: #1C1917 !important;
  color: #1C1917 !important;
}

[data-md-color-scheme="slate"] .mermaid .relation,
[data-md-color-scheme="slate"] .mermaid .edgePath .path,
[data-md-color-scheme="slate"] .mermaid .flowchart-link,
[data-md-color-scheme="slate"] .mermaid line {
  stroke: #1C1917 !important;
}

[data-md-color-scheme="slate"] .mermaid marker path {
  fill: #1C1917 !important;
  stroke: #1C1917 !important;
}

[data-md-color-scheme="slate"] .mermaid .classGroup rect {
  stroke: #78716C !important;
}

[data-md-color-scheme="slate"] .mermaid .classGroup line {
  stroke: #A8A29E !important;
}

[data-md-color-scheme="slate"] .mermaid .cluster rect {
  fill: #ECEAE6 !important;
  stroke: #D6D3D1 !important;
}

[data-md-color-scheme="slate"] .mermaid .cluster span,
[data-md-color-scheme="slate"] .mermaid .cluster text {
  fill: #44403C !important;
  color: #44403C !important;
}

/* --- Class diagram text inheritance --- */
.mermaid .classLabel text,
.mermaid .classLabel tspan {
  fill: inherit !important;
}

/* --- Edge label backgrounds — visible, subtle --- */
.mermaid .edgeLabel rect {
  opacity: 1 !important;
  rx: 4px;
  ry: 4px;
}

.mermaid .edgeLabel rect[data-vtn-bg] {
  opacity: 1 !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
}

/* --- Responsive: ensure diagrams don't overflow on mobile --- */
@media screen and (max-width: 768px) {
  pre.mermaid,
  .mermaid {
    padding: 1rem 0.75rem;
    margin: 1.5rem -0.5rem;
    border-radius: 8px;
  }
}

/* --- Print: clean black and white --- */
@media print {
  pre.mermaid,
  .mermaid {
    border: 1px solid #ccc;
    box-shadow: none;
    background: white;
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   DESIGN PATTERNS — diagram container
   ========================================================================== */

/* ==========================================================================
   DECORATIVE — editorial page accent
   ========================================================================== */

.md-content__inner > .md-typeset > h1:first-child {
  padding-top: 0.5rem;
  border-top: 3px solid var(--vtn-brand);
  display: inline-block;
}

/* ==========================================================================
   LOGIN GATE OVERLAY
   ========================================================================== */

#vtn-login-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-default-bg-color, #fff);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(180, 83, 9, 0.04) 0%, transparent 60%);
}
.vtn-login-gate-card {
  background: var(--vtn-surface, #fff);
  border-radius: 20px;
  padding: 2.5rem 2.2rem 2rem;
  text-align: center;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--vtn-border, #E7E5E4);
}
[data-md-color-scheme="slate"] .vtn-login-gate-card {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}
.vtn-login-gate-icon {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vtn-login-gate-card h2 {
  margin: 0 0 0.5rem;
  font-family: var(--vtn-font-heading, "IBM Plex Sans", sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--vtn-text, #1C1917);
  letter-spacing: -0.02em;
}
.vtn-login-gate-card p {
  margin: 0 0 1.8rem;
  font-size: 0.88rem;
  color: var(--vtn-text-muted, #78716C);
  line-height: 1.6;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.8rem;
}
.vtn-login-gate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--vtn-brand, #B45309);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(180, 83, 9, 0.3);
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.vtn-login-gate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.4);
}

/* ==========================================================================
   INTERVIEW PREP HIGHLIGHT BANNER
   ========================================================================== */

.vtn-interview-highlight {
  margin: 1.5rem 0;
}
.vtn-interview-highlight-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: linear-gradient(135deg, #FFF3E0 0%, #FFF8E1 100%);
  border: 2px solid var(--vtn-brand);
  border-radius: var(--vtn-radius);
  box-shadow: 0 2px 12px rgba(180, 83, 9, 0.12);
}
.vtn-interview-highlight-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.vtn-interview-highlight-text {
  flex: 1;
}
.vtn-interview-highlight-text h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #92400E;
}
.vtn-interview-highlight-text p {
  margin: 0;
  font-size: 0.85rem;
  color: #78350F;
  line-height: 1.5;
}
.vtn-interview-highlight-btn {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff !important;
  background: var(--vtn-brand) !important;
  background-image: none !important;
  border-radius: 20px;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.3);
  transition: all 0.2s ease;
}
.vtn-interview-highlight-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.4);
  color: #fff !important;
}
[data-md-color-scheme="slate"] .vtn-interview-highlight-inner {
  background: linear-gradient(135deg, #44310d 0%, #3d2e0a 100%);
  border-color: #B45309;
}
[data-md-color-scheme="slate"] .vtn-interview-highlight-text h3 {
  color: #FDE68A;
}
[data-md-color-scheme="slate"] .vtn-interview-highlight-text p {
  color: #FCD34D;
}
@media (max-width: 600px) {
  .vtn-interview-highlight-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   PROGRESS TRACKING
   ========================================================================== */

.vtn-mark-complete-wrapper {
  display: flex;
  justify-content: center;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--vtn-border);
}

.vtn-mark-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--vtn-font-body);
  color: var(--vtn-text-secondary);
  background: var(--vtn-surface);
  border: 2px solid var(--vtn-border);
  border-radius: var(--vtn-radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.vtn-mark-btn:hover {
  border-color: var(--vtn-success);
  color: var(--vtn-success);
  background: var(--vtn-bg-alt);
}

.vtn-mark-btn--done {
  color: var(--vtn-success);
  border-color: var(--vtn-success);
  background: rgba(45, 122, 79, 0.06);
}

[data-md-color-scheme="slate"] .vtn-mark-btn--done {
  background: rgba(92, 184, 122, 0.08);
}

.vtn-mark-btn--done:hover {
  color: var(--vtn-danger);
  border-color: var(--vtn-danger);
  background: rgba(197, 48, 48, 0.04);
}

/* Progress bars on learning path cards */

.vtn-path-progress {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.vtn-path-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--vtn-border);
  border-radius: 2px;
  overflow: hidden;
}

.vtn-path-progress-fill {
  height: 100%;
  background: var(--vtn-success);
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
}

.vtn-path-progress-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--vtn-text-muted);
  white-space: nowrap;
}

/* Completed step links */

.vtn-step-done {
  position: relative;
}

.vtn-step-done::after {
  content: " \2713";
  color: var(--vtn-success);
  font-weight: 700;
}

/* Sidebar checkmarks */

.md-nav__link[data-completed]::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 0.4rem;
  background: var(--vtn-success);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   PROGRESS DASHBOARD
   ========================================================================== */

.vtn-progress-dashboard {
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--vtn-shadow-sm);
}

.vtn-dashboard-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--vtn-border);
}

.vtn-dashboard-ring {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.vtn-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.vtn-ring-bg {
  fill: none;
  stroke: var(--vtn-border);
  stroke-width: 6;
}

.vtn-ring-fill {
  fill: none;
  stroke: var(--vtn-success);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 0.8s ease;
}

.vtn-ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.vtn-ring-pct {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--vtn-text);
  line-height: 1.1;
}

.vtn-ring-label {
  display: block;
  font-size: 0.6rem;
  color: var(--vtn-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vtn-dashboard-summary h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--vtn-font-heading);
  color: var(--vtn-text);
}

.vtn-dashboard-summary p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--vtn-text-muted);
}

.vtn-dashboard-streak {
  font-size: 0.75rem;
  color: var(--vtn-brand);
  font-weight: 600;
  margin-top: 0.3rem;
}

.vtn-dashboard-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}

.vtn-section-progress {
  background: var(--vtn-bg-alt);
  border-radius: var(--vtn-radius-sm);
  padding: 0.75rem 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vtn-section-progress:hover {
  transform: translateY(-1px);
  box-shadow: var(--vtn-shadow-sm);
}

.vtn-section-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.vtn-section-progress-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--vtn-text);
}

.vtn-section-progress-count {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--vtn-text-muted);
}

.vtn-section-progress-bar {
  height: 5px;
  background: var(--vtn-border);
  border-radius: 3px;
  overflow: hidden;
}

.vtn-section-progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
  width: 0%;
}

.vtn-section-progress-bar-fill[data-pct="0"] {
  background: var(--vtn-border-dark);
}

.vtn-section-progress-bar-fill:not([data-pct="0"]) {
  background: var(--vtn-success);
}

@media (max-width: 768px) {
  .vtn-dashboard-header {
    flex-direction: column;
    text-align: center;
  }
  .vtn-dashboard-sections {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .vtn-dashboard-sections {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   READING PROGRESS BAR
   ========================================================================== */

.vtn-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--vtn-brand), var(--vtn-brand-light));
  z-index: 9999;
  transition: width 50ms linear;
  border-radius: 0 2px 2px 0;
}

/* ==========================================================================
   IMPROVED CONTENT LINKS — smooth underline animation
   ========================================================================== */

.md-typeset a:not(.md-button):not(.md-nav__link):not(.vtn-card):not(.vtn-cta):not(.vtn-featured-card):not(.vtn-interview-highlight-btn) {
  background-image: linear-gradient(var(--vtn-brand), var(--vtn-brand));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease;
  text-decoration: none;
  text-decoration-color: transparent;
}

.md-typeset a:not(.md-button):not(.md-nav__link):not(.vtn-card):not(.vtn-cta):not(.vtn-featured-card):not(.vtn-interview-highlight-btn):hover {
  background-size: 100% 2px;
  text-decoration: none;
  text-decoration-color: transparent;
}

/* ==========================================================================
   ENHANCED CONTENT TABS
   ========================================================================== */

.md-typeset .tabbed-set {
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius);
  overflow: hidden;
  margin: 1.5em 0;
}

.md-typeset .tabbed-labels {
  background: var(--vtn-bg-alt);
  border-bottom: 1px solid var(--vtn-border);
}

.md-typeset .tabbed-content {
  padding: 0.5rem;
}

/* ==========================================================================
   BETTER INLINE CODE — subtle brand tint
   ========================================================================== */

@supports (background: color-mix(in srgb, red 50%, blue)) {
  .md-typeset code:not(pre code) {
    background: color-mix(in srgb, var(--vtn-brand) 4%, var(--vtn-bg-alt));
  }
}

/* ==========================================================================
   TOOLTIP ENHANCEMENT
   ========================================================================== */

.md-typeset .md-tooltip {
  border-radius: var(--vtn-radius);
  box-shadow: var(--vtn-shadow-lg);
  border: 1px solid var(--vtn-border);
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  .vtn-chat-fab, .vtn-chat-panel { display: none !important; }
  .vtn-mark-complete-wrapper { display: none !important; }
  .vtn-progress-dashboard { display: none !important; }
  .vtn-reading-progress { display: none !important; }
  body, .md-main, .md-content { background: white !important; }
}

/* ==========================================================================
   HOMEPAGE — ENHANCED SECTIONS
   ========================================================================== */

/* --- Hero actions (dual CTAs) --- */

.vtn-hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

.vtn-hero-actions .vtn-cta {
  margin-top: 0;
}

.vtn-cta.vtn-cta-secondary,
.vtn-hero .vtn-cta.vtn-cta-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: transparent !important;
  color: var(--vtn-brand) !important;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--vtn-radius-sm);
  text-decoration: none !important;
  border: 2px solid var(--vtn-brand) !important;
  box-shadow: none !important;
  transition: all 0.15s ease;
}

.vtn-cta.vtn-cta-secondary:hover,
.vtn-hero .vtn-cta.vtn-cta-secondary:hover {
  background: var(--vtn-brand) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.2) !important;
}

/* --- Hero inline auth --- */

.vtn-hero-auth {
  margin-top: 1.2rem;
}

.vtn-hero-signin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--vtn-font-body);
  color: var(--vtn-text-muted);
  background: var(--vtn-bg-alt);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.vtn-hero-signin:hover {
  color: var(--vtn-text);
  border-color: var(--vtn-brand);
  background: var(--vtn-surface);
  box-shadow: var(--vtn-shadow-sm);
}

/* --- What's New Banner --- */

.vtn-whats-new {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1.2rem;
  background: linear-gradient(135deg, var(--vtn-surface) 0%, color-mix(in srgb, var(--vtn-brand) 4%, var(--vtn-surface)) 100%);
  border: 1px solid var(--vtn-border);
  border-left: 3px solid var(--vtn-brand);
  border-radius: var(--vtn-radius);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  animation: vtn-fade-in 0.4s ease 0.1s both;
}

.vtn-whats-new-badge {
  display: inline-block;
  padding: 0.2em 0.6em;
  background: var(--vtn-brand);
  color: white;
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--vtn-radius-full);
  flex-shrink: 0;
}

.vtn-whats-new-text {
  font-size: 0.85rem;
  color: var(--vtn-text-secondary);
}

.vtn-whats-new-text a {
  color: var(--vtn-brand) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.vtn-whats-new-text a:hover {
  text-decoration: underline !important;
}

/* --- Learning Paths --- */

.vtn-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .vtn-paths { grid-template-columns: 1fr; }
}

.vtn-path-card {
  display: flex;
  gap: 1rem;
  padding: 1.3rem;
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vtn-path-card:hover {
  border-color: var(--vtn-brand);
  box-shadow: var(--vtn-shadow-md);
  transform: translateY(-2px);
}

.vtn-path-icon {
  flex-shrink: 0;
  line-height: 1;
  color: var(--vtn-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vtn-path-content h3 {
  margin: 0 0 0.3rem 0 !important;
  font-size: 0.95rem !important;
  font-weight: 700;
  color: var(--vtn-text);
}

.vtn-path-content p {
  margin: 0 0 0.6rem 0 !important;
  font-size: 0.78rem;
  color: var(--vtn-text-muted);
  line-height: 1.4;
}

.vtn-path-steps {
  font-size: 0.72rem;
  color: var(--vtn-text-muted);
  line-height: 1.6;
}

.vtn-path-steps a {
  color: var(--vtn-brand) !important;
  text-decoration: none !important;
  font-weight: 600;
}

.vtn-path-steps a:hover {
  text-decoration: underline !important;
}

/* --- Featured Deep Dives --- */

.vtn-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .vtn-featured { grid-template-columns: 1fr; }
}

.vtn-featured-card {
  display: flex;
  flex-direction: column;
  padding: 1.3rem;
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius);
  text-decoration: none !important;
  transition: all 0.15s ease;
  cursor: pointer;
}

.vtn-featured-card:hover {
  border-color: var(--vtn-brand);
  border-left: 3px solid var(--vtn-brand);
  box-shadow: var(--vtn-shadow-md);
  transform: translateY(-2px);
}

.vtn-featured-card:active {
  transform: translateY(0);
}

.vtn-featured-tag {
  display: inline-block;
  padding: 0.15em 0.5em;
  background: var(--vtn-bg-alt);
  color: var(--vtn-text-muted);
  font-weight: 600;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--vtn-radius-full);
  margin-bottom: 0.6rem;
  align-self: flex-start;
}

.vtn-featured-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--vtn-text);
  margin-bottom: 0.4rem;
}

.vtn-featured-card:hover .vtn-featured-title {
  color: var(--vtn-brand);
}

.vtn-featured-desc {
  font-size: 0.8rem;
  color: var(--vtn-text-muted);
  line-height: 1.5;
}

/* --- Tech Stack (Companies) --- */

.vtn-tech-stack {
  margin: 3rem 0 2rem;
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--vtn-border);
  background: var(--vtn-bg-alt);
  border-radius: var(--vtn-radius);
}

.vtn-tech-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--vtn-text-light);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.vtn-tech-logos {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.vtn-tech-logos span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--vtn-text-muted);
  opacity: 0.5;
  transition: all 0.2s ease;
  cursor: default;
}

.vtn-tech-logos span:hover {
  opacity: 1;
  color: var(--vtn-brand);
  transform: translateY(-1px);
}

/* ==========================================================================
   AUTH SECTION
   ========================================================================== */

.vtn-auth-section {
  margin: 2rem 0;
  padding: 0;
}

.vtn-auth-card {
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius);
  padding: 2rem;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.vtn-auth-card.vtn-auth-compact {
  max-width: 700px;
  display: flex;
  align-items: center;
  gap: 2rem;
  text-align: left;
  padding: 1.5rem 2rem;
}

.vtn-auth-compact .vtn-auth-compact-content {
  flex: 1;
}

.vtn-auth-compact .vtn-auth-buttons {
  flex-direction: row;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .vtn-auth-card.vtn-auth-compact {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .vtn-auth-compact .vtn-auth-buttons {
    flex-direction: column;
    width: 100%;
  }
}

.vtn-auth-card h3 {
  margin: 0 0 0.5rem !important;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--vtn-text);
}

.vtn-auth-card > p,
.vtn-auth-compact-content > p {
  margin: 0 0 1.5rem !important;
  font-size: 0.85rem;
  color: var(--vtn-text-muted);
}

.vtn-auth-compact-content > p {
  margin: 0 !important;
}

.vtn-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.vtn-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--vtn-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid var(--vtn-border);
  background: var(--vtn-surface);
  color: var(--vtn-text);
  font-family: inherit;
  width: 100%;
}

.vtn-auth-btn:hover {
  border-color: var(--vtn-brand);
  box-shadow: var(--vtn-shadow-sm);
}

.vtn-auth-google:hover { border-color: #4285F4; }
.vtn-auth-microsoft:hover { border-color: #00A4EF; }

.vtn-auth-submit {
  background: var(--vtn-brand);
  color: white;
  border-color: var(--vtn-brand);
}

.vtn-auth-submit:hover {
  background: var(--vtn-brand-dark);
  border-color: var(--vtn-brand-dark);
}

.vtn-auth-link {
  background: none;
  border: none;
  color: var(--vtn-brand);
  cursor: pointer;
  font-size: 0.78rem;
  padding: 0.3rem;
  font-family: inherit;
}

.vtn-auth-link:hover {
  text-decoration: underline;
}

.vtn-email-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.vtn-input {
  padding: 0.7rem 1rem;
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius-sm);
  font-size: 0.85rem;
  background: var(--vtn-bg);
  color: var(--vtn-text);
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

.vtn-input:focus {
  border-color: var(--vtn-brand);
  outline: 2px solid rgba(180, 83, 9, 0.3);
  outline-offset: 1px;
}

/* --- User Profile (logged in) --- */

.vtn-user-profile {
  margin: 2rem 0;
}

.vtn-user-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius);
  padding: 1rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.vtn-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--vtn-border);
}

.vtn-user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vtn-user-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--vtn-text);
}

.vtn-user-email {
  font-size: 0.75rem;
  color: var(--vtn-text-muted);
}

.vtn-auth-signout {
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  width: auto;
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */

.vtn-admin-panel {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 0;
}

.vtn-admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--vtn-border);
}

.vtn-admin-header h2 {
  margin: 0 !important;
  font-size: 1.3rem;
}

.vtn-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .vtn-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

.vtn-metric-card {
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius);
  padding: 1.2rem;
  text-align: center;
}

.vtn-metric-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--vtn-brand);
  display: block;
  line-height: 1.2;
}

.vtn-metric-label {
  font-size: 0.72rem;
  color: var(--vtn-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.vtn-admin-table {
  width: 100%;
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 2rem;
}

.vtn-admin-table th {
  background: var(--vtn-bg-alt);
  padding: 0.7rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vtn-text-muted);
  text-align: left;
  border-bottom: 1px solid var(--vtn-border);
}

.vtn-admin-table td {
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--vtn-border);
  color: var(--vtn-text-secondary);
}

.vtn-admin-table tr:last-child td {
  border-bottom: none;
}

.vtn-admin-table tr:hover td {
  background: var(--vtn-bg-alt);
}

.vtn-chart-placeholder {
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius);
  padding: 2rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.vtn-chart-placeholder canvas {
  max-width: 100%;
}

.vtn-admin-section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--vtn-text);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

/* ==========================================================================
   DESIGN PATTERNS — QUICK REFERENCE CARDS
   ========================================================================== */

.dp-reference {
  margin: 2rem 0;
}

.dp-category {
  margin-bottom: 2.5rem;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--vtn-border);
  background: var(--vtn-surface);
  box-shadow: var(--vtn-shadow-md);
  transition: box-shadow 0.3s ease;
}

.dp-category:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.dp-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--vtn-border);
}

.dp-category-header h3 {
  margin: 0 !important;
  font-family: var(--vtn-font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--vtn-text);
}

.dp-category-header p {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--vtn-text-muted);
}

.dp-category-icon {
  font-size: 2rem;
  line-height: 1;
}

.dp-count {
  margin-left: auto;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--vtn-font-heading);
  opacity: 0.2;
}

.dp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.dp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.1rem 0.75rem;
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.dp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.dp-card-emoji {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
  line-height: 1;
}

.dp-card-name {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--vtn-text);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.dp-card-desc {
  display: block;
  font-size: 0.72rem;
  color: var(--vtn-text-muted);
  line-height: 1.3;
}

/* Creational — warm amber */
.dp-creational {
  border-color: #F59E0B;
  background: linear-gradient(135deg, #FFFBEB 0%, var(--vtn-surface) 100%);
}

.dp-creational .dp-category-header {
  border-bottom-color: #FDE68A;
}

.dp-creational .dp-card {
  background: rgba(255, 251, 235, 0.7);
  border-color: #FDE68A;
}

.dp-creational .dp-card:hover {
  background: #FEF3C7;
  border-color: #F59E0B;
}

.dp-creational .dp-count {
  color: #D97706;
}

/* Structural — fresh green */
.dp-structural {
  border-color: #10B981;
  background: linear-gradient(135deg, #ECFDF5 0%, var(--vtn-surface) 100%);
}

.dp-structural .dp-category-header {
  border-bottom-color: #A7F3D0;
}

.dp-structural .dp-card {
  background: rgba(236, 253, 245, 0.7);
  border-color: #A7F3D0;
}

.dp-structural .dp-card:hover {
  background: #D1FAE5;
  border-color: #10B981;
}

.dp-structural .dp-count {
  color: #059669;
}

/* Behavioral — rich purple */
.dp-behavioral {
  border-color: #8B5CF6;
  background: linear-gradient(135deg, #F5F3FF 0%, var(--vtn-surface) 100%);
}

.dp-behavioral .dp-category-header {
  border-bottom-color: #DDD6FE;
}

.dp-behavioral .dp-card {
  background: rgba(245, 243, 255, 0.7);
  border-color: #DDD6FE;
}

.dp-behavioral .dp-card:hover {
  background: #EDE9FE;
  border-color: #8B5CF6;
}

.dp-behavioral .dp-count {
  color: #7C3AED;
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] .dp-category {
  background: var(--vtn-surface);
  border-color: var(--vtn-border);
}

[data-md-color-scheme="slate"] .dp-creational {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, var(--vtn-surface) 100%);
  border-color: rgba(251, 191, 36, 0.3);
}

[data-md-color-scheme="slate"] .dp-creational .dp-card {
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.2);
}

[data-md-color-scheme="slate"] .dp-creational .dp-card:hover {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.5);
}

[data-md-color-scheme="slate"] .dp-structural {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, var(--vtn-surface) 100%);
  border-color: rgba(16, 185, 129, 0.3);
}

[data-md-color-scheme="slate"] .dp-structural .dp-card {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.2);
}

[data-md-color-scheme="slate"] .dp-structural .dp-card:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.5);
}

[data-md-color-scheme="slate"] .dp-behavioral {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, var(--vtn-surface) 100%);
  border-color: rgba(139, 92, 246, 0.3);
}

[data-md-color-scheme="slate"] .dp-behavioral .dp-card {
  background: rgba(139, 92, 246, 0.06);
  border-color: rgba(139, 92, 246, 0.2);
}

[data-md-color-scheme="slate"] .dp-behavioral .dp-card:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.5);
}

[data-md-color-scheme="slate"] .dp-card-name {
  color: var(--vtn-text);
}

[data-md-color-scheme="slate"] .dp-category-header h3 {
  color: var(--vtn-text);
}

/* Dark mode chat FAB shadow */
[data-md-color-scheme="slate"] .vtn-chat-fab {
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

[data-md-color-scheme="slate"] .vtn-chat-fab:hover {
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.35);
}

/* Dark mode CTA shadow */
[data-md-color-scheme="slate"] .vtn-hero .vtn-cta {
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

[data-md-color-scheme="slate"] .vtn-hero .vtn-cta:hover {
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
  .dp-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .dp-card {
    padding: 0.75rem 0.5rem;
  }
  .dp-card-emoji {
    font-size: 1.6rem;
  }
  .dp-card-name {
    font-size: 0.72rem;
  }
  .dp-card-desc {
    font-size: 0.65rem;
  }
  .dp-category {
    padding: 1rem;
  }
  .dp-category-header h3 {
    font-size: 1.15rem;
  }
}

/* === DevOps Page Animations & Styles === */

@keyframes vtn-fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes vtn-scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes vtn-slide-in-left {
  from { opacity: 0; transform: translateX(-32px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes vtn-slide-in-right {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes vtn-pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180, 83, 9, 0.15); }
  50% { box-shadow: 0 0 20px 4px rgba(180, 83, 9, 0.2); }
}

@keyframes vtn-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.vtn-animate-fade-up {
  animation: vtn-fade-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.vtn-animate-scale {
  animation: vtn-scale-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.vtn-animate-slide-left {
  animation: vtn-slide-in-left 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.vtn-animate-slide-right {
  animation: vtn-slide-in-right 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.vtn-delay-1 { animation-delay: 0.1s; }
.vtn-delay-2 { animation-delay: 0.2s; }
.vtn-delay-3 { animation-delay: 0.3s; }
.vtn-delay-4 { animation-delay: 0.4s; }

.vtn-arch-img {
  border-radius: var(--vtn-radius-lg);
  box-shadow: var(--vtn-shadow-md);
  transition: transform var(--vtn-transition), box-shadow var(--vtn-transition);
  margin: 1.5rem auto;
  display: block;
  max-width: 560px;
  width: 100%;
  height: auto;
}

.vtn-arch-img:hover {
  transform: scale(1.01) translateY(-2px);
  box-shadow: var(--vtn-shadow-glow);
}

.vtn-arch-img--sm {
  max-width: 400px;
}

.vtn-arch-img--lg {
  max-width: 720px;
}

.vtn-callout {
  background: var(--vtn-bg-alt);
  border-left: 3px solid var(--vtn-brand);
  border-radius: 0 var(--vtn-radius-sm) var(--vtn-radius-sm) 0;
  padding: 0.85rem 1.1rem;
  margin: 1.25rem 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--vtn-text-secondary);
}

.vtn-callout strong {
  color: var(--vtn-text);
  font-weight: 600;
}

.vtn-story-box {
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius);
  padding: 1.1rem 1.3rem;
  margin: 1rem 0;
  position: relative;
  overflow: hidden;
}

.vtn-story-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--vtn-brand), var(--vtn-brand-light));
}

.vtn-story-box h4 {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--vtn-brand);
  letter-spacing: 0.01em;
}

.vtn-story-box p {
  margin: 0.3rem 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--vtn-text-secondary);
}

.vtn-analogy {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--vtn-bg-alt);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius-sm);
  padding: 0.85rem 1rem;
  margin: 1.25rem 0;
}

.vtn-analogy-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.vtn-analogy-text {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--vtn-text-secondary);
}

.vtn-analogy-text strong {
  color: var(--vtn-text);
  font-weight: 600;
}

.vtn-flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 1rem 0;
}

.vtn-flow-step {
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius-sm);
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--vtn-text-secondary);
  transition: border-color var(--vtn-transition), transform var(--vtn-transition);
}

.vtn-flow-step:hover {
  border-color: var(--vtn-brand);
  transform: translateY(-1px);
}

.vtn-flow-arrow {
  color: var(--vtn-brand);
  font-weight: 600;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .vtn-arch-img { max-width: 100%; }
  .vtn-arch-img--sm { max-width: 100%; }
  .vtn-arch-img--lg { max-width: 100%; }
  .vtn-analogy { flex-direction: column; }
  .vtn-flow-steps { flex-direction: column; align-items: stretch; }
  .vtn-flow-arrow { text-align: center; transform: rotate(90deg); }
}

.vtn-concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.vtn-concept-card {
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius-sm);
  padding: 1rem 1.1rem;
  transition: transform var(--vtn-transition), box-shadow var(--vtn-transition), border-color var(--vtn-transition);
}

.vtn-concept-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--vtn-shadow-sm);
  border-color: var(--vtn-brand);
}

.vtn-concept-card h4 {
  margin: 0 0 0.35rem;
  color: var(--vtn-brand);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.vtn-concept-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--vtn-text-secondary);
  line-height: 1.55;
}

.vtn-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.25rem 0;
}

.vtn-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 0.6rem;
  border-radius: var(--vtn-radius-sm);
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  transition: transform var(--vtn-transition), box-shadow var(--vtn-transition);
  min-width: 80px;
}

.vtn-icon-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--vtn-shadow-sm);
}

.vtn-icon-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.vtn-icon-item svg {
  width: 36px;
  height: 36px;
}

.vtn-icon-item span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--vtn-text-muted);
  text-align: center;
}

.vtn-comparison-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

@media (max-width: 768px) {
  .vtn-comparison-box {
    grid-template-columns: 1fr;
  }
}

.vtn-compare-side {
  border-radius: var(--vtn-radius-sm);
  padding: 0.9rem 1rem;
  border: 1px solid var(--vtn-border);
}

.vtn-compare-side p {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--vtn-text-secondary);
  margin: 0;
}

.vtn-compare-side--bad {
  background: rgba(239, 68, 68, 0.03);
  border-color: rgba(239, 68, 68, 0.15);
}

.vtn-compare-side--good {
  background: rgba(16, 185, 129, 0.03);
  border-color: rgba(16, 185, 129, 0.15);
}

[data-md-color-scheme="slate"] .vtn-compare-side--bad {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.25);
}

[data-md-color-scheme="slate"] .vtn-compare-side--good {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.25);
}

.vtn-compare-side h4 {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.vtn-timeline {
  position: relative;
  padding-left: 1.5rem;
  margin: 1.25rem 0;
}

.vtn-timeline::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--vtn-brand), var(--vtn-border));
  border-radius: 1px;
}

.vtn-timeline-item {
  position: relative;
  padding-bottom: 1rem;
}

.vtn-timeline-item::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 0.3rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vtn-brand);
  border: 1.5px solid var(--vtn-surface);
  box-shadow: 0 0 0 1.5px var(--vtn-brand);
}

.vtn-timeline-item h4 {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--vtn-text);
}

.vtn-timeline-item p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--vtn-text-secondary);
  line-height: 1.55;
}

.vtn-hero-banner {
  background: linear-gradient(135deg, var(--vtn-bg-alt), var(--vtn-surface));
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius);
  padding: 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  animation: vtn-fade-in-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.vtn-hero-banner h2 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--vtn-text);
  letter-spacing: -0.02em;
}

.vtn-hero-banner p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--vtn-text-muted);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.5;
}

[data-md-color-scheme="slate"] .vtn-hero-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.03), var(--vtn-surface));
}

@media (prefers-reduced-motion: reduce) {
  .vtn-animate-fade-up,
  .vtn-animate-scale,
  .vtn-animate-slide-left,
  .vtn-animate-slide-right,
  .vtn-hero-banner {
    animation: none !important;
  }
  .vtn-icon-item:hover {
    animation: none !important;
  }
}

/* ==========================================================================
   INTERVIEW Q&A CONTENT ENHANCEMENT
   Targets pages with Q&A format (bold Q: paragraphs)
   Adds visual rhythm, scanability, and professional polish
   ========================================================================== */

/* --- Q&A blocks: left-border accent on question paragraphs --- */
.md-typeset p.vtn-question {
  position: relative;
  padding: 0.75rem 1rem;
  margin-top: 1.8rem;
  border-left: 3px solid var(--vtn-brand);
  background: rgba(180, 83, 9, 0.02);
  border-radius: 0 var(--vtn-radius-sm) var(--vtn-radius-sm) 0;
}

[data-md-color-scheme="slate"] .md-typeset p.vtn-question {
  background: rgba(245, 158, 11, 0.03);
}

.md-typeset p.vtn-question strong:first-child {
  color: var(--vtn-brand);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Answer paragraph that follows a question */
.md-typeset p.vtn-question + p {
  padding-left: 1rem;
  border-left: 1px solid var(--vtn-border);
  margin-left: 0;
  color: var(--vtn-text-secondary);
}

/* --- H2 section dividers: add breathing room between major sections --- */
.md-typeset h2 {
  padding-top: 1.5rem;
}

.md-typeset h2:first-of-type {
  padding-top: 0;
}

/* --- H3 sub-section spacing: clear visual groups --- */
.md-typeset h3 {
  padding-top: 0.5rem;
}

/* --- Improved spacing between paragraphs in content-heavy pages --- */
.md-typeset p + p {
  margin-top: 0.85em;
}

/* --- Better list spacing for deep content --- */
.md-typeset li + li {
  margin-top: 0.3em;
}

.md-typeset li > p {
  margin-bottom: 0.4em;
}

/* ==========================================================================
   ENHANCED TOC — Better active state & readability
   ========================================================================== */

.md-nav--secondary .md-nav__link {
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}

.md-nav--secondary .md-nav__link:hover {
  color: var(--vtn-brand);
  border-left-color: var(--vtn-border-dark);
  background: var(--vtn-bg-alt);
  border-radius: 0 var(--vtn-radius-sm) var(--vtn-radius-sm) 0;
}

.md-nav--secondary .md-nav__link--active {
  color: var(--vtn-brand) !important;
  font-weight: 600;
  border-left: 2px solid var(--vtn-brand) !important;
  background: rgba(180, 83, 9, 0.04);
  border-radius: 0 var(--vtn-radius-sm) var(--vtn-radius-sm) 0;
  padding-left: calc(0.6rem - 2px);
}

[data-md-color-scheme="slate"] .md-nav--secondary .md-nav__link--active {
  background: rgba(245, 158, 11, 0.06);
}

/* ==========================================================================
   CONTENT READABILITY — prevent ultra-wide on large monitors
   ========================================================================== */

@media screen and (min-width: 100em) {
  .md-content__inner {
    max-width: 52rem;
  }
}

/* ==========================================================================
   INLINE KEY TERM HIGHLIGHT — prevent awkward line breaks in code spans
   ========================================================================== */

.md-typeset code:not(pre code) {
  white-space: nowrap;
}

/* ==========================================================================
   ARROW CHAINS → STYLED FLOW (CSS only)
   Makes lifecycle chains more readable
   ========================================================================== */

.md-typeset p code:not(pre code) {
  white-space: normal;
}

/* ==========================================================================
   BETTER BLOCKQUOTE — page intro style (used in interview guides)
   ========================================================================== */

.md-typeset > blockquote:first-of-type {
  border-left: 3px solid var(--vtn-brand);
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.03), rgba(180, 83, 9, 0.01));
  padding: 1.2rem 1.6rem;
  margin: 0 0 1.5rem 0;
  border-radius: 0 var(--vtn-radius) var(--vtn-radius) 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

[data-md-color-scheme="slate"] .md-typeset > blockquote:first-of-type {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.04), rgba(245, 158, 11, 0.01));
}

.md-typeset > blockquote:first-of-type p {
  color: var(--vtn-text-secondary);
  font-weight: 500;
}

.md-typeset > blockquote:first-of-type strong {
  color: var(--vtn-text);
}

/* ==========================================================================
   SEMANTIC COLOR BADGES — for TOC & sidebar section labels
   ========================================================================== */

.md-nav--secondary .md-nav__title {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--vtn-border);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   CHAT FAB — add aria-label tooltip on hover
   ========================================================================== */

.vtn-chat-fab::after {
  content: "Ask AI";
  position: absolute;
  right: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--vtn-surface);
  color: var(--vtn-text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: var(--vtn-radius-sm);
  border: 1px solid var(--vtn-border);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: var(--vtn-shadow-sm);
}

.vtn-chat-fab:hover::after {
  opacity: 1;
}

/* ==========================================================================
   SMOOTH SCROLL INDICATOR — highlights current section in viewport
   ========================================================================== */

.md-typeset h2:target,
.md-typeset h3:target {
  scroll-margin-top: 80px;
}

/* ==========================================================================
   IMPROVED TABLE READABILITY — better row distinction
   ========================================================================== */

.md-typeset table:not([class]) tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.015);
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   RESPONSIVE IMPROVEMENTS — better mobile experience
   ========================================================================== */

@media screen and (max-width: 76.25em) {
  /* Mobile TOC in overlay should be more visible */
  .md-nav--secondary .md-nav__link--active {
    background: rgba(180, 83, 9, 0.08);
  }
}

@media screen and (max-width: 550px) {
  .md-typeset h2 {
    padding-top: 1rem;
  }

  .md-typeset p.vtn-question {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ==========================================================================
   NAV TABS — overflow indicator for many items
   ========================================================================== */

.md-tabs::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2rem;
  background: linear-gradient(90deg, transparent, #292524);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

[data-md-color-scheme="slate"] .md-tabs::after {
  background: linear-gradient(90deg, transparent, #1C1917);
}

/* Show fade only when tabs are scrollable */
@media screen and (max-width: 1280px) {
  .md-tabs::after {
    opacity: 1;
  }
}

/* ==========================================================================
   HEADER SIGN-IN — blend into header, not green standout
   ========================================================================== */

.md-header .vtn-header-signin,
.md-header [data-auth-btn] {
  background: rgba(255, 255, 255, 0.08);
  color: #FAFAF9;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--vtn-radius-full);
  padding: 0.35rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.md-header .vtn-header-signin:hover,
.md-header [data-auth-btn]:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: white;
}

[data-md-color-scheme="slate"] .md-header .vtn-header-signin,
[data-md-color-scheme="slate"] .md-header [data-auth-btn] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Q&A BREATHING ROOM — visual separation between question blocks
   ========================================================================== */

/* Space between consecutive bold-question paragraphs */
.md-typeset p > strong:first-child:is([class]),
.md-typeset li > strong:first-child {
  display: inline;
}

/* Add top-margin gap when a new Q: block starts after content */
.md-typeset h3 + p strong:first-child,
.md-typeset p + p > strong:first-child {
  /* The parent p gets margin from .vtn-question class if applied via JS */
}

/* Better spacing between bullet-style Q&A items */
.md-typeset ul > li:has(> strong:first-child) {
  margin-top: 1.2em;
  padding-bottom: 0.8em;
  border-bottom: 1px solid var(--vtn-border);
}

.md-typeset ul > li:has(> strong:first-child):last-child {
  border-bottom: none;
}

/* Code blocks after Q&A bullets get breathing room */
.md-typeset ul > li > .highlight,
.md-typeset ul > li > pre {
  margin-top: 0.8em;
}

/* === Page Meta (Reading Time + Difficulty) === */
.vtn-page-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--vtn-border);
}
.vtn-reading-time {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--vtn-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.vtn-reading-time::before {
  content: "\23F1";
  font-size: 0.85rem;
}
.vtn-difficulty {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.vtn-difficulty--l1 {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.vtn-difficulty--l2 {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}
.vtn-difficulty--l3 {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
[data-md-color-scheme="slate"] .vtn-difficulty--l1 {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}
[data-md-color-scheme="slate"] .vtn-difficulty--l2 {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}
[data-md-color-scheme="slate"] .vtn-difficulty--l3 {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}
.vtn-author-byline {
  font-size: 0.75rem;
  color: var(--vtn-text-muted);
  margin-left: auto;
}
.vtn-author-byline a {
  color: var(--vtn-brand, #B45309);
  text-decoration: none;
  font-weight: 600;
}
.vtn-author-byline a:hover {
  text-decoration: underline;
}
/* === About Page === */
/* Hide mark-as-complete on about page */
.vtn-about-page ~ .vtn-mark-complete-wrapper,
body:has(.vtn-about-page) .vtn-mark-complete-wrapper {
  display: none !important;
}
/* Entrance animations */
@keyframes vtnFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.vtn-about-page .vtn-animate {
  opacity: 0;
  transform: translateY(24px);
}
.vtn-about-page .vtn-animate.vtn-visible {
  animation: vtnFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .vtn-about-page .vtn-animate { opacity: 1; transform: none; }
  .vtn-about-page .vtn-animate.vtn-visible { animation: none; }
}
.vtn-about-page {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}
.vtn-about-page > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.vtn-about-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.vtn-about-links .vtn-cta {
  padding: 0.55rem 1.2rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
}
.vtn-about-links .vtn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.2);
  opacity: 0.92;
}
.vtn-about-links .vtn-cta:focus-visible {
  outline: 2px solid var(--vtn-brand, #B45309);
  outline-offset: 2px;
}
.vtn-about-links .vtn-cta-secondary {
  padding: 0.5rem 1.1rem;
  font-size: 0.75rem;
  cursor: pointer;
}
/* Hero Split: Photo + Text side by side */
.vtn-about-hero-split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 2.5rem;
  border-bottom: none;
  margin-bottom: 2.5rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--vtn-radius-lg);
  background: radial-gradient(ellipse at 20% 50%, rgba(180, 83, 9, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(180, 83, 9, 0.03) 0%, transparent 50%);
  position: relative;
}
.vtn-about-photo-wrap {
  position: relative;
}
.vtn-about-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 4px solid var(--vtn-brand, #B45309);
  box-shadow: 0 0 0 8px rgba(180, 83, 9, 0.08), var(--vtn-shadow-md);
  aspect-ratio: 1;
}
.vtn-about-greeting {
  font-size: 1rem;
  color: var(--vtn-brand, #B45309);
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.vtn-about-intro-text h1 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.8rem;
}
.vtn-highlight {
  color: var(--vtn-brand, #B45309);
}
.vtn-about-oneliner {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--vtn-text-secondary);
  margin-bottom: 1.2rem;
}
.vtn-about-oneliner strong {
  color: var(--vtn-brand, #B45309);
}
/* Numbers bar — no cards, just big clean stats */
.vtn-about-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 auto 3rem;
  text-align: center;
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius-lg);
  overflow: hidden;
  max-width: 1100px;
  transition: box-shadow 300ms ease;
}
.vtn-about-numbers:hover {
  box-shadow: 0 4px 20px rgba(180, 83, 9, 0.08);
}
.vtn-about-number-item {
  padding: 1.2rem 0.8rem;
  border-right: 1px solid var(--vtn-border);
}
.vtn-about-number-item:last-child {
  border-right: none;
}
.vtn-number-big {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--vtn-brand, #B45309);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.vtn-number-label {
  display: block;
  font-size: 0.75rem;
  color: var(--vtn-text-muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}
/* Career Story — editorial, not timeline */
.vtn-about-career-story {
  margin: 1.5rem 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.vtn-career-chapter {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--vtn-border);
}
.vtn-career-chapter:last-child {
  border-bottom: none;
}
.vtn-career-era {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--vtn-text-muted);
  letter-spacing: 0.05em;
  padding-top: 0.3rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.vtn-career-era a.glightbox {
  pointer-events: none;
  display: contents;
}
.vtn-company-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  padding: 5px;
  background: #ffffff;
  border: 1px solid var(--vtn-border);
  transition: transform 200ms ease;
}
.vtn-company-logo:hover {
  transform: scale(1.1);
}
.vtn-career-current .vtn-career-era {
  color: var(--vtn-brand, #B45309);
}
.vtn-career-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.vtn-career-lesson {
  font-weight: 400;
  color: var(--vtn-text-muted);
  font-size: 0.9rem;
}
.vtn-career-body p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--vtn-text-secondary);
  margin: 0;
}
/* Story block — full-width highlight */
.vtn-about-story-block {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--vtn-bg-alt);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius-lg);
  margin: 0 0 3rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.vtn-about-story-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.vtn-story-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vtn-brand, #B45309);
  opacity: 0.7;
}
.vtn-story-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
}
.vtn-story-content p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--vtn-text-secondary);
  margin: 0 0 0.6rem;
}
.vtn-story-content p:last-child {
  margin-bottom: 0;
}
/* Tech bands — horizontal, minimal */
.vtn-about-tech-bands {
  margin: 1.5rem 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.vtn-tech-band {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--vtn-border);
}
.vtn-tech-band:last-child {
  border-bottom: none;
}
.vtn-tech-band-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vtn-brand, #B45309);
  min-width: 70px;
}
.vtn-tech-band-items {
  font-size: 0.9rem;
  color: var(--vtn-text-secondary);
}
/* Testimonials — varied widths, real quotes */
.vtn-about-testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 3rem;
}
.vtn-about-testimonials .vtn-testimonial:first-child {
  grid-column: 1 / -1;
}
.vtn-testimonial {
  padding: 1.5rem 1.8rem;
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius);
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.vtn-testimonial:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--vtn-brand, #B45309);
}
.vtn-testimonial::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 3rem;
  color: var(--vtn-brand, #B45309);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}
.vtn-testimonial-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--vtn-text);
  margin: 0 0 0.8rem;
  font-style: italic;
}
.vtn-testimonial-author {
  font-size: 0.75rem;
  color: var(--vtn-text-muted);
  font-weight: 600;
}
/* Diff comparison — show don't tell */
.vtn-about-diff-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 3rem;
}
.vtn-diff-card {
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.vtn-diff-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.vtn-diff-vs {
  display: flex;
  border-bottom: 1px solid var(--vtn-border);
}
.vtn-diff-others, .vtn-diff-here {
  flex: 1;
  padding: 0.5rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vtn-diff-others {
  color: var(--vtn-text-muted);
  background: var(--vtn-bg-alt);
}
.vtn-diff-here {
  color: var(--vtn-brand, #B45309);
  background: rgba(180, 83, 9, 0.05);
}
.vtn-diff-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.vtn-diff-them, .vtn-diff-me {
  padding: 1.2rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}
.vtn-diff-them {
  color: var(--vtn-text-muted);
  border-right: 1px solid var(--vtn-border);
  font-style: italic;
}
.vtn-diff-me {
  color: var(--vtn-text);
  background: rgba(180, 83, 9, 0.02);
}
/* Final CTA */
.vtn-about-final-cta {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--vtn-bg-alt);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius-lg);
  margin-top: 1rem;
}
.vtn-about-final-cta h2 {
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
}
.vtn-about-final-cta p {
  color: var(--vtn-text-secondary);
  margin-bottom: 1.2rem;
  font-size: 0.88rem;
}
.vtn-about-final-cta .vtn-about-links {
  justify-content: center;
}
.vtn-about-final-cta .vtn-cta {
  padding: 0.55rem 1.2rem;
  font-size: 0.78rem;
}
.vtn-about-final-cta .vtn-cta-secondary {
  padding: 0.5rem 1.1rem;
  font-size: 0.75rem;
}
/* About responsive */
@media (max-width: 768px) {
  .vtn-about-hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  .vtn-about-photo-wrap { margin: 0 auto; }
  .vtn-about-photo { width: 160px; height: 160px; }
  .vtn-about-intro-text h1 { font-size: 1.3rem; }
  .vtn-about-links { justify-content: center; }
  .vtn-about-numbers { grid-template-columns: repeat(2, 1fr); }
  .vtn-about-number-item { border-right: none; border-bottom: 1px solid var(--vtn-border); }
  .vtn-about-number-item:nth-child(odd) { border-right: 1px solid var(--vtn-border); }
  .vtn-career-chapter { grid-template-columns: 1fr; gap: 0.3rem; }
  .vtn-about-testimonials { grid-template-columns: 1fr; }
  .vtn-about-testimonials .vtn-testimonial:first-child { grid-column: auto; }
  .vtn-diff-comparison { grid-template-columns: 1fr; }
  .vtn-diff-them { border-right: none; border-bottom: 1px solid var(--vtn-border); }
  .vtn-tech-band { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
}
/* Featured testimonial */
.vtn-testimonial-featured {
  background: rgba(180, 83, 9, 0.04);
  border-color: var(--vtn-brand, #B45309);
}
.vtn-testimonial-featured .vtn-testimonial-text {
  font-size: 0.95rem;
}
/* Mentorship section */
.vtn-about-mentorship {
  margin: 1.5rem 0 3rem;
}
.vtn-mentorship-highlight {
  padding: 2rem;
  background: var(--vtn-surface);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius-lg);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.vtn-mentorship-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.vtn-mentorship-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  background: var(--vtn-bg-alt);
  border: 1px solid var(--vtn-border);
  border-radius: var(--vtn-radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--vtn-brand, #B45309);
  margin-bottom: 1rem;
}
.vtn-mentorship-highlight p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--vtn-text-secondary);
  margin: 0 0 1rem;
}
.vtn-mentorship-highlight p:last-of-type {
  margin-bottom: 1.5rem;
}
/* Recognition */
.vtn-about-recognition {
  margin: 1.5rem 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.vtn-recognition-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--vtn-border);
}
.vtn-recognition-item:last-child {
  border-bottom: none;
}
.vtn-recognition-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  color: var(--vtn-brand, #B45309);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vtn-recognition-icon svg {
  width: 22px;
  height: 22px;
}
.vtn-recognition-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--vtn-text);
}
.vtn-recognition-item span {
  font-size: 0.8rem;
  color: var(--vtn-text-muted);
}

/* === Newsletter Signup === */
.vtn-newsletter {
  background: linear-gradient(135deg, var(--vtn-bg-alt), var(--vtn-bg));
  border: 2px solid var(--vtn-border);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.vtn-newsletter h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--vtn-text);
}
.vtn-newsletter p {
  margin: 0 0 1.2rem;
  font-size: 0.85rem;
  color: var(--vtn-text-muted);
}
.vtn-newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 400px;
  margin: 0 auto;
}
.vtn-newsletter-input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--vtn-border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--vtn-surface);
  color: var(--vtn-text);
  outline: none;
  transition: border-color 0.2s;
}
.vtn-newsletter-input:focus {
  border-color: var(--vtn-brand);
}
.vtn-newsletter-btn {
  padding: 0.6rem 1.2rem;
  background: var(--vtn-brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.vtn-newsletter-btn:hover {
  background: var(--vtn-brand-dark);
  transform: translateY(-1px);
}

/* === Giscus Comments === */
.giscus-wrapper {
  max-width: 800px;
  margin: 3rem auto 2rem;
  padding: 0 1rem;
}
.giscus-wrapper .giscus {
  margin-top: 1rem;
}

