/* Papaya app look: light only, Inter, white cards with hairline borders, pill controls. */
:root {
  color-scheme: light;
  --page: #ffffff;
  --sidebar: #f7f7f6;
  --surface: #ffffff;
  --surface-2: #f2f2f1;   /* hover, selected pill, KPI tile */
  --surface-3: #fafafa;   /* grouped container (filter bar) */
  --ink: #111111;
  --ink-2: #4a4a4a;
  --muted: #8a8a8a;
  --grid: #eeeeed;
  --axis: #d9d9d7;
  --border: #e6e6e4;
  --brand: #ed784f;
  --brand-ink: #cf480e;
  /* map */
  --land: #f0f0ef;
  --land-in: #e2e2e0;
  --land-stroke: #ffffff;
  --sea: #fbfbfa;
  /* data: confirmed / sequential (beige -> green, as in the cost explorer) */
  --accent: #2f7d52;
  --accent-ink: #111111;
  --seq-0: #e3e3e1;
  --seq-1: #efe6cf; --seq-2: #d5e5c2; --seq-3: #afd5aa; --seq-4: #80bf8f; --seq-5: #55a373; --seq-6: #38855a; --seq-7: #246843;
  /* categorical, fixed order (validated: lightness, CVD and normal-vision separation) */
  --s1: #4f97cf; --s2: #c25a45; --s3: #d1a630; --s4: #4f9e6a; --s5: #9a7bc9; --s6: #6f6c68;
  --hl-confirmed: #e2643a;
  --hl-unverified: #f5c6b0;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-pop: 0 8px 24px rgba(16, 24, 40, 0.10), 0 1px 3px rgba(16, 24, 40, 0.06);
  --radius: 16px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--axis); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
h1 { font-size: 18px; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 16px; font-weight: 600; margin: 0 0 2px; letter-spacing: -0.01em; }
h3 { font-size: 13px; margin: 18px 0 8px; color: var(--ink-2); font-weight: 500; }
.muted { color: var(--muted); margin: 0 0 14px; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { overflow: visible; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--sidebar); border-right: 1px solid var(--border); padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; }
.logo { display: inline-flex; padding: 4px 10px 22px; text-decoration: none; }
.logo img { height: 23px; width: auto; }
.nav-label { font-size: 13px; color: var(--muted); padding: 10px 10px 6px; }
.tabs { display: flex; flex-direction: column; gap: 2px; }
.tabs button { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; padding: 9px 10px; border-radius: 10px; font-size: 15px; color: var(--ink); text-align: left; }
.tabs button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tabs button:hover { background: rgba(17, 17, 17, 0.04); }
.tabs button[aria-selected="true"] { background: #ececeb; font-weight: 500; }
.side-card { margin-top: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.side-title { font-weight: 600; margin-bottom: 4px; }
.side-card p { margin: 0 0 12px; color: var(--ink-2); font-size: 13px; }
.cta { display: inline-flex; gap: 6px; align-items: center; background: #161616; color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 500; font-size: 14px; text-decoration: none; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); }
.cta:hover { background: #000; }

.main-col { min-width: 0; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; border-bottom: 1px solid var(--border); background: var(--page); position: sticky; top: 0; z-index: 10; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.content { padding: 18px 24px 48px; }
.page-desc { margin: 0 0 18px; font-size: 15px; color: var(--ink-2); }
.page-desc #freshness { color: var(--muted); }

/* ---------- inputs ---------- */
select, input[type="search"] { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; min-width: 120px; outline: none; }
select:focus, input[type="search"]:focus { border-color: #bdbdbb; box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06); }
.search { position: relative; }
.search input { width: 280px; padding-left: 36px; }
.search-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.dropdown { position: absolute; top: calc(100% + 6px); right: 0; width: 340px; max-height: 380px; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-pop); list-style: none; margin: 0; padding: 6px; z-index: 30; }
.dropdown li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.dropdown li:hover, .dropdown li.sel { background: var(--surface-2); }
.dropdown .meta { color: var(--muted); font-size: 12px; white-space: nowrap; }

.pill, .ghost { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); }
.pill:hover, .ghost:hover { background: var(--surface-2); }
.pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill:disabled { opacity: 0.5; cursor: progress; }
.text-btn { border: 0; background: none; font-weight: 500; font-size: 14px; padding: 6px 8px; white-space: nowrap; }
.text-btn:hover { text-decoration: underline; }

/* segmented pill group (Total cost | Cost per vehicle | ...) */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px; box-shadow: var(--shadow); }
.seg button { border: 0; background: transparent; padding: 6px 13px; border-radius: 999px; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.seg button + button { margin-left: 1px; }
.seg button[aria-pressed="true"] { background: var(--surface-2); font-weight: 500; }
.seg button:hover:not([aria-pressed="true"]) { background: #f7f7f6; }

/* ---------- filter bar: chips "Label | Value" ---------- */
.filterbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 18px; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ms { position: relative; }
.ms .ms-btn { display: inline-flex; align-items: center; gap: 8px; max-width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 14px; color: var(--ink); white-space: nowrap; }
.ms .ms-btn:hover { background: #f7f7f6; }
.ms .ms-btn .k { color: var(--muted); padding-right: 8px; border-right: 1px solid var(--border); }
.ms .ms-btn .v { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.ms .ms-btn .caret { width: 12px; height: 12px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ms.active .ms-btn { border-color: #cfcfcd; }
.ms-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 300px; max-height: 400px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-pop); }
.ms-pop .ms-mode { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--grid); font-size: 13px; color: var(--ink-2); }
.ms-pop .ms-mode .seg { box-shadow: none; }
.ms-pop .ms-mode .seg button { font-size: 12.5px; padding: 4px 10px; }
.ms-pop .ms-mode > span { white-space: nowrap; }
.ms-pop .ms-list { overflow-y: auto; padding: 6px; }
.ms-pop label.opt { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ink); }
.ms-pop label.opt:hover { background: var(--surface-2); }
.ms-pop label.opt input { accent-color: #111; margin: 0; width: 15px; height: 15px; }
.ms-pop label.opt .n { margin-left: auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ms-pop .ms-foot { display: flex; justify-content: space-between; padding: 8px 12px; border-top: 1px solid var(--grid); }
.ms-pop .ms-foot button { border: 0; background: none; font-weight: 500; font-size: 13px; padding: 2px 0; }
.ms-pop .ms-foot .ms-done { background: #161616; color: #fff; border-radius: 999px; padding: 5px 14px; }

/* ---------- KPI tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; }
.tile .label { font-size: 15px; color: var(--ink); font-weight: 500; }
.tile .value { font-size: 30px; font-weight: 700; letter-spacing: -0.025em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile .note { font-size: 13px; color: var(--muted); }

/* ---------- layout ---------- */
.tab { display: none; }
.tab.active { display: block; }
#tab-map.active { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 16px; }
.card-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.scroll-x { overflow-x: auto; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.head-actions input[type="search"] { width: 230px; }

/* ---------- map ---------- */
.map-wrap { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
#map { display: block; width: 100%; height: calc(100vh - 340px); min-height: 520px; background: var(--sea); cursor: grab; }
#map:active { cursor: grabbing; }
#map .country { stroke: var(--land-stroke); stroke-width: 0.7; vector-effect: non-scaling-stroke; transition: fill 200ms; }
#map .country.out { fill: var(--land); }
#map .country.in { cursor: pointer; }
#map .country.in:hover, #map .micro:hover { stroke: var(--ink); stroke-width: 1.4; }
#map .country.selected { stroke: var(--ink); stroke-width: 2; }
#map .graticule { fill: none; stroke: var(--grid); stroke-width: 0.5; vector-effect: non-scaling-stroke; }
#map .micro { stroke: var(--surface); stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: pointer; }
#map .micro.selected { stroke: var(--ink); stroke-width: 2; }
#map .lbl { font-weight: 500; pointer-events: none; text-anchor: middle; dominant-baseline: central; paint-order: stroke; }
.map-toolbar { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; gap: 8px; z-index: 2; pointer-events: none; }
.map-toolbar > * { pointer-events: auto; }
.toolbar-left { display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.toolbar-left > * { pointer-events: auto; }
#map.dots .country, #map.dots .micro { pointer-events: none; }
#map.dots .micro, #map.dots .labels { display: none; }
#map .dot { stroke: var(--surface); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
#map .dot.approx { stroke-width: 1; fill: none !important; opacity: 0.7; }
#map .dot.approx.dim { opacity: 0.08; }
#map .dot.dim { opacity: 0.12; }
#map .hover-ring { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: none; }
#map.dots.on-dot { cursor: pointer; }
.banner { position: absolute; top: 60px; left: 14px; z-index: 2; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 8px 6px 14px; box-shadow: var(--shadow-pop); display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
.banner button { border: 0; background: var(--surface-2); border-radius: 999px; padding: 3px 10px; font-weight: 500; }
.legend { position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(6px); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 12.5px; }
.legend .title { color: var(--ink); font-weight: 600; margin-bottom: 8px; }
.legend .ramp { display: flex; gap: 2px; }
.legend .ramp div { width: 36px; height: 8px; }
.legend .ramp div:first-child { border-radius: 4px 0 0 4px; }
.legend .ramp div:last-child { border-radius: 0 4px 4px 0; }
.legend .ticks { display: flex; gap: 2px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 4px; }
.legend .ticks span { width: 36px; font-size: 11.5px; }
.legend .keys { display: flex; gap: 14px; margin-top: 8px; color: var(--ink-2); }
.legend .keys.wrap { flex-wrap: wrap; max-width: 440px; gap: 4px 14px; }
.legend .item { cursor: pointer; user-select: none; }
.legend .item.off { opacity: 0.35; }
.legend .note { color: var(--muted); margin-top: 8px; max-width: 440px; }
.legend .check { display: flex; gap: 8px; align-items: center; margin-top: 6px; color: var(--ink-2); cursor: pointer; font-size: 12.5px; }
.legend .check input { accent-color: #111; margin: 0; }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: 0; margin-right: 6px; }

/* ---------- side panel ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; height: calc(100vh - 340px + 2px); min-height: 522px; overflow-y: auto; }
.panel h2 { font-size: 18px; font-weight: 600; }
.panel .eyebrow { font-size: 14px; color: var(--ink-2); margin-bottom: 2px; }
.panel .back { border: 0; background: none; color: var(--ink-2); padding: 0; margin-bottom: 12px; font-size: 13.5px; }
.panel .back:hover { color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 14px 0 6px; }
.kpi { border-radius: 10px; padding: 8px 10px; }
.kpi:first-child { background: var(--surface-2); }
.kpi .v { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12.5px; color: var(--ink-2); }
.stackbar { display: flex; gap: 2px; height: 8px; margin: 6px 0 10px; }
.stackbar div { height: 100%; min-width: 2px; }
.stackbar div:first-child { border-radius: 4px 0 0 4px; }
.stackbar div:last-child { border-radius: 0 4px 4px 0; }
.stackbar div:only-child { border-radius: 4px; }
.keylist { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink); }
.list-tools { display: flex; gap: 6px; margin: 8px 0; }
.list-tools input { flex: 1; min-width: 0; }
.list-tools select { min-width: 0; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 10px; cursor: pointer; }
.plist li:hover { background: var(--surface-2); }
.plist .dot { width: 8px; height: 8px; border-radius: 50%; }
.plist .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist .sub2 { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; font-weight: 500; }
.badge.ok { background: #e7f3ea; color: #23633f; }
.badge.ok::before { content: "✓ "; }
.badge.unv { background: #f6efe0; color: #7a5a14; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { font-size: 12.5px; background: var(--surface-2); border-radius: 999px; padding: 2px 9px; color: var(--ink-2); }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: grid; grid-template-columns: 24px 1fr 96px 34px; align-items: center; gap: 8px; padding: 6px 4px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.rank li:hover { background: var(--surface-2); }
.rank .bar { height: 6px; background: var(--seq-5); border-radius: 3px; }
.rank .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.rank .flag { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
details.gaps summary { cursor: pointer; color: var(--ink-2); font-weight: 500; font-size: 13.5px; margin-top: 14px; }
details.gaps li { margin-bottom: 6px; color: var(--ink-2); font-size: 12.5px; }
dl.facts { display: grid; grid-template-columns: 100px 1fr; gap: 6px 10px; margin: 10px 0; font-size: 13.5px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.cc-row { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; }
.cc-row .hd { display: flex; justify-content: space-between; gap: 8px; align-items: center; cursor: pointer; }
.cc-row .bd { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.cc-row .bd a { overflow-wrap: anywhere; }
.srcs { margin: 4px 0 0; padding-left: 18px; }

/* ---------- charts ---------- */
.legend-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink); margin-bottom: 12px; }
.legend-row .item { cursor: pointer; user-select: none; }
.legend-row .item.off { opacity: 0.35; }
svg text { fill: var(--ink-2); font-family: inherit; }
svg .axis-label { fill: var(--muted); font-size: 11.5px; }
svg .row-label { font-size: 12.5px; fill: var(--ink); cursor: pointer; }
svg .row-label:hover { text-decoration: underline; }
svg .val { font-size: 11.5px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
svg .hover-band { fill: transparent; }
svg .hover-band:hover { fill: var(--surface-2); }
.matrix-cell { cursor: pointer; }

/* ---------- table ---------- */
table.data { border-collapse: collapse; width: 100%; font-size: 13.5px; }
table.data th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 10px; border-bottom: 1px solid var(--border); cursor: pointer; white-space: nowrap; user-select: none; }
table.data th.num, table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data th .arrow { color: var(--muted); font-size: 10px; }
table.data td { padding: 9px 10px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
table.data tr:hover td { background: #fafafa; }
.minibar { display: flex; gap: 2px; height: 8px; width: 140px; }
.minibar div { height: 100%; }
.minibar div:first-child { border-radius: 4px 0 0 4px; }
.minibar div:last-child { border-radius: 0 4px 4px 0; }
.country-link { cursor: pointer; text-decoration: underline; text-decoration-color: var(--axis); text-underline-offset: 3px; }

/* ---------- tooltip ---------- */
.tooltip { position: fixed; pointer-events: none; z-index: 50; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 10px 12px; font-size: 13px; max-width: 290px; }
.tooltip .t { font-weight: 600; margin-bottom: 4px; }
.tooltip .r { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-2); }
.tooltip .r b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tooltip.card { max-width: 330px; padding: 14px 16px; margin: 0; }
.tooltip.card .hd { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.tooltip.card .t { font-size: 14.5px; margin: 0; }
.tooltip.card .meta { color: var(--ink-2); margin: 2px 0 8px; font-size: 12.5px; }
.tooltip.card .chips { margin: 6px 0; }
.tooltip.card .foot { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  #tab-map.active { grid-template-columns: 1fr; }
  .panel { height: auto; min-height: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { display: block; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--border); }
  .logo { padding: 4px 8px 4px 0; }
  .nav-label, .side-card p, .side-title { display: none; }
  .tabs { flex-direction: row; overflow-x: auto; width: 100%; }
  .tabs button { font-size: 14px; white-space: nowrap; }
  .side-card { margin: 0; border: 0; padding: 0; background: none; }
  .topbar { position: static; height: auto; padding: 14px 16px; flex-wrap: wrap; }
  .content { padding: 16px 16px 40px; }
  .search input { width: 100%; }
  .search { flex: 1; }
  .filterbar { flex-wrap: wrap; }
  #map { height: 60vh; min-height: 380px; }
}
.card-head > div:first-child { flex: 1 1 380px; min-width: 0; }
.card-head .muted { margin-bottom: 12px; }

/* ---------- provider finder ---------- */
.eyebrow { font-size: 14px; color: var(--ink-2); }
.pill.sm { padding: 5px 12px; font-size: 13px; }
.pill .meta { color: var(--muted); font-weight: 400; }
.find-link { margin-top: 14px; }
.find-search { position: relative; max-width: 560px; }
.find-search input { width: 100%; padding: 12px 18px 12px 42px; font-size: 16px; }
.find-search .search-ico { left: 16px; width: 18px; height: 18px; }
.find-search .dropdown { left: 0; right: auto; width: 100%; }
.find-hero { padding: 40px 32px 32px; text-align: left; }
.find-hero h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.find-hero .muted { font-size: 15px; margin-bottom: 20px; }
.find-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.find-head { padding: 20px 22px; }
.find-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.find-top .find-search { flex: 1 1 320px; }
.find-top .find-search input { font-size: 15px; padding: 10px 16px 10px 40px; }
.find-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 22px; }
h2.big { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; margin: 2px 0 0; }
.find-kpis { display: flex; gap: 4px; }
.find-kpis > div { padding: 8px 14px; border-radius: 10px; display: flex; flex-direction: column; }
.find-kpis > div:first-child { background: var(--surface-2); }
.find-kpis b { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.find-kpis span { font-size: 12.5px; color: var(--ink-2); }
.find-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 12px; }
.find-tools input { width: 240px; }
.find-note { margin: 0; font-size: 13px; cursor: help; }
.find-list { list-style: none; margin: 0; padding: 0; }
.find-card { padding: 0; margin-bottom: 10px; overflow: hidden; }
.find-card.open { box-shadow: var(--shadow-pop); }
.fc-main { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; padding: 16px 20px; cursor: pointer; align-items: start; }
.fc-main:hover { background: #fcfcfb; }
.fc-rank { width: 26px; height: 26px; border-radius: 50%; background: #161616; color: #fff; font-size: 12.5px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; margin-top: 1px; }
.fc-name { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.fc-name .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.fc-meta { color: var(--ink-2); font-size: 13.5px; margin: 2px 0 8px; }
.fc-tags { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: 13px; color: var(--ink); }
.fc-tags em { font-style: normal; color: var(--muted); margin-right: 4px; }
.fc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; white-space: nowrap; }
.fc-site { font-size: 13.5px; }
.fc-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; background: var(--surface); }
.fc-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 150ms; }
.find-card.open .fc-toggle svg { transform: rotate(180deg); }
.fc-detail { border-top: 1px solid var(--grid); padding: 16px 20px 18px 68px; background: #fcfcfb; }
.fc-detail h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.fc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fc-notes { color: var(--ink-2); font-size: 13px; margin: 6px 0 0; }
.fc-detail .srcs { font-size: 13px; margin-bottom: 12px; }
.find-more { display: flex; justify-content: center; margin: 14px 0; }
.cc-caret { font-size: 12.5px; color: var(--muted); }
@media (max-width: 860px) {
  .fc-main { grid-template-columns: 28px minmax(0, 1fr); }
  .fc-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .fc-detail { padding-left: 20px; }
  .fc-grid { grid-template-columns: 1fr; }
  .find-hero { padding: 24px 20px; }
  .find-tools input { width: 100%; }
}
