/* ==========================================================================
   SeenLabs Guides — light design system
   resources.seenlabs.com/guides/

   Token names and class names are kept byte-identical to the original dark
   display-setup page, so that page adopts this theme by swapping its <style>
   block for a link to this file — no markup rewrite.

   NOTE ON --accent-light: on a dark ground it meant "lighter than accent".
   Here it means the same thing it did functionally: the text-safe accent.
   On paper that is DARKER than --accent. Every place the old page used it
   (link text, .step-no, .legend b, .callout .tag, .path, .tree .dir) stays
   legible because of this inversion. Do not make it a pale blue.
   ========================================================================== */

:root {
  /* --- surfaces ------------------------------------------------------- */
  --bg:        #f6f4f0;   /* warm paper — the page */
  --bg-card:   #fcfcfd;   /* cooler white — a sheet laid on the page */
  --bg-inset:  #eceff3;   /* cool slate — machine text only (paths, trees) */
  --bg-hover:  #f1efea;   /* card hover on the hub */

  /* --- ink ------------------------------------------------------------ */
  --text:       #14181d;  /* 16.2:1 on --bg */
  --text-muted: #5a6472;  /*  5.5:1 on --bg, 6.0:1 on --bg-card */

  /* --- accent: anchored on SeenLabs brand blue ------------------------ */
  --accent:       #0f4c81; /*  8.1:1 on --bg — safe as link + button fill */
  --accent-light: #0a3a63; /* 10.6:1 — the text-safe accent (see note) */
  --accent-wash:  #e8eef5; /* tinted fill for pills, active nav, cta */
  --accent-glow:  rgba(15, 76, 129, 0.16);

  --success: #0b6b53;      /* 5.9:1 on --bg */
  --success-wash: #e3f0ea;
  --warn:    #9a5200;      /* 5.3:1 on --bg */
  --warn-wash: #f7ecdd;

  --border:      rgba(20, 24, 29, 0.13);
  --border-firm: rgba(20, 24, 29, 0.22);

  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --nav-h: 58px;
  --measure: 760px;   /* reading column */
  --wide: 1160px;     /* hub / card grid */
}

/* ==========================================================================
   Base
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.68;
  min-height: 100vh;
  overflow-x: hidden;             /* the page never scrolls sideways */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv05' 1, 'ss03' 1; /* Inter: open l, rounded quotes */
}

img, svg, video, iframe { max-width: 100%; }

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

::selection { background: var(--accent-wash); color: var(--accent-light); }

a { color: var(--accent-light); }

/* ==========================================================================
   Navigation — sticky, identical on every guide page
   Left cluster is fixed; the link strip scrolls horizontally inside itself
   so the bar can never widen the viewport.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page navigation — the page's own sections as chips.
   Deliberately NOT a cross-site menu: a reader inside a manual wants to jump
   between steps of THIS manual, not to browse the rest of the site.
   -------------------------------------------------------------------------- */

nav.pagenav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 20px;
  background: rgba(246, 244, 240, 0.88);
  border-bottom: 1px solid var(--border);
}

@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
  nav.pagenav {
    background: rgba(246, 244, 240, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
  }
}

/* back to the guides index — small, quiet, always first */
.nav-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px 5px 6px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}

.nav-home::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15 19l-7-7 7-7" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15 19l-7-7 7-7" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
}

.nav-home:hover { color: var(--accent); background: var(--accent-wash); }

.nav-sep {
  flex-shrink: 0;
  width: 1px;
  height: 20px;
  background: var(--border-firm);
}

/* the chip strip scrolls inside itself; the page never scrolls sideways */
.nav-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 22px), transparent 100%);
}

.nav-scroll::-webkit-scrollbar { display: none; }

.nav-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  margin: 0;
  list-style: none;
  width: max-content;
}

.nav-chips a {
  display: block;
  white-space: nowrap;
  scroll-snap-align: start;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 20px;
  transition: color .15s, background .15s, border-color .15s;
}

.nav-chips a:hover {
  color: var(--text);
  background: var(--bg-card);
  border-color: var(--border);
}

/* current section — set by the scroll spy, colour is never the only signal */
.nav-chips a[aria-current="true"] {
  color: var(--accent-light);
  background: var(--accent-wash);
  border-color: rgba(15, 76, 129, 0.22);
  font-weight: 700;
}

@media (max-width: 640px) {
  nav.pagenav { gap: 8px; padding: 0 12px; min-height: 48px; }
  .nav-home { font-size: 0; gap: 0; padding: 6px; }   /* icon only on small screens */
  .nav-home::before { width: 16px; height: 16px; }
  .nav-chips a { font-size: 0.8rem; padding: 7px 11px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 56px 24px 8px;
}

.hero .eyebrow,
.eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.024em;
  margin-bottom: 16px;
  text-wrap: balance;
}

/* the dark page gradient-filled this span; on paper a flat brand blue is
   both sharper and safer to print */
.hero h1 span {
  color: var(--accent);
  -webkit-text-fill-color: currentColor;
  background: none;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.06rem;
  max-width: 62ch;
}

.container { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   Table of contents
   ========================================================================== */

.toc {
  max-width: var(--measure);
  margin: 28px auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toc a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.toc a:hover {
  color: var(--accent-light);
  border-color: var(--accent);
  background: var(--accent-wash);
}

/* ==========================================================================
   Chooser / segmented control
   ========================================================================== */

.chooser {
  max-width: var(--measure);
  margin: 34px auto 0;
  padding: 0 24px;
}

.chooser .label,
.label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.seg { display: flex; gap: 8px; flex-wrap: wrap; }

.seg button {
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-firm);
  border-radius: 10px;
  padding: 11px 20px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.seg button:hover { border-color: var(--accent); color: var(--text); }
.seg button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* mode filtering — set by the page's own script */
body[data-mode="app"] [data-m="usb"],
body[data-mode="usb"] [data-m="app"] { display: none; }

/* ==========================================================================
   Reading column and headings
   ========================================================================== */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 24px 24px 60px;
}

section { margin-top: 56px; }

h2 {
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.018em;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

/* SIGNATURE — the step number as a stamped part-number chip.
   These pages are read in sequence with hardware in hand; the chip is the
   thing the eye returns to after looking away at the screen. */
h2 .step-no {
  flex-shrink: 0;
  align-self: center;
  color: var(--accent-light);
  background: var(--bg-card);
  border: 1px solid var(--border-firm);
  border-radius: 5px;
  box-shadow: inset 0 -2px 0 var(--accent-wash);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  line-height: 1.2;
}

h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; margin: 26px 0 8px; }

.lede { color: var(--text-muted); margin-bottom: 18px; }

p + p { margin-top: 12px; }

main a { color: var(--accent-light); text-decoration-thickness: 1px; text-underline-offset: 2px; }
main a:hover { color: var(--accent); }

strong, b { font-weight: 700; }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ==========================================================================
   Figures and media
   ========================================================================== */

figure {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 20px 0;
}

figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

figure.shot img { max-width: 560px; width: 100%; }

figcaption {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: center;
  margin-top: 12px;
}

/* 16:9 responsive video frame ------------------------------------------ */
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #14181d;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 20px 0;
}
.video iframe,
.video video,
.video object,
.video embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .video { height: 0; padding-bottom: 56.25%; }
}
figure.video-figure { padding: 0; border: 0; background: none; }
figure.video-figure .video { margin: 0; }
figure.video-figure figcaption { margin-top: 10px; }

/* ==========================================================================
   Lists and steps
   ========================================================================== */

ol.steps {
  list-style: none;
  counter-reset: step;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

ol.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
}

ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 27px;
  height: 27px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  font-weight: 700;
  font-size: 0.84rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

ul.plain {
  margin: 12px 0 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

main ul:not(.plain):not(.nav-links),
main ol:not(.steps) { margin: 12px 0 12px 22px; }
main li + li { margin-top: 6px; }

/* ==========================================================================
   Legend — for callouts keyed to a diagram
   ========================================================================== */

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 8px 28px;
  margin: 16px 0;
}
.legend div { display: flex; gap: 10px; font-size: 0.92rem; }
.legend b {
  color: var(--accent-light);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  width: 18px;
}

/* ==========================================================================
   Callouts
   ========================================================================== */

.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.95rem;
}
.callout.warn { border-left-color: var(--warn); background: var(--warn-wash); }
.callout.good { border-left-color: var(--success); background: var(--success-wash); }

.callout b.tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  margin-bottom: 6px;
}
.callout .tag { color: var(--accent-light); }
.callout.warn .tag { color: var(--warn); }
.callout.good .tag { color: var(--success); }

/* ==========================================================================
   .path — an on-screen menu name. Cool inset = "machine text", so the
   reader can scan for the next thing to tap without reading prose.
   ========================================================================== */

.path {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 0.87em;
  font-family: var(--mono);
  color: var(--accent-light);
  white-space: nowrap;
}

code, kbd, samp {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
}

pre {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 16px 0;
  overflow-x: auto;            /* wide code scrolls inside itself */
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.7;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

/* ==========================================================================
   Method blocks
   ========================================================================== */

.method {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 22px 0;
}

.method-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.method-head h3 { margin: 0; font-size: 1.15rem; }

.pill {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 4px 11px;
  border-radius: 20px;
  white-space: nowrap;
}
.pill.rec { background: var(--success-wash); color: var(--success); border: 1px solid rgba(11,107,83,0.22); }
.pill.alt { background: var(--accent-wash); color: var(--accent-light); border: 1px solid rgba(15,76,129,0.20); }

.method .sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; }

.method.cta {
  border-color: var(--accent);
  background: var(--accent-wash);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.method.cta .btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 10px;
  transition: background-color .2s ease;
  margin-top: 4px;
}
.method.cta .btn:hover { background: var(--accent-light); }

/* ==========================================================================
   File tree
   ========================================================================== */

.tree {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.9;
  overflow-x: auto;            /* wide trees scroll inside themselves */
  margin: 16px 0;
}
.tree .dir  { color: var(--accent-light); font-weight: 600; }
.tree .file { color: var(--text); }
.tree .note { color: var(--text-muted); }

/* ==========================================================================
   Tables — always wrapped in .tablewrap
   ========================================================================== */

.tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin: 18px 0;
}
.tablewrap table { margin: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.92rem;
}

th {
  text-align: left;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 14px;
  background: var(--bg-inset);
  border-bottom: 1px solid var(--border-firm);
  white-space: nowrap;
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:last-child td, table tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: normal; }

/* ==========================================================================
   Card grid — the guides hub (vocabulary shared with resources/index.html)
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
  padding: 36px 0 72px;
}
.cards.stack { grid-template-columns: 1fr; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -12px var(--accent-glow);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-wash);
  border: 1px solid rgba(15, 76, 129, 0.18);
  color: var(--accent);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.card-content { flex: 1; min-width: 0; }

.card-badge {
  display: inline-block;
  background: var(--accent-wash);
  color: var(--accent-light);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 12px;
}

.card-title { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 6px; line-height: 1.3; }
.card-desc  { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; margin-bottom: 14px; }

.card-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.stat { text-align: left; }
.stat-value { font-size: 1.02rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; }

.card-arrow { color: var(--text-muted); font-size: 1.15rem; align-self: center; transition: transform .2s ease, color .2s ease; }
.card:hover .card-arrow { transform: translateX(3px); color: var(--accent); }

/* ==========================================================================
   Support block
   ========================================================================== */

.support {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 56px;
  text-align: center;
  box-shadow: 0 1px 0 var(--accent-wash), inset 0 3px 0 var(--accent);
}
.support h2 { justify-content: center; border-bottom: 0; padding-bottom: 0; }
.support p { color: var(--text-muted); max-width: 52ch; margin: 8px auto 20px; }

.support .contacts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.support .contacts a {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 10px;
  transition: background-color .2s ease;
}
.support .contacts a:hover { background: var(--accent-light); }
.support .contacts a.ghost {
  background: transparent;
  border: 1px solid var(--border-firm);
  color: var(--text);
}
.support .contacts a.ghost:hover { background: var(--bg-inset); border-color: var(--accent); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  text-align: center;
  padding: 36px 24px 48px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.8;
  margin-top: 60px;
}
.footer a { color: var(--accent-light); text-decoration: none; font-weight: 500; }
.footer a:hover { text-decoration: underline; }
.footer .footer-support { display: block; margin-bottom: 4px; color: var(--text); }

/* ==========================================================================
   Narrow screens
   ========================================================================== */

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero { padding: 36px 20px 8px; }
  .toc, .chooser { padding: 0 20px; }
  main { padding: 20px 20px 48px; }
  section { margin-top: 44px; }
  .method { padding: 20px; }
  figure { padding: 12px; }
  .support { padding: 24px 20px; }
  .card { flex-direction: column; padding: 22px; gap: 16px; }
  .card-arrow { display: none; }
  .card-stats { gap: 16px; }
  .cards { grid-template-columns: 1fr; }
  h2 { font-size: 1.28rem; }
  .legend { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
  .card:hover .card-arrow { transform: none; }
}

/* ==========================================================================
   Print — ink on white, no chrome
   ========================================================================== */

@media print {
  :root {
    --bg: #fff; --bg-card: #fff; --bg-inset: #fff; --bg-hover: #fff;
    --text: #000; --text-muted: #333;
    --accent: #000; --accent-light: #000;
    --accent-wash: #fff; --success: #000; --warn: #000;
    --border: #bbb; --border-firm: #888;
  }
  nav, .toc, .chooser, .seg, .card-arrow { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.5; }
  a { color: #000; text-decoration: underline; }
  .hero { padding-top: 0; }
  .hero h1 span { color: #000; }
  main, .hero, .container { max-width: none; padding-left: 0; padding-right: 0; }
  section { margin-top: 24pt; page-break-inside: avoid; }
  h2, h3 { page-break-after: avoid; }
  figure, .method, .callout, .tablewrap, table, .video { page-break-inside: avoid; }
  .method, .callout, .support, figure, .card, .tablewrap {
    border: 1px solid #bbb; box-shadow: none; background: #fff;
  }
  .video { display: none; }            /* an embed prints as a black box */
  .support { margin-top: 24pt; }
  .footer { margin-top: 18pt; border-top: 1px solid #bbb; }
  /* show destinations for real links only */
  main a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
  body[data-mode] [data-m] { display: revert !important; }  /* print everything */
}
