/* ═══════════════════════════════════════════════════
   review-template.css — compiled static CSS
   No Tailwind CDN. All classes hand-compiled.
   ═══════════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 3.9%;
  --primary: 0 0% 9%;
  --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 96.1%;
  --secondary-foreground: 0 0% 9%;
  --muted: 0 0% 96.1%;
  --muted-foreground: 0 0% 45.1%;
  --accent: 0 0% 96.1%;
  --accent-foreground: 0 0% 9%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 89.8%;
  --input: 0 0% 89.8%;
  --ring: 0 0% 3.9%;
  --radius: 0.5rem;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
* { border-color: hsl(var(--border)); }
img, svg { display: block; max-width: 100%; }
ol, ul { list-style: none; padding: 0; margin: 0; }
a { color: inherit; }

/* ── BODY ── */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  padding: 0;
}

/* ── SCREEN READER ONLY ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-only:focus {
  position: static; width: auto; height: auto;
  padding: 0.5rem 1rem; margin: 0; overflow: visible;
  clip: auto; white-space: normal;
  background: hsl(var(--background)); color: hsl(var(--foreground));
  z-index: 9999;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { line-height: 1.25; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.text-left { text-align: left; }
.text-center { text-align: center; }

/* font sizes */
.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

/* ── COLORS ── */
.bg-background { background-color: hsl(var(--background)); }
.bg-foreground { background-color: hsl(var(--foreground)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-muted\/30 { background-color: hsl(var(--muted) / 0.3); }
.bg-muted\/40 { background-color: hsl(var(--muted) / 0.4); }
.bg-muted\/50 { background-color: hsl(var(--muted) / 0.5); }
.bg-muted\/60 { background-color: hsl(var(--muted) / 0.6); }
.bg-muted\/20 { background-color: hsl(var(--muted) / 0.2); }
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-foreground\/10 { background-color: hsl(var(--foreground) / 0.1); }
.bg-foreground\/20 { background-color: hsl(var(--foreground) / 0.2); }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-500 { background-color: #10b981; }
.bg-emerald-500\/15 { background-color: rgb(16 185 129 / 0.15); }
.bg-emerald-500\/25 { background-color: rgb(16 185 129 / 0.25); }
.bg-orange-50 { background-color: #fff7ed; }
.bg-orange-500\/15 { background-color: rgb(249 115 22 / 0.15); }
.bg-orange-500\/25 { background-color: rgb(249 115 22 / 0.25); }
.bg-border { background-color: hsl(var(--border)); }
.bg-amber-500 { background-color: #f59e0b; }

.text-foreground { color: hsl(var(--foreground)); }
.text-background { color: hsl(var(--background)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-muted-foreground\/50 { color: hsl(var(--muted-foreground) / 0.5); }
.text-card-foreground { color: hsl(var(--card-foreground)); }
.text-emerald-500 { color: #10b981; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-orange-600 { color: #ea580c; }
.text-orange-700 { color: #c2410c; }
.text-amber-500 { color: #f59e0b; }
.text-amber-600 { color: #d97706; }
.text-white { color: #fff; }

/* ── BORDERS ── */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-t-4 { border-top-width: 4px; border-top-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-dashed { border-style: dashed; }
.border-border { border-color: hsl(var(--border)); }
.border-foreground { border-color: hsl(var(--foreground)); }
.border-foreground\/30 { border-color: hsl(var(--foreground) / 0.3); }
.border-emerald-200 { border-color: #a7f3d0; }
.border-emerald-400 { border-color: #34d399; }
.border-emerald-500 { border-color: #10b981; }
.border-orange-200 { border-color: #fed7aa; }
.border-orange-400 { border-color: #fb923c; }
.border-amber-500 { border-color: #f59e0b; }
.border-t-emerald-500 { border-top-color: #10b981; }
.border-t-amber-500 { border-top-color: #f59e0b; }
.border-l-foreground { border-left-color: hsl(var(--foreground)); }
.border-l-amber-500 { border-left-color: #f59e0b; }
.border-transparent { border-color: transparent; }

/* ── BORDER RADIUS ── */
.rounded-sm { border-radius: calc(var(--radius) - 4px); }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius); }
.rounded-full { border-radius: 9999px; }

/* ── SPACING ── */
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-20 { padding-bottom: 5rem; }
.pl-4 { padding-left: 1rem; }
.pr-1 { padding-right: 0.25rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.ml-auto { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mr-1\.5 { margin-right: 0.375rem; }
.mr-2 { margin-right: 0.5rem; }

/* ── SIZING ── */
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-9 { width: 2.25rem; }
.w-10 { width: 2.5rem; }
.w-24 { width: 6rem; }
.w-60 { width: 15rem; }
.w-full { width: 100%; }
.h-3 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.h-28 { height: 7rem; }
.min-w-0 { min-width: 0; }
.min-h-screen { min-height: 100vh; }
.max-w-\[180px\] { max-width: 180px; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-lg { max-width: 32rem; }
.max-h-\[calc\(100vh-3rem\)\] { max-height: calc(100vh - 3rem); }
.h-\[calc\(100\%-33px\)\] { height: calc(100% - 33px); }
.h-\[250px\] { height: 250px; }

/* ── FLEX ── */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.flex-\[2\] { flex: 2; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-0\.5 { gap: 0.125rem; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

/* ── GRID ── */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ── DISPLAY / OVERFLOW ── */
.block { display: block; }
.hidden { display: none; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.object-contain { object-fit: contain; }
.whitespace-nowrap { white-space: nowrap; }

/* ── POSITION ── */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-4 { top: 1rem; }
.top-6 { top: 1.5rem; }
.-top-3 { top: -0.75rem; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.z-10 { z-index: 10; }

/* ── SCROLL ── */
.scroll-mt-6 { scroll-margin-top: 1.5rem; }

/* ── SHADOWS ── */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }

/* ── TRANSITIONS ── */
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-all { transition-property: all; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.transition-opacity { transition-property: opacity; transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }

/* ── HOVER UTILITIES ── */
.hover\:text-foreground:hover { color: hsl(var(--foreground)); }
.hover\:bg-muted:hover { background-color: hsl(var(--muted)); }
.hover\:bg-muted\/40:hover { background-color: hsl(var(--muted) / 0.4); }
.hover\:bg-muted\/60:hover { background-color: hsl(var(--muted) / 0.6); }
.hover\:bg-foreground\/10:hover { background-color: hsl(var(--foreground) / 0.1); }
.hover\:bg-foreground\/20:hover { background-color: hsl(var(--foreground) / 0.2); }
.hover\:border-foreground\/30:hover { border-color: hsl(var(--foreground) / 0.3); }
.hover\:border-emerald-400:hover { border-color: #34d399; }
.hover\:border-orange-400:hover { border-color: #fb923c; }
.hover\:shadow-sm:hover { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:opacity-90:hover { opacity: 0.9; }
.group:hover .group-hover\:text-foreground { color: hsl(var(--foreground)); }
.group:hover .group-hover\:bg-foreground\/10 { background-color: hsl(var(--foreground) / 0.1); }
.group:hover .group-hover\:bg-foreground\/20 { background-color: hsl(var(--foreground) / 0.2); }
.group:hover .group-hover\:bg-emerald-500\/25 { background-color: rgb(16 185 129 / 0.25); }
.group:hover .group-hover\:bg-orange-500\/25 { background-color: rgb(249 115 22 / 0.25); }
.group:hover .group-hover\:translate-x-0\.5 { transform: translateX(0.125rem); }

/* ── SPACE-Y UTILITY ── */
.space-y-0\.5 > * + * { margin-top: 0.125rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-16 > * + * { margin-top: 4rem; }

/* ── CARD ── */
.card {
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.badge-default { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.badge-secondary { background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.badge-outline { color: hsl(var(--foreground)); border-color: hsl(var(--border)); }

/* ── BUTTON ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
  text-decoration: none;
  border: none;
  line-height: 1;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; pointer-events: none; }
.btn-default { height: 2.5rem; padding: 0.5rem 1rem; }
.btn-sm { height: 2.25rem; padding: 0.5rem 0.75rem; border-radius: 0.375rem; }
.btn-lg { height: 2.75rem; padding: 0.5rem 2rem; border-radius: 0.375rem; }
.btn-outline {
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}
.btn-outline:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.btn-cta { background: #f97316; color: #fff; border: 0; }
.btn-cta:hover { background: #ea580c; }
.btn-cta:active { background: #c2410c; }

/* ── ACCORDION / FAQ ── */
.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.2s ease-out;
}
.accordion-content.open {
  max-height: 1000px;
  transition: max-height 0.3s ease-in;
}
.accordion-chevron { transition: transform 0.2s ease; }
.accordion-chevron.rotated { transform: rotate(180deg); }

/* ── TOC ── */
.toc-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: all 0.2s;
}
.toc-link:hover { color: hsl(var(--foreground)); background: hsl(var(--muted)); }
.toc-link.active {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  font-weight: 600;
}

/* ── LIFECYCLE TABS ── */
.lifecycle-tab {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
  color: hsl(var(--muted-foreground));
  border: none;
  background: none;
  cursor: pointer;
}
.lifecycle-tab:hover { color: hsl(var(--foreground)); background: hsl(var(--muted)); }
.lifecycle-tab.active {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  border-bottom: 2px solid hsl(var(--foreground));
}
.lifecycle-panel { display: none; }
.lifecycle-panel.visible { display: block; }

/* ── SCROLLBAR ── */
.scrollbar-thin::-webkit-scrollbar { width: 4px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: hsl(var(--border)); border-radius: 999px; }

/* ── OPTIONAL FIELD HIDING ── */
[data-optional="true"][data-field*="{{"] { display: none !important; }

/* ── STAR RATING ── */
.star-filled { color: #fbbf24; fill: #fbbf24; }
.star-empty { color: hsl(var(--border)); fill: none; }

/* ══════════════════════════
   RESPONSIVE: sm (640px+)
   ══════════════════════════ */
@media (min-width: 640px) {
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:w-auto { width: auto; }
}

/* ══════════════════════════
   RESPONSIVE: md (768px+)
   ══════════════════════════ */
@media (min-width: 768px) {
  .md\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-\[1fr_300px\] { grid-template-columns: 1fr 300px; }
  .md\:sticky { position: sticky; }
  .md\:top-4 { top: 1rem; }
  .md\:top-20 { top: 5rem; } /* clears 64px fixed header + 16px padding */
  .md\:flex-row { flex-direction: row; }
  .md\:flex-col { flex-direction: column; }
  .md\:items-start { align-items: flex-start; }
}

/* ══════════════════════════
   RESPONSIVE: lg (1024px+)
   ══════════════════════════ */
@media (min-width: 1024px) {
  .lg\:text-\[2\.5rem\] { font-size: 2.5rem; line-height: 1.2; }
}

/* ══════════════════════════
   RESPONSIVE: xl (1280px+)
   ══════════════════════════ */
@media (min-width: 1280px) {
  .xl\:block { display: block; }
}

/* ── FONT MONO ── */
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; }

/* ═══════════════════════════════════════════════════════════════
   SITE-CHROME INTEGRATION & MOBILE INFRASTRUCTURE
   Additions to align directory template with bestpick/compare
   ═══════════════════════════════════════════════════════════════ */

/* Smooth scroll */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Body: push below fixed 64px site-chrome header, contain horizontal overflow */
body {
  padding-top: 64px;
  overflow-x: hidden;
}

/* Article hard overflow containment — nothing escapes viewport sideways */
article { max-width: 100%; overflow-x: hidden; }

/* Breadcrumb: hide on mobile (kept in DOM for schema/SEO), show on desktop */
@media (max-width: 1023px) {
  .page-breadcrumb { display: none !important; }
}

/* ── REVIEW LAYOUT: single column on mobile, flex row at xl ── */
.review-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 1280px) {
  .review-layout { flex-direction: row; }
}

/* Touch targets — WCAG 2.5.5 minimum 44×44px */
.btn, .toc-link, .lifecycle-tab { min-height: 44px; }

/* Stars renderer output container */
.stars { display: flex; align-items: center; gap: 2px; }

/* ── MOBILE STICKY TOC BAR ── */
.mobile-toc-bar {
  position: fixed;
  top: 64px;         /* sits directly below 64px fixed site-chrome header */
  left: 0;
  right: 0;
  z-index: 9998;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transform: translateY(-100%);
  transition: transform 200ms ease;
}
.mobile-toc-bar.visible { transform: translateY(0); }
@media (min-width: 1280px) { .mobile-toc-bar { display: none; } }

.mobile-toc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .75rem 1rem;
  background: none;
  border: none;
  font-size: .875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  cursor: pointer;
  min-height: 44px;
}
.mobile-toc-trigger:hover { background: hsl(var(--muted) / 0.5); }
.mobile-toc-trigger span { flex: 1; text-align: left; }
.mobile-toc-chevron { transition: transform 200ms ease; color: hsl(var(--muted-foreground)); }

.mobile-toc-dropdown {
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: .5rem 0;
}
.mobile-toc-link {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .625rem 1rem;
  font-size: .8125rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: all .15s;
  min-height: 44px;
}
.mobile-toc-link:hover, .mobile-toc-link:active {
  background: hsl(var(--muted) / 0.5);
  color: hsl(var(--foreground));
}

/* ── PRINT STYLES ── */
@media print {
  .mobile-toc-bar, #sidebar-nav, .btn-cta { display: none !important; }
  article { padding: 0; }
}
/* ── OPTIONAL SECTION LOCK ── */
[data-optional="true"][style*="display:none"],
[data-optional="true"][style*="display: none"] {
  display: none !important;
}
