/* ============================================================
   fixfirst — workshop / blueprint.
   Manila kraft paper + steel blue + safety orange.
   Light is the primary identity; dark is a proper blueprint.
   ============================================================ */

:root {
  color-scheme: light dark;

  /* --- LIGHT: kraft workshop paper --- */
  --paper:   #F3ECDD;   /* warm manila */
  --paper2:  #EBE1CC;   /* card / recessed */
  --card:    #FBF6EA;   /* raised card face */
  --ink:     #22303A;   /* near-black steel text */
  --ink-soft:#4E5C66;   /* muted body */
  --line:    #C9BFA6;   /* pencil rule on paper */
  --line-2:  #D8CFB8;
  --steel:   #2C4A63;   /* steel blue */
  --steel-ink:#20384C;
  --orange:  #C24A00;   /* safety orange, AA-darkened for text on paper */
  --orange-fill: #E8620C; /* full safety orange for fills/marks */
  --grid:    rgba(44, 74, 99, 0.07);   /* blueprint grid on paper */

  --ok:      #2F7D4F;   /* "easy" / done green */
  --warn:    #B26A00;   /* "moderate" amber */
  --hard:    #B23A2E;   /* "involved" rust */

  --chip:      rgba(44, 74, 99, 0.08);
  --chip-line: rgba(44, 74, 99, 0.22);
  --orange-dim: rgba(232, 98, 12, 0.12);
  --steel-dim:  rgba(44, 74, 99, 0.10);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cond: "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 14px 34px -22px rgba(34, 48, 58, 0.5);
  --wrap: 1120px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* --- DARK: blueprint --- */
    --paper:   #16232E;
    --paper2:  #1B2A36;
    --card:    #1E303D;
    --ink:     #EAF1F6;
    --ink-soft:#A9BECD;
    --line:    #2E4657;
    --line-2:  #294050;
    --steel:   #7FB0D6;
    --steel-ink:#9CC4E4;
    --orange:  #FF8A3D;   /* brighter on dark for AA */
    --orange-fill: #FF7A22;
    --grid:    rgba(127, 176, 214, 0.10);

    --ok:      #59C185;
    --warn:    #E6A94b;
    --hard:    #F0806f;

    --chip:      rgba(127, 176, 214, 0.10);
    --chip-line: rgba(127, 176, 214, 0.28);
    --orange-dim: rgba(255, 122, 34, 0.16);
    --steel-dim:  rgba(127, 176, 214, 0.12);

    --shadow: 0 18px 42px -24px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

/* faint blueprint grid over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

h1, h2, h3 { margin: 0; line-height: 1.08; }
p { margin: 0; }
em { font-style: normal; }
ul, ol { margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--orange-fill); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-weight: 700;
  z-index: 60; transition: top 0.18s var(--ease); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* shared focus ring */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--orange-fill);
  outline-offset: 2px;
  border-radius: 6px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel);
  font-weight: 600;
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.mast {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--line);
  background:
    linear-gradient(180deg, rgba(44,74,99,0.05), transparent 40%);
}
/* darker blueprint grid concentrated in the header */
.mast__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 100% at 85% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 100% at 85% 0%, #000 30%, transparent 78%);
  opacity: 0.9;
  pointer-events: none;
}
.mast__inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 46px) clamp(20px, 5vw, 44px) clamp(26px, 3.4vw, 40px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.brand__mark {
  width: 42px; height: 42px;
  background: var(--steel);
  border-radius: 11px;
  padding: 6px;
  box-shadow: var(--shadow);
}
.brand__mark .wrench { fill: var(--paper); }
.brand__mark .stitch { stroke: var(--orange-fill); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.brand__word {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  text-transform: lowercase;
}

.mast__title {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2.3rem, 6.6vw, 4.2rem);
  letter-spacing: -0.005em;
  margin: 10px 0 0;
  max-width: 16ch;
  text-transform: uppercase;
}
.mast__accent {
  color: var(--orange);
  position: relative;
}
.mast__accent::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -0.08em;
  height: 3px;
  background:
    repeating-linear-gradient(90deg, var(--orange-fill) 0 10px, transparent 10px 17px);
  opacity: 0.85;
}

.mast__lede {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
}

.tally {
  margin-top: 24px;
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  padding: 12px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange-fill);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.tally__num {
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.tally__label { font-size: 0.86rem; color: var(--ink-soft); }

/* ============================================================
   SEARCH + FILTER BAR (sticky)
   ============================================================ */
.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}
.bar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px clamp(20px, 5vw, 44px);
  display: flex;
  align-items: center;
  gap: 14px 18px;
  flex-wrap: wrap;
}

.search {
  position: relative;
  flex: 1 1 300px;
  min-width: 220px;
  display: flex;
  align-items: center;
}
.search__icon {
  position: absolute; left: 13px;
  width: 18px; height: 18px;
  fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round;
  pointer-events: none;
}
.search input {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 40px 11px 40px;
}
.search input::placeholder { color: var(--ink-soft); opacity: 0.85; }
.search input:hover { border-color: var(--steel); }
.search__clear {
  position: absolute; right: 8px;
  width: 26px; height: 26px;
  border: none; background: var(--chip);
  color: var(--ink); border-radius: 50%;
  font-size: 1.2rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.search__clear:hover { background: var(--chip-line); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel-ink);
  background: var(--chip);
  border: 1px solid var(--chip-line);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.14s var(--ease), color 0.14s var(--ease), border-color 0.14s var(--ease);
  white-space: nowrap;
}
.filter:hover { border-color: var(--steel); }
.filter.is-active {
  background: var(--steel);
  color: #fff;
  border-color: var(--steel);
}
@media (prefers-color-scheme: dark) {
  .filter.is-active { color: var(--paper); }
}

/* ============================================================
   BOARD (browse grid)
   ============================================================ */
.board {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 5vw, 44px) clamp(48px, 7vw, 80px);
}

.section {
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1.5px solid var(--line);
}
.section__glyph {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--steel-dim);
  border: 1px solid var(--chip-line);
  border-radius: 9px;
}
.section__glyph svg { width: 19px; height: 19px; stroke: var(--steel); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.section__title {
  font-family: var(--cond);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.section__count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
  background: var(--chip);
  border: 1px solid var(--chip-line);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.rcard {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 17px 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--sans);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.14s var(--ease), border-color 0.14s var(--ease), box-shadow 0.14s var(--ease);
  position: relative;
}
.rcard:hover { transform: translateY(-2px); border-color: var(--steel); }
.rcard__item {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  font-weight: 600;
}
.rcard__title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  padding-right: 34px; /* clear the favourite star */
}
.rcard__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}

/* difficulty pills */
.diff {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.diff--easy     { color: var(--ok);   background: color-mix(in srgb, var(--ok) 14%, transparent);   border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.diff--moderate { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 42%, transparent); }
.diff--involved { color: var(--hard); background: color-mix(in srgb, var(--hard) 14%, transparent); border: 1px solid color-mix(in srgb, var(--hard) 42%, transparent); }

.rcard__time {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
}

/* favourite star on card */
.rcard__fav {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--ink-soft);
}
.rcard__fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rcard__fav:hover { background: var(--chip); color: var(--orange); }
.rcard__fav.is-fav { color: var(--orange); }
.rcard__fav.is-fav svg { fill: var(--orange-fill); stroke: var(--orange-fill); }

/* fixed check badge */
.rcard.is-fixed { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); }
.rcard__fixed {
  display: none;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ok);
}
.rcard.is-fixed .rcard__fixed { display: inline-flex; }
.rcard__fixed svg { width: 13px; height: 13px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* empty state */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}
.empty strong { color: var(--ink); display: block; font-size: 1.1rem; margin-bottom: 6px; font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.02em; }

/* ============================================================
   DETAIL — the repair card
   ============================================================ */
.detail {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 5vw, 44px) clamp(48px, 7vw, 80px);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--steel);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 8px;
}
.back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back:hover { color: var(--orange); }

.sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sheet__head {
  padding: 22px clamp(18px, 4vw, 30px) 20px;
  border-bottom: 1.5px solid var(--line);
  background: linear-gradient(180deg, var(--steel-dim), transparent);
  position: relative;
}
.sheet__crumb {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel);
  font-weight: 600;
}
.sheet__title {
  font-family: var(--cond);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
  margin: 6px 0 0;
  letter-spacing: -0.005em;
  max-width: 24ch;
}
.sheet__badges {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px 10px;
  flex-wrap: wrap;
}
.sheet__badges .rcard__time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sheet__clock {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.sheet__actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.12s var(--ease), background 0.14s var(--ease), border-color 0.14s var(--ease), color 0.14s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--fix {
  background: var(--orange-fill);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(232,98,12,0.7);
}
.btn--fix:hover { background: var(--orange); }
.btn--fix.is-on {
  background: var(--ok);
  box-shadow: none;
}
.btn--fix.is-on svg { stroke: #fff; }
.btn--ghost {
  background: var(--chip);
  color: var(--ink);
  border-color: var(--chip-line);
}
.btn--ghost:hover { border-color: var(--steel); }
.btn--ghost.is-fav { color: var(--orange); border-color: var(--orange); }
.btn--ghost.is-fav svg { fill: var(--orange-fill); stroke: var(--orange-fill); }

.sheet__body {
  padding: clamp(18px, 4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* tools & materials — monospace spec block */
.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.spec__group {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper2);
  padding: 14px 16px;
}
.spec__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
  font-weight: 700;
  margin-bottom: 9px;
}
.spec__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.spec__list li {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--ink);
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}
.spec__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 7px; height: 7px;
  border: 1.5px solid var(--steel);
  border-radius: 2px;
}
.spec__list li.none {
  color: var(--ink-soft);
  font-style: italic;
}
.spec__list li.none::before { display: none; }

/* steps */
.block__title {
  font-family: var(--cond);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.block__title svg { width: 18px; height: 18px; fill: none; stroke: var(--orange-fill); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  min-height: 30px;
  padding-top: 3px;
  color: var(--ink);
  line-height: 1.5;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--steel);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.86rem;
  border-radius: 8px;
}
@media (prefers-color-scheme: dark) {
  .steps li::before { color: var(--paper); }
}

/* safety note */
.safety {
  border: 1px solid color-mix(in srgb, var(--hard) 45%, var(--line));
  background: color-mix(in srgb, var(--hard) 9%, var(--paper2));
  border-left: 4px solid var(--hard);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
}
.safety__icon {
  flex: none;
  width: 22px; height: 22px;
  fill: none; stroke: var(--hard); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  margin-top: 1px;
}
.safety__text { font-size: 0.92rem; line-height: 1.5; }
.safety__text strong { color: var(--hard); font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.86rem; display: block; margin-bottom: 3px; }

/* replace / recycle honesty block */
.honest {
  border: 1px dashed var(--chip-line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: var(--paper2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.honest__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}
.honest__key {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  align-self: start;
  margin-top: 2px;
}
.honest__key--replace { color: var(--hard); background: color-mix(in srgb, var(--hard) 12%, transparent); }
.honest__key--recycle { color: var(--ok);   background: color-mix(in srgb, var(--ok) 12%, transparent); }
.honest__val { font-size: 0.92rem; color: var(--ink); line-height: 1.5; }

/* related within same item */
.related {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.related__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.related__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel-ink);
  background: var(--chip);
  border: 1px solid var(--chip-line);
  border-radius: 8px;
  padding: 8px 13px;
  cursor: pointer;
  font-family: var(--sans);
}
.related__link:hover { border-color: var(--steel); color: var(--orange); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  border-top: 2px solid var(--line);
  background: var(--paper2);
}
.foot__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px clamp(20px, 5vw, 44px) 38px;
}
.foot__disclaimer {
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 84ch;
  line-height: 1.55;
}
.foot__disclaimer strong { color: var(--ink); }
.foot__meta {
  margin-top: 16px;
  display: flex; flex-wrap: wrap; gap: 8px 10px;
  font-family: var(--mono);
  font-size: 0.76rem; color: var(--ink-soft);
}
.foot__dot { color: var(--line); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 560px) {
  .sheet__actions { width: 100%; }
  .sheet__actions .btn { flex: 1; justify-content: center; }
  .bar__inner { gap: 10px; }
  .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   PRINT — clean one-repair sheet
   ============================================================ */
@media print {
  body { background: #fff; color: #000; }
  body::before, .mast, .bar, .board, .foot__meta, .skip-link,
  .back, .sheet__actions, .rcard__fav, .related { display: none !important; }
  .detail { padding: 0; max-width: none; }
  .sheet { border: 1px solid #000; box-shadow: none; }
  .sheet__head { background: #fff; border-bottom: 2px solid #000; }
  .sheet__title, .sheet__crumb, .block__title { color: #000; }
  .spec__group, .honest { background: #fff; border: 1px solid #000; }
  .spec__list li, .spec__label, .steps li, .honest__val { color: #000; }
  .spec__list li::before { border-color: #000; }
  .steps li::before { background: #000; color: #fff; }
  .safety { background: #fff; border: 1.5px solid #000; }
  .safety__text, .safety__text strong, .safety__icon { color: #000; stroke: #000; }
  .diff { border: 1px solid #000 !important; color: #000 !important; background: #fff !important; }
  .honest__key { color: #000 !important; background: #fff !important; border: 1px solid #000; }
  @page { margin: 15mm; }
}
