/* Сторінки сумісності (tools/site-source/cloud/compat.py): ті самі токени й шрифти, що й решта сайту (site.css, solar.css). */
.compat .section-head { max-width: 860px; }
.compat-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; font-size: 14px; line-height: 21px; color: var(--text-muted); }
.compat-crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--border); }
.compat-crumbs a { color: var(--text-secondary); text-underline-offset: 3px; }
.compat-crumbs [aria-current] { color: var(--text); }

.compat-h2 { font-size: 28px; line-height: 36px; margin: 56px 0 18px; }
.compat-family { margin-top: 56px; }
.compat-family h2 { font-size: 28px; line-height: 36px; margin-bottom: 8px; }
.compat-facts { margin: 20px 0 24px; max-width: 980px; }
.compat-facts dd { line-height: 27px; }
.compat-inline { min-height: 0; font-size: inherit; }

/* статуси: завжди слово, колір лише підсилює */
.st {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; white-space: nowrap;
  font-size: 13px; line-height: 20px; font-weight: 500; border: 1px solid var(--border); color: var(--text-secondary);
}
.st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.st-live, .st-yes { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.st-map, .st-partial, .st-check { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 9%, transparent); }
.st-no { color: var(--text-muted); }

.compat-search { max-width: 640px; margin: 0 0 22px; display: grid; gap: 8px; }
.compat-search label { font-size: 15px; line-height: 21px; font-weight: 500; }
.compat-search input {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--radius-field);
  border: 1px solid var(--field-border); background: var(--surface); font-size: 17px;
}
.compat-search input:focus-visible { border-color: var(--accent); }
.compat-legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 8px; font-size: 14px; line-height: 21px; color: var(--text-muted); }
.compat-legend p { margin: 0; display: flex; align-items: center; gap: 8px; }

.compat-grid { margin-top: 4px; }
.compat-card h3 { margin-bottom: 8px; }
.compat-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px !important; }
.compat-verdict { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 980px; }
.compat-tile { padding: 20px 22px; }
.compat-tile p { margin: 0; }
.compat-tile .mini-label { margin-bottom: 8px; }
.compat-big .st { font-size: 15px; padding: 4px 14px; }

.compat-scroll { overflow-x: auto; }
.compat-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.compat-table th { text-align: left; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text-muted); letter-spacing: .04em; padding: 0 14px 10px 0; }
.compat-table td { padding: 12px 14px 12px 0; border-top: 1px solid var(--border-soft); vertical-align: top; color: var(--text-secondary); }
.compat-table td:first-child { color: var(--text); }
.compat-table a { color: var(--text); text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.compat-table a:hover { color: var(--accent-hover); }
.compat-missing { margin: 0 0 14px; padding-left: 22px; list-style: disc; color: var(--text-secondary); }
.compat-empty { margin-top: 12px; color: var(--warn); }

.compat-others { margin-top: 48px; border-top: 1px solid var(--border-soft); padding-top: 16px; }
.compat-others summary { cursor: pointer; font-size: 18px; font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.compat-others-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.compat-others-list li { padding: 3px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; color: var(--text-secondary); }

.compat-cta { margin-top: 56px; }
.compat-cta-title { font-size: 20px; line-height: 28px; margin-bottom: 4px; }
.compat-cta .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 16px; }
.compat-faq-wrap { margin-top: 56px; max-width: 860px; }
.compat-faq-wrap h2 { font-size: 28px; line-height: 36px; margin-bottom: 18px; }
.compat-note { margin-top: 32px; font-size: 14px; line-height: 21px; color: var(--text-muted); }

@media (max-width: 760px) {
  .compat-verdict { grid-template-columns: 1fr; }
  .compat-h2, .compat-family h2, .compat-faq-wrap h2 { font-size: 24px; line-height: 32px; }
  /* таблиця стає стосом карток: підпис колонки — перед значенням */
  .compat-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compat-table, .compat-table tbody, .compat-table tr, .compat-table td { display: block; width: 100%; }
  .compat-table tr { border-top: 1px solid var(--border-soft); padding: 10px 0; }
  .compat-table tr[hidden] { display: none; }
  .compat-table td { border: 0; padding: 4px 0; display: grid; grid-template-columns: 104px 1fr; gap: 10px; }
  .compat-table td::before { content: attr(data-label); color: var(--text-muted); font-size: 13px; }
}
