/* Shared public reading tables and lists. Keep native table and list semantics. */
@media screen {
  .public-marketing-shell main :is(.search-table-wrap, .inventory-comparison, .custody-items) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: auto;
    scrollbar-color: #7b8da5 #edf1f6;
    border: 1px solid #cbd7e5;
    border-radius: 0;
    background: #fff;
  }
  .public-marketing-shell main table {
    width: 100%;
    max-width: none;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 15px;
    line-height: 1.6;
  }
  .public-marketing-shell main table.comparison-table { min-width: 800px; table-layout: fixed; }
  .public-marketing-shell main :is(th, td) {
    padding: 16px;
    border-bottom: 1px solid #cbd7e5;
    vertical-align: top;
    text-align: start;
    font-size: 15px;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .public-marketing-shell main thead th { background: #071221; color: #f7faff; font-weight: 700; }
  .public-marketing-shell main tbody th { background: #f5f8fc; color: #172234; font-weight: 600; }
  .public-marketing-shell main tbody td { background: #fff; color: #172234; }
  .public-marketing-shell main tbody tr:last-child > :is(th, td) { border-bottom: 0; }
  .public-marketing-shell main table :is(p, ul, ol) { margin-block: 0 8px; }
  .public-marketing-shell main table :is(p, ul, ol):last-child { margin-block-end: 0; }
  .public-marketing-shell main table.comparison-table thead th:first-child { width: 20%; }
  .public-marketing-shell main table.comparison-table thead th:last-child { width: 42%; }
  /* Narrative evidence needs wider reading columns than a short status matrix. */
  .public-marketing-shell main .search-table-wrap[aria-label="Rentman comparison table"] table.comparison-table { min-width: 1000px; }
  .public-marketing-shell main .search-table-wrap[aria-label="Rentman comparison table"] thead th:first-child { width: 16%; }
  .public-marketing-shell main .search-table-wrap[aria-label="Rentman comparison table"] thead th:last-child { width: 28%; }
  .public-marketing-shell main .custody-items td { padding: 10px; }
  .public-marketing-shell main .custody-items th:nth-child(3) { min-width: 90px; }

  /* Ordinary reading lists; numbered workflows, checklists and navigation keep their layouts. */
  .public-marketing-shell main.search-page > article > :is(ul, ol):not([class]),
  .public-marketing-shell main.search-page > article > :is(section, aside, div) > ul:not([class]):not(:has(input)),
  .public-marketing-shell main.search-page > article article > ul:not([class]):not(:has(input)),
  .public-marketing-shell main :is(.article-section, .article-failures, .article-sources, .case-study-article) > :is(ul, ol):not([class]),
  .public-marketing-shell main .search-grid > :is(section, article) > :is(ul, ol):not([class]),
  .public-marketing-shell main .comparison-editorial-section :is(ul, ol):not([class]) {
    padding-inline-start: 24px;
    margin-block: 16px;
    font-size: 16px;
    line-height: 1.65;
  }
  .public-marketing-shell main.search-page > article > :is(ul, ol):not([class]) > li,
  .public-marketing-shell main.search-page > article > :is(section, aside, div) > ul:not([class]):not(:has(input)) > li,
  .public-marketing-shell main.search-page > article article > ul:not([class]):not(:has(input)) > li,
  .public-marketing-shell main :is(.article-section, .article-failures, .article-sources, .case-study-article) > :is(ul, ol):not([class]) > li,
  .public-marketing-shell main .search-grid > :is(section, article) > :is(ul, ol):not([class]) > li,
  .public-marketing-shell main .comparison-editorial-section :is(ul, ol):not([class]) > li {
    padding-inline-start: 4px;
    font-size: 16px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }
  .public-marketing-shell main.search-page > article > :is(section, aside, div) > ul:not([class]):not(:has(input)) > li + li,
  .public-marketing-shell main.search-page > article article > ul:not([class]):not(:has(input)) > li + li,
  .public-marketing-shell main :is(.article-section, .article-failures, .article-sources, .case-study-article, .comparison-editorial-section, .search-grid) :is(ul, ol):not([class]) > li + li,
  .public-marketing-shell main.search-page > article > :is(ul, ol):not([class]) > li + li { margin-block-start: 8px; }
  @media (max-width: 600px) {
    .public-marketing-shell main :is(th, td) { padding: 12px; }
  }
}
