/* Shared stylesheet for investigation pages */

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

:root {
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --font-serif: 'IBM Plex Serif', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'Menlo', monospace;

  --bg:       #ffffff;
  --bg-soft:  #f7f7f5;
  --bg-code:  #1b1b22;
  --text:     #18181b;
  --text-mid: #3f3f46;
  --text-dim: #71717a;
  --text-faint: #a1a1aa;
  --border:   #e4e4e7;

  --orange:      #c94b0c;
  --orange-soft: #fff4ed;
  --orange-mid:  #fed7aa;
  --blue:        #1b4fad;
  --blue-soft:   #eff6ff;
  --green:       #166534;
  --green-soft:  #f0fdf4;
  --yellow-soft: #fefce8;
  --yellow-mid:  #fde68a;
  --tooltip-bg: #fef9c3;
  --tooltip-border: #facc15;

  --nav-bg: rgba(255,255,255,0.92);

  --layout-width: 1320px;
  --inv-width: 200px;
  --radius: 5px;
}

[data-theme="dark"] {
  --bg:       #13131a;
  --bg-soft:  #1e1e28;
  --bg-code:  #0d0d12;
  --text:     #e4e4e7;
  --text-mid: #a1a1aa;
  --text-dim: #52525b;
  --text-faint: #3f3f46;
  --border:   #2d2d3a;

  --orange:      #f97316;
  --orange-soft: rgba(249,115,22,0.12);
  --orange-mid:  rgba(249,115,22,0.3);
  --blue:        #60a5fa;
  --blue-soft:   rgba(96,165,250,0.1);
  --green:       #4ade80;
  --green-soft:  rgba(74,222,128,0.08);
  --yellow-soft: rgba(253,224,71,0.08);
  --yellow-mid:  rgba(253,224,71,0.22);
  --tooltip-bg: #fef08a;
  --tooltip-border: #eab308;

  --nav-bg: rgba(19,19,26,0.92);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ─── TOP NAV ─────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
}

/* ─── NAV ICONS (GitHub, newsletter, dark toggle) ────── */
.nav-icons {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.nav-icon-link {
  display: flex;
  align-items: center;
  padding: 0.3rem 0.4rem;
  color: var(--text-dim);
  border-radius: 6px;
  transition: color 0.15s;
}
.nav-icon-link:hover { color: var(--text); }
.nav-icon-link svg { display: block; }

/* ─── DARK MODE TOGGLE ────────────────────────────────── */
.dark-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.dark-toggle:hover { color: var(--text); border-color: var(--text-dim); }
.dark-toggle svg { display: block; }
.nav-inner {
  max-width: var(--layout-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-brand {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-links {
  display: flex; gap: 1.5rem; list-style: none;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--orange); font-weight: 600; }

/* ─── INVESTIGATION HEADER ────────────────────────────── */
.inv-header {
  border-bottom: 1px solid var(--border);
  padding: 2.75rem 2rem 2.25rem;
  max-width: var(--layout-width);
  margin: 0 auto;
}
.inv-back {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1rem;
  transition: color 0.15s;
}
.inv-back:hover { color: var(--text); }
.inv-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}
.inv-header h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 0.85rem;
}
.inv-subtitle {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-mid);
  max-width: 600px;
}

/* ─── PAGE LAYOUT ─────────────────────────────────────── */
.page-layout {
  max-width: var(--layout-width);
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  display: grid;
  grid-template-columns: var(--inv-width) 1fr;
  column-gap: 2.75rem;
  align-items: start;
}

/* ─── INVESTIGATIONS NAV ──────────────────────────────── */
.inv-nav {
  position: sticky;
  top: 72px;
  z-index: 10;
  font-family: var(--font-sans);
  padding-right: 1.25rem;
  border-right: 1px solid var(--border);
  max-height: calc(100vh - 90px);
  overflow-y: auto;
}
.inv-nav-header {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}
.inv-nav-header-section {
  margin-top: 0.15rem;
}
.inv-nav-guide-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  padding: 0.28rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.1rem;
  transition: color 0.12s, background 0.12s;
}
.inv-nav-guide-link svg { opacity: 0.55; flex-shrink: 0; transition: opacity 0.12s; }
.inv-nav-guide-link:hover { color: var(--text); background: var(--bg-soft); }
.inv-nav-guide-link:hover svg { opacity: 0.85; }
.inv-nav-guide-link.active {
  color: var(--orange);
  font-weight: 600;
  background: var(--orange-soft);
}
.inv-nav-guide-link.active svg { opacity: 1; }
.inv-nav-guide-divider {
  border-bottom: 1px solid var(--border);
  margin: 0.55rem 0 0.7rem;
}
.inv-group { margin-bottom: 0.6rem; }
.inv-group-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
  margin-top: 0.8rem;
}
.inv-group-label::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
  opacity: 0.8;
}
.inv-group ul { list-style: none; padding: 0; margin: 0; }
.inv-group li + li { margin-top: 0.05rem; }
.inv-group a,
.inv-group .inv-link-disabled {
  position: relative;
  font-size: 0.77rem;
  line-height: 1.45;
  color: var(--text-mid);
  text-decoration: none;
  display: block;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
}
.inv-group a:hover { color: var(--text); background: var(--bg-soft); }
.inv-group .inv-link-disabled {
  color: var(--text-faint);
  cursor: not-allowed;
}
.inv-group .inv-link-disabled:hover {
  color: var(--text-faint);
  background: var(--bg-soft);
}
.inv-group .inv-link-disabled::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0.45rem;
  top: -0.14rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-mid);
  background: var(--tooltip-bg);
  border: 1px solid var(--tooltip-border);
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 0.28rem 0.42rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-100% + 3px));
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 20;
}
.inv-group .inv-link-disabled:hover::after,
.inv-group .inv-link-disabled:focus-visible::after {
  opacity: 1;
  transform: translateY(calc(-100% - 1px));
}
.inv-group a.active {
  color: var(--orange);
  font-weight: 500;
  background: var(--orange-soft);
}
.inv-group .inv-link-disabled.active {
  color: var(--orange);
  font-weight: 500;
  background: var(--orange-soft);
}

/* ─── ARTICLE CONTENT ─────────────────────────────────── */
.article-body { min-width: 0; }
img { max-width: 100%; height: auto; }
.article-body > section {
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}
h2 {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.9rem;
  scroll-margin-top: 80px;
}
h3 {
  font-family: var(--font-sans);
  font-size: 1.0rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  scroll-margin-top: 80px;
}
p {
  margin-bottom: 1.1rem;
  font-size: 1.0rem;
  color: var(--text);
}
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--text); }
strong { font-weight: 600; }
em { font-style: italic; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
li { margin-bottom: 0.35rem; font-size: 1.0rem; }
li:last-child { margin-bottom: 0; }
code {
  font-family: var(--font-mono);
  font-size: 0.83em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.12em 0.4em;
  color: var(--blue);
  /* color: var(--orange); */
}

/* ─── PRE / CODE BLOCKS ───────────────────────────────── */
pre {
  background: var(--bg-code);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.25rem 0;
}
pre code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: none;
  border: none;
  padding: 0;
  color: #c9d1d9;
}

/* ─── BASH CODE BLOCKS ───────────────────────────────── */
pre:has(code.language-bash) {
  background: #371e00;
  border-left: 3px solid var(--orange);
}
pre:has(code.language-bash) code {
  color: #ffca1c;
  font-weight: 600;
  font-size: 11pt;
}
[data-theme="dark"] pre:has(code.language-bash) {
  background: #120a00;
}

/* ─── CALLOUT BOXES ───────────────────────────────────── */
.callout {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.6;
}
.callout .callout-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.callout p { font-family: inherit; font-size: inherit; margin-bottom: 0.5rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-info {
  background: var(--blue-soft);
  border: 1px solid #bfdbfe;
}
.callout-info .callout-label { color: var(--blue); }
.callout-maxim {
  background: var(--orange-soft);
  border: 1px solid var(--orange-mid);
}
.callout-maxim .callout-label { color: var(--orange); }
.callout-warning {
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-mid);
}
.callout-warning .callout-label { color: #92400e; }
.callout-finding {
  background: var(--green-soft);
  border: 1px solid #bbf7d0;
}
.callout-finding .callout-label { color: var(--green); }

/* ─── MAXIM LIST (principles page) ───────────────────── */
.maxim-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.maxim-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}
.maxim-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--orange);
  background: var(--orange-soft);
  border: 1px solid var(--orange-mid);
  border-radius: 3px;
  padding: 0.15rem 0.45rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.maxim-text {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-mid);
}
.maxim-text strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--orange);
}

/* ─── COMING SOON PLACEHOLDER ─────────────────────────── */
.coming-soon-card {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
  background: var(--bg-soft);
}
.coming-soon-card .cs-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}
.coming-soon-card .cs-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.coming-soon-card .cs-text {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-dim);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── WHAT YOU'LL LEARN GRID ──────────────────────────── */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}
.learn-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  background: var(--bg);
}
.learn-item-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 0.25rem;
}
.learn-item p {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-mid);
  margin: 0;
}

/* ─── FOOTER ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  font-family: var(--font-sans);
}
.footer-inner {
  max-width: var(--layout-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-inner p {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0;
}
.footer-links { display: flex; gap: 1rem; list-style: none; }
.footer-links a { font-size: 0.78rem; color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ─── PAPER CARDS (resources page) ───────────────────── */
.paper-section { margin-bottom: 2.5rem; }
.paper-section h2 { margin-top: 1rem; }

.paper-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}
.paper-entry {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  background: var(--bg);
}
.paper-entry-title {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.2rem;
}
.paper-entry-title a {
  color: var(--text);
  text-decoration: none;
}
.paper-entry-title a:hover { color: var(--blue); text-decoration: underline; }
.paper-entry-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.55rem;
}
.paper-entry-summary {
  font-family: var(--font-sans);
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--text-mid);
  margin: 0;
}
.paper-entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}
.paper-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--bg-soft);
}
.paper-tag.tag-used {
  color: var(--orange);
  background: var(--orange-soft);
  border-color: var(--orange-mid);
}
.paper-tag.tag-debated {
  color: #92400e;
  background: var(--yellow-soft);
  border-color: var(--yellow-mid);
}
.paper-tag.tag-pitfall {
  color: #1e40af;
  background: var(--blue-soft);
  border-color: #bfdbfe;
}

/* ─── PULL QUOTE ──────────────────────────────────────── */
.pull-quote {
  border-left: 3px solid var(--orange);
  padding: 0.6rem 1.25rem;
  margin: 1.75rem 0;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--text-mid);
  font-style: italic;
}
.pull-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* ─── TABLES ──────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.82rem;
}
th {
  background: var(--bg-soft);
  text-align: left;
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
th.center, td.center { text-align: center; }
td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--bg-soft); }
.cell-best {
  font-weight: 600;
  color: var(--green);
}
.cell-worst {
  color: #b91c1c;
}
.cell-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
}
.table-caption {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  line-height: 1.5;
}
.table-caption strong { color: var(--text-mid); }

/* ─── SECTION INTRO ───────────────────────────────────── */
.section-lead {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* ─── METHOD GRID ─────────────────────────────────────── */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.method-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  background: var(--bg);
}
.method-card-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.method-card-desc {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-mid);
}
.method-card.highlight {
  border-color: var(--orange-mid);
  background: var(--orange-soft);
}
.method-card.highlight .method-card-name { color: var(--orange); }

/* ─── RECOMMENDATION LIST ────────────────────────────── */
.rec-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}
.rec-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.rec-icon {
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.15rem;
  color: var(--text);
}
.rec-body {
  flex: 1;
  min-width: 0;
}
.rec-card-when {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}
.rec-card-method {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.rec-card-detail {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-mid);
}

/* ─── INLINE FIGURE LABEL ─────────────────────────────── */
.fig-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}

/* ─── FOOTNOTE / ASIDE ────────────────────────────────── */
.aside {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-dim);
  border-left: 2px solid var(--border);
  padding-left: 0.85rem;
  margin: 1.25rem 0;
}

/* ─── MOBILE NAV BUTTON ──────────────────────────────── */
.nav-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  color: var(--text-dim);
  align-items: center;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.nav-menu-btn:hover { color: var(--text); border-color: var(--text-dim); }
.nav-menu-btn svg { display: block; }

/* ─── MOBILE NAV DRAWER ───────────────────────────────── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.4);
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav-drawer {
  position: absolute;
  top: 0; left: 0;
  width: min(300px, 88vw);
  height: 100%;
  background: var(--bg);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 1.25rem 1rem 2rem;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}
.mobile-nav-overlay.open .mobile-nav-drawer { transform: translateX(0); }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  padding: 0.25rem;
  display: flex;
  align-items: center;
}
.mobile-nav-close:hover { color: var(--text); }
.mobile-nav-close svg { display: block; }
.mobile-nav-content .inv-nav {
  display: block !important;
  position: static !important;
  top: auto !important;
  border-right: none !important;
  padding-right: 0 !important;
  max-height: none !important;
  overflow-y: visible !important;
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  .inv-nav { display: none; }
  .nav-menu-btn { display: flex; }
}
@media (max-width: 600px) {
  .inv-header { padding: 2rem 1.25rem 1.75rem; }
  .page-layout { padding: 2rem 1.25rem 4rem; }
  .nav-links { display: none; }
}
