/* ============================================================
   The Missing Umbrella — EGR314 Team 205
   Field-manual theme. Light default, full dark parity.
   ============================================================ */

:root {
  --paper:      #f7f5f0;
  --card:       #fffefb;
  --ink:        #1a1c20;
  --ink-soft:   #4a4f57;
  --ink-faint:  #8b9098;
  --rule:       #dcd7cc;
  --rule-soft:  #e9e5dc;
  --accent:     #a2560c;
  --accent-bg:  #f5e6d3;
  --shadow:     0 1px 2px rgba(26,28,32,.05), 0 8px 24px rgba(26,28,32,.06);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --measure: 70ch;
  --rail: 15rem;
  --gutter: clamp(1rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:     #14161a;
    --card:      #1b1e23;
    --ink:       #e7e4dd;
    --ink-soft:  #a8adb6;
    --ink-faint: #6d737d;
    --rule:      #2c3037;
    --rule-soft: #23272d;
    --accent:    #e8a33d;
    --accent-bg: #33281a;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --paper:     #14161a;
  --card:      #1b1e23;
  --ink:       #e7e4dd;
  --ink-soft:  #a8adb6;
  --ink-faint: #6d737d;
  --rule:      #2c3037;
  --rule-soft: #23272d;
  --accent:    #e8a33d;
  --accent-bg: #33281a;
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  max-width: 84rem; margin: 0 auto;
  padding: .6rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.brand-mark {
  font-size: 1.3rem; line-height: 1; color: var(--accent);
  background: var(--accent-bg); border-radius: 8px;
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center; flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: .98rem; letter-spacing: -.01em; }
.brand-text small {
  font-family: var(--mono); font-size: .68rem; color: var(--ink-faint);
  letter-spacing: .04em; text-transform: uppercase;
}

.theme-toggle {
  font: inherit; cursor: pointer; flex: none;
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--rule); border-radius: 8px;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.ico-moon { display: none; }
:root[data-theme="dark"] .ico-sun { display: none; }
:root[data-theme="dark"] .ico-moon { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico-sun { display: none; }
  :root:not([data-theme="light"]) .ico-moon { display: inline; }
}

/* ---------- shell ---------- */

.shell {
  max-width: 84rem; margin: 0 auto;
  padding: 0 var(--gutter) 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 60rem) {
  .shell { grid-template-columns: minmax(0, 1fr); }
}

.prose { min-width: 0; padding-block: 2.5rem 0; }
.prose > * { max-width: var(--measure); }
.prose > figure, .prose > .table-scroll, .prose > .card-grid { max-width: none; }

/* ---------- headings ---------- */

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5 {
  line-height: 1.2; letter-spacing: -.018em; font-weight: 650;
  scroll-margin-top: 5.5rem;
}
.prose h1 {
  font-size: clamp(2rem, 5vw, 2.9rem); margin: 0 0 1.5rem;
  letter-spacing: -.03em;
}
.prose h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  margin: 3.5rem 0 1rem; padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  position: relative;
}
.prose h2::before {
  content: attr(data-num);
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  color: var(--accent); letter-spacing: .1em;
  position: absolute; top: -.62rem; left: 0;
  background: var(--paper); padding-right: .7rem;
}
.prose h3 { font-size: 1.2rem;  margin: 2.4rem 0 .7rem; }
.prose h4 { font-size: 1.02rem; margin: 1.9rem 0 .6rem; color: var(--ink-soft); }
.prose h5 { font-size: .92rem;  margin: 1.5rem 0 .5rem; color: var(--ink-soft); }

.anchor {
  opacity: 0; text-decoration: none; color: var(--ink-faint);
  font-weight: 400; margin-left: .4rem; font-size: .8em;
}
h2:hover .anchor, h3:hover .anchor, h4:hover .anchor, .anchor:focus { opacity: 1; }

/* ---------- text ---------- */

.prose p { margin: 0 0 1.15rem; }
.prose a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--ink-faint); }
.prose strong { font-weight: 640; }
.prose code {
  font-family: var(--mono); font-size: .86em;
  background: var(--rule-soft); padding: .12em .38em; border-radius: 4px;
}
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

/* pull-quote treatment for the mission statement (leading italic paragraph) */
.prose .lede {
  font-size: 1.22rem; line-height: 1.5; font-style: normal;
  color: var(--ink); border-left: 3px solid var(--accent);
  padding: .2rem 0 .2rem 1.4rem; margin-bottom: 1.6rem;
}
.prose .lede em { font-style: normal; }

/* ---------- figures ---------- */

.prose figure {
  margin: 2rem 0 2.4rem; padding: 0;
}
.prose figure img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule); border-radius: 10px;
  background: var(--card); box-shadow: var(--shadow);
  cursor: zoom-in;
}
.prose figcaption {
  margin-top: .7rem; font-size: .82rem; line-height: 1.45;
  color: var(--ink-faint); font-family: var(--mono);
}
.prose figcaption b {
  color: var(--accent); font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; font-size: .72rem; margin-right: .5rem;
}
/* portrait / small assets shouldn't blow up */
.prose figure.is-narrow { max-width: 26rem; }

/* ---------- tables ---------- */

.table-scroll {
  overflow-x: auto; margin: 1.6rem 0 2.2rem;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--card);
  box-shadow: var(--shadow);
}
.prose table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.prose thead th {
  background: var(--rule-soft); color: var(--ink-soft);
  font-family: var(--mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  text-align: left; padding: .7rem .9rem; white-space: nowrap;
  border-bottom: 1px solid var(--rule);
}
.prose tbody td { padding: .6rem .9rem; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover { background: color-mix(in srgb, var(--accent-bg) 40%, transparent); }
/* part numbers etc. read as data */
.prose td:first-child { font-family: var(--mono); font-size: .84rem; }
.prose table img {
  width: auto !important; height: auto !important;
  max-width: 8rem; max-height: 5rem; border-radius: 6px;
  border: 1px solid var(--rule-soft); background: #fff; cursor: zoom-in;
}

/* ---------- TOC rail ---------- */

.toc-rail { position: sticky; top: 4.6rem; padding-block: 2.6rem 2rem; }
@media (max-width: 60rem) {
  .toc-rail { position: static; padding-block: 1.5rem 0; order: -1; }
  .toc { border: 1px solid var(--rule); border-radius: 10px; background: var(--card); padding: .5rem .9rem; }
  .toc-head { cursor: pointer; }
  .toc-head::after { content: "▾"; float: right; color: var(--ink-faint); }
  .toc.is-collapsed .toc-list { display: none; }
  .toc.is-collapsed .toc-head::after { content: "▸"; }
}

.toc-head {
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint);
  margin: 0 0 .9rem; padding-bottom: .6rem; border-bottom: 1px solid var(--rule);
}
@media (max-width: 60rem) { .toc-head { border-bottom: 0; padding-bottom: 0; margin-bottom: .5rem; } }

.toc-list { list-style: none; margin: 0; padding: 0; font-size: .85rem; line-height: 1.35; }
.toc-list li { margin: 0; }
.toc-list a {
  display: block; padding: .3rem 0 .3rem .8rem;
  color: var(--ink-soft); text-decoration: none;
  border-left: 2px solid var(--rule-soft);
}
.toc-list a:hover { color: var(--accent); border-left-color: var(--accent); }
.toc-list .lvl-3 a { padding-left: 1.6rem; font-size: .8rem; color: var(--ink-faint); }
.toc-list a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--rule); background: var(--card);
  padding: 2.5rem var(--gutter);
  font-size: .85rem; color: var(--ink-soft);
}
.foot p { max-width: 84rem; margin: 0 auto .3rem; }
.foot-meta { font-family: var(--mono); font-size: .74rem; color: var(--ink-faint); }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10,11,13,.92);
  display: grid; place-items: center; gap: 1rem;
  padding: 2.5rem 1.5rem; overflow: auto;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 82vh; width: auto; height: auto;
  border-radius: 8px; background: #fff; cursor: zoom-out;
}
.lightbox-cap { color: #d8d5cf; font-family: var(--mono); font-size: .8rem; margin: 0; text-align: center; }
.lightbox-close {
  position: fixed; top: 1rem; right: 1.25rem;
  background: transparent; border: 0; color: #d8d5cf;
  font-size: 2.2rem; line-height: 1; cursor: pointer;
}

/* ---------- print ---------- */

@media print {
  .topbar, .toc-rail, .lightbox, .theme-toggle, .skip { display: none !important; }
  .shell { display: block; padding: 0; }
  .prose > * { max-width: none; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .prose h2 { break-after: avoid; }
  figure { break-inside: avoid; }
}

/* ============================================================
   Tier 2 — primary nav, pager, search
   ============================================================ */

.topbar-inner { gap: 1.5rem; }
.brand { flex: none; }

/* ---------- primary nav ---------- */

.mainnav { flex: 1 1 auto; min-width: 0; }
.mainnav > ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: .2rem; justify-content: center; flex-wrap: nowrap;
}
.mainnav > ul > li { position: relative; }
.mainnav a {
  display: block; padding: .4rem .7rem; border-radius: 7px;
  color: var(--ink-soft); text-decoration: none;
  font-size: .9rem; font-weight: 520; white-space: nowrap;
}
.mainnav a:hover { color: var(--ink); background: var(--rule-soft); }
.mainnav a[aria-current="page"] { color: var(--accent); background: var(--accent-bg); }

.has-sub > a::after { content: " ▾"; font-size: .7em; color: var(--ink-faint); }
.subnav {
  position: absolute; top: 100%; right: 0; z-index: 50;
  min-width: 17rem; margin: .35rem 0 0; padding: .4rem;
  list-style: none; background: var(--card);
  border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .12s, transform .12s, visibility .12s;
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav {
  opacity: 1; visibility: visible; transform: none;
}
.subnav a { font-size: .85rem; padding: .4rem .6rem; }
.subnav a::first-letter { font-family: var(--mono); color: var(--accent); }

/* ---------- topbar tools ---------- */

.topbar-tools { display: flex; gap: .4rem; flex: none; }
.tool {
  font: inherit; cursor: pointer; height: 2.1rem; padding: 0 .55rem;
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--rule); border-radius: 8px;
}
.tool:hover { color: var(--accent); border-color: var(--accent); }
.tool kbd {
  font-family: var(--mono); font-size: .68rem; color: var(--ink-faint);
  border: 1px solid var(--rule); border-radius: 4px; padding: 0 .28rem; line-height: 1.3;
}
.nav-open { display: none; }

/* ---------- mobile drawer ---------- */

@media (max-width: 62rem) {
  .brand-text small { display: none; }
  .nav-open { display: inline-flex; }
  .mainnav {
    position: fixed; inset: 3.4rem 0 auto; z-index: 45;
    background: var(--card); border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow);
    padding: .7rem var(--gutter) 1.1rem;
    max-height: calc(100vh - 3.4rem); overflow-y: auto;
    display: none;
  }
  .mainnav.is-open { display: block; }
  .mainnav > ul { flex-direction: column; gap: 0; }
  .mainnav a { padding: .55rem .6rem; font-size: .95rem; }
  .has-sub > a::after { content: ""; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: transparent;
    min-width: 0; margin: 0 0 .4rem .6rem; padding: 0;
    border-left: 1px solid var(--rule);
  }
  .subnav a { padding-left: .9rem; }
}

/* ---------- pager ---------- */

.pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin: 4rem 0 0; padding-top: 2rem;
  border-top: 1px solid var(--rule);
  max-width: none;
}
.pager-link {
  display: flex; flex-direction: column; gap: .2rem;
  padding: .9rem 1.1rem; text-decoration: none;
  border: 1px solid var(--rule); border-radius: 10px;
  background: var(--card); color: var(--ink);
}
.pager-link:hover { border-color: var(--accent); }
.pager-link.next { text-align: right; grid-column: 2; }
.pager-dir {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
.pager-title { font-size: .92rem; font-weight: 560; line-height: 1.3; }
@media (max-width: 34rem) {
  .pager { grid-template-columns: 1fr; }
  .pager-link.next { grid-column: 1; text-align: left; }
}

/* ---------- search ---------- */

.searchbox {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(10,11,13,.55);
  backdrop-filter: blur(3px);
  padding: 8vh 1rem 2rem;
  display: grid; place-items: start center;
}
.searchbox[hidden] { display: none; }
.searchbox-panel {
  width: min(38rem, 100%);
  background: var(--card); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  overflow: hidden;
}
.search-input {
  font: inherit; font-size: 1.05rem; width: 100%;
  padding: 1rem 1.2rem; border: 0; outline: 0;
  background: transparent; color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.search-input::placeholder { color: var(--ink-faint); }

.search-results { list-style: none; margin: 0; padding: .4rem; max-height: 52vh; overflow-y: auto; }
.search-results:empty { display: none; }
.search-results li { margin: 0; }
.search-results a {
  display: block; padding: .6rem .8rem; border-radius: 8px;
  text-decoration: none; color: var(--ink);
}
.search-results a:hover, .search-results li.is-sel a { background: var(--accent-bg); }
.search-results .r-title { display: block; font-size: .92rem; font-weight: 560; }
.search-results .r-crumb {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--accent);
}
.search-results .r-snip {
  display: block; font-size: .82rem; color: var(--ink-soft);
  margin-top: .15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-results mark { background: transparent; color: var(--accent); font-weight: 640; }
.search-empty { padding: 1.2rem; color: var(--ink-faint); font-size: .9rem; text-align: center; }

.search-hint {
  margin: 0; padding: .55rem .9rem;
  border-top: 1px solid var(--rule);
  font-size: .72rem; color: var(--ink-faint);
}
.search-hint kbd {
  font-family: var(--mono); border: 1px solid var(--rule);
  border-radius: 4px; padding: 0 .3rem; margin-right: .15rem;
}

@media print { .mainnav, .topbar-tools, .pager, .searchbox { display: none !important; } }

/* ============================================================
   Tier 3 — component cards, topic table, verification matrix
   ============================================================ */

/* ---------- component cards ---------- */

.card-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin: 1.2rem 0 2.4rem;
}
.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule); border-radius: 12px;
  background: var(--card); box-shadow: var(--shadow); overflow: hidden;
}
.card-shot {
  display: grid; place-items: center;
  padding: 1.1rem; min-height: 8.5rem;
  background: var(--rule-soft); border-bottom: 1px solid var(--rule);
}
.card-shot img {
  max-width: 100%; max-height: 6.5rem; width: auto; height: auto;
  cursor: zoom-in; border: 0; box-shadow: none; background: none; border-radius: 0;
}
.card-body { padding: .95rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.card-name { margin: 0; font-size: 1rem; font-weight: 620; color: var(--ink); }
.card-part {
  margin: 0; font-family: var(--mono); font-size: .8rem;
  color: var(--accent); letter-spacing: .01em;
  display: flex; justify-content: space-between; gap: .6rem; align-items: baseline;
}
.card-price { color: var(--ink-faint); }

.card-specs {
  margin: 0; display: grid; grid-template-columns: auto 1fr;
  gap: .15rem .8rem; font-size: .81rem;
  padding-top: .55rem; border-top: 1px solid var(--rule-soft);
}
.card-specs dt {
  font-family: var(--mono); font-size: .67rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-faint); align-self: center;
}
.card-specs dd { margin: 0; color: var(--ink-soft); }

.card-why {
  margin: 0; font-size: .83rem; line-height: 1.5; color: var(--ink-soft);
  padding-top: .55rem; border-top: 1px solid var(--rule-soft);
}
.card-why b {
  display: block; font-family: var(--mono); font-size: .67rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .2rem;
}
.card-link { margin: 0; font-size: .8rem; }

/* ---------- topic table ---------- */

.topic-meta { font-size: .9rem; color: var(--ink-soft); }
.topic-set { display: grid; gap: 1.5rem; margin: 1.4rem 0 2.4rem; max-width: none; }

.topic {
  border: 1px solid var(--rule); border-radius: 12px;
  background: var(--card); box-shadow: var(--shadow); overflow: hidden;
}
.topic-head { padding: .95rem 1.1rem; border-bottom: 1px solid var(--rule); }
.topic-name {
  display: inline-block; font-size: .88rem; font-weight: 600;
  color: var(--accent); background: var(--accent-bg);
  padding: .2rem .5rem; border-radius: 6px; margin-bottom: .6rem;
}
.topic-meta-list {
  margin: 0; display: grid; grid-template-columns: auto 1fr;
  gap: .1rem .9rem; font-size: .82rem;
}
.topic-meta-list dt {
  font-family: var(--mono); font-size: .67rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-faint); align-self: center;
}
.topic-meta-list dd { margin: 0; color: var(--ink-soft); }

.topic .table-scroll { margin: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.topic-values tbody th[scope="row"] {
  text-align: left; white-space: nowrap; width: 1%;
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint);
  padding: .5rem .9rem; border-bottom: 1px solid var(--rule-soft);
  background: var(--rule-soft);
}
.topic-values td { font-size: .85rem; }
.topic-values td.is-prose { font-family: var(--sans); min-width: 15rem; white-space: normal; }
.topic-values thead th:first-child { background: var(--rule-soft); }

.topic-example {
  margin: 0; padding: .7rem 1.1rem; border-top: 1px solid var(--rule);
  font-size: .84rem; display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap;
}
.topic-example b {
  font-family: var(--mono); font-size: .67rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}

/* ---------- verification matrix ---------- */

.vmatrix { font-size: .78rem; }
.vmatrix-cap {
  caption-side: top; text-align: left; padding: .8rem .9rem;
  font-weight: 620; font-size: .95rem; color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.vmatrix-cap span { font-weight: 400; color: var(--ink-faint); }
.vmatrix thead th {
  font-size: .64rem; white-space: normal; min-width: 5.4rem;
  vertical-align: bottom; line-height: 1.25;
}
.vmatrix tbody th[scope="row"] {
  text-align: right; white-space: normal; min-width: 8rem;
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  color: var(--ink-soft); padding: .45rem .8rem;
  background: var(--rule-soft); border-bottom: 1px solid var(--rule);
  position: sticky; left: 0; z-index: 1;
}
.vmatrix td {
  text-align: center; font-family: var(--mono); font-size: .7rem;
  padding: .45rem .5rem; line-height: 1.3;
}
.vmatrix td.is-ok  { background: color-mix(in srgb, #2f7d32 16%, transparent); color: var(--ink); }
.vmatrix td.is-nc  { background: color-mix(in srgb, #a13a2f 14%, transparent); color: var(--ink-soft); }
.vmatrix td.is-blank { background: transparent; }
.vmatrix tbody tr:hover { background: none; }
.vmatrix tbody tr:hover td.is-blank { background: var(--rule-soft); }

.vkey {
  display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem;
  margin: 1.2rem 0 2.2rem; padding: .9rem 1.1rem;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--card);
  font-size: .82rem; max-width: 34rem;
}
.vkey dt { font-family: var(--mono); font-size: .74rem; color: var(--accent); white-space: nowrap; }
.vkey dd { margin: 0; color: var(--ink-soft); }
