/* CoupeFab design system v2 — loaded after style.css (which keeps the price-page rules). */
:root {
  --bg: #f6f5f1; --bg-2: #eceae3; --paper: #ffffff; --ink: #15191c; --steel: #2b3437;
  --muted: #586064; --faint: #7d8488; --line: #e1ded5; --line-2: #cfcbc0;
  --accent: #c2410c; --accent-2: #9a3412; --accent-soft: #fdeee6; --glow: #e4572e;
  --ok: #1f6b3d; --ok-soft: #e7f4ec; --warn-soft: #fbf3dc; --draft-bg: #f3ecd6; --draft-ink: #6b5310;
  --focus: #1d5fa8; --radius: 10px; --shadow: 0 1px 2px rgba(21,25,28,.05), 0 6px 20px rgba(21,25,28,.06);
  --shadow-lg: 0 12px 40px rgba(21,25,28,.16);
  --max: 76rem; --measure: 46rem; --hdr: 3.75rem;
}
html { scroll-padding-top: calc(var(--hdr) + 1rem); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-size: 1.0625rem; line-height: 1.65; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.15rem; height: 1.15rem; flex: none; }
kbd { font-family: var(--mono); font-size: .72rem; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 0 .3rem; color: var(--muted); background: var(--paper); }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.hdr-inner { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; height: var(--hdr); display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.16rem; letter-spacing: -0.02em; flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 1.8rem; height: 1.8rem; display: block; }
.brand-word b { color: var(--accent); font-weight: 700; }
.mainnav { margin-right: auto; }
.nav-top { list-style: none; display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; }
.nav-top > li { position: static; }
.nav-btn, .nav-link { display: inline-flex; align-items: center; gap: .25rem; font: inherit; font-size: .94rem; font-weight: 550; color: var(--ink); background: none; border: 0; padding: .5rem .7rem; border-radius: 7px; text-decoration: none; cursor: pointer; }
.nav-btn:hover, .nav-link:hover, .nav-btn[aria-expanded="true"] { background: var(--bg); color: var(--ink); }
.nav-link[aria-current="page"], .nav-btn[data-active] { color: var(--accent); }
.nav-prices::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--glow); margin-right: .2rem; box-shadow: 0 0 0 3px rgba(228,87,46,.18); }
.ico-chev { width: .95rem; height: .95rem; transition: transform .15s; }
.nav-btn[aria-expanded="true"] .ico-chev { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; }
.has-mega.open .mega { display: block; }
.mega-inner { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 1.75rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 2rem; }
.mega-h { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .6rem; }
.mega-h a { color: var(--muted); text-decoration: none; }
.mega-h a:hover { color: var(--accent); }
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .05rem; }
.mega-list.two { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.mega-list a { display: block; padding: .3rem .45rem; margin-left: -.45rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .93rem; }
.mega-list a:hover { background: var(--bg); color: var(--accent); }
.mega-list .more a { color: var(--accent); font-weight: 550; }
.mega-all { margin: .6rem 0 0; font-size: .9rem; font-weight: 600; }
.mega-all a, .mega-allguides { color: var(--accent); text-decoration: none; }
.feature-card { display: grid; gap: .35rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--ink); color: #e9ecea; text-decoration: none; }
.feature-card:hover { color: #fff; background: #0d1012; }
.feature-card strong { font-size: 1.1rem; color: #fff; }
.feature-card span:last-child { font-size: .88rem; color: #b9c0c2; line-height: 1.45; }
.feature-k { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--glow); }
.mega-allguides { display: inline-block; margin-top: .9rem; font-weight: 600; font-size: .93rem; }
.hdr-tools { display: flex; align-items: center; gap: .6rem; flex: none; }
.search-btn { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-size: .9rem; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .38rem .55rem .38rem .65rem; cursor: pointer; min-width: 12.5rem; }
.search-btn:hover { border-color: var(--line-2); color: var(--ink); }
.search-btn kbd { margin-left: auto; }
.lang { display: inline-flex; flex-wrap: nowrap; align-items: stretch; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); width: auto; height: auto; }
.lang a { display: inline-block; line-height: 1.2; white-space: nowrap; border-radius: 0; font-size: .76rem; font-weight: 700; letter-spacing: .04em; padding: .38rem .55rem; color: var(--muted); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .4rem; color: var(--ink); cursor: pointer; }

/* draft strip (legacy draft pages) */
.draft-strip { max-width: var(--max); margin: .9rem auto 0; padding: 0 1.25rem; font-size: .88rem; color: var(--muted); display: flex; gap: .5rem; align-items: center; }
.draft-banner { display: none; }

/* ---------- Search dialog ---------- */
.search-dlg { position: fixed; inset: 0; z-index: 80; background: rgba(13,16,18,.45); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 1rem 1rem; }
.search-dlg[hidden] { display: none; }
.search-panel { width: min(40rem, 100%); background: var(--paper); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-field input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1.05rem; background: transparent; color: var(--ink); margin: 0; padding: .2rem 0; min-width: 0; }
.search-close { font: inherit; font-size: .82rem; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .2rem .5rem; cursor: pointer; }
.search-results { list-style: none; margin: 0; padding: .4rem; max-height: 60vh; overflow: auto; }
.search-results a { display: block; padding: .6rem .75rem; border-radius: 8px; text-decoration: none; color: var(--ink); }
.search-results a:hover, .search-results li[aria-selected="true"] a { background: var(--accent-soft); }
.search-results .r-c { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.search-results .r-t { display: block; font-weight: 600; }
.search-results .r-d { display: block; font-size: .86rem; color: var(--muted); line-height: 1.4; }
.search-results mark { background: #ffe3b8; color: inherit; padding: 0 .05em; border-radius: 2px; }
.search-empty { padding: 1rem 1.2rem; margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Generic page ---------- */
.page { max-width: var(--max); margin: 0 auto; padding: 1.25rem 1.25rem 4rem; }
.page-head { padding: .75rem 0 1.25rem; max-width: 52rem; }
.page-head h1, .guide-head h1 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); margin: 0 0 .6rem; letter-spacing: -0.025em; }
.page-head .lede { font-size: 1.12rem; color: var(--steel); margin: 0 0 1rem; }
.kicker { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin: 0 0 .6rem; }
.kicker-light { color: #f7a37c; }
.sec-h { font-size: 1.2rem; margin: 2rem 0 .9rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 .75rem; padding: 0; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .3rem; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 8px; padding: .62rem 1.05rem; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-lg { padding: .78rem 1.3rem; font-size: 1.02rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); border-color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 0; }
.chip { font: inherit; font-size: .85rem; font-weight: 550; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.other-hubs { margin-top: 2.5rem; }
.pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 650; letter-spacing: .02em; border-radius: 999px; padding: .08rem .55rem; position: relative; }
.pill-draft { background: var(--draft-bg); color: var(--draft-ink); cursor: help; }
.pill-draft::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: #c9a227; }
.pill-tip { display: none; position: absolute; left: 0; top: 135%; width: 17rem; background: var(--ink); color: #eef0ee; font-weight: 400; font-size: .8rem; line-height: 1.45; padding: .6rem .7rem; border-radius: 8px; z-index: 10; letter-spacing: 0; }
.pill-draft:hover .pill-tip, .pill-draft:focus .pill-tip { display: block; }

/* guide cards */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .9rem; }
.gcard { display: flex; flex-direction: column; gap: .35rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.gcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.gcard strong { font-size: 1.04rem; line-height: 1.3; }
.gcard:hover strong { color: var(--accent); }
.card-meta { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.card-desc { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.gcard[hidden] { display: none; }

/* guides index */
.inline-search input { width: 100%; max-width: 36rem; font: inherit; font-size: 1.02rem; padding: .7rem .9rem; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); margin: .25rem 0 .5rem; }
.inline-search input:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
.paths-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: .9rem; }
.path { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; border-top: 3px solid var(--accent); }
.path-t { font-weight: 700; margin: 0 0 .5rem; }
.path ol { margin: 0; padding-left: 1.25rem; font-size: .93rem; }
.path li { margin: .2rem 0; }
.path a { color: var(--ink); text-decoration-color: var(--line-2); }
.path a:hover { color: var(--accent); }
.hub-sec { margin-top: 2.5rem; }
.hub-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: .9rem; }
.hub-sec-head h2 { font-size: 1.3rem; margin: 0; }
.hub-sec-head h2 a { color: var(--ink); text-decoration: none; }
.hub-sec-head h2 a:hover { color: var(--accent); }
.hub-sec-head p { margin: 0; color: var(--muted); font-size: .93rem; flex: 1 1 22rem; }
.filter-empty { color: var(--muted); }

/* ---------- Guide page ---------- */
.guide { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem 3rem; }
main > .crumbs, .guide-crumbs { max-width: var(--max); margin: 0 auto; padding: 1.1rem 1.25rem 0; }
main > nav.crumbs { padding-top: 1.1rem; }
.guide-head { max-width: 50rem; padding: .25rem 0 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; }
.guide-lede { font-size: 1.15rem; color: var(--steel); margin: 0 0 .9rem; }
.guide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.1rem; font-size: .86rem; color: var(--muted); margin: 0; }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) 15.5rem; gap: 3rem; align-items: start; }
.guide-side { order: 2; position: sticky; top: calc(var(--hdr) + 1.25rem); max-height: calc(100vh - var(--hdr) - 2.5rem); overflow: auto; }
.guide-body { order: 1; min-width: 0; max-width: var(--measure); }
.toc { font-size: .88rem; border-left: 2px solid var(--line); padding-left: .9rem; }
.toc summary { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); cursor: pointer; list-style: none; margin-bottom: .5rem; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: .18rem 0; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--accent); font-weight: 600; }

/* prose */
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.42rem; margin: 2.4rem 0 .7rem; padding-top: .2rem; }
.prose h3 { font-size: 1.12rem; margin: 1.7rem 0 .45rem; }
.prose h4 { font-size: 1rem; margin: 1.3rem 0 .4rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.prose li { margin: .3rem 0; }
.prose li::marker { color: var(--faint); }
.prose a { color: var(--accent); text-underline-offset: .18em; }
.prose a.ext::after { content: "↗"; font-size: .75em; margin-left: .12em; text-decoration: none; display: inline-block; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-2); padding: .08em .32em; border-radius: 4px; }
.prose pre { background: #14181b; color: #e6e9e7; padding: 1rem 1.1rem; border-radius: var(--radius); overflow-x: auto; font-size: .86rem; line-height: 1.55; margin: 0 0 1.2rem; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose ol.steps { list-style: none; counter-reset: st; padding-left: 0; }
.prose ol.steps > li { counter-increment: st; position: relative; padding: .1rem 0 .55rem 2.6rem; margin: 0 0 .35rem; }
.prose ol.steps > li::before { content: counter(st); position: absolute; left: 0; top: .05rem; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 700; display: grid; place-items: center; }
.prose ul.checklist { list-style: none; padding-left: 0; }
.prose ul.checklist li { padding: .5rem 0 .5rem 2rem; border-bottom: 1px dashed var(--line); position: relative; margin: 0; }
.prose ul.checklist li::before { content: ""; position: absolute; left: .1rem; top: .78rem; width: 1rem; height: 1rem; border: 2px solid var(--accent); border-radius: 4px; background: var(--paper); }
.prose .table-wrap { margin: .4rem 0 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose th { background: var(--bg); text-align: left; font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; color: var(--steel); font-weight: 650; }
.prose th, .prose td { padding: .55rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose tbody tr:hover td { background: #fbfaf7; }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--steel); background: var(--paper); border-radius: 0 var(--radius) var(--radius) 0; padding: .8rem 1rem .2rem; margin: 1.2rem 0 1.4rem; }
.callout-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin: 0 0 .3rem; color: var(--steel); }
.callout-tip { border-left-color: var(--ok); background: #fafdfb; } .callout-tip .callout-label { color: var(--ok); }
.callout-warn { border-left-color: var(--accent); background: #fffaf7; } .callout-warn .callout-label { color: var(--accent); }
.callout-shop { border-left-color: #c9a227; background: #fffdf6; } .callout-shop .callout-label { color: var(--draft-ink); }
.callout p { margin: 0 0 .6rem; }
.sources { margin-top: 2.5rem; padding-top: .25rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.sources h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); color: var(--steel); margin-top: 1.25rem; }
.sources a { word-break: break-word; }
.review-box { background: var(--warn-soft); border: 1px solid #ecdfb4; border-radius: var(--radius); padding: .25rem 1.1rem .5rem; margin: 2rem 0 0; font-size: .93rem; }
.review-box h2 { font-size: 1rem; margin: 1rem 0 .5rem; color: var(--draft-ink); }
.price-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 2.2rem 0 0; padding: 1.1rem 1.25rem; background: var(--ink); color: #c9d0d2; border-radius: var(--radius); }
.price-cta p { margin: 0; font-size: .92rem; max-width: 30rem; }
.price-cta .price-cta-k { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--glow); }
.price-cta .price-cta-t { font-size: 1.12rem; font-weight: 700; color: #fff; margin: .15rem 0 .25rem; }
.report { margin: 1.5rem 0 0; font-size: .9rem; }
.related { margin-top: 3rem; }
.related h2 { font-size: 1.25rem; margin: 0 0 .9rem; }
.news-band { margin-top: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem 1.6rem; }
.news-band-t { font-size: 1.2rem; font-weight: 700; margin: 0 0 .3rem; }
.news-band p { margin: 0 0 .6rem; color: var(--muted); }
.news-band form.stack { max-width: none; }

/* forms (refined) */
form.stack { gap: .7rem; }
input[type="text"], input[type="email"], textarea, select { border-color: var(--line-2); border-radius: 8px; }
input[type="text"]:focus, input[type="email"]:focus, textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
button[type="submit"] { border-radius: 8px; justify-self: start; padding: .65rem 1.2rem; }
.meta { font-size: .82rem; }

/* ---------- Home ---------- */
.hero2 { background: radial-gradient(900px 380px at 85% -10%, rgba(228,87,46,.28), transparent 60%), linear-gradient(180deg, #15191c, #1d2327); color: #e8ebe9; position: relative; overflow: hidden; }
.hero2::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; mask-image: linear-gradient(180deg, #000 30%, transparent); }
.hero2-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 3.6rem 1.25rem 3.4rem; }
.hero2 h1 { color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.5rem); max-width: 20ch; margin: 0 0 .9rem; letter-spacing: -0.03em; }
.hero2-lede { font-size: 1.17rem; color: #c3cacc; max-width: 44rem; margin: 0 0 1.6rem; }
.hero-search { display: flex; align-items: center; gap: .7rem; width: min(38rem, 100%); font: inherit; font-size: 1rem; text-align: left; color: #5d6568; background: #fff; border: 0; border-radius: 12px; padding: .95rem 1.1rem; cursor: text; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero-search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qchips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1rem; font-size: .85rem; color: #9aa3a6; }
.qchip { font: inherit; font-size: .82rem; color: #e8ebe9; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: .22rem .7rem; cursor: pointer; }
.qchip:hover { background: rgba(255,255,255,.14); }
.stats { list-style: none; margin: -1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); position: relative; z-index: 2; }
.stats li { padding: 1.05rem 1.2rem; border-left: 1px solid var(--line); display: grid; gap: .1rem; }
.stats li:first-child { border-left: 0; }
.stats b { font-size: 1.6rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats span { font-size: .86rem; color: var(--muted); line-height: 1.35; }
.price-feature { margin-top: 2.5rem; display: grid; grid-template-columns: 1.35fr 1fr; gap: 2rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 2rem; box-shadow: var(--shadow); }
.price-feature h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .7rem; }
.price-feature p { color: var(--steel); }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.price-feature-art { display: grid; gap: .5rem; }
.pf-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; font-family: var(--mono); font-size: .86rem; background: #fbfaf7; }
.pf-row i { width: 30%; height: .45rem; border-radius: 4px; background: var(--bg-2); }
.pf-row b { font-family: var(--font); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; border-radius: 4px; padding: .1rem .45rem; }
.pf-best { background: var(--ok-soft); border-color: #b9dcc6; } .pf-best b { background: var(--ok); color: #fff; }
.pf-high { background: #fff5f0; border-color: #f3cbb8; } .pf-high b { background: var(--accent); color: #fff; }
.home-sec { margin-top: 3rem; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sec-head h2 { font-size: 1.4rem; margin: 0; }
.sec-head a { font-size: .92rem; font-weight: 600; text-decoration: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .6rem; }
.tile { display: flex; align-items: center; gap: .65rem; padding: .7rem .8rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 550; font-size: .93rem; line-height: 1.25; }
.tile:hover { border-color: var(--accent); color: var(--accent); }
.tile-mono { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .02em; }
.ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem; }
.ptile { display: grid; gap: .3rem; padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); border-top: 3px solid var(--steel); }
.ptile:hover { border-top-color: var(--accent); box-shadow: var(--shadow); color: var(--ink); }
.ptile span { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.home-split { margin-top: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.split-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem; text-decoration: none; color: var(--ink); }
a.split-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: var(--ink); }
.split-card h2 { font-size: 1.3rem; margin: 0 0 .5rem; }
.split-card p { color: var(--muted); }
.split-card .more { color: var(--accent); font-weight: 600; }
.split-news form.stack { max-width: none; }

/* legacy content pages re-skinned */
.wrap { max-width: var(--max); }
.card { border-radius: var(--radius); box-shadow: none; }
.hero { background: linear-gradient(180deg, var(--paper), var(--bg)); }

/* ---------- Footer ---------- */
.ftr { background: #15191c; color: #b9c0c2; margin-top: 2rem; padding: 2.75rem 1.25rem 2rem; font-size: .92rem; }
.ftr-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.ftr .brand { color: #fff; }
.ftr p { margin: .7rem 0 0; line-height: 1.55; }
.ftr-h { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #8b9497; margin: 0 0 .6rem !important; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.ftr a { color: #dfe4e2; text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr-legal { max-width: var(--max); margin: 2rem auto 0 !important; padding-top: 1.25rem; border-top: 1px solid #2b3236; font-size: .8rem; color: #879093; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .search-btn { min-width: 0; }
  .search-btn-label, .search-btn kbd { display: none; }
  .mega-inner { grid-template-columns: 1.5fr 1fr 1fr; }
  .mega-feature { grid-column: 1 / -1; display: flex; gap: 1rem; align-items: center; }
  .mega-feature .feature-card { flex: 1; }
}
@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr; gap: 0; }
  .guide-side { order: 0; position: static; max-height: none; margin-bottom: 1.5rem; }
  .toc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: .7rem .9rem; }
  .toc summary { margin: 0; }
  .toc[open] summary { margin-bottom: .5rem; }
  .price-feature { grid-template-columns: 1fr; padding: 1.4rem; }
  .news-band, .home-split { grid-template-columns: 1fr; }
  .ftr-inner { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  :root { --hdr: 3.4rem; }
  .menu-btn { display: inline-flex; }
  .mainnav { display: none; position: fixed; left: 0; right: 0; top: var(--hdr); bottom: 0; background: var(--paper); overflow: auto; margin: 0; padding: .75rem 1.25rem 2rem; border-top: 1px solid var(--line); }
  .mainnav.open { display: block; }
  .nav-top { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-top > li { border-bottom: 1px solid var(--line); }
  .nav-btn, .nav-link { width: 100%; justify-content: space-between; padding: .9rem .25rem; font-size: 1.02rem; border-radius: 0; }
  .nav-prices { justify-content: flex-start; }
  .mega { position: static; box-shadow: none; border: 0; }
  .mega-inner { grid-template-columns: 1fr; gap: 1.1rem; padding: .25rem .25rem 1.25rem; }
  .mega-feature { display: block; }
  .mega-list.two { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .hdr-inner { gap: .6rem; padding: 0 .9rem; }
  .brand-word { font-size: 1.05rem; }
  .hero2-inner { padding: 2.4rem 1rem 3rem; }
  .page, .guide { padding-left: 1rem; padding-right: 1rem; }
  .gcards { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .ftr-inner { grid-template-columns: 1fr; }
  .prose pre { font-size: .8rem; }
  .search-dlg { padding: 0; }
  .search-panel { border-radius: 0; min-height: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .hdr, .ftr, .guide-side, .news-band, .related, .price-cta, .search-dlg { display: none !important; } .guide-grid { display: block; } }

/* ======================================================================
   v3 polish (UX QA 2026-11-26): self-hosted fonts, a11y, guide reading aids
   ====================================================================== */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url(/fonts/plex-sans.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/plex-sans-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/plex-mono-500.woff2) format("woff2"); }
/* metric-matched fallback so the web-font swap does not move text (CLS) */
@font-face { font-family: "Plex Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 100.76%; ascent-override: 101.73%; descent-override: 27.29%; line-gap-override: 0%; }
:root {
  --font: "IBM Plex Sans", "Plex Fallback", "Segoe UI", system-ui, sans-serif;
  --faint: #646b6f;            /* was #7d8488: now ≥ 4.5:1 on paper and on --bg */
  --step--1: .875rem; --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.5rem; --step-3: 1.9rem;
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem;
}
::selection { background: #fbd9c8; color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
a, button { -webkit-tap-highlight-color: transparent; }
.prose a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }

/* reading progress (guides) */
.readbar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.readbar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--glow)); transform-origin: 0 50%; transform: scaleX(0); }

/* back to top */
.totop { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 40; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.totop.show { opacity: 1; transform: none; }
.totop:hover { color: var(--accent); border-color: var(--accent); }
.totop[hidden] { display: none; }

/* heading anchors */
.prose h2[id], .prose h3[id] { position: relative; }
.h-anchor { margin-left: .4rem; font-weight: 400; color: var(--faint); text-decoration: none !important; opacity: 0; transition: opacity .15s; font-size: .85em; }
.prose h2:hover .h-anchor, .prose h3:hover .h-anchor, .h-anchor:focus-visible { opacity: 1; }
.h-anchor:hover { color: var(--accent); }

/* code blocks: copy button */
.code-wrap { position: relative; margin: 0 0 1.2rem; }
.code-wrap pre { margin: 0 !important; padding-top: 2.1rem !important; }
.code-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: .35rem .5rem .35rem 1.1rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #9aa4a7; border-bottom: 1px solid #262d31; }
.copy-btn { font: 500 .72rem/1 var(--font); letter-spacing: 0; text-transform: none; color: #dfe4e2; background: #222a2e; border: 1px solid #364046; border-radius: 6px; padding: .32rem .55rem; cursor: pointer; display: inline-flex; gap: .3rem; align-items: center; }
.copy-btn:hover { background: #2c363b; color: #fff; }
.copy-btn.ok { color: #9fe3b5; border-color: #2f6b45; }

/* tables: visible scroll affordance */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background:
  linear-gradient(90deg, var(--paper) 30%, rgba(255,255,255,0)) left/2rem 100% no-repeat local,
  linear-gradient(270deg, var(--paper) 30%, rgba(255,255,255,0)) right/2rem 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, rgba(21,25,28,.14), transparent) left/.7rem 100% no-repeat scroll,
  radial-gradient(farthest-side at 100% 50%, rgba(21,25,28,.14), transparent) right/.7rem 100% no-repeat scroll; }
.table-wrap:focus-visible { outline-offset: 0; }

/* TOC: current-section label on mobile, sticky bar */
.toc-cur { display: none; }
@media (max-width: 900px) {
  .guide-side { position: sticky; top: var(--hdr); z-index: 20; margin: 0 -1.25rem 1.25rem; padding: .5rem 1.25rem; background: rgba(246,245,241,.96); backdrop-filter: blur(6px); }
  .toc { box-shadow: var(--shadow); }
  .toc summary { display: flex; align-items: center; gap: .5rem; min-height: 1.6rem; }
  .toc summary::after { content: ""; margin-left: auto; width: .5rem; height: .5rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
  .toc[open] summary::after { transform: rotate(-135deg); }
  .toc-cur { display: inline; font-family: var(--font); font-size: .86rem; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
  .toc[open] ol { max-height: 55vh; overflow: auto; }
}
@media (max-width: 520px) { .guide-side { margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; } }

/* search: hints + suggestions */
.search-hint { display: flex; gap: 1rem; flex-wrap: wrap; padding: .55rem 1rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); background: var(--bg); }
.search-hint kbd { margin-right: .2rem; }
.search-sugg { padding: .6rem 1rem .9rem; }
.search-sugg p { margin: .2rem 0 .5rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.search-sugg .chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.search-sugg button { font: inherit; font-size: .86rem; padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); cursor: pointer; }
.search-sugg button:hover { border-color: var(--accent); color: var(--accent); }
.search-fuzzy { margin: 0; padding: .5rem 1rem 0; font-size: .82rem; color: var(--muted); }
.search-empty { padding: 1rem 1.2rem; margin: 0; color: var(--muted); }

/* 404 */
.nf { max-width: 52rem; margin: 0 auto; padding: 3.5rem 1.25rem 2rem; }
.nf-code { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; color: var(--accent); margin: 0 0 .5rem; }
.nf h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 .6rem; }
.nf .lede { color: var(--muted); max-width: 38rem; }
.nf-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.4rem 0 2.2rem; }
.nf-search { display: flex; align-items: center; gap: .6rem; width: 100%; max-width: 34rem; font: inherit; color: var(--muted); background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; padding: .75rem .9rem; cursor: text; text-align: left; }
.nf-search:hover { border-color: var(--accent); }
.nf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; }
.nf-grid a { display: block; padding: .9rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.nf-grid a:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.nf-grid strong { display: block; font-size: .98rem; }
.nf-grid span { display: block; font-size: .84rem; color: var(--muted); margin-top: .2rem; line-height: 1.45; }
.btn-ghost { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1rem; border-radius: 8px; border: 1px solid var(--line-2); color: var(--ink); background: var(--paper); text-decoration: none; font-weight: 600; font-size: .95rem; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* print: clean article */
@media print {
  @page { margin: 16mm 14mm; }
  body { background: #fff; font-size: 11pt; color: #000; }
  .readbar, .totop, .crumbs, .report, .draft-strip, .copy-btn, .h-anchor, .skip, .chips, .inline-search { display: none !important; }
  .guide, .page { max-width: none; padding: 0; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #444; word-break: break-all; }
  .prose pre, .code-wrap pre { background: #f4f4f4 !important; color: #000 !important; border: 1px solid #ccc; white-space: pre-wrap; }
  .code-bar { display: none; }
  .code-wrap pre { padding-top: 1rem !important; }
  h2, h3 { break-after: avoid; } table, pre, .callout, figure { break-inside: avoid; }
  .table-wrap { overflow: visible; background: none; }
  details > *:not(summary) { display: block !important; }
}
@media (prefers-reduced-motion: reduce) { .readbar { display: none; } }

/* Quebec shops block (process guides) */
.shops { margin: 2.6rem 0 0; }
.shop-grid { list-style: none; margin: .9rem 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: .75rem; }
.shop { margin: 0 !important; padding: .95rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: .3rem; }
.shop::marker { content: none; }
.shop-partner { border-color: #e9b9a3; box-shadow: inset 3px 0 0 var(--accent); }
.shop-h { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; line-height: 1.3; }
.shop-h strong { font-size: 1rem; }
.pill-partner { background: var(--accent-soft); color: var(--accent-2); border: 1px solid #f1c7b3; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .1rem .45rem; border-radius: 999px; }
.shop-city { margin: 0 !important; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; color: var(--muted); }
.shop-d { margin: 0 !important; font-size: .9rem; line-height: 1.45; color: var(--steel); flex: 1; }
.shop-link { font-size: .86rem; font-weight: 600; margin-top: .2rem; }
.shop-note { margin-top: .8rem !important; font-size: .84rem; color: var(--muted); }
@media print { .shop-link::after { content: " (" attr(href) ")"; font-weight: 400; font-size: .8em; } }

/* brand on dark footer: AA contrast */
.ftr .brand .brand-word { color: #fff; }
.ftr .brand .brand-word b { color: #f97316; }

/* ---------- v3 UI tokens: one control height, one radius, 44 px touch targets ---------- */
:root { --ctl-h: 2.75rem; --ctl-h-sm: 2.5rem; --ctl-r: 8px; --ctl-fs: .95rem; --accent: #c2410c; }
.btn, .btn-ghost, .btn-lg { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: var(--ctl-h);
  padding: 0 1.15rem; border-radius: var(--ctl-r); font-size: var(--ctl-fs); font-weight: 600; line-height: 1.2; }
.btn-lg { min-height: 3rem; padding: 0 1.4rem; font-size: 1rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="number"], select { min-height: var(--ctl-h); border-radius: var(--ctl-r); }
select, .px select, .oc select { -webkit-appearance: none; appearance: none; padding-right: 2rem !important; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23586064' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .6rem center / 1rem; }
select:hover { border-color: var(--line-2); }
.px select, .px input[type="search"], .px input[type="number"], .oc select, .oc input[type="search"], .px-reset, .oc-reset { height: var(--ctl-h) !important; border-radius: var(--ctl-r) !important; }
.px-sort select, .oc-sort select { height: var(--ctl-h-sm) !important; }
.px-btn, .oc-btn { min-height: var(--ctl-h-sm); border-radius: var(--ctl-r); }
.px-check, .oc-check { min-height: var(--ctl-h-sm); }
.px-check input, .oc-check input { width: 1.15rem !important; height: 1.15rem !important; }
.lang a { min-width: 2.5rem; min-height: 2.25rem; display: inline-flex; align-items: center; justify-content: center; }
.search-btn, .menu-btn { min-height: 2.5rem; }
@media (pointer: coarse) {
  .px-btn, .oc-btn, .px-sort select, .oc-sort select, .px-check, .oc-check, .lang a, .search-btn, .menu-btn { min-height: var(--ctl-h) !important; }
  .nav-btn, .nav-link { min-height: var(--ctl-h); }
}
.ftr .brand-mark { box-shadow: 0 0 0 1px rgba(255,255,255,.14); border-radius: 8px; }
input[type="url"], input[type="number"], input[type="search"] { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); margin-top: .3rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ===================================================================
   Active / selected states — one strong pattern site-wide
   (prix, pièces, occasions, fournisseurs, codes d'erreur, guides).
   Selected = filled brand orange (#c2410c, 5.2:1 with white) + bold;
   hover = soft orange; keyboard focus = blue ring. "html" prefix so the
   section stylesheets (loaded after this one) can't water it down.
   =================================================================== */
html .px-tabs a, html .oc-tabs [role="tab"], html .pc-tabs [role="tab"] {
  border-radius: 8px 8px 0 0; border-bottom: 3px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}
html .px-tabs a:hover, html .oc-tabs [role="tab"]:hover, html .pc-tabs [role="tab"]:hover {
  background: var(--accent-soft); color: var(--accent-2);
}
html .px-tabs a[aria-selected="true"], html .oc-tabs [role="tab"][aria-selected="true"], html .pc-tabs [role="tab"][aria-selected="true"],
html .gtabs-list a[aria-selected="true"] {
  background: var(--accent); color: #fff; font-weight: 700; border-bottom-color: var(--accent-2);
  box-shadow: none;
}
html .oc-tabs [role="tab"][aria-selected="true"] small, html .pc-tabs [role="tab"][aria-selected="true"] small { color: #fff; opacity: .92; }
html .px-tabs, html .oc-tabs, html .pc-tabs { border-bottom: 2px solid var(--accent); }
html .gtabs-list a:hover:not([aria-selected="true"]) { background: var(--accent-soft); color: var(--accent-2); }

/* toggle chips / segmented buttons */
html .chip:hover:not([aria-pressed="true"]) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }
html .chip[aria-pressed="true"], html [aria-pressed="true"].chip {
  background: var(--accent); border-color: var(--accent-2); color: #fff; font-weight: 700;
  box-shadow: 0 0 0 2px var(--accent-soft);
}
html .chip[aria-pressed="true"]::before { content: "✓ "; }
html .pc-mcard.is-on, html .pc-mcard[aria-pressed="true"] {
  border: 2px solid var(--accent); background: var(--accent-soft); box-shadow: inset 5px 0 0 var(--accent), var(--shadow);
}
html .pc-mcard.is-on strong::after { content: " ✓"; color: var(--accent); }

/* filter dropdowns: a select that is not on its "Tous / Toutes / All" option looks set */
html select.cf-set {
  border: 2px solid var(--accent) !important; background-color: var(--accent-soft) !important;
  color: var(--accent-2) !important; font-weight: 700;
}
html label:has(> select.cf-set) > span { color: var(--accent-2); }
html label:has(> select.cf-set) > span::after { content: " ●"; color: var(--accent); }
/* checkbox / radio filters */
html input[type="checkbox"], html input[type="radio"] { accent-color: var(--accent); }
html label:has(> input[type="checkbox"]:checked), html label:has(> input[type="radio"]:checked) { color: var(--ink); font-weight: 700; }

/* sorted column header */
html th[aria-sort="ascending"], html th[aria-sort="descending"] { background: var(--accent-soft); color: var(--accent-2); box-shadow: inset 0 -3px 0 var(--accent); }
html th[aria-sort] button { font-weight: 700; color: inherit; }

/* keyboard focus on every switchable control */
html .px-tabs a:focus-visible, html .oc-tabs [role="tab"]:focus-visible, html .pc-tabs [role="tab"]:focus-visible,
html .chip:focus-visible, html .pc-mcard:focus-visible, html select:focus-visible, html th button:focus-visible,
html .grade-pick:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* "Affiché : …" summary of the current filter + brief highlight when results change */
.cf-showing { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .5rem 0 0; flex-basis: 100%; font-size: .92rem; }
.cf-showing > b { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; }
.cf-showing .cf-tag { display: inline-flex; align-items: center; padding: .22rem .65rem; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; }
.cf-showing .cf-tag.is-all { background: var(--bg-2); color: var(--ink); font-weight: 600; }
@keyframes cf-flash { 0% { background-color: #ffd9c2; box-shadow: 0 0 0 3px var(--accent); } 100% { background-color: transparent; box-shadow: 0 0 0 0 transparent; } }
.cf-flash { animation: cf-flash 1.1s ease-out; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .cf-flash { animation: none; outline: 3px solid var(--accent); outline-offset: 2px; } }
