/* =====================================================================
   Tableau · the style
   The menu board: Big Shoulders Display for tall signage headlines,
   Manrope for reading and Spline Sans Mono for the board, prices and
   codes, on cream card by day and a black room by night, with one brass
   accent. The board is always a black split-flap board.
   Signature pieces: the split-flap board (.board: rows that clatter into
   place when a tab changes), price tickets (.ticket), the potency scale
   (.potency), the order-ahead tray (.tray), the 21+ check (.gate) and the
   required warning box (.warn).
   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.6 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(--brass-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: tall signage ---------- */
.h1, .h2, .h3 { font-family: var(--display); color: var(--ink); text-transform: uppercase; text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 0.88; font-weight: 800; letter-spacing: -0.005em; }
.h2 { font-size: var(--fs-h2); line-height: 0.92; font-weight: 800; }
.h3 { font-size: var(--fs-h3); line-height: 1.05; font-weight: 700; letter-spacing: 0.01em; }
.h1 em, .h2 em, .h3 em { font-style: normal; color: var(--brass); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
/* the eyebrow: a board tile and a label */
.tag { display: inline-flex; align-items: center; gap: 10px; font: 600 var(--fs-label)/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tag::before { content: ""; width: 12px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, var(--board) 0 48%, var(--brass) 48% 54%, var(--board) 54%); }
.num, .code { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.prose p + p { margin-top: 1em; }
.prose a, .link { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover, .link:hover { color: var(--brass-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: var(--r-s); border: 2px solid transparent; font: 800 18px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; 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-brass { background: var(--brass); color: var(--on-brass); }
.btn-brass:hover { background: var(--brass-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: 40px; padding: 0 14px; font-size: 16px; }
.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 ---------- */
.notice-bar { background: var(--board); color: var(--flap-ink); font: 500 12px/1.4 var(--mono); letter-spacing: 0.03em; }
.notice-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-block: 8px; }
.notice-bar b { color: var(--flap-lit); font-weight: 600; }
.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: 2px solid var(--ink); }
.nav-in { position: relative; display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
/* the mark: two split-flap tiles */
.brand-mark { display: inline-flex; gap: 2px; flex: none; }
.brand-mark i { position: relative; display: grid; place-items: center; width: 18px; height: 26px; border-radius: 3px; background: var(--board); box-shadow: inset 0 0 0 1px var(--board-line); color: var(--flap-lit); font: 700 15px/1 var(--mono); font-style: normal; }
.brand-mark i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--paper); opacity: 0.6; }
.brand-word { font: 800 26px/0.9 var(--display); letter-spacing: 0.01em; text-transform: uppercase; }
.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: 700 18px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); border-bottom: 3px 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(--brass); }
.menu-btn { display: none; width: 46px; height: 44px; border-radius: var(--r-s); border: 2px 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: 2.5px; 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 board of destinations */
.site-menu { position: absolute; left: 0; right: 0; top: calc(100% + 2px); padding: 10px var(--gutter) 20px; background: var(--board); color: var(--flap-ink); counter-reset: m; animation: tb-drop var(--d) var(--ease) both; }
.site-menu a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--board-line); text-decoration: none; font: 800 30px/1 var(--display); text-transform: uppercase; color: var(--flap-ink); counter-increment: m; }
.site-menu a::before { content: counter(m, decimal-leading-zero); font: 600 12px/1 var(--mono); color: var(--flap-muted); }
.site-menu a::after { content: "→"; font: 500 16px/1 var(--mono); color: var(--flap-lit); }
.site-menu a[aria-current="page"] { color: var(--flap-lit); }
.site-menu .btn { display: flex; counter-increment: none; margin-top: 16px; border-bottom: 0; background: var(--flap-lit); color: #231703; font-size: 20px; }
.site-menu .btn::before, .site-menu .btn::after { display: none; }
@keyframes tb-drop { 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: 520px) { .nav .nav-cta { display: none; } }
@media (min-width: 961px) { .site-menu { display: none !important; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 116px); }
.section.alt { background: var(--well); }
.section-head { display: grid; gap: 16px; justify-items: start; max-width: 820px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.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; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { position: relative; min-width: 0; padding: 26px; border-radius: var(--r-m); background: var(--card); border: 2px solid var(--ink); box-shadow: var(--shadow-card); }
.card p { color: var(--ink-2); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; font: 500 12.5px/1.3 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.hero-facts span { display: inline-flex; gap: 8px; align-items: center; }
.hero-facts svg { width: 16px; height: 16px; color: var(--brass); }
@media (max-width: 1040px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- the split-flap board ---------- */
.board { --ch: 0.78em; position: relative; min-width: 0; padding: clamp(14px, 2vw, 22px); border-radius: var(--r-l); background: var(--board); color: var(--flap-ink); box-shadow: var(--shadow-board); font-size: clamp(13px, 1.25vw, 17px); }
.board::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--board-line); border-radius: calc(var(--r-l) - 4px); pointer-events: none; }
.board-head { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 6px 6px 14px; }
.board-title { font: 800 26px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.board-clock { font: 600 14px/1 var(--mono); color: var(--flap-lit); font-variant-numeric: tabular-nums; }
.board-tabs { position: relative; display: flex; flex-wrap: wrap; gap: 4px; padding: 0 6px 12px; }
.board-tabs button { padding: 8px 12px; border: 1px solid var(--board-line); border-radius: 3px; background: transparent; color: var(--flap-muted); font: 600 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.board-tabs button:hover { color: var(--flap-ink); border-color: var(--flap-muted); }
.board-tabs button[aria-pressed="true"] { background: var(--flap-lit); border-color: var(--flap-lit); color: #231703; }
.board table { position: relative; width: 100%; border-collapse: separate; border-spacing: 0 5px; }
.board th { padding: 0 4px 2px; font: 600 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--flap-muted); text-align: left; }
.board td { padding: 0 4px; white-space: nowrap; }
.board td:first-child, .board th:first-child { width: 1%; }
.board .r { text-align: right; }
.flaps { display: inline-flex; gap: 2px; vertical-align: middle; }
.fl { position: relative; display: inline-grid; place-items: center; width: var(--ch); height: 1.45em; border-radius: 2px; background: linear-gradient(180deg, var(--flap) 0 50%, var(--flap-2) 50%); font: 600 1em/1 var(--mono); text-transform: uppercase; color: var(--flap-ink); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5); perspective: 200px; }
.fl::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.75); }
.fl.sp { background: linear-gradient(180deg, color-mix(in srgb, var(--flap) 55%, var(--board)) 0 50%, color-mix(in srgb, var(--flap-2) 55%, var(--board)) 50%); }
.lit .fl, .fl.lit { color: var(--flap-lit); }
.fl.turn { animation: tb-flip 90ms var(--flip); }
@keyframes tb-flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(-80deg); filter: brightness(0.6); } 100% { transform: rotateX(0); } }
html.calm .fl.turn { animation: none; }
.board tr.on .fl { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5), 0 0 0 1px color-mix(in srgb, var(--flap-lit) 55%, transparent); }
.board-foot { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 6px 4px; font: 500 11.5px/1.4 var(--mono); color: var(--flap-muted); }
.board :focus-visible { outline-color: var(--flap-lit); }
@media (max-width: 600px) { .board .opt { display: none; } }

/* ---------- price tickets ---------- */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.ticket { position: relative; display: grid; gap: 10px; align-content: start; padding: 20px 20px 18px; border-radius: var(--r-m); background: var(--card); border: 2px solid var(--ink); }
.ticket::before { content: ""; position: absolute; left: 18px; right: 18px; top: 46px; border-top: 2px dashed var(--line); }
.ticket .t-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-height: 26px; font: 600 11.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ticket h3 { margin-top: 8px; font: 800 26px/1 var(--display); text-transform: uppercase; }
.ticket .t-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ticket .t-meta span { padding: 4px 8px; border-radius: 3px; background: var(--well); font: 600 12px/1.2 var(--mono); color: var(--ink-2); }
.ticket .t-notes { font-size: 14.5px; color: var(--muted); }
.ticket .t-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; padding-top: 12px; border-top: 2px solid var(--ink); }
.ticket .t-price { font: 800 34px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.ticket .t-price small { font: 500 12px/1 var(--mono); color: var(--muted); margin-left: 4px; }
.ticket .t-lab { font: 600 12px/1.2 var(--mono); color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }
.ticket button.add { min-height: 40px; padding: 0 14px; border: 2px solid var(--ink); border-radius: var(--r-s); background: var(--card); font: 800 16px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.ticket button.add:hover { background: var(--ink); color: var(--paper); }
.ticket button.add[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }

/* ---------- the potency scale ---------- */
.potency { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-m); background: var(--card); border: 2px solid var(--ink); }
.potency h3 { font: 800 24px/1 var(--display); text-transform: uppercase; }
.potency-bar { position: relative; height: 18px; border-radius: 3px; background: linear-gradient(90deg, var(--brass-soft), color-mix(in srgb, var(--brass) 70%, var(--brass-soft)), var(--brass-2)); box-shadow: inset 0 0 0 2px var(--ink); }
.potency-bar .start { position: absolute; left: 0; top: -6px; bottom: -6px; width: var(--start, 18%); border: 2px solid var(--ink); border-radius: 3px; background: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--ink) 18%, transparent) 5px 7px); }
.potency-marks { display: flex; justify-content: space-between; font: 600 12px/1.2 var(--mono); color: var(--muted); }
.potency p { font-size: 15.5px; color: var(--ink-2); }

/* ---------- the order-ahead tray ---------- */
.tray { display: grid; gap: 0; border-radius: var(--r-m); background: var(--card); border: 2px solid var(--ink); overflow: hidden; }
.tray-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--board); color: var(--flap-ink); font: 800 22px/1 var(--display); text-transform: uppercase; }
.tray-head span { font: 600 12px/1 var(--mono); color: var(--flap-lit); }
.tray-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.tray-list b { display: block; font: 700 17px/1.2 var(--display); text-transform: uppercase; }
.tray-list small { font: 500 12px/1.3 var(--mono); color: var(--muted); }
.tray-empty { padding: 18px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--r-s); }
.stepper button { width: 32px; height: 32px; border: 0; background: transparent; font: 700 18px/1 var(--mono); cursor: pointer; }
.stepper output { min-width: 26px; text-align: center; font: 600 14px/1 var(--mono); }
.tray-sum { display: grid; gap: 6px; padding: 14px 18px; font: 500 14px/1.4 var(--mono); }
.tray-sum div { display: flex; justify-content: space-between; gap: 12px; }
.tray-sum .tot { padding-top: 8px; border-top: 2px solid var(--ink); font-size: 16px; font-weight: 600; }
.tray-note { padding: 0 18px 16px; font-size: 14px; color: var(--muted); }

/* ---------- the 21+ check ---------- */
.gate { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--board) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
html:not(.calm) .gate { animation: tb-fade 300ms var(--ease); }
@keyframes tb-fade { from { opacity: 0; } }
.gate-card { position: relative; width: min(460px, 100%); display: grid; gap: 16px; padding: 28px; border-radius: var(--r-l); background: var(--card); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); }
.gate-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; border-radius: var(--r-l) var(--r-l) 0 0; background: repeating-linear-gradient(90deg, var(--board) 0 14px, var(--brass) 14px 16px); }
.gate-id { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.gate-id .flaps { font-size: 26px; }
.gate-card h2 { font: 800 40px/0.95 var(--display); text-transform: uppercase; }
.gate-card p { color: var(--ink-2); font-size: 15.5px; }
.gate-card .actions .btn { flex: 1 1 auto; }
.gate-card .fine { font: 500 11.5px/1.5 var(--mono); color: var(--muted); }
.gate-no { padding: 12px 14px; border-radius: var(--r-s); background: var(--well); font-weight: 700; }

/* ---------- warnings ---------- */
.warn { display: grid; gap: 6px; padding: 16px 18px; border: 3px solid var(--ink); border-radius: var(--r-s); background: var(--card); font-size: 15px; color: var(--ink); }
.warn b { font: 800 18px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--alert); }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 16px 18px; border-radius: var(--r-s); background: var(--card); border: 2px solid var(--line); border-left: 6px solid var(--brass); font-size: 15.5px; color: var(--ink-2); }
.notice svg { width: 20px; height: 20px; color: var(--brass); margin-top: 2px; }
.notice b { color: var(--ink); }

/* ---------- rows of facts ---------- */
.facts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border: 2px solid var(--ink); border-radius: var(--r-m); background: var(--card); overflow: hidden; }
.facts > div { display: grid; gap: 8px; align-content: start; padding: 22px 20px; }
.facts > div + div { border-left: 2px solid var(--ink); }
.facts b { font: 800 26px/1 var(--display); text-transform: uppercase; }
.facts p { font-size: 15.5px; color: var(--ink-2); }
.facts .k { font: 600 11.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(3) { border-left: 0; } .facts > div:nth-child(n+3) { border-top: 2px solid var(--ink); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts > div + div { border-left: 0; border-top: 2px solid var(--ink); } }

/* ---------- FAQ ---------- */
.faq { display: grid; max-width: 900px; border-top: 3px solid var(--ink); }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font: 800 24px/1.05 var(--display); text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 600 22px/1 var(--mono); color: var(--brass); transition: transform var(--d) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 2px 22px; color: var(--ink-2); max-width: 70ch; }

/* ---------- closing: the night board ---------- */
.close { padding-block: clamp(56px, 8vw, 104px); }
.close-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 32px; align-items: end; padding: clamp(28px, 5vw, 60px); border-radius: var(--r-l); background: var(--board); color: var(--flap-ink); box-shadow: var(--shadow-board); }
.close-card .h2 { color: var(--flap-ink); }
.close-card .h2 em { color: var(--flap-lit); }
.close-card p { color: #cfc6b4; max-width: 52ch; margin-top: 14px; }
.close-card .tag { color: var(--flap-muted); }
.close-card .btn-brass { background: var(--flap-lit); color: #231703; }
.close-card .btn-line { border-color: var(--flap-ink); color: var(--flap-ink); }
.close-card .btn-line:hover { background: var(--flap-ink); color: var(--board); }
.close-card :focus-visible { outline-color: var(--flap-lit); }
@media (max-width: 860px) { .close-card { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { padding-block: 56px 30px; border-top: 3px solid var(--ink); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { font: 600 var(--fs-label)/1.2 var(--mono); letter-spacing: 0.08em; 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(--brass); }
.foot .warn { margin-top: 28px; }
.licence { margin-top: 14px; 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: 2px solid var(--line); font-size: 14px; 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: 2px solid var(--line); border-radius: var(--r-s); background: var(--card); cursor: pointer; font: 600 14px/1 var(--body); color: var(--ink-2); }
.switch .sw { position: relative; flex: none; width: 38px; height: 20px; border-radius: 3px; background: var(--well); box-shadow: inset 0 0 0 1.5px var(--line); transition: background var(--d-fast); }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 2px; 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(--brass); box-shadow: none; }
.switch[aria-checked="true"] .sw::after { transform: translateX(18px); background: #fff; }

/* ---------- reveal on scroll ---------- */
.js [data-enter] { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms 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: 3px solid var(--ink); }
.page-head .h1 { font-size: clamp(48px, 6vw, 96px); margin-top: 16px; }
.page-head .lead { margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 600 11.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brass); }
.crumbs span[aria-hidden] { opacity: 0.6; }

.field { display: grid; gap: 7px; min-width: 0; }
.field > span, .field-set > legend { font: 800 17px/1.1 var(--display); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.field small, .field-set > legend small { color: var(--muted); font: 400 14px/1.3 var(--body); text-transform: none; letter-spacing: 0; }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-s); border: 2px solid var(--line); background: var(--card); color: var(--ink); transition: border-color var(--d-fast), box-shadow var(--d-fast); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 30%, transparent); }
.field [aria-invalid="true"] { border-color: var(--alert); }
.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: 2px solid var(--ink); box-shadow: var(--shadow-card); }
.form-done { padding: 16px 18px; border-radius: var(--r-s); background: var(--brass-soft); color: var(--ink); font-weight: 700; border-left: 6px solid var(--brass); }
.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(--brass); }

.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: 2px solid var(--line); background: var(--card); transition: border-color var(--d-fast), background var(--d-fast); }
.choice > span b { font: 800 19px/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.choice > span small { color: var(--muted); font-size: 14px; }
.choice:hover > span { border-color: var(--ink-2); }
.choice input:checked + span { border-color: var(--ink); background: var(--brass-soft); box-shadow: inset 6px 0 0 var(--brass); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.seg { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--ink); border-radius: var(--r-s); overflow: hidden; background: var(--card); }
.seg button, .seg label { position: relative; padding: 10px 14px; border: 0; background: transparent; cursor: pointer; font: 800 16px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.seg button + button, .seg label + label { border-left: 2px 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: 6px; border-radius: 2px; background: linear-gradient(90deg, var(--brass) 0 var(--p), var(--line) var(--p) 100%); cursor: pointer; }
input.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 3px; background: var(--card); border: 2.5px solid var(--ink); }
input.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 3px; background: var(--card); border: 2.5px solid var(--ink); }

.table { overflow-x: auto; border-radius: var(--r-m); border: 2px solid var(--ink); background: var(--card); }
.table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table caption { caption-side: bottom; text-align: left; padding: 12px 18px; border-top: 2px solid var(--line); font: 500 12px/1.5 var(--mono); color: var(--muted); }
.table th, .table td { padding: 13px 18px; text-align: left; border-bottom: 1.5px solid var(--line); vertical-align: middle; }
.table thead th { font: 800 15px/1.1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; background: var(--well); border-bottom: 2px solid var(--ink); }
.table tbody th { font: 700 16px/1.25 var(--body); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table .r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 680px) {
  .table.stack { overflow: visible; border: 0; background: transparent; }
  .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; border: 0; padding: 4px 2px 0; }
  .table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.stack tr { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-m); margin-bottom: 10px; padding: 6px 0; }
  .table.stack td, .table.stack th { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px; align-items: center; border: 0; padding: 7px 16px; text-align: left !important; }
  .table.stack th[scope="row"] { display: block; }
  .table.stack td::before { content: attr(data-label); font: 600 11px/1.4 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
}

@media print { .nav, .foot-switches, .menu-btn, .site-menu, .gate { display: none !important; } body { background: #fff; } }
button.t-lab { justify-self: start; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.facts.one, .facts[style*="--n:1"] { grid-template-columns: 1fr; }
.facts.one > div + div, .facts[style*="--n:1"] > div + div { border-left: 0; border-top: 2px solid var(--ink); }
.grid-2.lean { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.grid-2.lean-r { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
@media (max-width: 900px) { .grid-2.lean, .grid-2.lean-r { grid-template-columns: 1fr; } }
