/* ==========================================================================
   blog.css — public blog redesign (article list + detail)
   Reuses the design tokens defined in landing.css :root
   (--primary-color, --gradient-primary, --secondary-color, --shadow-*, …).
   landing.css is loaded before this file, so those vars are available here.
   ========================================================================== */

/* Local fallbacks in case a token is ever missing — keeps the page on-brand. */
.blog-page {
    --blog-radius: 20px;
    --blog-radius-sm: 14px;
    --blog-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --blog-green: var(--primary-color, #006A4E);
    --blog-green-dark: var(--primary-dark, #004D3A);
    --blog-lime: var(--secondary-color, #DFFF00);
    --blog-ink: var(--dark-color, #0F172A);
    --blog-muted: var(--gray-600, #475569);
    --blog-line: var(--gray-200, #E2E8F0);
    --blog-soft: var(--gray-100, #F1F5F9);
    /* Brand "stage" backdrop for transparent device mockups (mesh gradient).
       Swap the linear-gradient layer for url('...') to use a generated image. */
    --blog-stage:
        radial-gradient(circle at 16% 20%, rgba(223, 255, 0, 0.20), transparent 42%),
        radial-gradient(circle at 84% 14%, rgba(0, 139, 90, 0.55), transparent 48%),
        radial-gradient(circle at 78% 92%, rgba(8, 54, 95, 0.72), transparent 55%),
        linear-gradient(135deg, #00714f 0%, #004d3a 60%, #002f33 100%);
        /* radial-gradient(circle at 16% 20%, rgba(223,255,0,0.18), transparent 42%),
        url('/static/images/blog/stage-bg.webp') center/cover no-repeat; */
    background-color: #f6f8f7;
}

/* ==========================================================================
   1. HERO (list + detail share the gradient banner header)
   ========================================================================== */
.blog-hero {
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary, linear-gradient(135deg, #006A4E 0%, #004D3A 100%));
    color: #fff;
    padding: 124px 0 56px;          /* top clears the fixed navbar (~70px) */
    isolation: isolate;
}
.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 12% 20%, rgba(223, 255, 0, 0.16), transparent 38%),
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.12), transparent 42%),
        radial-gradient(circle at 75% 95%, rgba(8, 54, 95, 0.30), transparent 45%);
}
.blog-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    z-index: -1;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.04);
    pointer-events: none;
}
.blog-hero .breadcrumb {
    margin-bottom: 1rem;
}
.blog-hero .breadcrumb-item,
.blog-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.9rem;
}
.blog-hero .breadcrumb-item a:hover { color: var(--blog-lime); }
.blog-hero .breadcrumb-item.active { color: #fff; }
.blog-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.45); }

.blog-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.blog-hero__eyebrow i { color: var(--blog-lime); }
.blog-hero__title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    max-width: 18ch;
    margin: 0;
}
.blog-hero__subtitle {
    margin-top: 16px;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 60ch;
    line-height: 1.6;
}

/* ==========================================================================
   2. ARTICLE LIST
   ========================================================================== */
.blog-section { padding: 56px 0 80px; }

/* --- Featured (latest) article --------------------------------------------- */
.blog-featured {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #fff;
    border: 1px solid var(--blog-line);
    border-radius: var(--blog-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,.1));
    margin-bottom: 48px;
    transition: box-shadow 0.4s var(--blog-ease), transform 0.4s var(--blog-ease);
}
.blog-featured:hover {
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0,0,0,.1));
    transform: translateY(-4px);
}
.blog-featured__media {
    position: relative;
    min-height: 320px;
    background: var(--blog-stage);
    overflow: hidden;
}
.blog-featured__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: clamp(20px, 3vw, 40px);
    object-fit: contain;             /* transparent device floats on the gradient */
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.38));
    transition: transform 0.6s var(--blog-ease);
}
.blog-featured:hover .blog-featured__media img { transform: scale(1.03); }
.blog-featured__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 4rem;
}
.blog-featured__body {
    padding: 40px clamp(24px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blog-featured__title {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--blog-ink);
    margin: 14px 0 12px;
}
.blog-featured__title a { color: inherit; text-decoration: none; }
.blog-featured__title a:hover { color: var(--blog-green); }
.blog-featured__excerpt {
    color: var(--blog-muted);
    line-height: 1.65;
    margin-bottom: 24px;
}

/* --- Card grid ------------------------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--blog-line);
    border-radius: var(--blog-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05));
    transition: transform 0.4s var(--blog-ease), box-shadow 0.4s var(--blog-ease);
}
.blog-card::before {                 /* animated accent bar (landing feature-card pattern) */
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-secondary, linear-gradient(135deg, #DFFF00, #CCFF00));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--blog-ease);
    z-index: 2;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0,0,0,.12));
}
.blog-card:hover::before { transform: scaleX(1); }

.blog-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--blog-stage);
}
.blog-card__media img {
    width: 100%;
    height: 100%;
    padding: 16px 20px;
    object-fit: contain;             /* transparent device floats on the gradient */
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.34));
    transition: transform 0.6s var(--blog-ease);
}
.blog-card:hover .blog-card__media img { transform: scale(1.04); }
.blog-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2.6rem;
}
.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 22px 24px 26px;
}
.blog-card__title {
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.32;
    color: var(--blog-ink);
    margin: 12px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card__title a { color: inherit; text-decoration: none; }
.blog-card__title a:hover { color: var(--blog-green); }
.blog-card__excerpt {
    color: var(--blog-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Date chip + read-more link ------------------------------------------------ */
.blog-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--blog-soft);
    color: var(--blog-green-dark);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.blog-chip i { font-size: 0.72rem; }
.blog-chip--updated { background: rgba(0, 106, 78, 0.10); color: var(--blog-green); }

.blog-readmore {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--blog-green);
    text-decoration: none;
}
.blog-readmore i { transition: transform 0.25s var(--blog-ease); }
.blog-card:hover .blog-readmore i,
.blog-featured:hover .blog-readmore i { transform: translateX(5px); }

/* Stretched-link helper without Bootstrap dependency */
.blog-stretch::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ==========================================================================
   3. PAGINATION
   ========================================================================== */
.blog-pager { margin-top: 56px; }
.blog-pager__meta { color: var(--blog-muted); font-size: 0.9rem; }
.blog-pager .pagination { gap: 6px; }
.blog-pager .page-link {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--blog-line);
    border-radius: 12px !important;
    color: var(--blog-green-dark);
    font-weight: 600;
    background: #fff;
    transition: all 0.2s var(--blog-ease);
}
.blog-pager .page-link:hover {
    background: var(--blog-soft);
    border-color: var(--blog-green);
    color: var(--blog-green);
}
.blog-pager .page-item.active .page-link {
    background: var(--gradient-primary, #004D3A);
    border-color: transparent;
    color: #fff;
}
.blog-pager .page-item.disabled .page-link {
    color: var(--gray-300, #CBD5E1);
    background: #fff;
}
.blog-pager .form-select {
    border-radius: 12px;
    border-color: var(--blog-line);
}

/* ==========================================================================
   4. EMPTY STATE
   ========================================================================== */
.blog-empty {
    text-align: center;
    background: #fff;
    border: 1px solid var(--blog-line);
    border-radius: var(--blog-radius);
    padding: 72px 24px;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05));
}
.blog-empty__icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: var(--blog-green);
    background: var(--blog-soft);
}
.blog-empty h2 { font-size: 1.5rem; font-weight: 700; color: var(--blog-ink); }
.blog-empty p { color: var(--blog-muted); }

/* Shared brand buttons ------------------------------------------------------ */
.btn-blog {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.25s var(--blog-ease), box-shadow 0.25s var(--blog-ease), background 0.25s var(--blog-ease);
}
.btn-blog--primary {
    background: var(--gradient-primary, #004D3A);
    color: #fff;
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,.1));
}
.btn-blog--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0,0,0,.1)); color: #fff; }
.btn-blog--lime {
    background: var(--gradient-secondary, linear-gradient(135deg, #DFFF00, #CCFF00));
    color: var(--accent-color, #003366);
}
.btn-blog--lime:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0,0,0,.1)); color: var(--accent-color, #003366); }
.btn-blog--ghost {
    background: #fff;
    color: var(--blog-green-dark);
    border: 1px solid var(--blog-line);
}
.btn-blog--ghost:hover { border-color: var(--blog-green); color: var(--blog-green); }

/* ==========================================================================
   5. DETAIL — reading progress bar
   ========================================================================== */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 2000;
    pointer-events: none;
}
.reading-progress__bar {
    height: 100%;
    width: 0;
    background: var(--gradient-secondary, linear-gradient(90deg, #DFFF00, #CCFF00));
    box-shadow: 0 0 12px rgba(223, 255, 0, 0.6);
    transition: width 0.08s linear;
}

/* ==========================================================================
   6. DETAIL — cover hero
   ========================================================================== */
.article-cover {
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary, linear-gradient(135deg, #006A4E 0%, #004D3A 100%));
    color: #fff;
    padding: 124px 0 64px;
    isolation: isolate;
}
.article-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 12% 20%, rgba(223, 255, 0, 0.16), transparent 40%),
                radial-gradient(circle at 88% 95%, rgba(8, 54, 95, 0.40), transparent 45%);
}

/* Featured image — transparent device mockup floating on the generated stage image
   (detail page only; the list cards keep the --blog-stage mesh gradient) */
.article-hero-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: clamp(24px, 5vw, 60px);
    border-radius: var(--blog-radius);
    background: url('/static/images/blog/stage-bg.webp') center / cover no-repeat, var(--blog-stage);
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.18));
}
.article-hero-image img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.42));
}
.article-cover .breadcrumb-item,
.article-cover .breadcrumb-item a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 0.9rem; }
.article-cover .breadcrumb-item a:hover { color: var(--blog-lime); }
.article-cover .breadcrumb-item.active { color: #fff; }
.article-cover .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.45); }

.article-cover__title {
    font-size: clamp(1.8rem, 4vw, 3.1rem);
    font-weight: 700;
    line-height: 1.14;
    max-width: 22ch;
    margin: 12px 0 0;
}
.article-cover__meta {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
}
.article-cover__meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-cover__meta i { color: var(--blog-lime); }

/* ==========================================================================
   7. DETAIL — layout (content + sticky TOC)
   ========================================================================== */
.article-shell {
    position: relative;
    z-index: 2;
    margin-top: -44px;               /* pull content + TOC up to overlap the header */
    padding: 0 0 80px;
}
.article-layout { display: block; }
.article-content { min-width: 0; }

@media (min-width: 992px) {
    .article-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 48px;
        /* No align-items:start — the sidebar must stretch to the content height
           so the sticky TOC has room to travel and stays pinned while reading. */
    }
}

.article-main {
    background: #fff;
    border: 1px solid var(--blog-line);
    border-radius: var(--blog-radius);
    padding: clamp(24px, 4vw, 56px);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,.08));
}

/* TOC ----------------------------------------------------------------------- */
.article-toc-wrap { display: none; }
@media (min-width: 992px) {
    .article-toc-wrap { display: block; }
}
.article-toc {
    position: sticky;
    top: 92px;                       /* pins just below the fixed navbar */
    background: #fff;
    border: 1px solid var(--blog-line);
    border-radius: var(--blog-radius-sm);
    padding: 22px 22px;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.05));
    /* Fully visible by default; only a very long TOC scrolls internally
       (as a last resort) instead of being clipped by the viewport. */
    max-height: calc(100vh - 108px);
    overflow-y: auto;
}
.article-toc__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blog-muted);
    margin-bottom: 14px;
}
.article-toc ul { list-style: none; padding: 0; margin: 0; }
.article-toc li { margin: 0; }
.article-toc a {
    display: block;
    padding: 6px 12px;
    border-left: 2px solid transparent;
    color: var(--blog-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    text-decoration: none;
    transition: all 0.2s var(--blog-ease);
}
.article-toc a:hover { color: var(--blog-green); }
.article-toc a.is-active {
    color: var(--blog-green);
    border-left-color: var(--blog-green);
    font-weight: 600;
    background: var(--blog-soft);
}
.article-toc a.toc-h3 { padding-left: 26px; font-size: 0.85rem; }

/* ==========================================================================
   8. DETAIL — article body typography
   (this page does NOT load blog_article.css, so the body lives here)
   ========================================================================== */
.article-body {
    color: #2b3440;
    font-size: 1.075rem;
    line-height: 1.78;
    overflow-wrap: anywhere;
}
.article-body > p:first-of-type { font-size: 1.18rem; color: #1f2933; }
.article-body > p:first-of-type::first-letter {
    float: left;
    font-size: 3.4rem;
    line-height: 0.8;
    font-weight: 700;
    padding: 6px 12px 0 0;
    color: var(--blog-green);
}
.article-body h1, .article-body h2, .article-body h3,
.article-body h4, .article-body h5, .article-body h6 {
    color: var(--blog-ink);
    font-weight: 700;
    line-height: 1.25;
    margin: 2.2rem 0 1rem;
    scroll-margin-top: 90px;     /* anchor offset under fixed navbar */
}
.article-body h2 {
    font-size: 1.7rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--blog-line);
}
.article-body h3 { font-size: 1.34rem; }
.article-body h4 { font-size: 1.12rem; }
.article-body p { margin: 0 0 1.15rem; }
.article-body a {
    color: var(--blog-green);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.article-body a:hover { color: var(--blog-green-dark); }
.article-body strong { font-weight: 700; color: #1f2933; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body ul li::marker { color: var(--blog-green); }
.article-body blockquote {
    margin: 1.6rem 0;
    padding: 1rem 1.4rem;
    border-left: 4px solid var(--blog-green);
    background: var(--blog-soft);
    border-radius: 0 12px 12px 0;
    color: #334155;
    font-style: italic;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--blog-radius-sm);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0,0,0,.1));
    margin: 1.4rem 0;
}
.article-body video, .article-body iframe { max-width: 100%; border-radius: var(--blog-radius-sm); }
.article-body hr { border: none; border-top: 1px solid var(--blog-line); margin: 2.2rem 0; }
.article-body code {
    background: var(--blog-soft);
    border: 1px solid var(--blog-line);
    border-radius: 6px;
    padding: 0.12em 0.4em;
    font-size: 0.9em;
    color: #b3306b;
}
.article-body pre {
    background: var(--blog-ink);
    color: #e2e8f0;
    padding: 18px 20px;
    border-radius: var(--blog-radius-sm);
    overflow-x: auto;
    white-space: pre;
    margin: 1.4rem 0;
}
.article-body pre code { background: none; border: none; color: inherit; padding: 0; }
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    display: block;
    overflow-x: auto;
}
.article-body th, .article-body td {
    border: 1px solid var(--blog-line);
    padding: 10px 14px;
    text-align: left;
}
.article-body thead th { background: var(--blog-soft); color: var(--blog-ink); font-weight: 600; }

/* ==========================================================================
   9. DETAIL — share bar
   ========================================================================== */
.share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--blog-line);
}
.share-bar__label { font-size: 0.85rem; font-weight: 600; color: var(--blog-muted); margin-right: 2px; }
.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--blog-line);
    background: #fff;
    color: var(--blog-green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s var(--blog-ease);
}
.share-btn:hover { transform: translateY(-3px); color: #fff; border-color: transparent; }
.share-btn--tg:hover { background: #229ED9; }
.share-btn--vk:hover { background: #0077FF; }

/* ==========================================================================
   10. DETAIL — bottom CTA + footer nav
   ========================================================================== */
.article-cta {
    position: relative;
    overflow: hidden;
    margin-top: 32px;
    border-radius: var(--blog-radius);
    background: var(--gradient-primary, linear-gradient(135deg, #006A4E 0%, #004D3A 100%));
    color: #fff;
    padding: clamp(28px, 4vw, 44px);
    text-align: center;
    isolation: isolate;
}
.article-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 12% 18%, rgba(223,255,0,0.16), transparent 40%),
                radial-gradient(circle at 88% 95%, rgba(8,54,95,0.40), transparent 45%);
}
.article-cta__title { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 700; margin-bottom: 10px; }
.article-cta__text { color: rgba(255,255,255,0.85); max-width: 52ch; margin: 0 auto 22px; line-height: 1.6; }

.article-footnav { margin-top: 28px; }

/* ==========================================================================
   11. Scroll-reveal
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s var(--blog-ease), transform 0.6s var(--blog-ease);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   12. Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-featured { grid-template-columns: 1fr; }
    .blog-featured__media { min-height: 220px; }
}
@media (max-width: 575.98px) {
    .blog-grid { grid-template-columns: 1fr; gap: 22px; }
    .blog-hero { padding-top: 108px; }
    .article-cover { padding-top: 108px; }
    .blog-pager .blog-pager__topbar { flex-direction: column; gap: 12px; align-items: stretch !important; }
}

/* Touch targets */
.share-btn, .blog-pager .page-link, .btn-blog { touch-action: manipulation; }

/* ==========================================================================
   13. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .blog-card, .blog-featured, .blog-card__media img, .blog-featured__media img,
    .btn-blog, .share-btn, .blog-readmore i { transition: none !important; }
    .blog-card:hover, .blog-featured:hover, .btn-blog:hover, .share-btn:hover { transform: none !important; }
    .reading-progress__bar { transition: none !important; }
}
