/* ============================================================
   Lookhouse Docs — redesign v3 (sober, near-monochrome, single accent).
   Reference points: Stripe Docs, Linear, Vercel.
   ============================================================ */

/* ── Design tokens — LIGHT ─────────────────────────────────── */
:root {
  --bg:        #fafaf9;
  --surface:   #ffffff;
  --surface-2: #f5f5f4;
  --surface-3: #ececea;

  --ink-900: #18181b;
  --ink-700: #3f3f46;
  --ink-500: #71717a;
  --ink-400: #a1a1aa;
  --ink-300: #d4d4d8;

  --line:        rgba(24, 24, 27, .08);
  --line-strong: rgba(24, 24, 27, .14);

  --accent:      #b8400e;
  --accent-700:  #962f06;
  --accent-tint: rgba(184, 64, 14, .08);

  --success: #15803d;

  --code-bg:  #0f0f10;
  --code-fg:  #e7e5e4;
  --code-dim: #a8a29e;

  --t-xs:  .75rem;
  --t-sm:  .875rem;
  --t-md:  1rem;
  --t-lg:  1.0625rem;
  --t-xl:  1.25rem;
  --t-2xl: 1.625rem;
  --t-3xl: 2rem;
  --t-display: clamp(1.875rem, 2.4vw + 1rem, 2.875rem);

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.25rem; --s-6: 1.5rem; --s-7: 1.75rem; --s-8: 2rem;
  --s-10: 2.5rem; --s-12: 3rem; --s-16: 4rem; --s-20: 5rem; --s-24: 6rem;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  --shadow-1: 0 1px 0 rgba(24, 24, 27, .04);
  --shadow-2: 0 1px 2px rgba(24, 24, 27, .04), 0 4px 12px rgba(24, 24, 27, .04);

  --container: 1200px;
  --header-h: 56px;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;

  /* ── Wire tokens into Material's CSS variables ── */
  --md-primary-fg-color:           var(--ink-900);
  --md-primary-fg-color--light:    var(--ink-700);
  --md-primary-fg-color--dark:     var(--ink-900);
  --md-primary-bg-color:           var(--surface);
  --md-primary-bg-color--light:    rgba(255, 255, 255, .7);

  --md-accent-fg-color:            var(--accent);
  --md-accent-fg-color--transparent: var(--accent-tint);
  --md-accent-bg-color:            var(--surface);
  --md-accent-bg-color--light:     rgba(255, 255, 255, .7);

  --md-default-bg-color:           var(--bg);
  --md-default-fg-color:           var(--ink-900);
  --md-default-fg-color--light:    var(--ink-700);
  --md-default-fg-color--lighter:  var(--ink-500);
  --md-default-fg-color--lightest: var(--ink-400);
  --md-typeset-color:              var(--ink-900);

  --md-typeset-a-color:            var(--accent);

  --md-code-bg-color:              var(--surface-2);
  --md-code-fg-color:              var(--ink-900);

  --md-text-font: var(--font-sans);
  --md-code-font: var(--font-mono);
  --md-text-font-family: var(--font-sans);
  --md-code-font-family: var(--font-mono);
}

/* ── Design tokens — DARK (Material's slate scheme) ─────────── */
[data-md-color-scheme="slate"] {
  --bg:        #0c0c0d;
  --surface:   #131314;
  --surface-2: #18181a;
  --surface-3: #1f1f22;

  --ink-900: #fafaf9;
  --ink-700: #d4d4d8;
  --ink-500: #a1a1aa;
  --ink-400: #71717a;
  --ink-300: #3f3f46;

  --line:        rgba(250, 250, 249, .08);
  --line-strong: rgba(250, 250, 249, .14);

  --accent-tint: rgba(184, 64, 14, .16);
  --code-bg:     #0a0a0a;

  --shadow-2: 0 1px 2px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .5);

  --md-default-bg-color:   var(--bg);
  --md-default-fg-color:   var(--ink-900);
  --md-typeset-color:      var(--ink-900);
  --md-code-bg-color:      var(--surface-2);
  --md-typeset-a-color:    var(--accent);
}

/* ============================================================
   Base typography (Material .md-typeset)
   ============================================================ */
body {
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.md-typeset {
  font-family: var(--font-sans);
  font-size: 15px;             /* single source of truth for body text */
  line-height: 1.65;
  color: var(--ink-900);
}
/* Body children inherit .md-typeset font-size — no per-element overrides. */
.md-typeset p,
.md-typeset li,
.md-typeset blockquote,
.md-typeset dd {
  font-size: inherit;
  line-height: 1.65;
}
.md-typeset p { color: var(--ink-700); }

/* Headings use rem-based sizes (root-relative), so they're unaffected by
   the body 15px change. Letter spacing tightens at larger sizes. */
.md-typeset h1 {
  font-size: var(--t-3xl);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink-900);
  margin: 0 0 var(--s-3);
}

.md-typeset h2 {
  font-size: var(--t-xl);     /* 1.25rem = 20px, tighter than 26px before */
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink-900);
  margin: var(--s-8) 0 var(--s-3);
}
.md-typeset h2::after { display: none; }

.md-typeset h3 {
  font-size: var(--t-md);     /* 1rem = 16px, just above body */
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--ink-900);
  margin: var(--s-6) 0 var(--s-2);
}

.md-typeset h4 {
  font-size: 15px;            /* matches body; weight carries the heading */
  font-weight: 600;
  color: var(--ink-900);
  margin: var(--s-5) 0 var(--s-2);
}

.md-typeset a {
  color: var(--accent);
  text-decoration: none;
}
.md-typeset a:hover { color: var(--accent-700); }

::selection { background: var(--accent-tint); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ============================================================
   Header — slim 56px row with brand, Docs ▾ menu, right cluster
   ============================================================ */
.md-header {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  color: var(--ink-900);
  height: var(--header-h);
}

.md-header__inner {
  height: var(--header-h);
  align-items: center;
  display: flex;
  gap: var(--s-4);
  max-width: var(--container);
  padding-inline: var(--s-6);
  margin-inline: auto;
}

.md-header__button,
.md-header__title,
.md-header__topic {
  color: var(--ink-900);
}

/* Brand block — mark + wordmark, near-flat. */
.lh-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--ink-900);
  text-decoration: none;
  flex: 0 0 auto;
}
.lh-brand:hover { color: var(--ink-900); }

.lh-brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--ink-900);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}
.lh-brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  opacity: .9;
}
.lh-brand-name { font-size: var(--t-sm); font-weight: 600; letter-spacing: -.005em; }
.lh-brand-sub  { color: var(--ink-500); font-weight: 500; font-size: var(--t-sm); }

/* Hide the default Material logo/title block — brand replaces it. */
.md-header__title,
.md-header > .md-header__option,
.md-header .md-logo {
  display: none;
}

/* Docs ▾ disclosure menu. */
.lh-docs-menu { position: relative; display: inline-block; }
.lh-docs-menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-700);
  user-select: none;
}
.lh-docs-menu > summary::-webkit-details-marker { display: none; }
.lh-docs-menu > summary:hover { color: var(--ink-900); background: var(--surface-2); }
.lh-docs-menu[open] > summary { color: var(--ink-900); background: var(--surface-2); }
.lh-docs-menu > summary .chev { transition: transform .15s; color: var(--ink-400); }
.lh-docs-menu[open] > summary .chev { transform: rotate(180deg); color: var(--ink-700); }

.lh-megapanel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: min(560px, 92vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  z-index: 60;
}
.lh-megapanel h6 {
  margin: 0 0 var(--s-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.lh-megapanel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.lh-megapanel a {
  display: block;
  padding: 5px 8px;
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  color: var(--ink-700);
  font-weight: 500;
  text-decoration: none;
}
.lh-megapanel a:hover { background: var(--surface-2); color: var(--ink-900); }

@media (max-width: 640px) {
  .lh-megapanel { grid-template-columns: 1fr; }
}

/* Right cluster: search, status chip, CTA. */
.lh-header-right {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.lh-status-chip {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-700);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.lh-status-chip:hover { background: var(--surface-2); color: var(--ink-900); }
.lh-status-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
@media (min-width: 960px) { .lh-status-chip { display: inline-flex; } }

.lh-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: var(--t-sm);
  background: var(--ink-900);
  color: var(--bg);
  border: 1px solid var(--ink-900);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.lh-header-cta:hover {
  background: var(--ink-700);
  border-color: var(--ink-700);
  color: var(--bg);
}

/* Style Material's search bar to match. */
.md-search__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  height: 34px;
}
.md-search__input {
  background: transparent;
  color: var(--ink-900);
  font-size: var(--t-sm);
}
.md-search__input::placeholder { color: var(--ink-400); }
.md-search__icon { color: var(--ink-500); }

/* Tighten the mobile hamburger affordance. */
.md-header__button.md-icon {
  color: var(--ink-700);
}

/* Drop the secondary tabs row entirely (we don't use navigation.tabs). */
.md-tabs { display: none !important; }

/* ============================================================
   Sidebar (left drawer + right TOC) — same body size, lighter weight.
   Section labels ("For Creators", "Table of contents") stay as 11px
   uppercase eyebrows since they're a heading role, not body text.
   ============================================================ */
.md-nav__title {
  color: var(--ink-500);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}

.md-nav__link {
  color: var(--ink-700);
  font-size: 15px;         /* matches .md-typeset body */
  line-height: 1.55;
  font-weight: 400;
}
.md-nav__link:hover,
.md-nav__link--active {
  color: var(--ink-900);
}
/* Active link in the left drawer keeps the accent inset bar from before. */
.md-nav__item .md-nav__link--active {
  font-weight: 500;
}

/* ============================================================
   Home page — hero
   ============================================================ */
.lh-home {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--s-6);
}

.lh-hero { padding: var(--s-20) 0 var(--s-8); }

.lh-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-500);
  display: block;
  margin-bottom: var(--s-3);
}

.lh-hero h1 {
  font-size: var(--t-display) !important;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0 0 var(--s-3);
  font-weight: 600;
  max-width: 20ch;
  color: var(--ink-900);
}

.lh-hero-lead {
  font-size: var(--t-lg);
  color: var(--ink-500);
  max-width: 56ch;
  margin: 0 0 var(--s-12);
  line-height: 1.55;
}

/* ============================================================
   Role grid — three quiet tiles
   ============================================================ */
.lh-role-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .lh-role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.lh-role {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-6) var(--s-5);
  transition: border-color .18s, background .18s;
  color: var(--ink-900);
  min-width: 0;
  min-height: 240px;
  text-decoration: none;
}
.lh-role:hover {
  border-color: var(--line-strong);
  color: var(--ink-900);
}
.lh-role-aud {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lh-role h2 {
  margin: 0;
  font-size: var(--t-xl);
  letter-spacing: -.015em;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-900);
}
.lh-role h2::after { display: none; }
.lh-role p {
  margin: 0;
  color: var(--ink-500);
  font-size: var(--t-sm);
  line-height: 1.55;
}
.lh-role-glance {
  margin-top: var(--s-2);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--ink-500);
  line-height: 1.6;
}
.lh-role-glance span {
  color: var(--ink-700);
  border-bottom: 1px solid var(--line-strong);
}
.lh-role-link {
  margin-top: auto;
  padding-top: var(--s-4);
  font-weight: 500;
  font-size: var(--t-sm);
  color: var(--ink-900);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lh-role:hover .lh-role-link { color: var(--accent); }
.lh-role-link svg { transition: transform .18s; }
.lh-role:hover .lh-role-link svg {
  transform: translateX(2px);
  color: var(--accent);
}

/* ============================================================
   Utilities row (Glossary / Changelog / Status)
   ============================================================ */
.lh-utilities {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
  margin-top: var(--s-10);
}
@media (min-width: 720px) {
  .lh-utilities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.lh-utilities a {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink-900);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.lh-utilities a:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}
.lh-qa-ico {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--ink-700);
  flex: none;
}
.lh-qa-title { font-weight: 500; font-size: var(--t-sm); color: var(--ink-900); }
.lh-qa-sub  { font-size: var(--t-xs); color: var(--ink-500); line-height: 1.5; }

/* ============================================================
   Section heading
   ============================================================ */
.lh-section { padding: var(--s-16) 0; }
.lh-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-8);
  flex-wrap: wrap;
}
.lh-section-head h2 {
  font-size: var(--t-2xl);
  margin: 0 0 var(--s-2);
  letter-spacing: -.02em;
  font-weight: 600;
}
.lh-section-head h2::after { display: none; }
.lh-section-head p {
  margin: 0;
  color: var(--ink-500);
  max-width: 60ch;
  font-size: var(--t-sm);
  line-height: 1.6;
}
.lh-section-head a {
  color: var(--ink-700);
  font-weight: 500;
  font-size: var(--t-sm);
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  text-decoration: none;
}
.lh-section-head a:hover {
  color: var(--ink-900);
  border-bottom-color: var(--ink-900);
}

/* ============================================================
   Cards (LoRA types)
   ============================================================ */
.lh-cards {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .lh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .lh-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.lh-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color .15s;
  color: var(--ink-900);
  min-width: 0;
  min-height: 180px;
  text-decoration: none;
}
.lh-card:hover { border-color: var(--line-strong); color: var(--ink-900); }
.lh-card-head { display: flex; align-items: center; gap: var(--s-3); }
.lh-card-ico {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--ink-700);
  flex: none;
}
.lh-card-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.lh-card-tag .pip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-400);
}
.lh-card-tag.new .pip { background: var(--success); }
.lh-card h3 {
  margin: 0;
  font-size: var(--t-md);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.4;
  color: var(--ink-900);
}
.lh-card h3::after { display: none; }
.lh-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: var(--t-sm);
  line-height: 1.55;
}
.lh-card-cta {
  margin-top: auto;
  padding-top: var(--s-3);
  font-weight: 500;
  color: var(--ink-700);
  font-size: var(--t-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lh-card:hover .lh-card-cta { color: var(--ink-900); }
.lh-card-cta svg { transition: transform .18s; }
.lh-card:hover .lh-card-cta svg { transform: translateX(2px); }

/* ============================================================
   Editorial promos
   ============================================================ */
.lh-promos {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .lh-promos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lh-promo {
  display: grid;
  grid-template-rows: auto auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .15s;
  min-width: 0;
  text-decoration: none;
  color: var(--ink-900);
}
.lh-promo:hover { border-color: var(--line-strong); }
.lh-promo-ph {
  height: 160px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.lh-promo-ph::after {
  content: "Editorial header — image goes here";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-400);
  font-size: var(--t-xs);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.lh-promo-body { padding: var(--s-5) var(--s-6) var(--s-6); }
.lh-promo h3 {
  margin: var(--s-2) 0 var(--s-2);
  font-size: var(--t-xl);
  letter-spacing: -.015em;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-900);
}
.lh-promo h3::after { display: none; }
.lh-promo p {
  color: var(--ink-500);
  margin: 0 0 var(--s-3);
  font-size: var(--t-sm);
  line-height: 1.6;
}
.lh-promo-cta {
  color: var(--ink-900);
  font-weight: 500;
  font-size: var(--t-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lh-promo-cta svg { transition: transform .18s; }
.lh-promo:hover .lh-promo-cta svg { transform: translateX(2px); }
.lh-promo-also {
  font-size: var(--t-xs);
  color: var(--ink-500);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  margin-top: var(--s-3);
}
.lh-promo-also a {
  color: var(--ink-700);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  text-decoration: none;
}
.lh-promo-also a:hover {
  color: var(--ink-900);
  border-bottom-color: var(--ink-700);
}

/* ============================================================
   Label strip
   ============================================================ */
.lh-label-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-4) 0;
  font-size: var(--t-sm);
  margin-top: var(--s-16);
  background: var(--surface);
}
.lh-label-strip-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-6);
  display: flex;
  gap: var(--s-5);
  align-items: center;
  flex-wrap: wrap;
}
.lh-label-strip strong {
  color: var(--ink-500);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lh-label-strip a {
  color: var(--ink-700);
  font-weight: 500;
  text-decoration: none;
}
.lh-label-strip a:hover { color: var(--ink-900); }
.lh-label-strip .sub {
  margin-inline-start: auto;
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   Material chrome refinements that apply to all pages
   ============================================================ */

/* Inline code — soft chip on neutral surface. */
.md-typeset code:not(pre code) {
  background: var(--surface-2);
  color: var(--ink-900);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.85em;
}

/* Code blocks — keep dark even in light mode (matches proposal). */
.md-typeset pre > code,
.md-typeset .highlight pre {
  background: var(--code-bg);
  color: var(--code-fg);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}
.md-typeset .highlight {
  border-radius: var(--r-md);
  background: var(--code-bg);
}

/* Admonitions — subtle border, no fill. Body inherits 15px from .md-typeset. */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--surface);
  box-shadow: none;
  color: var(--ink-700);
}
.md-typeset .admonition-title,
.md-typeset summary {
  background: transparent;
  color: var(--ink-900);
  font-weight: 600;
}
.md-typeset .admonition-title::before,
.md-typeset summary::before { color: var(--accent); }

/* Tables — flat, line-led. Inherit body 15px. */
.md-typeset table:not([class]) {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: none;
}
.md-typeset table:not([class]) th {
  background: var(--surface-2);
  color: var(--ink-900);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.md-typeset table:not([class]) td {
  border-top: 1px solid var(--line);
}

/* Footer / nav.footer — quiet. */
.md-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--ink-700);
}
.md-footer-meta { background: var(--surface); }
.md-footer-meta__inner { color: var(--ink-500); font-size: var(--t-xs); }
.md-footer-copyright { color: var(--ink-500); }

/* Mermaid — neutral. */
.md-typeset .mermaid { text-align: center; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 760px) {
  .lh-hero { padding: var(--s-12) 0 var(--s-6); }
  .lh-hero h1 { max-width: 100%; }
}
@media (max-width: 600px) {
  .lh-home { padding-inline: var(--s-4); }
}
