/* ============ CVC × Astryx SPIKE v3 — OLD-SITE SKIN (2026-09-01) ============ */
/* Joe directive: skin the new build closely to the production site's design.
   Source of truth: E:\Projects\CVC\assets\css\styles.css (endorsed base, read-only ref).
   Palette/anatomy ported: sticky white blur header w/ centered nav + accent underline,
   135deg navy→blue hero (0 0 32px 32px), white pill search, #F1F4F9 chips,
   14px cards w/ shadow-rest + hover lift, navy footer rounded top.
   Base values still come from tokens-astryx.css + astryx.css; this layer overrides. */
:root {
  /* CVC old-site palette (styles.css :root, va15) */
  --cvc-ink: #0a1c28;         /* navy */
  --cvc-blue: #2563eb;        /* accent */
  --cvc-blue-hover: #1d4ed8;  /* accent-hover */
  --cvc-cyan: #2563eb;        /* cyan retired → accent (old site has no cyan) */
  --page-bg: #f7f9fc;
  --line: #e6eaf0;            /* hairline */
  --line-dark: #d7dee8;       /* hairline-dark */
  --muted: #5b6472;
  --surface: #ffffff;
  --surface-soft: #f6f9fc;
  --text: #0b1220;            /* ink */
  --text-strong: #0b1220;
  --line-soft: #e6eaf0;
  --line-faint: #eef2f7;
  --accent-tint: #eef4ff;
  --cyan-soft: #c3cedf;
  --gold: #f59e0b;
  --gold-deep: #9a6200;
  --gold-track: #dbe3ef;
  --danger: #e11d48;
  --danger-soft: #fff1f4;
  --hero-a: #0a1628;          /* hero-gradient 135deg stop 0 */
  --hero-b: #12294a;          /* stop 55% */
  --hero-c: #1e50c8;          /* stop 100% */
  --overlay: rgba(3, 13, 23, 0.58);
  --focus-ring: rgba(37, 99, 235, 0.35);
  --nav-shadow: rgba(16, 42, 72, 0.06);
  --hero-blue-light: rgba(94, 141, 255, 0.38);   /* old radial glow top-right */
  --hero-cyan-light: rgba(14, 165, 160, 0.16);   /* old radial glow mint bottom-left */
  --search-focus-bg: #ffffff;
  --search-focus-line: rgba(37, 99, 235, 0.35);
  --search-focus-shadow: rgba(4, 12, 28, 0.38);
  --gold-line: rgba(154, 98, 0, 0.08);
  --gold-line-hover: rgba(154, 98, 0, 0.1);
  --gold-shadow: rgba(154, 98, 0, 0.11);
  --gold-shadow-hover: rgba(154, 98, 0, 0.16);
  --blue-tint: #eef4ff;
  --blue-shadow: rgba(37, 99, 235, 0.25);
  --control-shadow: rgba(16, 42, 72, 0.05);
  --drawer-shadow: rgba(3, 13, 23, 0.25);
  --skeleton-base: #e8edf4;
  --skeleton-highlight: #f8fafc;
  /* old shadow trio */
  --shadow-rest: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-hover: 0 10px 28px rgba(16, 24, 40, 0.08);
  --shadow-card: var(--shadow-rest);
  --shadow-card-hover: var(--shadow-hover);
  --radius-card: 14px;
  --r-ctrl: 10px;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--page-bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
}
.island-light { color-scheme: light; min-height: 100vh; display: flex; flex-direction: column; }
::selection { background: #dbe6fb; color: #0b1220; }

/* ---------- nav (old site-header: sticky white blur, 3-col grid, centered nav) ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  min-height: 64px;
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-rest);
}
.nav .brand { height: 40px; width: auto; display: block; object-fit: contain; }
.nav nav { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 14px; justify-self: center; }
.nav nav a {
  position: relative; display: inline-block; padding: 8px 11px; border-radius: 8px;
  color: var(--muted); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.nav nav a:hover { color: var(--text); background: #f1f4f9; }
.nav nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav nav a[aria-current="page"]::after,
.nav nav a.active::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: -1px;
  height: 2px; border-radius: 2px; background: var(--cvc-blue);
}
.nav .btn { justify-self: end; }

/* ---------- hero (old hero-shell: 135deg navy→blue, 0 0 32px 32px, radial glows) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  border-radius: 0 0 32px 32px;
  padding: 72px 20px 80px;
  background: linear-gradient(135deg, var(--hero-a) 0%, var(--hero-b) 55%, var(--hero-c) 100%);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 320px at 78% 8%, var(--hero-blue-light), transparent 62%),
    radial-gradient(520px 300px at 8% 96%, var(--hero-cyan-light), transparent 60%);
}
/* drifting bars retired: glows become static radial aura like production */
.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: .5; }
.g1 { width: 480px; height: 320px; background: rgba(94, 141, 255, .30); top: -140px; right: 4%; }
.g2 { width: 380px; height: 280px; background: rgba(14, 165, 160, .14); bottom: -120px; left: 0; opacity: 1; }
.g3 { display: none; }
.eyebrow {
  position: relative; display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #c3cedf;
  padding: 0.3rem 0.95rem; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); margin-bottom: 1.15rem;
}
.hero h1 {
  position: relative; margin-top: 16px; color: #fff;
  font-size: clamp(2rem, 4.4vw, 2.95rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance;
}
.hero .grad { color: #fff; background: none; -webkit-background-clip: initial; background-clip: initial; }
.lede {
  position: relative; margin: 16px auto 0; max-width: 560px;
  color: #c3cedf; font-size: 16.5px; text-wrap: balance;
}
/* old hero-search-box: white pill, 14px radius, deep shadow */
.searchbar {
  position: relative; display: flex; gap: 8px; align-items: center;
  max-width: 620px; margin: 32px auto 0;
  padding: 6px 6px 6px 16px; border-radius: 14px;
  background: #fff; border: 1px solid transparent;
  box-shadow: 0 18px 44px var(--search-focus-shadow);
  transition: box-shadow .18s ease;
}
.searchbar:focus-within {
  box-shadow: 0 18px 44px var(--search-focus-shadow), 0 0 0 3px var(--search-focus-line);
}
.s-ico { position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%); color: #98a2b3; pointer-events: none; }
.searchbar input {
  flex: 1; padding: 0.62rem 0.9rem 0.62rem 2.45rem; font: inherit; color: var(--text);
  background: transparent; border: none; outline: none; min-width: 0;
}
.searchbar input::placeholder { color: #98a2b3; }
.searchbar input:focus { border: none; box-shadow: none; }
.searchbar .btn { flex: none; }
.stats { position: relative; display: flex; justify-content: center; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2.1rem; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column; gap: 0.1rem; min-width: 88px; }
.stats div + div { border-left: 1px solid rgba(255, 255, 255, 0.14); padding-left: clamp(1.5rem, 4vw, 3.5rem); }
.stats b { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.stats span {
  font-size: 0.76rem; color: rgba(195, 206, 223, 0.85);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}

/* ---------- buttons (old .button system) ---------- */
.btn {
  font: inherit; font-weight: 600; font-size: 14.5px; letter-spacing: -0.005em;
  cursor: pointer; border-radius: var(--r-ctrl); border: 1px solid transparent;
  padding: 10px 16px; line-height: 1.3; white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn.cta { color: #fff; background: var(--cvc-blue); box-shadow: var(--shadow-rest); }
.btn.cta:hover { background: var(--cvc-blue-hover); color: #fff; box-shadow: var(--shadow-hover); }
.btn.cta.sm { padding: 8px 14px; font-size: 13px; }
.btn.cta span { margin-left: 0.15rem; }
a.btn.cta { display: inline-flex; align-items: center; text-decoration: none; }
.btn.shortlist {
  background: var(--surface); color: #3b4b5f; border-color: var(--line-dark);
  display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem;
}
.btn.shortlist:hover { border-color: var(--danger); color: var(--danger); background: #fff; }
.btn.shortlist.on { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }

/* ---------- layout (old directory-layout: 288px rail, 1360 canvas) ---------- */
.layout {
  display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 24px;
  width: 100%; max-width: 1360px; margin: 0 auto;
  padding: 32px clamp(1rem, 2vw, 24px) 64px;
  align-items: start;
}
.filters {
  position: sticky; top: 80px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 14px 16px 20px; box-shadow: var(--shadow-rest);
  max-height: calc(100vh - 100px); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent;
}
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.panel-heading h2 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.4rem; }
.reset { font: inherit; font-size: 0.78rem; font-weight: 600; color: var(--cvc-blue); background: none; border: none; cursor: pointer; padding: 0; }
.reset:hover { text-decoration: underline; }
.fgroup { border-bottom: 1px solid var(--line-soft); padding: 0.55rem 0; }
.fgroup summary {
  list-style: none; cursor: pointer; font-size: 0.82rem; font-weight: 700; color: #2c3e52;
  display: flex; align-items: center; justify-content: space-between;
}
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary .chev { color: #98a2b3; font-size: 0.7rem; transition: transform .15s; }
.fgroup:not([open]) summary .chev { transform: rotate(-90deg); }
.fgroup-body { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.4rem 0 0.2rem; }
.check { display: flex; align-items: center; gap: 0.5rem; padding: 0.28rem 0.2rem; border-radius: 8px; cursor: pointer; font-size: 0.84rem; color: #34455a; }
.check:hover { background: #f4f7fb; }
.check input { accent-color: var(--cvc-blue); width: 15px; height: 15px; cursor: pointer; }
.check .ck-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check .ck-count { font-size: 0.72rem; color: #8b99ab; background: #eef2f7; border-radius: 999px; padding: 0.05rem 0.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.switchrow { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.2rem; border-bottom: 1px solid var(--line-soft); }
.sw-text { font-size: 0.84rem; font-weight: 600; color: #2c3e52; display: flex; flex-direction: column; }
.sw-sub { font-size: 0.72rem; color: var(--muted); font-weight: 400; }
.switch { width: 34px; height: 19px; appearance: none; border-radius: 999px; background: #cbd5e1; position: relative; cursor: pointer; transition: background .15s; flex: none; margin-left: auto; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.switch:checked { background: var(--cvc-blue); }
.switch:checked::after { left: 17px; }
.fgroup.static { padding: 0.65rem 0.2rem 0.2rem; border-bottom: none; }
.fgroup-title { font-size: 0.82rem; font-weight: 700; color: #2c3e52; margin-bottom: 0.45rem; }
.range { width: 100%; accent-color: var(--cvc-blue); cursor: pointer; }
.range-lbl { font-size: 0.76rem; color: var(--muted); margin-top: 0.15rem; text-align: right; }

.content { min-width: 0; }

/* ---------- sections ---------- */
.cards, .power { padding: 0 0 0; }
.sec-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.sec-head h2 { font-size: 1.28rem; letter-spacing: -0.02em; font-weight: 800; }
.muted { color: var(--muted); font-size: 0.85rem; }

/* ---------- stars ---------- */
.stars { position: relative; display: inline-block; font-size: 12.5px; line-height: 1; letter-spacing: 1.5px; }
.stars .track { color: var(--gold-track); }
.stars .fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--gold); }
.score-ring { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1rem; flex: none; }
.score-ring strong { color: var(--gold-deep); font-size: 0.86rem; }
.cell-score { display: inline-flex; align-items: center; gap: 0.4rem; justify-content: flex-end; }
.cell-score b { font-size: 0.82rem; color: var(--gold-deep); font-variant-numeric: tabular-nums; }

/* ---------- logos ---------- */
.vlogo { width: 100%; height: 100%; object-fit: contain; display: block; }
.vlogo.sm { width: 26px; height: 26px; }
.logo-tile {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-rest);
  padding: 6px; overflow: hidden;
}
.vlogo.fallback {
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; color: #fff;
  background: linear-gradient(135deg, #2563eb, #0ea5a0); border-radius: 8px; padding: 0;
}

/* ---------- cards (old vcard: hairline, r-14, shadow-rest, hover -2px lift) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card { animation: card-in 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.15s; }
.card:nth-child(5) { animation-delay: 0.2s; }
.card:nth-child(n+6) { animation-delay: 0.25s; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 0.68rem;
  min-height: 304px;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow-rest);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}
.card::before { content: none; } /* top gradient bar retired — old vcard has none */
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--line-dark); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; }
.card-title { display: flex; gap: 0.8rem; min-width: 0; }
.card h3 { font-size: 16.5px; letter-spacing: -0.015em; font-weight: 700; margin: 0.05rem 0 0.1rem; line-height: 1.25; }
.card-sub { font-size: 0.78rem; color: var(--muted); }
.cat-line { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.pill {
  display: inline-block; font-size: 12.5px; font-weight: 500; padding: 3px 10px;
  border-radius: 999px; white-space: nowrap; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis;
}
.pill.ghost { background: #f1f4f9; color: #475161; border: 1px solid var(--line); }
.pill.web { background: var(--accent-tint); color: #1d4ed8; border: 1px solid #dbe6fb; font-weight: 500; }
.pill.primary { background: var(--cvc-blue); color: #fff; border: 1px solid var(--cvc-blue); }
.desc {
  color: var(--muted); font-size: 14px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em; margin-top: 0.05rem;
}
.meta-row { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; padding: 0.5rem 0 0.15rem; border-top: 1px solid var(--line-faint); margin-top: 0.15rem; margin-top: auto; }
.meta-row span { font-size: 13px; color: var(--muted); }
.meta-row b { color: #8b99ab; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 0.25rem; }
.card-ctas { display: flex; gap: 0.5rem; margin-top: 0.35rem; }
.card-ctas .btn.cta { flex: 1; justify-content: center; font-size: 0.86rem; padding: 0.5rem 0.8rem; min-height: 38px; }
.card-ctas .btn.shortlist { padding: 0.5rem 0.8rem; min-height: 38px; }
.more-row { text-align: center; padding: 0.9rem 0 0.2rem; }

/* score dial (gold #F59E0b, old meter family) */
.score-dial {
  --dial-size: 52px;
  position: relative; width: var(--dial-size); height: var(--dial-size);
  flex: 0 0 var(--dial-size); display: grid; place-content: center;
  border-radius: 50%; color: var(--gold-deep);
  background:
    radial-gradient(circle, var(--surface) 61%, transparent 63%),
    conic-gradient(var(--gold) var(--score-progress), var(--gold-track) 0);
  box-shadow: inset 0 0 0 1px var(--gold-line), 0 5px 16px var(--gold-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover .score-dial {
  transform: scale(1.05);
  box-shadow: inset 0 0 0 1px var(--gold-line-hover), 0 8px 20px var(--gold-shadow-hover);
}
.score-dial span { font-size: 0.9rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.score-dial small { margin-top: 2px; color: var(--muted); font-size: 0.58rem; line-height: 1; text-align: center; }

/* ---------- skeletons ---------- */
.skeleton-card { pointer-events: none; }
.skeleton {
  display: block; overflow: hidden; border-radius: 7px;
  background: linear-gradient(100deg, var(--skeleton-base) 25%, var(--skeleton-highlight) 42%, var(--skeleton-base) 60%);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.35s ease-in-out infinite;
}
.skeleton-head { display: flex; align-items: flex-start; gap: 0.8rem; }
.skeleton-logo { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.skeleton-copy { display: flex; flex: 1; flex-direction: column; gap: 0.45rem; padding-top: 0.1rem; }
.skeleton-kicker { width: 38%; height: 8px; }
.skeleton-title { width: 68%; height: 16px; }
.skeleton-sub { width: 54%; height: 9px; }
.skeleton-score { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.skeleton-pills { display: flex; gap: 0.35rem; margin-top: 0.15rem; }
.skeleton-pills .skeleton { width: 24%; height: 20px; border-radius: 999px; }
.skeleton-line { width: 100%; height: 10px; margin-top: 0.15rem; }
.skeleton-line.short { width: 74%; }
.skeleton-actions { display: flex; gap: 0.5rem; margin-top: auto; }
.skeleton-actions .skeleton { width: 50%; height: 38px; border-radius: 11px; }
@keyframes skeleton-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}

/* ---------- empty state ---------- */
.empty-state {
  min-height: 320px; display: grid; place-items: center; align-content: center; gap: 0.55rem;
  padding: 2.2rem; text-align: center;
  border: 1px dashed var(--line-dark); border-radius: var(--radius-card); background: var(--surface);
}
.empty-state .empty-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 0.25rem;
  border-radius: 50%; color: var(--cvc-blue); background: var(--accent-tint); font-size: 1.7rem;
}
.empty-state h3 { font-size: 1.08rem; }
.empty-state p { max-width: 42ch; color: var(--muted); }
.empty-state .btn { margin-top: 0.4rem; }
.power.is-empty { display: none; }

/* ---------- power table ---------- */
.power { padding-bottom: 2.5rem; margin-top: 1.6rem; }
.table-wrap {
  border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-rest);
}
.table-wrap table { width: 100%; }
.table-wrap thead th {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); background: var(--surface-soft); border-bottom: 1px solid var(--line) !important;
  padding: 0.7rem 0.9rem !important;
}
.table-wrap tbody tr:nth-child(even) td { background: rgba(247, 249, 252, 0.7); }
.table-wrap tbody tr:hover td { background: rgba(37, 99, 235, 0.05) !important; }
.table-wrap tbody td { padding: 0.6rem 0.9rem !important; }
.cell-vendor { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.cv-name { font-weight: 700; font-size: 0.88rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-dom { font-size: 0.72rem; color: #98a2b3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-desc { display: block; font-size: 0.84rem; color: var(--muted); max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-wrap button { border-radius: 8px; transition: all .15s ease; }
.table-toolbar {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.62rem 0.9rem; color: var(--muted); background: var(--surface);
  border-bottom: 1px solid var(--line-soft); font-size: 0.77rem;
}
.table-toolbar b { color: var(--text); }
.table-wrap button[aria-label^="Sort by"] {
  min-height: 28px !important; padding: 0.25rem 0.35rem !important;
  border: 0 !important; border-radius: 7px !important;
  color: var(--muted) !important; background: transparent !important;
  box-shadow: none !important; font: inherit !important; font-weight: 700 !important;
  cursor: pointer !important;
  transition: color 150ms ease, background 150ms ease !important;
}
.table-wrap button[aria-label^="Sort by"]:hover { color: var(--cvc-blue) !important; background: var(--accent-tint) !important; }
.table-wrap nav[aria-label="Table pagination"] {
  gap: 0.3rem !important; padding: 0.8rem 0.9rem !important;
  background: var(--surface-soft) !important; border-top: 1px solid var(--line-soft) !important;
}
.table-wrap nav[aria-label="Table pagination"] button {
  min-width: 34px !important; min-height: 34px !important;
  border: 1px solid var(--line-soft) !important; border-radius: 9px !important;
  color: var(--text) !important; background: var(--surface) !important;
  box-shadow: 0 1px 2px var(--control-shadow) !important;
}
.table-wrap nav[aria-label="Table pagination"] button:hover:not(:disabled) {
  border-color: var(--cvc-blue) !important; color: var(--cvc-blue) !important; transform: translateY(-1px);
}
.table-wrap nav[aria-label="Table pagination"] button[aria-current="page"] {
  border-color: var(--cvc-blue) !important; color: var(--surface) !important;
  background: var(--cvc-blue) !important; box-shadow: 0 5px 14px var(--blue-shadow) !important;
}
.table-wrap nav[aria-label="Table pagination"] button:disabled { opacity: 0.42 !important; }

/* ---------- footer (old site-footer: navy, 32px rounded top) ---------- */
.foot {
  margin-top: auto; padding: 40px clamp(1rem, 3vw, 2rem) calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--cvc-ink); color: #8fa1b8; font-size: 12.5px;
  text-align: center; letter-spacing: 0.01em;
  border-radius: 32px 32px 0 0;
}
.foot span { color: #8fa1b8; }
.foot small { display: block; margin: 0.5rem auto 0; max-width: 640px; color: #6d7f93; font-size: 11.5px; line-height: 1.55; }
.foot a { color: #c6d2e2; }

/* ---------- focus + motion ---------- */
.island-light { isolation: isolate; }
:where(a, button, input, summary):focus-visible {
  outline: 3px solid var(--cvc-blue);
  outline-offset: 3px;
}
.panel-actions { display: flex; align-items: center; gap: 0.7rem; }
.filter-close, .filter-backdrop, .mobile-tools { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .layout { grid-template-columns: 1fr; padding-top: 1rem; }
  .filters { position: static; max-height: none; }
  .mobile-tools {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem;
  }
  .mobile-tools > span { color: var(--muted); font-size: 0.8rem; }
  .mobile-filter-trigger {
    display: inline-flex; align-items: center; gap: 0.45rem;
    min-height: 40px; padding: 0.5rem 0.8rem;
    border: 1px solid var(--line-dark); border-radius: var(--r-ctrl);
    color: var(--text); background: var(--surface);
    font: inherit; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-rest);
  }
  .mobile-filter-trigger > span {
    min-width: 20px; padding: 0.05rem 0.34rem; border-radius: 999px;
    color: var(--surface); background: var(--cvc-blue); font-size: 0.68rem; text-align: center;
  }
  .filters {
    position: fixed; z-index: 110; inset: 0 auto 0 0;
    width: min(360px, 90vw); max-height: 100dvh;
    padding: 1.1rem 1.15rem 1.4rem; border-width: 0 1px 0 0;
    border-radius: 0 18px 18px 0;
    box-shadow: 24px 0 60px var(--drawer-shadow);
    transform: translateX(-104%); visibility: hidden;
    transition: transform 220ms ease, visibility 220ms ease;
  }
  .filters.is-open { transform: translateX(0); visibility: visible; }
  .filter-backdrop {
    position: fixed; z-index: 105; inset: 0; border: 0;
    background: var(--overlay); opacity: 0; visibility: hidden; cursor: pointer;
    transition: opacity 220ms ease, visibility 220ms ease;
  }
  .filter-backdrop.is-open { display: block; opacity: 1; visibility: visible; }
  .filter-close {
    display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
    border: 1px solid var(--line-soft); border-radius: 9px;
    color: var(--text); background: var(--surface-soft);
    font: inherit; font-size: 1.25rem; line-height: 1; cursor: pointer;
  }
}
@media (max-width: 720px) {
  .nav { gap: 0.65rem; padding-inline: 1rem; grid-template-columns: auto 1fr auto; }
  .nav nav { display: none; }
  .nav .brand { max-width: min(47vw, 175px); height: auto; }
  .nav .btn { justify-self: end; }
  .hero { padding: 2.6rem 1rem 2.5rem; border-radius: 0 0 24px 24px; }
  .hero h1 { font-size: clamp(1.82rem, 9vw, 2.55rem); }
  .lede { font-size: 0.95rem; }
  .searchbar { flex-direction: column; align-items: stretch; padding: 10px; gap: 8px; }
  .searchbar .s-ico { display: none; }
  .searchbar input { padding: 0.55rem 0.9rem; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; }
  .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 0.75rem; }
  .stats div { min-width: 0; }
  .stats div + div { border-left: none; padding-left: 0; }
  .layout { padding-inline: 1rem; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; }
  .card-head { gap: 0.45rem; }
  .score-dial { --dial-size: 48px; }
  .card-ctas { flex-wrap: wrap; }
  .card-ctas .btn { min-width: 120px; }
  .table-wrap { overflow-x: auto; overscroll-behavior-inline: contain; }
  .table-wrap table { min-width: 760px !important; }
  .table-toolbar { font-size: 0.72rem; }
  .foot { padding-inline: 1rem; border-radius: 24px 24px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card:hover, .btn.cta:hover, .table-wrap nav[aria-label="Table pagination"] button:hover:not(:disabled) { transform: none; }
}

/* ---------- vendor detail drawer (JOE-2925 profile parity, old-site tint) ---------- */
.drawer-root { position: fixed; inset: 0; z-index: 60; }
.drawer-backdrop { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(15, 18, 34, 0.55); backdrop-filter: blur(2px); cursor: pointer; animation: fade-in 0.2s ease both; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(680px, 94vw);
  background: var(--surface); color: var(--text);
  box-shadow: -24px 0 60px var(--drawer-shadow);
  overflow-y: auto; padding: 1.4rem 1.6rem 2.2rem;
  animation: drawer-in 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.drawer-crumbs { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; font-size: 0.78rem; color: var(--muted); margin-bottom: 1rem; }
.drawer-crumbs button { border: 0; background: none; padding: 0; font: inherit; color: var(--cvc-blue); cursor: pointer; }
.drawer-crumbs button:hover { text-decoration: underline; }
.drawer-hero { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.drawer-hero-copy { flex: 1; min-width: 0; }
.drawer-hero-copy .state-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.3rem; }
.drawer-hero-copy h2 { font-size: 1.45rem; letter-spacing: -0.02em; margin: 0.1rem 0 0.4rem; }
.drawer-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.55rem; }
.drawer-desc { font-size: 0.92rem; line-height: 1.5; color: var(--muted); }
.drawer-panel { margin-top: 1.2rem; padding-top: 0.9rem; border-top: 1px solid var(--line-soft); }
.drawer-panel > h3 { font-size: 0.98rem; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 0.7rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1.1rem; }
.detail-item { border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.75rem; background: var(--surface); }
.detail-item.wide { grid-column: 1 / -1; }
.detail-item strong { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.25rem; }
.detail-item p { margin: 0; font-size: 0.88rem; line-height: 1.45; }
.detail-list { margin: 0; padding-left: 1.05rem; font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.detail-list li { margin-bottom: 0.2rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.related-card {
  display: flex; gap: 0.6rem; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  padding: 0.5rem 0.65rem; cursor: pointer; text-align: left; font: inherit; color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
.related-card:hover { border-color: var(--cvc-blue); background: var(--accent-tint); }
.related-card b { display: block; font-size: 0.88rem; }
.related-card small { display: block; font-size: 0.74rem; color: var(--muted); }
.drawer-note { margin-top: 1.4rem; font-size: 0.76rem; line-height: 1.5; color: var(--muted); }
.drawer-cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 720px) {
  .drawer { padding: 1.1rem 1rem 1.8rem; }
  .drawer-hero { flex-wrap: wrap; }
  .drawer-hero-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .detail-grid, .related-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- category browse (JOE-2925: production category strip look) ---------- */
.category-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.category-pill {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 14px;
  border: 1px solid var(--line-dark); border-radius: var(--r-ctrl);
  background: var(--surface);
  box-shadow: var(--shadow-rest);
  cursor: pointer; text-align: left;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.category-pill:hover { border-color: #c4cedc; background: #fafcff; transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.category-pill.active {
  background: var(--cvc-blue); border-color: var(--cvc-blue);
  box-shadow: 0 5px 14px var(--blue-shadow);
}
.category-pill.active .cp-name { color: #fff; }
.category-pill.active .cp-count { color: rgba(255, 255, 255, 0.8); }
.category-pill .cp-name { font-size: 13px; font-weight: 600; color: var(--text); }
.category-pill .cp-count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.related-grid.browse-grid .related-card.browse-cat { flex-direction: column; align-items: flex-start; gap: 2px; }
.related-grid.browse-grid .related-card.browse-cat.current { border-color: var(--cvc-blue); background: var(--accent-tint); }

/* ---------- craft layer: touch + print (website-builder skill §5/§7) ---------- */
@media (pointer: coarse) {
  .nav nav a { padding: 11px 13px; }
  .check { padding: 0.45rem 0.2rem; }
  .table-wrap nav[aria-label="Table pagination"] button { min-width: 40px !important; min-height: 40px !important; }
}
@media print {
  .nav, .hero, .filters, .drawer-root, .card-ctas, .more-row, .foot small, .mobile-tools { display: none !important; }
  .layout { grid-template-columns: 1fr; padding: 0; max-width: none; }
  body { background: #fff; }
  .card, .table-wrap { box-shadow: none !important; break-inside: avoid; }
  .foot { border-radius: 0; padding: 12px 0; }
}

/* JOE-2960: card name links to full vendor page (drawer retired for opens) */
.name-link{color:inherit;text-decoration:none}
.name-link:hover,.name-link:focus-visible{text-decoration:underline;text-underline-offset:3px}

/* ---------- competition banner (JOE-3058: static, no JS injection) ---------- */
.comp-banner {
  background: linear-gradient(135deg, #0a1628, #2563eb);
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  font-size: 1rem;
  line-height: 1.4;
  position: relative;
  z-index: 200;
}
.comp-banner p { margin: 0; }
.comp-banner a { color: #93c5fd; font-weight: 600; text-decoration: underline; }
.comp-banner a:hover, .comp-banner a:focus-visible { color: #fff; }

/* Joe-approved finder width, category boxes and card text. */
#island-root .layout {max-width:none;padding-inline:24px;}
.trialconnect-promo {display:block;width:fit-content;margin:0 auto 18px;padding:7px 12px;border:1px solid #829dc5;border-radius:20px;color:#fff;font-size:13px;position:relative;}
.finder-category-band {padding:24px;}
.finder-category-band h2 {font-size:20px;margin-bottom:16px;}
.finder-category-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;}
.finder-category-grid button {font:inherit;padding:16px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);cursor:pointer;}
.finder-category-grid button[aria-pressed=true] {border-color:var(--cvc-blue);background:var(--accent-tint);}
.finder-category-grid span {display:block;margin-top:6px;color:var(--muted);}
#island-root .cards .grid {grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));}
#island-root .card-top {flex-wrap:wrap;}
#island-root .no-reviews {white-space:normal;overflow:visible;flex-shrink:0;max-width:100%;height:auto;}
#island-root .pill {white-space:normal;overflow-wrap:anywhere;}
@media(max-width:480px){#island-root .layout,.finder-category-band{padding-inline:16px;}}

/* Keep review labels below the title when the tile is tight. */
#island-root .card-head {flex-wrap:wrap;}
#island-root .card-title {flex:1 1 210px;min-width:0;}
#island-root .card-title > div {min-width:0;}
#island-root .browse-sort {display:flex;align-items:center;gap:8px;font-size:13px;}
#island-root .browse-sort select {max-width:100%;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);}
