/* Safety: one data picture (the dot field, highlight by country), then short pills:
   where Ugo helps, how we test, what is on every test vehicle, what we will publish. */
.saf-head .t-lead { max-width: 40ch; }
.saf-head h1 { max-width: 16ch; }

.saf-ref {
  display: inline-block; margin-left: 4px; vertical-align: super; font-size: 10px; font-weight: 400; line-height: 1; letter-spacing: 0;
  color: var(--accent); text-decoration: none;
}
.saf-ref:hover { color: var(--accent-2); }

/* ---------- dot field ---------- */
.saf-toll__title {
  max-width: 17ch;
  font-size: clamp(2.3rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -0.04em; font-weight: 600;
}
.dots-box { position: relative; margin-top: clamp(28px, 3.4vw, 44px); }
.dots-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.dots-ctrl[hidden] { display: none; }
.dots-ctrl label { color: var(--fg-2); font-size: 15px; }
.dots-ctrl select {
  appearance: none; -webkit-appearance: none;
  height: 40px; padding: 0 38px 0 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--bg-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23aca6b4' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 15px center;
  color: var(--fg); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
}
.dots-ctrl select:hover { border-color: var(--fg-3); }
.dots-readout { display: flex; align-items: baseline; gap: 10px; color: var(--fg-2); font-size: 16px; max-width: 70ch; }
.dots-readout b { color: var(--fg); font-weight: 600; }
.dots-readout__swatch { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }

.dots { display: block; width: 100%; height: auto; margin-top: 22px; }
.dots path { fill: none; stroke-linecap: round; stroke-width: 5.4; stroke: #625a6c; transition: stroke .2s var(--ease); }
.dots path.dots__c--alt { stroke: #7f778d; }
.dots path.is-hover { stroke: #bdb5c8; }
.dots path.is-sel { stroke: var(--accent); }
.dots-box.is-live .dots { cursor: pointer; }
.dots--tall { display: none; }
@media (max-width: 699px) {
  .dots--wide { display: none; }
  .dots--tall { display: block; }
  .dots path { stroke-width: 5.8; }
}
.dots-tip {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none;
  display: grid; gap: 2px; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 6px;
  background: rgba(17, 15, 21, .96); box-shadow: 0 10px 30px rgba(0,0,0,.35); white-space: nowrap;
}
.dots-tip[hidden] { display: none; }
.dots-tip strong { color: var(--fg); font-size: 15px; font-weight: 600; }
.dots-tip span { color: var(--fg-2); font-size: 13px; }
.dots-key { margin-top: 12px; color: var(--fg-3); font-size: 13.5px; }
.saf-toll__note { margin-top: 8px; max-width: 62ch; color: var(--fg-2); font-size: 15px; }

.dots-table { margin-top: 22px; max-width: 640px; }
.dots-table summary { display: inline-block; cursor: pointer; color: var(--fg); font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.dots-table summary:hover { text-decoration-color: var(--accent); }
.dots-table table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14.5px; }
.dots-table th, .dots-table td { padding: 8px 12px 8px 0; text-align: left; border-bottom: 1px solid var(--line); }
.dots-table thead th { color: var(--fg-3); font-weight: 500; font-size: 13px; }
.dots-table tbody th { color: var(--fg); font-weight: 500; }
.dots-table td { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.dots-table p { margin-top: 12px; color: var(--fg-3); font-size: 13.5px; }

/* ---------- pills: one short title, one short line ---------- */
.saf-h { margin-bottom: clamp(26px, 3vw, 40px); max-width: 20ch; }
.pills { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .pills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .pills--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pills--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.pills > li {
  display: grid; align-content: start; gap: 6px;
  padding: 18px 20px 20px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-1);
}
.pills b { color: var(--fg); font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.pills span { color: var(--fg-2); font-size: 14.5px; line-height: 1.5; }
.pills--2 b { font-size: 19px; }

/* steps are a sequence: numbered, the current one marked */
.pills--steps { counter-reset: step; }
.pills--steps > li { counter-increment: step; }
.pills--steps > li::before { content: counter(step); color: var(--fg-3); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.pills--steps > li.is-now { border-color: var(--accent); }
.pills--steps > li.is-now::before { color: var(--accent); }
.pills--steps em { margin-left: 8px; font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--accent-2); }

/* Waymo: someone else's numbers, in one compact strip */
.saf-waymo { margin-top: 12px; padding: 18px 20px 20px; border: 1px dashed var(--line-2); border-radius: 14px; }
.saf-waymo__src { color: var(--fg-2); font-size: 14.5px; font-weight: 600; }
.saf-waymo ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .saf-waymo ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.saf-waymo li { display: grid; gap: 2px; }
.saf-waymo li b { color: var(--fg); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.saf-waymo li span { color: var(--fg-2); font-size: 14px; }
.saf-waymo__note { margin-top: 14px; color: var(--fg-3); font-size: 13.5px; }

/* report status */
.saf-status { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--fg-2); font-size: 15px; }
.saf-status__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--fg-3); }

/* contact */
.saf-contact .email-row a { color: var(--fg); font-size: clamp(19px, 2.6vw, 29px); letter-spacing: -.03em; text-decoration: none; }
.saf-contact .email-row a:hover, .saf-contact .email-row a:focus-visible { color: var(--accent-2); }

/* sources */
.band--sources { padding-block: clamp(48px, 6vw, 80px); }
.saf-sources__title { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; color: var(--fg-2); }
.sources { counter-reset: src; display: grid; gap: 10px; }
.sources li { counter-increment: src; position: relative; padding-left: 28px; color: var(--fg-3); font-size: 14px; line-height: 1.5; max-width: 72ch; }
.sources li::before { content: counter(src); position: absolute; left: 0; top: 1px; font-size: 12px; color: var(--accent); }
.sources a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.sources a:hover { color: var(--fg); text-decoration-color: var(--accent); }

@media (prefers-reduced-motion: reduce) { .dots path { transition: none; } }
