/* Quote level: a filled gauge showing a quote against the national benchmark (0% to 200%) */
.vial {
  position: relative;
  height: 44px;
  margin: 8px 0 32px;
  border: 2px solid var(--border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  clip-path: inset(0 0 -40px 0 round 22px 22px 0 0);
}
/* 100% reference line, same color as the marker */
.vial::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: -9px;
  width: 2px;
  transform: translateX(-50%);
  background: var(--brand);
}
.vial__tick {
  position: absolute;
  bottom: -26px;
  transform: translateX(-50%);
  font-size: .75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.vial__tick--mid { color: var(--ink); font-weight: 600; }
/* marker: its ::before is the fill from the left edge up to the marker */
.vial__bubble {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  transition: left .35s ease;
}
.vial__bubble::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2000px;
  background: color-mix(in srgb, var(--brand) 32%, transparent);
}
.vial__bubble::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--brand);
}
#flag { margin-top: 12px; }
#flag.is-warn { color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .vial__bubble { transition: none; }
}

/* Licensing table: keep it inside the screen */
lg-table { display: block; max-width: 100%; }
lg-table caption,
lg-table p { white-space: normal; }
@media (max-width: 600px) {
  lg-table { overflow-x: auto; }
  lg-table * { max-width: 100%; }
  lg-table table,
  lg-table tbody,
  lg-table tr,
  lg-table td { display: block; width: 100%; min-width: 0; box-sizing: border-box; }
  lg-table caption { display: block; white-space: normal; }
  lg-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  lg-table tr { padding: 10px 0; border-bottom: 1px solid var(--border); }
  lg-table td { padding: 2px 0; white-space: normal; overflow-wrap: anywhere; }
  lg-table td:first-child { font-weight: 600; }
  lg-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: .7rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--muted);
  }
  lg-table td:not([data-label])::before {
    display: block;
    font-size: .7rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--muted);
  }
  lg-table td:not([data-label]):nth-of-type(1)::before { content: "State"; }
  lg-table td:not([data-label]):nth-of-type(2)::before { content: "Licensing authority"; }
  lg-table td:not([data-label]):nth-of-type(3)::before { content: "Threshold"; }
}

/* Guide cards: three columns, closer to the checklist */
section:has(.check-grid) { padding-bottom: 0; }
.section--guides { padding-top: 48px; }
@media (min-width: 761px) {
  .section--guides .data-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}