/* =====================================================================
   RONROV V2 — a single story (story.php) · 2026-10-10, round 3
   ---------------------------------------------------------------------
   Loads after assets/css/story-page.css (skin page_map, manifest.json).
   History: round 1 put the photo on a painted snowy-street stage with
   ornaments ("busy and childish"), round 2 faded it ("the display is
   awful — change the page"). Round 3 is an editorial article:
     breadcrumb → title + meta (centred) → the framed photo, height-capped
     so a portrait never fills the screen → a 720px reading column →
     tags once → the "the end" card (the page's ONE painted element,
     tale_end_door).
   story.php renders the photo inside the article on this skin
   (.tl-photo); the dark .story-hero is not printed at all.
   Headings = Secular One 400 + the short centred tale_stroke.
   ===================================================================== */

html body[data-skin="rovblog"]:has(.story-surface) { background: #FCF9F2; }

/* --- the page: no white sheet, no overlap — plain paper ---------------- */
html body[data-skin="rovblog"] .story-surface.tl-page {
  max-width: 1160px;
  min-height: 0;
  margin: 0 auto;
  padding: 2.2rem 24px 1rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
html body[data-skin="rovblog"] .tl-page .story-breadcrumb {
  justify-content: center;
  margin: 0 auto 1.4rem;
  font-size: 0.8125rem;
  opacity: 1;
}
html body[data-skin="rovblog"] .tl-page .story-breadcrumb a { color: #B0186A; font-weight: 600; }
html body[data-skin="rovblog"] .tl-page .story-breadcrumb a:hover { color: #7A2FC8; }
html body[data-skin="rovblog"] .tl-page .bc-sep { color: #D9C9D3; }
html body[data-skin="rovblog"] .tl-page .bc-current { color: #6F6876; font-weight: 500; }
html body[data-skin="rovblog"] .tl-page .story-article { margin-bottom: 0; }

/* --- title block ----------------------------------------------------- */
html body[data-skin="rovblog"] .tl-page .story-header {
  max-width: 840px;
  margin: 0 auto 2.2rem;
  text-align: center;
}
html body[data-skin="rovblog"] .tl-page .story-title {
  position: relative;
  z-index: 0;
  display: inline-block;
  margin: 0 0 1rem;
  font-family: var(--rb-font-display);
  font-weight: 400;
  letter-spacing: 0;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.15;
  color: #17181C;
}
/* a SHORT centred stroke: a wrapped title never gets a full-width line */
html body[data-skin="rovblog"] .tl-page .story-title::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 0.02em;
  width: min(100%, 4.5em);
  height: 0.42em;
  transform: translateX(-50%);
  background: url("/assets/img/home/tale_stroke.webp") center / 100% 100% no-repeat;
  opacity: 0.6;
  pointer-events: none;
}
html body[data-skin="rovblog"] .tl-page .story-meta { justify-content: center; margin: 0; color: #8A8290; }
html body[data-skin="rovblog"] .tl-page .story-meta-dot { background: #EBC3DA; }
html body[data-skin="rovblog"] .tl-page .story-tags-header { display: none; }   /* tags once, at the end */

/* --- the photo: framed, centred, never taller than the screen --------- */
html body[data-skin="rovblog"] .tl-photo {
  display: flex;
  justify-content: center;
  margin: 0 auto 2.6rem;
}
html body[data-skin="rovblog"] .tl-photo-frame {
  position: relative;
  max-width: 100%;
  line-height: 0;
  background: #FFFFFF;
  border: 10px solid #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgba(23, 24, 28, 0.35), 0 8px 24px rgba(124, 58, 237, 0.08);
}
html body[data-skin="rovblog"] .tl-photo .story-hero-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(74vh, 820px);
  border-radius: 3px;
  cursor: zoom-in;
}
html body[data-skin="rovblog"] .tl-photo .story-enlarge-hint {
  bottom: 14px;
  right: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #EBC3DA;
  box-shadow: 0 6px 16px rgba(23, 24, 28, 0.14);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[dir="rtl"] body[data-skin="rovblog"] .tl-photo .story-enlarge-hint { right: auto; left: 14px; }
html body[data-skin="rovblog"] .tl-photo .story-enlarge-hint svg { color: #9D145B; }
html body[data-skin="rovblog"] .tl-photo-frame:hover .story-enlarge-hint,
html body[data-skin="rovblog"] .tl-photo .story-enlarge-hint:focus-visible { opacity: 1; transform: scale(1); }
html body[data-skin="rovblog"] .tl-photo .story-enlarge-hint:hover { background: #FDF2F8; }
html body[data-skin="rovblog"] .tl-photo .story-enlarge-hint:focus-visible { outline: 3px solid #DB1F80; outline-offset: 2px; }

/* --- the reading column ---------------------------------------------- */
html body[data-skin="rovblog"] .tl-page .story-sep {
  width: 56px;
  height: 2px;
  margin: 0 auto 2.2rem;
  background: #EBC3DA;
  border-radius: 1px;
}
html body[data-skin="rovblog"] .tl-page :is(.story-content, .story-empty, .story-article-footer) {
  max-width: 720px;
  margin-inline: auto;
}
html body[data-skin="rovblog"] .tl-page .story-content { color: #2A2630; }
/* no drop cap (a floated י of "יש" read as a stray mark) — the first paragraph is a lead */
html body[data-skin="rovblog"] .tl-page .story-content > p:first-of-type::first-letter {
  float: none;
  margin: 0;
  padding: 0;
  font: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
}
html body[data-skin="rovblog"] .tl-page .story-content > p:first-of-type {
  font-size: 1.22em;
  line-height: 1.75;
  color: #17181C;
  font-weight: 500;
}
html body[data-skin="rovblog"] .tl-page .story-content a { color: #B0186A; text-decoration-color: rgba(219, 31, 128, 0.3); }
html body[data-skin="rovblog"] .tl-page .story-content a:hover { text-decoration-color: #DB1F80; }
html body[data-skin="rovblog"] .tl-page .story-content :is(h2, h3) {
  font-family: var(--rb-font-display);
  font-weight: 400;
  letter-spacing: 0;
  color: #17181C;
}
html body[data-skin="rovblog"] .tl-page .story-content blockquote {
  border-inline-start: 3px solid #EBC3DA;
  background: #FBF6F3;
  padding: 1rem 1.3rem;
  color: #3A3640;
}
html body[data-skin="rovblog"] .tl-page .story-content img {
  border: 6px solid #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.10), 0 3px 10px rgba(23, 24, 28, 0.06);
}
html body[data-skin="rovblog"] .tl-page .story-article-footer {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid #F0E6EC;
  text-align: center;
}
html body[data-skin="rovblog"] .tl-page .story-footer-tags { justify-content: center; }
html body[data-skin="rovblog"] .tl-page .story-footer-tags .story-ftag {
  background: transparent;
  border-color: #EEE2EA;
  color: #6F6876;
  font-weight: 500;
}
html body[data-skin="rovblog"] .tl-page .story-footer-tags .story-ftag:hover { background: #FDF2F8; border-color: #DB1F80; color: #9D145B; }

/* --- "the end": the one painted element -------------------------------- */
html body[data-skin="rovblog"] .tl-end {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: calc(100% - 48px);
  max-width: 1100px;
  min-height: 340px;
  margin: 3.5rem auto 5rem;
  padding: 3rem 4rem;
  background: #F7F1EA;
  border: 7px solid #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 22px 50px -18px rgba(124, 58, 237, 0.22), 0 4px 14px rgba(23, 24, 28, 0.06);
}
html body[data-skin="rovblog"] .tl-end-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
html[dir="ltr"] body[data-skin="rovblog"] .tl-end-art { transform: scaleX(-1); }
html body[data-skin="rovblog"] .tl-end::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(270deg, rgba(252, 249, 242, 0.92) 0%, rgba(252, 249, 242, 0.6) 34%, rgba(252, 249, 242, 0) 60%);
  pointer-events: none;
}
html[dir="ltr"] body[data-skin="rovblog"] .tl-end::before {
  background: linear-gradient(90deg, rgba(252, 249, 242, 0.92) 0%, rgba(252, 249, 242, 0.6) 34%, rgba(252, 249, 242, 0) 60%);
}
html body[data-skin="rovblog"] .tl-end-text { max-width: 30rem; display: flex; flex-direction: column; align-items: flex-start; }
html body[data-skin="rovblog"] .tl-end-kicker { margin: 0 0 0.6rem; color: #B0186A; font-weight: 700; font-size: 0.9375rem; }
html body[data-skin="rovblog"] .tl-end h2 {
  position: relative;
  z-index: 0;
  margin: 0 0 0.75rem;
  font-family: var(--rb-font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.2;
  color: #17181C;
}
html body[data-skin="rovblog"] .tl-end-text > p:not(.tl-end-kicker) { margin: 0 0 1.5rem; color: #3A3640; font-weight: 500; line-height: 1.7; }
html body[data-skin="rovblog"] .tl-end-actions { display: flex; flex-wrap: wrap; gap: 12px; }
html body[data-skin="rovblog"] .tl-btn {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  background: #FFFFFF;
  color: #B0186A;
  border: 1.5px solid #EBC3DA;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(219, 31, 128, 0.08);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--rb-t-fast, 0.15s), border-color var(--rb-t-fast, 0.15s);
}
html body[data-skin="rovblog"] .tl-btn:hover { background: #FDF2F8; border-color: #DB1F80; color: #9D145B; }
html body[data-skin="rovblog"] .tl-btn:focus-visible { outline: 3px solid #DB1F80; outline-offset: 3px; }
html body[data-skin="rovblog"] .tl-btn:active { background: #FBE4F0; }

/* --- phone ------------------------------------------------------------- */
@media (max-width: 760px) {
  html body[data-skin="rovblog"] .story-surface.tl-page { padding: 1.4rem 16px 0.5rem; }
  html body[data-skin="rovblog"] .tl-page .story-header { margin-bottom: 1.5rem; }
  html body[data-skin="rovblog"] .tl-page .story-title { font-size: 2rem; }
  html body[data-skin="rovblog"] .tl-photo { margin: 0 -6px 2rem; }
  html body[data-skin="rovblog"] .tl-photo-frame { border-width: 6px; border-radius: 8px; }
  html body[data-skin="rovblog"] .tl-photo .story-hero-img { max-height: 70vh; }
  html body[data-skin="rovblog"] .tl-photo .story-enlarge-hint { opacity: 1; transform: none; bottom: 10px; right: 10px; }
  html[dir="rtl"] body[data-skin="rovblog"] .tl-photo .story-enlarge-hint { right: auto; left: 10px; }

  html body[data-skin="rovblog"] .tl-end {
    flex-direction: column;
    align-items: stretch;
    width: calc(100% - 24px);
    min-height: 0;
    margin: 2.5rem auto 3.5rem;
    padding: 0 1.25rem 1.75rem;
    border-width: 5px;
    border-radius: 20px;
  }
  html body[data-skin="rovblog"] .tl-end-art {
    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"] .tl-end::before { display: none; }
  html body[data-skin="rovblog"] .tl-end-actions { flex-direction: column; }
  html body[data-skin="rovblog"] .tl-btn { justify-content: center; }
}
