/* Zoryvia Auto | Wide screen layout v2
   Consistent across static pages, with existing mobile/tablet CSS untouched.
   The original narrow text paragraph widths remain intentional for readability.
*/
:root {
  --auto-wide-max: 1920px;
  --auto-wide-gutter: clamp(24px, 3vw, 56px);
  --container: 1920px;
}
@media (min-width: 900px) {
  html[data-auto-layout] body .container,
  html[data-auto-layout] body .wrap {
    box-sizing: border-box;
    width: min(calc(100% - 2 * var(--auto-wide-gutter)), var(--auto-wide-max)) !important;
    max-width: var(--auto-wide-max) !important;
    margin-inline: auto !important;
  }
}
@media (min-width: 1500px) {
  html[data-auto-layout="home"] .vehicle-grid,
  html[data-auto-layout="standard"] .grid:not(.two),
  html[data-auto-layout="locale"] .grid,
  html[data-auto-layout="catalog"] .grid,
  html[data-auto-layout="queue"] .grid,
  html[data-auto-layout="source"] .cards,
  html[data-auto-layout="market"] .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  html[data-auto-layout="evidence"] .cards,
  html[data-auto-layout="research"] .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 900px) and (max-width: 1499px) {
  html[data-auto-layout="source"] .cards,
  html[data-auto-layout="market"] .cards,
  html[data-auto-layout="catalog"] .grid,
  html[data-auto-layout="standard"] .grid:not(.two),
  html[data-auto-layout="locale"] .grid,
  html[data-auto-layout="queue"] .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* Long technical strings must not force body-level horizontal overflow. */
html[data-auto-layout] .panel,
html[data-auto-layout] .card,
html[data-auto-layout] .src-card,
html[data-auto-layout] .item {
  min-width: 0;
  overflow-wrap: anywhere;
}
html[data-auto-layout] img,
html[data-auto-layout] video {
  max-width: 100%;
}
/* Mobile homepage: avoid oversized ambient artwork / header actions. */
@media (max-width: 740px) {
  html[data-auto-layout="home"] .ambient-one,
  html[data-auto-layout="home"] .ambient-two { width: min(100%, 400px); }
  html[data-auto-layout="home"] .head-inner { gap: 8px; min-width: 0; }
  html[data-auto-layout="home"] .head-actions { gap: 6px; min-width: 0; flex-shrink: 0; }
  html[data-auto-layout="home"] .head-actions .nav-cta { display: none; }
  html[data-auto-layout="home"] .head-actions .language-index {
    display: inline-flex;
    justify-content: center; align-items: center;
    min-width: 28px; font-size: 0;
  }
  html[data-auto-layout="home"] .head-actions .language-index::before {
    content: "🌐"; font-size: 18px;
  }
}
@media (max-width: 420px) {
  html[data-auto-layout="home"] .head-actions .ask-link-mobile {
    padding: 5px 7px !important; font-size: 12px !important;
  }
  html[data-auto-layout="home"] .wordmark {
    font-size: 11px; letter-spacing: 0;
  }
}
@media (max-width: 365px) {
  html[data-auto-layout="home"] .wordmark > span:last-child {
    display: none;
  }
}

/* At smaller widths, the original per-page rules retain control. */
