/* =====================================================================
   Kmspico.com.mx — "Case File" investigation-dossier theme
   Plain CSS, no build step. Edit the variables in section 1 and save.
   1. Easy settings   2. Fonts   3. Base   4. Buttons   5. Header
   6. Hero (case file)   7. Sections   8. Homepage blocks
   9. Inner pages & guides   10. Footer (archive cabinet)   11. Motion
   12. Responsive
   ===================================================================== */

/* ---------- 1. Easy settings — change these ---------- */
:root {
  /* Text sizes */
  --hero-h1: clamp(2.1rem, 4.2vw, 3.5rem);   /* homepage H1 size */
  --page-h1: clamp(1.9rem, 3.4vw, 2.8rem);   /* H1 on guides and pages */
  --h2: clamp(1.6rem, 2.9vw, 2.3rem);         /* section titles */
  --h3: 1.1rem;
  --body: 1.02rem;
  --line: 1.72;

  /* Colours (no blue) */
  --paper: #F6F1E6;       /* page background (light manila) */
  --manila: #EFE4CC;      /* folder sections */
  --sheet: #FFFDF8;       /* paper sheets and cards */
  --ink: #1E1C1A;         /* headings, dark sections */
  --ink-2: #45403A;       /* body text */
  --muted: #6E675B;
  --rule: #DCD2BE;        /* borders and ruled lines */
  --red: #C62828;         /* logo red – warnings, stamps */
  --red-d: #9E1D1D;
  --gold: #FFC72C;        /* accent – main buttons, highlights */
  --gold-d: #E0A800;
  --safe: #2E7D4F;        /* "safe / supported" marks */
  --on-dark: #F4EFE4;

  /* Shape and layout */
  --container: 1140px;
  --radius: 6px;          /* documents use small, sharp corners */
  --header-h: 76px;
  --shadow: 0 1px 0 rgba(30, 28, 26, .06), 0 14px 30px -16px rgba(30, 28, 26, .35);

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- 2. Fonts (served from this site) ---------- */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Poppins", system-ui, sans-serif; font-size: var(--body); line-height: var(--line); color: var(--ink-2); background: var(--paper); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
svg { width: 1.2em; height: 1.2em; flex: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.16; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; overflow-wrap: break-word; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--red-d); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
code, pre { font-family: ui-monospace, Consolas, "Courier New", monospace; }
code { font-size: .88em; background: var(--manila); border: 1px solid var(--rule); padding: .05em .4em; border-radius: 4px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.lead { font-size: 1.06rem; color: var(--muted); }

/* ---------- 4. Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px 11px 11px; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid var(--ink); cursor: pointer; max-width: 100%; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s; }
.btn-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 4px; flex: none; }
.btn-txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.btn-txt b { font-weight: 700; }
.btn-txt small { font-size: .72rem; font-weight: 500; opacity: .8; overflow-wrap: anywhere; }
.btn-safe { background: var(--gold); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-safe .btn-ico { background: var(--ink); color: var(--gold); }
.btn-safe:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-safe:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-safe .btn-ico svg { animation: nudge 1.8s ease-in-out infinite; }
.btn-line { background: transparent; color: var(--ink); padding: 11px 20px; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-line.light { color: #fff; border-color: #fff; }
.btn-line.light:hover { background: #fff; color: var(--red-d); }
.btn-lg { font-size: 1.04rem; padding: 13px 24px 13px 13px; }
.btn-lg .btn-ico { width: 44px; height: 44px; }
.btn-sm { padding: 7px 14px 7px 7px; font-size: .9rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-sm .btn-ico { width: 30px; height: 30px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- 5. Header — folder tabs ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(246, 241, 230, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink); }
.header-row { display: flex; align-items: flex-end; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); align-self: center; min-width: 0; }
.logo img { width: 46px; height: 46px; transition: transform .25s var(--ease); }
.logo:hover img { transform: scale(.92); }
.logo:active img { transform: scale(.86); }
.logo-words { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.logo-tag { font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--red-d); }
.case-lamp { align-self: center; display: inline-flex; align-items: center; gap: 7px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); border: 1.5px dashed var(--rule); padding: 3px 10px; border-radius: 3px; }
.case-lamp i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: lamp 1.6s infinite; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav a { display: block; padding: 9px 13px 10px; margin-bottom: -2px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; border: 2px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; transition: background .2s, transform .2s var(--ease); }
.nav a:hover { background: var(--manila); transform: translateY(-3px); }
.nav a[aria-current="page"] { background: var(--manila); border-color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; align-self: center; width: 46px; height: 46px; border-radius: var(--radius); border: 2px solid var(--ink); background: var(--sheet); cursor: pointer; place-items: center; }
.bars { display: grid; gap: 4px; }
.bars i { display: block; width: 18px; height: 2.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.seam { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: linear-gradient(90deg, var(--red) var(--progress, 0%), transparent var(--progress, 0%)); }

/* ---------- 6. Hero — the case file ---------- */
.hero { padding: 46px 0 70px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 1px 1px, rgba(30, 28, 26, .08) 1px, transparent 1.5px) 0 0 / 22px 22px; }
.folder { position: relative; background: var(--manila); border: 2px solid var(--ink); border-radius: 0 10px 10px 10px; padding: 26px; margin-top: 34px; box-shadow: 10px 10px 0 rgba(30, 28, 26, .12); }
.folder-tab { position: absolute; left: -2px; top: -36px; margin: 0; background: var(--manila); border: 2px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; padding: 6px 22px 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); }
.folder-tab span { color: var(--red-d); margin-right: 6px; }
.folder-in { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .9fr); gap: 26px; align-items: stretch; }
.sheet-main { background: var(--sheet); border: 1px solid var(--rule); padding: 34px 36px; position: relative; box-shadow: var(--shadow); animation: sheet-up .9s var(--ease) both;
  background-image: linear-gradient(90deg, transparent 52px, rgba(198, 40, 40, .18) 52px, rgba(198, 40, 40, .18) 53.5px, transparent 53.5px); }
.typed { margin: 0 0 14px; font-family: ui-monospace, Consolas, monospace; font-size: .82rem; color: var(--red-d); }
.typed span { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 100%; border-right: 2px solid var(--red); animation: type 2.4s steps(40) .4s both, caret .8s step-end infinite; }
.hero h1 { font-size: var(--hero-h1); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 20px; }
.mark-word { position: relative; display: inline; background: linear-gradient(transparent 58%, rgba(255, 199, 44, .75) 58%, rgba(255, 199, 44, .75) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-lead { font-size: 1.02rem; max-width: 64ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0 18px; align-items: center; }
.hero-note { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: var(--muted); margin: 0; }
.hero-note svg { color: var(--safe); margin-top: 3px; }

.exhibit { position: relative; display: flex; flex-direction: column; gap: 16px; transform: translate(calc(var(--mx, 0) * 10px), calc(var(--my, 0) * 10px)); transition: transform .4s var(--ease); }
.photo { position: relative; background: #fff; padding: 14px 14px 40px; border: 1px solid var(--rule); box-shadow: var(--shadow); transform: rotate(2.5deg); animation: photo-in 1s .3s var(--ease) both; overflow: hidden; }
.photo img { width: 100%; max-width: 260px; margin: 0 auto; aspect-ratio: 1; }
.photo-l { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.clip { position: absolute; left: 22px; top: -6px; width: 16px; height: 46px; border: 3px solid #8B8578; border-radius: 10px; z-index: 2; }
.laser { position: absolute; left: 0; right: 0; top: 14px; height: 3px; background: var(--red); box-shadow: 0 0 14px 4px rgba(198, 40, 40, .45); animation: laser 3.2s ease-in-out infinite; }
.scanlist { list-style: none; margin: 0; padding: 14px 16px; background: var(--ink); color: var(--on-dark); font-family: ui-monospace, Consolas, monospace; font-size: .78rem; border-radius: 4px; }
.scanlist li { display: flex; gap: 10px; align-items: baseline; padding: 3px 0; animation: line-in .4s calc(var(--i) * .45s + .9s) both; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; animation: lamp 1.6s infinite; }
.scanlist li:last-child .dot { background: var(--gold); }
.stamp { position: absolute; right: -10px; top: 36%; z-index: 3; padding: 6px 16px; font-size: 1.5rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); border: 4px double var(--red); border-radius: 6px; background: rgba(255, 253, 248, .6); transform: rotate(-12deg); animation: slam .5s 3.2s cubic-bezier(.3, 1.6, .5, 1) both; mix-blend-mode: multiply; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 22px 0 0; border-top: 2px solid var(--ink); }
.facts div { padding: 12px 14px 0; border-left: 1px dashed var(--ink); min-width: 0; }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; color: var(--ink); font-size: .92rem; overflow-wrap: anywhere; }

/* ---------- 7. Sections ---------- */
.section { padding: 88px 0; position: relative; }
.section.manila { background: var(--manila); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section.paper { background: var(--sheet); }
.section.ink { background: var(--ink); color: #CFC8BA; }
.section.ink h2, .section.ink h3 { color: var(--on-dark); }
.section.ink .lead { color: #B8B0A1; }
.section.ink a:not(.btn) { color: var(--gold); }
.s-head { max-width: 760px; margin-bottom: 38px; }
.s-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.s-tab { display: inline-flex; align-items: stretch; margin: 0 0 14px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.s-no { background: var(--ink); color: var(--gold); padding: 3px 10px; }
.s-lb { padding: 3px 12px; color: var(--ink); background: var(--sheet); }
.section.ink .s-tab { border-color: var(--on-dark); }
.section.ink .s-no { background: var(--on-dark); color: var(--red-d); }
.section.ink .s-lb { background: transparent; color: var(--on-dark); }
.s-tab.light { border-color: #fff; } .s-tab.light .s-no { background: #fff; color: var(--red-d); } .s-tab.light .s-lb { background: transparent; color: #fff; }

/* ---------- 8. Homepage blocks ---------- */
/* Findings — evidence tags on a string */
.tags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
.tag { position: relative; background: var(--sheet); border: 2px solid var(--ink); padding: 34px 22px 22px; clip-path: polygon(14% 0, 86% 0, 100% 9%, 100% 100%, 0 100%, 0 9%); transform-origin: 50% 0; transition: transform .35s var(--ease), background .3s; }
.tag:nth-child(3n+2) { background: #FFF6D8; } .tag:nth-child(3n) { background: #FBEDE6; }
.tag:hover { transform: rotate(-1.5deg) translateY(-4px); }
.tag-hole { position: absolute; left: 50%; top: 10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); }
.tag-no { position: absolute; right: 16px; top: 12px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; color: var(--red-d); }
.tag-ico { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%; margin-bottom: 12px; color: var(--ink); transition: transform .5s var(--ease), background .3s; }
.tag:hover .tag-ico { transform: rotate(-20deg); background: var(--gold); }
.tag h3 { margin-bottom: 6px; } .tag p { margin: 0 0 14px; font-size: .94rem; }
.tag-k { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; border-top: 1.5px solid var(--ink); padding-top: 6px; color: var(--ink); }
.tag-note { max-width: 820px; margin: 34px 0 0; padding: 16px 20px; border-left: 5px solid var(--red); background: var(--sheet); font-size: .97rem; }

/* Safe download — requisition slip with perforated stub */
.slip { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); max-width: 1000px; margin: 0 auto; background: var(--sheet); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.slip-body { padding: 32px 34px; min-width: 0; background-image: repeating-linear-gradient(transparent 0 35px, rgba(30, 28, 26, .06) 35px 36px); }
.slip-k { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-d); margin-bottom: 4px; }
.slip-body h3 { font-size: 1.6rem; margin-bottom: 16px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0 0 18px; }
.fields div { padding: 8px 0; border-bottom: 1.5px dotted var(--muted); min-width: 0; }
.fields dt { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fields dd { margin: 0; font-weight: 600; color: var(--ink); font-size: .92rem; overflow-wrap: anywhere; }
.slip-p { font-size: .93rem; margin: 0; }
.stub { position: relative; padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; gap: 16px; background: #FFF6D8; border-left: 3px dashed var(--ink); min-width: 0; }
.stub::before, .stub::after { content: ""; position: absolute; left: -14px; width: 24px; height: 24px; border-radius: 50%; background: var(--manila); border: 2px solid var(--ink); }
.stub::before { top: -13px; } .stub::after { bottom: -13px; }
.stub-k { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stub .btn { align-self: flex-start; }
.stub-note { display: flex; gap: 8px; font-size: .84rem; margin: 0; } .stub-note svg { color: var(--safe); margin-top: 3px; }

/* How to download — self-ticking checklist */
.get { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.get-side { position: sticky; top: calc(var(--header-h) + 24px); }
.checkrail { display: flex; align-items: center; gap: 12px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.checkrail i { position: relative; flex: 1; height: 10px; border: 2px solid var(--ink); background: var(--sheet); overflow: hidden; }
.checkrail i::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, var(--gold) 0 8px, var(--gold-d) 8px 16px); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .15s linear; }
.no-js .checkrail i::after { transform: none; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1.5px solid var(--rule); }
.checklist li:first-child { border-top: 2px solid var(--ink); }
.box { display: grid; place-items: center; width: 36px; height: 36px; border: 2.5px solid var(--ink); background: var(--sheet); color: var(--red); }
.box svg path { stroke-dasharray: 26; stroke-dashoffset: 26; }
.checklist li.show .box svg path, .no-js .box svg path { animation: draw .6s calc(var(--d, 0) * 90ms + .35s) var(--ease) forwards; }
.no-js .box svg path { stroke-dashoffset: 0; animation: none; }
.checklist h3 { margin-bottom: 4px; } .checklist p { margin: 0; font-size: .95rem; overflow-wrap: anywhere; }

/* What it does — redacted briefing */
.what { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: 40px; align-items: start; }
.doc { background: #fff; border: 1px solid var(--rule); padding: 38px 40px; box-shadow: var(--shadow); position: relative; }
.doc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--red) 0 30px, var(--sheet) 30px 40px); }
.doc-h { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red-d); }
.redact { position: relative; font-weight: 600; color: var(--ink); background: linear-gradient(transparent 70%, rgba(255, 199, 44, .6) 70%); }
.redact::after { content: ""; position: absolute; inset: -1px -3px; background: var(--ink); transform-origin: right; transform: scaleX(1); }
.doc.show .redact::after { transition: transform .7s var(--ease); transform: scaleX(0); }
.doc.show p:nth-of-type(2) .redact::after { transition-delay: .3s; } .doc.show p:nth-of-type(3) .redact::after { transition-delay: .6s; }
.doc .redact:nth-of-type(2)::after { transition-delay: .25s; } .doc .redact:nth-of-type(3)::after { transition-delay: .45s; }
.no-js .redact::after { display: none; }
.uses { display: grid; gap: 14px; }
.uses-h { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--ink); margin: 0; }
.uses-h svg { color: var(--red); }
.uses div { padding: 16px 18px; background: var(--paper); border-left: 4px solid var(--ink); }
.uses div:nth-child(3) { border-left-color: var(--red); } .uses div:nth-child(4) { border-left-color: var(--gold-d); }
.uses h3 { font-size: 1rem; margin-bottom: 4px; } .uses p { margin: 0; font-size: .92rem; }

/* Scan and activation — lab procedure + log */
.install { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 50px; align-items: start; }
.proc { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.proc li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 14px 0; position: relative; }
.proc li:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 64px; bottom: -14px; border-left: 2px dashed var(--rule); }
.proc-n { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 2px dashed var(--red); color: var(--red-d); font-weight: 800; font-size: 1rem; transition: transform .6s var(--ease), background .3s, color .3s; }
.proc li:hover .proc-n { transform: rotate(90deg); background: var(--red); color: #fff; border-style: solid; }
.proc h3 { margin: 4px 0 4px; } .proc p { margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
.log { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.log-bar { display: flex; align-items: center; gap: 6px; background: #2C2926; padding: 10px 14px; border-radius: 6px 6px 0 0; }
.log-bar i { width: 10px; height: 10px; border-radius: 50%; background: #5A554C; } .log-bar i:first-child { background: var(--red); } .log-bar i:nth-child(2) { background: var(--gold); }
.log-bar span { margin-left: 8px; font-size: .76rem; color: #B8B0A1; font-family: ui-monospace, Consolas, monospace; }
.log pre { margin: 0; background: var(--ink); color: #E6DFD0; padding: 18px; font-size: .8rem; line-height: 1.9; overflow-x: auto; border-radius: 0 0 6px 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.log pre span { display: block; }
.log pre span:nth-child(3) { color: var(--gold); animation: blink-bar 2.4s steps(1) infinite; }
.log pre .cur::after { content: "▌"; color: var(--gold); animation: caret .8s step-end infinite; }
.log figcaption { font-size: .76rem; color: var(--muted); margin: 8px 0 14px; }
.log-tip { display: flex; gap: 10px; font-size: .88rem; background: var(--sheet); border: 1.5px dashed var(--ink); padding: 12px 14px; margin: 0; }
.log-tip svg { color: var(--red); margin-top: 3px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); background: var(--sheet); margin: 0 0 1.4em; -webkit-overflow-scrolling: touch; }
.ledger, .board, .grid-table { width: 100%; border-collapse: collapse; min-width: 540px; font-size: .94rem; }
.ledger th, .ledger td, .board th, .board td, .grid-table th, .grid-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger thead th, .grid-table thead th { background: var(--ink); color: var(--on-dark); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.ledger tbody th, .grid-table tbody th { color: var(--ink); font-weight: 700; }
.ledger tbody tr:nth-child(even), .grid-table tbody tr:nth-child(even) { background: rgba(239, 228, 204, .45); }
.ledger tbody tr:last-child > *, .grid-table tbody tr:last-child > * { border-bottom: 0; }
.mk { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .8rem; padding: 2px 10px; border: 2px solid currentColor; border-radius: 3px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; transform: rotate(-2deg); }
.mk svg { width: 1em; height: 1em; }
.mk.yes { color: var(--safe); } .mk.no { color: var(--red-d); }
.ledger-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 24px; border: 2px solid var(--ink); background: var(--sheet); }
.ledger-notes div { padding: 18px 20px; border-left: 2px solid var(--ink); }
.ledger-notes div:first-child { border-left: 0; }
.ledger-notes h3 { font-size: .86rem; text-transform: uppercase; letter-spacing: .1em; }
.ledger-notes div:nth-child(1) h3 { color: var(--safe); } .ledger-notes div:nth-child(2) h3 { color: var(--red-d); } .ledger-notes div:nth-child(3) h3 { color: #8A6A00; }
.ledger-notes p { margin: 0; font-size: .92rem; }

/* Pros and cons — balance scale */
.balance { display: grid; grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr); gap: 20px; align-items: start; max-width: 1040px; margin: 0 auto; }
.pan { background: var(--sheet); border: 2px solid var(--ink); padding: 22px 24px; position: relative; }
.pan-l { animation: pan-up 4s ease-in-out infinite; border-top: 8px solid var(--safe); }
.pan-r { animation: pan-down 4s ease-in-out infinite; border-top: 8px solid var(--red); }
.pan-k { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.pan ul { list-style: none; margin: 0; padding: 0; }
.pan li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px dashed var(--rule); font-size: .95rem; }
.pan li:last-child { border-bottom: 0; }
.pan-l li::before { content: "?"; position: absolute; left: 2px; top: 7px; font-weight: 800; color: var(--muted); }
.pan-r li::before { content: "!"; position: absolute; left: 6px; top: 7px; font-weight: 800; color: var(--red); }
.beam { position: relative; height: 220px; }
.beam .post { position: absolute; left: 50%; bottom: 0; top: 40px; width: 8px; margin-left: -4px; background: var(--ink); }
.beam .post::after { content: ""; position: absolute; left: -36px; right: -36px; bottom: 0; height: 10px; background: var(--ink); border-radius: 4px 4px 0 0; }
.beam .bar { position: absolute; left: 0; right: 0; top: 36px; height: 8px; background: var(--ink); border-radius: 4px; animation: tilt 4s ease-in-out infinite; }
.beam .pivot { position: absolute; left: 50%; top: 28px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink); }
.verdict { max-width: 820px; margin: 34px auto 0; padding: 16px 20px; background: var(--sheet); border: 2px dashed var(--red); font-size: .97rem; }

/* Options compared — dark board */
.board { background: transparent; }
.section.ink .table-wrap { background: #2A2724; border-color: #4A453E; }
.board thead th { background: #34302B; color: var(--on-dark); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.board th, .board td { border-color: #403B35 !important; color: #DCD5C7; }
.board tbody th { color: var(--on-dark); }
.board .bad { background: repeating-linear-gradient(-45deg, rgba(198, 40, 40, .22) 0 10px, rgba(198, 40, 40, .1) 10px 20px); color: #FFD9D4; }
.board thead th.bad { background: var(--red); color: #fff; }
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.prices > div { border: 1.5px dashed #6A645A; padding: 20px 22px; }
.pr-k { color: var(--gold); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.prices ul { list-style: none; margin: 0 0 10px; padding: 0; }
.prices li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 8px 0; border-bottom: 1px solid #403B35; }
.prices li b { color: #fff; } .pr-n { font-size: .82rem; color: #A9A192; margin: 0; }

/* Troubleshooting — incident reports */
.fix-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 50px; align-items: start; }
.best { background: var(--sheet); border: 2px solid var(--ink); padding: 22px 24px; position: relative; }
.best::after { content: "SOP"; position: absolute; right: 14px; top: 12px; font-size: .7rem; font-weight: 800; letter-spacing: .14em; color: var(--red); border: 2px solid var(--red); padding: 0 6px; transform: rotate(6deg); }
.best ul { padding-left: 1.2em; margin: 0 0 12px; font-size: .94rem; } .best li { margin-bottom: 4px; }
.best p { margin: 0; font-size: .9rem; }
.inc, .qa { background: var(--sheet); border: 2px solid var(--ink); margin-bottom: 12px; transition: box-shadow .25s, transform .25s var(--ease); }
.inc[open], .qa[open] { box-shadow: 6px 6px 0 var(--ink); transform: translate(-2px, -2px); }
.inc summary, .qa summary { cursor: pointer; list-style: none; padding: 15px 50px 15px 16px; font-weight: 700; color: var(--ink); position: relative; display: flex; align-items: center; gap: 12px; }
.inc summary::-webkit-details-marker, .qa summary::-webkit-details-marker { display: none; }
.inc summary::after, .qa summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .3s var(--ease); }
.inc[open] summary::after, .qa[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.inc-no { flex: none; font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: #fff; background: var(--red); padding: 3px 8px; border-radius: 2px; }
.inc-body { padding: 0 18px 16px; border-top: 1px dashed var(--rule); padding-top: 12px; margin: 0 16px; padding-left: 0; padding-right: 0; }
.inc-body p, .qa-body p { margin: 0; font-size: .95rem; }

/* Editorial perspectives — memos */
.memos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.memo { position: relative; background: #fff; border: 1px solid var(--rule); padding: 30px 24px 22px; box-shadow: var(--shadow);
  background-image: repeating-linear-gradient(transparent 0 27px, rgba(30, 28, 26, .07) 27px 28px); background-position: 0 92px; transition: transform .3s var(--ease); }
.memo:hover { transform: translateY(-5px); }
.memo::before { content: ""; position: absolute; right: 26px; top: -12px; width: 14px; height: 40px; border: 3px solid #8B8578; border-radius: 10px; }
.memo-to { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red-d); border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.memo p { font-size: .95rem; line-height: 28px; }
.memo-sig { margin: 0; font-style: italic; color: var(--muted); font-size: .86rem !important; }

/* FAQ */
.faqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
.q, .a { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 3px; font-weight: 800; font-size: .85rem; }
.q { background: var(--ink); color: var(--gold); }
.qa-body { display: flex; gap: 12px; padding: 0 16px 16px; }
.a { background: var(--gold); color: var(--ink); }

/* Final CTA — case closed */
.closing { background: var(--red); color: #fff; padding: 84px 0; overflow: hidden; position: relative; }
.closing::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 14px, transparent 14px 28px); pointer-events: none; }
.closing-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 40px; align-items: center; position: relative; }
.closing h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); }
.closing p { color: #FFE9E6; }
.closing .btn-safe { box-shadow: 4px 4px 0 var(--ink); }
.big-stamp { display: grid; place-items: center; width: 100%; max-width: 260px; aspect-ratio: 1; margin-left: auto; border: 6px double #fff; border-radius: 50%; transform: rotate(-14deg); animation: stamp-pulse 3s ease-in-out infinite; }
.big-stamp span { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; line-height: 1.05; text-align: center; color: #fff; border-top: 3px solid #fff; border-bottom: 3px solid #fff; padding: 8px 4px; }

/* ---------- 9. Inner pages & guides ---------- */
.page-top { padding: 50px 0 40px; background: var(--manila); border-bottom: 2px solid var(--ink); position: relative; overflow: hidden; }
.page-top::after { content: "FILE"; position: absolute; right: 4%; top: 18px; font-size: 5rem; font-weight: 800; letter-spacing: .1em; color: transparent; -webkit-text-stroke: 2px rgba(198, 40, 40, .25); transform: rotate(-8deg); pointer-events: none; }
.page-top h1 { font-size: var(--page-h1); max-width: 880px; position: relative; }
.page-top > .container > p { max-width: 760px; font-size: 1.04rem; position: relative; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-size: .84rem; position: relative; }
.crumbs li { color: var(--muted); } .crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--ink-2); text-decoration: none; } .crumbs a:hover { color: var(--red-d); text-decoration: underline; }
.label { display: inline-block; background: var(--ink); color: var(--gold); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; padding: 3px 12px; border-radius: 3px; margin-bottom: 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--muted); position: relative; }
.meta span::before { content: "■"; margin-right: 6px; color: var(--red); font-size: .6em; vertical-align: middle; }
.content { max-width: 800px; min-width: 0; }
.content h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 1.6em; padding-top: .3em; }
.content h3 { margin-top: 1.3em; }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 1.2em; } .content li { margin-bottom: .4em; }
.content ul li::marker { color: var(--red); } .content ol li::marker { color: var(--red-d); font-weight: 700; }
.content .table-wrap { margin: 1.2em 0 1.6em; }
.cover { margin: 0 0 26px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 rgba(30, 28, 26, .15); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 50px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); background: var(--sheet); border: 2px solid var(--ink); padding: 20px; }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.toc ol { margin: 0 0 18px; padding-left: 1.2em; font-size: .87rem; } .toc li { margin-bottom: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; } .toc a:hover { color: var(--red-d); text-decoration: underline; }
.toc .btn { width: 100%; }
.end-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: var(--manila); border: 2px solid var(--ink); padding: 26px; margin-top: 36px; }
.end-cta h2 { margin: 0 0 4px; font-size: 1.3rem; padding: 0; }
.end-cta p { margin: 0; font-size: .88rem; overflow-wrap: anywhere; }
.end-cta > div { min-width: 0; }
.related { margin-top: 70px; }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px; }
.guide-card { position: relative; background: var(--sheet); border: 2px solid var(--ink); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.guide-card::before { content: ""; position: absolute; left: -2px; top: -14px; width: 40%; height: 14px; background: var(--sheet); border: 2px solid var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0; }
.guide-card:hover { transform: translateY(-5px); box-shadow: 7px 7px 0 var(--red); }
.guide-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 2px solid var(--ink); }
.guide-card .body { padding: 18px 20px 20px; }
.guide-card .cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--red-d); }
.guide-card h2, .guide-card h3 { font-size: 1.06rem; margin: 6px 0 8px; }
.guide-card h2 a, .guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h2 a::after, .guide-card h3 a::after { content: ""; position: absolute; inset: 0; }
.guide-card p { margin: 0; font-size: .92rem; }
.section .guides { margin-top: 14px; }
.cols, .map-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.map-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols > div { background: var(--sheet); border: 2px solid var(--ink); padding: 20px; }
.cols h3 { margin-top: 0; } .cols p { margin: 0; font-size: .94rem; }
.map-cols h2 { margin-top: 0; }
.mail-link { display: inline-flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 700; background: var(--gold); color: var(--ink); padding: 12px 20px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; overflow-wrap: anywhere; max-width: 100%; }
.mail-link:hover { color: var(--ink); transform: translate(-2px, -2px); }
.error-page { padding: 80px 0 100px; text-align: center; }
.err-folder { position: relative; width: 240px; height: 170px; margin: 30px auto 30px; background: var(--manila); border: 2px solid var(--ink); border-radius: 0 8px 8px 8px; display: grid; place-items: center; animation: wobble 3s ease-in-out infinite; }
.err-folder::before { content: ""; position: absolute; left: -2px; top: -22px; width: 90px; height: 22px; background: var(--manila); border: 2px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0; }
.err-folder span { font-size: 3.4rem; font-weight: 800; color: var(--ink); }
.err-folder b { position: absolute; right: -20px; bottom: 18px; color: var(--red); border: 3px double var(--red); padding: 2px 10px; transform: rotate(-12deg); text-transform: uppercase; font-size: .9rem; background: var(--sheet); }
.err-line code { font-size: .95rem; }

/* ---------- 10. Footer — archive cabinet ---------- */
.footer { background: #2A2724; color: #BFB7A8; padding-top: 64px; }
.cabinet { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 14px; }
.drawer { position: relative; background: linear-gradient(180deg, #3A3631, #322E2A); border: 1px solid #4E4841; border-radius: 6px; padding: 42px 20px 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 20px -12px rgba(0, 0, 0, .6); transition: transform .35s var(--ease); }
.drawer:hover { transform: translateY(6px); }
.handle { position: absolute; left: 50%; top: 14px; width: 64px; height: 12px; margin-left: -32px; border: 3px solid #8B8578; border-top: 0; border-radius: 0 0 10px 10px; }
.d-code { display: inline-block; margin: 0 0 10px; background: var(--manila); color: var(--ink); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 2px 10px; border: 1px solid #8B8578; }
.drawer h2 { color: var(--on-dark); font-size: 1rem; margin-bottom: 10px; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li { padding: 6px 0; border-bottom: 1px dashed #4E4841; font-size: .9rem; }
.drawer a { color: #DCD5C7; text-decoration: none; transition: color .2s; }
.drawer a:hover { color: var(--gold); }
.footer .logo { color: var(--on-dark); }
.footer .logo-tag { color: var(--gold); }
.f-desc { margin: 16px 0 16px; font-size: .9rem; }
.f-ref { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-family: ui-monospace, Consolas, monospace; font-size: .72rem; color: #9E968A; }
.footer-note { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; margin: 28px 0 0; padding: 18px 0 22px; border-top: 1px solid #4E4841; color: #D4CCBD; }
.footer-note svg { color: var(--gold); margin-top: 2px; }
.footer-bottom { background: var(--ink); padding: 15px 0; font-size: .85rem; text-align: center; }
.footer-bottom a { color: var(--gold); font-weight: 600; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; color: var(--gold); }

/* ---------- 11. Motion ---------- */
@keyframes lamp { 50% { opacity: .25; } }
@keyframes caret { 50% { border-color: transparent; color: transparent; } }
@keyframes type { from { max-width: 0; } to { max-width: 100%; } }
@keyframes sheet-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: 0; transform: rotate(12deg) translateY(-20px); } to { opacity: 1; transform: rotate(2.5deg); } }
@keyframes laser { 0%, 100% { top: 14px; } 50% { top: calc(100% - 44px); } }
@keyframes line-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes slam { 0% { opacity: 0; transform: rotate(-12deg) scale(2.6); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(3px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink-bar { 50% { opacity: .55; } }
@keyframes tilt { 0%, 100% { transform: rotate(9deg); } 50% { transform: rotate(6deg); } }
@keyframes pan-up { 0%, 100% { transform: translateY(-14px); } 50% { transform: translateY(-8px); } }
@keyframes pan-down { 0%, 100% { transform: translateY(18px); } 50% { transform: translateY(12px); } }
@keyframes stamp-pulse { 0%, 100% { transform: rotate(-14deg) scale(1); } 50% { transform: rotate(-11deg) scale(1.04); } }
@keyframes wobble { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
/* "Stamp" reveal: blocks press down onto the page like a rubber stamp */
@keyframes stamp-in { 0% { opacity: 0; transform: scale(1.06) translateY(-8px); } 65% { opacity: 1; transform: scale(.985); } 100% { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; }
.js .reveal.show { animation: stamp-in .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms); }
.js .pan.reveal.show { animation: stamp-in .6s var(--ease) both, pan-up 4s 0.6s ease-in-out infinite; }
.js .pan-r.reveal.show { animation: stamp-in .6s var(--ease) both, pan-down 4s 0.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; }
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1080px) {
  .cabinet { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .d-brand { grid-column: 1 / -1; }
  .nav a { padding: 9px 9px 10px; font-size: .86rem; }
  .case-lamp { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .header-row { align-items: center; }
  .menu-toggle { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; margin: 2px 0 0; background: var(--paper); border-bottom: 2px solid var(--ink); box-shadow: 0 20px 30px -20px rgba(30, 28, 26, .45);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .4s var(--ease), visibility 0s .4s; }
  .nav.open { max-height: 80vh; overflow-y: auto; visibility: visible; transition: max-height .4s var(--ease); }
  .nav ul { flex-direction: column; padding: 10px 24px 20px; gap: 4px; }
  .nav a { padding: 11px 14px; border: 2px solid transparent; border-radius: 4px; margin: 0; font-size: 1rem; }
  .nav a:hover { transform: none; }
  .nav a[aria-current="page"] { border-color: var(--ink); }
  .no-js .nav { position: static; max-height: none; visibility: visible; border: 0; box-shadow: none; }
  .no-js .menu-toggle { display: none; }
  .no-js .header-row { flex-wrap: wrap; }
  .no-js .nav ul { flex-direction: row; flex-wrap: wrap; padding: 0 0 10px; }
  .folder-in { grid-template-columns: minmax(0, 1fr); }
  .exhibit { max-width: 420px; margin: 0 auto; width: 100%; }
  .stamp { right: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slip { grid-template-columns: minmax(0, 1fr); box-shadow: 6px 6px 0 var(--ink); }
  .stub { border-left: 0; border-top: 3px dashed var(--ink); }
  .stub::before, .stub::after { top: -14px; bottom: auto; left: auto; }
  .stub::before { left: -13px; } .stub::after { right: -13px; }
  .get, .what, .install, .fix-grid, .closing-in { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .get-side, .log { position: static; }
  .ledger-notes { grid-template-columns: minmax(0, 1fr); }
  .ledger-notes div { border-left: 0; border-top: 2px solid var(--ink); } .ledger-notes div:first-child { border-top: 0; }
  .balance { grid-template-columns: minmax(0, 1fr); }
  .beam { display: none; }
  .pan-l, .pan-r, .js .pan.reveal.show, .js .pan-r.reveal.show { animation: none; opacity: 1; }
  .memos, .faqs, .prices { grid-template-columns: minmax(0, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .big-stamp { margin: 0 auto; max-width: 200px; }
}
@media (max-width: 720px) {
  .section { padding: 66px 0; }
  .container { padding: 0 18px; }
  .hero { padding-top: 34px; }
  .folder { padding: 14px; }
  .sheet-main { padding: 26px 20px 24px 24px; background-image: none; }
  .tags { grid-template-columns: minmax(0, 1fr); }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .slip-body, .stub { padding: 24px 20px; }
  .doc { padding: 30px 22px; }
  .cabinet, .cols, .map-cols { grid-template-columns: minmax(0, 1fr); }
  .page-top::after { font-size: 3rem; }
  .btn-lg { padding: 11px 18px 11px 11px; }
  .stamp { font-size: 1.15rem; }
}
@media (max-width: 400px) {
  .logo-tag { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div { border-left: 0; padding-left: 0; }
}
@media print {
  .header, .footer, .menu-toggle, .exhibit, .big-stamp { display: none; }
  .js .reveal { opacity: 1; animation: none; }
}
.mk.maybe { color: #8A6A00; }
.cmp-note { max-width: 860px; margin: 0 0 6px; font-size: .96rem; color: #CFC8BA; }
.inc summary > span:last-child, .qa summary > span:last-child { min-width: 0; overflow-wrap: anywhere; }
