/* ─────────────────────────────────────────────────────────────────────────────
   Indofresh Handbooks

   A reading surface, not an application. The layout is the documentation
   convention — navigation left, prose centred, contents right — because people
   arriving here are looking something up under time pressure and a familiar
   shape costs them nothing to learn.

   Colour comes from the Indofresh mark: its green as the accent, its red kept
   for the logo and for genuinely destructive warnings. The wordmark is a colour
   artwork on transparency drawn for a light ground, which is why the shell is
   light-first rather than echoing the app's dark sidebar.

   Tokens are declared in full on bare :root, then redefined — tokens only — for
   the two dark states: the unstamped document under prefers-color-scheme, and
   the explicit [data-theme] stamp.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
  --paper: #fbfcfb;
  --card: #ffffff;
  --sunk: #f1f5f3;
  --raised: #ffffff;
  --ink: #12211c;
  --ink-2: #46574f;
  --ink-3: #6e7f77;
  --rule: #e1e8e4;
  --rule-strong: #c8d4ce;

  --brand: #047857;
  --brand-ink: #04624a;
  --brand-wash: #e4f1eb;
  --amber: #b45309;
  --amber-wash: #fdf3e7;
  --danger: #c0221f;
  --danger-wash: #fcecea;

  --shadow-sm: 0 1px 2px rgba(18, 33, 28, 0.05);
  --shadow: 0 1px 2px rgba(18, 33, 28, 0.05), 0 10px 28px -14px rgba(18, 33, 28, 0.22);
  --shadow-lg: 0 24px 60px -20px rgba(18, 33, 28, 0.32);
  --overlay: rgba(10, 19, 16, 0.82);

  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-data: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --nav-w: 262px;
  --toc-w: 228px;
  --bar-h: 61px;

  --ease: cubic-bezier(0.2, 0, 0.13, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a1310;
    --card: #0e1a16;
    --sunk: #12201b;
    --raised: #14231e;
    --ink: #e8f0ec;
    --ink-2: #abbdb5;
    --ink-3: #7e9189;
    --rule: #21302a;
    --rule-strong: #32453d;
    --brand: #34d399;
    --brand-ink: #6ee7b7;
    --brand-wash: #0f2a20;
    --amber: #fbbf24;
    --amber-wash: #2a1f0c;
    --danger: #fca5a5;
    --danger-wash: #2a1412;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -14px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
    --overlay: rgba(4, 9, 7, 0.88);
  }
}

:root[data-theme="dark"] {
  --paper: #0a1310;
  --card: #0e1a16;
  --sunk: #12201b;
  --raised: #14231e;
  --ink: #e8f0ec;
  --ink-2: #abbdb5;
  --ink-3: #7e9189;
  --rule: #21302a;
  --rule-strong: #32453d;
  --brand: #34d399;
  --brand-ink: #6ee7b7;
  --brand-wash: #0f2a20;
  --amber: #fbbf24;
  --amber-wash: #2a1f0c;
  --danger: #fca5a5;
  --danger-wash: #2a1412;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -14px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  --overlay: rgba(4, 9, 7, 0.88);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

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

/* ── Top bar ───────────────────────────────────────────────────────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--rule);
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.logo img {
  display: block;
  height: 30px;
  width: auto;
}
.logo .word {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--rule-strong);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  white-space: nowrap;
}
@media (max-width: 620px) {
  .logo .word {
    display: none;
  }
}

.bar .spacer {
  flex: 1 1 auto;
}

.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}
.iconbtn:hover {
  background: var(--sunk);
  color: var(--ink);
}
.iconbtn svg {
  width: 18px;
  height: 18px;
}

.signout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink-2);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.signout:hover {
  color: var(--ink);
  border-color: var(--rule-strong);
  background: var(--sunk);
}
.signout svg {
  width: 15px;
  height: 15px;
}
@media (max-width: 760px) {
  .signout span {
    display: none;
  }
  .signout {
    padding: 0;
    width: 40px;
    justify-content: center;
  }
}

/* ── Search ────────────────────────────────────────────────────────────────── */

.search {
  position: relative;
  flex: 0 1 420px;
  min-width: 0;
}
.search input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 38px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.search input::placeholder {
  color: var(--ink-3);
}
.search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-wash);
}
.search .glass {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-3);
  pointer-events: none;
}
.search kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 5px;
  background: var(--sunk);
  pointer-events: none;
}
.search input:not(:placeholder-shown) + .glass + kbd,
.search input:focus + .glass + kbd {
  display: none;
}

.results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(60vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--raised);
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
}
.results.open {
  display: block;
}
.results a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
}
.results a:hover,
.results a.active {
  background: var(--brand-wash);
}
.results .where {
  display: block;
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 2px;
}
.results .what {
  font-size: 14.5px;
  font-weight: 550;
  line-height: 1.4;
}
.results .snip {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-top: 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.results mark {
  background: color-mix(in srgb, var(--brand) 24%, transparent);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}
.results .empty {
  padding: 18px 14px;
  color: var(--ink-3);
  font-size: 14px;
}

@media (max-width: 620px) {
  .search {
    flex: 1 1 auto;
  }
}

/* ── Frame ─────────────────────────────────────────────────────────────────── */

.frame {
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr) var(--toc-w);
  gap: 0;
  max-width: 1520px;
  margin: 0 auto;
  align-items: start;
}
@media (max-width: 1240px) {
  .frame {
    grid-template-columns: var(--nav-w) minmax(0, 1fr);
  }
}
@media (max-width: 940px) {
  .frame {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── Navigation ────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: var(--bar-h);
  max-height: calc(100vh - var(--bar-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px 18px 60px 22px;
  border-right: 1px solid var(--rule);
}

.nav .group + .group {
  margin-top: 24px;
}
.nav .label {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 10px 8px;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  padding: 7px 10px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.45;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.nav a:hover {
  background: var(--sunk);
  color: var(--ink);
}
.nav a.current {
  background: var(--brand-wash);
  color: var(--brand-ink);
  font-weight: 560;
}
.nav .pending {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 7px 10px;
  font-size: 14.5px;
  color: var(--ink-3);
  cursor: default;
}
.nav .pending b {
  font-family: var(--font-data);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.8;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 5px;
}

/* Mobile: the rail becomes a sheet. */
.navtoggle {
  display: none;
}
@media (max-width: 940px) {
  .navtoggle {
    display: inline-grid;
  }
  .nav {
    position: fixed;
    inset: var(--bar-h) auto 0 0;
    width: min(320px, 84vw);
    background: var(--card);
    border-right: 1px solid var(--rule-strong);
    box-shadow: var(--shadow-lg);
    z-index: 45;
    transform: translateX(-102%);
    transition: transform 240ms var(--ease);
    max-height: none;
  }
  .nav.open {
    transform: none;
  }
  .scrim {
    position: fixed;
    inset: var(--bar-h) 0 0 0;
    background: var(--overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms var(--ease);
    z-index: 44;
  }
  .scrim.open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ── Contents rail ─────────────────────────────────────────────────────────── */

.toc {
  position: sticky;
  top: var(--bar-h);
  max-height: calc(100vh - var(--bar-h));
  overflow-y: auto;
  padding: 34px 24px 60px 12px;
}
@media (max-width: 1240px) {
  .toc {
    display: none;
  }
}
.toc .label {
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--rule);
}
.toc a {
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  text-decoration: none;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.45;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}
.toc a:hover {
  color: var(--ink);
}
.toc a.active {
  color: var(--brand-ink);
  border-left-color: var(--brand);
  font-weight: 550;
}

/* ── Article ───────────────────────────────────────────────────────────────── */

.page {
  min-width: 0;
  padding: 0 44px 128px;
}
@media (max-width: 1024px) {
  .page {
    padding: 0 28px 96px;
  }
}
@media (max-width: 620px) {
  .page {
    padding: 0 20px 80px;
  }
}

.masthead {
  padding: 56px 0 26px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--rule-strong);
}
.masthead .eyebrow {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}
.masthead h1 {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: clamp(2.15rem, 4.6vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
.masthead .standfirst {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 1.12rem;
  line-height: 1.62;
  color: var(--ink-2);
}
.colophon {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}
.colophon b {
  color: var(--ink-2);
  font-weight: 500;
}

section {
  margin-bottom: 76px;
  scroll-margin-top: calc(var(--bar-h) + 20px);
}
section > h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.92rem);
  font-weight: 620;
  letter-spacing: -0.022em;
  line-height: 1.18;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  text-wrap: balance;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
section > h2 .sec {
  font-family: var(--font-data);
  font-size: 0.52em;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--brand);
  flex: 0 0 auto;
}
h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.014em;
  margin: 44px 0 12px;
}
h4 {
  font-family: var(--font-data);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin: 32px 0 10px;
}
p {
  margin: 0 0 18px;
  max-width: 70ch;
}
a {
  color: var(--brand-ink);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

code {
  font-family: var(--font-data);
  font-size: 0.85em;
  background: var(--sunk);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.5px 5px;
  color: var(--ink);
  white-space: nowrap;
}

/* Numbered because these genuinely are a sequence — the order is the rule. */
.steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  counter-reset: step;
  max-width: 74ch;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 20px 0 20px 56px;
  border-top: 1px solid var(--rule);
}
.steps > li:last-child {
  border-bottom: 1px solid var(--rule);
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 19px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-family: var(--font-data);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--brand-ink);
  background: var(--brand-wash);
  border-radius: 8px;
}
.steps > li > p:last-child {
  margin-bottom: 0;
}
.steps .lead {
  font-weight: 580;
  color: var(--ink);
}

.note {
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  border-left-width: 3px;
  border-left-color: var(--brand);
  background: var(--brand-wash);
  padding: 16px 20px;
  margin: 0 0 22px;
  border-radius: 4px 8px 8px 4px;
  max-width: 70ch;
}
.note.warn {
  border-color: color-mix(in srgb, var(--amber) 28%, transparent);
  border-left-color: var(--amber);
  background: var(--amber-wash);
}
.note.stop {
  border-color: color-mix(in srgb, var(--danger) 28%, transparent);
  border-left-color: var(--danger);
  background: var(--danger-wash);
}
.note p {
  margin: 0;
  font-size: 0.97rem;
}
.note p + p {
  margin-top: 12px;
}
.note .tag {
  display: block;
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 7px;
  color: var(--brand-ink);
}
.note.warn .tag {
  color: var(--amber);
}
.note.stop .tag {
  color: var(--danger);
}

.tablewrap {
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.94rem;
}
th,
td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.55;
}
th {
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  background: var(--sunk);
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}

/* ── Figures ───────────────────────────────────────────────────────────────── */

figure {
  margin: 30px 0 34px;
}
.screen {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.screen svg,
.screen img.shot {
  display: block;
  width: 100%;
  height: auto;
}
.screen img.shot {
  cursor: zoom-in;
  transition: opacity 180ms var(--ease);
}
.screen img.shot:hover {
  opacity: 0.94;
}
figcaption {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 70ch;
}
figcaption b {
  color: var(--ink-2);
  font-weight: 570;
}

/* Full-size view. One overlay, reused for every screenshot on the page. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--overlay);
  display: grid;
  place-items: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease);
  cursor: zoom-out;
  border: 0;
  width: 100%;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.key {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  max-width: 70ch;
}
.key li {
  display: flex;
  gap: 12px;
  font-size: 0.93rem;
  color: var(--ink-2);
}
.key .pin {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-data);
  font-size: 11px;
  margin-top: 3px;
}

.pill {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid var(--rule-strong);
  color: var(--ink-2);
  background: var(--sunk);
  white-space: nowrap;
  vertical-align: 3px;
}
.pill.admin {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  color: var(--brand-ink);
  background: var(--brand-wash);
}

ul.plain {
  margin: 0 0 20px;
  padding-left: 22px;
  max-width: 70ch;
}
ul.plain li {
  margin-bottom: 9px;
}

footer {
  border-top: 1px solid var(--rule-strong);
  padding-top: 22px;
  font-size: 0.9rem;
  color: var(--ink-3);
  max-width: 70ch;
}

/* ── Login ─────────────────────────────────────────────────────────────────── */

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}
.authcard {
  width: 100%;
  max-width: 400px;
}
.authcard .logo {
  justify-content: flex-start;
  margin-bottom: 34px;
}
.authcard .logo img {
  height: 38px;
}
.authcard h1 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 620;
  letter-spacing: -0.022em;
  margin: 0 0 8px;
}
.authcard .sub {
  color: var(--ink-2);
  font-size: 0.97rem;
  margin: 0 0 28px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 550;
  margin-bottom: 6px;
  color: var(--ink-2);
}
.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--rule-strong);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 15.5px;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-wash);
}
.submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 570;
  cursor: pointer;
  margin-top: 8px;
  transition: filter 180ms var(--ease);
}
.submit:hover:not(:disabled) {
  filter: brightness(1.08);
}
.submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.authnote {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.6;
}
.autherr {
  margin: 0 0 18px;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--danger) 32%, transparent);
  border-left: 3px solid var(--danger);
  background: var(--danger-wash);
  color: var(--danger);
  font-size: 14px;
  display: none;
}
.autherr.show {
  display: block;
}

/* ── Motion ────────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ── Print ─────────────────────────────────────────────────────────────────── */

@media print {
  .bar,
  .nav,
  .toc,
  .scrim,
  .lightbox {
    display: none !important;
  }
  .frame {
    display: block;
    max-width: none;
  }
  .page {
    padding: 0;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  section {
    break-inside: avoid-page;
  }
  figure,
  .steps > li {
    break-inside: avoid;
  }
}
