/* ============================================================
   BLOG LISTING - blog.css

   Serves the Blog page template, the category/tag/author archives
   and search results — all three share .page-blog on <main>.
   Also carries the post card and the brand tokens the article
   page (blog-single.css) reads, so this file is always enqueued
   first of the pair.

   Layout: a magenta hero panel inset in the container, then the
   articles beside a sidebar, then the newsletter band.

   Palette continues the magenta / deep-purple rollout used on the
   service pages and Trends, rather than the site-wide azure.
   ============================================================ */

/* ---- Page-scoped brand palette ------------------------------- */
.page-blog,
.single-post-page {
    --bl-magenta:      #C62052;
    --bl-magenta-dark: #A5235A;
    --bl-purple:       #280071;
    --bl-violet:       #9234F7;

    --bl-gradient:     linear-gradient(65deg, #C62052 0%, #280071 100%);
    --bl-gradient-alt: linear-gradient(120deg, #C62052 0%, #7B23DB 100%);
    /* Hero / promo panels — magenta into a deeper wine, per the design. */
    --bl-panel:        linear-gradient(115deg, #A4114B 0%, #C62052 45%, #8E0F51 100%);

    /* Dark bands */
    --bl-dark:         #14002F;
    --bl-dark-2:       #1E0A44;
    --bl-on-dark:      rgba(255, 255, 255, 0.82);
    --bl-on-dark-mute: rgba(255, 255, 255, 0.62);

    /* Light bands — the listing, the sidebar, the article */
    --bl-page:         #FDFBFC;
    --bl-surface:      #FFFFFF;
    --bl-border:       #EFE4EA;
    --bl-heading:      #1B1030;
    --bl-body:         #55506A;
    --bl-muted:        #7A748C;
    --bl-tint:         #FCF2F6;

    --bl-shadow-sm:    0 1px 3px rgba(30, 5, 60, .05), 0 1px 2px rgba(30, 5, 60, .04);
    --bl-shadow-lg:    0 18px 44px -22px rgba(30, 5, 60, .38);
    --bl-shadow-xl:    0 26px 60px -24px rgba(30, 5, 60, .48);

    /* Per-post accent, set inline from the post's category. The fallback
       keeps every element usable if a card is rendered without one. */
    --bl-accent:       var(--bl-magenta);

    background: var(--bl-page);
}

/* A decorative orb or an overflowing rail must never drag the page
   sideways on a phone. `clip` creates no scroll container, so sticky
   positioning inside the article still works. */
.page-blog,
.single-post-page { overflow-x: clip; }

/* -- Buttons ------------------------------------------------------
   .btn--primary is azure site-wide. Retint it here rather than moving
   the global token, so the blog joins the magenta rollout without
   touching pages that have not been converted yet. Same treatment as
   pages/service-theme.css. */
.page-blog .btn--primary,
.single-post-page .btn--primary {
    background: var(--bl-gradient);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(198, 32, 82, 0.28);
}
.page-blog .btn--primary:hover,
.single-post-page .btn--primary:hover {
    background: linear-gradient(65deg, #A5235A 0%, #1E0055 100%);
    border-color: transparent;
    box-shadow: 0 10px 28px rgba(198, 32, 82, 0.38);
}

/* ============================================================
   HERO PANEL
   ============================================================ */
/* sections/_header.css already offsets the body by --header-h for the fixed
   header, so this is the gap below it — not the clearance. Adding a second
   full header height here is what left a ~90px hole above the panel. */
.blog-hero { padding: clamp(20px, 3vw, 32px) 0 clamp(28px, 4vw, 44px); }

.blog-hero__panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.5rem, 4vw, 3.5rem);
    border-radius: clamp(16px, 2vw, 24px);
    background: var(--bl-panel);
    color: #fff;
    box-shadow: 0 24px 60px -30px rgba(150, 15, 70, .75);
}

.blog-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blog-hero__orb { position: absolute; border-radius: 50%; }
.blog-hero__orb--1 {
    width: 460px; height: 460px;
    top: -180px; right: 6%;
    background: radial-gradient(circle, rgba(255,255,255,.16) 0%, transparent 68%);
}
.blog-hero__orb--2 {
    width: 380px; height: 380px;
    bottom: -190px; left: -80px;
    background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
}
.blog-hero__dots {
    position: absolute;
    top: 1.75rem; right: 1.75rem;
    width: 110px; height: 86px;
    background-image: radial-gradient(rgba(255,255,255,.42) 1.7px, transparent 1.8px);
    background-size: 15px 15px;
}

.blog-hero__copy { position: relative; z-index: 1; }

.blog-hero__crumbs {
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
    font-size: .8rem; color: var(--bl-on-dark-mute);
    margin-bottom: .9rem;
}
.blog-hero__crumbs a { color: inherit; text-decoration: none; transition: color .2s ease; }
.blog-hero__crumbs a:hover,
.blog-hero__crumbs a:focus-visible { color: #fff; }
.blog-hero__crumb-current { color: #fff; }

.blog-hero__label {
    display: inline-block;
    font-size: .74rem; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255,255,255,.9);
}

.blog-hero__heading {
    font-size: clamp(1.85rem, 4.2vw, 3.15rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.02em;
    margin: .7rem 0 1rem;
    color: #fff;
    max-width: 16ch;
    text-wrap: balance;
}

.blog-hero__desc {
    max-width: 52ch;
    margin: 0;
    color: var(--bl-on-dark);
    font-size: clamp(.92rem, 1.05vw, 1rem);
    line-height: 1.75;
    text-wrap: pretty;
}

/* -- Artwork ------------------------------------------------------ */
.blog-hero__art {
    position: relative;
    z-index: 1;
    justify-self: end;
    width: 100%;
    max-width: 420px;
}
.blog-hero__svg,
.blog-hero__art-img {
    display: block;
    width: 100%;
    height: auto;
}
/* An uploaded picture is any shape the client likes, so it is capped rather
   than allowed to set the height of the whole panel. */
.blog-hero__art-img {
    border-radius: 14px;
    max-height: 300px;
    object-fit: contain;
}

/* ============================================================
   LISTING LAYOUT
   ============================================================ */
.blog-listing { padding: clamp(18px, 3vw, 28px) 0 clamp(48px, 7vw, 76px); }

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 328px;
    align-items: start;
    gap: clamp(1.5rem, 2.5vw, 2.25rem);
}

.blog-main { min-width: 0; }

/* -- Filter tabs --------------------------------------------------- */
.blog-filter { margin-bottom: clamp(1.1rem, 2vw, 1.5rem); }
.blog-filter__track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
}
.blog-filter__tab {
    display: inline-flex; align-items: center;
    padding: .52rem .95rem;
    border-radius: 999px;
    font-size: .84rem; font-weight: 500;
    color: var(--bl-body);
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.blog-filter__tab:hover,
.blog-filter__tab:focus-visible {
    color: var(--bl-magenta);
    background: var(--bl-tint);
}
.blog-filter__tab.is-active {
    color: #fff;
    font-weight: 600;
    background: var(--bl-magenta);
    border-color: transparent;
    box-shadow: 0 6px 16px -8px rgba(198,32,82,.9);
}

/* ============================================================
   ARTICLE ROWS
   ============================================================ */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 1.8vw, 1.35rem);
}

.blog-row {
    position: relative;
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    gap: clamp(1rem, 2vw, 1.6rem);
    padding: 1rem;
    border-radius: 16px;
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    box-shadow: var(--bl-shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.blog-row:hover,
.blog-row:focus-within {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--bl-accent) 34%, var(--bl-border));
    box-shadow: var(--bl-shadow-lg);
}

.blog-row__media {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 3 / 2;
    background: color-mix(in srgb, var(--bl-accent) 7%, #fff);
}
.blog-row__media img,
.blog-row__media .blog-ph {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.blog-row:hover .blog-row__media img { transform: scale(1.05); }

.blog-row__flag {
    position: absolute;
    top: .6rem; left: .6rem;
    z-index: 2;
    font-size: .64rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: #fff;
    padding: .28rem .6rem;
    border-radius: 999px;
    background: var(--bl-magenta);
    box-shadow: 0 4px 12px -4px rgba(198,32,82,.8);
}

.blog-row__body {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .35rem .35rem .35rem 0;
    min-width: 0;
}

.blog-row__cat {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    font-size: .7rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--bl-accent);
    text-decoration: none;
    transition: opacity .2s ease;
}
.blog-row__cat:hover,
.blog-row__cat:focus-visible { opacity: .75; text-decoration: underline; }

.blog-row__title {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -0.01em;
    margin: 0;
    text-wrap: pretty;
}
.blog-row__title a {
    color: var(--bl-heading);
    text-decoration: none;
    transition: color .2s ease;
}
.blog-row__title a:hover,
.blog-row__title a:focus-visible { color: var(--bl-accent); }
/* Stretch the title link over the whole card, so the thumbnail and body are
   clickable without adding anchors a screen reader would have to skip. The
   category link sits above it on z-index and keeps its own destination. */
.blog-row__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.blog-row__excerpt {
    margin: 0;
    font-size: .9rem;
    line-height: 1.7;
    color: var(--bl-body);
    text-wrap: pretty;
}

.blog-row__foot {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: .9rem;
    font-size: .78rem;
    color: var(--bl-muted);
}
.blog-row__meta { display: inline-flex; align-items: center; gap: .4rem; }
.blog-row__meta svg { color: var(--bl-accent); flex: 0 0 auto; }

.blog-row__more {
    display: inline-flex; align-items: center; gap: .4rem;
    margin-left: auto;
    font-size: .82rem; font-weight: 700;
    color: var(--bl-accent);
}
.blog-row__more svg { transition: transform .25s ease; }
.blog-row:hover .blog-row__more svg { transform: translateX(3px); }

/* Featured row — same proportions as the rest of the list, marked by the flag
   and a tinted edge. Enlarging it instead would break the rhythm of the column
   for one post. */
.blog-row.is-featured { border-color: color-mix(in srgb, var(--bl-magenta) 30%, var(--bl-border)); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.blog-side {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 1.6vw, 1.25rem);
    min-width: 0;
}

.blog-side__card {
    padding: 1.35rem 1.4rem 1.5rem;
    border-radius: 16px;
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    box-shadow: var(--bl-shadow-sm);
}
.blog-side__card--search { padding: .9rem; }

.blog-side__title {
    position: relative;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--bl-heading);
    margin: 0 0 1.2rem;
    padding-bottom: .7rem;
}
.blog-side__title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 34px; height: 3px;
    border-radius: 2px;
    background: var(--bl-magenta);
}

/* -- Search -------------------------------------------------------- */
.blog-search {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .3rem .3rem .95rem;
    border-radius: 10px;
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.blog-search:focus-within {
    border-color: color-mix(in srgb, var(--bl-magenta) 55%, var(--bl-border));
    box-shadow: 0 0 0 3px rgba(198,32,82,.12);
}
.blog-search__input {
    flex: 1 1 auto;
    min-width: 0;
    background: none;
    border: 0;
    outline: none;
    color: var(--bl-heading);
    font: inherit;
    font-size: .9rem;
    padding: .6rem 0;
}
.blog-search__input::placeholder { color: var(--bl-muted); }

.blog-search__btn {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 38px; height: 38px;
    border: 0;
    cursor: pointer;
    border-radius: 8px;
    color: var(--bl-magenta);
    background: none;
    transition: color .2s ease, background .2s ease;
}
.blog-search__btn:hover,
.blog-search__btn:focus-visible { color: #fff; background: var(--bl-magenta); }

/* -- Category list ------------------------------------------------- */
.blog-cat-list { list-style: none; margin: 0; padding: 0; }
.blog-cat-list li + li { border-top: 1px solid var(--bl-border); }

.blog-cat-list__link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .68rem 0;
    font-size: .9rem;
    color: var(--bl-body);
    text-decoration: none;
    transition: color .2s ease, padding-left .2s ease;
}
.blog-cat-list__link:hover,
.blog-cat-list__link:focus-visible,
.blog-cat-list__link.is-active { color: var(--bl-magenta); padding-left: .25rem; }
.blog-cat-list__link .blog-cat-icon { flex: 0 0 auto; color: var(--bl-magenta); }
.blog-cat-list__name { flex: 1 1 auto; min-width: 0; }
.blog-cat-list__count { flex: 0 0 auto; font-size: .82rem; color: var(--bl-muted); }

/* -- Popular posts ------------------------------------------------- */
.blog-pop { list-style: none; margin: 0; padding: 0; }
.blog-pop__item {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: .8rem;
    align-items: center;
    padding: .7rem 0;
}
.blog-pop__item + .blog-pop__item { border-top: 1px solid var(--bl-border); }

.blog-pop__media {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    background: color-mix(in srgb, var(--bl-accent) 8%, #fff);
}
.blog-pop__media img,
.blog-pop__media .blog-ph {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.blog-pop__item:hover .blog-pop__media img { transform: scale(1.06); }

.blog-pop__title {
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 .25rem;
    text-wrap: pretty;
}
.blog-pop__title a {
    color: var(--bl-heading);
    text-decoration: none;
    transition: color .2s ease;
}
.blog-pop__title a:hover,
.blog-pop__title a:focus-visible { color: var(--bl-magenta); }
.blog-pop__date { font-size: .75rem; color: var(--bl-muted); }

/* -- Promo card ---------------------------------------------------- */
.blog-side__cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 1.6rem 1.5rem 1.7rem;
    border-radius: 16px;
    background: var(--bl-panel);
    color: #fff;
    box-shadow: 0 18px 40px -24px rgba(150, 15, 70, .85);
}
.blog-side__cta-dots {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 72px; height: 56px;
    z-index: -1;
    background-image: radial-gradient(rgba(255,255,255,.38) 1.6px, transparent 1.7px);
    background-size: 13px 13px;
}
.blog-side__cta-head {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: .9rem;
}
.blog-side__cta-icon {
    flex: 0 0 auto;
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
}
.blog-side__cta-heading {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    /* base/_typography.css colours every heading --color-dark. That is a rule
       on the element, so it beats the white *inherited* from the panel and the
       heading disappears into the background. Set it explicitly. */
    color: #fff;
    text-wrap: balance;
}
.blog-side__cta-text {
    margin: 0 0 1.2rem;
    font-size: .88rem;
    line-height: 1.7;
    color: var(--bl-on-dark);
    text-wrap: pretty;
}
.blog-side__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .7rem 1.15rem;
    border-radius: 8px;
    font-size: .86rem; font-weight: 600;
    color: var(--bl-magenta);
    background: #fff;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.blog-side__cta-btn:hover,
.blog-side__cta-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -12px rgba(0,0,0,.55);
}
.blog-side__cta-btn svg { transition: transform .25s ease; }
.blog-side__cta-btn:hover svg { transform: translateX(3px); }

/* ============================================================
   PAGINATION
   ============================================================ */
.blog-pagination {
    display: flex;
    margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.blog-pagination .nav-links,
.blog-pagination > * {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
}
.blog-pagination .page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 38px; height: 38px;
    padding: 0 .55rem;
    border-radius: 8px;
    font-size: .86rem; font-weight: 600;
    text-decoration: none;
    color: var(--bl-body);
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers:focus-visible {
    color: var(--bl-magenta);
    border-color: color-mix(in srgb, var(--bl-magenta) 45%, var(--bl-border));
}
.blog-pagination .page-numbers.current {
    color: #fff;
    background: var(--bl-magenta);
    border-color: transparent;
    box-shadow: 0 6px 16px -8px rgba(198,32,82,.9);
}
.blog-pagination .page-numbers.dots {
    background: none; border-color: transparent;
    color: var(--bl-muted);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.blog-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
    border-radius: 16px;
    border: 1px dashed var(--bl-border);
    background: var(--bl-surface);
    color: var(--bl-muted);
}
.blog-empty__text {
    margin: 0;
    font-size: 1rem;
    color: var(--bl-body);
    max-width: 46ch;
    text-wrap: pretty;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.blog-newsletter {
    background: var(--bl-tint);
    border-top: 1px solid var(--bl-border);
    padding: clamp(2rem, 4vw, 2.75rem) 0;
}
.blog-newsletter__inner {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    flex-wrap: wrap;
}
.blog-newsletter__icon {
    flex: 0 0 auto;
    display: grid; place-items: center;
    width: 52px; height: 52px;
    border-radius: 50%;
    color: #fff;
    background: var(--bl-magenta);
    box-shadow: 0 10px 24px -12px rgba(198,32,82,.9);
}
.blog-newsletter__copy { flex: 1 1 300px; }
.blog-newsletter__heading {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 .3rem;
    color: var(--bl-heading);
    text-wrap: balance;
}
.blog-newsletter__sub {
    margin: 0;
    color: var(--bl-body);
    font-size: .88rem;
    line-height: 1.6;
    max-width: 46ch;
    text-wrap: pretty;
}

.blog-newsletter__form {
    display: flex;
    gap: .5rem;
    flex: 0 1 440px;
}
.blog-newsletter__input {
    flex: 1 1 auto;
    min-width: 0;
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    border-radius: 8px;
    outline: none;
    color: var(--bl-heading);
    font: inherit; font-size: .9rem;
    padding: .75rem 1rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.blog-newsletter__input::placeholder { color: var(--bl-muted); }
.blog-newsletter__input:focus {
    border-color: color-mix(in srgb, var(--bl-magenta) 55%, var(--bl-border));
    box-shadow: 0 0 0 3px rgba(198,32,82,.12);
}

.blog-newsletter__btn {
    flex: 0 0 auto;
    border: 0; cursor: pointer;
    font: inherit; font-size: .88rem; font-weight: 600;
    color: #fff;
    padding: .75rem 1.5rem;
    border-radius: 8px;
    background: var(--bl-magenta);
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}
.blog-newsletter__btn:hover,
.blog-newsletter__btn:focus-visible { background: var(--bl-magenta-dark); transform: translateY(-1px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Laptops — the sidebar narrows before the article rows get cramped. */
@media (max-width: 1180px) {
    .blog-layout { grid-template-columns: minmax(0, 1fr) 292px; }
    .blog-row { grid-template-columns: 216px minmax(0, 1fr); }
}

/* Tablets — one column. The sidebar moves under the articles and lays its
   cards out two-up, so it is a short band rather than a metre of scrolling. */
@media (max-width: 1024px) {
    .blog-layout { grid-template-columns: minmax(0, 1fr); }

    .blog-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        margin-top: clamp(1.5rem, 3vw, 2rem);
    }
    .blog-side__card--search,
    .blog-side__cta { grid-column: 1 / -1; }

    .blog-hero__panel {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
        gap: 1.25rem;
    }
    .blog-hero__heading { max-width: none; }
}

/* Small tablets / large phones — the hero art moves under the copy. */
@media (max-width: 820px) {
    .blog-hero__panel {
        grid-template-columns: minmax(0, 1fr);
        text-align: left;
    }
    .blog-hero__art {
        justify-self: center;
        max-width: 380px;
        margin-top: .5rem;
    }
    .blog-hero__dots { display: none; }
}

/* Phones. */
@media (max-width: 700px) {
    /* Rows stack — a 200px-wide thumbnail beside two lines of text reads as a
       broken layout well before this width. */
    .blog-row {
        grid-template-columns: minmax(0, 1fr);
        gap: .9rem;
    }
    .blog-row__media { aspect-ratio: 16 / 9; }
    .blog-row__body { padding: 0 .35rem .35rem; }

    .blog-side { grid-template-columns: minmax(0, 1fr); }

    /* Tabs scroll sideways instead of stacking into a tall block that pushes
       the first article off screen. */
    .blog-filter__track {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Bleed to the screen edges so the row reads as scrollable. */
        margin-inline: calc(var(--container-pad) * -1);
        padding-inline: var(--container-pad);
        padding-bottom: .25rem;
    }
    .blog-filter__track::-webkit-scrollbar { display: none; }
    .blog-filter__tab { scroll-snap-align: start; }

    .blog-newsletter__inner { gap: 1rem; }
    .blog-newsletter__copy { flex: 1 1 100%; }
    .blog-newsletter__form { flex: 1 1 100%; }
}

@media (max-width: 560px) {
    .blog-hero { padding-top: 1rem; }
    .blog-hero__heading { font-size: clamp(1.6rem, 7.6vw, 2.1rem); }
    .blog-hero__desc { font-size: .9rem; }

    .blog-row__foot { gap: .75rem; row-gap: .5rem; }
    /* The link sits on its own line once the two meta items fill the first. */
    .blog-row__more { margin-left: 0; }
}

/* Small phones — the newsletter field and its button stop sharing a row. */
@media (max-width: 420px) {
    .blog-newsletter__form { flex-direction: column; }
    .blog-newsletter__btn { width: 100%; }

    .blog-newsletter__icon { width: 44px; height: 44px; }

    .blog-pop__item { grid-template-columns: 58px minmax(0, 1fr); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .blog-row,
    .blog-row__media img,
    .blog-pop__media img,
    .blog-pagination .page-numbers,
    .blog-filter__tab,
    .blog-cat-list__link,
    .blog-side__cta-btn,
    .blog-newsletter__btn { transition: none; }

    .blog-row:hover,
    .blog-side__cta-btn:hover,
    .blog-newsletter__btn:hover { transform: none; }

    .blog-row:hover .blog-row__media img,
    .blog-pop__item:hover .blog-pop__media img { transform: none; }

    .blog-cat-list__link:hover { padding-left: 0; }

    .blog-row__more svg,
    .blog-side__cta-btn svg { transition: none; }
}
