/* رائد: the register. Sea salt ground, deep sea ink, colour reserved for severity.
   This sheet is the desktop and tablet layout; phones (760px and below) also load mobile.css. */

:root {
  --ground: #eef1f0;
  --surface: #f8faf9;
  --raised: #ffffff;
  --ink: #14252e;
  --ink-2: #3b4d55;
  --muted: #5d6d74;
  --line: #cfd8d8;
  --line-2: #dfe6e5;
  --sea: #0f5c63;
  --sea-2: #0b474d;
  --sea-wash: #dcebea;
  --focus: #e0a21b;

  --crit: #a8231b;
  --crit-wash: #f6dedb;
  --high: #c35a15;
  --high-wash: #f8e5d6;
  --med: #9a7608;
  --med-wash: #f4ecd2;
  --low: #3f7a35;
  --low-wash: #e1eedc;
  --na: #7d8b90;
  --na-wash: #e6ebec;
  --kev: #6d1d5e;
  --kev-wash: #f1dfec;

  --f-display: 'Reem Kufi', 'IBM Plex Sans Arabic', sans-serif;
  --f-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --r-1: 3px; --r-2: 6px; --r-3: 10px;
  --wrap: 1180px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ground: #0e1a1f; --surface: #13232a; --raised: #182b33; --ink: #e4eceb; --ink-2: #bfcccc; --muted: #93a4a8;
    --line: #2a3f47; --line-2: #22353c; --sea: #5fb7bd; --sea-2: #8fd0d4; --sea-wash: #173a3e;
    --crit: #f08178; --crit-wash: #3a1d1b; --high: #f0a066; --high-wash: #3a2617; --med: #e2c35a; --med-wash: #33300f;
    --low: #93c985; --low-wash: #1d3219; --na: #9aa8ac; --na-wash: #22343a; --kev: #e39bd2; --kev-wash: #3a1d34;
  }
}
:root[data-theme='dark'] {
  --ground: #0e1a1f; --surface: #13232a; --raised: #182b33; --ink: #e4eceb; --ink-2: #bfcccc; --muted: #93a4a8;
  --line: #2a3f47; --line-2: #22353c; --sea: #5fb7bd; --sea-2: #8fd0d4; --sea-wash: #173a3e;
  --crit: #f08178; --crit-wash: #3a1d1b; --high: #f0a066; --high-wash: #3a2617; --med: #e2c35a; --med-wash: #33300f;
  --low: #93c985; --low-wash: #1d3219; --na: #9aa8ac; --na-wash: #22343a; --kev: #e39bd2; --kev-wash: #3a1d34;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.85;
  font-feature-settings: 'tnum' 1;
}
img, svg { max-width: 100%; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--sea-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-5); }
.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--ink); color: var(--ground); padding: var(--s-2) var(--s-4); z-index: 10; }
.skip:focus { inset-inline-start: var(--s-4); }

/* Header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: 68px; }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; color: var(--sea); flex: none; }
.brand b { font-family: var(--f-display); font-weight: 600; font-size: 30px; line-height: 1; }
.brand small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; margin-top: 4px; }
.nav { display: flex; gap: var(--s-1); margin-inline-start: auto; flex-wrap: wrap; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: var(--r-2); font-size: 15.5px; transition: background-color 160ms ease, color 160ms ease; }
.nav a:hover { background: var(--sea-wash); color: var(--ink); }
.nav a[aria-current='page'] { color: var(--sea); box-shadow: inset 0 -2px 0 var(--sea); border-radius: 0; }
.menu { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); border-radius: var(--r-2); padding: 6px 12px; font: inherit; color: var(--ink); }
.theme { background: none; border: 1px solid var(--line); border-radius: var(--r-2); width: 38px; height: 38px; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex: none; }
.theme svg { width: 18px; height: 18px; }
@media (max-width: 960px) {
  .menu { display: inline-block; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 68px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; padding: var(--s-3) var(--s-4) var(--s-4); z-index: 5; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 8px; font-size: 17px; }
  .nav a[aria-current='page'] { box-shadow: inset -3px 0 0 var(--sea); }
  .top { position: relative; }
}

/* Page heading */
.head { padding: var(--s-7) 0 var(--s-5); }
.head h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.3; margin: 0 0 var(--s-3); letter-spacing: 0; }
.head p.lead { margin: 0; color: var(--ink-2); font-size: 19px; max-width: 62ch; }
h2 { font-family: var(--f-display); font-weight: 600; font-size: 27px; line-height: 1.4; margin: var(--s-7) 0 var(--s-4); }
h3 { font-size: 19px; font-weight: 600; margin: var(--s-5) 0 var(--s-2); }
.prose { max-width: 70ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }

/* Hero */
.hero { padding: var(--s-8) 0 var(--s-6); }
.hero h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(36px, 5.6vw, 66px); line-height: 1.25; margin: 0; max-width: 16ch; }
.hero .lead { font-size: 19.5px; color: var(--ink-2); max-width: 54ch; margin: var(--s-4) 0 var(--s-6); }
.find { display: flex; gap: var(--s-2); max-width: 720px; background: var(--raised); border: 1.5px solid var(--ink); border-radius: var(--r-3); padding: 6px; }
.find input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 19px; padding: 10px 14px; color: var(--ink); }
.find input:focus { outline: none; }
.find:focus-within { box-shadow: 0 0 0 3px var(--focus); }
.btn { font: inherit; font-weight: 600; background: var(--sea); color: #fff; border: 0; border-radius: var(--r-2); padding: 10px 22px; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease; text-decoration: none; display: inline-flex; align-items: center; gap: var(--s-2); }
.btn:hover { background: var(--sea-2); color: #fff; }
.btn:active { transform: scale(0.97); }
.btn.quiet { background: transparent; color: var(--sea); border: 1px solid var(--line); }
.btn.quiet:hover { background: var(--sea-wash); color: var(--ink); }
.hint { font-size: 14.5px; color: var(--muted); margin-top: var(--s-3); }
.hint button { font: inherit; background: none; border: 0; color: var(--sea); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 4px; }

/* The tally wall: thirty days, one column each, one tick per ten records, coloured by severity */
.watch { margin: var(--s-6) 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-5) var(--s-5) var(--s-4); }
.watch-top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.watch-top .today b { font-family: var(--f-display); font-size: 58px; line-height: 1; font-weight: 600; display: block; }
.watch-top .today span { color: var(--muted); font-size: 15px; }
.watch-top .sums { display: flex; gap: var(--s-5); flex-wrap: wrap; font-size: 15px; color: var(--ink-2); }
.watch-top .sums b { display: block; font-size: 22px; color: var(--ink); font-weight: 600; }
.wall { display: grid; grid-template-columns: repeat(var(--days, 30), minmax(0, 1fr)); gap: 3px; align-items: end; height: 190px; margin-top: var(--s-5); }
.col { display: flex; flex-direction: column; gap: 2px; height: 100%; justify-content: flex-end; overflow: hidden; position: relative; text-decoration: none; border-radius: 2px; }
.col i { display: block; height: 3px; border-radius: 1px; background: var(--na); flex: none; }
.col i.crit { background: var(--crit); } .col i.high { background: var(--high); } .col i.med { background: var(--med); } .col i.low { background: var(--low); }
.col:hover, .col:focus-visible { background: var(--sea-wash); }
.col.weekend { }
.wall-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: var(--s-2); }
.legend { display: flex; gap: var(--s-4); flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-top: var(--s-3); }
.legend span::before { content: ''; display: inline-block; width: 14px; height: 4px; border-radius: 1px; margin-inline-end: 6px; vertical-align: middle; background: var(--c); }
.col i { transform-origin: bottom; animation: rise 420ms var(--ease-out) both; animation-delay: calc(var(--n) * 4ms); }
@keyframes rise { from { opacity: 0; transform: scaleY(0.4); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .col i { animation: none; } }

/* Severity marks */
.sev { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; padding: 1px 9px 1px 10px; border-radius: 99px; white-space: nowrap; color: var(--c); background: var(--w); }
.sev .num { font-weight: 700; }
.sev.crit { --c: var(--crit); --w: var(--crit-wash); }
.sev.high { --c: var(--high); --w: var(--high-wash); }
.sev.med { --c: var(--med); --w: var(--med-wash); }
.sev.low { --c: var(--low); --w: var(--low-wash); }
.sev.none, .sev.na { --c: var(--na); --w: var(--na-wash); }
.kev { display: inline-block; font-size: 13px; font-weight: 600; color: var(--kev); background: var(--kev-wash); padding: 1px 9px; border-radius: 99px; white-space: nowrap; }

/* Register rows */
.reg { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.reg li { border-bottom: 1px solid var(--line-2); }
.reg a.row { display: grid; grid-template-columns: 190px 1fr auto; gap: var(--s-2) var(--s-5); padding: var(--s-4) var(--s-2); text-decoration: none; color: inherit; transition: background-color 160ms ease; }
.reg a.row:hover { background: var(--surface); }
.reg .id { color: var(--sea); font-size: 16px; }
.reg .id b { display: block; font-weight: 700; unicode-bidi: isolate; }
.reg .id small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.reg .what { min-width: 0; }
.reg .what p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.8; }
.reg .what .prod { display: block; color: var(--ink); font-weight: 600; font-size: 15.5px; margin-bottom: 2px; }
.reg .what .prod small, .prod-line small { font-weight: 400; color: var(--muted); font-size: 14px; margin-inline-start: 6px; }
.prod-line { font-weight: 600; }
.reg .marks { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.more { display: flex; justify-content: center; padding: var(--s-5) 0; }

/* Two column sections on the home page */
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s-7); }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 0; } }
.side-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.side-list li { border-bottom: 1px solid var(--line-2); padding: var(--s-3) 0; }
.side-list a { text-decoration: none; font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.side-list p { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.side-list .meta { font-size: 13.5px; color: var(--muted); }
.bars { list-style: none; padding: 0; margin: 0; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s-3); padding: 7px 0; font-size: 15px; }
.bars li .bar { grid-column: 1 / -1; height: 5px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.bars li .bar i { display: block; height: 100%; background: var(--sea); border-radius: 3px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); margin-bottom: var(--s-2); }
.filters input[type='search'], .filters select { font: inherit; font-size: 15.5px; background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-2); padding: 8px 12px; min-width: 0; }
.filters input[type='search'] { flex: 1 1 260px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: inherit; font-size: 14.5px; background: var(--raised); color: var(--ink-2); border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px; cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.count-line { color: var(--muted); font-size: 14.5px; margin: var(--s-3) 0; }
.days-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: var(--s-2); scrollbar-width: thin; }
.days-strip button { font: inherit; font-size: 14px; flex: none; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-2); padding: 6px 12px; cursor: pointer; color: var(--ink-2); line-height: 1.5; text-align: center; }
.days-strip button b { display: block; font-size: 17px; color: var(--ink); }
.days-strip button[aria-pressed='true'] { border-color: var(--sea); box-shadow: inset 0 0 0 1px var(--sea); background: var(--sea-wash); }

/* Record page */
.rec-head { padding: var(--s-7) 0 var(--s-5); border-bottom: 1px solid var(--line); }
.rec-head .cve { font-size: clamp(30px, 4.6vw, 48px); font-weight: 700; direction: ltr; text-align: right; margin: 0; line-height: 1.2; letter-spacing: 0.5px; }
.rec-head .state { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-3); align-items: center; }
.rec-head .dates { color: var(--muted); font-size: 15px; margin-top: var(--s-3); }
.summary { font-size: 21px; line-height: 1.95; color: var(--ink); max-width: 64ch; margin: var(--s-5) 0 0; }
.rec-grid { display: grid; grid-template-columns: 1fr 340px; gap: var(--s-7); margin-top: var(--s-6); }
@media (max-width: 960px) { .rec-grid { grid-template-columns: 1fr; gap: var(--s-5); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-5); }
.panel + .panel { margin-top: var(--s-4); }
.panel h3 { margin-top: 0; font-size: 17px; }
.score { display: flex; align-items: baseline; gap: var(--s-3); }
.score b { font-size: 52px; line-height: 1; font-weight: 700; color: var(--c); direction: ltr; }
.score.crit { --c: var(--crit); } .score.high { --c: var(--high); } .score.med { --c: var(--med); } .score.low { --c: var(--low); } .score.na, .score.none { --c: var(--na); }
.meter { height: 8px; border-radius: 4px; background: var(--line-2); margin: var(--s-3) 0; overflow: hidden; direction: ltr; }
.meter i { display: block; height: 100%; background: var(--c, var(--sea)); }
dl.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s-4); font-size: 15px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; color: var(--ink); }
.original { background: var(--raised); border-inline-start: 3px solid var(--line); padding: var(--s-4) var(--s-5); direction: ltr; text-align: left; font-size: 15.5px; line-height: 1.75; color: var(--ink-2); border-radius: var(--r-1); font-family: 'IBM Plex Sans', var(--f-body); }
.label { font-size: 14px; color: var(--muted); margin: var(--s-5) 0 var(--s-2); }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th { text-align: start; font-weight: 600; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); padding: var(--s-2) var(--s-2); }
table.t td { border-bottom: 1px solid var(--line-2); padding: var(--s-2); vertical-align: top; }
.refs { list-style: none; padding: 0; margin: 0; }
.refs li { padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; overflow-wrap: anywhere; }
.refs li a { direction: ltr; unicode-bidi: isolate; }
.refs .tag { font-size: 12.5px; color: var(--muted); margin-inline-start: var(--s-2); }
.cwe-box p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.skeleton { color: var(--muted); padding: var(--s-7) 0; }
.notice { background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--sea); padding: var(--s-4) var(--s-5); border-radius: var(--r-2); color: var(--ink-2); }
.notice.warn { border-inline-start-color: var(--kev); }

/* Steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: var(--s-5) 0; counter-reset: s; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line-2); }
.steps > li::before { content: counter(s); font-family: var(--f-display); font-size: 30px; color: var(--sea); line-height: 1.2; text-align: center; }
.steps > li h3 { margin: 0 0 var(--s-1); }
.steps > li p { margin: 0; color: var(--ink-2); }

/* Glossary */
dl.gloss { margin: 0; max-width: 76ch; }
dl.gloss dt { font-weight: 700; font-size: 18px; margin-top: var(--s-5); }
dl.gloss dt span { font-weight: 400; color: var(--muted); font-size: 15px; margin-inline-start: var(--s-2); direction: ltr; unicode-bidi: isolate; }
dl.gloss dd { margin: var(--s-1) 0 0; color: var(--ink-2); }

details.faq { border-bottom: 1px solid var(--line-2); padding: var(--s-3) 0; max-width: 76ch; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; padding-inline-end: var(--s-5); position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; position: absolute; inset-inline-end: 0; top: 0; color: var(--sea); font-size: 22px; line-height: 1.4; transition: transform 200ms var(--ease-out); }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { color: var(--ink-2); margin: var(--s-2) 0 0; }

.figure { margin: var(--s-6) 0; }
.figure img { width: 100%; height: auto; display: block; border-radius: var(--r-3); border: 1px solid var(--line); }
.figure figcaption { font-size: 13.5px; color: var(--muted); margin-top: var(--s-2); }
.listen { display: flex; gap: var(--s-4); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-4) var(--s-5); margin: var(--s-5) 0; flex-wrap: wrap; }
.listen audio { flex: 1 1 280px; min-width: 0; }
.listen p { margin: 0; font-weight: 600; }
.listen small { display: block; font-weight: 400; color: var(--muted); }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-7); }
.stat-row { display: flex; gap: var(--s-6); flex-wrap: wrap; margin: var(--s-5) 0; }
.stat-row div b { display: block; font-size: 34px; font-weight: 700; line-height: 1.2; }
.stat-row div span { color: var(--muted); font-size: 14.5px; }

/* Footer */
.foot { margin-top: var(--s-9); border-top: 1px solid var(--line); background: var(--surface); padding: var(--s-7) 0 var(--s-6); font-size: 14.5px; color: var(--muted); }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-6); }
.foot h4 { color: var(--ink); font-size: 15px; margin: 0 0 var(--s-2); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 4px 0; }
.foot a { color: var(--ink-2); }
.foot p { margin: 0 0 var(--s-2); max-width: 60ch; }
.foot .fine { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line-2); font-size: 13px; }

@media print {
  .top, .foot, .filters, .find, .menu, .theme { display: none !important; }
  body { background: #fff; color: #000; }
}


/* Glossary: groups with an index column on desktop */
.gloss-layout { display: grid; grid-template-columns: 240px 1fr; gap: var(--s-7); align-items: start; }
.gloss-index { position: sticky; top: var(--s-5); }
.gloss-index ol { list-style: none; margin: var(--s-4) 0 0; padding: 0; border-inline-start: 2px solid var(--line); }
.gloss-index li a { display: block; padding: 6px var(--s-4); color: var(--ink-2); text-decoration: none; margin-inline-start: -2px; border-inline-start: 2px solid transparent; transition: color 160ms ease, border-color 160ms ease; }
.gloss-index li a:hover { color: var(--sea); border-inline-start-color: var(--sea); }
.gloss-find input { width: 100%; font: inherit; font-size: 15px; background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-2); padding: 9px 12px; }
.gloss-count { font-size: 13.5px; color: var(--muted); margin: var(--s-3) 0 0; }
.gloss-group { scroll-margin-top: var(--s-5); }
.gloss-group + .gloss-group { margin-top: var(--s-7); }
.gloss-group h2 { margin: 0 0 var(--s-4); padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); }
.terms { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.term { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-3); padding: var(--s-4) var(--s-5); scroll-margin-top: var(--s-5); }
.term dt { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-1) var(--s-3); margin-bottom: var(--s-2); }
.term .ar { font-weight: 700; font-size: 18px; color: var(--ink); }
.term .en { direction: ltr; unicode-bidi: isolate; font-family: 'IBM Plex Sans', var(--f-body); font-size: 13.5px; color: var(--sea); background: var(--sea-wash); padding: 1px 9px; border-radius: 99px; white-space: nowrap; }
.term dd { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.85; }
.term.flash { animation: flash 1600ms var(--ease-out) 1; }
@keyframes flash { 0%, 40% { border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-wash); } 100% { border-color: var(--line-2); box-shadow: none; } }
@media (max-width: 960px) { .gloss-layout { grid-template-columns: 1fr; gap: var(--s-5); } .gloss-index { position: static; } .terms { grid-template-columns: 1fr; } }

/* Field reference list on the data page */
dl.fields { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: var(--s-4) 0 0; border-top: 1px solid var(--line); }
dl.fields dt, dl.fields dd { margin: 0; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line-2); }
dl.fields dt { direction: ltr; text-align: left; font-family: 'IBM Plex Sans', var(--f-body); font-weight: 600; color: var(--sea); }
dl.fields dd { color: var(--ink-2); }

/* Report portal */
.report-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--s-7); align-items: start; }
.report-side { position: sticky; top: var(--s-5); }
.report fieldset { border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); padding: var(--s-4) var(--s-5) var(--s-5); margin: 0 0 var(--s-5); min-width: 0; }
.report legend { font-family: var(--f-display); font-size: 21px; padding: 0 var(--s-2); }
.field { margin-top: var(--s-4); min-width: 0; }
.field label, .label-like { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-2); padding: 10px 12px; }
.field textarea { resize: vertical; line-height: 1.8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-wash); }
.field [aria-invalid='true'] { border-color: var(--crit); }
.req { font-weight: 400; font-size: 12.5px; color: var(--crit); margin-inline-start: 6px; }
.help { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4); }
.choices { display: flex; gap: var(--s-2) var(--s-5); flex-wrap: wrap; }
.field .choices label { font-weight: 400; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; margin: 0; font-size: 15.5px; }
.consent { display: flex; gap: var(--s-3); align-items: flex-start; margin-top: var(--s-3); color: var(--ink-2); line-height: 1.8; }
.consent input { margin-top: 7px; width: 18px; height: 18px; flex: none; accent-color: var(--sea); }
.actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-4); }
.form-error { color: var(--crit); background: var(--crit-wash); padding: var(--s-3) var(--s-4); border-radius: var(--r-2); margin: 0 0 var(--s-3); }
ul.plain { margin: 0; padding-inline-start: 18px; color: var(--ink-2); font-size: 15px; }
ul.plain li { margin: 4px 0; }
.ready { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 2px solid var(--sea); scroll-margin-top: var(--s-5); }
.ready h2:focus { outline: none; }
.send-ways { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.way { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--s-5); }
.way h3 { margin-top: 0; }
.way p { color: var(--ink-2); margin: 0 0 var(--s-3); }
.plain-steps { margin: 0; padding-inline-start: 20px; color: var(--ink-2); }
.preview { margin-top: var(--s-5); }
.preview summary { cursor: pointer; color: var(--sea); font-weight: 600; }
.preview pre { white-space: pre-wrap; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--s-4); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; font-family: var(--f-body); }
@media (max-width: 960px) { .report-layout { grid-template-columns: 1fr; gap: 0; } .report-side { position: static; } .send-ways { grid-template-columns: 1fr; } }

/* Hall of fame */
.hall { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.hall li { display: grid; grid-template-columns: 1fr auto auto; gap: var(--s-4); align-items: baseline; padding: var(--s-4) 0; border-bottom: 1px solid var(--line-2); }
.hall li b { font-size: 18px; }
.hall li small { color: var(--muted); }
.hall li.empty { display: block; color: var(--muted); }
.hall li.empty p { margin: 0; }
