
/* sc-compare-fullwidth-lock v1 \u2014 Yuval 11 Sep 2026
   Fixes: theme .container padding-right:304px + nested .sc-page/.sc-compare crushing the 1000px rail. */
html body.page:has(article.sc-compare) .container,
html body.page:has(article.sc-compare) .article__entry,
html body.page:has(article.sc-compare) .article__entry.container,
html body.page:has(article.sc-compare) .entry-content,
html body:has(.sc-preview article.sc-compare) .container,
html body:has(.sc-preview article.sc-compare) .article__body {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
html body .sc-preview > .sc-page,
html body.page .entry-content > .sc-page {
  width: min(100% - 48px, 1000px) !important;
  max-width: 1000px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
/* Flatten accidental nested wrappers (double publish) so one grid owns the rail */
html body .sc-page .sc-page {
  display: contents !important;
}
html body article.sc-compare article.sc-compare {
  display: contents !important;
}
@media (min-width: 980px) {
  html body .sc-preview article.sc-compare,
  html body.page article.sc-compare {
    display: grid !important;
    grid-template-columns: minmax(0, 720px) 240px !important;
    column-gap: 40px !important;
    width: min(100% - 48px, 1000px) !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: start !important;
    box-sizing: border-box !important;
  }
  html body .sc-preview article.sc-compare > header.sc-list-hero,
  html body.page article.sc-compare > header.sc-list-hero {
    grid-column: 1 / -1 !important;
  }
  html body .sc-preview article.sc-compare > *:not(nav.sc-toc):not(.sc-toc),
  html body.page article.sc-compare > *:not(nav.sc-toc):not(.sc-toc) {
    grid-column: 1 !important;
    min-width: 0 !important;
  }
  html body .sc-preview article.sc-compare > nav.sc-toc,
  html body .sc-preview article.sc-compare > .sc-toc,
  html body.page article.sc-compare > nav.sc-toc,
  html body.page article.sc-compare > .sc-toc {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 2 / span 80 !important;
    position: sticky !important;
    top: 84px !important;
    align-self: start !important;
    width: 240px !important;
    max-width: 240px !important;
  }
}
@media (max-width: 979.98px) {
  html body .sc-preview article.sc-compare,
  html body.page article.sc-compare {
    display: block !important;
    width: min(100% - 32px, 720px) !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  html body .sc-preview article.sc-compare > nav.sc-toc,
  html body .sc-preview article.sc-compare > .sc-toc,
  html body.page article.sc-compare > nav.sc-toc,
  html body.page article.sc-compare > .sc-toc {
    display: none !important;
  }
}

/* sc-compare-table-wrap-lock v1 - 3 Oct 2026: keep compare cells readable on phones. */
html body article.sc-compare .sc-table-wrap,
html body .sc-preview article.sc-compare .sc-table-wrap {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  max-width: 100% !important;
  -webkit-overflow-scrolling: touch;
}
html body article.sc-compare table.sc-compare-table,
html body .sc-preview article.sc-compare table.sc-compare-table {
  width: max-content !important;
  min-width: 640px !important;
  table-layout: auto !important;
}
html body article.sc-compare table.sc-compare-table th,
html body article.sc-compare table.sc-compare-table td,
html body .sc-preview article.sc-compare table.sc-compare-table th,
html body .sc-preview article.sc-compare table.sc-compare-table td {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: manual !important;
}
