/* HR Remote Jobs — design system. Plain CSS, no build step.
   --accent is overridden per niche by an inline :root block in views/partials/head.ejs (from config.accent).
   8px spacing grid, 17px base, hairline borders, pill chips, light + dark. Mobile first. */

:root {
  --accent: #2457d6;
  --accent-ink: #ffffff;               /* text on accent */
  --accent-strong: color-mix(in srgb, var(--accent) 86%, #000);
  --tint: color-mix(in srgb, var(--accent) 8%, var(--surface));
  --tint-2: color-mix(in srgb, var(--accent) 14%, var(--surface));
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #fbfbfc;
  --ink: #12151b;
  --ink-2: #444b57;
  --ink-3: #6b7280;
  --line: #e4e7ec;
  --line-2: #d3d8e0;
  --ok: #157a46;
  --ok-tint: #e8f6ee;
  --warn: #8a5a00;
  --bad: #b3261e;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --pill: 999px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 8px 24px rgba(16, 24, 40, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --head-h: 64px;
  color-scheme: light;
}
/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 var(--s1); color: var(--ink); }
h1 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); font-weight: 760; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 650; }
p { margin: 0 0 var(--s2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--ink-3); }
.small { font-size: .88rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--s2); }
.narrow { max-width: 720px; }
.stack > * + * { margin-top: var(--s2); }
.row { display: flex; gap: var(--s1); align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.section { padding-block: var(--s5); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); margin-bottom: var(--s2); }
.section-title h2 { margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; font-weight: 700; color: var(--ink-3); margin-bottom: var(--s1); }

/* ---------- Header ---------- */
.demo-bar { background: #fff3cd; color: #5c4400; text-align: center; font-size: .85rem; padding: 6px 12px; }
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-head .bar { display: flex; align-items: center; gap: var(--s2); min-height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 780; letter-spacing: -0.02em; font-size: 1.08rem; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.nav { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 550; padding: 10px 12px; border-radius: var(--r-sm); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--tint); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--tint-2); }
.nav .btn { margin-left: var(--s1); color: var(--accent-ink); background: var(--accent); }
.nav .btn:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn.head-cta { display: none; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  /* Phones/tablets: one compact row (logo, Get alerts, Menu). Menu opens the nav as a full-width panel of big rows. */
  :root { --head-h: 56px; }
  .site-head .bar { flex-wrap: nowrap; gap: 8px; min-height: var(--head-h); }
  .brand { min-height: 44px; min-width: 0; }
  .btn.head-cta { display: inline-flex; margin-left: auto; min-height: 44px; padding: 0 14px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 600 .92rem/1 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .menu-btn[aria-expanded="true"] { background: var(--tint-2); border-color: var(--accent); }
  .nav .btn, .js .nav a.btn { display: none; }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 8px var(--s2) 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--head-h)); overflow-y: auto; }
  .js .site-head.menu-open .nav { display: flex; }
  .js .nav a { display: flex; align-items: center; min-height: 52px; padding: 0 12px; font-size: 1.05rem; }
  /* Without JS the nav stays a swipeable row under the logo. */
  .no-js .menu-btn { display: none; }
  .no-js .site-head .bar { flex-wrap: wrap; }
  .no-js .nav { order: 3; width: 100%; margin: 0 -8px; padding: 0 0 6px; overflow-x: auto; scrollbar-width: none; }
  .no-js .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: .92rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink);
  font: 650 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--accent-strong); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink-3); background: var(--surface); }
.btn.quiet { background: transparent; color: var(--accent); border-color: transparent; padding: 0 8px; }
.btn.small { min-height: 44px; padding: 0 14px; font-size: .9rem; }
.btn.tiny { min-height: 32px; padding: 0 10px; font-size: .82rem; }
.btn.block { width: 100%; }
.btn.big { min-height: 56px; font-size: 1.06rem; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=search], input[type=number], input[type=date], input[type=file], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px;
}
input[type=file] { padding: 10px; }
textarea { min-height: 200px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field { margin-bottom: var(--s2); }
.hint { color: var(--ink-3); font-size: .86rem; margin-top: 4px; font-weight: 400; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .94rem; margin: 10px 0; cursor: pointer; }
.check input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 var(--s2); }
.check-grid .check { margin: 6px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.check-grid .check:has(input:checked) { border-color: var(--accent); background: var(--tint); }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s2); margin: 0 0 var(--s3); background: var(--surface); }
legend { font-weight: 700; padding: 0 6px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; margin: 10px 0; }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }
.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.radio-cards label { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; font-weight: 400; cursor: pointer; background: var(--surface); margin: 0; }
.radio-cards label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.radio-cards strong { display: block; }
.errors { border: 1px solid var(--bad); color: var(--bad); border-radius: var(--r); padding: 12px 16px; margin-bottom: var(--s2); background: var(--surface); }
.errors ul { margin: 0; padding-left: 18px; }
.notice { border-left: 3px solid var(--accent); background: var(--tint); padding: 12px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .94rem; margin: 0 0 var(--s2); }
.notice.ok { border-color: var(--ok); background: var(--ok-tint); }
.inline-form { display: flex; gap: var(--s1); flex-wrap: wrap; }
.inline-form input[type=email] { flex: 1 1 220px; }

/* ---------- Cards, chips, badges ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.card.tinted { background: var(--tint); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: var(--pill);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: .84rem; font-weight: 550; text-decoration: none; white-space: nowrap;
}
a.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.cat { background: var(--tint); border-color: transparent; color: var(--accent); }
.chip.x::after { content: "×"; font-size: 1.05em; line-height: 1; opacity: .7; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--pill); font-size: .72rem; font-weight: 700; letter-spacing: .02em; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); vertical-align: 2px; white-space: nowrap; }
.badge.new { background: var(--ok-tint); color: var(--ok); border-color: transparent; }
.badge.feat { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.badge.agency { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
/* Listing flags (src/flags.js): small, muted amber. Informational, never alarming. */
.badge.flag { height: 20px; font-size: .68rem; font-weight: 650; letter-spacing: 0; color: var(--warn); background: color-mix(in srgb, var(--warn) 9%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 22%, transparent); cursor: help; }
.heads-up { border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--line)); border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 6%, var(--surface)); border-radius: 0 var(--r) var(--r) 0; padding: 14px 18px; margin: 0 0 var(--s3); }
.heads-up h2 { font-size: .95rem; margin: 0 0 6px; color: var(--warn); }
.heads-up ul { margin: 0 0 8px; padding-left: 1.1em; font-size: .94rem; }
.heads-up li { margin: 4px 0; }
.heads-up p { margin: 0; color: var(--ink-2); }
.mono { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-weight: 780; font-size: 1.1rem; color: var(--accent); background: var(--tint); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); flex: none; overflow: hidden; }
.mono img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

/* ---------- Hero ---------- */
.hero { padding: var(--s6) 0 var(--s4); background: radial-gradient(1200px 400px at 10% -10%, var(--tint-2), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 20ch; }
.hero .lede { color: var(--ink-2); font-size: 1.15rem; max-width: 56ch; margin-bottom: var(--s3); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s5); align-items: center; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s3); box-shadow: var(--shadow-lg); }
.hero-card h2 { font-size: 1.2rem; }
.hero-stats { display: flex; gap: var(--s3); flex-wrap: wrap; color: var(--ink-2); font-size: .92rem; margin-top: var(--s2); }
.hero-stats b { color: var(--ink); font-size: 1.2rem; display: block; }
.search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s1); max-width: 620px; }
.search input { min-height: 56px; font-size: 1.05rem; padding-left: 18px; border-radius: var(--r); }
.search .btn { min-height: 56px; border-radius: var(--r); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s3); } .hero { padding: var(--s4) 0 var(--s3); } }

/* ---------- Category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tile { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; color: var(--ink); min-height: 64px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.tile .n { font-weight: 750; color: var(--accent); font-variant-numeric: tabular-nums; }
.tile .n.zero { color: var(--ink-3); font-weight: 500; }
.tile .name { font-weight: 620; line-height: 1.3; }

/* ---------- Company strip ---------- */
.co-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.co-pill { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--pill); text-decoration: none; color: var(--ink); white-space: nowrap; scroll-snap-align: start; }
.co-pill .mono { width: 32px; height: 32px; border-radius: 50%; font-size: .85rem; }
.co-pill small { color: var(--ink-3); }
.co-pill:hover { border-color: var(--accent); }

/* ---------- Job cards ---------- */
.jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.jcard { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: var(--s2); padding: var(--s2) 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.jcard:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.jcard.featured { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(180deg, var(--tint), var(--surface) 70%); }
.jcard .t { font-weight: 680; font-size: 1.06rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; line-height: 1.3; }
.jcard .t::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); } /* whole card is the title link */
.jcard .t:hover { color: var(--accent); }
.jcard .co { position: relative; z-index: 1; color: var(--ink-2); font-weight: 550; text-decoration: none; font-size: .94rem; }
.jcard .co:hover { color: var(--accent); text-decoration: underline; }
.jcard .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.jcard .meta .chip { min-height: 28px; font-size: .8rem; padding: 0 10px; }
.jcard .side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; text-align: right; }
.jcard .when { font-size: .82rem; color: var(--ink-3); white-space: nowrap; }
.jcard .badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pay { font-weight: 650; color: var(--ink); }
.pay.none { color: var(--ink-3); font-weight: 450; font-style: italic; }
.chip.loc { color: var(--ink-2); }
.save-btn { position: relative; z-index: 2; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-3); cursor: pointer; padding: 0; }
.save-btn svg { width: 18px; height: 18px; }
.save-btn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--tint); }
.save-btn[aria-pressed="true"] svg { fill: currentColor; }
.no-js .save-btn { display: none; }
@media (max-width: 600px) {
  /* Phones: title + company beside a small monogram, then pay and where-you-can-live first, then a footer row:
     posted date, badges, Save (44px). The whole card is still the link. */
  .jcard { grid-template-columns: 36px minmax(0, 1fr); padding: 14px 14px 10px; gap: 0 12px; }
  .jcard .mono { width: 36px; height: 36px; font-size: .9rem; border-radius: 10px; }
  .jcard .t { display: block; font-size: 1.04rem; overflow-wrap: anywhere; }
  .jcard .co { display: inline-block; padding: 8px 0; margin: -6px 0; font-size: .92rem; }
  .jcard .meta { margin-top: 8px; gap: 6px; }
  .jcard .meta .chip { min-height: 28px; max-width: 100%; white-space: normal; line-height: 1.25; padding: 4px 10px; }
  .jcard .meta .pay { order: -2; }
  .jcard .meta .loc { order: -1; }
  .jcard .side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; margin-top: 6px; text-align: left; }
  .jcard .when { order: -1; }
  .jcard .badges { flex: 1 1 auto; min-width: 0; justify-content: flex-start; }
  .jcard .save-btn { margin-left: auto; }
}

/* ---------- Jobs list page ---------- */
.list-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s4); padding-block: var(--s4) var(--s6); align-items: start; }
.filter-panel { position: sticky; top: calc(var(--head-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; max-height: calc(100vh - var(--head-h) - 32px); overflow: auto; }
.filter-panel h2 { font-size: 1rem; }
.filter-panel .field { margin-bottom: 14px; }
/* Specialty multi-select: a compact checkbox list (sidebar on desktop, inside the bottom sheet on phones). */
.filter-panel .cat-checks { border: 0; padding: 0; background: none; border-radius: 0; min-width: 0; }
.filter-panel .cat-checks legend { padding: 0; margin: 0 0 4px; font-weight: 600; font-size: .92rem; }
.filter-panel .cat-checks .check { margin: 2px 0; padding: 6px 0; font-size: .9rem; gap: 10px; align-items: center; }
.filter-panel .cat-checks .check input { margin-top: 0; width: 18px; height: 18px; }
.filter-panel .cat-checks .check.is-zero { color: var(--ink-3); }
.filter-panel select, .filter-panel input:not([type=checkbox]):not([type=radio]) { min-height: 44px; padding: 8px 12px; font-size: .95rem; }
.filter-head { display: none; }
.filter-toggle { display: none; }
.sheet-backdrop { display: none; }
.apply-filters { display: flex; gap: 8px; }
.apply-filters .reset { flex: none; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s2); }
.results-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.results-head .count { color: var(--ink-3); font-size: .95rem; }
.active-chips { margin: 0 0 var(--s2); }
.sort { display: flex; gap: 6px; align-items: center; font-size: .9rem; color: var(--ink-3); }
.sort a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--pill); text-decoration: none; color: var(--ink-2); }
.sort a[aria-current] { background: var(--ink); color: var(--bg); }
.pager { display: flex; gap: var(--s1); justify-content: center; margin-top: var(--s3); flex-wrap: wrap; }
.empty { padding: var(--s5) var(--s3); text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--ink-2); }
.intro { color: var(--ink-2); max-width: 70ch; margin: 0 0 var(--s3); }
@media (max-width: 900px) {
  /* Phones: filters live in a bottom sheet opened by "Filters (n)". Works without JS through #filters:target. */
  .list-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: var(--s2); }
  .filter-toggle { display: inline-flex; gap: 6px; min-height: 44px; }
  .filter-panel { position: fixed; inset: auto 0 0 0; top: auto; z-index: 70; max-height: 88vh; max-height: 88dvh; border: 0; border-radius: 18px 18px 0 0; padding: 0 var(--s2); overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .22); transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
  .filter-panel:target, .filter-panel.open { transform: none; visibility: visible; transition: transform .25s ease; }
  .filter-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--surface); padding: 18px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: var(--s2); z-index: 1; }
  .filter-head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
  .filter-head strong { font-size: 1.1rem; }
  .filter-panel select, .filter-panel input:not([type=checkbox]):not([type=radio]) { font-size: 1rem; min-height: 48px; }
  .filter-panel .apply-filters { position: sticky; bottom: 0; margin: 8px calc(-1 * var(--s2)) 0; padding: 12px var(--s2) calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .filter-panel:target + .sheet-backdrop, .filter-panel.open + .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(10, 14, 20, .45); }
  html.sheet-open, html.sheet-open body { overflow: hidden; }
  .results-head { margin-bottom: 12px; }
  .results-head h1 { font-size: 1.5rem; }
  .list-tools { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
  .sort a { min-height: 44px; }
  /* Active filter chips: one swipeable row. */
  .active-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--s2)); padding: 2px 40px 4px var(--s2);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
  .active-chips::-webkit-scrollbar { display: none; }
  .active-chips .chip { flex: none; min-height: 44px; }
}

/* ---------- Job page ---------- */
.job-head { padding: var(--s4) 0 var(--s3); border-bottom: 1px solid var(--line); background: var(--surface); }
.job-head .crumbs { font-size: .9rem; margin-bottom: var(--s2); color: var(--ink-3); }
.job-head .crumbs a { color: var(--ink-3); }
.job-title-row { display: flex; gap: var(--s2); align-items: flex-start; }
.job-title-row .mono { width: 64px; height: 64px; font-size: 1.5rem; border-radius: 14px; }
.job-head h1 { margin-bottom: 6px; }
.job-head .co-line { font-size: 1.05rem; color: var(--ink-2); }
.job-head .co-line a { font-weight: 650; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s2) 0 0; padding: 0; list-style: none; }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "main side" "more side"; grid-template-rows: auto 1fr; column-gap: var(--s5); row-gap: var(--s4); padding-block: var(--s4) var(--s6); align-items: start; }
.job-main { grid-area: main; min-width: 0; }
.job-more { grid-area: more; min-width: 0; }
.job-layout > .apply-box { grid-area: side; }
/* Sticky only while it fits on screen; otherwise it scrolls inside itself so nothing is ever out of reach. */
.apply-box { position: sticky; top: calc(var(--head-h) + 16px); display: grid; gap: var(--s2); max-height: calc(100vh - var(--head-h) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
@media (max-height: 760px) { .apply-box { position: static; max-height: none; overflow: visible; } }
.apply-card { border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.apply-card .fine { font-size: .9rem; color: var(--ink-2); }
.apply-card .fine strong { color: var(--ink); }
.apply-card .alerts-note { font-size: .9rem; background: var(--tint); border-radius: var(--r-sm); padding: 10px 12px; color: var(--ink); margin: 0 0 12px; }
.apply-bar { display: none; }
@media (max-width: 900px) {
  .job-layout { grid-template-columns: 1fr; grid-template-areas: "main" "side" "more"; grid-template-rows: auto; gap: var(--s3); padding-top: var(--s3); }
  .apply-box { position: static; max-height: none; overflow: visible; }
  /* Fixed bottom Apply bar (views/job.ejs); slides away while the real apply box is on screen (public/js/app.js). */
  .apply-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; gap: 10px; align-items: center;
    padding: 10px var(--s2) calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); transition: transform .2s; }
  .apply-bar.away { transform: translateY(130%); }
  .apply-bar .btn { flex: 1 1 auto; min-width: 0; display: block; min-height: 48px; line-height: 48px; padding: 0 14px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .apply-bar .save-btn { width: 48px; height: 48px; }
  body:has(.apply-bar) { padding-bottom: 84px; }
  body:has(.apply-bar) .alert-bar { display: none !important; }
  .job-head { padding: var(--s2) 0 20px; }
  .job-head .crumbs { margin-bottom: 8px; }
  .job-head .crumbs a { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .job-title-row { gap: 12px; }
  .job-title-row .mono { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 12px; }
  .job-head h1 { font-size: 1.5rem; overflow-wrap: anywhere; }
  .job-head .co-line { line-height: 1.9; }
  .job-head .co-line a { display: inline-block; line-height: 1.4; padding: 6px 0; margin-right: 4px; }
  .facts { gap: 6px; align-items: center; }
  .facts .chip { max-width: 100%; white-space: normal; line-height: 1.25; min-height: 34px; padding: 6px 12px; }
  .facts a.chip { min-height: 44px; }
  .heads-up { padding: 12px 14px; overflow-wrap: anywhere; }
}

/* ---------- Prose / article ---------- */
.prose { font-size: 1.04rem; line-height: 1.7; max-width: 70ch; overflow-wrap: anywhere; }
.prose h1, .prose h2, .prose h3 { margin-top: 1.6em; }
.prose h2 { font-size: 1.4rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose img { border-radius: var(--r); }
.prose table { border-collapse: collapse; width: 100%; font-size: .94rem; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose blockquote { margin: 1.2em 0; padding: .4em 1.1em; border-left: 3px solid var(--accent); color: var(--ink-2); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--tint); padding: 1px 5px; border-radius: 4px; }
.article { max-width: 760px; margin: 0 auto; padding-block: var(--s5) var(--s6); }
.article-head .meta { color: var(--ink-3); font-size: .92rem; display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s3); }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: var(--s2); align-items: start; margin: var(--s4) 0; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--tint); }
.cta-box { margin: var(--s4) 0; }
.post-list { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.post-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.post-card:hover h2 { color: var(--accent); }
.post-card h2 { font-size: 1.15rem; margin: 0; }
.post-card p { color: var(--ink-2); margin: 0; font-size: .95rem; }

/* ---------- Company / directory ---------- */
.co-head { display: flex; gap: var(--s2); align-items: center; }
.co-head .mono { width: 72px; height: 72px; font-size: 1.7rem; border-radius: 16px; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s3); }
.az a { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 650; }
.co-list { columns: 3 260px; column-gap: var(--s3); list-style: none; padding: 0; margin: 0; }
.co-list li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.co-list .n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.letter { margin-top: var(--s3); color: var(--ink-3); font-size: .9rem; font-weight: 700; }

/* ---------- Salaries ---------- */
.sal-chart { width: 100%; height: auto; display: block; }
.sal-chart text { font: 11px var(--font); fill: var(--ink-2); }
.sal-chart .lbl { fill: var(--ink); font-weight: 600; }
.sal-chart .range { stroke: var(--line-2); stroke-width: 2; }
.sal-chart .bar { fill: var(--accent); }
.sal-chart .grid { stroke: var(--line); }
/* Pay-band chart (routes/directory.js bandChart). The wide SVG shows on tablets/desktop, the narrow one on phones. */
.band-card { margin: 24px 0; }
.band-chart { width: 100%; height: auto; display: block; font-family: var(--font); }
.band-chart text { fill: var(--ink-2); }
.band-chart .axis { fill: var(--ink-3); font-size: .85em; }
.band-chart .lbl { fill: var(--ink); font-weight: 600; }
.band-chart a:hover .lbl { fill: var(--accent); text-decoration: underline; }
.band-chart .grid { stroke: var(--line); }
.band-chart .end { fill: var(--ink-3); font-size: .85em; font-variant-numeric: tabular-nums; }
.band-chart .medv { fill: var(--ink); font-weight: 700; font-size: .85em; }
.band-card .band, .band-chart .band { fill: color-mix(in srgb, var(--accent) 28%, var(--surface)); }
.band-card .whisker, .band-chart .whisker { stroke: var(--ink-3); stroke-width: 1.5; }
.band-card .med, .band-chart .med { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.band-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; }
.band-legend span { display: inline-flex; align-items: center; gap: 6px; }
.band-narrow { display: none; }
@media (max-width: 640px) { .band-wide { display: none; } .band-narrow { display: block; } }
.sal-tbl .expect { font-weight: 400; margin-top: 2px; max-width: 46ch; }
@media (max-width: 640px) {
  /* Phones: each specialty becomes a small card; the four numbers sit in a row under the name. */
  .sal-tbl thead { display: none; }
  .sal-tbl tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); padding: 12px 14px; gap: 8px 6px; }
  .sal-tbl tr:last-child { border-bottom: none; }
  .sal-tbl td, .tbl.sal-tbl td { border: none; padding: 0; }
  .sal-tbl td:first-child { grid-column: 1 / -1; }
  .sal-tbl td.num, .tbl.sal-tbl td.num { text-align: left; font-size: .95rem; }
  .sal-tbl td.num::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 600; }
}
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.tbl { border-collapse: collapse; width: 100%; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); background: var(--surface-2); position: sticky; top: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: none; }
.tbl form { display: inline; }
.tbl .acts { white-space: nowrap; }
.tbl .acts button { font: inherit; font-size: .8rem; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; cursor: pointer; color: var(--ink-2); margin: 1px; }

/* ---------- Ads (off by default) ---------- */
.ad { margin: var(--s3) 0; padding: 8px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--surface-2); min-height: 120px; }
.ad-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 6px; }

/* ---------- Offer / alerts forms ---------- */
.offer h3, .offer h2 { font-size: 1.12rem; font-weight: 650; }
.offer .sub { color: var(--ink-2); font-size: .94rem; margin-bottom: 12px; }
.offer .fine { font-size: .8rem; color: var(--ink-3); margin: 8px 0 0; }
.offer.wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s3); align-items: center; }
@media (max-width: 760px) { .offer.wide { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Sticky mobile alerts bar + iOS hint ---------- */
.alert-bar { display: none; }
@media (max-width: 760px) {
  .alert-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; gap: 12px; align-items: center; justify-content: space-between;
    padding: 10px var(--s2) calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); transition: transform .2s; }
  .alert-bar span { font-size: .9rem; font-weight: 600; line-height: 1.25; }
  .alert-bar .btn { min-height: 44px; flex: none; }
  .js .alert-bar { transform: translateY(130%); }
  .js .alert-bar.show { transform: none; }
  body.has-alert-bar { padding-bottom: 76px; }
  body.no-alert-bar .alert-bar { display: none; }
}
.ios-hint { display: none; margin: 0 auto var(--s2); max-width: 1160px; padding: 0 var(--s2); }
.ios-hint.show { display: block; }
.ios-hint .card { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); padding: var(--s5) 0 var(--s4); margin-top: var(--s4); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.foot-grid h4, .foot-grid .foot-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
.who { display: grid; grid-template-columns: 64px 1fr; gap: var(--s2); align-items: start; }
.who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--tint); }
.foot-addr { font-size: .8rem; color: var(--ink-3); margin-top: var(--s4); border-top: 1px solid var(--line); padding-top: var(--s2); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.who-strip { display: grid; grid-template-columns: 88px 1fr; gap: var(--s3); align-items: center; }
.who-strip img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--tint); }
@media (max-width: 600px) { .who-strip { grid-template-columns: 64px 1fr; gap: var(--s2); } .who-strip img { width: 64px; height: 64px; } }

/* ---------- Employer pricing, admin (kept from v1) ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s5); padding-block: var(--s1) var(--s6); align-items: start; }
.side { position: sticky; top: calc(var(--head-h) + 16px); display: grid; gap: var(--s2); }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; gap: var(--s3); } .side { position: static; } }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: var(--s3) 0; }
.plan .price { font-size: 2.2rem; font-weight: 760; letter-spacing: -0.03em; }
.plan.hl { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare .big { font-size: 1.8rem; font-weight: 760; }
@media (max-width: 600px) { .compare { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0 28px; }
.stat .n { font-size: 1.8rem; font-weight: 760; letter-spacing: -0.02em; }
.stat .l { color: var(--ink-3); font-size: .82rem; }
.admin-nav { display: flex; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; font-size: .92rem; }
pre.log { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: .8rem/1.5 var(--mono); overflow-x: auto; white-space: pre-wrap; }
.st-good { color: var(--ok); } .st-bad { color: var(--bad); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters input, .filters select { width: auto; min-height: 40px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-head, .site-foot, .alert-bar, .apply-box, .filter-panel, .ad { display: none !important; } }

/* wordmark logo in header */
.brand img.wordmark{height:36px;width:auto;display:block}
@media (max-width:600px){.brand img.wordmark{height:32px}}
.chip.checked{color:var(--muted,#6b7280);font-size:.85em}

/* Trust row in the footer, blog "Last updated" line and "Related jobs" links (CHANGES-trust-seo.md) */
.foot-trust { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-top: var(--s4); font-size: .9rem; }
.foot-trust .eyebrow { margin: 0 6px 0 0; }
.foot-trust ul { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; margin: 0; padding: 0; }
.foot-trust li + li::before { content: "·"; color: var(--ink-3); margin-right: 10px; }
.foot-trust a { color: var(--ink-2); text-decoration: none; }
.foot-trust a:hover { color: var(--accent); }
.foot-trust span[aria-hidden] { color: var(--ink-3); }
.article-head .updated { margin: -4px 0 8px; }
.related-jobs { margin: 32px 0 24px; }
.related-jobs h2 { font-size: 1.2rem; margin-bottom: 12px; }

/* SEO audit (Nov 2026): h2s styled like the old h3s so heading levels never skip. */
h2.h3 { font-size: 1.08rem; font-weight: 650; }
.browse-cols { columns: 3 200px; column-gap: 24px; padding-left: 0; list-style: none; }
.browse-cols li { break-inside: avoid; margin: 0 0 6px; }

/* ---------- Mobile pass (Nov 2026, CHANGES-mobile.md) ----------
   Most visitors are on phones. Rules: nothing wider than the screen, tap targets 44px+, inputs 16px+ (no iOS zoom),
   swipeable chip rows instead of tall tile walls, Apply and Filters always one thumb away. */
.m-only { display: none; }
.tile-all { display: none; }
.cat-scroll .n { color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.chip.on .n { color: inherit; opacity: .75; }
.more-btn { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0 4px; padding: 0; border: 0; background: none; color: var(--accent); font: 600 .92rem var(--font); cursor: pointer; }
.section-title a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.co-strip { scrollbar-width: thin; }

@media (max-width: 760px) {
  .m-only { display: revert; }
  li.m-only { display: block; }
  .cat-scroll.m-only { display: flex; }
  .d-only { display: none !important; }
  .section { padding-block: var(--s4); }
  .section-title h2 { font-size: 1.2rem; }

  /* Home hero: headline, one short paragraph, the search box and a one-line stat row fit on the first screen. */
  .hero { padding: 20px 0 18px; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: 1.7rem; margin-bottom: 6px; }
  .hero .lede { font-size: 1rem; line-height: 1.45; margin-bottom: 14px; }
  .search input, .search .btn { min-height: 52px; }
  .search .btn { padding: 0 18px; }
  .hero-stats { gap: 6px 18px; margin-top: 12px; font-size: .88rem; }
  .hero-stats > div { display: flex; align-items: baseline; gap: 5px; }
  .hero-stats b { display: inline; font-size: 1rem; }

  /* Home specialty tiles -> one swipeable row of chips: busiest first, empty specialties dropped, "All specialties" last. */
  .cats-section { padding-block: 16px 20px; }
  .cats-section .section-title { margin-bottom: 8px; }
  .cats-section .section-title h2 { font-size: 1rem; }
  .tiles { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--s2); scrollbar-width: none; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--s2)); padding: 2px 40px 4px var(--s2);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .tiles::-webkit-scrollbar { display: none; }
  .tile { flex: none; order: var(--o, 0); scroll-snap-align: start; min-height: 44px; padding: 0 8px 0 14px; gap: 8px; border-radius: var(--pill); box-shadow: none; white-space: nowrap; }
  .tile:hover { transform: none; }
  .tile .name { font-size: .92rem; font-weight: 600; }
  .tile .n { min-width: 26px; height: 26px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: var(--pill); background: var(--tint); font-size: .82rem; }
  .tile.is-zero { display: none; }
  .tile-all { display: flex; order: 1; background: var(--tint); border-color: transparent; color: var(--accent); padding-right: 14px; }
  .tile-all .n { background: none; min-width: 0; padding: 0; }
  .offer-li { list-style: none; }

  /* /jobs and specialty pages: same swipeable row to hop between specialties. */
  .cat-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin: 0 calc(-1 * var(--s2)) 12px; padding: 2px 40px 4px var(--s2);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .cat-scroll::-webkit-scrollbar { display: none; }
  .cat-scroll .chip { flex: none; min-height: 44px; scroll-snap-align: start; }

  /* Long intro paragraphs: three lines, then "More". */
  .js .intro[data-clamp] { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: .96rem; margin-bottom: 8px; }
  .js .intro[data-clamp].open { display: block; }

  /* Companies strip: swipe, no scrollbar, fade edge. */
  .co-strip { scrollbar-width: none; margin-inline: calc(-1 * var(--s2)); padding: 2px 40px 8px var(--s2);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .co-strip::-webkit-scrollbar { display: none; }

  /* Tap targets. */
  a.chip { min-height: 44px; }
  .btn.tiny { min-height: 44px; }
  .az a { min-width: 44px; height: 44px; }
  .co-list li { padding: 0; align-items: center; }
  .co-list li a { flex: 1; padding: 11px 0; }
  .browse-cols li { margin: 0; }
  .browse-cols a { display: inline-flex; align-items: center; min-height: 44px; line-height: 1.3; }
  .article-head a, .crumbs a { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .check-grid .check { min-height: 44px; align-items: center; }
  .radio-cards input { width: 20px; height: 20px; accent-color: var(--accent); vertical-align: -4px; margin: 0 6px 0 0; }
  .apply-box .card a.small { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .check input { margin-top: 0; }
  fieldset { padding: 12px; }
  .card { padding: 20px; }
  .offer .fine { font-size: .82rem; }

  /* Legibility: nothing under 12px on phones. */
  .badge, .badge.flag, .eyebrow, .sal-tbl td.num::before, .ad-label { font-size: .75rem; }
  .badge.flag { height: 22px; }

  /* Footer: link columns with 44px rows; the Trust links as a tidy 2-column list. */
  .site-foot { padding: var(--s4) 0 var(--s3); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--s3) var(--s2); }
  .foot-grid ul { gap: 0; }
  .foot-grid a { display: flex; align-items: center; min-height: 44px; line-height: 1.3; padding: 4px 0; }
  .foot-trust { display: block; }
  .foot-trust .eyebrow { display: block; margin: 0 0 4px; }
  .foot-trust ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s2); }
  .foot-trust li + li::before { content: none; }
  .foot-trust a { display: flex; align-items: center; min-height: 44px; line-height: 1.3; }
  .foot-addr { margin-top: var(--s3); }
}
@media (max-width: 340px) {
  .hero h1 { font-size: 1.55rem; }
  .menu-btn span { display: none; }
  .search { grid-template-columns: minmax(0, 1fr) auto; }
  .search .btn { padding: 0 14px; }
}
.thin-card { margin-bottom: var(--s3); }
.thin-facts { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }

/* ---------- Light theme everywhere (Nov 5, 2026) ----------
   Same look as the emails: a solid blue header with white text over a pale blue-gray page and white cards.
   No dark mode: phones set to dark mode get this same light look. */
.site-head { background: var(--accent); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.site-head .brand, .site-head .brand span { color: #fff; }
.site-head .nav a { color: rgba(255,255,255,.9); }
.site-head .nav a:hover { color: #fff; background: rgba(255,255,255,.14); }
.site-head .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.2); }
.site-head .nav .btn, .site-head .btn.head-cta { background: #fff; color: var(--accent); border-color: #fff; }
.site-head .nav .btn:hover, .site-head .btn.head-cta:hover { background: #eef2ff; color: var(--accent-strong); }
@media (max-width: 860px) {
  .site-head .menu-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
  .site-head .menu-btn[aria-expanded="true"] { background: rgba(255,255,255,.18); border-color: #fff; }
  /* The opened menu is a white panel, so its links go back to dark text. */
  .js .site-head .nav a { color: var(--ink-2); }
  .js .site-head .nav a:hover, .js .site-head .nav a[aria-current="page"] { color: var(--ink); background: var(--tint-2); }
}
/* The wordmark is navy on transparent, so it sits on a white chip inside the blue header. */
.site-head .brand { background: #fff; padding: 4px 10px; border-radius: 10px; min-height: 0; }
.site-head .brand img.wordmark { height: 30px; width: auto; }
