/* Article page. This file loads last on single posts and sets the final look.
   One reading column holds the header, the photo, the text and the end blocks. */

body.sn-article {
  --sn-col: 700px;
  --sn-muted: color-mix(in srgb, var(--theme-text-color) 68%, 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));
  /* Blocksy sets its own text colour inside the header meta, so keep the page colour here. */
  --sn-ink: var(--theme-text-color);
  background: var(--theme-palette-color-8);
}
body.sn-article #main { background: var(--theme-palette-color-8); }
body.sn-article #sidebar,
body.sn-article #sidebar::before,
body.sn-article #sidebar::after { background: transparent !important; border: 0 !important; box-shadow: none !important; }
body.sn-article #main > .ct-container[data-vertical-spacing] { padding-top: 20px; }

/* The old breadcrumb and share strip of Blocksy block 719 is replaced by the header below. */
body.sn-article article > [data-block="hook:719"] { display: none; }

/* ---------- Reading column ---------- */
@media (min-width: 690px) {
  body.sn-article #main article > .hero-section,
  body.sn-article #main article > .ct-featured-image,
  body.sn-article #main article > .sn-photo-caption,
  body.sn-article #main article > .sn-share,
  body.sn-article #main article > .entry-content,
  body.sn-article #main article > .entry-tags,
  body.sn-article #main article > .post-navigation {
    width: 100% !important;
    max-width: var(--sn-col) !important;
    margin-inline: auto !important;
  }
  body.sn-article #main > .ct-container[data-vertical-spacing] { padding-top: 40px; }
}
body.sn-article #main article > .entry-content > :is(p, h2, h3, h4, ul, ol, blockquote, .wp-block-quote) {
  max-width: none;
  margin-inline: 0;
}

/* ---------- Header: category, headline, byline ---------- */
body.sn-article .hero-section[data-type="type-1"] { margin: 0 0 18px; padding: 0; text-align: left; }
body.sn-article .hero-section .entry-header { text-align: left; }
body.sn-article .hero-section .entry-header > * { margin: 0; }

body.sn-article .hero-section .entry-meta { justify-content: flex-start; opacity: 1; gap: 0; }
body.sn-article .hero-section .entry-meta:not([data-id="second"]) {
  margin-bottom: 10px;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--sn-red);
}
body.sn-article .hero-section .entry-meta:not([data-id="second"]) :is(li, a) {
  font-size: 13px !important;
  color: var(--sn-red);
  min-height: 0;
  min-width: 0;
  display: inline;
}
body.sn-article .hero-section .entry-meta:not([data-id="second"]) a:hover { text-decoration: underline; }

body.sn-article .hero-section .page-title {
  margin: 0 0 14px;
  font-size: clamp(27px, 6.6vw, 31px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  font-weight: 700;
  text-wrap: balance;
  text-align: left;
  text-shadow: none;
  color: var(--theme-headings-color, var(--theme-text-color));
}

body.sn-article .hero-section .entry-meta[data-id="second"] {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0;
  row-gap: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--sn-muted);
}
body.sn-article .hero-section .entry-meta[data-id="second"] :is(li, a, time, span) {
  font-size: 14px !important;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  color: var(--sn-muted);
  min-height: 0;
  min-width: 0;
}
body.sn-article .hero-section .entry-meta[data-id="second"] li { display: inline-flex; align-items: baseline; margin: 0; padding: 0; }
body.sn-article .hero-section .entry-meta[data-id="second"] li::after { content: none !important; }
body.sn-article .hero-section .entry-meta[data-id="second"] li + li::before {
  content: "\00B7";
  margin: 0 8px;
  color: var(--sn-muted);
}
body.sn-article .hero-section .meta-author > span:first-child { margin-right: 4px; }
body.sn-article .hero-section .ct-meta-element-author,
body.sn-article .hero-section .ct-meta-element-author span {
  font-weight: 700;
  text-transform: capitalize !important;
  color: var(--sn-ink) !important;
  display: inline;
}
body.sn-article .hero-section .ct-meta-element-author:hover span { color: var(--sn-red) !important; }

/* ---------- Photo ---------- */
body.sn-article article > .ct-featured-image { margin-block: 0 0; padding: 0; }
body.sn-article article > .ct-featured-image .ct-media-container { display: block; border-radius: 4px; overflow: hidden; background: var(--sn-soft); }
body.sn-article article > .ct-featured-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
/* One caption only: the grey line under the photo. */
body.sn-article article > .ct-featured-image figcaption { display: none; }
body.sn-article .sn-photo-caption { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--sn-muted); }
@media (max-width: 689.98px) {
  /* Edge to edge on phones. */
  body.sn-article article > .ct-featured-image { width: 100vw !important; max-width: 100vw !important; margin-inline: calc(50% - 50vw) !important; }
  body.sn-article article > .ct-featured-image .ct-media-container { border-radius: 0; }
}

/* ---------- Share row (top) ---------- */
body.sn-article .sn-share--top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-block: 14px 22px;
  padding-block: 4px;
  border-block: 1px solid var(--sn-line);
}
body.sn-article .sn-share__label,
body.sn-article .sn-share__title,
body.sn-article .sn-follow__title,
body.sn-article .entry-tags .ct-module-title {
  display: block;
  margin: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sn-muted);
}
body.sn-article .sn-share--top .sn-share__label { display: block; margin-right: 6px; }
body.sn-article .sn-share__list { gap: 2px; flex-wrap: nowrap; }
body.sn-article .sn-share__btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--theme-text-color);
}
body.sn-article .sn-share__btn:hover,
body.sn-article .sn-share__btn:focus-visible { background: var(--sn-soft); color: var(--sn-red); }
body.sn-article .sn-share__btn svg { width: 20px; height: 20px; }
body.sn-article .sn-share .sn-share__txt { display: none !important; }
body.sn-article .sn-share--end .sn-share__btn--linkedin { display: inline-flex; }
body.sn-article .sn-share__list > li { flex: 0 0 auto !important; }

/* ---------- Text ---------- */
body.sn-article #main article > .entry-content,
body.sn-article #main article > .entry-content p,
body.sn-article #main article > .entry-content li { font-size: 18px; line-height: 1.65; }
body.sn-article #main article > .entry-content p { margin-block: 0 1.1em; }
body.sn-article #main article > .entry-content :is(h2, h3),
body.sn-article #main article > .entry-content p.sn-sub > strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--theme-headings-color, var(--theme-text-color));
}
body.sn-article #main article > .entry-content h2,
body.sn-article #main article > .entry-content p.sn-sub > strong { font-size: 22px; margin: 1.5em 0 -0.35em; }
body.sn-article #main article > .entry-content h2 { margin: 1.6em 0 0.55em; }
body.sn-article #main article > .entry-content h3 { font-size: 20px; margin: 1.5em 0 0.5em; }
@media (min-width: 1000px) {
  body.sn-article #main article > .entry-content,
  body.sn-article #main article > .entry-content p,
  body.sn-article #main article > .entry-content li { font-size: 19px; line-height: 1.7; }
  body.sn-article #main article > .entry-content h2,
  body.sn-article #main article > .entry-content p.sn-sub > strong { font-size: 25px; }
  body.sn-article #main article > .entry-content h3 { font-size: 21px; }
  body.sn-article .hero-section .page-title { font-size: clamp(34px, 3.1vw, 44px); line-height: 1.12; margin-bottom: 16px; }
  body.sn-article .hero-section .entry-meta[data-id="second"] :is(li, a, time, span) { font-size: 15px !important; }
  body.sn-article .hero-section[data-type="type-1"] { margin-bottom: 22px; }
}

/* Banners inside the text (phones and tablets) */
body.sn-article #main article > .entry-content .sn-ad--inarticle,
body.sn-article #main article > .entry-content .sn-only-mobile > .sn-ad {
  margin: 0;
  padding: 10px 0 16px;
  border-block: 1px solid var(--sn-line);
}
/* The outer slot (ads.css) must not add a second pair of lines. */
body.sn-article #main article > .entry-content .sn-ads-slot--inarticle { margin: 26px 0; padding: 0; border: 0; }

/* ---------- End of the article: share, follow, topics ---------- */
body.sn-article .sn-share--end {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  column-gap: 0;
  row-gap: 6px;
  margin: 34px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--sn-line);
}
body.sn-article .sn-share--end .sn-share__list { justify-content: flex-start; }
body.sn-article .sn-share--end .sn-share__status { display: none; }
body.sn-article .sn-follow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding-block: 14px;
  border-block: 0;
  border-top: 1px solid var(--sn-line);
}
body.sn-article .sn-follow__title { flex: 0 0 84px; min-width: 84px; }
body.sn-article .sn-follow__list { gap: 4px 16px; flex-wrap: wrap; }
body.sn-article .sn-follow__list > li { flex: 0 0 auto !important; }
body.sn-article .sn-follow__link {
  width: auto;
  min-width: 0;
  min-height: 40px;
  padding: 0;
  border: 0;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--theme-text-color);
}
body.sn-article .sn-follow__link:hover { color: var(--sn-red); }
body.sn-article .sn-follow__link svg { width: 18px; height: 18px; }

body.sn-article .entry-tags { margin-block: 0; padding-block: 14px 0; border-top: 1px solid var(--sn-line); }
body.sn-article .entry-tags .ct-module-title { margin-bottom: 10px; }
body.sn-article .entry-tags-items { display: flex; flex-wrap: wrap; gap: 8px; }
body.sn-article .entry-tags-items a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: var(--sn-soft);
  font-size: 13.5px;
  line-height: 1.2;
  color: var(--theme-text-color);
}
body.sn-article .entry-tags-items a > span { display: none; }
body.sn-article .entry-tags-items a:hover { background: var(--sn-red); color: #fff; }
body.sn-article .entry-tags-items a:nth-of-type(n+9) { display: none; }

/* ---------- Previous / next ---------- */
body.sn-article .post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
  margin-block: 22px 0 !important;
  padding: 14px 0 0;
  border-top: 1px solid var(--sn-line);
}
body.sn-article .post-navigation::after,
body.sn-article .post-navigation figure { display: none !important; }
body.sn-article .post-navigation [class*="nav-item"] { display: block; margin: 0; padding: 0; min-height: 0; text-align: left; }
body.sn-article .post-navigation .nav-item-next { text-align: right; }
body.sn-article .post-navigation .nav-item-next .item-title { text-align: left; }
body.sn-article .post-navigation .nav-item-next:empty { display: none; }
body.sn-article .post-navigation .item-content { display: block; margin: 0; }
body.sn-article .post-navigation .item-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sn-muted);
}
body.sn-article .post-navigation .item-label span { display: inline; }
body.sn-article .post-navigation .item-title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--theme-headings-color, var(--theme-text-color));
}
body.sn-article .post-navigation a:hover .item-title { color: var(--sn-red); }
@media (max-width: 689.98px) {
  body.sn-article .post-navigation { grid-template-columns: 1fr; }
  body.sn-article .post-navigation .nav-item-next { text-align: left; }
}

/* ---------- Banner rail (phones): one label, not one per banner ---------- */
body.sn-article .sn-ads-rail .sn-ad__label { display: none; }
body.sn-article .sn-ads-rail { margin-block: 40px 0; }
body.sn-article .sn-ads-rail__hint { font-weight: 700; letter-spacing: 0.08em; color: var(--sn-muted); opacity: 1; margin-bottom: 12px; }

/* ---------- Related articles ---------- */
body.sn-article .ct-related-posts { margin-top: 36px; padding-top: 18px; border: 0; border-top: 1px solid var(--sn-line); }
body.sn-article .ct-related-posts .ct-module-title {
  display: block;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  font-size: 22px;
  line-height: 1.2;
}
body.sn-article .ct-related-posts .related-entry-title { margin: 0; font-size: 17px; line-height: 1.28; }
body.sn-article .ct-related-posts .related-entry-title a:hover { color: var(--sn-red); }
body.sn-article .ct-related-posts .entry-meta { margin-top: 6px; color: var(--sn-muted); }
body.sn-article .ct-related-posts .ct-media-container { border-radius: 4px; overflow: hidden; background: var(--sn-soft); }
@media (max-width: 689.98px) {
  /* Compact list: small photo on the left, headline on the right. */
  body.sn-article .ct-related-posts-items { display: block; }
  body.sn-article .ct-related-posts-items > article { margin: 0; padding: 14px 0; border-top: 1px solid var(--sn-line); }
  body.sn-article .ct-related-posts-items > article:first-child { border-top: 0; padding-top: 0; }
  body.sn-article .ct-related-posts-items > article > div {
    display: grid;
    grid-template-columns: 116px 1fr;
    column-gap: 14px;
    align-items: start;
  }
  body.sn-article .ct-related-posts-items .ct-media-container { grid-row: 1 / span 2; margin: 0; }
  body.sn-article .ct-related-posts-items .ct-media-container img { aspect-ratio: 4 / 3 !important; width: 100%; height: auto; object-fit: cover; }
  body.sn-article .ct-related-posts .related-entry-title { font-size: 16px; }
  body.sn-article .ct-related-posts .entry-meta { margin-top: 4px; }
  body.sn-article .ct-related-posts .entry-meta :is(a, li) { min-height: 0; }
}

/* ---------- Banner grid under the related articles (desktop) ---------- */
body.sn-article .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-article .sn-single-adgrid .sn-ad { margin: 0; }

@media print {
  body.sn-article .sn-single-adgrid, body.sn-article .sn-ads-rail { display: none !important; }
}

/* Phones: keep the share row on one line. */
@media (max-width: 480px) {
  body.sn-article .sn-share__btn { width: 40px; min-width: 40px; }
  body.sn-article .sn-share--top .sn-share__btn--email { display: none; }
  body.sn-article .sn-share--top .sn-share__list { gap: 0; }
}

/* Byline: a separator never starts a line (the list clips it on the left). */
body.sn-article .hero-section .entry-meta[data-id="second"] { margin-left: -18px; clip-path: inset(0 0 0 18px); }
body.sn-article .hero-section .entry-meta[data-id="second"] li { position: relative; padding-left: 18px; white-space: nowrap; }
body.sn-article .hero-section .entry-meta[data-id="second"] li + li::before,
body.sn-article .hero-section .entry-meta[data-id="second"] li::before {
  content: "\00B7";
  position: absolute;
  left: 6px;
  margin: 0;
  color: var(--sn-muted);
}

/* Desktop: the reading column starts at the left edge, in line with the related articles. */
@media (min-width: 1000px) {
  body.sn-article #main article > .hero-section,
  body.sn-article #main article > .ct-featured-image,
  body.sn-article #main article > .sn-photo-caption,
  body.sn-article #main article > .sn-share,
  body.sn-article #main article > .entry-content,
  body.sn-article #main article > .entry-tags,
  body.sn-article #main article > .post-navigation { margin-inline: 0 auto !important; }
}

/* Phones: end blocks on one line each. */
@media (max-width: 480px) {
  body.sn-article .sn-share--end .sn-share__btn--linkedin,
  body.sn-article .sn-share--end .sn-share__btn--email { display: none; }
  body.sn-article .sn-follow { gap: 0 14px; }
  body.sn-article .sn-follow__title { flex: 0 0 100%; padding-top: 4px; }
  body.sn-article .sn-follow__list { gap: 0 14px; }
}

/* Larger tap area for the small category links, with no change to the layout. */
body.sn-article .hero-section .entry-meta:not([data-id="second"]) a { padding-block: 11px; }


/* Video embeds: a fixed iframe size leaves a blank hole, so give them a 16:9 box. */
body.sn-article #main article > .entry-content :is(iframe.youtube-player, iframe[src*="youtube"], iframe[src*="vimeo"], .wp-block-embed iframe) {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 4px;
  background: var(--sn-soft);
  margin: 1.6em 0;
}
body.sn-article #main article > .entry-content .wp-block-embed { margin: 1.6em 0; }

/* Very short articles: one share row is enough. */
body.sn-article.sn-short .sn-share--end { display: none; }
body.sn-article.sn-short .sn-follow { margin-top: 34px; }

/* Tablet: the banner rail and the related block use the same column as the text. */
@media (min-width: 690px) and (max-width: 999.98px) {
  body.sn-article .ct-related-posts,
  body.sn-article .sn-ads-slot--rail,
  body.sn-article .sn-ads-rail { width: 100%; max-width: var(--sn-col); margin-inline: auto; }
}

/* Desktop: a 760px reading column and a fixed banner column; the banner column spans the article. */
@media (min-width: 1000px) {
  body.sn-article { --sn-col: 760px; }
  body.sn-article #main > .ct-container[data-sidebar] {
    --grid-template-columns: minmax(0, 760px) 348px;
    justify-content: space-between;
  }
  body.sn-article #sidebar { align-self: stretch; }
  body.sn-article #sidebar .ct-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 100%;
    position: static;
  }
  body.sn-article #main article > .entry-content,
  body.sn-article #main article > .entry-content p,
  body.sn-article #main article > .entry-content li { font-size: 20px; line-height: 1.7; }
  body.sn-article #main article > .entry-content p.sn-sub > strong,
  body.sn-article #main article > .entry-content h2 { font-size: 26px; }
}

/* Date in the byline: short month on phones. */
body.sn-article .sn-d-short { display: none; }
@media (max-width: 480px) {
  body.sn-article .sn-d-long { display: none; }
  body.sn-article .sn-d-short { display: inline; }
}

/* A paragraph that only starts with bold text is body text (article.css styles it as a subheading). */
body.sn-article #main article > .entry-content p:not(.sn-sub) > strong:only-child {
  display: inline;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}
body.sn-article.sn-short .entry-tags { border-top: 0; padding-top: 22px; }

/* ======================= Coordinator pass (2026-11-25) ======================= */
/* Desktop banner column: one stack with an even gap. The last banner follows the reader
   on a long article, so the column is never an empty strip. No banner is stretched apart. */
@media (min-width: 1000px) {
  body.sn-article #sidebar .ct-sidebar {
    justify-content: flex-start;
    gap: 28px;
    width: 300px;
    height: 100%;
    margin-left: auto;
  }
  body.sn-article #sidebar .ct-sidebar > .ct-widget { margin: 0; }
  body.sn-article #sidebar .ct-sidebar > .ct-widget :is(figure, p) { margin: 0; }
  body.sn-article #sidebar .ct-sidebar > .ct-widget img { display: block; width: 300px; max-width: 100%; height: auto; }
  body.sn-article #sidebar .ct-sidebar > .ct-widget:last-child { position: sticky; top: 24px; }
}
/* The two share rows show the same networks. */
body.sn-article .sn-share--end .sn-share__btn--linkedin { display: none !important; }
/* Phones: a short byline. */
@media (max-width: 480px) {
  body.sn-article .sn-rt-long { display: none; }
}

/* The banner column fills the height of the article, so the last banner can follow the reader. */
@media (min-width: 1000px) {
  body.sn-article #sidebar { display: flex; flex-direction: column; }
  body.sn-article #sidebar .ct-sidebar { flex: 1 1 auto; height: auto; min-height: 0; }
}
body.sn-article .sn-rt-long { margin-left: 0.28em; }

/* ======================= Phone round 2 ======================= */
/* Back-to-top button: long articles, phones only. */
body.sn-article .sn-totop { display: none; }
@media (max-width: 689.98px) {
  body.sn-article .sn-totop {
    position: fixed;
    right: 12px;
    bottom: 16px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--sn-line);
    border-radius: 50%;
    background: var(--theme-palette-color-8, #fff);
    color: var(--theme-text-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.18s, transform 0.18s;
    cursor: pointer;
  }
  body.sn-article .sn-totop[hidden] { display: none; }
  body.sn-article .sn-totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
}
@media (max-width: 689.98px) and (prefers-reduced-motion: reduce) {
  body.sn-article .sn-totop { transition: none; }
}

@media (max-width: 689.98px) {
  /* Share row: six targets of 44 x 44, no touching gaps problem. */
  body.sn-article .sn-share__btn { width: 44px; min-width: 44px; }
  body.sn-article .sn-share--top .sn-share__list { gap: 0; }
  /* Byline author link: bigger tap area, same layout. */
  body.sn-article .hero-section .ct-meta-element-author a,
  body.sn-article .hero-section a.ct-meta-element-author { display: inline-block; padding-block: 12px; margin-block: -12px; }
  body.sn-article .sn-follow__link { min-height: 44px; }

  /* End blocks: tighter rhythm, topics in one swipe row. */
  body.sn-article .sn-share--end { margin-top: 24px; grid-template-columns: 76px 1fr; }
  body.sn-article .sn-follow { padding-block: 8px; }
  body.sn-article .entry-tags { padding-top: 12px; }
  body.sn-article .entry-tags .ct-module-title { margin-bottom: 8px; }
  body.sn-article .entry-tags-items {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -24px;
    padding: 0 40px 4px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 44px), transparent);
  }
  body.sn-article .entry-tags-items::-webkit-scrollbar { display: none; }
  body.sn-article .entry-tags-items a { flex: 0 0 auto; white-space: nowrap; min-height: 40px; }
  body.sn-article .entry-tags-items a:nth-of-type(n+9) { display: inline-flex; }
  body.sn-article .post-navigation { margin-block: 16px 0 !important; padding-top: 12px; }

  /* Banner rail: banners at natural width, one label style. */
  body.sn-article .sn-ads-rail { margin-block: 28px 0; }
  body.sn-article .sn-ads-rail__item { flex: 0 0 300px; max-width: 300px; }
  body.sn-article .sn-ads-rail__hint { font-size: 12px; font-weight: 700; margin-bottom: 10px; }

  /* Article without a photo: the first paragraph leads. */
  body.sn-article.sn-no-photo #main article > .entry-content > p:first-of-type {
    font-size: 20px;
    line-height: 1.5;
    color: var(--sn-ink);
  }
}
@media (max-width: 689.98px) {
  body.sn-article .sn-share--end .sn-share__list { gap: 0; }
}
@media (max-width: 374px) {
  body.sn-article .sn-share--top .sn-share__label,
  body.sn-article .sn-share--end .sn-share__label,
  body.sn-article .sn-share--end .sn-share__title { display: none; }
  body.sn-article .sn-share--end { grid-template-columns: 1fr; }
  body.sn-article .sn-ads-rail__item { flex-basis: calc(100% - 40px); }
}

/* ======================= Coordinator pass (mobile round, 2026-11-25) ======================= */
/* One back-to-top button only: the Blocksy one, shown while the reader scrolls up (see ux.css). */
body.sn-article .sn-totop { display: none !important; }
@media (max-width: 689.98px) {
  /* End of the article: the share buttons again (final check, 2026-11-27), then "Seguici". */
  body.sn-article .sn-share--end { display: block; padding-top: 0; border-top: 0; margin-top: 26px; }
  body.sn-article .sn-share--end > .sn-share__title,
  body.sn-article .sn-share--end > .sn-share__status { display: none !important; }
  body.sn-article .sn-share--end > .sn-share__list { margin-bottom: 18px; }
}
@media (max-width: 374.98px) {
  body.sn-article .hero-section .page-title { font-size: 24px; }
}

/* ======================= Webmaster review, 2026-11-26 ======================= */
/* "Ultime notizie" under the related articles (desktop). It fills the column beside the banners. */
body.sn-article .sn-more { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--sn-line); }
body.sn-article .sn-more__title { margin: 0 0 20px; font-size: 24px; line-height: 1.2; }
body.sn-article .sn-more__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
body.sn-article .sn-more__item { display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--sn-line); }
body.sn-article .sn-more__item:nth-child(-n+2) { border-top: 0; padding-top: 0; }
body.sn-article .sn-more__img { display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--sn-soft); }
body.sn-article .sn-more__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.sn-article .sn-more__cat { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--sn-red); }
body.sn-article .sn-more__h { margin: 0; font-size: 17px; line-height: 1.28; }
body.sn-article .sn-more__h a { color: var(--theme-headings-color, var(--theme-text-color)); }
body.sn-article .sn-more__date { display: block; margin-top: 6px; font-size: 13px; color: var(--sn-muted); }

/* ---------- Phones and tablets: banners between the stories below the article, then a grid of 2 columns ---------- */
body.sn-article .sn-more--m .sn-more__grid { grid-template-columns: minmax(0, 1fr); }
body.sn-article .sn-more--m .sn-more__item { grid-template-columns: 112px minmax(0, 1fr); column-gap: 13px; }
body.sn-article .sn-more--m .sn-more__item:nth-child(-n+2) { border-top: 1px solid var(--sn-line); padding-top: 16px; }
body.sn-article .sn-more--m .sn-more__item:first-child { border-top: 0; padding-top: 0; }
body.sn-article .sn-more--m .sn-more__h { font-size: 16px; }
body.sn-article .sn-ads-slot--more,
body.sn-article .sn-ads-slot--related { margin: 0; padding: 14px 0 16px; border-block: 0; border-top: 1px solid var(--sn-line); grid-column: 1 / -1; width: 100%; }
body.sn-article .sn-adgrid-m { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--sn-line); }
body.sn-article .sn-adgrid-m__label { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sn-muted); text-align: center; }
body.sn-article .sn-adgrid-m__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: center; max-width: 640px; margin-inline: auto; }
body.sn-article .sn-adgrid-m .sn-ad { margin: 0; }
body.sn-article .sn-adgrid-m .sn-ad__label { display: none; }
/* No grey placeholder box behind a banner below the article. */
body.sn-article :is(.sn-ads-slot--related, .sn-ads-slot--more, .sn-adgrid-m) .sn-ad__link { background: transparent; }
