@charset "UTF-8";
/* ===========================================================================
   THE BLOG — index and post, rebuilt off vinyasayogaacademy.com's
   ---------------------------------------------------------------------------
   Owner, 15 Nov 2026: review their blog index and a post of theirs, then make
   ours completely different, mobile first.

   REVIEWED: vinyasayogaacademy.com/blog/ and
   .../blog/adventure-activities-rishikesh-mussoorie/

   THEIRS, INDEX: a trending strip of three thumbnail cards, then a grid of
   boxed cards — banner photo, a date badge floating on it, a category label,
   an H3, an excerpt and "Read More →" — beside a right sidebar holding Latest
   Posts, Categories and a Quick Enquiry form, then category sections and a
   Load More button.
   THEIRS, POST: breadcrumb, H1, a row of byline pills, hero, an inline Table
   of Contents, one column of body, then CTA, share, author box, and the same
   Latest / Categories / Enquiry sidebar content again, then Related Posts.

   OURS COPIED BOTH, class for class. What follows is a different object, and
   the differences are structural rather than cosmetic:

     * THE SIDEBAR IS GONE. It is the single most recognisable thing on their
       page. Here .bl-side stops being a 330px column and becomes a band
       across the foot of the page, three widgets wide — so the reading column
       runs the full measure and the page stops being "content + rail".
     * THE CARDS ARE GONE. No boxes, no 16px radius around text, no shadow, no
       floating date badge, no "Read More" button. The index reads as a
       contents page: one lead story, then ruled rows with a small square
       thumbnail, a category in small caps, the title in the display serif and
       the date at the end of the rule.
     * THE TRENDING STRIP loses its thumbnails and becomes a line of type —
       the masthead on the left, the popular posts listed beside it.
     * THE POST gets a reading layout: the table of contents moves out of the
       body and into a sticky left margin, and the prose runs in a measured
       column of 68 characters beside it. Theirs stacks the TOC on top of the
       body in one column; this is the shape of a manual, not of a blog post,
       and that is the point.

   None of it needs new markup. The shells already exist — .bl-layout,
   .bl-grid, .bl-side, .bl-post — and every rule below re-places what is
   already there. The one exception is the TOC, which is a <details>: CSS
   cannot open it, so static/js/site.js opens it on wide screens only.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   1. THE SHELL — no sidebar column
   --------------------------------------------------------------------------- */
.bl-wrap .bl-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
    align-items: start;
}

/* the old sidebar, now a band across the foot */
.bl-wrap .bl-side {
    position: static;
    top: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 1.1rem + 1.8vw, 3rem);
    padding-top: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
    border-top: 2px solid var(--ryp-red);
}
.bl-wrap .bl-widget {
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.bl-wrap .bl-widget__title {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    font-family: "Figtree", system-ui, sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ryp-ink-soft);
}
.bl-wrap .bl-widget__title::after { display: none; }

/* ---------------------------------------------------------------------------
   2. THE MASTHEAD — type, not thumbnails
   --------------------------------------------------------------------------- */
.bl-wrap .bl-trending {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
    column-gap: clamp(2rem, 1.4rem + 2.6vw, 4rem);
    align-items: start;
    margin-bottom: clamp(1.75rem, 1.4rem + 1.6vw, 3rem);
    padding: 0 0 clamp(1.25rem, 1rem + 1.2vw, 2rem);
    background: none;
    border: 0;
    border-bottom: 2px solid var(--ryp-red);
    border-radius: 0;
}
.bl-wrap .bl-trending__kicker {
    margin: 0 0 .375rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ryp-red-ink);
}
.bl-wrap .bl-trending__title {
    margin: 0 0 .5rem;
    font-family: "Belleza", Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.75rem, 1.3rem + 2.2vw, 3rem);
    line-height: 1.1;
    color: var(--ryp-ink);
}
.bl-wrap .bl-trending__title::after { display: none; }
.bl-wrap .bl-trending__sub {
    margin: 0;
    max-width: 46ch;
    color: var(--ryp-ink-soft);
}

/* the popular posts: a list of titles, nothing else */
.bl-wrap .bl-trending__rail { position: static; }
.bl-wrap .bl-trending__track {
    display: block;
    overflow: visible;
    counter-reset: ryp-pop;
}
.bl-wrap .bl-mini {
    counter-increment: ryp-pop;
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    column-gap: .625rem;
    align-items: baseline;
    padding: .5rem 0;
    background: none;
    border: 0;
    border-top: 1px solid rgba(26, 26, 26, .13);
    border-radius: 0;
    box-shadow: none;
}
.bl-wrap .bl-mini:first-child { border-top: 0; padding-top: 0; }
.bl-wrap .bl-mini::before {
    content: counter(ryp-pop, decimal-leading-zero);
    font-family: "Belleza", Georgia, serif;
    font-size: .875rem;
    color: var(--ryp-red);
}
/* the thumbnails and the blurb go — this is a list of titles */
.bl-wrap .bl-mini img,
.bl-wrap .bl-mini__text { display: none; }
/* The cap is in blog.php, not here: five links are written rather than
   twenty-four written and nineteen hidden. */
.bl-wrap .bl-mini__title {
    margin: 0;
    font-family: "Figtree", system-ui, sans-serif;
    font-weight: 500;
    font-size: .8125rem;
    line-height: 1.45;
    color: var(--ryp-ink);
    -webkit-line-clamp: 2;
}
.bl-wrap .bl-mini:hover .bl-mini__title { color: var(--ryp-red-ink); }

/* ---------------------------------------------------------------------------
   3. THE INDEX — a contents page
   ---------------------------------------------------------------------------
   One lead story across the width, then ruled rows two up. The first card is
   picked with :first-child rather than a class, because the markup is written
   by a loop over the registry and carries no "featured" flag.
   --------------------------------------------------------------------------- */
.bl-wrap .bl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.75rem, 1.2rem + 2.2vw, 3.25rem);
    row-gap: 0;
}

.bl-wrap .bl-card {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(.875rem, .7rem + .7vw, 1.25rem);
    align-items: start;
    padding: clamp(1rem, .85rem + .7vw, 1.5rem) 0;
    background: none;
    border: 0;
    border-top: 1px solid rgba(26, 26, 26, .13);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: none;
}
.bl-wrap .bl-card:hover { transform: none; box-shadow: none; }

/* The date is marked up INSIDE the figure, pinned over the photograph. That
   is their device, and simply making it static left it clipped by the
   figure's own `overflow: hidden`. `display: contents` dissolves the figure
   so the photograph and the date each take a cell of the row, and the date
   can join the line of type under the excerpt where it belongs. */
.bl-wrap .bl-card__media {
    display: contents;
}
.bl-wrap .bl-card__media img {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--ryp-img-radius);
}
.bl-wrap .bl-card:hover .bl-card__media img { transform: none; }
/* the date badge comes off the photograph and joins the line of type */
.bl-wrap .bl-card__date {
    position: static;
    display: inline;
    min-width: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: var(--ryp-ink-soft);
    font-size: 11px;
    letter-spacing: .06em;
}
.bl-wrap .bl-card__day,
.bl-wrap .bl-card__month {
    display: inline;
    font-size: inherit;
    font-weight: 400;
    letter-spacing: inherit;
    opacity: 1;
}
.bl-wrap .bl-card__day::after { content: " "; }

.bl-wrap .bl-card__body {
    grid-column: 2;
    grid-row: 1;
    display: block;
    padding: 0;
}
.bl-wrap .bl-card__date { grid-column: 2; grid-row: 2; }
.bl-wrap .bl-card__tag {
    margin: 0 0 .25rem;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--ryp-red-ink);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.bl-wrap .bl-card__title {
    margin: 0 0 .375rem;
    font-family: "Belleza", Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.0625rem, .98rem + .4vw, 1.25rem);
    line-height: 1.25;
    color: var(--ryp-ink);
    -webkit-line-clamp: 3;
}
.bl-wrap .bl-card:hover .bl-card__title { color: var(--ryp-red-ink); }
.bl-wrap .bl-card__excerpt {
    margin: 0 0 .375rem;
    font-size: .875rem;
    line-height: 1.6;
    color: var(--ryp-ink-soft);
    -webkit-line-clamp: 2;
}
/* no "Read More" button: the whole row is the link */
.bl-wrap .bl-card__more { display: none; }

/* -- the lead story ------------------------------------------------------- */
.bl-wrap .bl-grid > .bl-card:first-child {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: clamp(1.5rem, 1.1rem + 1.8vw, 3rem);
    align-items: center;
    padding-top: 0;
    padding-bottom: clamp(1.75rem, 1.4rem + 1.6vw, 3rem);
    border-top: 0;
    border-bottom: 2px solid var(--ryp-red);
    margin-bottom: clamp(.5rem, .4rem + .4vw, 1rem);
}
.bl-wrap .bl-grid > .bl-card:first-child .bl-card__media img {
    aspect-ratio: 3 / 2;
    border-top: 3px solid var(--ryp-red);
}
.bl-wrap .bl-grid > .bl-card:first-child .bl-card__title {
    font-size: clamp(1.375rem, 1.1rem + 1.4vw, 2.125rem);
    line-height: 1.15;
    -webkit-line-clamp: 4;
}
.bl-wrap .bl-grid > .bl-card:first-child .bl-card__excerpt {
    font-size: 1rem;
    -webkit-line-clamp: 4;
}

/* ---------------------------------------------------------------------------
   4. THE POST — a long read, built to be finished
   ---------------------------------------------------------------------------
   Owner, 16 Nov 2026: the hero was full-bleed and enormous ("image ko thumbnail
   ki tarah rakho"), the page was hard to take in, and he wants the layout to
   carry a reader to the end of the article.

   WHAT THE ARTICLES ACTUALLY CONTAIN, counted across all 27 posts before any
   of this was written: 315 <h2> (about twelve sections each), 326 <ul>, 2,062
   <li>, 55 paragraphs that open with a bold label ("Who it is for:", "The
   honest answer:"), and no blockquotes or tables at all. So the design effort
   goes where the content is — section openings, lists, and those labelled
   paragraphs — and not into styling elements that never appear.

   FIVE THINGS CARRY THE READER THROUGH, in order of how much they do:
     1. a scroll-linked progress rule across the top, so the end is visible;
     2. a contents rail that sticks beside the article and marks where you are;
     3. a number on every section opening, so you can see how many are left;
     4. the 55 bold lead-ins promoted to tinted key-point blocks, which give a
        skimmer somewhere to land instead of bouncing;
     5. a measure capped near 68ch, because a long line is the commonest reason
        a long article gets abandoned.

   The picture becomes a thumbnail in the masthead — the size of a book cover
   beside the title rather than a billboard above it.

   None of this needs new markup. Every hook below already exists in all 27
   files: .bl-post__head, .bl-post__hero, .bl-toc, .bl-prose, .bl-post__foot.
   --------------------------------------------------------------------------- */

/* -- the progress rule ---------------------------------------------------- */
/* Scroll-driven, so there is no timer and no scroll handler: the browser ties
   it to the document's own scroll position on the compositor. Wrapped in
   @supports because where it is not supported the right outcome is no bar at
   all, not a bar stuck at zero. :has(.bl-post) keeps it off the blog index. */
@supports (animation-timeline: scroll()) {
    .bl-wrap:has(.bl-post)::before {
        content: "";
        position: fixed;
        inset: 0 0 auto 0;
        height: 3px;
        z-index: 60;
        background: var(--ryp-red);
        transform: scaleX(0);
        transform-origin: 0 50%;
        animation: ryp-read linear both;
        animation-timeline: scroll(root block);
    }
}
@keyframes ryp-read { to { transform: scaleX(1); } }

/* -- the frame ------------------------------------------------------------ */
.bl-wrap .bl-post {
    display: grid;
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    column-gap: clamp(2rem, 1.4rem + 2.6vw, 4rem);
    align-items: start;
}
/* The thumbnail takes the rail beside the masthead and the contents take the
   rail beside the article, so column one reads top to bottom as one object
   even though the two are siblings in the markup. */
.bl-wrap .bl-post > .bl-post__hero { grid-column: 1; grid-row: 1; align-self: start; }
.bl-wrap .bl-post__head            { grid-column: 2; grid-row: 1; }
.bl-wrap .bl-toc                   { grid-column: 1; grid-row: 2; }
.bl-wrap .bl-prose                 { grid-column: 2; grid-row: 2; }
.bl-wrap .bl-post__foot            { grid-column: 1 / -1; grid-row: 3; }

/* -- the masthead --------------------------------------------------------- */
.bl-wrap .bl-post__crumb {
    margin: 0 0 .75rem;
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--ryp-ink-soft);
}
.bl-wrap .bl-post__title {
    margin: 0 0 .875rem;
    max-width: 24ch;
    font-family: "Belleza", Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.875rem);
    line-height: 1.1;
    text-wrap: balance;
    color: var(--ryp-ink);
}

/* the byline: a ruled line of type, not a row of pills */
.bl-wrap .bl-meta {
    gap: .25rem clamp(1rem, .8rem + .8vw, 1.75rem);
    margin: 0;
    padding: .625rem 0;
    border-top: 1px solid rgba(26, 26, 26, .13);
    border-bottom: 1px solid rgba(26, 26, 26, .13);
}
.bl-wrap .bl-meta li {
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--ryp-ink-soft);
    font-size: 12px;
    letter-spacing: .02em;
}
.bl-wrap .bl-meta svg { opacity: .5; }

/* -- the thumbnail -------------------------------------------------------- */
/* It was 1296px wide and about 730px tall, which is most of a laptop screen
   before a single sentence. At 4:3 in a 15rem rail it is 240x180 — a cover,
   not a billboard, and it no longer delays the first paragraph. */
.bl-wrap .bl-post > .bl-post__hero {
    margin: 0;
    border-radius: var(--ryp-img-radius);
    border-top: 3px solid var(--ryp-red);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(26, 26, 26, .07), 0 10px 26px rgba(26, 26, 26, .08);
}
.bl-wrap .bl-post > .bl-post__hero img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* -- the contents, in the margin ------------------------------------------ */
.bl-wrap .bl-toc {
    position: sticky;
    top: 7rem;
    margin: clamp(1.25rem, 1rem + 1.2vw, 2rem) 0 0;
    padding: clamp(.875rem, .7rem + .7vw, 1.25rem) 0 0;
    background: none;
    border: 0;
    border-top: 2px solid var(--ryp-red);
    border-radius: 0;
}
.bl-wrap .bl-toc > summary {
    padding: 0 0 .75rem;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--ryp-ink-soft);
    font-family: "Figtree", system-ui, sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}
.bl-wrap .bl-toc > summary::-webkit-details-marker { display: none; }
.bl-wrap .bl-toc > summary:focus-visible {
    outline: 2px solid var(--ryp-red);
    outline-offset: 3px;
    border-radius: 2px;
}
.bl-wrap .bl-toc > summary svg { transition: transform 200ms ease; }
.bl-wrap .bl-toc[open] > summary svg { transform: rotate(90deg); }
/* assets/css/blog.css gives this a panel -- 1px #e8efec border, #fbfdfc fill
   and a 12px radius -- which is the boxed look the rebuild is getting rid of,
   and which left a pale grey card sitting in the margin. */
.bl-wrap .bl-toc__list {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    list-style: none;
    counter-reset: ryp-toc;
}
.bl-wrap .bl-toc__list li {
    counter-increment: ryp-toc;
    position: relative;
    display: grid;
    grid-template-columns: 1.625rem minmax(0, 1fr);
    column-gap: .375rem;
    padding: .4375rem 0;
    border-top: 1px solid rgba(26, 26, 26, .1);
}
.bl-wrap .bl-toc__list li:first-child { border-top: 0; }
.bl-wrap .bl-toc__list li::before {
    content: counter(ryp-toc, decimal-leading-zero);
    font-family: "Belleza", Georgia, serif;
    font-size: .75rem;
    color: var(--ryp-red);
}
.bl-wrap .bl-toc__list a {
    font-size: .8125rem;
    line-height: 1.45;
    color: var(--ryp-ink-soft);
    transition: color 180ms ease;
}
.bl-wrap .bl-toc__list a:hover { color: var(--ryp-red-ink); }
.bl-wrap .bl-toc__list a:focus-visible {
    outline: 2px solid var(--ryp-red);
    outline-offset: 2px;
    border-radius: 2px;
}
/* WHERE YOU ARE. static/js/site.js adds .is-current to the entry whose section
   is on screen. Colour alone would not carry it, so the marker takes a filled
   red bar as well — that is the thing you see out of the corner of your eye. */
.bl-wrap .bl-toc__list a.is-current { color: var(--ryp-ink); font-weight: 600; }
.bl-wrap .bl-toc__list li:has(a.is-current)::before { color: var(--ryp-red-ink); }
.bl-wrap .bl-toc__list li:has(a.is-current)::after {
    content: "";
    position: absolute;
    left: -.75rem;
    top: .5rem;
    bottom: .5rem;
    width: 2px;
    background: var(--ryp-red);
}

/* -- the prose ------------------------------------------------------------ */
.bl-wrap .bl-prose {
    /* MEASURED, and the reason this is 48ch rather than the 65-75ch the
       guidance names: `ch` is the width of a ZERO, and Figtree's zero is wide.
       At 17px one ch computes to about 10.9px here, so 68ch came out as 741px
       -- roughly 104 characters a line, which is the commonest reason a long
       article gets abandoned. 48ch lands near 73. */
    max-width: 48ch;
    counter-reset: ryp-sec;
    font-size: clamp(1rem, .97rem + .14vw, 1.0625rem);
    line-height: 1.8;
    color: var(--ryp-ink-soft);
}
.bl-wrap .bl-prose p { margin: 0 0 1.125rem; }
.bl-wrap .bl-prose strong { color: var(--ryp-ink); }

/* the standfirst */
.bl-wrap .bl-prose > p:first-of-type {
    font-size: clamp(1.0625rem, 1rem + .45vw, 1.3125rem);
    line-height: 1.65;
    color: var(--ryp-ink);
}

/* -- a section opening ---------------------------------------------------- */
/* The number is the point: twelve sections is a lot to face, and a reader who
   can see that they are on 09 keeps going in a way that a reader staring at an
   unnumbered wall does not. scroll-margin-top keeps an anchor jump clear of
   the sticky header instead of hiding the heading behind it. */
.bl-wrap .bl-prose h2 {
    counter-increment: ryp-sec;
    margin: clamp(2.5rem, 2rem + 2vw, 3.75rem) 0 .875rem;
    padding-top: clamp(1rem, .8rem + .8vw, 1.5rem);
    border-top: 2px solid var(--ryp-red);
    scroll-margin-top: 6.5rem;
    font-family: "Belleza", Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.4375rem, 1.25rem + 1vw, 2rem);
    line-height: 1.18;
    text-wrap: balance;
    color: var(--ryp-ink);
}
.bl-wrap .bl-prose h2::before {
    content: counter(ryp-sec, decimal-leading-zero);
    display: block;
    margin-bottom: .375rem;
    font-family: "Figtree", system-ui, sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .2em;
    color: var(--ryp-red-ink);
}
.bl-wrap .bl-prose h3 {
    margin: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem) 0 .5rem;
    scroll-margin-top: 6.5rem;
    font-family: "Belleza", Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.1875rem, 1.1rem + .55vw, 1.4375rem);
    line-height: 1.25;
    color: var(--ryp-ink);
}

/* -- the key points ------------------------------------------------------- */
/* 55 paragraphs across the 27 posts open with a bold label ("Who it is for:",
   "The honest answer:"). Left as running text they are invisible to anyone
   skimming; as tinted blocks they become the thing a skimmer stops on, and
   the label reads as a label.

   The class is put there by scratchpad/key_points.py rather than matched with
   `p:has(> strong:first-child)`, because :first-child counts ELEMENTS only --
   measured, that selector also caught a paragraph whose bold phrase sat in
   the middle of the sentence, and turned an ordinary paragraph into a
   callout. CSS cannot say "starts with". */
.bl-wrap .bl-prose p.bl-key {
    margin: 1.25rem 0;
    padding: .875rem 1.125rem;
    background: var(--ryp-red-tint);
    border-left: 3px solid var(--ryp-red);
    border-radius: 0 var(--ryp-img-radius) var(--ryp-img-radius) 0;
    color: var(--ryp-ink);
}
.bl-wrap .bl-prose p.bl-key > strong:first-child {
    color: var(--ryp-red-ink);
}

/* -- lists ---------------------------------------------------------------- */
.bl-wrap .bl-prose ul,
.bl-wrap .bl-prose ol {
    margin: 0 0 1.25rem;
    padding-left: 1.375rem;
    display: grid;
    row-gap: .5rem;
}
.bl-wrap .bl-prose ul { list-style: none; padding-left: 1.5rem; }
.bl-wrap .bl-prose ul > li { position: relative; }
.bl-wrap .bl-prose ul > li::before {
    content: "";
    position: absolute;
    left: -1.0625rem;
    top: .8125em;
    width: .5rem;
    height: 2px;
    background: var(--ryp-red);
}
.bl-wrap .bl-prose ol > li::marker { color: var(--ryp-red-ink); font-weight: 700; }
.bl-wrap .bl-prose li { line-height: 1.7; }

/* -- links inside the article --------------------------------------------- */
.bl-wrap .bl-prose a {
    color: var(--ryp-red-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(222, 42, 29, .4);
    text-underline-offset: 3px;
    transition: color 180ms ease, text-decoration-color 180ms ease;
}
.bl-wrap .bl-prose a:hover,
.bl-wrap .bl-prose a:focus-visible {
    color: var(--ryp-red-deep);
    text-decoration-color: currentColor;
}
.bl-wrap .bl-prose a:focus-visible {
    outline: 2px solid var(--ryp-red);
    outline-offset: 3px;
    border-radius: 2px;
}

/* -- the rest of the prose ------------------------------------------------ */
.bl-wrap .bl-prose img {
    border-radius: var(--ryp-img-radius);
    margin: 1.5rem 0 1.75rem;
}
.bl-wrap .bl-prose table {
    border: 0;
    border-top: 2px solid var(--ryp-red);
    border-radius: 0;
}
.bl-wrap .bl-prose blockquote {
    margin: 1.75rem 0;
    padding: 0 0 0 1.25rem;
    background: none;
    border: 0;
    border-left: 3px solid var(--ryp-red);
    border-radius: 0;
    font-family: "Belleza", Georgia, serif;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--ryp-ink);
}

/* -- the end of the article ----------------------------------------------- */
/* It sits across both columns, on paper rather than white, so finishing the
   article feels like arriving somewhere instead of running out of text. */
.bl-wrap .bl-post__foot {
    margin-top: clamp(2.5rem, 2rem + 2vw, 3.75rem);
    padding: clamp(1.25rem, 1rem + 1.2vw, 2rem) clamp(1.25rem, 1rem + 1.2vw, 2rem) clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
    background: #f2f0ec;
    border-top: 2px solid var(--ryp-red);
    border-radius: 0 0 var(--ryp-img-radius) var(--ryp-img-radius);
}

/* ---------------------------------------------------------------------------
   5. TABLET AND PHONE
   ---------------------------------------------------------------------------
   The margin rail has nowhere to go under about 62rem, so the contents fold
   back above the body as a disclosure — closed, because on a phone a list of
   fourteen anchors between the reader and the first paragraph is a wall.
   static/js/site.js is what opens it again on a wide screen.
   --------------------------------------------------------------------------- */
@media (max-width: 61.99rem) {
    .bl-wrap .bl-trending { grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; }
    .bl-wrap .bl-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* One column, and the source order is kept exactly: masthead, thumbnail,
       contents, article, foot. Reordering with grid would have put the picture
       above the <h1> for a sighted reader while a screen reader still met the
       heading first, and that mismatch is not worth a thumbnail. */
    .bl-wrap .bl-post { grid-template-columns: minmax(0, 1fr); }
    .bl-wrap .bl-post__head            { grid-column: 1; grid-row: 1; }
    .bl-wrap .bl-post > .bl-post__hero { grid-column: 1; grid-row: 2; }
    .bl-wrap .bl-toc                   { grid-column: 1; grid-row: 3; }
    .bl-wrap .bl-prose                 { grid-column: 1; grid-row: 4; }
    .bl-wrap .bl-post__foot            { grid-column: 1; grid-row: 5; }

    .bl-wrap .bl-post__title { max-width: none; }

    /* Still a thumbnail, not a hero: capped so it cannot eat the fold on a
       phone, and left-aligned under the byline where it reads as the
       article's picture rather than as a banner. */
    .bl-wrap .bl-post > .bl-post__hero {
        width: clamp(8rem, 42vw, 14rem);
        margin: clamp(1.25rem, 1rem + 1.2vw, 1.75rem) 0 0;
    }

    /* The contents fold back above the article as a disclosure -- closed,
       because a list of twelve anchors between the reader and the first
       paragraph is a wall. static/js/site.js opens it again on a wide
       screen. */
    .bl-wrap .bl-toc {
        position: static;
        margin: clamp(1.5rem, 1.2rem + 1.4vw, 2rem) 0 clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
        padding: clamp(.875rem, .7rem + .7vw, 1.25rem) clamp(1rem, .8rem + .8vw, 1.25rem);
        background: #f2f0ec;
        border-top: 2px solid var(--ryp-red);
        border-radius: 0 0 var(--ryp-img-radius) var(--ryp-img-radius);
    }
    .bl-wrap .bl-toc__list li::after { display: none; }

    .bl-wrap .bl-prose { max-width: none; }
    .bl-wrap .bl-prose h2,
    .bl-wrap .bl-prose h3 { scroll-margin-top: 5rem; }
}

@media (max-width: 47.99rem) {
    .bl-wrap .bl-grid { grid-template-columns: minmax(0, 1fr); }
    .bl-wrap .bl-grid > .bl-card:first-child {
        grid-template-columns: minmax(0, 1fr);
        row-gap: .875rem;
    }
    /* Stacked, the lead story's three parts have to be re-placed: the
       photograph is `grid-row: 1 / span 2` for the two-column layout, and in
       one column that put it in the same cell as the body — measured, the
       text was painted over the picture and the picture vanished. */
    .bl-wrap .bl-grid > .bl-card:first-child .bl-card__media img {
        grid-column: 1;
        grid-row: 1;
        aspect-ratio: 16 / 10;
    }
    .bl-wrap .bl-grid > .bl-card:first-child .bl-card__body { grid-column: 1; grid-row: 2; }
    .bl-wrap .bl-grid > .bl-card:first-child .bl-card__date { grid-column: 1; grid-row: 3; }
    .bl-wrap .bl-side { grid-template-columns: minmax(0, 1fr); }
    .bl-wrap .bl-card { grid-template-columns: 5rem minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .bl-wrap .bl-toc > summary svg,
    .bl-wrap .bl-toc__list a,
    .bl-wrap .bl-prose a { transition: none; }
}
