/* ──────────────────────────────────────────────────────────────────────────
   RECATOOLS — editorial magazine layer (guides + news bodies)
   ----------------------------------------------------------------------------
   Owner, 24 Nov 2026: guides should be "as lively as a 'Tutorials' guide and
   magazine style that keep ppl to keep coming back and bookmark", with "new
   css, which is meant for guides and news" where needed.

   Two halves, one file (one request on the article critical path, not two):
     1. The media-kit components — slides, video, diagram, gallery, download,
        callout, checklist, takeaways, before-after (<rt-component> types,
        config/editorial-components.php; writer's guide
        docs/editorial-media-kit.md).
     2. Magazine treatments a writer opts into on ORDINARY body markup:
        p.mag-dropcap (guides only), blockquote.pull, figure.wide /
        figure.full-bleed, hr.mag-divider — plus the guide page's Save button,
        Continue-reading offer and a firmer reading-progress bar.

   Loaded ONLY by resources/views/news/show.blade.php (article + guide pages),
   AFTER editorial-components.css.

   SPECIFICITY. The page's generic prose rules live inside a nested
   `.rt-theme-v2 { … }` block, so `.article-body p|img|ul|li|blockquote` reach
   (0,2,1). Every rule here that must beat one of them is written with the
   `.rt-theme-v2 .article-body` prefix; rules with no competitor are not.

   TOKENS only (public/assets/css/rt-tokens.css), so the [data-theme="dark"]
   switch that file defines carries through. Ink pairs follow
   docs/contrast-conventions.md: --rt-ink / --rt-ink-soft on light grounds,
   --rt-result-ink / --rt-result-muted on the navy --rt-result-bg.

   LAYOUT STABILITY (docs/cls-conventions.md). Every media box reserves its
   space from the first paint — aspect-ratio frames, sized <img>/<video>,
   controls drawn server-side. Anything JavaScript changes is a transform, a
   colour, text inside an already-sized box, or position: fixed.

   MOTION. Every transition and smooth scroll is switched off under
   prefers-reduced-motion at the bottom of this file.
   ────────────────────────────────────────────────────────────────────────── */

.rt-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ══ 1. MEDIA KIT ═══════════════════════════════════════════════════════════ */

/* ── Shared: a media card ───────────────────────────────────────────────── */
.rt-slides, .rt-checklist, .rt-download {
    background: var(--rt-surface);
    border: 1px solid var(--rt-hairline);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgb(13 27 42 / .04), 0 12px 32px -18px rgb(13 27 42 / .22);
}
.rt-theme-v2 .article-body .rt-slides img,
.rt-theme-v2 .article-body .rt-video img,
.rt-theme-v2 .article-body .rt-gallery img,
.rt-theme-v2 .article-body .rt-download img,
.rt-theme-v2 .article-body .rt-ba img { margin: 0; }

/* ── Slides ─────────────────────────────────────────────────────────────── */
.rt-slides { margin: 2.25rem 0; padding: 0; overflow: hidden; }
.rt-slides-track {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;            /* swipe, arrow keys and the buttons move it */
    -webkit-overflow-scrolling: touch;
}
.rt-slides-track::-webkit-scrollbar { display: none; }
.rt-slides-track:focus-visible { outline: 2px solid var(--rt-accent); outline-offset: -2px; }
.rt-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.rt-slide-frame {
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(120% 90% at 50% 0%, var(--rt-surface) 0%, var(--rt-bg-inset) 100%);
    border-bottom: 1px solid var(--rt-hairline);
    display: flex; align-items: center; justify-content: center;
}
.rt-ratio-4-3 .rt-slide-frame { aspect-ratio: 4 / 3; }
.rt-ratio-3-2 .rt-slide-frame { aspect-ratio: 3 / 2; }
.rt-ratio-1-1 .rt-slide-frame { aspect-ratio: 1 / 1; }
.rt-ratio-4-5 .rt-slide-frame { aspect-ratio: 4 / 5; }
.rt-theme-v2 .article-body .rt-slide-frame img {
    width: 100%; height: 100%; object-fit: contain; border-radius: 0; display: block;
}
.rt-slide-body { padding: 18px 22px 4px; }
.rt-theme-v2 .article-body .rt-slide-title {
    font-family: var(--rt-font-serif); font-weight: 700;
    font-size: 20px; line-height: 1.25; letter-spacing: -0.01em;
    color: var(--rt-ink); margin: 0 0 6px;
}
.rt-theme-v2 .article-body .rt-slide-text {
    font-size: 15.5px; line-height: 1.6; color: var(--rt-ink-soft); margin: 0 0 8px;
}
.rt-theme-v2 .article-body .rt-slide-cap {
    font-family: var(--rt-font-mono); font-size: 12px; letter-spacing: .02em;
    line-height: 1.5; color: var(--rt-ink-muted); margin: 0 0 8px;
}
.rt-slides-bar {
    display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
    padding: 12px 16px 14px;
}
.rt-slides-btn {
    width: 40px; height: 40px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    font: 600 17px/1 var(--rt-font-sans);
    color: var(--rt-ink); background: var(--rt-surface);
    border: 1px solid var(--rt-hairline); cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.rt-slides-btn:hover:not(:disabled) { border-color: var(--rt-ink); transform: translateY(-1px); }
.rt-slides-btn:focus-visible { outline: 2px solid var(--rt-accent); outline-offset: 2px; }
.rt-slides-btn:disabled { opacity: .38; cursor: default; }
.rt-slides-next { background: var(--rt-ink); color: var(--rt-surface); border-color: var(--rt-ink); }
.rt-slides-next:hover:not(:disabled) { background: var(--rt-accent-fill); border-color: var(--rt-accent-fill); color: #fff; }
.rt-theme-v2 .article-body .rt-slides-count {
    margin: 0; font-family: var(--rt-font-mono); font-size: 13px; font-weight: 500;
    letter-spacing: .04em; color: var(--rt-ink); text-align: left;
}
.rt-slides-of { color: var(--rt-ink-muted); }
.rt-slides-dots { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; max-width: 220px; }
.rt-slides-dot {
    width: 7px; height: 7px; border-radius: 999px; background: var(--rt-hairline);
    transition: background .2s ease, transform .2s ease;
}
.rt-slides-dot.is-on { background: var(--rt-accent); transform: scale(1.25); }
.rt-slides-bar { grid-template-columns: auto 1fr auto auto auto; grid-template-areas: 'prev count dots zoom next'; }
.rt-slides-prev { grid-area: prev; } .rt-slides-count { grid-area: count; }
.rt-slides-dots { grid-area: dots; } .rt-slides-next { grid-area: next; }
.rt-slides-zoom { grid-area: zoom; }
/* figure-zoom.js opens a slide in the rt-zoom lightbox on click or tap. */
.rt-slides.rt-zoomable .rt-slide-frame img { cursor: zoom-in; }
.rt-theme-v2 .article-body .rt-slides-foot {
    /* a <figcaption>, so undo the page's generic caption type */
    border-top: 1px solid var(--rt-hairline); padding: 12px 18px; margin: 0;
    text-transform: none; letter-spacing: normal; font-family: var(--rt-font-sans); text-align: left;
}
.rt-theme-v2 .article-body .rt-slides-pdf {
    font-family: var(--rt-font-sans); font-size: 14px; font-weight: 600;
    color: var(--rt-accent-text); text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
}
.rt-slides-pdf::before {
    content: "↓"; display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; flex: 0 0 22px; border-radius: 999px;
    background: var(--rt-accent-soft); color: var(--rt-accent-text); font-size: 13px;
}
.rt-slides-pdf:hover { text-decoration: underline; }
.rt-slides-pdf-size { color: var(--rt-ink-muted); font-weight: 500; }
@media (max-width: 480px) {
    .rt-slides-dots { display: none; }
    .rt-slides-bar { grid-template-areas: 'prev count zoom next'; grid-template-columns: auto 1fr auto auto; }
    .rt-slides-count { text-align: center; }
}

/* ── Video ──────────────────────────────────────────────────────────────── */
.rt-video { margin: 2.25rem 0; }
.rt-video-frame { position: relative; }
.rt-theme-v2 .article-body .rt-video-el,
.rt-video-el {
    display: block; width: 100%; height: auto; max-width: 100%;
    border-radius: 14px; background: var(--rt-result-bg);
    box-shadow: 0 18px 40px -22px rgb(13 27 42 / .45);
}
.rt-video-toggle {
    position: absolute; right: 12px; bottom: 12px;
    font: 600 12px/1 var(--rt-font-mono); letter-spacing: .05em; text-transform: uppercase;
    color: var(--rt-result-ink); background: rgb(13 27 42 / .78);
    border: 1px solid rgb(246 244 239 / .22); border-radius: 999px;
    padding: 8px 13px; cursor: pointer; backdrop-filter: blur(4px);
}
.rt-video-toggle:hover:not(:disabled) { background: rgb(13 27 42 / .92); }
.rt-video-toggle:focus-visible { outline: 2px solid var(--rt-accent); outline-offset: 2px; }
.rt-video-toggle:disabled { opacity: 0; pointer-events: none; }   /* drawn, reserved, inert until wired */
.rt-video-cap,
.rt-ba-cap,
.rt-theme-v2 .article-body .rt-gallery-cap {
    font-family: var(--rt-font-mono); font-size: 11px; font-weight: 500; letter-spacing: .04em;
    color: var(--rt-ink-muted); line-height: 1.5;
    margin: 10px 0 0; padding-left: 14px; border-left: 2px solid var(--rt-accent);
}

/* ── Diagram ────────────────────────────────────────────────────────────── */
.rt-theme-v2 .article-body .rt-diagram .rt-diagram-img {
    display: block; width: 100%; height: auto;
    background: var(--rt-surface);
    border: 1px solid var(--rt-hairline); border-radius: 14px;
    padding: clamp(8px, 2vw, 18px); box-sizing: border-box;
}
/* One drawing per theme. The dark one is lazy, so a light page whose dark
   <img> is display:none never fetches it. [data-theme="dark"] sits on <html>
   (rt-tokens.css); the public site ships light-only today, so this is ready
   for the switch rather than in use. */
.rt-theme-v2 .article-body .rt-diagram .rt-diagram-dark { display: none; }
[data-theme="dark"] .rt-theme-v2 .article-body .rt-diagram--themed .rt-diagram-light { display: none; }
[data-theme="dark"] .rt-theme-v2 .article-body .rt-diagram--themed .rt-diagram-dark { display: block; }
.rt-diagram.rt-zoomable img,
.rt-gallery-item.rt-zoomable img { cursor: zoom-in; }
.rt-diagram.rt-zoomable img:focus-visible,
.rt-gallery-item.rt-zoomable img:focus-visible { outline: 2px solid var(--rt-accent); outline-offset: 3px; }
.rt-diagram-credit { display: inline-block; margin-left: 6px; opacity: .8; }
.rt-diagram-credit::before { content: "· "; }

/* ── Gallery ────────────────────────────────────────────────────────────── */
.rt-gallery { margin: 2.25rem 0; }
.rt-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 768px) {
    .rt-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .rt-gallery-n2 .rt-gallery-grid,
    .rt-gallery-n4 .rt-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.rt-theme-v2 .article-body .rt-gallery-item,
.rt-gallery-item {
    position: relative; margin: 0; overflow: hidden;
    border-radius: 10px; background: var(--rt-bg-inset);
}
.rt-theme-v2 .article-body .rt-gallery-item img {
    width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    display: block; border-radius: 0;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.rt-gallery-item:hover img { transform: scale(1.035); }
/* Mosaic: the first image leads. Full width on a phone; a 2×2 feature on
   wider screens once there are enough images to frame it. */
.rt-gallery--mosaic.rt-gallery-n3 .rt-gallery-item:first-child,
.rt-gallery--mosaic.rt-gallery-n5 .rt-gallery-item:first-child,
.rt-gallery--mosaic.rt-gallery-n7 .rt-gallery-item:first-child,
.rt-gallery--mosaic.rt-gallery-n9 .rt-gallery-item:first-child,
.rt-gallery--mosaic.rt-gallery-n11 .rt-gallery-item:first-child { grid-column: 1 / -1; }
.rt-theme-v2 .article-body .rt-gallery--mosaic .rt-gallery-item:first-child img { aspect-ratio: 16 / 9; }
@media (min-width: 768px) {
    .rt-gallery--mosaic:not(.rt-gallery-n2):not(.rt-gallery-n4) .rt-gallery-item:first-child {
        grid-column: span 2; grid-row: span 2;
    }
    .rt-theme-v2 .article-body .rt-gallery--mosaic:not(.rt-gallery-n2):not(.rt-gallery-n4) .rt-gallery-item:first-child img {
        aspect-ratio: auto; height: 100%;
    }
    /* Close the grid. A 2×2 lead plus n−1 cells fills three columns exactly
       when n is a multiple of 3; otherwise the last image widens to take the
       gap — two columns for 5, 8 and 11 (its height comes from its row-mate),
       the full row for 7 and 10. */
    .rt-gallery--mosaic:is(.rt-gallery-n5, .rt-gallery-n8, .rt-gallery-n11) .rt-gallery-item:last-child { grid-column: span 2; }
    .rt-theme-v2 .article-body .rt-gallery--mosaic:is(.rt-gallery-n5, .rt-gallery-n8, .rt-gallery-n11) .rt-gallery-item:last-child img {
        aspect-ratio: auto; height: 100%;
    }
    .rt-gallery--mosaic:is(.rt-gallery-n7, .rt-gallery-n10) .rt-gallery-item:last-child { grid-column: 1 / -1; }
    .rt-theme-v2 .article-body .rt-gallery--mosaic:is(.rt-gallery-n7, .rt-gallery-n10) .rt-gallery-item:last-child img { aspect-ratio: 21 / 8; }
}
.rt-theme-v2 .article-body .rt-gallery-item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    margin: 0; padding: 26px 12px 10px; border: 0;
    font-family: var(--rt-font-mono); font-size: 11px; letter-spacing: .03em; line-height: 1.4;
    color: var(--rt-result-ink);
    background: linear-gradient(180deg, rgb(13 27 42 / 0) 0%, rgb(13 27 42 / .86) 70%);
    pointer-events: none;
}

/* ── Download ───────────────────────────────────────────────────────────── */
.rt-download {
    margin: 2rem 0; padding: 18px;
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center;
}
.rt-download-icon {
    width: 56px; height: 72px; position: relative;
    background: var(--rt-bg-inset); border: 1px solid var(--rt-hairline);
    border-radius: 6px 16px 6px 6px;
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px;
    box-sizing: border-box;
}
.rt-download-icon::before {             /* the folded corner */
    content: ""; position: absolute; top: -1px; right: -1px; width: 18px; height: 18px;
    background: linear-gradient(225deg, var(--rt-surface) 50%, var(--rt-hairline) 50%);
    border-radius: 0 16px 0 4px;
}
.rt-download-ext {
    font: 600 11px/1 var(--rt-font-mono); letter-spacing: .06em; text-transform: uppercase;
    color: #fff; background: var(--rt-accent-fill); padding: 4px 6px; border-radius: 4px;
    max-width: 52px; overflow: hidden; text-overflow: ellipsis;
}
.rt-theme-v2 .article-body .rt-download-cover {
    width: 64px; height: 84px; object-fit: cover; border-radius: 6px;
    border: 1px solid var(--rt-hairline); box-shadow: 0 6px 16px -10px rgb(13 27 42 / .5);
}
.rt-theme-v2 .article-body .rt-download-kicker {
    margin: 0 0 3px; font: 500 11px/1.2 var(--rt-font-mono); letter-spacing: .14em; text-transform: uppercase;
    color: var(--rt-accent-text);
}
.rt-theme-v2 .article-body .rt-download-title {
    margin: 0 0 4px; font: 600 17px/1.3 var(--rt-font-sans); color: var(--rt-ink);
}
.rt-theme-v2 .article-body .rt-download-desc {
    margin: 0 0 6px; font-size: 14.5px; line-height: 1.55; color: var(--rt-ink-soft);
}
.rt-theme-v2 .article-body .rt-download-meta {
    margin: 0; font: 500 12px/1.4 var(--rt-font-mono); letter-spacing: .03em; color: var(--rt-ink-muted);
}
.rt-theme-v2 .article-body .rt-download-cta {
    grid-column: 1 / -1; justify-self: stretch; text-align: center;
    font: 600 14px/1 var(--rt-font-sans); color: #fff; text-decoration: none;
    background: var(--rt-accent-fill); border-radius: 999px; padding: 13px 20px;
    transition: background .15s ease, transform .15s ease;
}
.rt-theme-v2 .article-body .rt-download-cta:hover { background: var(--rt-accent-fill-hover); transform: translateY(-1px); }
.rt-download-cta:focus-visible { outline: 2px solid var(--rt-ink); outline-offset: 3px; }
@media (min-width: 640px) {
    .rt-download { grid-template-columns: auto minmax(0, 1fr) auto; padding: 18px 20px; gap: 18px; }
    .rt-theme-v2 .article-body .rt-download-cta { grid-column: auto; justify-self: end; }
}

/* ── Callout ────────────────────────────────────────────────────────────── */
.rt-callout {
    --co: var(--rt-link); --co-bg: rgb(42 111 219 / .07);
    margin: 1.9rem 0; padding: 16px 20px 6px 20px;
    background: var(--co-bg);
    border: 1px solid color-mix(in srgb, var(--co) 22%, transparent);
    border-left: 4px solid var(--co);
    border-radius: 4px 12px 12px 4px;
}
.rt-callout--tip { --co: var(--rt-success); --co-bg: var(--rt-success-soft); }
.rt-callout--warning { --co: #B45309; --co-bg: rgb(245 158 11 / .11); }
.rt-callout--example { --co: var(--rt-accent); --co-bg: var(--rt-accent-soft); }
.rt-theme-v2 .article-body .rt-callout-title {
    display: flex; align-items: center; gap: 10px;
    margin: 0 0 8px; font: 600 12px/1.2 var(--rt-font-mono);
    letter-spacing: .12em; text-transform: uppercase; color: var(--rt-ink);
}
.rt-callout-icon {
    width: 22px; height: 22px; flex: 0 0 22px; border-radius: 999px;
    background: var(--co); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font: 700 13px/1 var(--rt-font-sans); letter-spacing: 0; text-transform: none;
}
.rt-callout--note .rt-callout-icon::before { content: "i"; font-family: var(--rt-font-serif); }
.rt-callout--tip .rt-callout-icon::before { content: "✓"; }
.rt-callout--warning .rt-callout-icon::before { content: "!"; }
.rt-callout--example .rt-callout-icon::before { content: "→"; }
.rt-theme-v2 .article-body .rt-callout-text {
    margin: 0 0 10px; font-size: 16px; line-height: 1.62; color: var(--rt-ink);
}

/* ── Checklist ──────────────────────────────────────────────────────────── */
.rt-checklist { margin: 2.25rem 0; padding: 18px 20px 14px; }
.rt-checklist-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rt-theme-v2 .article-body .rt-checklist-title {
    margin: 0; font-family: var(--rt-font-serif); font-weight: 700; font-size: 20px;
    line-height: 1.25; letter-spacing: -0.01em; color: var(--rt-ink);
}
.rt-theme-v2 .article-body .rt-checklist-progress {
    margin: 0; font: 500 12px/1.4 var(--rt-font-mono); letter-spacing: .05em; color: var(--rt-ink-muted);
    font-variant-numeric: tabular-nums;
}
.rt-checklist-bar { height: 6px; border-radius: 999px; background: var(--rt-bg-inset); overflow: hidden; margin: 12px 0 6px; }
.rt-checklist-fill {
    display: block; height: 100%; width: 100%; background: var(--rt-accent);
    transform: scaleX(0); transform-origin: left center;
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), background .2s ease;
}
.rt-checklist.is-complete .rt-checklist-fill { background: var(--rt-success); }
.rt-theme-v2 .article-body .rt-checklist-list { list-style: none; margin: 0; padding: 0; counter-reset: rtck; }
.rt-theme-v2 .article-body .rt-checklist-item {
    margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rt-hairline);
    font-size: 16px; line-height: 1.55;
}
.rt-theme-v2 .article-body .rt-checklist-item:last-child { border-bottom: 0; }
.rt-checklist-label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; }
.rt-checklist-box {
    width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--rt-accent-fill); cursor: pointer;
}
.rt-checklist-box:focus-visible { outline: 2px solid var(--rt-accent); outline-offset: 2px; }
.rt-checklist-text { color: var(--rt-ink); transition: color .2s ease; }
.rt-checklist-item.is-done .rt-checklist-text { color: var(--rt-ink-muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--rt-ink-muted) 55%, transparent); }
.rt-theme-v2 .article-body .rt-checklist-detail {
    margin: 4px 0 0 34px; font-size: 14px; line-height: 1.55; color: var(--rt-ink-soft);
}
.rt-checklist-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; }
.rt-theme-v2 .article-body .rt-checklist-note { margin: 0; font: 400 12px/1.4 var(--rt-font-mono); color: var(--rt-ink-muted); }
.rt-checklist-reset {
    font: 500 12px/1 var(--rt-font-mono); letter-spacing: .04em;
    color: var(--rt-ink); background: none; border: 1px solid var(--rt-hairline);
    border-radius: 999px; padding: 8px 12px; cursor: pointer;
}
.rt-checklist-reset:hover { border-color: var(--rt-ink); }
.rt-checklist-reset:focus-visible { outline: 2px solid var(--rt-accent); outline-offset: 2px; }

/* ── Key points ─────────────────────────────────────────────────────────── */
.rt-takeaways {
    margin: 0 0 2.25rem; padding: 22px 24px 12px;
    background: var(--rt-result-bg); color: var(--rt-result-ink);
    border-radius: 14px; position: relative; overflow: hidden;
}
.rt-takeaways::after {                   /* a quiet brand mark in the corner */
    content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px;
    border-radius: 999px; border: 18px solid rgb(232 98 42 / .16); pointer-events: none;
}
* + .rt-takeaways { margin-top: 2rem; }
.rt-theme-v2 .article-body .rt-takeaways-title {
    margin: 0 0 12px; font: 600 12px/1.2 var(--rt-font-mono); letter-spacing: .16em; text-transform: uppercase;
    color: var(--rt-accent);
}
.rt-theme-v2 .article-body .rt-takeaways-list { list-style: none; margin: 0; padding: 0; counter-reset: rtkp; position: relative; z-index: 1; }
/* Not a grid: the point's text is a run of inline nodes (text, <strong>,
   <code>), and a grid would make each one its own column. */
.rt-theme-v2 .article-body .rt-takeaways-list li {
    counter-increment: rtkp;
    position: relative; display: block;
    margin: 0 0 12px; padding: 0 0 0 40px;
    font-size: 16.5px; line-height: 1.55; color: var(--rt-result-ink);
}
.rt-theme-v2 .article-body .rt-takeaways-list li::before {
    content: counter(rtkp, decimal-leading-zero);
    position: absolute; left: 0; top: 0;
    font: 600 13px/1.95 var(--rt-font-mono); color: var(--rt-accent);
}
.rt-takeaways strong { color: #fff; }
.rt-takeaways code { background: rgb(246 244 239 / .12); color: var(--rt-result-ink); border: 0; }

/* ── Before / after ─────────────────────────────────────────────────────── */
.rt-ba { margin: 2.25rem 0; }
.rt-ba-frame {
    position: relative; overflow: hidden; border-radius: 14px;
    background: var(--rt-bg-inset); touch-action: pan-y;
    box-shadow: 0 18px 40px -24px rgb(13 27 42 / .5);
}
.rt-theme-v2 .article-body .rt-ba-after { display: block; width: 100%; height: auto; border-radius: 0; }
.rt-ba-clip {
    position: absolute; inset: 0;
    clip-path: inset(0 calc(100% - var(--rt-ba-pos, 50%)) 0 0);
}
.rt-theme-v2 .article-body .rt-ba-before {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0;
}
.rt-ba-handle {
    position: absolute; top: 0; bottom: 0; left: var(--rt-ba-pos, 50%);
    width: 2px; margin-left: -1px; background: #fff;
    box-shadow: 0 0 0 1px rgb(13 27 42 / .25); pointer-events: none;
}
.rt-ba-handle::after {
    content: "‹ ›"; position: absolute; top: 50%; left: 50%;
    width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 999px;
    background: #fff; color: var(--rt-brand-navy, #0D1B2A);
    font: 700 15px/40px var(--rt-font-sans); text-align: center; letter-spacing: 2px;
    box-shadow: 0 4px 14px rgb(13 27 42 / .35);
}
.rt-ba-tag {
    position: absolute; top: 12px; pointer-events: none;
    font: 600 11px/1 var(--rt-font-mono); letter-spacing: .08em; text-transform: uppercase;
    color: var(--rt-result-ink); background: rgb(13 27 42 / .78);
    padding: 6px 9px; border-radius: 999px;
}
.rt-ba-tag-before { left: 12px; }
.rt-ba-tag-after { right: 12px; }
.rt-ba-range {
    position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
    opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.rt-ba-frame:has(.rt-ba-range:focus-visible) { outline: 3px solid var(--rt-accent); outline-offset: 3px; }
/* Above the range input, which covers the frame. Shown by figure-zoom.js;
   absolutely placed, so un-hiding it shifts nothing (docs/cls-conventions.md). */
.rt-ba-zoom {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    width: 40px; height: 40px; border-radius: 999px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--rt-result-ink); background: rgb(13 27 42 / .78);
    border: 1px solid rgb(255 255 255 / .35); cursor: zoom-in;
}
.rt-ba-zoom[hidden] { display: none; }
.rt-ba-zoom:hover { background: rgb(13 27 42 / .92); }
.rt-ba-zoom:focus-visible { outline: 3px solid var(--rt-accent); outline-offset: 2px; }

/* ══ 2. MAGAZINE TREATMENTS ════════════════════════════════════════════════ */

/* Drop cap — guides only (.art-is-guide is set by news/show.blade.php), and
   only where the writer asks for it with <p class="mag-dropcap">. Large text,
   so brand orange's 3.08:1 on paper clears the 3:1 bar for it. */
.rt-theme-v2 .art-is-guide .article-body p.mag-dropcap::first-letter {
    float: left;
    font-family: var(--rt-font-serif); font-weight: 700;
    font-size: 4.15em; line-height: .82;
    margin: .06em .1em 0 0; padding: 0;
    color: var(--rt-accent);
}

/* Pull-quote — <blockquote class="pull">. Replaces the boxed inline quote
   with an editorial break: serif display, orange rule above, hairline below. */
.rt-theme-v2 .article-body blockquote.pull {
    position: relative;
    margin: 2.6rem 0; padding: 18px 0 14px 0;
    background: none; border: 0; border-radius: 0;
    border-top: 3px solid var(--rt-accent);
    border-bottom: 1px solid var(--rt-hairline);
    font-family: var(--rt-font-serif); font-weight: 400;
    font-size: clamp(22px, 3.2vw, 28px); line-height: 1.34; letter-spacing: -0.01em;
    color: var(--rt-ink);
}
.rt-theme-v2 .article-body blockquote.pull::before {
    /* In the flow, not absolutely placed: an overlaid glyph either covers
       the first words or needs a background patch that does. */
    content: "“"; display: block;
    font-family: var(--rt-font-serif); font-weight: 700;
    font-size: 2.6em; line-height: 1; height: .5em; margin: 0 0 .12em -.04em;
    color: var(--rt-accent);
}
.rt-theme-v2 .article-body blockquote.pull p { font: inherit; color: inherit; margin: 0 0 .6em; }
@media (min-width: 1024px) {
    .rt-theme-v2 .article-body blockquote.pull { margin-left: -28px; padding-left: 28px; }
}

/* Wide and full-bleed figures. The article column sits between two rails
   on a desktop, so "full bleed" there would run under the sidebar: on a
   desktop both classes widen into the column gutters; on a phone or tablet
   (single column) they run edge to edge, cancelling the .wrap gutter
   (16 / 20 / 28px, resources/css/recatools-design.css). */
.rt-theme-v2 .article-body figure.wide,
.rt-theme-v2 .article-body figure.full-bleed { max-width: none; }
@media (max-width: 640px) {
    .rt-theme-v2 .article-body figure.wide,
    .rt-theme-v2 .article-body figure.full-bleed { margin-left: -16px; margin-right: -16px; }
}
@media (min-width: 641px) and (max-width: 767px) {
    .rt-theme-v2 .article-body figure.wide,
    .rt-theme-v2 .article-body figure.full-bleed { margin-left: -20px; margin-right: -20px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .rt-theme-v2 .article-body figure.wide { margin-left: -28px; margin-right: -28px; }
    .rt-theme-v2 .article-body figure.full-bleed { margin-left: -28px; margin-right: -28px; }
}
@media (max-width: 1023px) {
    .rt-theme-v2 .article-body figure.wide img,
    .rt-theme-v2 .article-body figure.full-bleed img { border-radius: 0; border-left: 0; border-right: 0; }
    .rt-theme-v2 .article-body figure.wide figcaption,
    .rt-theme-v2 .article-body figure.full-bleed figcaption { margin-left: 16px; margin-right: 16px; }
}
@media (min-width: 1024px) {
    .rt-theme-v2 .article-body figure.wide,
    .rt-theme-v2 .article-body figure.full-bleed { margin-left: -32px; margin-right: -32px; }
}

/* Section divider — <hr class="mag-divider">: three diamonds, not a rule. */
.rt-theme-v2 .article-body hr.mag-divider {
    border: 0; height: auto; background: none; overflow: visible;
    margin: 3rem auto; text-align: center; color: var(--rt-accent);
}
.rt-theme-v2 .article-body hr.mag-divider::before {
    content: "◆   ◆   ◆"; white-space: pre;
    font-size: 10px; letter-spacing: .4em; color: var(--rt-accent);
}

/* Reading progress — the bar already exists (#rt-read-progress); on guides,
   a little firmer so it reads as a place-keeper on long tutorials. */
.rt-theme-v2 .art-is-guide .read-progress {
    height: 3px;
    background: linear-gradient(90deg, var(--rt-accent) 0%, var(--rt-accent-fill) 100%);
    box-shadow: 0 0 10px rgb(232 98 42 / .45);
}

/* ── Save for later (guide header) ──────────────────────────────────────── */
.art-save {
    display: inline-flex; align-items: center; gap: 7px;
    margin-left: auto;
    font: 600 12px/1 var(--rt-font-mono); letter-spacing: .05em; text-transform: uppercase;
    color: var(--rt-ink); background: var(--rt-surface);
    border: 1px solid var(--rt-hairline); border-radius: 999px;
    padding: 7px 12px 7px 10px; cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
    min-width: 9.5em; justify-content: center;   /* "Saved" and "Save for later" share one width */
}
.art-save:hover { border-color: var(--rt-ink); }
.art-save:focus-visible { outline: 2px solid var(--rt-accent); outline-offset: 2px; }
.art-save-ico {
    width: 11px; height: 14px; flex: 0 0 11px;
    border: 2px solid currentColor; border-bottom: 0; box-sizing: border-box;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
}
.art-save.is-saved { background: var(--rt-ink); color: var(--rt-surface); border-color: var(--rt-ink); }
.art-save.is-saved .art-save-ico { background: currentColor; }
@media (max-width: 640px) { .art-save { margin-left: 0; } }

/* ── Continue reading (fixed, so it never moves the page) ───────────────── */
.rt-continue {
    position: fixed; z-index: 260; left: 50%; bottom: 18px; transform: translateX(-50%);
    width: min(560px, calc(100vw - 32px)); box-sizing: border-box;
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
    padding: 12px 12px 12px 18px;
    background: var(--rt-result-bg); color: var(--rt-result-ink);
    border-radius: 14px; box-shadow: 0 18px 50px -12px rgb(13 27 42 / .55);
    animation: rt-continue-in .35s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rt-continue-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.rt-continue-msg { margin: 0; font: 500 14px/1.4 var(--rt-font-sans); color: var(--rt-result-ink); }
.rt-continue-go {
    font: 600 13px/1 var(--rt-font-sans); color: #fff; background: var(--rt-accent-fill);
    border: 0; border-radius: 999px; padding: 10px 14px; cursor: pointer; white-space: nowrap;
}
.rt-continue-go:hover { background: var(--rt-accent-fill-hover); }
.rt-continue-x {
    width: 32px; height: 32px; border-radius: 999px; cursor: pointer;
    background: none; color: var(--rt-result-muted); border: 1px solid rgb(246 244 239 / .18);
    font: 600 13px/1 var(--rt-font-sans);
}
.rt-continue-x:hover { color: var(--rt-result-ink); }
.rt-continue-go:focus-visible, .rt-continue-x:focus-visible { outline: 2px solid var(--rt-accent); outline-offset: 2px; }
@media (max-width: 480px) {
    .rt-continue { grid-template-columns: minmax(0, 1fr) auto; }
    .rt-continue-msg { grid-column: 1 / -1; }
}
@media print { .rt-continue, .art-save, .rt-slides-bar, .rt-checklist-reset, .rt-video-toggle { display: none !important; } }

/* ══ MOTION ═════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .rt-slides-track { scroll-behavior: auto; }
    .rt-slides-btn, .rt-slides-dot, .rt-gallery-item img, .rt-checklist-fill,
    .rt-checklist-text, .rt-download-cta, .art-save { transition: none; }
    .rt-gallery-item:hover img { transform: none; }
    .rt-continue { animation: none; }
    .rt-theme-v2 .art-is-guide .read-progress { transition: none; }
}
