/* «Світло з авто» (/svitlo-z-avto/, src/svitlo.js; its studio: svitlo.css) and «Перехідники для зарядки» (/perekhidnyky/,
   src/adapters.js). Site tokens, .card, .field, .select, .band, .badge, .price, .btn from site.css. Phones: one column, the
   matrix as cards. */
.own-head { padding-bottom: 24px; }
.own-head__kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.own-head__kicker .i { width: 18px; height: 18px; color: var(--ok); }
.own-head h1 { margin-top: 8px; }

.own { display: grid; gap: clamp(40px, 5vw, 64px); padding-bottom: 96px; }
.own-sec { display: grid; gap: 14px; min-width: 0; }
.own-sec > h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; }
.own-sec > p { max-width: 74ch; }
.own-sec a, .own-band a { text-underline-offset: 3px; }
.own-empty { padding: 20px 22px; border-radius: var(--r-md); background: var(--mist); color: var(--muted); }
.own .band { margin-bottom: 0; }
.own-band h3 { font-size: 20px; line-height: 1.3; }

/* safety: the numbered rules on a soft amber panel */
.own-safety ol, .own-safety ul { display: grid; gap: 12px; max-width: 86ch; padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px) clamp(40px, 5vw, 56px); border-radius: var(--r-lg); background: var(--warn-bg); }
.own-safety ol { list-style: decimal; }
.own-safety ul { list-style: disc; }
.own-safety li { padding-left: 4px; line-height: 1.55; }
.own-safety li::marker { color: var(--warn); font-weight: 700; }

/* tables: confirmed V2L models, tests of an adapter */
.own-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.own-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.own-table th, .own-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.own-table thead th { background: var(--mist); font-size: 13px; font-weight: 600; }
.own-table tbody tr:last-child > * { border-bottom: 0; }
.own-table tbody th { font-weight: 600; }
.own-table__cat { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 500; }

/* cards: V2L kits, adapters */
.own-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.own-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px 16px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.own-card__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-md); background: var(--mist); }
.own-card__media img { width: 100%; height: 100%; object-fit: contain; }
.own-card__type { color: var(--muted); font-size: 13px; font-weight: 600; }
.own-card__name { font-size: 18px; font-weight: 700; line-height: 1.3; }
.own-card__type + .own-card__name { margin-top: -6px; }
.own-card__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; font-weight: 600; }
.own-card__parts { display: grid; gap: 4px; padding-left: 18px; list-style: disc; font-size: 14px; }
.own-card__desc { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.own-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.own-card .price { font-size: 20px; }
.own-chip { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 4px 12px 4px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 13px; font-weight: 600; }
.own-chip .i { width: 16px; height: 16px; }
.badge--none { background: var(--mist-2); color: var(--muted); }

.own-src ul { display: grid; gap: 8px; max-width: 86ch; padding-left: 20px; list-style: disc; color: var(--muted); font-size: 14px; }
.own-src a { color: var(--graphite); }

/* radio pills (the adapters' picker): the native input stays, the label is the pill */
.own-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.own-pills label { position: relative; display: inline-flex; cursor: pointer; }
.own-pills input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.own-pills span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
.own-pills label:hover input:not(:checked) + span { border-color: var(--graphite); }
.own-pills input:checked + span { border-color: var(--graphite); background: var(--graphite); color: #fff; }
.own-pills input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* the car picker's label (/perekhidnyky/; «Світло з авто» has its own: svitlo.css) */
.sv__field { display: grid; gap: 8px; min-width: 0; }
.sv__label { color: var(--muted); font-size: 13px; font-weight: 500; }
.mx-pick .select, .mx-pick .select select { display: block; width: 100%; }
.mx-pick .select select { text-overflow: ellipsis; }

/* ---------- «Перехідники»: the picker and the matrix ---------- */
.mx-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; gap: 16px 28px; padding: clamp(18px, 2.4vw, 28px); }
.mx-pick__ports { min-width: 0; margin: 0; padding: 0; border: 0; }
.mx-pick__ports legend { margin-bottom: 8px; padding: 0; }
.mx-pick__note { grid-column: 1 / -1; font-size: 14px; font-weight: 600; }
.mx-pick__note:empty { display: none; }
@media (max-width: 860px) { .mx-pick { grid-template-columns: minmax(0, 1fr); } }

.mx-wrap { overflow-x: auto; }
.mx { width: 100%; min-width: 900px; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-md); font-size: 14px; line-height: 1.45; }
.mx th, .mx td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.mx tbody tr:last-child > * { border-bottom: 0; }
.mx thead th { background: var(--mist); font-size: 14px; font-weight: 700; }
.mx thead th:first-child { width: 15%; color: var(--muted); font-size: 12px; font-weight: 600; }
.mx tbody th b { display: block; font-size: 18px; }
.mx tbody th small, .mx__cell small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 500; }
.mx__cell b { display: block; font-size: 15px; }
.mx__th { display: none; }
.mx--direct { background: var(--ok-bg); }
.mx--direct b { color: var(--ok); }
.mx--active { background: var(--warn-bg); }
.mx--active b { color: var(--warn); }
.mx--other b, .mx--none b { color: var(--muted); }
.mx-stats { color: var(--muted); font-size: 14px; }
.mx-stats b { color: var(--graphite); }
.mx-stats ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 4px; }
.mx-stats a { color: var(--graphite); font-weight: 600; }
/* phones: each row of the matrix is a card «your inlet → at each station»; the roles in the markup keep it a table */
@media (max-width: 760px) {
  .mx { min-width: 0; border: 0; }
  .mx, .mx thead, .mx tbody, .mx tr, .mx th, .mx td { display: block; }
  .mx thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .mx tbody tr { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); }
  .mx tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
  .mx tbody tr > :last-child { border-bottom: 0; }
  .mx tbody th { width: auto; background: var(--graphite); color: #fff; }
  .mx tbody th small { color: rgba(255, 255, 255, 0.75); }
  .mx__th { display: block; margin-bottom: 2px; color: var(--muted); font-size: 12px; font-weight: 600; }
}

/* ---------- «Перехідники»: tests ---------- */
.mx-test { display: grid; gap: 10px; min-width: 0; }
.mx-test h3 { font-size: 18px; }
.mx-test h3 small { color: var(--muted); font-size: 14px; font-weight: 500; }
.mx-res { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--mist-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.mx-res--ok { background: var(--ok-bg); color: var(--ok); }
.mx-res--partly { background: var(--warn-bg); color: var(--warn); }
.mx-res--fail { background: #fdecea; color: var(--danger); }
