/* MoneyBackTest WordPress Theme — Editorial Indian fintech design system */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,700;1,9..144,400&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --ink: #0C1524;
  --ink-mid: #152238;
  --ink-soft: #1E3048;
  --paper: #FAF8F5;
  --paper-alt: #F0EBE3;
  --surface: #FFFFFF;
  --amber: #C9923E;
  --amber-light: #E8B968;
  --amber-dark: #9A7028;
  --text: #1A2332;
  --text-muted: #5A6478;
  --border: #DDD6CB;
  --border-strong: #C4BAA8;
  --success: #247A52;
  --success-bg: #E8F5EE;
  --warning: #9A7028;
  --warning-bg: #FBF5E8;
  --danger: #A63D3D;
  --danger-bg: #FAEDED;
  --primary: var(--ink-mid);
  --primary-dark: var(--ink);
  --accent: var(--amber);
  --accent-hover: var(--amber-dark);
  --bg: var(--paper);
  --bg-alt: var(--paper-alt);
  --text-light: var(--text-muted);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(12, 21, 36, 0.06);
  --shadow: 0 2px 8px rgba(12, 21, 36, 0.08);
  --shadow-lg: 0 12px 32px rgba(12, 21, 36, 0.12);
  --card-shadow: var(--shadow);
  --card-shadow-hover: var(--shadow-lg);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --focus-ring: 0 0 0 3px rgba(201, 146, 62, 0.45);
  --z-header: 100;
  --z-skip: 200;
  --container: 1180px;
  --narrow: 760px;
  --border-on-dark: rgba(255, 255, 255, 0.5);
  --touch-target-min: 44px;
  --header-height: 4.5rem;
  --z-nav-backdrop: 99;
  --z-nav-overlay: 101;
  --error: var(--danger);
  --error-bg: var(--danger-bg);
  --text-on-ink: #ffffff;
  --text-on-ink-muted: rgba(255, 255, 255, 0.82);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(201, 146, 62, 0.28);
  color: var(--ink);
}

::-moz-selection {
  background: rgba(201, 146, 62, 0.28);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1.25rem;
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
  outline: none;
  box-shadow: var(--focus-ring);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5vw, 2.875rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.125rem); margin-bottom: 0.875rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.0625rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; text-wrap: pretty; }

a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}
a:hover { color: var(--amber-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: env(safe-area-inset-top, 0);
}

.header-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
}
.logo:hover { color: var(--amber-light); }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  background: var(--amber);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  align-items: center;
  justify-content: center;
}

.nav-toggle-icon {
  display: block;
  width: 1.375rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.primary-nav ul,
.nav-list {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}

.primary-nav a,
.nav-list a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}
.primary-nav a:hover,
.nav-list a:hover { color: var(--amber-light); }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }

  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(12, 21, 36, 0.65);
    z-index: var(--z-nav-backdrop);
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--ink);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s var(--ease-out);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: var(--z-nav-overlay);
    box-shadow: var(--shadow-lg);
  }

  .primary-nav.is-open {
    max-height: min(80dvh, 420px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav ul,
  .nav-list {
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    gap: 0;
    align-items: stretch;
  }
  .primary-nav li,
  .nav-list li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .primary-nav a,
  .nav-list a { display: block; padding: 0.875rem 0.5rem; }
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.narrow-container { max-width: var(--narrow); margin: 0 auto; padding: 0 1.5rem; }

section, .section { padding: clamp(3rem, 6vw, 5rem) 0; }
section:nth-child(even), .section--alt { background: var(--bg-alt); }
.section--highlight { background: linear-gradient(180deg, rgba(21, 34, 56, 0.04) 0%, var(--bg) 100%); }

.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 36rem;
  margin: -1.5rem auto 2.5rem;
  font-size: 1.0625rem;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

.hero {
  background: var(--ink);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(201, 146, 62, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(30, 48, 72, 0.5) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container, .hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero--home, .hero--compact { text-align: center; }
.hero h1 { color: var(--text-on-ink); max-width: 18ch; margin-left: auto; margin-right: auto; }
.hero p,
.hero-lead,
.hero--compact p {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: var(--text-on-ink-muted);
  max-width: 42rem;
  margin: 0 auto 2rem;
}
.hero--compact { padding: 3rem 0; }

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--amber-light);
  margin-bottom: 0.875rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 34rem;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.hero-stats dd {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.25rem;
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1,
  .hero-lead,
  .hero-actions,
  .hero-stats {
    animation: heroFade 0.6s var(--ease-out) both;
  }
  .hero-lead { animation-delay: 0.08s; }
  .hero-actions { animation-delay: 0.16s; }
  .hero-stats { animation-delay: 0.24s; }
}

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

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  color: var(--ink);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.15s var(--ease-out), box-shadow 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .cta-button:hover {
    background: var(--amber-light);
    color: var(--ink);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 146, 62, 0.35);
  }
}

.cta-button:active { transform: scale(0.97); }

.cta-button--ghost {
  background: transparent;
  color: #fff;
  border-color: var(--border-on-dark);
}

@media (hover: hover) and (pointer: fine) {
  .cta-button--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: none;
  }
}

.cta-button--outline {
  background: transparent;
  color: var(--ink-mid);
  border-color: var(--border-strong);
}

.cta-button--small { padding: 0.5rem 1rem; font-size: 0.875rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s var(--ease-out), border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--border-strong);
  }
}

.card h3 { color: var(--ink-mid); font-size: 1.125rem; }
.card p { color: var(--text-muted); font-size: 0.9375rem; flex: 1; }
.card-icon { font-size: 1.75rem; margin-bottom: 0.875rem; display: block; }
.card--stat { border-top: 3px solid var(--amber); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
}

.card-link:not(:has(.card-link-arrow))::after {
  content: '→';
  transition: transform 0.15s var(--ease-out);
}

.card-link:has(.card-link-arrow)::after { content: none; }

.card-link-arrow { transition: transform 0.15s var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .card-link:hover::after,
  .card-link:hover .card-link-arrow { transform: translateX(3px); }
}

@media speech {
  .card-link::after,
  .card-link-arrow { display: none; }
}

.disclaimer-strip {
  background: var(--warning-bg);
  border-bottom: 1px solid #E8D9B8;
  padding: 0.875rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #5C4A28;
}

.calculator-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
  margin: 1.5rem 0 2rem;
}

.form-group { margin-bottom: 1.125rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8125rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--ink-soft);
  background: var(--surface);
  box-shadow: var(--focus-ring);
}

.btn-calculate {
  width: 100%;
  background: var(--ink-mid);
  color: #fff;
  border: none;
  padding: 0.9375rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.15s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn-calculate:hover { background: var(--ink); }
}

.btn-calculate:active { transform: scale(0.98); }

.result-box {
  background: var(--ink);
  color: #fff;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--radius-lg);
  margin-top: 1.75rem;
  text-align: center;
  border: 1px solid rgba(201, 146, 62, 0.25);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.result-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-dark), var(--amber-light), var(--amber-dark));
}

.result-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.875rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 0.75rem 0 0.375rem;
  color: var(--amber-light);
}

.result-value--negative { color: #E8A0A0; }
.result-value--positive { color: #8FD4AD; }

.result-label { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.75); }

.result-details {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  text-align: left;
}

.result-details p {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin: 0;
  font-size: 0.875rem;
}

.result-details strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.25rem;
}

.result-stat-value {
  display: block;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9375rem;
}

.share-section { margin: 2rem 0; }
.share-heading { font-size: 1.125rem; margin-bottom: 1rem; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target-min);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: var(--paper-alt);
  color: var(--text);
  transition: transform 0.15s var(--ease-out);
}

.share-btn:active { transform: scale(0.97); }
.share-btn--whatsapp { background: #25D366; color: #fff; }
.share-btn--twitter { background: #000; color: #fff; }
.share-btn--linkedin { background: #0A66C2; color: #fff; }
.share-text-preview { font-size: 0.875rem; color: var(--text-muted); font-style: italic; }

.article-content { padding: 2rem 0 3.5rem; }

/* Content headers must not inherit sticky site-header chrome */
.article-content > header,
.calc-header,
.page-header {
  background: transparent;
  color: inherit;
  position: static;
  top: auto;
  z-index: auto;
  box-shadow: none;
  border: none;
  padding: 0;
}

.calc-header,
.page-header { padding: 2rem 0 0.5rem; }

.calc-header h1,
.page-header h1 { margin-bottom: 0.5rem; color: var(--ink); }

.calc-header p,
.page-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 0;
}

.article-lead { font-size: 1.0625rem; color: var(--text-muted); margin-bottom: 2rem; }

.article-content h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--amber);
}

.article-content h3 { margin-top: 1.75rem; }
.article-content ul, .article-content ol { margin: 0 0 1rem 1.5rem; }
.article-content li { margin-bottom: 0.4375rem; }

.warning-box {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.info-box {
  background: #EEF2F7;
  border-left: 4px solid var(--ink-soft);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.highlight-box {
  background: var(--paper-alt);
  border-left: 4px solid var(--amber);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.data-table th, .data-table td {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.data-table th { background: var(--paper-alt); font-weight: 600; }

.faq-section { margin-top: 3rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  padding: 0 1rem;
  background: var(--surface);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding-bottom: 1rem; color: var(--text-muted); }

.breadcrumb {
  padding: 1rem 0 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
}

.breadcrumb-list li:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: var(--text-muted);
}

.breadcrumb-list a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-list a:hover {
  color: var(--ink-mid);
  text-decoration: underline;
}

.breadcrumb-list [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.glossary-list { list-style: none; }

.glossary-list > dt {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink-mid);
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.25rem 1.5rem 0.375rem;
  margin-top: 0.875rem;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.glossary-list > dt:first-child { margin-top: 0; }

.glossary-list > dd {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0 1.5rem 1.25rem;
  margin: 0 0 0.875rem;
}

footer, .site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-heading, .footer-section h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--amber);
  margin-bottom: 0.875rem;
}

.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.4375rem; }
.footer-section a { color: rgba(255, 255, 255, 0.68); text-decoration: none; }
.footer-section a:hover { color: var(--amber-light); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--error);
  background: var(--error-bg);
}

.field-error,
.calc-alert {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 0.375rem;
  font-weight: 500;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}

.toc-heading { font-size: 1.125rem; margin-bottom: 0.875rem; }

.toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0;
}

.toc li { margin-bottom: 0.4375rem; }

.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.toc a:hover {
  color: var(--amber-dark);
  text-decoration: underline;
}
