/* Lists of articles: category, tag, author, date and search pages.
   A compact page title, one lead story, then a clean list. No boxes. */

body.sn-list {
  --sn-muted: color-mix(in srgb, var(--theme-text-color) 76%, transparent);
  --sn-soft: color-mix(in srgb, var(--theme-text-color) 7%, transparent);
  --sn-line: color-mix(in srgb, var(--theme-text-color) 14%, transparent);
  --sn-red: var(--sn-accent-text, var(--theme-palette-color-1));
  background: var(--theme-palette-color-8);
}
body.sn-list #main { background: var(--theme-palette-color-8); }
body.sn-list #sidebar,
body.sn-list #sidebar::before,
body.sn-list #sidebar::after { background: transparent !important; border: 0 !important; box-shadow: none !important; }
body.sn-list #main > .ct-container[data-vertical-spacing] { padding-top: 24px; }

/* ---------- Page title strip (Blocksy content block 397837) ---------- */
body.sn-list [data-block="hook:397837"] #gspb_col-id-gsbp-702ebdd5-2c70 { display: none !important; }
body.sn-list [data-block="hook:397837"] #gspb_col-id-gsbp-25149259-8ad6 { width: 100% !important; padding-block: 0 !important; }
body.sn-list [data-block="hook:397837"] #gspb_col-id-gsbp-810706d0-d93f { padding-block: 22px 20px !important; }
body.sn-list [data-block="hook:397837"] .ct-dynamic-data:is(h1) { font-size: 30px; line-height: 1.15; margin: 0 0 4px; }
body.sn-list [data-block="hook:397837"] .ct-breadcrumbs { min-height: 0; }
@media (min-width: 1000px) {
  body.sn-list [data-block="hook:397837"] #gspb_col-id-gsbp-810706d0-d93f { padding-block: 28px 24px !important; }
  body.sn-list [data-block="hook:397837"] .ct-dynamic-data:is(h1) { font-size: 40px; }
  body.sn-list #main > .ct-container[data-vertical-spacing] { padding-top: 36px; }
}

/* ---------- Cards: common ---------- */
body.sn-list .entries[data-archive] { --grid-columns-gap: 28px; }
body.sn-list .entries > .entry-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.sn-list .entry-card > * { margin: 0; }
body.sn-list .entry-card > .ct-media-container {
  order: 1;
  display: block;
  width: 100%;
  margin: 0 0 12px !important;
  border-radius: 4px;
  overflow: hidden;
  background: var(--sn-soft);
}
body.sn-list .entry-card > .ct-media-container img { width: 100%; height: auto; aspect-ratio: 16 / 9 !important; object-fit: cover; }
body.sn-list .entry-card > .entry-meta:first-child {
  order: 2;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sn-red);
}
body.sn-list .entry-card > .entry-meta:first-child :is(li, a) {
  display: inline;
  min-height: 0;
  min-width: 0;
  font-size: 12px !important;
  color: var(--sn-red);
}
body.sn-list .entry-card > .entry-title { order: 3; font-size: 20px; line-height: 1.22; letter-spacing: -0.01em; }
body.sn-list .entry-card > .entry-title a:hover { color: var(--sn-red); }
body.sn-list .entry-card > .entry-excerpt {
  order: 4;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--sn-muted);
}
body.sn-list .entry-card > .entry-excerpt p { margin: 0; }
body.sn-list .entry-card > .entry-meta:last-child { order: 5; margin-top: 8px; text-transform: none; letter-spacing: 0; font-weight: 400; }
body.sn-list .entry-card > .entry-meta:last-child :is(li, a, time) {
  min-height: 0;
  font-size: 13px !important;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--sn-muted);
}

/* Banner slots and the pager span the full list width. */
body.sn-list .entries > .sn-ads-slot { grid-column: 1 / -1; width: 100%; }
body.sn-list .entries > .sn-ads-slot--infeed { padding: 12px 0 16px; border-block: 1px solid var(--sn-line); }
body.sn-list .sn-ads-rail .sn-ad__label { display: none; }

/* ---------- Tablet and desktop: lead story, then two columns ---------- */
@media (min-width: 690px) {
  body.sn-list .entries[data-archive] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  body.sn-list .entries > .entry-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: 28px;
    align-items: start;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--sn-line);
  }
  body.sn-list .entries > .entry-card:first-child > .ct-media-container { grid-column: 1; grid-row: 1 / -1; margin: 0 !important; }
  body.sn-list .entries > .entry-card:first-child > :not(.ct-media-container) { grid-column: 2; }
  body.sn-list .entries > .entry-card:first-child > .entry-title { font-size: 30px; line-height: 1.15; }
  body.sn-list .entries > .entry-card:first-child > .entry-excerpt { -webkit-line-clamp: 4; }
}

/* ---------- Phones: lead story, then a compact list ---------- */
@media (max-width: 689.98px) {
  body.sn-list .entries[data-archive] { display: block; }
  body.sn-list .entries > .entry-card { padding: 14px 0; border-top: 1px solid var(--sn-line); }
  body.sn-list .entries > .entry-card:first-child { padding-top: 0; border-top: 0; }
  body.sn-list .entries > .entry-card:first-child > .ct-media-container {
    width: 100vw;
    max-width: 100vw;
    margin: 0 calc(50% - 50vw) 12px !important;
    border-radius: 0;
  }
  body.sn-list .entries > .entry-card:first-child > .entry-title { font-size: 24px; line-height: 1.18; }
  body.sn-list .entries > .entry-card:first-child > .entry-excerpt { -webkit-line-clamp: 3; }

  body.sn-list .entries > .entry-card:not(:first-child) {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    column-gap: 14px;
    align-items: start;
  }
  body.sn-list .entries > .entry-card:not(:first-child) > .ct-media-container { grid-column: 1; grid-row: 1 / span 3; margin: 0 !important; }
  body.sn-list .entries > .entry-card:not(:first-child) > .ct-media-container img { aspect-ratio: 4 / 3 !important; }
  body.sn-list .entries > .entry-card:not(:first-child) > :not(.ct-media-container) { grid-column: 2; }
  body.sn-list .entries > .entry-card:not(:first-child) > .entry-title { font-size: 17px; line-height: 1.25; }
  body.sn-list .entries > .entry-card:not(:first-child) > .entry-excerpt { display: none; }
  body.sn-list .entries > .entry-card:not(:first-child) > .entry-meta:first-child { margin-bottom: 3px; }
  body.sn-list .entries > .entry-card:not(:first-child) > .entry-meta:last-child { margin-top: 5px; }
  body.sn-list .entries > .sn-ads-slot--infeed { border-bottom: 0; }
}

/* ---------- Pager ---------- */
body.sn-list .ct-pagination { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--sn-line); }

/* ---------- Banner grid under the list (desktop) ---------- */
body.sn-list .sn-single-adgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 300px);
  justify-content: start;
  gap: 24px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--sn-line);
}
body.sn-list .sn-single-adgrid .sn-ad { margin: 0; }

/* Larger tap area for the small category links, with no change to the layout. */
body.sn-list .entry-card > .entry-meta:first-child a { padding-block: 11px; }

/* ======================= Round 3 refinements ======================= */

/* Breadcrumb on the black strip: readable current item. */
body.sn-list [data-block="hook:397837"] .ct-breadcrumbs .last-item,
body.sn-list [data-block="hook:397837"] .ct-breadcrumbs .last-item span { color: rgba(255, 255, 255, 0.82) !important; }
body.sn-list [data-block="hook:397837"] .ct-breadcrumbs .ct-separator { color: rgba(255, 255, 255, 0.5); }

/* Headlines: break at spaces, never inside a score such as 97-95. */
body.sn-list .entry-card > .entry-title { text-wrap: balance; hyphens: manual; overflow-wrap: normal; }

/* Meta: a middle dot, never a slash. Date sits below the excerpt with a fixed gap. */
body.sn-list .entry-card > .entry-meta:last-child > li:not(:last-child)::after {
  content: "\00b7";
  margin-inline: 8px;
  opacity: 0.7;
  background: none;
  transform: none;
  width: auto;
  height: auto;
}
body.sn-list .entries > .entry-card > .entry-meta:last-child { margin-top: 10px !important; }
body.sn-list .entries > .entry-card:not(:first-child) > .entry-meta:last-child { margin-top: auto !important; padding-top: 10px; }
body.sn-list .entry-card > .entry-meta:last-child a { display: inline-block; padding-block: 8px; margin-block: -8px; }

/* Tablet and desktop: fill holes next to a full-width banner. */
@media (min-width: 690px) {
  body.sn-list .entries[data-archive] { grid-auto-flow: row dense; }
  body.sn-list .entries > .sn-ads-slot--infeed .sn-ad { max-width: 340px; }
  body.sn-list .entries > .entry-card:first-child > .entry-title { font-size: 32px; margin-bottom: 4px; }
  body.sn-list .entries > .entry-card:first-child > .entry-meta:last-child { align-self: start; }
  /* Lead without a picture: one reading column, no empty half. */
  body.sn-list .entries > .entry-card:first-child:not(:has(> .ct-media-container)) { display: block; max-width: 700px; }
  body.sn-list .entries > .entry-card:first-child:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* Pages with no side column: three columns, narrower lead picture. */
@media (min-width: 1000px) {
  body.sn-list:is(.author, .search) .entries[data-archive] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.sn-list:is(.author, .search) .entries > .entry-card:first-child { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Phone list rows. */
@media (max-width: 689.98px) {
  body.sn-list .entries > .entry-card:not(:first-child) { grid-template-columns: 124px minmax(0, 1fr); }
  body.sn-list .entries > .entry-card:not(:first-child) > .ct-media-container { align-self: stretch; position: relative; min-height: 93px; }
  body.sn-list .entries > .entry-card:not(:first-child) > .ct-media-container img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto !important; }
  body.sn-list .entries > .entry-card:not(:first-child) > .entry-title { text-wrap: pretty; }
  body.sn-list .entries > .entry-card:first-child:not(:has(> .ct-media-container)) { padding-top: 6px; padding-bottom: 20px; }
  body.sn-list .entries > .sn-ads-slot--infeed { padding: 10px 0 12px; margin: 0; border-bottom: 1px solid var(--sn-line); }
  body.sn-list .entries > .sn-ads-slot--infeed .sn-ad { margin: 0 auto; }
  body.sn-list .entries > .sn-ads-slot--infeed + .entry-card { border-top: 0; }
  body.sn-list #main { padding-bottom: 24px; }
}

/* Pager. */
body.sn-list .ct-pagination { margin: 32px 0 0; padding-top: 20px; width: 100%; }
body.sn-list .ct-pagination[data-pagination="simple"] { display: flex; justify-content: space-between; align-items: center; }
body.sn-list .ct-pagination a { min-height: 44px; min-width: 44px; }
@media (max-width: 689.98px) {
  body.sn-list .ct-pagination .next, body.sn-list .ct-pagination .prev { min-height: 48px; min-width: 120px; justify-content: center; font-size: 13px; letter-spacing: 0.06em; }
}

/* Banner grid under the list. */
body.sn-list .sn-single-adgrid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 300px));
  gap: 28px 24px;
  justify-content: center;
  justify-items: center;
  margin-top: 32px;
}
body.sn-list .sn-single-adgrid .sn-ad { width: 100%; max-width: 300px; }
body.sn-list .sn-single-adgrid .sn-ad__label { text-align: center; margin-bottom: 8px; }
body.sn-list .entries + .sn-single-adgrid { border-top: 0; margin-top: 0; }
body.sn-list .entries:has(> .entry-card:only-of-type) + .sn-single-adgrid { padding-top: 0; }

/* Author page: the strip already shows the name. Keep one muted stats line. */
body.sn-list.author .hero-section { background: none !important; border: 0; padding: 0 !important; min-height: 0 !important; margin: 0 auto !important; width: var(--theme-container-width, 100%); max-width: var(--theme-normal-container-max-width, 1290px); }
body.sn-list.author .hero-section .ct-author-name .ct-media-container-static,
body.sn-list.author .hero-section .page-title { display: none; }
body.sn-list.author .hero-section .entry-header { max-width: none; padding: 20px 0 0 !important; margin: 0 !important; min-height: 0 !important; }
body.sn-list.author .hero-section .entry-meta { display: flex; justify-content: flex-start; margin: 0; padding: 0; }
body.sn-list.author .hero-section .entry-meta li { font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--sn-muted); }

/* Search: heading styled like the black strip. */
body.sn-list.search .hero-section {
  background: #000;
  width: 100vw;
  margin: 0 calc(50% - 50vw) 24px;
  padding: 22px calc(50vw - 50%) 20px;
  max-width: none;
  text-align: left;
}
body.sn-list.search .hero-section .entry-header { max-width: none; margin: 0; padding: 0; }
body.sn-list.search .hero-section .page-title { color: #fff; font-size: 30px; line-height: 1.15; margin: 0; text-align: left; overflow-wrap: anywhere; }
body.sn-list.search .hero-section .page-description { display: block !important; color: rgba(255, 255, 255, 0.82); margin-top: 8px; font-size: 16px; }
@media (min-width: 1000px) {
  body.sn-list.search .hero-section { padding-block: 28px 24px; margin-bottom: 32px; }
  body.sn-list.search .hero-section .page-title { font-size: 40px; }
}
body.sn-list.search-no-results #main > .ct-container { padding-bottom: 40px; }
body.sn-list.search #main > .ct-container[data-vertical-spacing] { padding-top: 0; }
body.sn-list.author .hero-section .entry-meta li:not(:last-child)::after { content: "\00b7"; margin-inline: 8px; background: none; transform: none; width: auto; height: auto; }
