/* Price benchmarks — built on the tokens in base.css, nothing new invented. */

.prices-page .content-shell {
  margin: 0 auto 28px;
  width: min(1040px, calc(100% - 40px));
  border-radius: var(--radius);
  padding: 22px 24px 26px;
}

/* ── topbar tabs ── */

.price-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

:root[data-theme="dark"] .price-tabs { background: rgba(255,255,255,.04); }

.price-tab {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-2);
  white-space: nowrap;
}

.price-tab:hover { color: var(--text-1); }

.price-tab.is-on {
  background: linear-gradient(135deg, var(--accent), #F9B24B);
  color: #1D1200;
  box-shadow: 0 6px 14px rgba(233, 138, 21, .20);
}

@media (max-width: 760px) {
  .price-tabs { order: 3; width: 100%; justify-content: center; }
}

/* ── hero ── */

.price-hero {
  width: min(1040px, calc(100% - 40px));
  margin: 30px auto 18px;
}

.price-hero .eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.price-hero h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-hero p {
  margin-top: 8px;
  color: var(--text-2);
  max-width: 58ch;
}

/* ── category chips ── */

.price-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.price-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  background: var(--surface);
  color: var(--text-2);
}

.price-cat.is-on {
  background: linear-gradient(135deg, var(--accent), #F9B24B);
  border-color: transparent;
  color: #1D1200;
}

.price-cat.is-off { opacity: .55; }

.price-cat em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 5px;
  border: 1px solid var(--border);
  color: var(--text-3);
}

/* ── search panel ── */

.price-panel { border-radius: var(--radius); padding: 20px 22px; }

.price-search {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr .7fr 1.4fr auto;
  gap: 12px;
  align-items: end;
}

.price-search-vehicle { grid-template-columns: 1.1fr 1.1fr .7fr 1.4fr; }
.price-search-go { min-width: 120px; }

@media (max-width: 860px) {
  .price-search,
  .price-search-vehicle { grid-template-columns: 1fr 1fr; }
  .price-search-go { grid-column: 1 / -1; }
}

.price-who {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) { .price-who { display: none; } }

/* ── two equal ways in: typing, or a file ── */

.price-ways {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

@media (max-width: 860px) {
  .price-ways { grid-template-columns: 1fr; }
  .price-or { padding: 4px 0; }
}

.price-or {
  align-self: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.price-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 132px;
  padding: 20px;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

:root[data-theme="dark"] .price-drop { background: rgba(255,255,255,.03); }
.price-drop:hover { border-color: rgba(233, 138, 21, .55); }
.price-drop-icon { font-size: 24px; line-height: 1; }
.price-drop-name { font-size: 13.5px; font-weight: 800; color: var(--text-2); }

.price-locked {
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: center;
  max-width: 62ch;
  margin: 18px auto 0;
}

.price-locked-title { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.price-locked p { color: var(--text-2); font-size: 14px; }
.price-locked .btn { margin-top: 16px; }

.price-lines textarea,
.price-ways textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.95);
  color: var(--text-1);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  resize: vertical;
}

:root[data-theme="dark"] .price-ways textarea { background: rgba(255,255,255,.03); }

.price-ways textarea:focus {
  outline: none;
  border-color: rgba(233, 138, 21, .55);
  box-shadow: 0 0 0 4px rgba(233, 138, 21, .12);
}

.price-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.price-hint { font-size: 12px; color: var(--text-3); }

/* ── recent chips ── */

.price-recent { margin-top: 20px; }
.price-recent-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.price-chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
}

.price-chip:hover { color: var(--text-1); border-color: rgba(233, 138, 21, .35); box-shadow: var(--shadow-sm); }

/* ── the answer ── */

.price-back {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
}

.price-back:hover { color: var(--accent-2); }

.price-answer {
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  text-align: center;
}

.price-what {
  padding: 26px 22px 0;
  color: var(--text-3);
  font-size: 13.5px;
}

.price-figure {
  margin: 12px 0 0;
  font-size: clamp(30px, 6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.price-figure small {
  font-size: .42em;
  font-weight: 700;
  color: var(--text-3);
  margin-left: 6px;
}

.price-figure-none { color: var(--text-3); font-weight: 700; }

.price-typical {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  padding: 0 22px;
}

.price-typical strong { color: var(--text-1); }

.price-conf { margin: 16px 0 24px; min-height: 26px; padding: 4px 14px; font-size: 11.5px; }
.price-conf-published { background: rgba(21,128,61,.12); color: var(--green); }
.price-conf-thin { background: rgba(100,116,139,.14); color: var(--gray); }

/* ── the verified figure: what leads, and what is quoted back ── */

.price-verified {
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  text-align: center;
  border-color: rgba(21, 128, 61, .30);
  box-shadow: 0 12px 28px rgba(21, 128, 61, .10);
}

.price-verified-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 22px 0;
  flex-wrap: wrap;
}

.price-verified-ref {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .02em;
}

.price-verified .price-figure { margin-top: 10px; }
.price-verified .price-facts { margin-top: 18px; }

.price-verified-by {
  margin-top: 8px;
  padding: 0 22px;
  font-size: 14px;
  color: var(--text-2);
}

.price-verified-by strong { color: var(--text-1); }
.price-verified .pill { margin: 14px 0 20px; min-height: 26px; padding: 4px 14px; font-size: 11.5px; }

/* ── rates desk ── */

.price-rate-filter {
  display: grid;
  grid-template-columns: 2fr 1fr auto auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

@media (max-width: 860px) { .price-rate-filter { grid-template-columns: 1fr 1fr; } }

.price-rate-filter input[type="text"] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.95);
  color: var(--text-1);
}

:root[data-theme="dark"] .price-rate-filter input[type="text"] { background: rgba(255,255,255,.03); }

.rate-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 14px;
  margin: 14px 0 4px;
}

.rate-form-wide { margin-top: 16px; }

.rate-form-wide textarea,
.rate-form-grid textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.95);
  color: var(--text-1);
  line-height: 1.6;
  resize: vertical;
}

:root[data-theme="dark"] .rate-form-wide textarea { background: rgba(255,255,255,.03); }

.rate-form-grid input,
.rate-form-grid select,
.rate-form-wide input[type="file"] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.95);
  color: var(--text-1);
}

.rate-form-wide input[type="file"] { padding: 11px 14px; }

:root[data-theme="dark"] .rate-form-grid input,
:root[data-theme="dark"] .rate-form-grid select,
:root[data-theme="dark"] .rate-form-wide input[type="file"] {
  background: rgba(255,255,255,.03);
  color-scheme: dark;
}

.rate-form-rule { height: 1px; background: var(--border); margin: 22px 0 18px; }

.rate-form-error {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: rgba(220, 38, 38, .55); }

.price-calc {
  border-radius: var(--radius);
  padding: 20px 22px 22px;
  margin-top: 18px;
}

.price-calc .section-sub { margin: 6px 0 16px; font-size: 13.5px; max-width: 72ch; }

.price-calc-form {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr .7fr 1fr auto;
  gap: 12px;
  align-items: end;
}

@media (max-width: 980px) {
  .price-calc-form { grid-template-columns: 1fr 1fr; }
  .price-calc-go { grid-column: 1 / -1; }
}

.price-calc-form input[type="date"],
.price-calc-form input[type="text"] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.95);
  color: var(--text-1);
}

:root[data-theme="dark"] .price-calc-form input { background: rgba(255,255,255,.03); color-scheme: dark; }

.price-calc-form input:focus {
  outline: none;
  border-color: rgba(233, 138, 21, .55);
  box-shadow: 0 0 0 4px rgba(233, 138, 21, .12);
}

.price-calc .price-working { margin: 18px 0 0; }

.price-working {
  margin: 4px 20px 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  text-align: left;
}

:root[data-theme="dark"] .price-working { background: rgba(255,255,255,.03); }

.price-working-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 14px;
}

.price-working-table td {
  padding: 7px 0;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}

.price-working-table .r {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
  padding-left: 18px;
}

.price-working-table tr:last-child td { border-bottom: 0; }
.price-working-table tr.is-total td { font-weight: 800; color: var(--text-1); padding-top: 10px; }
.price-working .price-muted { margin-top: 10px; }

.price-verified-method {
  padding: 16px 22px 20px;
  text-align: left;
  border-top: 1px solid var(--border);
}

.price-verified-method p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-2);
  max-width: 78ch;
}

.price-verified .banner { margin: 0 18px 18px; text-align: left; }

.price-answer + .price-block { margin-top: 18px; }
.price-verified + .price-answer { margin-top: 18px; }

/* ── the market, kept plainly secondary to the confirmed figure ── */

.price-support {
  border-radius: var(--radius);
  padding: 18px 20px 4px;
  margin-top: 18px;
}

.price-support-open {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent-2);
  list-style: none;
  padding: 2px 0;
}

.price-support-open::-webkit-details-marker { display: none; }
.price-support-open::before { content: '▸ '; }
.price-support[open] .price-support-open::before { content: '▾ '; }
.price-support[open] .price-support-open { margin-bottom: 14px; }
.price-support-open:hover { color: var(--accent); }

.price-detail { margin-top: 16px; }
.price-detail summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--text-2); }
.price-detail summary:hover { color: var(--text-1); }
.price-detail .price-tablewrap { margin-top: 12px; }
.price-detail-locked { margin-top: 16px; font-size: 13px; color: var(--text-3); }
.price-detail-locked a { color: var(--accent-2); font-weight: 700; text-decoration: underline; }

.price-support-head .section-sub { margin-top: 4px; font-size: 13.5px; max-width: 78ch; }

.price-support-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1px;
  margin: 16px -20px 0;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.price-support-figures > div { background: var(--surface); padding: 13px 16px; }

.price-support-figures dt {
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 800;
  margin-bottom: 3px;
}

.price-support-figures dd { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }

.price-support-none {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-3);
  max-width: 74ch;
}

.price-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}

.price-facts > div { background: var(--surface); padding: 13px 14px; }

.price-facts dt {
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 800;
  margin-bottom: 3px;
}

.price-facts dd { font-size: 14.5px; font-weight: 800; }

/* ── tables ── */

.price-block { border-radius: var(--radius); margin-top: 18px; overflow: hidden; }
.price-block .section-heading { padding: 18px 20px 0; margin-bottom: 12px; }
.price-tablewrap { overflow-x: auto; }

.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.price-table th {
  text-align: left;
  padding: 10px 18px;
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 800;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.price-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.price-table td small { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 500; margin-top: 2px; }
.price-table td .pill { margin-left: 6px; }
.price-table tr.is-current { background: rgba(233, 138, 21, .07); }
.price-table .is-over { color: var(--orange); font-weight: 800; }

/* ── totals ── */

.price-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1px;
  margin-top: 18px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-totals > div { background: var(--surface); padding: 15px 18px; }

.price-totals dt {
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 800;
  margin-bottom: 4px;
}

.price-totals dd { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-totals dd.is-over { color: var(--orange); }

/* ── the workings ── */

.price-basis { border-radius: var(--radius); padding: 16px 20px; margin-top: 18px; }
.price-basis summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.price-basis summary:hover { color: var(--text-1); }
.price-basis-body { margin-top: 12px; font-size: 14px; color: var(--text-2); }
.price-basis-body ul { margin: 10px 0 0 1.1em; }
.price-basis-body li { margin-bottom: 5px; }
.price-muted { color: var(--text-3); font-size: 13px; margin-top: 12px; }

.price-empty { border-radius: var(--radius); padding: 26px; text-align: center; color: var(--text-2); }
.price-empty .btn { margin-top: 14px; }

.price-foot { margin-top: 22px; font-size: 12.5px; color: var(--text-3); max-width: 70ch; }
