/* ─── TOKENS ─────────────────────────────────────── */
:root {
  --ink: #14233F;
  --navy-700: #1E3158;
  --slate: #5A6678;
  --slate-soft: #7E8AA0;
  --page: #F5F7FB;
  --panel: #FFFFFF;
  --warm-panel: #FBF6EC;
  --gold: #E2A23B;
  --gold-soft: #F6E6C4;
  --gold-deep: #9A6814;
  --teal: #2E9E94;
  --teal-soft: #DBF0ED;
  --teal-deep: #1B6760;
  --red-soft: #FBEAEA;
  --red-deep: #A43030;
  --line: #E5E9F1;
  --shadow-sm: 0 2px 10px rgba(20, 35, 63, .05);
  --shadow: 0 8px 30px rgba(20, 35, 63, .07);
  --shadow-lg: 0 18px 50px rgba(20, 35, 63, .13);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --display: 'Fraunces', Georgia, serif;
}

/* ─── RESET ──────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--page);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ─── HEADER ─────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 251, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.01em;
  cursor: pointer;
  flex-shrink: 0;
}
.mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  background-image: url("/favicon.svg");
  background-size: 100% 100%;
}
.mark::before {
  content: none;
}
.mark::after {
  content: none;
  border-radius: 2px;
}
.brand small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: var(--slate);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 11px 20px;
  transition: transform .15s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(20, 35, 63, .22);
}
.btn-ghost {
  background: none;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--slate-soft); }

/* header search (results page) */
.nav-search { flex: 1; max-width: 560px; position: relative; }
.nav-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 7px 10px 7px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.nav-searchbar:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.nav-searchbar svg { flex-shrink: 0; color: var(--slate-soft); }
.nav-searchbar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: none;
  padding: 6px 0;
}
.nav-searchbar input::placeholder { color: var(--slate-soft); }
.nav-searchbar button {
  background: var(--ink);
  color: #fff;
  border: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
}

/* ─── HERO ────────────────────────────────────────── */
.hero { text-align: center; padding: 86px 0 56px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-weight: 600;
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 30px;
  margin-bottom: 28px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2.4s ease infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
h1.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -.022em;
  max-width: 16ch;
  margin: 0 auto;
  color: var(--ink);
}
h1.hero-title em { font-style: italic; color: var(--gold-deep); }
.lede {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--slate);
  max-width: 50ch;
  margin: 22px auto 0;
  font-weight: 400;
}

/* ─── SEARCH ──────────────────────────────────────── */
.search-shell { max-width: 780px; margin: 42px auto 0; position: relative; }
.searchbar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 10px 12px 10px 22px;
  box-shadow: var(--shadow-lg);
  transition: border-color .2s, box-shadow .2s;
}
.searchbar:focus-within {
  border-color: var(--gold);
  box-shadow: 0 20px 60px rgba(20, 35, 63, .13), 0 0 0 4px var(--gold-soft);
}
.searchbar svg { flex-shrink: 0; color: var(--slate-soft); }
#hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  background: none;
  padding: 13px 0;
}
#hero-search-input::placeholder { color: var(--slate-soft); }
.searchbar .btn-primary {
  padding: 13px 26px;
  border-radius: 15px;
  white-space: nowrap;
  font-size: 16px;
}

.autocomplete-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 100;
  display: none;
}
.autocomplete-box.open { display: block; }
.ac-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  cursor: pointer;
  transition: background .12s;
}
.ac-item:hover,
.ac-item.focused { background: var(--page); }
.ac-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--page);
  display: grid;
  place-items: center;
  color: var(--slate);
  flex-shrink: 0;
}
.ac-item b { font-size: 15px; font-weight: 600; display: block; }
.ac-item span { font-size: 13px; color: var(--slate-soft); }
.ac-item mark { background: none; color: var(--gold-deep); font-weight: 700; }
.ac-footer {
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ac-footer kbd {
  font-family: var(--sans);
  font-size: 12px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--slate);
}

.mode-tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--navy-50, #f4f6fa);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 1.5rem;
}
.mode-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-600, var(--slate));
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: var(--sans);
}
.mode-tab.active,
.mode-tab[aria-selected="true"] {
  background: white;
  color: var(--navy-900, var(--ink));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
}
.mode-tab:hover:not(.active) {
  background: var(--navy-100, #e8ecf2);
}
.mode-tab:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin-top: 20px;
}
.chip {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--slate);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 30px;
  cursor: pointer;
  transition: all .18s ease;
  font-family: var(--sans);
}
.chip:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(20, 35, 63, .08);
}
.chip strong { color: var(--ink); font-weight: 700; }
.chip[hidden] { display: none; }

.trust-bar {
  margin-top: 28px;
  font-size: 14px;
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 7px; }
.trust-item b { color: var(--ink); font-weight: 700; }
.trust-divider { width: 1px; height: 16px; background: var(--line); }

/* ─── VISA STRIP ──────────────────────────────────── */
.visa-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 2rem 0;
}
.vstrip-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.vstrip-item:hover {
  border-color: var(--teal);
  background: var(--teal-50, #f0fdf8);
}
.vstrip-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
}
.vstrip-count {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-900, var(--ink));
}
.vstrip-remands {
  font-size: 12px;
  color: var(--gold-deep);
}
.vstrip-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--slate-soft);
}

/* ─── SECTION SCAFFOLDING ─────────────────────────── */
section.s { padding: 68px 0; }
.sec-head { margin-bottom: 38px; }
.sec-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}
.kicker {
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
h2.sec-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -.015em;
}
.sec-sub { color: var(--slate); font-size: 17px; margin-top: 13px; }
.insights-section {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ─── VISA GRID ───────────────────────────────────── */
.visa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.vcard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(226, 162, 59, .35);
}
.vcard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.vcard-ico {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ico-blue { background: #EAF0FB; color: var(--navy-700); }
.ico-gold { background: var(--gold-soft); color: var(--gold-deep); }
.ico-teal { background: var(--teal-soft); color: var(--teal-deep); }
.ico-purple { background: #F0ECF8; color: #5B4795; }
.ico-slate { background: #EEF1F6; color: var(--slate); }
.ico-rose { background: #FBEAEC; color: #923040; }
.form-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--slate);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px 9px;
  align-self: flex-start;
}
.vcard h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 5px; }
.vcard .sub { font-size: 13.5px; color: var(--slate); margin-bottom: 18px; }
.vcard-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vstat b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.vstat small { font-size: 12px; color: var(--slate-soft); }
.arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--page);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: all .2s ease;
  border: none;
  cursor: pointer;
}
.vcard:hover .arrow-btn { background: var(--gold); color: #fff; }

.total-bar {
  margin-top: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
.total-bar .big {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.total-bar p { font-size: 15px; color: var(--slate); }
.total-bar .upd {
  font-size: 13px;
  color: var(--slate-soft);
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ─── INSIGHTS PANEL ──────────────────────────────── */
.insights-wrap {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.insights-cta {
  padding: 24px 36px 32px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.dash-grid { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 420px; }
.dash-panel { padding: 34px 36px; border-right: 1px solid var(--line); }
.dash-panel:last-child { border-right: none; }
.dash-panel h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.dash-panel .hint { font-size: 14px; color: var(--slate); margin-bottom: 24px; }
.pill-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-deep);
  background: var(--teal-soft);
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.scale-wrap { margin-top: 28px; position: relative; padding-top: 30px; }
.scale-outer {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 14px;
  position: relative;
  height: 58px;
  overflow: hidden;
}
.scale-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--teal), #3FBFB0);
  border-radius: 14px;
  transition: width 1.6s cubic-bezier(.2, .8, .2, 1);
}
.scale-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--ink);
  z-index: 3;
  transform: translateX(-50%);
}
.scale-line-label {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.scale-pct {
  position: absolute;
  z-index: 4;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.scale-ends {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--slate-soft);
  margin-top: 8px;
  font-weight: 500;
}
.scale-note {
  margin-top: 16px;
  background: var(--warm-panel);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 13.5px;
  color: var(--gold-deep);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.reasons { display: flex; flex-direction: column; gap: 18px; }
.reason-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 7px;
}
.reason-label span:first-child { font-weight: 500; }
.reason-label span:last-child {
  font-weight: 700;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.bar-track {
  height: 9px;
  background: var(--page);
  border-radius: 20px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 20px;
  transition: width 1.3s cubic-bezier(.2, .8, .2, 1);
}

/* ─── GUIDE CARDS ─────────────────────────────────── */
.guide-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card {
  border-radius: var(--r-lg);
  padding: 36px;
  color: #fff;
  box-shadow: var(--shadow);
}
.gc-navy { background: radial-gradient(130% 150% at 0% 0%, #293F6A 0%, var(--ink) 70%); }
.gc-teal { background: radial-gradient(130% 150% at 100% 0%, #38B4A8 0%, var(--teal-deep) 75%); }
.gc-gold { background: radial-gradient(130% 150% at 50% 0%, #E8C547 0%, var(--gold-deep) 75%); }
.gc-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .13);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.guide-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.guide-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, .85);
  max-width: 38ch;
  margin-bottom: 26px;
}
.gcl {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
}
.gcl li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .9);
}
.gcl .tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.glink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
}

/* ─── BREADCRUMB (results) ─────────────────────────── */
.breadcrumb {
  padding: 18px 0 0;
  font-size: 13.5px;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 7px;
}
.breadcrumb a:hover { color: var(--ink); }

/* ─── RESULTS HEADER ─────────────────────────────── */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-count { font-size: 15px; color: var(--slate); }
.results-count b { color: var(--ink); font-weight: 700; }
.sort-row { display: flex; align-items: center; gap: 10px; }
.sort-select {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px 14px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' fill='none' stroke='%235A6678' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m3 5 4 4 4-4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; }
.active-filters:empty { display: none; padding: 0; }
.fpill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--warm-panel);
  border: 1px solid var(--gold-soft);
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
}
.fpill button {
  background: none;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  opacity: .75;
  padding: 0;
  width: 16px;
  height: 16px;
}
.fpill button:hover { opacity: 1; }
.clear-all {
  font-size: 13px;
  color: var(--slate);
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: var(--sans);
}

/* ─── LAYOUT / FILTER RAIL ─────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: 256px 1fr;
  gap: 28px;
  padding-bottom: 60px;
  align-items: start;
}
.rail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 82px;
  overflow: hidden;
}
.rail-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rail-head h3 { font-size: 15px; font-weight: 700; }
.rail-clear {
  font-size: 13px;
  color: var(--slate-soft);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}
.rail-clear:hover { color: var(--gold-deep); }
.facet { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.facet:last-child { border-bottom: none; }
.facet-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.facet-label svg { color: var(--slate-soft); transition: transform .2s; }
.facet-label.collapsed svg { transform: rotate(-90deg); }
.facet-body { display: flex; flex-direction: column; gap: 2px; }
.facet-body.hidden { display: none; }
.fopt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--slate);
  padding: 6px 0;
  cursor: pointer;
  border-radius: 8px;
  transition: color .12s;
}
.fopt:hover { color: var(--ink); }
.fopt.active { color: var(--ink); font-weight: 600; }
.fbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.6px solid var(--line);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: all .15s;
  background: var(--panel);
}
.fopt.active .fbox { background: var(--teal); border-color: var(--teal); }
.fcount {
  margin-left: auto;
  font-size: 12px;
  color: var(--slate-soft);
  font-variant-numeric: tabular-nums;
}
.fopt .outcome-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-remand { background: var(--gold); }
.dot-sustain { background: var(--teal); }
.dot-dismiss { background: #D26060; }

/* ─── RESULT CARDS ───────────────────────────────── */
.rcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}
.rcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(226, 162, 59, .25);
}
.rc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.rc-meta {
  font-size: 12.5px;
  color: var(--slate-soft);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rc-meta span { display: flex; align-items: center; gap: 5px; }
.badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 20px;
  white-space: nowrap;
}
.b-remand { background: var(--gold-soft); color: var(--gold-deep); }
.b-sustain { background: var(--teal-soft); color: var(--teal-deep); }
.b-dismiss { background: var(--red-soft); color: var(--red-deep); }
.rcard h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 8px;
  line-height: 1.3;
}
.rcard h3 em { font-style: normal; color: var(--gold-deep); }
.snippet {
  font-size: 14.5px;
  color: var(--slate);
  margin-bottom: 16px;
  max-width: 72ch;
  line-height: 1.65;
}
.snippet mark { background: none; color: var(--gold-deep); font-weight: 700; }
.rc-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.t-met { background: var(--teal-soft); color: var(--teal-deep); }
.t-miss { background: var(--page); color: var(--slate); border: 1px solid var(--line); }
.t-cite { background: #F0ECF8; color: #5B4795; }
.t-form { background: #EAF0FB; color: var(--navy-700); }

/* ─── SKELETON / EMPTY ─────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--page) 25%, #EAECF0 50%, var(--page) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 26px;
  margin-bottom: 14px;
}
.skel-line { height: 14px; border-radius: 6px; margin-bottom: 10px; }
.skel-title { height: 22px; width: 60%; border-radius: 6px; margin-bottom: 14px; }
.empty { text-align: center; padding: 60px 20px; }
.empty h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 10px;
}
.empty p { color: var(--slate); margin-bottom: 22px; }
.empty a {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
}

/* ─── PAGINATION ─────────────────────────────────── */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.pg-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: var(--sans);
  transition: all .15s;
}
.pg-btn:hover { color: var(--ink); border-color: var(--slate-soft); }
.pg-btn[disabled] { opacity: .35; cursor: not-allowed; }
.pg-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pg-btn.wide { width: auto; padding: 0 18px; }
.pg-info { font-size: 13.5px; color: var(--slate); padding: 0 8px; }

/* ─── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--ink);
  color: #fff;
  padding: 64px 0 40px;
  margin-top: 24px;
}
footer.compact { padding: 36px 0; margin-top: 0; }
.foot-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.foot-brand { max-width: 310px; }
.foot-brand .brand { color: #fff; margin-bottom: 14px; }
.foot-brand p { color: rgba(255, 255, 255, .68); font-size: 14px; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-cols h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 700;
}
.foot-cols ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.foot-cols a { color: rgba(255, 255, 255, .75); font-size: 14.5px; }
.foot-cols a:hover { color: #fff; }
.foot-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}
.disclaimer { max-width: 660px; line-height: 1.6; }
.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.foot .brand { color: #fff; }
.foot .brand small { color: rgba(255, 255, 255, .6); }
.foot p {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  max-width: 580px;
  line-height: 1.6;
}

/* ─── REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1000px) {
  .visa-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .rail { position: static; }
  .nav-links { display: none; }
}
@media (max-width: 768px) {
  .visa-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .visa-strip {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .vstrip-item {
    flex: 0 0 220px;
    scroll-snap-align: start;
  }
  .mode-tabs {
    flex-wrap: wrap;
    border-radius: 12px;
    width: 100%;
    justify-content: center;
  }
  .mode-tab { flex: 1 1 auto; justify-content: center; font-size: 13px; padding: 8px 12px; }
}
@media (max-width: 780px) {
  .visa-grid { grid-template-columns: 1fr; }
  .nav-links,
  .btn-ghost { display: none; }
  .dash-panel { border-right: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .nav-search { display: none; }
  .rc-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 580px) {
  h1.hero-title { font-size: 34px; }
  .chips { gap: 7px; }
  .searchbar { flex-wrap: wrap; border-radius: 18px; }
  .searchbar .btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .trust-bar { gap: 12px; }
  .total-bar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── CASE DETAIL PAGE ─────────────────────────────── */
.nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--slate);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 11px;
  padding: 8px 16px;
  transition: all .15s;
}
.nav-back:hover { color: var(--ink); border-color: var(--slate-soft); }

.casehead { padding: 18px 0 6px; }
.ch-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.ch-meta {
  font-size: 12.5px;
  color: var(--slate-soft);
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ch-meta span { display: flex; align-items: center; gap: 5px; }
h1.case-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -.012em;
  max-width: 32ch;
}
.badge-lg {
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 24px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ch-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.ch-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 5px 12px;
}

.case-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 32px;
  padding: 28px 0 60px;
  align-items: start;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.card:last-child { margin-bottom: 0; }
.card-label {
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gold-deep);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.card .lead { font-size: 16.5px; color: var(--slate); line-height: 1.75; }

.outcome-card {
  background: radial-gradient(130% 160% at 0% 0%, #293F6A 0%, var(--ink) 72%);
  color: #fff;
  border: none;
}
.outcome-card h2 { color: #fff; margin-bottom: 10px; }
.outcome-card .lead { color: rgba(255,255,255,.86); }

.criteria-meter {
  margin-top: 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 20px 22px;
}
.meter-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.meter-big { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.meter-big em {
  font-style: normal;
  font-size: 16px;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}
.pips { display: flex; gap: 6px; }
.pip { flex: 1; height: 8px; border-radius: 20px; background: rgba(255,255,255,.16); }
.pip.met { background: var(--teal); }
.pip.threshold { background: var(--gold); opacity: .5; }
.meter-note {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.78);
  display: flex;
  align-items: center;
  gap: 8px;
}

.crit-list { display: flex; flex-direction: column; }
.crit-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.crit-row:first-child { padding-top: 4px; }
.crit-row:last-child { border-bottom: none; padding-bottom: 4px; }
.crit-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.ci-met { background: var(--teal-soft); color: var(--teal-deep); }
.ci-miss { background: #EEF1F6; color: var(--slate-soft); }
.crit-body { flex: 1; min-width: 0; }
.crit-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}
.crit-top h3 { font-size: 16px; font-weight: 700; letter-spacing: -.005em; }
.crit-top h3.dim { color: var(--slate); }
.verdict-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.vp-rev { background: var(--teal-soft); color: var(--teal-deep); }
.vp-not { background: #EEF1F6; color: var(--slate); }
.crit-body p { font-size: 14.5px; color: var(--slate); margin-top: 2px; line-height: 1.6; }

.timeline { padding-left: 4px; }
.t-step {
  display: flex;
  gap: 16px;
  padding-bottom: 22px;
  position: relative;
}
.t-step:last-child { padding-bottom: 0; }
.t-step::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: -4px;
  width: 2px;
  background: var(--line);
}
.t-step:last-child::before { display: none; }
.t-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--panel);
  border: 3px solid var(--line);
  z-index: 1;
  margin-top: 2px;
}
.t-step.done .t-dot { border-color: var(--teal); background: var(--teal); }
.t-step.now .t-dot { border-color: var(--gold); background: var(--gold); }
.t-body .when {
  font-size: 12px;
  color: var(--slate-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 3px;
}
.t-body h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 3px; }
.t-body p { font-size: 14px; color: var(--slate); }

.cite-list { display: flex; flex-direction: column; gap: 10px; }
.cite-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--page);
  border-radius: 12px;
  padding: 13px 15px;
}
.cite-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #F0ECF8;
  color: #5B4795;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cite-row b {
  font-style: italic;
  font-family: var(--display);
  font-size: 15px;
  display: block;
  margin-bottom: 2px;
}
.cite-row span { font-size: 13px; color: var(--slate); }

.side {
  position: sticky;
  top: 86px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.scard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.scard.warm { background: var(--warm-panel); border-color: var(--gold-soft); }
.scard h3 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.scard p { font-size: 14px; color: var(--slate); margin-bottom: 16px; line-height: 1.6; }
.scard.warm p { color: var(--gold-deep); }
.sbtn {
  display: block;
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 13px 18px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  text-decoration: none;
}
.sbtn-ink { background: var(--ink); color: #fff; }
.sbtn-ink:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(20,35,63,.22); }
.sbtn-gold { background: var(--gold); color: #fff; }
.sbtn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(226,162,59,.35); }
.sbtn-ghost { background: none; color: var(--ink); border: 1px solid var(--line); }
.sbtn-ghost:hover { border-color: var(--slate-soft); }
.sbtn-saved { background: #1D9E75 !important; color: #fff !important; }
.sbtn-saved:hover { box-shadow: 0 8px 22px rgba(29,158,117,.28); }

.doc-link { display: flex; align-items: center; gap: 13px; padding: 2px 0; text-decoration: none; color: inherit; }
.doc-ico {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--page);
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  flex-shrink: 0;
}
.doc-link strong { font-size: 15px; font-weight: 700; display: block; margin-bottom: 2px; }
.doc-link small { font-size: 13px; color: var(--slate-soft); }

.sim-list { display: flex; flex-direction: column; }
.sim-item {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.sim-item:last-child { border-bottom: none; padding-bottom: 0; }
.sim-item:hover .sim-title { color: var(--gold-deep); }
.sim-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.sim-meta { font-size: 12.5px; color: var(--slate-soft); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sim-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

.case-wrap { max-width: 1120px; }

@media (max-width: 900px) {
  .case-layout { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (max-width: 620px) {
  .ch-top { flex-direction: column; }
  .card { padding: 22px 20px; }
}
