/* =====================================================================
   Catalogue · the style
   Information, filed: Archivo set wide for headlines, Source Sans 3 for
   reading and Azeret Mono for call numbers, figures and labels, on
   off-white paper with manila index cards, one index red and a plain
   yellow warning band. No people, characters or animals: the cards are
   the picture.
   Signature pieces: the catalogue drawer (.drawer: index cards standing
   in a drawer, their tabs showing; pick a tab and that card comes to the
   front), the index card (.icard), the province check (.provgate), the
   warning band (.warnband) and availability marks (.avail).
   Motion: html.calm stills everything (footer switch, remembered as
   "site-motion"; default from prefers-reduced-motion).
   ===================================================================== */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
html.calm:focus-within { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--red-soft); color: var(--ink); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--r-s); background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; transition: top var(--d) var(--ease); }
.skip:focus { top: 12px; }

/* ---------- type: set wide ---------- */
.h1, .h2, .h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 0.98; font-weight: 800; font-stretch: 125%; letter-spacing: -0.035em; }
.h2 { font-size: var(--fs-h2); line-height: 1.02; font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; font-weight: 700; font-stretch: 110%; letter-spacing: -0.01em; }
.h1 em, .h2 em, .h3 em { font-style: normal; color: var(--red); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
/* the eyebrow: a call number */
.tag { display: inline-flex; align-items: center; gap: 10px; font: 500 var(--fs-label)/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tag b { padding: 3px 6px; border: 1px solid currentColor; border-radius: 2px; font-weight: 600; color: var(--red); }
.num, .code { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.prose p + p { margin-top: 1em; }
.prose a, .link { color: var(--red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover, .link:hover { color: var(--red-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: var(--r-s); border: 1.5px solid transparent; font: 700 16px/1 var(--display); font-stretch: 112%; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--d-fast) var(--ease), background var(--d-fast), border-color var(--d-fast), color var(--d-fast); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--d) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: var(--on-red); }
.btn-red:hover { background: var(--red-2); }
.btn-line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14.5px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- header and phone menu ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink); }
.nav-in { position: relative; display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
/* the mark: an index card on its edge, with a red top rule */
.brand-mark { position: relative; flex: none; width: 34px; height: 24px; border-radius: 2px; background: var(--manila); box-shadow: inset 0 0 0 1px var(--manila-2), 0 3px 0 -1px var(--steel); background-image: linear-gradient(180deg, var(--red) 0 2px, transparent 2px), repeating-linear-gradient(180deg, transparent 0 5px, var(--rule-blue) 5px 6px); }
.brand-mark::before { content: ""; position: absolute; left: 6px; top: -6px; width: 12px; height: 7px; border-radius: 2px 2px 0 0; background: var(--manila-2); }
.brand-word { font: 800 21px/1 var(--display); font-stretch: 122%; letter-spacing: -0.03em; }
.brand-sub { display: block; font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 10px 12px; text-decoration: none; font: 600 15.5px/1 var(--display); font-stretch: 108%; color: var(--ink-2); border-bottom: 2px solid transparent; transition: color var(--d-fast), border-color var(--d-fast); }
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--line); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--red); }
.nav-prov { font: 500 11.5px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 2px; padding: 7px 8px; background: none; cursor: pointer; }
.nav-prov:hover { border-color: var(--ink); color: var(--ink); }
.menu-btn { display: none; width: 46px; height: 44px; border-radius: var(--r-s); border: 1.5px solid var(--ink); background: var(--card); cursor: pointer; place-items: center; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform var(--d) var(--ease), background var(--d-fast); }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
/* the phone menu: a drawer of guide cards */
.site-menu { position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: 0; padding: 10px var(--gutter) 20px; background: var(--card); border-bottom: 1px solid var(--ink); box-shadow: var(--shadow-lift); animation: cg-pull var(--d) var(--slide) both; }
.site-menu a { display: grid; grid-template-columns: 70px 1fr; align-items: baseline; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 800 24px/1.1 var(--display); font-stretch: 118%; letter-spacing: -0.02em; color: var(--ink); }
.site-menu a::before { content: attr(data-call); font: 500 11px/1 var(--mono); letter-spacing: 0.06em; color: var(--red); }
.site-menu a[aria-current="page"] { color: var(--red); }
.site-menu .btn { display: flex; margin-top: 16px; border-bottom: 0; font-size: 17px; color: var(--on-red); }
.site-menu .btn::before { display: none; }
@keyframes cg-pull { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
html.calm .site-menu { animation: none; }
@media (max-width: 960px) { .nav-links { display: none; } .menu-btn { display: grid; } }
@media (max-width: 560px) { .nav .nav-cta, .nav .nav-prov { display: none; } }
@media (min-width: 961px) { .site-menu { display: none !important; } }

/* ---------- the warning band ---------- */
.warnband { background: var(--warn-bg); color: var(--warn-ink); border-bottom: 1px solid #111; }
.warnband .wrap { display: flex; align-items: center; gap: 14px; min-height: 40px; padding-block: 8px; }
.warnband b { flex: none; font: 800 13px/1 var(--display); font-stretch: 120%; letter-spacing: 0.06em; text-transform: uppercase; }
.warnband span { font: 600 14.5px/1.35 var(--body); }
.warnband span.swap { animation: cg-swap 450ms var(--ease); }
@keyframes cg-swap { from { opacity: 0; transform: translateY(6px); } }
html.calm .warnband span.swap { animation: none; }
.warnband :focus-visible { outline-color: #111; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section.alt { background: var(--well); }
.section-head { display: grid; gap: 16px; justify-items: start; max-width: 780px; margin-bottom: clamp(30px, 4.5vw, 54px); }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 20px 56px; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.grid-2.lean { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 900px) { .grid-2.lean { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(34px, 5.5vw, 80px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero-facts { display: grid; gap: 6px; font: 500 13px/1.35 var(--mono); color: var(--ink-2); }
.hero-facts li { display: flex; gap: 10px; }
.hero-facts li::before { content: "—"; color: var(--red); }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- the catalogue drawer ---------- */
.drawer { --step: 30px; position: relative; min-width: 0; padding: 18px 18px 0; border-radius: var(--r-l) var(--r-l) 4px 4px; background: linear-gradient(180deg, var(--steel-2), var(--steel)); box-shadow: var(--shadow-lift); }
.drawer-label { display: flex; justify-content: center; margin-bottom: 14px; }
.drawer-label span { padding: 6px 18px; border: 3px solid var(--brass); border-radius: 3px; background: #f7f3e6; color: #151515; font: 600 12px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25); }
.drawer-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px; }
.drawer-tabs button { padding: 7px 10px; border: 1px solid #5a5b5e; border-radius: 2px; background: transparent; color: #cfcfcf; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.drawer-tabs button:hover { border-color: #cfcfcf; color: #fff; }
.drawer-tabs button[aria-pressed="true"] { background: #f7f3e6; border-color: #f7f3e6; color: #151515; }
.drawer-well { position: relative; padding: 0 10px; border-radius: 4px 4px 0 0; background: #1b1c1e; box-shadow: inset 0 10px 18px -8px rgba(0, 0, 0, 0.8); overflow: hidden; }
.cards { position: relative; display: grid; padding-top: calc(var(--behind, 4) * var(--step) + 14px); }
.cards .icard { grid-area: 1 / 1; transform: translateY(calc(var(--k, 0) * var(--step) * -1)) scale(calc(1 - var(--k, 0) * 0.022)); transform-origin: 50% 0; z-index: calc(20 - var(--k, 0)); transition: transform 550ms var(--slide), filter 550ms var(--slide); filter: brightness(calc(1 - var(--k, 0) * 0.06)); }
.cards .icard.gone { visibility: hidden; }
.cards .icard.pull { animation: cg-pullcard 550ms var(--slide); }
@keyframes cg-pullcard { 0% { transform: translateY(calc(var(--from, 1) * var(--step) * -1)); } 45% { transform: translateY(calc(var(--from, 1) * var(--step) * -1 - 46px)); } 100% { transform: none; } }
html.calm .cards .icard { transition: none; animation: none !important; }
.drawer-front { height: 18px; margin: 0 -18px; border-top: 1px solid #5a5b5e; background: linear-gradient(180deg, var(--steel-2), var(--steel)); border-radius: 0 0 4px 4px; }
.drawer :focus-visible { outline-color: #f7f3e6; }

/* ---------- the index card ---------- */
.icard { position: relative; min-width: 0; padding: 0 22px 14px; border-radius: 4px; background: var(--manila); color: var(--ink); box-shadow: 0 -1px 0 var(--manila-2) inset, 0 2px 6px rgba(0, 0, 0, 0.25); background-image: linear-gradient(180deg, transparent 0 46px, var(--red) 46px 48px, transparent 48px), linear-gradient(180deg, var(--manila) 0 46px, transparent 46px), repeating-linear-gradient(180deg, transparent 0 25px, var(--rule-blue) 25px 26px); background-position: 0 0, 0 0, 0 48px; }
.icard .tab { position: absolute; top: -18px; left: calc(var(--t, 0) * 30% + 14px); height: 19px; padding: 3px 10px 0; border-radius: 4px 4px 0 0; background: var(--manila-2); font: 600 10.5px/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.icard .call { display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 46px; font: 500 11.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.icard h3 { margin-top: 28px; font: 800 24px/26px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-stretch: 115%; letter-spacing: -0.02em; }
.icard dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; margin-top: 0; }
.icard dl > div { min-width: 0; }
.icard dt { font: 500 10.5px/26px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.icard dd { margin: 0; font: 600 16px/26px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icard .icard-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; height: 52px; padding-bottom: 4px; }
.icard .price { font: 800 30px/1 var(--display); font-stretch: 112%; letter-spacing: -0.02em; }
@media (max-width: 520px) { .icard dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } .icard h3 { font-size: 21px; } .icard .price { font-size: 26px; } }

/* a grid of cards (the shop) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 30px 18px; padding-top: 18px; }
.card-grid .icard { box-shadow: 0 -1px 0 var(--manila-2) inset, var(--shadow-card); }

/* ---------- availability ---------- */
.avail { display: inline-flex; align-items: center; gap: 7px; font: 600 12px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.avail::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; background: currentColor; }
.avail.low::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.avail.out { color: var(--muted); }
.avail.out::before { background: transparent; }

/* ---------- the province check ---------- */
.provgate { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html:not(.calm) .provgate { animation: cg-fade 300ms var(--ease); }
@keyframes cg-fade { from { opacity: 0; } }
.provgate-card { width: min(480px, 100%); display: grid; gap: 16px; padding: 28px 26px 22px; border-radius: 4px; background: var(--manila); color: var(--ink); box-shadow: var(--shadow-lift), 0 0 0 1px var(--manila-2); background-image: linear-gradient(180deg, transparent 0 64px, var(--red) 64px 66px, transparent 66px); }
.provgate-card h2 { font: 800 30px/1.05 var(--display); font-stretch: 118%; letter-spacing: -0.02em; }
.provgate-card p { color: var(--ink-2); font-size: 16px; }
.provgate-card .field select { background-color: var(--card); }
.provgate-age { font: 600 14px/1.4 var(--mono); }
.provgate-age b { color: var(--red); font-size: 20px; }
.provgate-no { padding: 12px 14px; border-radius: var(--r-s); background: var(--card); font-weight: 700; }
.provgate .fine { font: 500 11.5px/1.5 var(--mono); color: var(--muted); }

/* ---------- facts and notices ---------- */
.facts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.facts > div { display: grid; gap: 6px; align-content: start; padding: 20px 18px 20px 0; border-bottom: 1px solid var(--line); }
.facts > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.facts .k { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.facts b { font: 800 22px/1.1 var(--display); font-stretch: 115%; letter-spacing: -0.02em; }
.facts p { font-size: 16px; color: var(--ink-2); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts > div + div { padding-left: 0; border-left: 0; } }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 16px 18px; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); font-size: 16px; color: var(--ink-2); }
.notice svg { width: 20px; height: 20px; color: var(--red); margin-top: 2px; }
.notice b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; max-width: 880px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px 1fr auto; align-items: baseline; gap: 12px; padding: 18px 2px; font: 700 19px/1.25 var(--display); font-stretch: 110%; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: attr(data-call); font: 500 11px/1 var(--mono); letter-spacing: 0.06em; color: var(--red); }
.faq summary::after { content: "+"; font: 500 20px/1 var(--mono); color: var(--red); transition: transform var(--d) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 2px 20px 76px; color: var(--ink-2); max-width: 74ch; }
@media (max-width: 560px) { .faq summary { grid-template-columns: 1fr auto; } .faq summary::before { display: none; } .faq details > div { padding-left: 2px; } }

/* ---------- closing ---------- */
.close { padding-block: clamp(56px, 8vw, 100px); }
.close-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 30px; align-items: end; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-l); background: var(--steel); color: #f2f0ea; }
.close-card .h2 { color: #f2f0ea; }
.close-card .h2 em { color: var(--close-em, #ff9d93); }
.close-card p { color: #cfcdc6; max-width: 52ch; margin-top: 14px; }
.close-card .tag { color: #b5b2aa; }
.close-card .tag b { color: var(--close-em, #ff9d93); }
.close-card .btn-red { background: #f7f3e6; color: #151515; }
.close-card .btn-red:hover { background: #fff; }
.close-card .btn-line { border-color: #f2f0ea; color: #f2f0ea; }
.close-card .btn-line:hover { background: #f2f0ea; color: #151515; }
.close-card :focus-visible { outline-color: #f7f3e6; }
@media (max-width: 860px) { .close-card { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { padding-block: 56px 30px; border-top: 2px solid var(--ink); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { font: 500 var(--fs-label)/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { display: grid; gap: 9px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--red); }
.licence { margin-top: 28px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-s); font: 500 12px/1.65 var(--mono); color: var(--muted); }
.licence b { color: var(--ink); font-weight: 600; }
.foot-base { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.foot-switches { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- switch ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); cursor: pointer; font: 600 14.5px/1 var(--body); color: var(--ink-2); }
.switch .sw { position: relative; flex: none; width: 38px; height: 20px; border-radius: 2px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); transition: background var(--d-fast); }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 1px; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); transition: transform var(--d) var(--ease); }
.switch[aria-checked="true"] .sw { background: var(--red); box-shadow: none; }
.switch[aria-checked="true"] .sw::after { transform: translateX(18px); background: #fff; }

/* ---------- reveal on scroll ---------- */
.js [data-enter] { opacity: 0; transform: translateY(14px); transition: opacity 550ms var(--ease), transform 550ms var(--ease); }
.js [data-enter].entered { opacity: 1; transform: none; }
html.calm [data-enter] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* =====================================================================
   Multi-page kit
   ===================================================================== */
.page-head { padding-block: clamp(30px, 4.5vw, 60px) clamp(32px, 4.5vw, 56px); border-bottom: 2px solid var(--ink); }
.page-head .h1 { font-size: clamp(38px, 5vw, 70px); margin-top: 16px; }
.page-head .lead { margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs span[aria-hidden] { opacity: 0.6; }

.field { display: grid; gap: 7px; min-width: 0; }
.field > span, .field-set > legend { font: 700 16px/1.2 var(--display); font-stretch: 108%; color: var(--ink); }
.field small, .field-set > legend small { color: var(--muted); font: 400 14px/1.3 var(--body); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-s); border: 1px solid var(--ink); background: var(--card); color: var(--ink); transition: box-shadow var(--d-fast); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
.field [aria-invalid="true"] { border-color: var(--red); box-shadow: inset 4px 0 0 var(--red); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-size: 6px 6px; background-position: right 22px center, right 16px center; background-repeat: no-repeat; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
fieldset.field-set { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
fieldset.field-set > legend { padding: 0; margin-bottom: 10px; }
fieldset.field-set > .seg { justify-self: start; }
.form-card { display: grid; gap: 20px; padding: clamp(22px, 3.5vw, 36px); border-radius: var(--r-m); background: var(--card); border: 1px solid var(--ink); box-shadow: var(--shadow-card); }
.form-done { padding: 16px 18px; border-radius: var(--r-s); background: var(--red-soft); color: var(--ink); font-weight: 700; border-left: 4px solid var(--red); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: grid; gap: 3px; height: 100%; padding: 14px 16px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--card); transition: border-color var(--d-fast), background var(--d-fast); }
.choice > span b { font: 700 17px/1.15 var(--display); font-stretch: 110%; }
.choice > span small { color: var(--muted); font-size: 14.5px; }
.choice:hover > span { border-color: var(--ink); }
.choice input:checked + span { border-color: var(--ink); background: var(--manila); box-shadow: inset 0 3px 0 var(--red); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--ink); border-radius: var(--r-s); overflow: hidden; background: var(--card); }
.seg button, .seg label { position: relative; padding: 9px 13px; border: 0; background: transparent; cursor: pointer; font: 500 12.5px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.seg button + button, .seg label + label { border-left: 1px solid var(--ink); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--ink); color: var(--paper); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; }

input.range { --p: 50%; appearance: none; -webkit-appearance: none; width: 100%; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--red) 0 var(--p), var(--line) var(--p) 100%); cursor: pointer; }
input.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 2px; background: var(--card); border: 2px solid var(--ink); }
input.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 2px; background: var(--card); border: 2px solid var(--ink); }

.table { overflow-x: auto; border-top: 2px solid var(--ink); }
.table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table caption { caption-side: bottom; text-align: left; padding: 12px 0; font: 500 12px/1.5 var(--mono); color: var(--muted); }
.table th, .table td { padding: 12px 14px 12px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font: 500 11.5px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.table tbody th { font: 700 16px/1.3 var(--display); font-stretch: 108%; }
.table .r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 0; }
@media (max-width: 680px) {
  .table.stack table, .table.stack tbody, .table.stack tr, .table.stack td, .table.stack th { display: block; }
  .table.stack table { display: flex; flex-direction: column; }
  .table.stack caption { display: block; order: 1; }
  .table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.stack tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .table.stack td, .table.stack th { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px; border: 0; padding: 4px 0; text-align: left !important; }
  .table.stack th[scope="row"] { display: block; }
  .table.stack td::before { content: attr(data-label); font: 500 11px/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
}

@media print { .nav, .foot-switches, .menu-btn, .site-menu, .provgate { display: none !important; } body { background: #fff; } }
