/*
 * docs.vell.ai — Refined overrides
 * Layered on top of mintlify-style.css. Pulls variant A
 * (Stripe/Linear flavor) typography, density, sidebar, TOC,
 * callouts, code, badges, and feedback patterns. Editorial
 * eyebrow utility borrowed from variant B.
 */

:root {
  --refined-radius-sm: 4px;
  --refined-radius-md: 6px;
  --refined-radius-lg: 8px;
  --refined-radius-card: 10px;
  --refined-border: var(--vell-gray-100);
  --refined-border-strong: var(--vell-gray-200);
  --refined-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

[data-md-color-scheme="slate"] {
  --refined-border: rgba(255, 255, 255, 0.06);
  --refined-border-strong: rgba(255, 255, 255, 0.12);
}

/* ============================================================
   Header logo — clear horizontal breathing room and swap to
   the white-fill variant in dark mode (logo-light.svg has
   brand purple fills for the white header)
   ============================================================ */
.md-header__button.md-logo {
  padding: 0.5rem 0.625rem;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.5rem;
  width: auto;
  display: block;
}

[data-md-color-scheme="slate"] .md-header__button.md-logo img {
  content: url('../images/logo.svg');
}

/* ============================================================
   Top of content + sidebar — give a clear gap below the tabs
   row so neither the hero nor the first nav item feels glued
   to the navigation chrome. Sidebar padding intentionally
   matches .md-content__inner so the first nav item baselines
   with the hero card top edge.
   ============================================================ */
.md-content__inner {
  padding-top: 2rem;
}

.md-sidebar__scrollwrap,
.md-sidebar__inner {
  padding-top: 1.5rem;
}

.md-sidebar--primary .md-nav--primary > .md-nav__list {
  padding-top: 0.5rem;
}

.md-sidebar--secondary .md-sidebar__scrollwrap,
.md-sidebar--secondary .md-sidebar__inner {
  padding-top: 2rem;
}

/* ============================================================
   Body density — slightly tighter, Stripe/Linear feel
   ============================================================ */
.md-typeset {
  font-size: 0.9375rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
}

.md-typeset h1 {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.md-typeset h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin-top: 2.25rem;
  margin-bottom: 0.875rem;
  padding-top: 0;
}

.md-typeset h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
}

/* Anchor-link landing offset — header (~50px) + tabs (~48px) +
   breathing room so the heading sits below the sticky chrome
   instead of getting clipped */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  scroll-margin-top: 7rem;
}

/* ============================================================
   Editorial eyebrow + page meta row (borrowed from variant B)
   Use as the first element of an article:
     <p class="docs-eyebrow">Get started — Chapter 02</p>
   ============================================================ */
.docs-eyebrow {
  font-family: var(--refined-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--vell-gray-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
}

[data-md-color-scheme="slate"] .docs-eyebrow {
  color: var(--vell-gray-400);
}

.docs-lede {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--vell-gray-500);
  max-width: 60ch;
  margin: 0 0 1.5rem 0;
}

[data-md-color-scheme="slate"] .docs-lede {
  color: var(--vell-gray-300);
}

.docs-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0 0 1.25rem 0;
  border-bottom: 1px solid var(--refined-border);
  font-size: 0.75rem;
  color: var(--vell-gray-400);
  margin-bottom: 1.75rem;
}

.docs-meta-row > span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.docs-meta-row strong {
  color: var(--vell-gray-700);
  font-weight: 500;
}

[data-md-color-scheme="slate"] .docs-meta-row strong {
  color: var(--vell-gray-100);
}

/* ============================================================
   Primary nav — denser, accent rail on active item
   ============================================================ */
.md-nav__title {
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--vell-gray-400);
}

.md-nav__link {
  font-size: 0.8125rem;
  padding: 5px 10px;
  border-radius: var(--refined-radius-md);
  margin: 1px 0;
}

.md-nav__link--active {
  position: relative;
  font-weight: 550;
  background: rgba(51, 5, 130, 0.06) !important;
  color: var(--vell-primary) !important;
}

[data-md-color-scheme="slate"] .md-nav__link--active {
  background: rgba(192, 132, 252, 0.10) !important;
  color: #c4b5fd !important;
}

.md-nav__link--active::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--vell-primary);
  border-radius: 1px;
}

[data-md-color-scheme="slate"] .md-nav__link--active::before {
  background: #c4b5fd;
}

/* ============================================================
   Right-rail TOC — vertical border-left, accent active rail
   ============================================================ */
.md-sidebar--secondary .md-nav__title {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vell-gray-400);
  padding-bottom: 0.625rem;
}

.md-sidebar--secondary .md-nav__list {
  border-left: 1px solid var(--refined-border);
  padding-left: 0;
  margin-left: 1px;
}

.md-sidebar--secondary .md-nav__link {
  font-size: 0.75rem;
  padding: 4px 0 4px 12px;
  border-radius: 0;
  border-left: 2px solid transparent;
  margin-left: -1px;
  color: var(--vell-gray-400);
  background: transparent !important;
  font-weight: 400;
}

.md-sidebar--secondary .md-nav__link::before {
  display: none !important;
}

.md-sidebar--secondary .md-nav__link:hover {
  color: var(--vell-gray-700);
}

.md-sidebar--secondary .md-nav__link--active {
  color: var(--vell-primary) !important;
  border-left-color: var(--vell-primary);
  font-weight: 550;
}

[data-md-color-scheme="slate"] .md-sidebar--secondary .md-nav__link {
  color: var(--vell-gray-400);
}

[data-md-color-scheme="slate"] .md-sidebar--secondary .md-nav__link--active {
  color: #c4b5fd !important;
  border-left-color: #c4b5fd;
}

/* ============================================================
   Callouts / admonitions — absolute 1px accent bar inside
   overflow-hidden container (brand non-negotiable)
   ============================================================ */
.md-typeset .admonition,
.md-typeset details {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--refined-border);
  border-left: 1px solid var(--refined-border);
  border-radius: var(--refined-radius-card);
  background: var(--vell-gray-25);
  padding: 0;
  margin: 1rem 0;
}

[data-md-color-scheme="slate"] .md-typeset .admonition,
[data-md-color-scheme="slate"] .md-typeset details {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--refined-border);
}

.md-typeset .admonition::before,
.md-typeset details::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--vell-gray-300);
}

.md-typeset .admonition.note::before,
.md-typeset details.note::before,
.md-typeset .admonition.info::before,
.md-typeset details.info::before { background: var(--vell-primary); }

.md-typeset .admonition.tip::before,
.md-typeset details.tip::before { background: var(--vell-success); }

.md-typeset .admonition.warning::before,
.md-typeset details.warning::before { background: #d97706; }

.md-typeset .admonition.danger::before,
.md-typeset details.danger::before,
.md-typeset .admonition.error::before { background: var(--vell-error); }

.md-typeset .admonition-title,
.md-typeset summary {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--vell-gray-800);
  padding: 0.75rem 1rem 0.25rem 1rem;
}

[data-md-color-scheme="slate"] .md-typeset .admonition-title,
[data-md-color-scheme="slate"] .md-typeset summary {
  color: var(--vell-gray-100);
}

.md-typeset .admonition > *:not(.admonition-title),
.md-typeset details > *:not(summary) {
  padding: 0 1rem 0.875rem 1rem;
  font-size: 0.8125rem;
  color: var(--vell-gray-500);
}

[data-md-color-scheme="slate"] .md-typeset .admonition > *:not(.admonition-title),
[data-md-color-scheme="slate"] .md-typeset details > *:not(summary) {
  color: var(--vell-gray-300);
}

/* Reset background tints — refined uses neutral surface, accent in the bar only */
.md-typeset .admonition.note,
.md-typeset details.note,
.md-typeset .admonition.tip,
.md-typeset details.tip,
.md-typeset .admonition.warning,
.md-typeset details.warning,
.md-typeset .admonition.danger,
.md-typeset details.danger,
.md-typeset .admonition.error,
.md-typeset .admonition.info,
.md-typeset details.info {
  background: var(--vell-gray-25);
  border-color: var(--refined-border);
}

[data-md-color-scheme="slate"] .md-typeset .admonition.note,
[data-md-color-scheme="slate"] .md-typeset details.note,
[data-md-color-scheme="slate"] .md-typeset .admonition.tip,
[data-md-color-scheme="slate"] .md-typeset details.tip,
[data-md-color-scheme="slate"] .md-typeset .admonition.warning,
[data-md-color-scheme="slate"] .md-typeset details.warning,
[data-md-color-scheme="slate"] .md-typeset .admonition.danger,
[data-md-color-scheme="slate"] .md-typeset details.danger,
[data-md-color-scheme="slate"] .md-typeset .admonition.error,
[data-md-color-scheme="slate"] .md-typeset .admonition.info,
[data-md-color-scheme="slate"] .md-typeset details.info {
  background: rgba(255, 255, 255, 0.02);
}

/* ============================================================
   Code — refined: 6px radius, monospace filename strip,
   inline mono kept simple
   ============================================================ */
.md-typeset code {
  background: var(--vell-gray-50);
  border: 1px solid var(--refined-border);
  border-radius: var(--refined-radius-sm);
  font-family: var(--refined-mono);
  font-size: 0.8125em;
  padding: 0.1rem 0.32rem;
  color: var(--vell-gray-800);
  font-weight: 500;
}

[data-md-color-scheme="slate"] .md-typeset code {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--refined-border);
  color: var(--vell-gray-100);
}

.md-typeset pre {
  border-radius: var(--refined-radius-card);
  border: 1px solid #1f2937;
  box-shadow: none;
  background: #0b0d12 !important;
}

.md-typeset pre code {
  font-size: 0.8125rem;
  line-height: 1.65;
  padding: 1rem 1.125rem;
}

/* ============================================================
   Tables — tighter rows, monospace cells where appropriate
   ============================================================ */
.md-typeset table:not([class]) {
  border-radius: var(--refined-radius-card);
  border: 1px solid var(--refined-border);
  box-shadow: none;
  font-size: 0.8125rem;
}

.md-typeset table:not([class]) th {
  background: var(--vell-gray-25);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  padding: 0.625rem 0.875rem;
  color: var(--vell-gray-700);
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--vell-gray-200);
}

.md-typeset table:not([class]) td {
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
}

/* HTTP method chips — for API ref pages */
.docs-method {
  display: inline-flex;
  align-items: center;
  font-family: var(--refined-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--refined-radius-sm);
  color: #fff;
  margin-right: 0.5rem;
}
.docs-method.get    { background: #048a0e; }
.docs-method.post   { background: #048a0e; }
.docs-method.put    { background: #d97706; }
.docs-method.patch  { background: #d97706; }
.docs-method.delete { background: #dc043b; }

/* ============================================================
   Status badges — rounded-md, not pills (brand rule)
   ============================================================ */
.status-new,
.status-beta {
  border-radius: var(--refined-radius-md);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid transparent;
}

.status-new {
  background: rgba(4, 138, 14, 0.10);
  color: var(--vell-success);
  border-color: rgba(4, 138, 14, 0.18);
}

.status-beta {
  background: rgba(51, 5, 130, 0.08);
  color: var(--vell-primary);
  border-color: rgba(51, 5, 130, 0.16);
}

[data-md-color-scheme="slate"] .status-beta {
  background: rgba(192, 132, 252, 0.12);
  color: #c4b5fd;
  border-color: rgba(192, 132, 252, 0.22);
}

.trust-badge {
  border-radius: var(--refined-radius-md);
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 500;
}

/* The hero "AWS Partner GTM Platform" eyebrow keeps its pill —
   it reads as an eyebrow chip, not a status pill. */

/* ============================================================
   Cards — refined: 6px radius, smaller icon chip,
   monospace meta, accent CTA
   ============================================================ */
.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media screen and (max-width: 76.1875em) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 48em) {
  .card-grid { grid-template-columns: 1fr; }
}

.feature-card {
  border-radius: var(--refined-radius-card);
  padding: 1.125rem;
  border: 1px solid var(--refined-border);
  box-shadow: none;
  transition: border-color 150ms ease, transform 150ms ease;
}

.feature-card:hover {
  border-color: rgba(51, 5, 130, 0.2);
  box-shadow: none;
  transform: translateY(-1px);
}

.feature-card::before { display: none; }

.feature-card .card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--refined-radius-lg);
  background: rgba(51, 5, 130, 0.08);
  color: var(--vell-primary);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.feature-card .card-icon svg,
.feature-card .card-icon img {
  width: 1rem;
  height: 1rem;
}

.feature-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.005em;
}

.feature-card p {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0 0 0.625rem 0;
  color: var(--vell-gray-500);
}

.feature-card .card-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--vell-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.feature-card .card-link::after { content: "→"; }

[data-md-color-scheme="slate"] .feature-card .card-icon {
  background: rgba(192, 132, 252, 0.12);
  color: #c4b5fd;
}

[data-md-color-scheme="slate"] .feature-card .card-link {
  color: #c4b5fd;
}

/* Quick-start "step" number — borrows B's numeric prefix idea
   in a JetBrains Mono treatment */
.feature-card .card-step {
  font-family: var(--refined-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--vell-gray-400);
  letter-spacing: 0.04em;
  margin-bottom: 0.625rem;
  display: block;
}

.feature-card .card-time {
  font-family: var(--refined-mono);
  font-size: 0.6875rem;
  color: var(--vell-gray-400);
  margin-right: auto;
}

.feature-card .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

/* ============================================================
   Hero card — variant A pattern (badge → h1 → lede → CTAs,
   optional terminal mock on the right)
   ============================================================ */
.docs-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem 2rem;
  background: var(--vell-gray-25);
  border: 1px solid var(--refined-border);
  border-radius: 14px;
  margin: 1rem 0 2rem 0;
}

[data-md-color-scheme="slate"] .docs-hero {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--refined-border);
}

@media screen and (max-width: 76.1875em) {
  .docs-hero { grid-template-columns: 1fr; }
}

.docs-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 4px 10px;
  background: rgba(51, 5, 130, 0.08);
  color: var(--vell-primary);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

[data-md-color-scheme="slate"] .docs-hero__badge {
  background: rgba(192, 132, 252, 0.12);
  color: #c4b5fd;
}

.docs-hero h1 {
  font-size: 2rem;
  margin: 0 0 0.625rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.docs-hero p {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
  color: var(--vell-gray-500);
  max-width: 30em;
}

[data-md-color-scheme="slate"] .docs-hero p { color: var(--vell-gray-300); }

.docs-hero__ctas {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.docs-hero__ctas .md-button {
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  border-radius: var(--refined-radius-lg);
  box-shadow: none;
}

.docs-hero__ctas .md-button--primary {
  background: var(--vell-gray-800);
  color: #fff;
}

[data-md-color-scheme="slate"] .docs-hero__ctas .md-button--primary {
  background: #fff;
  color: var(--vell-gray-900);
}

.docs-hero__ctas .md-button--secondary {
  background: transparent;
  border: 1px solid var(--refined-border-strong);
}

.docs-terminal {
  background: #0b0d12;
  border: 1px solid #1a1d24;
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--refined-mono);
  font-size: 0.75rem;
}

.docs-terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #1a1d24;
}

.docs-terminal__bar span:nth-child(1),
.docs-terminal__bar span:nth-child(2),
.docs-terminal__bar span:nth-child(3) {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.docs-terminal__bar span:nth-child(1) { background: #ff5f57; }
.docs-terminal__bar span:nth-child(2) { background: #febc2e; }
.docs-terminal__bar span:nth-child(3) { background: #28c840; }

.docs-terminal__bar small {
  margin-left: 0.5rem;
  color: #6c7086;
  font-size: 0.6875rem;
}

.docs-terminal pre {
  margin: 0 !important;
  padding: 1rem !important;
  background: transparent !important;
  border: none !important;
  color: #e4e7ee;
  font-size: 0.75rem;
  line-height: 1.65;
  border-radius: 0 !important;
}

.docs-terminal .c { color: #6c7086; } /* comment */
.docs-terminal .k { color: #89b4fa; } /* keyword */
.docs-terminal .ok { color: #a6e3a1; } /* checkmark */

/* ============================================================
   Capabilities — bordered 2-col list (variant A pattern)
   ============================================================ */
.docs-capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--refined-border);
  border-radius: var(--refined-radius-card);
  overflow: hidden;
  background: var(--vell-white);
  margin: 1.5rem 0 2.25rem;
}

[data-md-color-scheme="slate"] .docs-capabilities {
  background: rgba(255, 255, 255, 0.02);
}

.docs-capabilities__cell {
  padding: 1rem 1.125rem;
  border-right: 1px solid var(--refined-border);
  border-bottom: 1px solid var(--refined-border);
}

.docs-capabilities__cell:nth-child(2n) { border-right: none; }
.docs-capabilities__cell:nth-last-child(-n+2) { border-bottom: none; }

@media screen and (max-width: 48em) {
  .docs-capabilities { grid-template-columns: 1fr; }
  .docs-capabilities__cell { border-right: none; border-bottom: 1px solid var(--refined-border); }
  .docs-capabilities__cell:last-child { border-bottom: none; }
}

.docs-capabilities__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.375rem;
}

.docs-capabilities__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vell-gray-800);
}

[data-md-color-scheme="slate"] .docs-capabilities__name { color: var(--vell-gray-100); }

.docs-capabilities__count {
  font-family: var(--refined-mono);
  font-size: 0.6875rem;
  color: var(--vell-gray-400);
}

.docs-capabilities__desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--vell-gray-500);
  margin: 0;
}

[data-md-color-scheme="slate"] .docs-capabilities__desc { color: var(--vell-gray-400); }

/* ============================================================
   Resource link cards (icon · title↗ · desc)
   ============================================================ */
.docs-reslinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.docs-reslinks > p {
  margin: 0 !important;
  display: block;
}

@media screen and (max-width: 48em) {
  .docs-reslinks { grid-template-columns: 1fr; }
}

.docs-reslinks .docs-reslinks__item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.125rem 1.125rem 1.125rem 3.75rem;
  border: 1px solid var(--refined-border);
  border-radius: var(--refined-radius-card);
  text-decoration: none !important;
  border-bottom: 1px solid var(--refined-border) !important;
  background: var(--vell-white);
  color: inherit;
  transition: border-color 150ms ease;
  position: relative;
}

[data-md-color-scheme="slate"] .docs-reslinks .docs-reslinks__item {
  background: rgba(255, 255, 255, 0.02);
}

.docs-reslinks .docs-reslinks__item:hover {
  border-color: rgba(51, 5, 130, 0.22) !important;
}

/* Icon chip via pseudo-element — keeps the markdown source clean */
.docs-reslinks .docs-reslinks__item::before {
  content: "";
  position: absolute;
  left: 1.125rem;
  top: 1.125rem;
  width: 36px;
  height: 36px;
  background-color: var(--vell-gray-25);
  border: 1px solid var(--refined-border);
  border-radius: var(--refined-radius-lg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

[data-md-color-scheme="slate"] .docs-reslinks .docs-reslinks__item::before {
  background-color: rgba(255, 255, 255, 0.04);
}

.docs-reslinks .docs-reslinks__item--book::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/><path d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/></svg>");
}

.docs-reslinks .docs-reslinks__item--server::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='3' width='20' height='8' rx='2'/><rect x='2' y='13' width='20' height='8' rx='2'/><line x1='6' y1='7' x2='6.01' y2='7'/><line x1='6' y1='17' x2='6.01' y2='17'/></svg>");
}

[data-md-color-scheme="slate"] .docs-reslinks .docs-reslinks__item--book::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/><path d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/></svg>");
}

[data-md-color-scheme="slate"] .docs-reslinks .docs-reslinks__item--server::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='3' width='20' height='8' rx='2'/><rect x='2' y='13' width='20' height='8' rx='2'/><line x1='6' y1='7' x2='6.01' y2='7'/><line x1='6' y1='17' x2='6.01' y2='17'/></svg>");
}

.docs-reslinks .docs-reslinks__item strong {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vell-gray-800);
  margin-bottom: 0.125rem;
}

.docs-reslinks .docs-reslinks__item strong::after {
  content: "↗";
  font-size: 0.75rem;
  opacity: 0.6;
  font-weight: 400;
}

[data-md-color-scheme="slate"] .docs-reslinks .docs-reslinks__item strong {
  color: var(--vell-gray-100);
}

.docs-reslinks .docs-reslinks__item span {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--vell-gray-500);
  display: block;
}

[data-md-color-scheme="slate"] .docs-reslinks .docs-reslinks__item span {
  color: var(--vell-gray-400);
}

/* ============================================================
   Section numbering — opt-in via .numbered-sections wrapper
   <div class="numbered-sections" markdown>
     ## Heading One
     ## Heading Two
   </div>
   ============================================================ */
.numbered-sections { counter-reset: docs-section; }

.numbered-sections h2 {
  counter-increment: docs-section;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.numbered-sections h2::before {
  content: counter(docs-section, decimal-leading-zero);
  font-family: var(--refined-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--vell-gray-400);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* ============================================================
   Article footer — "Was this page helpful?" + prev/next
   Use as raw HTML at end of long articles.
   ============================================================ */
.docs-feedback {
  margin-top: 3rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--refined-border);
  border-radius: var(--refined-radius-card);
  background: var(--vell-gray-25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

[data-md-color-scheme="slate"] .docs-feedback {
  background: rgba(255, 255, 255, 0.02);
}

.docs-feedback__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vell-gray-800);
  margin: 0;
}

[data-md-color-scheme="slate"] .docs-feedback__title { color: var(--vell-gray-100); }

.docs-feedback__sub {
  font-size: 0.75rem;
  color: var(--vell-gray-400);
  margin: 0.125rem 0 0 0;
}

.docs-feedback__btns {
  display: flex;
  gap: 0.5rem;
}

.docs-feedback button,
.docs-feedback .docs-feedback__btn {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--refined-border-strong);
  border-radius: var(--refined-radius-md);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--vell-gray-700);
  cursor: pointer;
}

[data-md-color-scheme="slate"] .docs-feedback button,
[data-md-color-scheme="slate"] .docs-feedback .docs-feedback__btn {
  color: var(--vell-gray-200);
}

.docs-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.docs-prevnext a {
  padding: 0.875rem 1rem;
  border: 1px solid var(--refined-border);
  border-radius: var(--refined-radius-card);
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
}

.docs-prevnext a.next { align-items: flex-end; text-align: right; }

.docs-prevnext .label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--vell-gray-400);
}

.docs-prevnext .title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vell-gray-800);
  margin-top: 0.25rem;
}

[data-md-color-scheme="slate"] .docs-prevnext .title { color: var(--vell-gray-100); }

/* ============================================================
   Disable the existing hero gradient & cosmetic animations
   when using the refined hero card pattern
   ============================================================ */
.docs-hero ~ .hero-section,
.hero-section + .docs-hero { display: none; }

/* Tone down the heavy stagger animations — refined feel is calmer */
.card-grid .feature-card { animation: none; }
.md-content__inner { animation: none; }
