/* paultan.org / Car Sales Data — light dashboard theme.
   Header (pt-appbar + pt-drawer) replicated from the paultan.org
   mobile theme (Breezy, snapshot 2026-06-06). */

:root {
  --red: #ea2127;
  --red-dark: #c8161d;
  --ink: #2b3036;
  --ink-dim: #5b636c;
  --ink-faint: #9097a0;
  --line: #ececec;
  --bg-soft: #f6f7f8;
  --up: #1a9850;
  --down: #d73027;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

/* WebKit safety net: layout is verified overflow-free in testing, but iOS
   Safari can leak a few px (canvas DPR rounding, off-canvas drawer).
   clip (not hidden) keeps position:sticky/fixed behaviour intact. */
html, body { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

body {
  background: #fff;
  color: var(--ink);
  font: 15px/1.55 Arial, sans-serif;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ paultan.org app bar + drawer (replicated) ============ */
.pt-appbar{
  position:sticky;top:0;z-index:1000;height:56px;
  display:flex;align-items:center;gap:6px;padding:0 8px 0 6px;
  background:rgba(0,0,0,.97);color:#e9ebed;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.pt-appbar-btn{
  -webkit-appearance:none;appearance:none;border:0;background:transparent;color:#e9ebed;cursor:pointer;
  height:40px;min-width:40px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;
  gap:5px;padding:0 8px;font:700 13px/1 Arial,sans-serif;-webkit-tap-highlight-color:transparent;
}
.pt-appbar-btn:active{background:rgba(255,255,255,.13)}
.pt-appbar-btn svg{width:22px;height:22px;display:block}
.pt-appbar-logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);line-height:0}
.pt-appbar-logo img{height:26px;width:auto;max-width:150px;display:block}
.pt-appbar-right{margin-left:auto;display:flex;align-items:center;gap:2px}
.pt-lang-code{letter-spacing:.3px}

.pt-lang-pop{position:absolute;top:52px;right:8px;z-index:1010;background:#fff;
  border:1px solid #e6e8ec;border-radius:12px;box-shadow:0 12px 32px rgba(20,28,40,.22);min-width:188px;padding:6px}
.pt-lang-pop[hidden]{display:none}
.pt-lang-pop a{display:flex;align-items:center;gap:8px;padding:11px 12px;border-radius:8px;color:#2b3036;text-decoration:none;font:400 14.5px Arial,sans-serif}
.pt-lang-pop a:hover{background:#f3f4f6;text-decoration:none}
.pt-lang-pop a.active{font-weight:700;color:#ea2127}

.pt-backdrop{position:fixed;inset:0;background:rgba(15,20,28,.5);z-index:1100}
.pt-backdrop[hidden]{display:none}
.pt-drawer{position:fixed;top:0;left:0;height:100%;width:84%;max-width:330px;background:#fff;z-index:1110;
  transform:translateX(-104%);transition:transform .26s cubic-bezier(.4,0,.2,1);
  display:flex;flex-direction:column;box-shadow:6px 0 30px rgba(15,20,28,.2);overflow:hidden}
.pt-drawer.open{transform:none}
.pt-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:14px 14px 12px;border-bottom:1px solid #ececec}
.pt-drawer-head img{height:22px;width:auto}
.pt-drawer-close{-webkit-appearance:none;appearance:none;border:0;background:transparent;color:#7a828c;width:38px;height:38px;border-radius:9px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.pt-drawer-close:active{background:#f1f3f5}
.pt-drawer-close svg{width:22px;height:22px}

.pt-cta{display:flex;align-items:center;gap:12px;margin:12px 12px 0;padding:13px 14px;border-radius:12px;text-decoration:none;color:#fff;font-family:Arial,sans-serif}
.pt-cta:hover{text-decoration:none}
.pt-cta+.pt-cta{margin-top:9px}
.pt-cta-blue{background:linear-gradient(100deg,#2f80ed,#1b5fd0)}
.pt-cta-red{background:linear-gradient(100deg,#ef3b41,#c8161d)}
.pt-cta-ico{width:34px;height:34px;border-radius:9px;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.pt-cta-ico svg{width:20px;height:20px}
.pt-cta-txt{display:flex;flex-direction:column;min-width:0}
.pt-cta-t{font-weight:700;font-size:15px;line-height:1.2}
.pt-cta-s{font-size:11.5px;opacity:.92;margin-top:2px;font-weight:400}
.pt-cta-chev{margin-left:auto;opacity:.85;display:flex;flex:0 0 auto}

.pt-drawer-nav{padding:8px 6px;overflow-y:auto;flex:1}
.pt-drawer-nav>a{display:flex;align-items:center;gap:13px;padding:13px 12px;border-radius:10px;color:#262b31;text-decoration:none;font:700 15.5px Arial,sans-serif}
.pt-drawer-nav>a:hover{background:#f4f5f7;text-decoration:none}
.pt-drawer-nav>a.active{color:#ea2127;background:#fdeef0}
.pt-drawer-nav>a.active .pt-dot{background:#ea2127}
.pt-dot{width:7px;height:7px;border-radius:50%;background:#cfd4da;flex:0 0 auto}
.pt-drawer-sep{height:1px;background:#ececec;margin:8px 12px}
.pt-drawer-sub a{display:block;padding:11px 12px;border-radius:10px;color:#5b636c;text-decoration:none;font:400 14px Arial,sans-serif}
.pt-drawer-sub a:hover{background:#f4f5f7;text-decoration:none}

.pt-drawer-foot{padding:15px 16px;border-top:1px solid #ececec;display:flex;gap:22px;align-items:center}
.pt-drawer-foot a{color:#9097a0;display:inline-flex}
.pt-drawer-foot a:hover{color:#ea2127}
.pt-drawer-foot svg{width:20px;height:20px;display:block}

/* ============ layout ============ */
.csd-wrap { max-width: 1080px; margin: 0 auto; padding: 26px 16px 10px; }

.csd-crumbs { font-size: 13px; color: var(--ink-faint); margin-bottom: 14px; }
.csd-crumbs a { color: var(--ink-dim); }
.csd-crumbs span { margin: 0 6px; color: #cfd4da; }

h1 { font-size: clamp(24px, 4.5vw, 34px); line-height: 1.15; letter-spacing: -.01em; margin-bottom: 8px; }
.csd-sub { color: var(--ink-dim); max-width: 640px; margin-bottom: 22px; }
.csd-lede { font-size: 16.5px; line-height: 1.6; color: var(--ink-dim); max-width: 720px; margin: 4px 0 16px; }
.csd-sub strong { color: var(--ink); }

h2.csd-h2 { font-size: 19px; margin: 30px 0 12px; }

/* ============ controls ============ */
.csd-controls {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 20px;
}
.csd-seg { display: inline-flex; background: #fff; border: 1px solid #dcdfe3; border-radius: 9px; overflow: hidden; }
.csd-seg button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: 700 13px Arial, sans-serif; color: var(--ink-dim);
  padding: 8px 13px; -webkit-tap-highlight-color: transparent;
}
.csd-seg button.on { background: var(--red); color: #fff; }
.csd-seg button:not(.on):hover { color: var(--ink); }

.csd-ctl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-dim); font-weight: 700; }
.csd-ctl select, .csd-ctl input[type="month"] {
  appearance: auto; background: #fff; border: 1px solid #dcdfe3; border-radius: 9px;
  font: 400 16px Arial, sans-serif; color: var(--ink); padding: 7px 9px;
}
.csd-arrow {
  appearance: none; border: 1px solid #dcdfe3; background: #fff; border-radius: 9px;
  width: 34px; height: 34px; cursor: pointer; color: var(--ink-dim); font-size: 15px; line-height: 1;
}
.csd-arrow:disabled { opacity: .35; cursor: default; }
.csd-arrow:not(:disabled):hover { color: var(--red); border-color: var(--red); }

.csd-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.csd-chip {
  appearance: none; cursor: pointer; border: 1px solid #dcdfe3; background: #fff;
  border-radius: 99px; padding: 6px 12px; font: 400 13px Arial, sans-serif; color: var(--ink-dim);
  -webkit-tap-highlight-color: transparent;
}
.csd-chip.on { background: #fdeef0; border-color: var(--red); color: var(--red); font-weight: 700; }
.csd-filter-label { font-size: 12px; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; margin-right: 2px; }
.csd-controls .sep { width: 1px; height: 24px; background: #dcdfe3; margin: 0 4px; }

/* ============ ranking tables ============ */
.csd-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.csd-table-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.csd-table-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.csd-table-head h2 { font-size: 16px; margin-right: auto; }
.csd-table-head .csv {
  font: 700 11px Arial, sans-serif; letter-spacing: .06em;
  color: #c3c8cf; padding: 6px 4px; border-radius: 6px;
}
.csd-table-head .csv:hover { color: var(--red); text-decoration: none; }

table.rank { width: 100%; border-collapse: collapse; }
table.rank th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-faint); padding: 9px 10px; border-bottom: 1px solid var(--line);
}
table.rank td { padding: 9px 10px; border-bottom: 1px solid #f3f4f6; font-size: 14px; vertical-align: middle; }
table.rank tr:last-child td { border-bottom: 0; }
table.rank tr:hover td { background: #fafbfc; }
td.r-rank { width: 30px; color: var(--ink-faint); font-weight: 700; text-align: right; }
td.r-delta { width: 38px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.d-up { color: var(--up); } .d-down { color: var(--down); } .d-new { color: #c98a00; } .d-same { color: #cfd4da; }
td.r-name a { color: var(--ink); font-weight: 700; }
td.r-name a:hover { color: var(--red); text-decoration: none; }
td.r-name small { color: var(--ink-faint); font-weight: 400; display: block; font-size: 12px; }
/* model rows: full "Make Model" on one line (desktop); model + small make stacked (mobile) */
td.r-name .nm { display: flex; gap: 5px; align-items: baseline; flex-wrap: wrap; }
td.r-units { text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.r-share { width: 128px; }
.sharebar { position: relative; height: 22px; }
.sharebar b { display: block; font: 700 11.5px/16px Arial, sans-serif; color: var(--ink-dim); white-space: nowrap; }
.sharebar i {
  position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 2px;
  background: var(--red); opacity: .55;
}
/* faint full-width track behind the fill */
.sharebar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: #eef0f2; border-radius: 2px; z-index: -1;
}
.csd-conc { padding: 9px 16px; font-size: 12px; color: var(--ink-faint); border-top: 1px solid #f3f4f6; }
.csd-conc b { color: var(--ink-dim); }
td.r-spark { width: 92px; } td.r-spark svg { display: block; }

.csd-more { display: block; width: 100%; padding: 11px; text-align: center; appearance: none; border: 0; border-top: 1px solid var(--line); background: var(--bg-soft); color: var(--red); font: 700 13px Arial, sans-serif; cursor: pointer; }
.csd-more:hover { background: #fdeef0; }
.csd-empty { padding: 26px 16px; text-align: center; color: var(--ink-faint); }
.csd-loading { padding: 26px; text-align: center; color: var(--ink-faint); }
.csd-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; }

/* ============ stat cards (make/model pages) ============ */
.csd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0 6px; }

.csd-compare-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  margin: 0 0 20px; padding: 14px 16px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px;
}
.csd-compare-banner-body { min-width: 0; flex: 1 1 220px; }
.csd-compare-banner-body strong { display: block; font-size: 16px; margin-bottom: 3px; color: var(--ink); }
.csd-compare-banner-body p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-dim); max-width: 560px; }
.csd-compare-banner-btn {
  display: inline-flex; align-items: center; flex: 0 0 auto;
  padding: 11px 16px; border-radius: 10px;
  background: var(--red); color: #fff;
  font: 700 14px/1.2 Arial, sans-serif; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.csd-compare-banner-btn:hover { background: var(--red-dark); text-decoration: none; }
.csd-stat { border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; }
.csd-stat b { display: block; font-size: 21px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.csd-stat span { font-size: 12px; color: var(--ink-faint); }

.csd-chartbox { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 20px; }
.card-title-light { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin: 2px 2px 10px; }
.csd-mix12 { margin-top: 12px; }
.csd-mix-single { margin: 4px 2px; }
.csd-mix12 .lbl { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-bottom: 5px; }
.csd-mixbar { display: flex; height: 18px; border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.csd-mixbar span { display: block; height: 100%; min-width: 1px; transition: filter .12s; }
.csd-mixbar span:hover { filter: brightness(1.12); }
.csd-chart { height: 380px; width: 100%; }
.csd-chart-half { height: 320px; }
.csd-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.csd-trio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
@media (max-width: 1020px) { .csd-trio { grid-template-columns: 1fr; } }

.csd-grid-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 30px 0 14px; }
.csd-grid-head h2 { margin: 0; }

/* model grid on make page */
.csd-modelgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .csd-modelgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.csd-modelcard {
  display: block; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
  color: var(--ink); transition: border-color .12s, box-shadow .12s;
}
.csd-modelcard:hover { text-decoration: none; border-color: var(--red); box-shadow: 0 4px 16px rgba(20,28,40,.07); }
.csd-modelcard b { font-size: 15.5px; }
.csd-modelcard .mc-n { font-size: 13px; color: var(--ink-dim); margin-top: 2px; font-variant-numeric: tabular-nums; }
.csd-modelcard .mc-meta { font-size: 11.5px; color: var(--ink-faint); margin-top: 5px; }
.mc-live { display: inline-block; padding: 2px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 700; background: #e7f6ec; color: var(--up); margin-top: 7px; }
.mc-dead { display: inline-block; padding: 2px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 700; background: #f1f3f5; color: var(--ink-faint); margin-top: 7px; }

/* ============ compare ============ */
.csd-search-wrap { position: relative; max-width: 380px; flex: 1 1 260px; }
.csd-search-wrap input {
  width: 100%; border: 1px solid #dcdfe3; border-radius: 10px; padding: 10px 13px;
  /* 16px minimum: iOS Safari zooms the viewport into any focused input below 16px */
  font: 400 16px Arial, sans-serif; outline: none;
}
.csd-search-wrap input:focus { border-color: var(--red); }
.csd-search-results {
  position: absolute; z-index: 40; top: calc(100% + 5px); left: 0; right: 0; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 14px 40px rgba(20,28,40,.14); max-height: 300px; overflow-y: auto;
}
.csd-search-results li { padding: 9px 13px; cursor: pointer; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.csd-search-results li:hover { background: #fdeef0; }
.csd-search-results li small { color: var(--ink-faint); white-space: nowrap; }
.csd-cmp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.csd-cmp-chip {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line);
  background: var(--bg-soft); border-radius: 9px; padding: 7px 10px; font-size: 13.5px;
}
.csd-cmp-chip .dot { width: 10px; height: 10px; border-radius: 3px; }
.csd-cmp-chip button { appearance: none; border: 0; background: none; cursor: pointer; color: var(--ink-faint); font-size: 15px; line-height: 1; }
.csd-cmp-chip button:hover { color: var(--red); }
.csd-cmp-table { overflow-x: auto; }
.csd-cmp-grid { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.csd-cmp-grid th, .csd-cmp-grid td { padding: 8px 12px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line); }
.csd-cmp-grid thead th { position: sticky; top: 0; background: var(--bg-soft); color: var(--ink-dim); font-weight: 700; text-align: right; }
.csd-cmp-grid th:first-child, .csd-cmp-grid td.k { text-align: left; font-weight: 600; color: var(--ink-dim); }
.csd-cmp-grid tbody tr:hover td { background: #fdeef0; }
.csd-cmp-grid .z { color: #ccc; }
.csd-cmp-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 12px 0; }
.csd-cmp-bar .csd-cmp-chips { margin: 0; }
.csd-clear-all {
  appearance: none; border: 1px solid var(--line); background: #fff; cursor: pointer;
  border-radius: 9px; padding: 7px 12px; font-size: 13px; color: var(--ink-dim); white-space: nowrap;
}
.csd-clear-all:hover { border-color: var(--red); color: var(--red); }
.csd-cmp-empty {
  margin: 8px 0 0; padding: 38px 20px; text-align: center; color: var(--ink-faint);
  font-size: 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--bg-soft);
}
.csd-cmp-suggest {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin: 0 0 14px; padding: 12px 14px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
}
.csd-cmp-suggest-label {
  font-size: 13px; font-weight: 700; color: var(--ink-dim); white-space: nowrap;
}
.csd-cmp-suggest-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.csd-cmp-suggest-btn {
  appearance: none; cursor: pointer; border: 1px solid #dcdfe3; background: #fff;
  border-radius: 99px; padding: 7px 12px; font: 400 13px Arial, sans-serif; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.csd-cmp-suggest-btn:hover { border-color: var(--red); color: var(--red); }
.csd-cmp-suggest-btn small { color: var(--ink-faint); font-size: 11.5px; margin-left: 4px; }
.csd-search-results li .csd-tag {
  display: inline-block; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: var(--red); background: #fdeef0; border-radius: 5px;
  padding: 1px 6px; margin-left: 6px; vertical-align: 1px;
}

/* ============ year pages ============ */
.csd-yearnav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 4px 0 20px; font-size: 14px; font-weight: 700; }
.csd-yearnav-explore { font-weight: 400; }
.csd-years { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; margin-top: 22px; font-size: 13.5px; }
.csd-years a { color: var(--ink-dim); padding: 2px 2px; }
.csd-years a:hover { color: var(--red); }

/* ============ image-export buttons ============ */
.csd-has-imgbtn { position: relative; }
.csd-imgbtn {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  width: 32px; height: 32px; border-radius: 8px; color: #c3c8cf;
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent; transition: color .12s, background .12s;
}
.csd-imgbtn:hover { color: var(--red); background: #fdeef0; }
.csd-imgbtn svg { width: 17px; height: 17px; }
.csd-chartbox > .csd-imgbtn { position: absolute; top: 8px; right: 8px; z-index: 5; }
.csd-imgbtn-inline { margin-left: 6px; }

/* ============ quick answers (FAQ) ============ */
.csd-faq details { border: 1px solid var(--line); border-radius: 11px; margin-bottom: 8px; overflow: hidden; }
.csd-faq summary {
  cursor: pointer; font-weight: 700; font-size: 15px; padding: 13px 15px;
  list-style-position: inside; -webkit-tap-highlight-color: transparent;
}
.csd-faq summary:hover { color: var(--red); }
.csd-faq details[open] summary { border-bottom: 1px solid #f3f4f6; }
.csd-faq p { padding: 11px 15px 13px; color: var(--ink-dim); }

/* Latest stories — emulates the paultan.org search-result row, two columns. */
.csd-storygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 28px; margin: 0 0 12px; }
@media (max-width: 760px) { .csd-storygrid { grid-template-columns: 1fr; } }
.csd-stories .pt-search-result {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: Arial, sans-serif; box-sizing: border-box;
}
.csd-stories .pt-search-result-body { flex: 1 1 auto; min-width: 0; }
.csd-stories .pt-search-result-meta {
  font-size: 12px; line-height: 1.4; color: var(--ink-faint); margin: 0 0 4px;
}
.csd-stories .pt-search-result-title {
  margin: 0 0 5px; padding: 0; font-size: 16px; line-height: 1.3; font-weight: 700;
}
.csd-stories .pt-search-result-title a { color: var(--ink); text-decoration: none; }
.csd-stories .pt-search-result-title a:hover { color: var(--red); }
.csd-stories .pt-search-result-snippet {
  margin: 0; padding: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}
.csd-stories .pt-search-result-thumb {
  flex: 0 0 168px; width: 168px; height: 94px; border-radius: 8px;
  overflow: hidden; background: #f0f0f0; display: block;
}
.csd-stories .pt-search-result-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ============ share toolbar (compare) ============ */
.csd-sharebar { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.csd-share-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.csd-share-row + .csd-share-row { margin-top: 2px; }
.csd-share-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-faint); margin-right: 6px; min-width: 52px;
}
.csd-share-btn {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  width: 36px; height: 36px; border-radius: 9px; color: var(--ink-dim);
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent; transition: color .12s, background .12s;
}
.csd-share-btn:hover { color: var(--red); background: #fdeef0; text-decoration: none; }
.csd-share-btn svg { width: 19px; height: 19px; }
.csd-share-toast { font-size: 12.5px; font-weight: 700; color: var(--up); margin-left: 4px; }

/* ============ Carro certified inventory (API fragment) ============ */
.csd-carro-loading { min-height: 200px; }

@media (max-width: 979px) {
  .csd-carro .ptr-carro-mgrid-in {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .csd-carro .ptr-carro-tile {
    min-width: 0;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
  }

  .csd-carro .ptr-carro-tile-img {
    aspect-ratio: 5 / 3;
    line-height: 0;
    background: var(--bg-soft);
    overflow: hidden;
  }

  .csd-carro .ptr-carro-tile-img a { display: block; height: 100%; }

  .csd-carro .ptr-carro-tile-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }

  .csd-carro .ptr-carro-tile-body { padding: 8px 10px 10px; }

  .csd-carro .ptr-carro-tile-title {
    margin: 0 0 3px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: bold;
  }

  .csd-carro .ptr-carro-tile-title a {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ink);
    text-decoration: none;
  }

  .csd-carro .ptr-carro-tile-price {
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    font-weight: bold;
    color: var(--ink);
  }

  .csd-carro .ptr-carro-tile .ptr-carro-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 6px;
    padding: 6px 8px;
    gap: 5px;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }

  .csd-carro .ptr-carro-tile .ptr-carro-chat-btn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: currentColor;
  }
}

@media (max-width: 979px) and (hover: hover) {
  .csd-carro .ptr-carro-tile-title a:hover { color: var(--red); }
}

.csd-carro .ptr-carro-chat-btn--whatsapp { background: #25D366; }
.csd-carro .ptr-carro-chat-btn--line { background: #06C755; }

@media (min-width: 980px) {
  .csd-carro .ptr-carro-dgrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .csd-carro .ptr-carro-dtile {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    background: #fff;
  }

  .csd-carro .ptr-carro-dtile a {
    display: block;
    color: inherit;
    text-decoration: none;
  }

  .csd-carro .ptr-carro-dtile-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    object-fit: cover;
  }

  .csd-carro .ptr-carro-dtile--overlay .ptr-carro-dtile-img {
    aspect-ratio: auto;
    object-fit: contain;
  }

  .csd-carro .ptr-carro-dtile-cap {
    min-height: 47px;
    background: var(--red);
    padding: 6px 10px;
    box-sizing: border-box;
  }

  .csd-carro .ptr-carro-dtile-title {
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .csd-carro .ptr-carro-dtile-price {
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.2;
  }
}

/* ============ footer ============ */
.csd-foot { max-width: 1080px; margin: 30px auto 0; padding: 18px 16px 46px; border-top: 1px solid var(--line); color: var(--ink-dim); font-size: 13px; }
.csd-foot p { max-width: 760px; margin-bottom: 10px; }
.csd-foot-note { color: var(--ink-faint); font-size: 12px; }
.csd-foot-built { color: var(--ink-faint); }
.csd-foot-also { font-size: 14px; }

/* ============ responsive ============ */
@media (max-width: 860px) {
  .csd-tables { grid-template-columns: 1fr; }
  .csd-duo { grid-template-columns: 1fr; }
  td.r-spark { display: none; }
  th.r-spark { display: none; }
  .csd-chart { height: 320px; }
  td.r-name .nm { flex-direction: column-reverse; gap: 0; }
  td.r-name .nm-mk { font-weight: 400; font-size: 12px; color: var(--ink-faint); }
}
@media (max-width: 700px) {
  /* controls: one tidy block per row — no floating pipes, no ragged wrap */
  .csd-controls { flex-direction: column; align-items: stretch; gap: 12px; }
  .csd-controls .sep { display: none; }
  .csd-search-wrap { flex: 0 0 auto; max-width: none; }
  .csd-seg[data-role=mode] { display: flex; }
  .csd-seg[data-role=mode] button { flex: 1; white-space: nowrap; padding: 9px 4px; font-size: 12.5px; }
  .csd-ctl { justify-content: flex-start; flex-wrap: wrap; }
  .csd-ctl select { flex: 1; min-width: 0; }
  .csd-filters { gap: 6px; }
  .csd-filter-label { flex-basis: 100%; margin-bottom: 1px; }
}
@media (max-width: 480px) {
  td.r-share { width: 92px; }
  .sharebar b { font-size: 10px; }
  .csd-wrap { padding-top: 18px; }
  .csd-share-row { gap: 2px; }
  .csd-share-btn { width: 34px; height: 34px; }
  .csd-share-btn svg { width: 18px; height: 18px; }
}
