/* Investigation page styles - minimal, modular, and consistent with dark, elegant tone */
:root {
  --inv-max: 1200px;
  --inv-gap: 1.25rem;
  --inv-radius: 12px;
  --inv-border: 1px solid hsl(150 10% 25% / 0.4);
  --inv-bg-elev: hsl(150 10% 8% / 0.6);
  --inv-surface: hsl(150 12% 12% / 0.8);
  --inv-text: hsl(150 20% 92%);
  --inv-muted: hsl(150 12% 70%);
  --inv-accent: hsl(150 45% 45%);
}

.inv-container { max-width: var(--inv-max); margin-inline: auto; padding: 2rem 1rem; }

/* Hero */
.inv-hero { position: relative; color: var(--inv-text); background: radial-gradient(1200px 500px at 20% 10%, hsl(150 15% 20% / .25), transparent), linear-gradient( to bottom, hsl(150 12% 10% / .9), hsl(150 12% 8% / .95) ), url('/assets/images/hero-mist.webp') center/cover no-repeat; }
.inv-hero__inner { max-width: var(--inv-max); margin: 0 auto; padding: clamp(3rem, 7vw, 7rem) 1rem; text-align: left; }
.inv-hero h1 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.15; margin: 0 0 0.5rem; }
.inv-hero__lead { color: var(--inv-muted); max-width: 60ch; margin: 0 0 1.25rem; }
.inv-hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Buttons */
.inv-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1rem; border-radius: .75rem; border: var(--inv-border); text-decoration: none; color: var(--inv-text); background: transparent; transition: transform .15s ease, background .2s ease, border-color .2s ease; }
.inv-btn:focus-visible { outline: 2px solid var(--inv-accent); outline-offset: 2px; }
.inv-btn:hover { transform: translateY(-1px); border-color: hsl(150 20% 45% / .6); }
.inv-btn--primary { background: linear-gradient(180deg, hsl(150 35% 20%), hsl(150 30% 16%)); border-color: hsl(150 35% 30% / .7); }
.inv-btn--ghost { background: hsl(150 15% 10% / 0.2); }
.inv-btn--link { padding: 0; border: none; background: none; color: var(--inv-accent); }

/* TOC */
.inv-toc { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); background: hsl(150 10% 8% / .6); border-bottom: var(--inv-border); }
.inv-toc__toggle { display: none; background: transparent; color: var(--inv-text); border: none; padding: .9rem 1rem; width: 100%; text-align: left; }
.inv-toc__list { list-style: none; margin: 0; padding: .5rem 1rem; display: grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: 1rem; overflow-x: auto; }
.inv-toc__list a { color: var(--inv-muted); text-decoration: none; padding: .5rem .25rem; border-bottom: 2px solid transparent; }
.inv-toc__list a:hover, .inv-toc__list a[aria-current="true"] { color: var(--inv-text); border-bottom-color: var(--inv-accent); }

@media (max-width: 800px) {
  .inv-toc__toggle { display: block; }
  .inv-toc__list { display: none; grid-auto-flow: row; grid-auto-columns: unset; }
  .inv-toc__list[data-open="true"] { display: grid; grid-template-columns: 1fr; }
}

/* Sections */
.inv-section { background: linear-gradient(180deg, hsl(150 10% 8% / .9), hsl(150 10% 6% / .95)); border-top: var(--inv-border); }
.inv-section + .inv-section { border-top: none; }
.inv-section__header { margin-bottom: 1rem; }
.inv-section h2 { margin: 0 0 .35rem; font-size: clamp(1.4rem, 2.5vw, 2rem); color: var(--inv-text); }
.inv-section__lead { color: var(--inv-muted); max-width: 70ch; }

/* Layout grids */
.inv-grid { display: grid; gap: var(--inv-gap); align-items: start; }
.inv-grid--2col { grid-template-columns: 1.2fr 1fr; }
.inv-grid--3col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .inv-grid--2col { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .inv-grid--3col { grid-template-columns: 1fr; } }

/* Cards and callouts */
.inv-card { background: var(--inv-bg-elev); border: var(--inv-border); border-radius: var(--inv-radius); padding: 1rem; color: var(--inv-text); }
.inv-card--subtle { background: hsl(150 12% 10% / .5); }
.inv-callouts { display: grid; gap: .75rem; }
.inv-callout { background: hsl(150 15% 12% / .7); border-left: 3px solid var(--inv-accent); padding: .75rem; border-radius: .5rem; }
.inv-tipbox { background: hsl(150 15% 12% / .7); border: var(--inv-border); border-radius: var(--inv-radius); padding: 1rem; color: var(--inv-text); }

/* Typography helpers */
.inv-prose { color: var(--inv-text); }
.inv-bullets, .inv-checklist, .inv-steps, .inv-meta { color: var(--inv-muted); }
.inv-meta { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .25rem; }
.inv-steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: .5rem; }
.inv-steps li { position: relative; padding-left: 2.25rem; }
.inv-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: .1rem; width: 1.6rem; height: 1.6rem; border-radius: 999px; display: grid; place-items: center; background: var(--inv-accent); color: #08110d; font-weight: 700; font-size: .9rem; }

/* Media */
.inv-figure { margin: 0; background: var(--inv-surface); border: var(--inv-border); border-radius: var(--inv-radius); overflow: clip; }
.inv-figure img { display: block; width: 100%; height: auto; }
.inv-figure figcaption { color: var(--inv-muted); padding: .6rem .8rem; font-size: .9rem; }

/* Quotes */
.inv-testimonials { display: grid; gap: var(--inv-gap); }
.inv-quote { margin: 0; padding: 1rem 1.25rem; background: hsl(150 12% 10% / .6); border-left: 4px solid var(--inv-accent); border-radius: .5rem; color: var(--inv-text); }
.inv-quote cite { display: block; margin-top: .5rem; color: var(--inv-muted); font-style: normal; }

/* Smooth scroll for anchor links */
html { scroll-behavior: smooth; }
