/* ---------- Page scaffolding ---------- */
main { padding-block: var(--space-l) var(--space-xl); }
.intro { margin-bottom: var(--space-l); }
.hello { margin: 0; font-size: var(--step-3); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; max-width: 22ch; }
.hello .w { display: inline-block; }
.hello .soft { color: var(--ink-3); }
.lede { margin: var(--space-s) 0 0; color: var(--ink-2); max-width: 60ch; font-size: var(--step-0); }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-m); flex-wrap: wrap; margin-bottom: var(--space-m); }
.page-h h1 { margin: 0; font-size: var(--step-2); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; }
.page-h p { margin: 4px 0 0; color: var(--ink-2); font-size: var(--step--1); max-width: 62ch; }
.eyebrow { font-size: var(--step--2); font-weight: 500; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--space-m); }
.filters-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }
.filters-primary { min-height: 36px; }
.filters-secondary { padding-top: 6px; border-top: 1px dashed var(--line); animation: fadeIn 0.25s var(--ease); }
.filter-toggle { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: var(--step--1); background: var(--surface); box-shadow: var(--shadow-1); cursor: pointer; transition: background 0.2s, box-shadow 0.2s; color: var(--ink-2); }
.filter-toggle:hover { color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--line-2); }
.filter-toggle.active { background: var(--hover); color: var(--ink); font-weight: 600; }
.filter-toggle .sec-badge { font-size: 0.7rem; font-weight: 700; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--ink); color: var(--on-ink); display: inline-grid; place-items: center; }
.facet { position: relative; display: inline-flex; align-items: center; height: 32px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-1); transition: background 0.2s, box-shadow 0.2s; }
.facet:hover { box-shadow: var(--shadow-1), 0 0 0 1px var(--line-2); }
.facet select { appearance: none; -webkit-appearance: none; border: 0; background: none; height: 100%; padding: 0 30px 0 13px; font-size: var(--step--1); font-weight: 500; cursor: pointer; color: var(--ink); max-width: 230px; }
.facet::after { content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; opacity: 0.55; }
.facet.on { background: var(--ink); box-shadow: none; color: var(--on-ink); }
.facet.on select { color: var(--on-ink); }
.facet select option { color: var(--ink); background: var(--surface); }
.filters .meta { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 10px; align-items: center; font-size: var(--step--1); color: var(--ink-2); min-width: 0; }
@media (max-width: 700px) { .filters .meta { margin-left: 0; width: 100%; justify-content: flex-start; } }
.sort select { border: 0; background: none; font-weight: 500; color: var(--ink); cursor: pointer; }
.clear { border: 0; background: none; color: var(--ink-2); font-size: var(--step--1); text-decoration: underline; text-underline-offset: 3px; padding: 4px; }

