/* Base variables */
:root {
  --wonderland-accent: #978cfb;
  --blog-content-width: 48rem;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  /* Radii */
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Palette */
  --bg-surface: #0b1020;
  --card-surface: #101632;
  --text-strong: #e9eefc;
  --text: #c8d1ee;
  --text-muted: #9fb0da;
  --link: #aebaff;
  --link-hover: #c9d2ff;
  --chip-bg: #2a3569;
  --chip-text: #d6ddff;
  --border-subtle: #283255;
  --focus-ring: #7ea1ff;
  --shadow-lg: 0 10px 30px rgba(0,0,0,.35);
}

/* Sidebar icons */
.menu__list-item-collapsible .menu__link[href^="/docs/processes"]::before {
  background-image: url("/img/icons/map.svg");
}

.menu__list-item-collapsible .menu__link[href^="/docs/development"]::before {
  background-image: url("/img/icons/code-bracket-square.svg");
}

.menu__list-item-collapsible .menu__link[href^="/docs/security"]::before {
  background-image: url("/img/icons/key.svg");
}

.menu__list-item-collapsible .menu__link[href^="/docs/testing"]::before {
  background-image: url("/img/icons/bug-ant.svg");
}

/* Category title font */
.theme-doc-sidebar-item-category
  .menu__list-item-collapsible
  .menu__link[href^="/docs/processes"],
.theme-doc-sidebar-item-category
  .menu__list-item-collapsible
  .menu__link[href^="/docs/development"],
.theme-doc-sidebar-item-category
  .menu__list-item-collapsible
  .menu__link[href^="/docs/security"],
.theme-doc-sidebar-item-category
  .menu__list-item-collapsible
  .menu__link[href^="/docs/testing"] {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0.03em;
  color: var(--wonderland-accent);
  text-transform: uppercase;
  font-size: 0.8rem !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* Blog layout */
.wl-blog-hero { padding: 7rem 0 2rem; text-align: center; position: relative; overflow: visible; }
.wl-blog-hero__container { position: relative; }


.wl-blog-hero__image { margin: 2.5rem auto 0; width: min(1100px, 95%); display: block; animation: fadeIn 700ms ease-out both; }
.wl-blog-hero__rabbit { margin: 2rem auto 0; width: min(420px, 62%); display: block; animation: fadeIn 900ms ease-out both; }
.wl-blog-hero__star { margin: 1rem auto 0; width: 56px; height: 56px; display: block; animation: fadeIn 1s ease-out both; opacity: 0.9; }
.wl-blog-hero__gradient {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  bottom: -2rem;
  z-index: -1;
  pointer-events: none;
  animation: fadeIn 1.1s ease-out both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.wl-blog-list {
  padding: 1rem 0 4rem;
}

/* Blog list container width */
.wl-blog-list > .container {
  max-width: 1000px;
}

.wl-posts-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.wl-post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--card-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wl-post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.wl-post-card:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

.wl-post-card__thumb {
  display: block;
  height: auto;
  aspect-ratio: 16 / 9;
  background: radial-gradient(140% 100% at 10% 10%, rgba(255, 255, 255, 0.06), transparent),
    radial-gradient(80% 80% at 90% 80%, rgba(233, 91, 155, 0.18), transparent 60%),
    radial-gradient(80% 80% at 10% 80%, rgba(31, 85, 213, 0.18), transparent 60%);
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.wl-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wl-post-card__thumbOverlay { display: none; }

.wl-post-card__body { padding: var(--space-4) 0 0; display: flex; flex-direction: column; flex: 1; }
.wl-post-card__body > *:first-child { margin-top: var(--space-2); }

.wl-post-card__date { color: var(--text-muted); font-size: 0.875rem; line-height: 1.4; }

.wl-post-card__title { color: var(--text-strong); margin: 0 0 var(--space-2); line-height: 1.25; }
.wl-post-card__title a { color: inherit; text-decoration: none; }
.wl-post-card__title a:hover { color: var(--link-hover); text-decoration: underline; }

.wl-post-card__excerpt { color: var(--text); margin: 0 0 var(--space-3); line-height: 1.5; }

/* Separator spacing between image and text */
.wl-post-card + .wl-post-card__body { margin-top: 0.5rem; }

.wl-post-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  cursor: pointer;
}

.wl-post-card :is(a, button):not(.wl-post-card__overlay) { position: relative; z-index: 2; }

.wl-post-card__meta { display: flex; align-items: flex-end; gap: var(--space-3); margin-top: auto; padding-top: var(--space-3); color: var(--text-muted); font-size: 0.875rem; }

.wl-author { display: inline-flex; align-items: flex-start; gap: 0.5rem; }
.wl-avatar { width: 24px; height: 24px; border-radius: 999px; border: 2px solid var(--card-surface); object-fit: cover; }
.wl-author__name { color: var(--text-muted); font-weight: 500; max-width: 12ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wl-author__extra { background: var(--chip-bg); color: var(--chip-text); font-weight: 600; margin-left: 0.25rem; padding: .125rem .375rem; border-radius: 999px; font-size: .75rem; }

.wl-author__name-link { color: inherit; text-decoration: none; transition: color 0.3s ease; font-weight: 500; }

.wl-author__name-link:hover { color: var(--link-hover); text-decoration: underline; }
.wl-author__title { color: var( --wonderland-gray-50); font-size: 0.85rem; }


/* Highlights */

.wl-highlights {
  display: grid;
  grid-template-columns: 4fr 5fr;
  gap: 1.25rem;
  margin: 2rem 0 2.5rem;
  align-items: stretch;
  --highlight-height: 560px;
}

/* Align cards with container padding */
.wl-highlights,
.wl-posts-grid {
  padding-left: 0;
  padding-right: 0;
}

/* Primary and side column height */
.wl-highlights__primary > .wl-post-card--primary { height: var(--highlight-height); display: flex; flex-direction: column; width: 100%; }
.wl-highlights__primary > .wl-post-card--primary .wl-post-card__thumb { height: 55%; width: 100%; margin-left: 0; margin-right: 0; }
.wl-post-card--primary .wl-post-card__body { width: 100%; }

/* Primary highlight title clamp */
.wl-post-card--primary .wl-post-card__title {
  font-size: clamp(1.6rem, 2.3vw, 2.3rem);
  line-height: 1.15;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wl-post-card--primary .wl-post-card__excerpt {
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wl-highlights__side { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; height: var(--highlight-height); }

/* Compact highlight cards */
.wl-post-card--compact {
  height: 100%;
  display: grid;
  grid-template-columns: 32% 1fr;
  gap: 1rem;
  align-items: start;
}
.wl-post-card--compact { padding: var(--space-4); }
.wl-post-card--compact .wl-post-card__thumb { align-self: start; }
.wl-highlights__side .wl-post-card--compact { grid-template-columns: 30% 1fr; }
.wl-highlights__side .wl-post-card--compact .wl-post-card__thumb {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.wl-post-card--compact .wl-post-card__body { padding: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-start; }
.wl-post-card--compact .wl-post-card__meta { margin-top: auto; padding-top: var(--space-2); }
.wl-post-card--compact .wl-post-card__title {
  font-size: 1.2rem;
  line-height: 1.15;
  margin: 0.15rem 0 0.35rem;
}
.wl-post-card--compact .wl-post-card__title { display: -webkit-box; line-clamp: 3; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wl-post-card--compact .wl-post-card__excerpt { margin-top: 0.4rem; }
.wl-post-card--compact .wl-post-card__excerpt { display: -webkit-box; line-clamp: 1; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.wl-post-card--compact .wl-post-card__date { font-size: 0.8125rem; opacity: 0.9; }

/* Compact author/meta tweaks */
.wl-post-card--compact .wl-avatar { width: 22px; height: 22px; }
.wl-post-card--compact .wl-author__name { font-weight: 600; }
.wl-post-card--compact .wl-post-card__meta { gap: var(--space-2); margin-top: var(--space-2); font-size: 0.8125rem; }

/* Posts grid: 3 per row */
.wl-posts-grid > .wl-post-card { grid-column: span 4; }

@media (max-width: 996px) {
  .wl-highlights { grid-template-columns: 1fr; --highlight-height: auto; }
  .wl-highlights__primary > .wl-post-card--primary { height: auto; }
  .wl-highlights__primary > .wl-post-card--primary .wl-post-card__thumb { width: 100%; }
  .wl-highlights__side { grid-template-columns: 1fr 1fr; grid-template-rows: none; height: auto; }
  .wl-posts-grid { grid-template-columns: repeat(6, 1fr); }
  .wl-posts-grid > .wl-post-card { grid-column: span 6; }
}

/* Blog post page */
.wl-post-content {
  max-width: var(--blog-content-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Center images in post content */
.wl-post-content img,
.wl-post-content .markdown img,
.wl-post-content article img,
.wl-post-original article img,
.wl-post-original .markdown img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: min(100%, 720px);
  width: auto;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
}

/* Embedded videos */
.wl-post-content iframe[src*="youtube.com"],
.wl-post-content iframe[src*="youtu.be"],
.wl-post-content iframe[src*="player.vimeo.com"],
.wl-post-content .markdown iframe[src*="youtube.com"],
.wl-post-content .markdown iframe[src*="youtu.be"],
.wl-post-content .markdown iframe[src*="player.vimeo.com"] {
  display: block;
  width: min(100%, 900px);
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 1.25rem auto 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--wonderland-blue-800);
  background: rgba(255,255,255,0.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

/* Code block theme */
.theme-blog .theme-code-block,
.theme-blog div[class^="codeBlock"],
.theme-blog div[class^="codeBlockContainer"],
.theme-blog div[class^="codeBlockContent"],
.theme-blog .prism-code,
.theme-blog pre[class*="language-"],
.theme-blog code[class*="language-"] {
  background-color: var(--wonderland-blue-950) !important;
}

/* Hide original blog wrapper parts */
.wl-post-original .wl-post-header,
.wl-post-original .blogPostFooter,
.wl-post-original nav.pagination-nav,
.wl-post-original .pagination-nav,
.wl-post-original footer {
  display: none !important;
}

/* Hide embedded header/meta */
.wl-post-original article > header {
  display: none !important;
}

/* Force embedded content width */
.wl-post-original article,
.wl-post-original .container,
.wl-post-original .container-wrapper,
.wl-post-original .main-wrapper,
.wl-post-original .blog-wrapper,
.wl-post-original .blog-post-page {
  max-width: var(--blog-content-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.theme-blog .theme-code-block {
  border: 1px solid var(--wonderland-accent);
  border-radius: 8px;
  overflow: hidden;
  margin: 1rem 0;
  position: relative;
  z-index: 1;
}

.theme-blog .theme-code-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wonderland-blue-950);
  z-index: -1;
}

.theme-blog .prism-code {
  --wonderland-pink-rgb: 233, 91, 155;
  background-image: linear-gradient(
    30deg,
    rgba(var(--wonderland-pink-rgb), 0) 70%,
    rgba(var(--wonderland-pink-rgb), 0.05) 95%,
    rgba(var(--wonderland-pink-rgb), 0.1) 100%
  );
  background-size: 100% 40rem;
  background-repeat: no-repeat;
}

.theme-blog .theme-code-block__title,
.theme-blog div[class*="codeBlockTitle"],
.theme-blog [class*="playgroundHeader"] {
  background: var(--wonderland-blue-950) !important;
  border-bottom: 1px solid var(--wonderland-blue-800);
  color: var(--wonderland-gray-200);
}

.theme-blog .token,
.theme-blog .token-line,
.theme-blog .token span,
.theme-blog [class*="codeLine"] {
  background: var(--wonderland-blue-950) !important;
}

.theme-blog code:not([class*="language-"]) {
  color: var(--wonderland-accent);
  background: var(--wonderland-blue-950);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
/* Docs list wrapping */
.theme-doc-markdown li,
.theme-doc-markdown ul,
.theme-doc-markdown ol {
  word-wrap: break-word;
  overflow-wrap: anywhere;
  font-family: "Inter", system-ui, -apple-system, sans-serif !important;
  font-weight: 400 !important;
  line-height: 150% !important;
  color: var(--wonderland-gray-300) !important;
}

/* Post header width */
.wl-post-header {
  max-width: var(--blog-content-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
  padding-top: calc(var(--ifm-navbar-height, 3.5rem) + 2rem);
  padding-bottom: 0.75rem;
}

@font-face {
  font-family: "Sharp Grotesk Light Italic";
  src: url("/common/fonts/SharpGrotesk-LightItalic10.otf") format("opentype");
  font-style: italic;
  font-weight: 300;
  font-display: swap;
}

.wl-post-title {
  font-family: "Sharp Grotesk Light Italic", "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.01em;
  font-size: clamp(3rem, 10vw, 8rem) !important;
  margin: 0 0 1.25rem;
}

.wl-post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
  flex-direction: row;
  flex-wrap: wrap;
}

.wl-post-author-avatar { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--wonderland-blue-800); object-fit: cover; }
.wl-post-authors-avatars { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 0.5rem; flex-wrap: wrap; }
.wl-post-author-avatar--lg { width: 48px; height: 48px; }
.wl-post-author-line { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--wonderland-gray-300); }
.wl-post-authors-line { display: inline-flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.wl-post-author { display: inline-flex; align-items: center; gap: 0.35rem; }
.wl-post-author-sep { margin: 0 0.25rem; opacity: 0.6; }
.wl-post-author-avatar--sm { width: 36px; height: 36px; object-fit: cover; }
.wl-post-author-name { color: var(--wonderland-gray-100); font-weight: 600; }
.wl-post-author-name--link { 
  color: var(--wonderland-accent); 
  text-decoration: none; 
  transition: color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.wl-post-author-name--link:hover { 
  color: var(--wonderland-gray-100); 
  text-decoration: none; 
  border-bottom-color: var(--wonderland-accent);
}
.wl-post-bullet { opacity: 0.6; }
.wl-post-date { color: var(--wonderland-gray-400); }

/* Legacy hero H1/H2 */
.wl-post-content .markdown > h1:first-child,
.wl-post-content .markdown > h2:first-child {
  font-family: "Sharp Grotesk Light Italic", "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 300 !important;
  font-style: italic !important;
  line-height: 1.02 !important;
  letter-spacing: 0.01em !important;
  text-align: center;
  font-size: clamp(5rem, 14vw, 18rem) !important;
  margin-top: 0.5rem !important;
  margin-bottom: 1rem !important;
}

/* Hide TOC */
.blog-post-page .table-of-contents,
.blog-post-page .theme-doc-toc,
.blog-post-page .theme-doc-toc-desktop,
.blog-post-page .theme-doc-toc-mobile,
.blog-post-page .col.col--3 {
  display: none !important;
}

/* Blog post layout without TOC */
@media (min-width: 997px) {
  /* Center content */
  .blog-post-page .container > .row {
    display: flex;
    justify-content: center;
  }
  
  /* Main column width */
  .blog-post-page .col.col--9 {
    max-width: var(--blog-content-width);
    flex-basis: var(--blog-content-width);
    width: 100%;
  }
}

@media (max-width: 996px) {
  /* Mobile padding/full width */
  .wl-post-header,
  .wl-post-content,
  .wl-post-original article,
  .wl-post-original .container,
  .wl-post-extras {
    padding-left: var(--ifm-spacing-horizontal, 1rem);
    padding-right: var(--ifm-spacing-horizontal, 1rem);
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Full width on mobile */
  .blog-post-page .col.col--9 {
    max-width: 100%;
    flex-basis: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .wl-posts-grid { grid-template-columns: repeat(1, 1fr); }
  .wl-posts-grid > .wl-post-card { grid-column: auto; }
  .wl-post-card__thumb { height: auto; aspect-ratio: 277 / 140; min-height: 160px; }
  
  .wl-highlights { margin: 1rem 0; gap: 1rem; }
  .wl-highlights__primary > .wl-post-card--primary,
  .wl-highlights__side .wl-post-card--compact,
  .wl-post-card--compact {
    display: flex;
    flex-direction: column;
  }
  
  /* Mobile card padding */
  .wl-post-card,
  .wl-post-card--primary,
  .wl-post-card--compact {
    padding: var(--space-4) var(--space-4) var(--space-3);
    border-radius: var(--radius-xl);
  }
  
  /* Mobile title clamp */
  .wl-post-card__title {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  /* Mobile primary title clamp */
  .wl-post-card--primary .wl-post-card__title {
    line-clamp: 3;
    -webkit-line-clamp: 3;
    line-height: 1.2;
  }
  
  /* Mobile body padding */
  .wl-post-card--compact .wl-post-card__body,
  .wl-post-card--primary .wl-post-card__body {
    padding: var(--space-4) 0 0;
  }
  /* Mobile meta spacing */
  .wl-post-card__meta { padding-top: var(--space-2); }
  
  /* Mobile excerpt clamp */
  .wl-post-card__excerpt,
  .wl-post-card--compact .wl-post-card__excerpt {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
  }
  
  /* Mobile thumbnails full-width */
  .wl-post-card__thumb,
  .wl-post-card--primary .wl-post-card__thumb,
  .wl-post-card--compact .wl-post-card__thumb,
  .wl-highlights__side .wl-post-card--compact .wl-post-card__thumb,
  .wl-highlights__primary > .wl-post-card--primary .wl-post-card__thumb {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 277 / 140 !important;
    margin: 0 0 var(--space-3) 0 !important;
    min-height: 160px !important;
  }
  /* Stack highlights/compact */
  .wl-highlights__side { grid-template-columns: 1fr; grid-template-rows: none; }
  .wl-post-card--compact { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .wl-highlights__side .wl-post-card--compact { grid-template-columns: 1fr !important; grid-template-rows: auto auto; }
  .wl-post-card--compact .wl-post-card__thumb { height: auto !important; aspect-ratio: 277 / 140 !important; }
  .wl-highlights__side .wl-post-card--compact .wl-post-card__thumb { height: auto !important; aspect-ratio: 277 / 140 !important; }
  .wl-post-card--compact .wl-avatar { width: 28px; height: 28px; }
  /* Smaller blog hero on very small screens */
  .wl-blog-hero { padding: 5rem 0 1rem; }
}

/* Share + related */
.wl-post-extras { margin: 3rem auto; max-width: var(--blog-content-width) !important; text-align: center; }
.wl-share-button { display: inline-flex; align-items: center; text-decoration: none; border: none; background: transparent; padding: 0; }
.wl-share-button img { width: 260px; height: auto; display: inline-block; }
.wl-related { margin-top: 2.5rem; }
.wl-related__title { font-weight: 700; font-size: 1.25rem; margin-bottom: 1rem; color: var(--wonderland-gray-100); }
.wl-related__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.wl-related__card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border: 1px solid var(--wonderland-blue-800); border-radius: 12px; overflow: hidden; background: radial-gradient(140% 100% at 10% 10%, rgba(255,255,255,0.04), transparent), var(--wonderland-blue-950); }
.wl-related__thumb { height: 160px; background: rgba(255,255,255,0.02); }
.wl-related__body { padding: 0.75rem 1rem 1rem; text-align: left; }
.wl-related__date { color: var(--wonderland-gray-500); font-size: 0.85rem; }
.wl-related__titleText { color: var(--wonderland-gray-100); font-weight: 700; font-size: 1.25rem; margin-top: 0.25rem; }
.wl-related__excerpt { color: var(--wonderland-gray-300); margin-top: 0.25rem; font-size: 0.95rem; }

@media (max-width: 996px) {
  .wl-related__grid { grid-template-columns: 1fr; }
}

/* Author pages */
.wl-author-page {
  padding: 2rem 0 4rem;
}

.wl-author-header {
  max-width: var(--blog-content-width) !important;
  margin: 0 auto 3rem;
  text-align: center;
  padding: 0 1rem;
}

.wl-author-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.wl-author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--wonderland-accent);
  box-shadow: 0 8px 32px rgba(151, 140, 251, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wl-author-avatar:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(151, 140, 251, 0.3);
}

.wl-author-info h1 {
  font-family: "Sharp Grotesk Light Italic", "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  color: var(--wonderland-gray-100);
}

.wl-author-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--wonderland-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1.5rem;
}

.wl-author-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--wonderland-gray-300);
  max-width: 62ch;
  margin: 0 auto;
}

.wl-author-description-line {
  margin: 0.5rem 0;
  font-size: 1rem;
  line-height: 1.5;
}

.wl-author-fun-fact {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(151, 140, 251, 0.1);
  border: 1px solid rgba(151, 140, 251, 0.3);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--wonderland-accent);
}

.wl-author-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.wl-author-stat {
  text-align: center;
  padding: 1rem 1.5rem;
  background: radial-gradient(140% 100% at 10% 10%, rgba(255, 255, 255, 0.06), transparent);
  border: 1px solid var(--wonderland-blue-800);
  border-radius: 12px;
  min-width: 120px;
}

.wl-author-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--wonderland-accent);
  line-height: 1;
}

.wl-author-stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--wonderland-gray-400);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wl-author-posts-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.wl-author-posts-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wonderland-gray-100);
  margin-bottom: 1.5rem;
  text-align: center;
}

.wl-author-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Responsive adjustments for author pages */
@media (max-width: 768px) {
  .wl-author-hero {
    gap: 1rem;
  }
  
  .wl-author-avatar {
    width: 100px;
    height: 100px;
  }
  
  .wl-author-stats {
    gap: 1rem;
  }
  
  .wl-author-stat {
    padding: 0.75rem 1rem;
    min-width: 100px;
  }
  
  .wl-author-stat-number {
    font-size: 1.5rem;
  }
  
  .wl-author-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Author links */
.wl-post-content a[href^="/blog/authors/"],
.wl-post-card a[href^="/blog/authors/"] {
  color: var(--wonderland-gray-200);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.wl-post-content a[href^="/blog/authors/"]:hover,
.wl-post-card a[href^="/blog/authors/"]:hover {
  color: var(--wonderland-accent);
  text-decoration: underline;
}

.theme-blog nav.navbar.navbar--fixed-top + .main-wrapper {
  padding-top: var(--ifm-navbar-height, 3.5rem) !important;
}

/* Ensure override on blog post pages */
.blog-post-page nav.navbar.navbar--fixed-top + .main-wrapper {
  padding-top: 0 !important;
}

/* Author page header */
.wl-author-page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: radial-gradient(140% 100% at 10% 10%, rgba(255, 255, 255, 0.04), transparent),
    radial-gradient(80% 80% at 90% 80%, rgba(233, 91, 155, 0.08), transparent 60%),
    radial-gradient(80% 80% at 10% 80%, rgba(31, 85, 213, 0.08), transparent 60%);
  background-color: var(--wonderland-blue-950);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wl-author-page-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  margin: 0 auto;
  object-fit: cover;
}

.wl-author-page-info {
  flex: 1;
  text-align: center;
}

.wl-author-page-name {
  margin: 0 0 0.5rem;
  color: var(--wonderland-gray-100);
  font-size: 2.5rem;
  font-weight: 700;
}

.wl-author-page-title {
  margin: 0 0 1rem;
  color: var(--wonderland-accent);
  font-size: 1.2rem;
  font-weight: 600;
}

.wl-author-page-description {
  color: var(--wonderland-gray-300);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.wl-author-page-description p {
  margin: 0.5rem 0;
}

.wl-author-page-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.wl-author-post-count {
  background: rgba(151, 140, 251, 0.15);
  color: var(--wonderland-accent);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.wl-author-posts-section {
  margin-top: 3rem;
}

.wl-author-posts-section h2 {
  color: var(--wonderland-gray-100);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.wl-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* .wl-author-post-card intentionally inherits from .wl-post-card; keeping as comment to avoid empty ruleset */

.wl-no-posts {
  text-align: center;
  padding: 3rem 0;
  color: var(--wonderland-gray-400);
}

.wl-no-posts p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.wl-no-posts a {
  color: var(--wonderland-accent);
  text-decoration: none;
  font-weight: 600;
}

.wl-no-posts a:hover {
  text-decoration: underline;
}

/* Author responsive */
@media (max-width: 768px) {
  .wl-author-page-header {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .wl-author-page-name {
    font-size: 2rem;
  }

  .wl-post-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Default author pages */
.theme-blog-authors-posts-page {
  padding: 2rem 0 4rem;
  background: var(--wonderland-blue-950);
}

.theme-blog-authors-posts-page .container {
  max-width: 1000px;
}

/* Author header */
.blog-authors-posts-page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1rem;
}

.blog-author-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.blog-author-details .avatar__photo {
  width: 120px !important;
  height: 120px !important;
  border-radius: 50%;
  border: 3px solid var(--wonderland-accent);
  box-shadow: 0 8px 32px rgba(151, 140, 251, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
}

.blog-author-details .avatar__photo:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(151, 140, 251, 0.3);
}

.blog-author-details .avatar__name {
  font-family: "Sharp Grotesk Light Italic", "Inter", system-ui, -apple-system, sans-serif !important;
  font-weight: 300 !important;
  font-style: italic !important;
  font-size: clamp(3.5rem, 8vw, 6rem) !important;
  line-height: 1.1 !important;
  margin: 0 0 0.75rem !important;
  color: var(--wonderland-gray-100) !important;
  text-align: center;
}

.blog-author-details .avatar__subtitle {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: var(--wonderland-accent) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1.5rem !important;
  text-align: center;
}

/* Author posts count/description */
.blog-authors-posts-page .margin-bottom--lg {
  margin-bottom: 2rem !important;
}

.blog-authors-posts-page h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wonderland-gray-100);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Author posts grid */
.blog-authors-posts-page .row {
  --ifm-row-gap: 2rem;
}

.blog-authors-posts-page .col {
  margin-bottom: 1.5rem;
  /* 3 cards per row on desktop */
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

@media (max-width: 996px) {
  .blog-authors-posts-page .col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Author blog cards */
.blog-authors-posts-page .margin-bottom--lg article {
  background: radial-gradient(140% 100% at 10% 10%, rgba(255, 255, 255, 0.06), transparent),
    radial-gradient(80% 80% at 90% 80%, rgba(233, 91, 155, 0.18), transparent 60%),
    radial-gradient(80% 80% at 10% 80%, rgba(31, 85, 213, 0.18), transparent 60%);
  border: 1px solid var(--wonderland-blue-800);
  background-color: var(--wonderland-blue-950);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  height: 100%;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-authors-posts-page .margin-bottom--lg article:hover {
  transform: translateY(-4px);
  border-color: var(--wonderland-accent);
}

.blog-authors-posts-page article h2 {
  color: var(--wonderland-gray-100) !important;
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.blog-authors-posts-page article h2 a {
  color: var(--wonderland-gray-100);
  text-decoration: none;
}

.blog-authors-posts-page article h2 a:hover {
  color: var(--wonderland-accent);
  text-decoration: underline;
}

.blog-authors-posts-page article .margin-bottom--sm {
  color: var(--wonderland-gray-300);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.25rem;
}

/* Author excerpt images */
.blog-authors-posts-page .margin-bottom--lg article img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  display: block;
}

/* Read more link */
.blog-authors-posts-page .text--right {
  margin-left: auto;
  align-self: flex-end;
}
.blog-authors-posts-page .text--right a {
  display: inline-block;
  color: var(--wonderland-accent);
  text-decoration: none;
  font-weight: 600;
}
.blog-authors-posts-page .text--right a:hover {
  text-decoration: underline;
}

/* Author list */
.blog-authors-list {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.blog-authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.blog-author-card {
  background: radial-gradient(140% 100% at 10% 10%, rgba(255, 255, 255, 0.06), transparent);
  border: 1px solid var(--wonderland-blue-800);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.blog-author-card:hover {
  transform: translateY(-4px);
  border-color: var(--wonderland-accent);
  text-decoration: none;
  color: inherit;
}

.blog-author-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--wonderland-accent);
  margin: 0 auto 1rem;
}

.blog-author-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--wonderland-gray-100);
  margin: 0 0 0.5rem;
}

.blog-author-card-title {
  font-size: 0.9rem;
  color: var(--wonderland-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

.blog-author-card-posts {
  font-size: 0.85rem;
  color: var(--wonderland-gray-400);
}

/* Mermaid diagram styling */
.mermaid {
  background: transparent !important;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
}

/* Optional overrides for Mermaid variables */
:root {
  --wonderland-accent:   #978cfb;
  --wonderland-lila:     #6b5cff;
  --wonderland-blue-800: #2a3052;
}

/* Mermaid mindmap styling */
.mermaid .mindmap-node {
  fill: var(--wonderland-accent) !important;
  stroke: var(--wonderland-accent) !important;
}

.mermaid .mindmap-node text {
  fill: #ffffff !important;
  font-family: "Inter", system-ui, -apple-system, sans-serif !important;
}

/* Ensure proper contrast for all Mermaid text */
.mermaid * {
  font-family: "Inter", system-ui, -apple-system, sans-serif !important;
}

.mermaid text {
  fill: #ffffff !important;
}