/* rating-tariffs.css - /rating/tariffs. Family tokens only (gde-tokens.css); no hardcoded palette. */
.rt {
  box-sizing: border-box;
  max-inline-size: 64rem;
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 2rem) 1rem 3rem;
  color: var(--ink);
}
.rt *, .rt *::before, .rt *::after { box-sizing: inherit; }

.rt-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-block-end: 1rem; }
.rt-title { margin: 0; font-size: clamp(1.375rem, 4.6vw, 1.75rem); font-weight: 700; line-height: 1.2; }
.rt-lede { margin: 0; color: var(--ink-2); font-size: .9375rem; }

.rt-card {
  min-inline-size: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  padding: 1rem 1.125rem;
}
.rt-card + .rt-card { margin-block-start: .875rem; }
.rt-h2 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.rt-note { margin: .25rem 0 0; color: var(--ink-3); font-size: .8125rem; line-height: 1.45; }

/* Compact "not enough data" state: one card, progress + what is needed + CTAs */
.rt-gather { display: grid; gap: .75rem; }
.rt-gather-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.rt-count { color: var(--ink-2); font-size: .875rem; font-variant-numeric: tabular-nums; }
.rt-count strong { color: var(--ink); }
.rt-progress {
  inline-size: 100%;
  block-size: .5rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  appearance: none;
}
.rt-progress::-webkit-progress-bar { background: var(--surface-2); }
.rt-progress::-webkit-progress-value { background: var(--primary); border-radius: 999px; }
.rt-progress::-moz-progress-bar { background: var(--primary); border-radius: 999px; }
.rt-gather .rt-note { margin: 0; }
.rt-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.rt .btn { min-block-size: 2.75rem; justify-content: center; text-decoration: none; }

.rt-metric { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; margin-block-end: .875rem; }
.rt-metric strong { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rt-metric span { color: var(--ink-3); font-size: .8125rem; }

/* Tables: scroll region, keyboard reachable */
.rt-scroll { overflow-x: auto; margin-block-start: .5rem; }
.rt-scroll:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.rt-table { inline-size: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.rt-table th, .rt-table td { padding: .5rem .625rem; border-block-end: 1px solid var(--line); text-align: start; vertical-align: middle; }
.rt-table thead th {
  border-block-end: 2px solid var(--line-strong);
  color: var(--ink-3);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rt-table tbody th { font-weight: 500; }
.rt-table tbody tr:last-child th, .rt-table tbody tr:last-child td { border-block-end: 0; }
.rt-table tbody tr:hover { background: var(--surface-2); }
.rt-num { font-weight: 700; }
.rt-muted { color: var(--ink-3); }
.rt-h3 { margin: 1rem 0 0; font-size: .875rem; font-weight: 700; line-height: 1.3; }

/* City distribution: median headline + interquartile range, sample, period */
.rt-card .rt-metric { margin-block: .5rem 0; }
.rt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .5rem 1rem; margin: .75rem 0 0; }
.rt-stats div { min-inline-size: 0; }
.rt-stats dt { color: var(--ink-3); font-size: .75rem; }
.rt-stats dd { margin: 0; font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rt-card > .rt-note + .rt-note { margin-block-start: .5rem; }
.rt-card > .rt-actions { margin-block-start: .75rem; }

@media (max-width: 30rem) {
  .rt-actions .btn { flex: 1 1 100%; }
  .rt-card { padding: .875rem; }
}
