/* Styles for the prerendered directory pages (scripts/build-directory.mjs).
   Same palette and type as the app's Tailwind theme, without the framework. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --muted-2: #a1a1aa;
  --line: #e4e4e7;
  --line-2: #d4d4d8;
  --bg: #ffffff;
  --bg-dim: #f4f4f5;
  --bg-soft: #fafafa;
  --primary: #d93a42;
  --primary-dim: #c7333b;
  --primary-soft: #fff1f2;
  --brand: #ff5a5f;
  --good: #15803d;
  --good-bg: #dcfce7;
  --ok: #a16207;
  --ok-bg: #fef3c7;
  --bad: #b91c1c;
  --bad-bg: #fee2e2;
  --na-bg: #f4f4f5;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 4px 16px rgba(24, 24, 27, 0.05);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dim); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
h4, .h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(217, 58, 66, 0.35); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

/* header / footer */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.03em; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand em { font-style: normal; color: var(--brand); }
.hdr__nav { display: none; gap: 4px; }
.hdr__nav a { color: var(--muted); font-size: 0.875rem; font-weight: 500; padding: 6px 10px; border-radius: var(--radius-sm); }
.hdr__nav a:hover { color: var(--ink); text-decoration: none; }
.hdr__act { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.hdr__signin { color: var(--muted); font-size: 0.875rem; font-weight: 500; }
@media (min-width: 900px) { .hdr__nav { display: flex; } }
@media (max-width: 480px) { .hdr__signin { display: none; } }

.ftr { margin-top: 72px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.ftr__in { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 28px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ftr__in { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.ftr h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.ftr nav a { display: block; color: var(--ink-2); font-size: 0.875rem; padding: 3px 0; }
.ftr__tag { color: var(--muted); font-size: 0.875rem; margin-top: 10px; max-width: 320px; }
.ftr__base { border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 24px; font-size: 0.8rem; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--radius-sm); padding: 11px 18px; font-weight: 600; font-size: 0.9rem; line-height: 1.2; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dim); color: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--sm { padding: 7px 12px; font-size: 0.8rem; }
.btn--block { width: 100%; }

/* page furniture */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; font-size: 0.8rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--muted-2); }
.crumbs a { color: var(--muted); }
.hero { padding: 22px 0 8px; max-width: 860px; }
.eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 8px; }
.meta { color: var(--muted); font-size: 0.85rem; }
.lede { font-size: 1.075rem; color: var(--ink-2); }
.answer { border-left: 4px solid var(--primary); background: var(--primary-soft); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 18px 0; }
.answer p { margin: 0; font-size: 1.05rem; color: var(--ink); }
.note { background: var(--ok-bg); color: #713f12; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.875rem; }
.small { font-size: 0.85rem; color: var(--muted); }
.h3 { margin-top: 1.4em; }

.toc { position: sticky; top: 64px; z-index: 20; background: rgba(255, 255, 255, 0.95); border-bottom: 1px solid var(--line); margin: 12px 0 0; }
.toc ul { list-style: none; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.toc ul::-webkit-scrollbar { display: none; }
.toc a { display: block; white-space: nowrap; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); background: var(--bg-dim); padding: 6px 12px; border-radius: 999px; }
.toc a:hover { background: var(--ink); color: #fff; text-decoration: none; }

.sec { padding: 40px 0 0; }
.sec > p, .sec > .lede { max-width: 820px; }
.sec--fit { border-top: 1px solid var(--line); margin-top: 40px; }

/* logos */
.logo { display: inline-block; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line); flex-shrink: 0; vertical-align: middle; }
.logo--initial { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink-2); background: var(--bg-dim); }

/* picks */
.picks { list-style: none; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .picks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .picks { grid-template-columns: repeat(3, 1fr); } }
.pick { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pick__s { font-size: 0.75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.pick__t { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 1.05rem; margin-bottom: 8px; }
.pick__w { font-size: 0.9rem; color: var(--ink-2); flex: 1; }
.pick__p { font-size: 0.8rem; color: var(--muted); margin: 0; border-top: 1px dashed var(--line); padding-top: 8px; }

/* tables */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.875rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; white-space: nowrap; }
tbody th a { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.cmp td:nth-child(2) { min-width: 200px; }
.cmp td:nth-child(3) { min-width: 160px; }

.matrix td, .matrix th { text-align: center; }
.matrix tbody th { text-align: left; }
.matrix thead th:first-child { text-align: left; }
.fit span { display: inline-block; min-width: 84px; padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; }
.fit--2 span { background: var(--good-bg); color: var(--good); }
.fit--1 span { background: var(--ok-bg); color: var(--ok); }
.fit--0 span { background: var(--bad-bg); color: var(--bad); }
.fit--na { color: var(--muted-2); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--muted); margin-top: 12px; }
.lg::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg--2::before { background: var(--good-bg); border: 1px solid var(--good); }
.lg--1::before { background: var(--ok-bg); border: 1px solid var(--ok); }
.lg--0::before { background: var(--bad-bg); border: 1px solid var(--bad); }
.lg--na::before { background: var(--na-bg); border: 1px solid var(--line-2); }

.matrix--cov thead th:not(:first-child):not(:last-child) { height: 150px; vertical-align: bottom; padding: 8px 4px; }
.matrix--cov thead th span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); text-transform: none; letter-spacing: 0; font-size: 0.75rem; white-space: nowrap; }
.cov { width: 38px; font-weight: 700; }
.cov--y { color: var(--good); background: #f0fdf4; }
.cov--n { color: var(--muted-2); }
.cov__s { white-space: nowrap; font-weight: 600; font-size: 0.8rem; text-align: left !important; }
.bar { display: inline-block; width: 60px; height: 6px; background: var(--bg-dim); border-radius: 3px; margin-right: 8px; vertical-align: middle; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }

.bars { list-style: none; display: grid; gap: 8px; max-width: 760px; }
.bars li { display: grid; grid-template-columns: 150px 1fr 70px; gap: 12px; align-items: center; font-size: 0.875rem; }
.bars__l { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars__b { height: 12px; background: var(--bg-dim); border-radius: 6px; overflow: hidden; }
.bars__b i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--primary)); border-radius: 6px; }
.bars__v { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .bars li { grid-template-columns: 110px 1fr 54px; gap: 8px; } }

/* what-is capabilities */
.caps { list-style: none; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .caps { grid-template-columns: repeat(2, 1fr); } }
.caps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--bg-soft); }
.caps h3 { font-size: 0.95rem; margin-bottom: 4px; }
.caps p { margin: 0; font-size: 0.9rem; color: var(--ink-2); }

/* tool blocks */
.tool { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 18px; box-shadow: var(--shadow); }
.tool__h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tool__h h3 { margin: 0; font-size: 1.2rem; }
.tool__h h3 a { color: var(--ink); }
.tool__n { font-weight: 800; color: var(--muted-2); font-size: 0.9rem; width: 22px; }
.tool__p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.tool__a { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 16px 0 0; font-weight: 600; font-size: 0.9rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.chip { font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--na-bg); color: var(--muted); }
.chip--2 { background: var(--good-bg); color: var(--good); }
.chip--1 { background: var(--ok-bg); color: var(--ok); }
.chip--0 { background: var(--bad-bg); color: var(--bad); }
.bf { display: grid; gap: 4px 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bf { grid-template-columns: 1fr 1fr; } }
.bf ul, .pc ul, .facts { list-style: none; }
.bf li, .pc li, .facts li { position: relative; padding-left: 20px; margin: 4px 0; font-size: 0.925rem; }
.bf div:first-child li::before { content: '✓'; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.bf div:nth-child(2) li::before { content: '×'; position: absolute; left: 2px; color: var(--bad); font-weight: 700; }
.feats { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.feats div { display: grid; grid-template-columns: 1fr; gap: 2px 16px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.feats div:last-child { border-bottom: 0; }
@media (min-width: 640px) { .feats div { grid-template-columns: 220px 1fr; } }
.feats dt { font-weight: 600; color: var(--ink-2); }
.feats dd { margin: 0; color: var(--ink); }
.pc { display: grid; gap: 4px 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pc { grid-template-columns: 1fr 1fr; } }
.pc__p li::before { content: '+'; position: absolute; left: 2px; color: var(--good); font-weight: 800; }
.pc__c li::before { content: '−'; position: absolute; left: 2px; color: var(--bad); font-weight: 800; }
.facts li::before { content: ''; position: absolute; left: 4px; top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

/* choose */
.crits { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .crits { grid-template-columns: 1fr 1fr; } }
.crit { padding: 14px 0; border-top: 1px solid var(--line); }
.crit p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* cta */
.cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; background: var(--ink); color: #e4e4e7; border-radius: var(--radius); padding: 24px; margin-top: 44px; }
.cta__t { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.cta p { margin: 0; max-width: 640px; }
@media (min-width: 760px) { .cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; } }

/* size guide */
.sizes { list-style: none; display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 720px) { .sizes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sizes { grid-template-columns: repeat(4, 1fr); } }
.sizes li { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: relative; overflow: hidden; }
.sizes li::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--primary); opacity: 0.25; }
.sizes li:nth-child(2)::before { opacity: 0.5; }
.sizes li:nth-child(3)::before { opacity: 0.75; }
.sizes li:nth-child(4)::before { opacity: 1; }
.sizes h3 { font-size: 0.95rem; }
.sizes p { margin: 0; font-size: 0.875rem; color: var(--ink-2); }

/* requirements */
.reqs { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .reqs { grid-template-columns: repeat(3, 1fr); } }
.req { border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); }
.req h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.req--must { border-top: 4px solid var(--primary); }
.req--should { border-top: 4px solid #f59e0b; }
.req--nice { border-top: 4px solid var(--muted-2); }
.req ul { list-style: none; }
.req li { padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); position: relative; }
.req li:last-child { border-bottom: 0; }
.req li::before { content: ''; position: absolute; left: 0; top: 12px; width: 15px; height: 15px; border: 2px solid var(--line-2); border-radius: 4px; }
.req strong { display: block; font-size: 0.9rem; }
.req span { display: block; font-size: 0.8rem; color: var(--muted); }
.reqs__cta { margin-top: 16px; }

.vq { padding-left: 0; list-style: none; counter-reset: q; display: grid; gap: 10px; max-width: 860px; }
.vq li { counter-increment: q; position: relative; padding: 12px 16px 12px 52px; background: var(--bg-soft); border-radius: var(--radius-sm); }
.vq li::before { content: counter(q); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.vq strong { display: block; }
.vq span { font-size: 0.875rem; color: var(--muted); }

.brief { margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 820px; }
.brief figcaption { background: var(--bg-dim); padding: 10px 16px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.brief blockquote { margin: 0; padding: 18px 20px; font-size: 0.975rem; color: var(--ink-2); background: #fff; }

.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 650; padding: 12px 32px 12px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 8px; font-size: 1.4rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-2); padding-bottom: 8px; }

.rel { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.rel a { display: block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.875rem; color: var(--ink-2); }
.rel a:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.rel--col { flex-direction: column; }
.mini { list-style: none; display: grid; gap: 8px; }
.mini li { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.9rem; }
.mini a { font-weight: 600; }
.mini span { color: var(--muted); }

/* directory home */
.cats { list-style: none; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cats { grid-template-columns: repeat(3, 1fr); } }
.cats a { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); height: 100%; transition: border-color 0.15s, box-shadow 0.15s; }
.cats a:hover { border-color: var(--ink); box-shadow: var(--shadow); text-decoration: none; }
.cats span { color: var(--muted); font-size: 0.85rem; }
.cats__l { display: flex; gap: 6px; margin-top: 8px; }

/* tool page */
.tp { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .tp { grid-template-columns: minmax(0, 1fr) 320px; } }
.tp__side { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1000px) { .tp__side { position: sticky; top: 84px; align-self: start; margin-top: 28px; } }
.hero__id { display: flex; align-items: center; gap: 16px; }
.hero__id h1 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
.hero__id .eyebrow { margin-bottom: 4px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card__t { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.kv { margin: 0 0 16px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.kv dt { color: var(--muted); flex-shrink: 0; }
.kv dd { margin: 0; text-align: right; font-weight: 600; }
.card .small { margin: 10px 0 0; }
.alts { list-style: none; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .alts { grid-template-columns: repeat(2, 1fr); } }
.alts a { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: var(--ink); }
.alts a:hover { border-color: var(--ink); text-decoration: none; }
.alts span { display: flex; flex-direction: column; min-width: 0; }
.alts small { color: var(--muted); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; }
.matrix--cov { width: auto; min-width: 560px; }
.matrix--cov tbody th { min-width: 180px; }

/* mobile menu (no JS: a details element) */
.mnav { position: relative; }
.mnav summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; border-radius: var(--radius-sm); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.mnav nav { position: absolute; right: 0; top: 48px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; min-width: 210px; }
.mnav nav a { padding: 10px 12px; color: var(--ink); font-weight: 500; border-radius: var(--radius-sm); }
.mnav nav a:hover { background: var(--bg-dim); text-decoration: none; }
@media (min-width: 900px) { .mnav { display: none; } }
