/* =====================================================================
   RONROV V2 — stories page (stories.php) · 2026-10-10
   ---------------------------------------------------------------------
   Loads after assets/css/stories-page.css (skin page_map, manifest.json).
   Ron: "invest here like a story — everything painted like a European
   street in the snow". So the page is a walk down one snowy street:
     · hero        story_hero_{lane,bridge,square,tram} (T16), rotating,
                   with a CSS snowfall over it
     · rooftops    story_ridge_roofs (T17) where the featured band begins
     · band        story_band_snow (T7) behind the featured story + topics
     · page        story_feat_wash (T15) — the featured story is the
                   opening page of the book
     · strip       story_strip_shops (T18) behind "all stories"
     · chapters    every story card is numbered "פרק N" (CSS counter)
     · signs       topic groups carry painted icons story_icon_* (T14)
     · ending      story_end_window (T16) — a lit gallery window at the
                   end of the street, snow falling
     · stroke      story_stroke_ice (T11) under every heading
   All art is new for this page. Headings = Secular One (one weight: 400).
   Buttons 6px; ONE gradient button = the featured story's "read".
   Selectors start with `html body[data-skin="rovblog"] .stories-wrap.sx`
   to outrank the base sheet (.stories-wrap.sx …, 0-2-0).
   ===================================================================== */

html body[data-skin="rovblog"] .stories-wrap.sx {
  --sx-display: var(--rb-font-display, 'Secular One', 'Heebo', sans-serif);
  --sx-ink: #17181C;
  --sx-ink-2: #3A3640;
  --sx-muted: #5B5560;
  --sx-line: #EEE2EA;
}
html body[data-skin="rovblog"] .stories-wrap.sx :is(.sx-title, .sx-feat-title, .sx-list-title h2, .sx-card-title, .sx-topics-intro h2, .sx-cta h2) {
  font-family: var(--sx-display);
  font-weight: 400;               /* Secular One ships one weight */
}

/* the brush stroke, shared by every heading on the page */
html body[data-skin="rovblog"] .stories-wrap.sx :is(.sx-title, .sx-list-title h2, .sx-topics-intro h2, .sx-cta h2) {
  position: relative;
  z-index: 0;
  display: inline-block;
  justify-self: start;
  align-self: flex-start;
}
html body[data-skin="rovblog"] .stories-wrap.sx :is(.sx-title, .sx-list-title h2, .sx-topics-intro h2, .sx-cta h2)::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: -0.3em;
  bottom: 0;
  height: 0.45em;
  background: url("/assets/img/home/story_stroke_ice.webp") center / 100% 100% no-repeat;
  opacity: 0.6;
  pointer-events: none;
}

/* falling snow: three layers of flakes drifting down (CSS only) */
html body[data-skin="rovblog"] .stories-wrap.sx .sx-snow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 22px 34px, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
    radial-gradient(circle at 140px 110px, rgba(255, 255, 255, 0.9) 0 3px, transparent 4px),
    radial-gradient(circle at 90px 170px, rgba(214, 200, 240, 0.7) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 210px 60px, rgba(255, 255, 255, 0.85) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 260px 230px, rgba(214, 200, 240, 0.6) 0 2px, transparent 3px);
  background-size: 190px 190px, 280px 280px, 230px 230px, 340px 340px, 310px 310px;
  animation: sx-snowfall 22s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}
@keyframes sx-snowfall {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 40px 190px, -30px 280px, 25px 460px, -20px 340px, 30px 620px; }
}

/* --- 1. hero: the street, painted ------------------------------------ */
html body[data-skin="rovblog"] .stories-wrap.sx .sx-intro.sx-painted {
  position: relative;
  isolation: isolate;
  min-height: 480px;
  margin: -3.5rem 0 0;
  padding: 4.5rem 0 4.5rem;
  flex-direction: column;
  align-items: flex-start;        /* the reading side: right in Hebrew */
  justify-content: center;
  gap: 1.1rem;
}
html body[data-skin="rovblog"] .sx-painted .sx-hero-art,
html body[data-skin="rovblog"] .sx-painted .sx-snow,
html body[data-skin="rovblog"] .stories-wrap.sx .sx-intro.sx-painted::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
}
html body[data-skin="rovblog"] .sx-painted .sx-hero-art {
  position: absolute;
  z-index: -3;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 74%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 74%, transparent 100%);
  transition: opacity 500ms ease;
}
html body[data-skin="rovblog"] .sx-painted .sx-hero-art.is-fading { opacity: 0; }
html[dir="ltr"] body[data-skin="rovblog"] .sx-painted .sx-hero-art { transform: translateX(-50%) scaleX(-1); }
/* a paper glow on the text side */
html body[data-skin="rovblog"] .stories-wrap.sx .sx-intro.sx-painted::before {
  content: "";
  position: absolute;
  z-index: -2;
  background: linear-gradient(270deg, rgba(252, 249, 242, 0.9) 0%, rgba(252, 249, 242, 0.62) 30%, rgba(252, 249, 242, 0) 56%);
  pointer-events: none;
}
html[dir="ltr"] body[data-skin="rovblog"] .stories-wrap.sx .sx-intro.sx-painted::before {
  background: linear-gradient(90deg, rgba(252, 249, 242, 0.9) 0%, rgba(252, 249, 242, 0.62) 30%, rgba(252, 249, 242, 0) 56%);
}
html body[data-skin="rovblog"] .sx-painted .sx-intro-main { max-width: 38rem; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-painted .sx-title {
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 1.05;
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-painted .sx-title--tag { font-size: clamp(2.5rem, 5vw, 4.25rem); }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-painted .sx-kicker { color: #B0186A; font-weight: 700; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-painted .sx-lead {
  max-width: 30rem;
  margin: 0;
  font-weight: 500;
  color: #3A3640;
}
html body[data-skin="rovblog"] .stories-wrap.sx .stories-breadcrumb a { color: #B0186A; font-weight: 600; }
html body[data-skin="rovblog"] .stories-wrap.sx .stories-breadcrumb a:hover { color: #7A2FC8; }

/* --- 2. the featured story = the opening page ------------------------- */
/* band behind it, rooftops where the band begins */
html body[data-skin="rovblog"] .stories-wrap.sx .sx-featured,
html body[data-skin="rovblog"] .stories-wrap.sx .sx-topics {
  position: relative;
  isolation: isolate;
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-featured { margin-top: 120px; padding: 10px 0 40px; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-featured::before,
html body[data-skin="rovblog"] .stories-wrap.sx .sx-topics::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: -64px;
  bottom: -60px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: url("/assets/img/home/story_band_snow.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
  pointer-events: none;
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-topics::before { transform: translateX(-50%) scaleX(-1); }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-featured::after,
html body[data-skin="rovblog"] .stories-wrap.sx .sx-topics::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -150px;
  left: 50%;
  width: 100vw;
  height: 200px;
  transform: translateX(-50%);
  background: url("/assets/img/home/story_ridge_roofs.webp") center -135px / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 48%, transparent 80%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 48%, transparent 80%);
  opacity: 0.9;
  pointer-events: none;
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-topics::after { transform: translateX(-50%) scaleX(-1); }

html body[data-skin="rovblog"] .stories-wrap.sx .sx-feat {
  min-height: 34rem;
  background: #FCF9F2 url("/assets/img/home/story_feat_wash.webp") center / cover no-repeat;
  color: #17181C;
  border: 7px solid #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 22px 50px -18px rgba(124, 58, 237, 0.30), 0 4px 14px rgba(23, 24, 28, 0.06);
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-feat-media {
  margin: 14px;
  border-radius: 16px;
  background: #EFE7EE;
  box-shadow: 0 10px 26px rgba(23, 24, 28, 0.14);
}
/* the corner branches stay at the corners: a paper glow keeps the words clear */
html body[data-skin="rovblog"] .stories-wrap.sx .sx-feat-body {
  background: radial-gradient(ellipse 75% 70% at 50% 50%, rgba(252, 249, 242, 0.92) 0%, rgba(252, 249, 242, 0.6) 60%, rgba(252, 249, 242, 0) 100%);
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-feat-meta { letter-spacing: 0; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.3rem 0.75rem 0.3rem 0.6rem;
  background: #FFFFFF;
  color: #9D145B;
  border: 1.5px solid #EBC3DA;
  border-radius: 6px;
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-badge::before {
  content: "";
  width: 26px;
  height: 26px;
  background: url("/assets/img/home/story_icon_book.webp") center / contain no-repeat;
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-feat-tags { color: #6F6876; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-feat-title { font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.15; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-feat-title a { color: #17181C; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-feat-title a:hover { color: #9D145B; text-decoration: none; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-feat-excerpt { color: #3A3640; font-weight: 400; }

/* --- 3. buttons: 6px, one gradient (the featured "read") -------------- */
html body[data-skin="rovblog"] .stories-wrap.sx .sx-btn {
  border-radius: 6px;
  min-height: 3rem;
  transition: background var(--rb-t-fast, 0.15s), box-shadow var(--rb-t-fast, 0.15s), transform var(--rb-t-fast, 0.15s);
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-feat .sx-btn {
  background: linear-gradient(135deg, #DB1F80 0%, #8B3FD9 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(219, 31, 128, 0.24);
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-feat .sx-btn:hover {
  background: linear-gradient(135deg, #C4176F 0%, #7A2FC8 100%);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(219, 31, 128, 0.30);
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-cta .sx-btn {
  background: #FFFFFF;
  color: #B0186A;
  border: 1.5px solid #EBC3DA;
  box-shadow: 0 4px 12px rgba(219, 31, 128, 0.08);
  font-weight: 700;
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-cta .sx-btn:hover { background: #FDF2F8; border-color: #DB1F80; color: #9D145B; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-btn:focus-visible { outline: 3px solid #DB1F80; outline-offset: 3px; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-btn:active { transform: translateY(0); filter: brightness(0.96); }

/* --- 4. "all stories": the shop-front strip --------------------------- */
html body[data-skin="rovblog"] .stories-wrap.sx .sx-list { margin-block-start: 4rem; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-list-head.sx-strip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 240px;
  margin-block-end: 2.5rem;
  padding: 34px 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  text-align: center;
  background: #F7F1EA;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(22, 24, 29, 0.10);
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-strip .sx-paint {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-list-head.sx-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 40% 72% at 50% 50%, rgba(251, 248, 244, 0.94) 0%, rgba(251, 248, 244, 0) 100%);
  pointer-events: none;
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-strip .sx-list-title {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-strip .sx-list-title h2 {
  align-self: center;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.1;
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-count { color: #3F3A40; font-weight: 500; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-strip .sx-quick { justify-content: center; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-pill {
  min-height: 2.5rem;
  padding: 0 1rem;
  border-radius: 6px;
  border: 1.5px solid #EBC3DA;
  background: rgba(255, 255, 255, 0.94);
  color: #3A3640;
  font-weight: 600;
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-pill:hover { background: #FDF2F8; border-color: #DB1F80; color: #9D145B; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-pill.is-active { background: #FFFFFF; border-color: #DB1F80; color: #9D145B; box-shadow: inset 0 -3px 0 #F3B7D4; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-pill--more { border-style: dashed; color: #6D28D9; }

/* --- 5. story cards = numbered chapters -------------------------------- */
html body[data-skin="rovblog"] .stories-wrap.sx .sx-grid { gap: 2.75rem 2.25rem; counter-reset: sx-ch; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-card {
  position: relative;
  counter-increment: sx-ch;
  gap: 0.9rem;
  padding: 10px 10px 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 31, 128, 0.08);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.09), 0 3px 10px rgba(23, 24, 28, 0.05);
  transition: box-shadow var(--rb-t-fast, 0.15s);
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-card:hover { box-shadow: 0 18px 40px rgba(219, 31, 128, 0.15), 0 3px 10px rgba(23, 24, 28, 0.06); }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-card::before {
  content: "פרק " counter(sx-ch);
  position: absolute;
  z-index: 2;
  top: 24px;
  inset-inline-start: 24px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(23, 24, 28, 0.12);
  font-family: var(--sx-display);
  font-size: 1rem;
  color: #9D145B;
  pointer-events: none;
}
html[dir="ltr"] body[data-skin="rovblog"] .stories-wrap.sx .sx-card::before { content: "Chapter " counter(sx-ch); }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-card-media { border-radius: 17px; margin: 0; }
/* an odd count would leave the last chapter alone on its row (Ron: no lone
   item on a row) — it spans the row instead, as a wide closing page */
html body[data-skin="rovblog"] .stories-wrap.sx .sx-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-card:last-child:nth-child(odd) > .sx-card-media { aspect-ratio: 21 / 8; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-card-tags a { color: #B0186A; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-card-title { font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1.2; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-card-title a:hover { color: #9D145B; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-card-excerpt { font-size: 1.0625rem; font-weight: 400; color: #3A3640; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-link { color: #B0186A; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-link:hover { color: #7A2FC8; }

/* --- 6. topics = street signs ----------------------------------------- */
html body[data-skin="rovblog"] .stories-wrap.sx .sx-topics {
  margin-block-start: 190px;
  padding: 18px 0 40px;
  border-top: 0;
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-topics-intro { display: flex; flex-direction: column; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-topics-intro h2 { font-size: 2.25rem; margin-block-end: 1rem; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-topics-intro p { color: #3A3640; font-weight: 400; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-topic {
  align-items: center;
  margin-block-end: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 31, 128, 0.08);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.07);
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-topic:first-child { padding-block-start: 14px; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-topic-name {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  font-family: var(--sx-display);
  font-weight: 400;
  font-size: 1.25rem;
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-topic-name::before {
  content: "";
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: url("/assets/img/home/story_icon_lantern.webp") center / contain no-repeat;
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-topic[data-group="air"] .sx-topic-name::before { background-image: url("/assets/img/home/story_icon_plane.webp"); }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-topic[data-group="photo"] .sx-topic-name::before { background-image: url("/assets/img/home/story_icon_camera.webp"); }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-topic[data-group="journey"] .sx-topic-name::before { background-image: url("/assets/img/home/story_icon_suitcase.webp"); }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-topic[data-group="places"] .sx-topic-name::before { background-image: url("/assets/img/home/story_icon_lamp.webp"); }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-topic[data-group="nature"] .sx-topic-name::before { background-image: url("/assets/img/home/story_icon_pine.webp"); }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-tag {
  border-radius: 6px;
  border-color: #EEE2EA;
  color: #3A3640;
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-tag:hover { background: #FDF2F8; border-color: #DB1F80; color: #9D145B; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-tag.is-active { background: #FDF2F8; border-color: #DB1F80; color: #9D145B; font-weight: 700; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-tag-count,
html body[data-skin="rovblog"] .stories-wrap.sx .sx-tag.is-active .sx-tag-count { color: #B0186A; }

/* --- 7. the end of the street: a lit gallery window -------------------- */
html body[data-skin="rovblog"] .stories-wrap.sx .sx-cta.sx-cta-painted {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 380px;
  margin-block-start: 5rem;
  padding: 3.5rem 4rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  background: #F7F1EA;
  color: #3A3640;
  border: 7px solid #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 22px 50px -18px rgba(124, 58, 237, 0.30), 0 4px 14px rgba(23, 24, 28, 0.06);
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-cta-painted .sx-paint {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
html[dir="ltr"] body[data-skin="rovblog"] .stories-wrap.sx .sx-cta-painted .sx-paint { transform: scaleX(-1); }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-cta.sx-cta-painted::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(270deg, rgba(252, 249, 242, 0.9) 0%, rgba(252, 249, 242, 0.6) 34%, rgba(252, 249, 242, 0) 60%);
  pointer-events: none;
}
html[dir="ltr"] body[data-skin="rovblog"] .stories-wrap.sx .sx-cta.sx-cta-painted::before {
  background: linear-gradient(90deg, rgba(252, 249, 242, 0.9) 0%, rgba(252, 249, 242, 0.6) 34%, rgba(252, 249, 242, 0) 60%);
}
html body[data-skin="rovblog"] .stories-wrap.sx .sx-cta-painted .sx-snow { inset: 0; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-cta-painted > div { max-width: 30rem; display: flex; flex-direction: column; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-cta-painted h2 { color: #17181C; margin-block-end: 0.75rem; }
html body[data-skin="rovblog"] .stories-wrap.sx .sx-cta-painted p { color: #3A3640; font-weight: 500; }

/* --- 8. phone ---------------------------------------------------------- */
@media (max-width: 760px) {
  /* the painting becomes a full-bleed banner above the words */
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-intro.sx-painted {
    min-height: 0;
    margin-top: -2rem;
    padding: 0 0 1.5rem;
  }
  html body[data-skin="rovblog"] .sx-painted .sx-hero-art {
    position: relative;
    display: block;
    top: auto;
    bottom: auto;
    left: auto;
    width: 100vw;
    height: auto;
    margin-inline: calc(50% - 50vw);
    aspect-ratio: 5 / 4;
    transform: none;
  }
  html[dir="ltr"] body[data-skin="rovblog"] .sx-painted .sx-hero-art { transform: scaleX(-1); }
  html body[data-skin="rovblog"] .sx-painted .sx-snow { bottom: auto; height: 80vw; }
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-intro.sx-painted::before { display: none; }
  html body[data-skin="rovblog"] .sx-painted .sx-intro-main { margin-top: -0.75rem; }

  html body[data-skin="rovblog"] .stories-wrap.sx .sx-featured { margin-top: 90px; }
  /* rooftops at 180%: 146px tall, spanning -40..106px; the fade ends at 70% (105px), above the edge */
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-featured::after,
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-topics::after {
    top: -110px;
    height: 150px;
    background-size: 180% auto;
    background-position: center -40px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 50%, transparent 70%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 50%, transparent 70%);
  }
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-feat { border-width: 5px; border-radius: 20px; }
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-feat-media { margin: 8px 8px 0; border-radius: 14px; }

  html body[data-skin="rovblog"] .stories-wrap.sx .sx-list-head.sx-strip { min-height: 200px; padding: 26px 16px; border-radius: 18px; }
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-strip .sx-list-title { width: auto; }
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-strip .sx-quick {
    flex-wrap: wrap;
    overflow: visible;
    width: auto;
    margin: 0;
    padding: 0;
  }
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-pill { min-height: 2.5rem; font-size: 0.875rem; }
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-card::before { top: 20px; inset-inline-start: 20px; font-size: 0.9375rem; }
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-card > :not(.sx-card-media) { margin-inline: 10px; }
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-card:last-child:nth-child(odd) > .sx-card-media { aspect-ratio: 3 / 2; }

  html body[data-skin="rovblog"] .stories-wrap.sx .sx-topics { margin-block-start: 140px; }
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-topic { padding: 14px; }
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-topic-name::before { width: 40px; height: 40px; }

  html body[data-skin="rovblog"] .stories-wrap.sx .sx-cta.sx-cta-painted { min-height: 0; padding: 0 1.25rem 1.75rem; border-width: 5px; border-radius: 20px; }
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-cta-painted .sx-paint {
    position: relative;
    inset: auto;
    display: block;
    width: calc(100% + 2.5rem);
    height: auto;
    margin: 0 -1.25rem;
    aspect-ratio: 5 / 4;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  }
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-cta.sx-cta-painted::before { display: none; }
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-cta-painted .sx-snow { bottom: auto; height: 60%; }
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-cta-painted .sx-btn { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html body[data-skin="rovblog"] .stories-wrap.sx .sx-snow { animation: none; }
  html body[data-skin="rovblog"] .sx-painted .sx-hero-art { transition: none; }
}
