/* Metis site. Verdigris and slate on cool paper; copper-orange only where something is hot. */

:root {
    --ink: #15222c;
    --ink-soft: #3d4c57;
    --bone: #edf1ef;
    --paper: #f8faf9;
    --rule: #c8d3cf;
    --verdigris: #1f7a6e;
    --verdigris-deep: #17625a;
    --verdigris-wash: #cfe3de;
    --heat: #d9531e;

    --display: "Familjen Grotesk", "Segoe UI", system-ui, sans-serif;
    --text: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

    --gutter: clamp(18px, 4.5vw, 44px);
    --measure: 66ch;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bone);
    color: var(--ink);
    font: 400 1.0625rem/1.62 var(--text);
    overflow-x: clip;
}

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

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 700; letter-spacing: -0.03em; max-width: 19ch; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 650; text-wrap: balance; }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.012em; }
p { margin: 0 0 1em; }
a { color: var(--verdigris-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code { font: 0.9em ui-monospace, Consolas, monospace; background: var(--verdigris-wash); padding: 0.1em 0.35em; border-radius: 4px; }

:focus-visible { outline: 3px solid var(--verdigris); outline-offset: 3px; border-radius: 3px; }
h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible { outline: none; }
.ink :focus-visible, .site-footer :focus-visible { outline-color: #7fd6c6; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6em 1em; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 1.55rem/1 var(--display); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.wordmark svg { color: var(--verdigris); }
.site-header nav { display: flex; gap: clamp(14px, 3vw, 34px); flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; padding-block: 4px; border-bottom: 2px solid transparent; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a.active { color: var(--ink); border-bottom-color: var(--verdigris); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.72em 1.3em; border: 1.5px solid var(--ink); border-radius: 6px;
    background: transparent; color: var(--ink); font: 600 1rem/1.2 var(--text);
    text-decoration: none; cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--ink); color: #fff; text-decoration: none; }
.btn.primary { background: var(--verdigris); border-color: var(--verdigris); color: #fff; }
.btn.primary:hover { background: var(--verdigris-deep); border-color: var(--verdigris-deep); }
form { margin: 0; }

/* Home: hero */
.hero { padding-top: clamp(28px, 5vw, 56px); }
.lede { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.5; color: var(--ink-soft); max-width: 46ch; margin: 24px 0 0; }
.hero .lede { max-width: 64ch; margin-top: 20px; }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); max-width: 27ch; }
/* The buttons and the install command share a row, so the demo below starts on the first screen */
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.hero-row .actions { margin-top: 0; }
.hero-row .hero-cmd { flex: 1 1 20rem; max-width: 34rem; margin: 0; }
.hero-row .hero-cmd .shell { padding-block: 10px; }
.fine { margin: 18px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.hero-shot { margin-top: clamp(40px, 6vw, 72px); padding-bottom: 28px; }
.hero-cmd { margin: 28px 0 0; }
.hero-shot { margin-top: clamp(24px, 3.5vw, 40px); }
.demo-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; gap: 10px; padding: 0.8em 1.4em;
    border: 0; border-radius: 6px; background: var(--verdigris); color: #fff; font: 600 1.05rem/1.2 var(--text); cursor: pointer;
    box-shadow: 0 6px 24px rgba(21, 34, 44, 0.35);
}
.demo-play::before { content: ""; border-left: 0.8em solid #fff; border-block: 0.5em solid transparent; }
.demo-play:hover { background: var(--verdigris-deep); }
.shot video.demo { display: block; width: 100%; height: auto; border: 1px solid #aebdb8; border-radius: 10px; background: var(--ink); }

/* Screenshots */
.shot { margin: 0; position: relative; isolation: isolate; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid #aebdb8; border-radius: 10px; background: var(--paper); }
.shot.slab::before {
    content: ""; position: absolute; z-index: -1; inset: 20px -20px -20px 20px;
    background: var(--verdigris-wash); border-radius: 10px;
}

/* Home: feature rows */
.band { background: var(--paper); border-block: 1px solid var(--rule); padding-block: clamp(56px, 8vw, 104px); margin-top: clamp(24px, 4vw, 48px); }
.band-title { max-width: 18ch; margin-bottom: clamp(40px, 6vw, 72px); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.row + .row { margin-top: clamp(48px, 7vw, 96px); }
.row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.row.flip .row-text { order: 2; }
.row.text-only { grid-template-columns: minmax(0, 46rem); }
.row-text p { color: var(--ink-soft); max-width: 52ch; }
.row-text h3 { margin-bottom: 14px; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 1.6em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.72em; height: 0.72em; border: 2.5px solid var(--verdigris); border-radius: 50%; }
.ticks li.off { color: #6d7b84; }
.ticks li.off::before { border-color: var(--rule); }

/* Home: three steps (a real sequence, so numbered) */
.how { padding-block: clamp(56px, 8vw, 104px); }
.how h2 { margin-bottom: 40px; }
.how ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.how li { counter-increment: step; padding: 0 clamp(18px, 3vw, 40px); border-left: 1px solid var(--rule); }
.how li:first-child { padding-left: 0; border-left: 0; }
.how li::before { content: counter(step); display: block; font: 700 3.2rem/1 var(--display); color: var(--verdigris); margin-bottom: 14px; }
.how h3 { margin-bottom: 10px; }
.how p { color: var(--ink-soft); }

/* Home: security band */
.ink { background: var(--ink); color: #e6eeea; padding-block: clamp(56px, 8vw, 96px); }
.ink h2 { color: #fff; max-width: 14ch; margin-bottom: 18px; }
.ink p { color: #b9c8c2; max-width: 40ch; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.facts { margin: 0; }
.facts div { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 20px; }
.facts div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.facts dt { font: 600 1.15rem/1.3 var(--display); color: #fff; }
.facts dd { margin: 0; color: #b9c8c2; }

/* Closing band */
.close { padding-block: clamp(56px, 8vw, 104px); }
.close p { color: var(--ink-soft); margin-top: 14px; max-width: 46ch; }

/* Inner pages */
.page-head { padding-block: clamp(44px, 7vw, 88px) clamp(24px, 4vw, 44px); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 22ch; }

.prose { padding-block: 8px clamp(48px, 7vw, 96px); }
.topic { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(16px, 4vw, 56px); padding-block: 32px; border-top: 1px solid var(--rule); }
.topic h2 { font-size: 1.45rem; }
.topic p, .topic .ticks, .plain { max-width: var(--measure); }
.topic p { color: var(--ink-soft); }
.note { font-size: 0.97rem; color: var(--ink-soft); }
.plain { padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: 8px; }
.big-link { font: 600 1.6rem/1.2 var(--display); }

.specs { margin: 0; max-width: var(--measure); }
.specs div { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 16px; }
.specs div:first-child { padding-top: 0; }
.specs dt { font-weight: 600; }
.specs dd { margin: 0; color: var(--ink-soft); }

/* Pricing */
.gauge { padding: clamp(24px, 4vw, 40px) 0 clamp(32px, 5vw, 56px); max-width: 880px; }
.gauge label { font: 600 1.15rem/1.3 var(--display); }
.gauge-count { margin: 10px 0 18px; font-size: 1.25rem; color: var(--ink-soft); }
.gauge-count output { font: 700 clamp(3.4rem, 8vw, 5.2rem)/1 var(--display); letter-spacing: -0.04em; color: var(--ink); margin-right: 0.12em; }

.gauge-body { --zone-free: #c3d1cc; --zone-pro: #55b4a4; --zone-biz: #2f8f80; --zone-elite: var(--verdigris-deep); position: relative; }
.gauge-body input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 48px; margin: 0; background: transparent; cursor: pointer; }
.gauge-body input[type="range"]::-webkit-slider-runnable-track {
    height: 16px; border-radius: 8px;
    background: linear-gradient(90deg, var(--zone-free) 0 var(--free), var(--zone-pro) var(--free) var(--pro), var(--zone-biz) var(--pro) var(--biz), var(--zone-elite) var(--biz) 100%);
}
.gauge-body input[type="range"]::-moz-range-track {
    height: 16px; border-radius: 8px;
    background: linear-gradient(90deg, var(--zone-free) 0 var(--free), var(--zone-pro) var(--free) var(--pro), var(--zone-biz) var(--pro) var(--biz), var(--zone-elite) var(--biz) 100%);
}
.gauge-body input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 48px; margin-top: -16px; background: var(--ink); border: 2px solid var(--bone); border-radius: 4px; box-shadow: 0 0 0 1px var(--ink); }
.gauge-body input[type="range"]::-moz-range-thumb { width: 6px; height: 44px; background: var(--ink); border: 2px solid var(--bone); border-radius: 4px; box-shadow: 0 0 0 1px var(--ink); }
.gauge-zones { position: relative; height: 1.8em; font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); }
.gauge-zones span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.gauge-result { margin: 22px 0 0; font-size: 1.2rem; max-width: 52ch; }
.gauge-result strong { font-family: var(--display); font-size: 1.5rem; display: block; margin-bottom: 4px; }
.gauge-result span { color: var(--ink-soft); }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin-top: 8px; }
.plan { padding: 32px clamp(18px, 3vw, 36px) 36px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; border-top: 4px solid transparent; margin-top: -1px; }
.plan:first-child { padding-left: 0; border-left: 0; }
.plan.mid { border-top-color: var(--verdigris); background: var(--paper); }
.plan h2 { font-size: 1.5rem; }
.price { margin: 14px 0 6px; }
.price .amount { font: 700 2.4rem/1 var(--display); letter-spacing: -0.03em; }
.price .per { color: var(--ink-soft); }
.plan .ticks { margin-bottom: 28px; }
.plan-action { margin-top: auto; }

.faq { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.faq h2 { margin-bottom: 20px; }
.faq details { border-top: 1px solid var(--rule); max-width: 760px; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font: 600 1.15rem/1.35 var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--verdigris); border-bottom: 2px solid var(--verdigris); transform: rotate(45deg); transition: transform 0.18s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--ink-soft); padding-bottom: 18px; margin: 0; max-width: var(--measure); }

/* Download */
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin-top: 8px; }
.dl { padding: 32px clamp(18px, 3vw, 44px) 40px 0; }
.dl + .dl { border-left: 1px solid var(--rule); padding-left: clamp(18px, 3vw, 44px); }
.dl h2 { margin-bottom: 12px; }
.dl p { color: var(--ink-soft); max-width: 46ch; }

/* Legal */
.legal { padding-block: 0 clamp(48px, 7vw, 96px); }
.legal p { max-width: 70ch; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--ink); color: #b9c8c2; padding-block: 44px; margin-top: 0; }
.site-footer strong { color: #fff; font-family: var(--display); font-size: 1.2rem; }
.site-footer p { margin: 6px 0 0; }
.site-footer a { color: #cfe3de; text-decoration: none; }
.site-footer a:hover, .site-footer a.active { color: #fff; text-decoration: underline; }
.site-footer .by { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; vertical-align: middle; }
.site-footer .by img { display: block; height: 27px; width: auto; }
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: start; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.foot .copy { grid-column: 1 / -1; font-size: 0.9rem; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); }

/* Blazor's own bits */
#blazor-error-ui { position: fixed; inset: auto 0 0 0; background: var(--heat); color: #fff; padding: 12px var(--gutter); z-index: 20; }
#blazor-error-ui .reload { color: #fff; margin-left: 12px; }
#blazor-error-ui .dismiss { float: right; background: none; border: 0; color: #fff; font-size: 1.4rem; cursor: pointer; }

@media (max-width: 1040px) {
    .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plan:nth-child(odd) { padding-left: 0; border-left: 0; }
    .plan:nth-child(n+3) { border-top-color: var(--rule); margin-top: 0; }
}

/* Narrow screens */
@media (max-width: 820px) {
    .row, .row.flip, .split, .downloads, .foot { grid-template-columns: minmax(0, 1fr); }
    .row.flip .row-text { order: 0; }
    .how ol { grid-template-columns: minmax(0, 1fr); }
    .how li { padding: 22px 0; border-left: 0; border-top: 1px solid var(--rule); }
    .how li:first-child { border-top: 0; padding-top: 0; }
    .plans { grid-template-columns: minmax(0, 1fr); }
    .plan, .plan:first-child { padding: 28px 0; border-left: 0; border-top: 1px solid var(--rule); }
    .plan.mid { border-top: 4px solid var(--verdigris); padding-inline: 18px; }
    .topic { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .dl + .dl { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
    .specs div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .foot ul { justify-content: flex-start; }
    .shot.slab::before { inset: 10px -10px -10px 10px; }
    .site-header .bar { flex-direction: column; align-items: flex-start; gap: 10px; }
    .site-header nav { justify-content: flex-start; }
}

/* Grids with rules that must line up with the text, not with the page padding */
.plans, .downloads { width: calc(100% - 2 * var(--gutter)); max-width: calc(1120px - 2 * var(--gutter)); padding-inline: 0; }

/* Purchases that are not open yet */
.btn.soon, .btn.soon:hover { background: transparent; color: var(--ink-soft); border-style: dashed; border-color: #8aa0a6; cursor: not-allowed; }
.soon-note { margin: 0 0 24px; padding: 14px 18px; border-left: 4px solid var(--verdigris); background: var(--paper); max-width: 52ch; }

/* A download that spans both columns, and a shell command to copy */
.dl.wide { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-left: 0; border-left: 0; }
.dl .actions { margin-top: 0; margin-bottom: 14px; }
.shell { margin: 0 0 6px; padding: 14px 18px; background: var(--ink); color: #e6eeea; border-radius: 6px; font: 0.92rem/1.6 ui-monospace, Consolas, monospace; overflow-x: auto; max-width: 46rem; }

/* Download: choose a platform first */
.platforms-section { padding-block: 8px 28px; }
.pick-help { color: var(--ink-soft); max-width: 62ch; margin-bottom: 18px; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pick { display: block; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 6px; color: var(--ink); text-decoration: none; background: var(--paper); }
.pick strong { display: block; font-family: var(--display); font-size: 1.15rem; margin-bottom: 4px; }
.pick span { color: var(--ink-soft); font-size: 0.93rem; }
.pick:hover { border-color: var(--verdigris); text-decoration: none; }
.pick[aria-current="true"] { border-color: var(--verdigris); box-shadow: inset 0 0 0 2px var(--verdigris); background: var(--verdigris-wash); }
.platforms-section .note { margin-top: 14px; }
.pick-prompt { color: var(--ink-soft); padding: 8px 0 28px; border-top: 1px solid var(--rule); margin: 0; }
#files { display: block; scroll-margin-top: 16px; }
@media (max-width: 820px) {
    .platforms { grid-template-columns: minmax(0, 1fr); }
}

/* Install commands with a copy button (the button only shows when JavaScript runs) */
.cmd { position: relative; max-width: 46rem; margin-bottom: 14px; }
.cmd .shell { margin: 0; padding-right: 84px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd .copy { display: none; position: absolute; top: 8px; right: 8px; padding: 4px 12px; font: 600 0.82rem var(--text); color: var(--ink); background: var(--verdigris-wash); border: 0; border-radius: 4px; cursor: pointer; }
.js .cmd .copy { display: inline-block; }
.cmd .copy:hover { background: #fff; }

/* ---------- user guide ---------- */

.crumb { margin: 0 0 10px; font-weight: 600; font-size: 0.95rem; }
.crumb a { color: var(--verdigris-deep); }

.docs { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); padding-block: 8px clamp(48px, 7vw, 96px); align-items: start; }
.docs-nav { position: sticky; top: 18px; }
.docs-nav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.docs-nav a { display: block; padding: 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); font-weight: 560; text-decoration: none; }
.docs-nav a:hover { color: var(--ink); }
.docs-nav a.current { color: var(--verdigris-deep); border-left-color: var(--verdigris); font-weight: 650; }

.doc { max-width: 46rem; min-width: 0; }
.doc h2 { font-size: 1.5rem; margin: 2.2em 0 0.5em; padding-top: 0.2em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.12rem; margin: 1.6em 0 0.4em; }
.doc p, .doc li { color: var(--ink-soft); }
.doc p, .doc ul, .doc ol { max-width: var(--measure); }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin-block: 0.35em; }
.doc strong { color: var(--ink); }
.doc .cmd { max-width: 100%; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 0.97rem; }
.doc th, .doc td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); background: var(--paper); }
.doc .table-wrap { overflow-x: auto; }
.doc .steps { counter-reset: step; list-style: none; padding-left: 0; }
.doc .steps > li { counter-increment: step; position: relative; padding-left: 2.6em; margin-block: 1.1em; }
.doc .steps > li::before { content: counter(step); position: absolute; left: 0; top: -0.05em; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--verdigris-wash); color: var(--verdigris-deep); font: 700 0.95rem var(--display); display: grid; place-items: center; }
.doc .callout { border-left: 4px solid var(--verdigris); background: var(--paper); padding: 12px 18px; margin: 18px 0; max-width: var(--measure); }
.doc .callout p { margin: 0; }
.doc .callout.warn { border-left-color: var(--heat); }

.docs-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 3em; padding-top: 22px; border-top: 1px solid var(--rule); }
.docs-pager a { display: block; max-width: 48%; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); font-weight: 650; text-decoration: none; background: var(--paper); }
.docs-pager a:hover { border-color: var(--verdigris); }
.docs-pager small { display: block; color: var(--ink-soft); font-weight: 560; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.docs-pager .next { margin-left: auto; text-align: right; }
.docs-help { margin-top: 1.4em; }

.doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 16px; margin-top: 8px; }
.doc-cards a { display: block; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); color: var(--ink); text-decoration: none; }
.doc-cards a:hover { border-color: var(--verdigris); }
.doc-cards strong { display: block; font: 700 1.1rem var(--display); margin-bottom: 4px; }
.doc-cards span { color: var(--ink-soft); font-size: 0.97rem; }

@media (max-width: 860px) {
    .docs { grid-template-columns: minmax(0, 1fr); }
    .docs-nav { position: static; }
    .docs-nav ul { display: flex; flex-wrap: wrap; gap: 6px; border-left: 0; }
    .docs-nav a { border: 1px solid var(--rule); border-radius: 999px; margin-left: 0; padding: 5px 12px; font-size: 0.93rem; }
    .docs-nav a.current { background: var(--verdigris-wash); }
}

/* Fungusware star: fixed to the background, content scrolls over it */
body::before {
    content: "";
    position: fixed; right: -70px; bottom: -70px; z-index: -1;
    width: min(560px, 60vw); aspect-ratio: 1;
    background: url("img/fungusware-star.svg") no-repeat center / contain;
    opacity: .12;
    pointer-events: none;
}
@media print { body::before { display: none; } }

/* Compare page: a wide table, the Metis column marked */
.compare { padding-block: 36px 8px; }
.compare h2 { font-size: 1.45rem; margin-bottom: 8px; }
.compare table { min-width: 880px; table-layout: fixed; }
.compare th[scope="row"] { width: 11rem; }
.compare tbody th { text-transform: none; letter-spacing: 0; font-size: 0.97rem; color: var(--ink); background: transparent; }
.compare td:nth-child(2), .compare thead th:nth-child(2) { background: var(--verdigris-wash); color: var(--ink); }
.compare .note { max-width: var(--measure); }
.compare .table-wrap { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; margin: 14px 0 12px; font-size: 0.97rem; }
.compare th, .compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); background: var(--paper); }
.compare td { color: var(--ink-soft); }
