/* Страница статьи блога и каталог /blog/ */

.blog-page {
    position: relative;
}

.blog--catalog {
    position: relative;
    padding: calc(var(--header-height) + var(--hero-top-gap) + 24px) 0 80px;
    overflow: hidden;
}

.blog__list-wrap {
    position: relative;
    z-index: 1;
}

.blog__ambient--page {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}

.blog--catalog > .container {
    position: relative;
    z-index: 1;
}

/* ——— Hero статьи ——— */
.post-hero {
    position: relative;
    padding: calc(var(--header-height) + var(--hero-top-gap) + 16px) 0 56px;
    overflow: hidden;
}

.post-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(124, 92, 255, 0.22), transparent 48%),
        radial-gradient(circle at 85% 65%, rgba(0, 212, 255, 0.14), transparent 50%),
        var(--bg-0);
    z-index: 0;
}

.post-hero__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

.post-hero__ambient .hero__orb--1 {
    top: 0;
    left: -8%;
    width: 420px;
    height: 420px;
}

.post-hero__ambient .hero__orb--2 {
    top: 20%;
    right: -12%;
    width: 380px;
    height: 380px;
    opacity: 0.35;
}

.post-hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2.5vw, 28px);
}

.post-hero__crumbs {
    margin-bottom: 0;
}

.post-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(300px, 38vw, 480px);
    grid-template-rows: auto auto;
    column-gap: clamp(32px, 4vw, 56px);
    row-gap: clamp(20px, 2.5vw, 28px);
    align-items: start;
    min-width: 0;
}

.post-hero__meta-rail {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 0;
}

.post-hero__copy {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
    padding: 0;
}

.post-hero__layout:not(:has(.post-hero__meta-rail)) .post-hero__copy,
.post-hero__layout:not(:has(.post-hero__meta-rail)) .post-hero__media {
    grid-row: 1;
}

.post-hero__date-pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    border-radius: var(--radius-full);
    color: #fff;
    white-space: nowrap;
    background: linear-gradient(135deg, #00d4ff, #3b7dff);
    box-shadow: 0 4px 16px rgba(0, 180, 255, 0.32);
}

.post-hero__date-pill-day {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.post-hero__date-pill-month {
    text-transform: lowercase;
    font-weight: 700;
}

.post-hero__date-pill-year {
    font-weight: 600;
    opacity: 0.92;
}

.post-hero__date-pill-sep {
    margin: 0 0.35em;
    font-weight: 600;
    opacity: 0.75;
}

.post-hero__headline {
    position: relative;
    padding-left: clamp(18px, 2vw, 24px);
    margin-bottom: clamp(24px, 3vw, 32px);
}

.post-hero__headline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.12em;
    bottom: 0.12em;
    width: 3px;
    border-radius: var(--radius-full);
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 55%, rgba(0, 212, 255, 0.35) 100%);
}

.post-hero__media {
    grid-column: 2;
    grid-row: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    align-self: start;
}

.post-hero__badge,
.post-hero__visual-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    color: #fff;
    box-shadow: 0 4px 16px rgba(124, 92, 255, 0.35);
}

.post-hero__badge-type {
    text-transform: uppercase;
}

.post-hero__badge-sep {
    margin: 0 0.4em;
    font-weight: 600;
    opacity: 0.75;
    text-transform: none;
}

.post-hero__badge-read {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    opacity: 0.92;
    white-space: nowrap;
}

.post-hero__badge--news {
    background: linear-gradient(135deg, #ffb84d, #ff8c42);
    box-shadow: 0 4px 16px rgba(255, 140, 66, 0.35);
}

.post-hero__badge--video {
    background: linear-gradient(135deg, #00d4ff, #7c5cff);
}

.post-hero__badge--article {
    background: linear-gradient(135deg, #7c5cff, #5a3fd4);
    box-shadow: 0 4px 16px rgba(124, 92, 255, 0.35);
}

.post-hero__chip {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
}

.post-hero__chip--muted {
    color: var(--text-3);
    font-weight: 500;
}

.post-hero__date {
    display: inline-flex;
    align-items: stretch;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.post-hero__date--dock {
    position: relative;
    z-index: 4;
    margin: 0 0 14px;
    align-self: flex-start;
}

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

.post-hero__date-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 72px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    transition: transform var(--t-base) var(--easing), box-shadow var(--t-base) var(--easing);
}

.post-hero__date:hover .post-hero__date-card {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.post-hero__date-card-head {
    display: block;
    width: 100%;
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
}

.post-hero__date-card-day {
    display: block;
    padding: 6px 12px 2px;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text);
}

.post-hero__date-card-year {
    display: block;
    padding: 0 12px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: 0.04em;
}

html[data-theme="light"] .post-hero__date-card {
    background: var(--hero-card-badge-bg);
}

html[data-theme="light"] .post-hero__date-card-day {
    background: linear-gradient(135deg, #5a3fd4, #0099bb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="dark"] .post-hero__date-card-day {
    color: var(--text);
}

.post-hero__date--simple {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
}

.post-hero__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 clamp(14px, 1.8vw, 18px);
    text-wrap: balance;
}

.post-hero__lead {
    font-size: clamp(17px, 1.35vw, 18px);
    line-height: 1.65;
    color: var(--text-2);
    margin: 0;
    max-width: 52ch;
    text-wrap: pretty;
}

.post-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-2);
    transition: color var(--t-base) var(--easing), gap var(--t-base) var(--easing);
}

.post-hero__back:hover {
    color: var(--accent);
    gap: 12px;
}

.post-hero__visual-wrap {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}

@media (min-width: 993px) {
    .post-hero__layout {
        min-height: clamp(440px, 58vh, 620px);
    }

    .post-hero__layout:has(.post-hero__visual--photo) {
        min-height: 0;
        align-items: start;
    }

    .post-hero__media {
        position: sticky;
        top: calc(var(--header-height) + 16px);
        align-self: start;
        max-height: calc(100vh - var(--header-height) - 32px);
    }

    .post-hero__visual-wrap {
        flex: 1 1 auto;
        display: flex;
        min-height: clamp(420px, 54vh, 580px);
    }

    .post-hero__visual-wrap:has(.post-hero__visual--photo) {
        flex: 0 0 auto;
        min-height: 0;
        align-self: start;
    }

    .post-hero__visual {
        flex: 1 1 auto;
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        aspect-ratio: auto;
    }
}

.post-hero__visual {
    aspect-ratio: 4 / 5;
    width: 100%;
    min-height: 360px;
    max-height: min(78vh, 620px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-strong);
    position: relative;
    overflow: hidden;
    justify-self: stretch;
    box-shadow:
        0 24px 64px rgba(6, 8, 26, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    background: #15102a;
    isolation: isolate;
}

.post-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
    transform: scale(1.01);
    transition: transform 0.8s var(--easing);
}

.post-hero__visual-wrap:hover .post-hero__img {
    transform: scale(1.04);
}

.post-hero__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--pattern-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--pattern-grid-line) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.75;
}

.post-hero__visual-shine {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
        linear-gradient(180deg, transparent 55%, rgba(6, 8, 26, 0.55) 100%);
}

.post-hero__visual-frame {
    position: absolute;
    inset: 10px;
    z-index: 4;
    pointer-events: none;
    border-radius: calc(var(--radius-xl) - 10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.post-hero__visual-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    left: auto;
    z-index: 5;
    padding: 7px 14px;
    background: rgba(8, 10, 28, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0.5;
    transition: opacity var(--t-base) var(--easing);
    pointer-events: none;
}

.post-hero__visual-wrap:hover .post-hero__visual-badge,
.post-hero__visual:hover .post-hero__visual-badge,
.post-hero:hover .post-hero__visual-badge {
    opacity: 0.8;
}

.post-hero__visual-badge.post-hero__badge--news {
    background: linear-gradient(135deg, rgba(255, 184, 77, 0.92), rgba(255, 140, 66, 0.92));
    border-color: rgba(255, 255, 255, 0.25);
}

.post-hero__visual-badge.post-hero__badge--video {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.9), rgba(124, 92, 255, 0.9));
    border-color: rgba(255, 255, 255, 0.25);
}

.post-hero__visual-badge.post-hero__badge--article,
.post-hero__visual-badge:not(.post-hero__badge--news):not(.post-hero__badge--video) {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.92), rgba(90, 63, 212, 0.92));
    border-color: rgba(255, 255, 255, 0.22);
}

.post-hero__visual--photo::before,
.post-hero__visual--photo .post-hero__visual-shine,
.post-hero__visual--photo .post-hero__visual-frame {
    display: none;
}

.post-hero__visual--photo {
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    display: block;
    background: var(--surface);
}

.post-hero__visual--photo .post-hero__img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    max-height: min(72vh, 640px);
    object-fit: contain;
    object-position: center center;
    vertical-align: top;
    transform: scale(1);
}

.post-hero__visual-wrap:hover .post-hero__visual--photo .post-hero__img {
    transform: scale(1.04);
}

html[data-theme="light"] .post-hero__visual {
    box-shadow:
        0 20px 50px rgba(30, 20, 80, 0.12),
        0 0 0 1px rgba(124, 92, 255, 0.08) inset;
}

html[data-theme="light"] .post-hero__visual-shine {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.35) 0%, transparent 40%),
        linear-gradient(180deg, transparent 60%, rgba(20, 16, 48, 0.2) 100%);
}

html[data-theme="light"] .post-hero__visual-frame {
    border-color: rgba(255, 255, 255, 0.55);
}

.post-hero__visual--1 {
    background:
        radial-gradient(circle at 30% 40%, rgba(124, 92, 255, 0.45), transparent 60%),
        linear-gradient(135deg, #2a1f4a, #15102a);
}

.post-hero__visual--2 {
    background:
        radial-gradient(circle at 70% 60%, rgba(0, 212, 255, 0.4), transparent 60%),
        linear-gradient(135deg, #1f2a4a, #10152a);
}

.post-hero__visual--3 {
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 184, 77, 0.35), transparent 60%),
        linear-gradient(135deg, #3a2a1f, #1f1510);
}

.post-hero__visual--4 {
    background:
        radial-gradient(circle at 60% 40%, rgba(255, 92, 200, 0.35), transparent 60%),
        linear-gradient(135deg, #3a1f3a, #1f102a);
}

/* ——— Текст статьи ——— */
.post-content {
    padding: 56px 0 72px;
    position: relative;
    z-index: 2;
}

.post-grid {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.post-grid:not(:has(.post-toc)) {
    grid-template-columns: minmax(0, 1fr);
}

.post-grid:not(:has(.post-toc)) .post-body {
    max-width: 780px;
    margin: 0 auto;
}

.post-toc {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: calc(100vh - var(--header-height) - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    scrollbar-width: thin;
}

.post-toc__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-3);
    margin-bottom: 8px;
    padding: 0 10px;
}

.post-toc a {
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-3);
    border-radius: var(--radius-sm);
    border-left: 2px solid transparent;
    transition: all var(--t-base) var(--easing);
    line-height: 1.35;
}

.post-toc a:hover {
    color: var(--text);
    background: var(--surface-strong);
}

.post-toc a.active {
    color: var(--text);
    border-left-color: var(--accent);
    background: var(--surface-strong);
}

.post-body {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* ——— Просмотры и реакции (после текста статьи) ——— */
.post-engagement {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
    padding: 24px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(6, 8, 26, 0.12);
}

html[data-theme="dark"] .post-engagement {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.post-engagement__main {
    min-width: 0;
}

.post-engagement__title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-2);
}

.post-engagement__reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-reaction {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition:
        transform 0.2s var(--easing),
        border-color 0.2s var(--easing),
        background 0.2s var(--easing),
        color 0.2s var(--easing),
        box-shadow 0.2s var(--easing);
}

.post-reaction:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    background: var(--surface-strong);
    color: var(--text);
}

.post-reaction.is-active {
    border-color: rgba(124, 92, 255, 0.45);
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(0, 212, 255, 0.08));
    color: var(--text);
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.2);
}

.post-reaction.is-spent,
.post-reaction:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.post-reaction.is-spent:hover,
.post-reaction:disabled:hover {
    transform: none;
    border-color: var(--border);
    background: var(--bg-1);
    color: var(--text-2);
}

.post-reaction__emoji {
    font-size: 20px;
    line-height: 1;
}

.post-reaction__count {
    font-variant-numeric: tabular-nums;
    min-width: 1ch;
}

.post-engagement__views {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.post-engagement__views-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--accent-2);
    line-height: 0;
}

.post-engagement__views-icon svg {
    display: block;
}

.post-block[id] {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.post-block h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.15;
}

.post-block h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin: 24px 0 12px;
}

.post-block p {
    color: var(--text-2);
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 16px;
}

.post-block p:last-child {
    margin-bottom: 0;
}

.post-block ul,
.post-block ol {
    margin: 16px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post-block ul li {
    position: relative;
    padding-left: 28px;
    color: var(--text-2);
    font-size: 17px;
    line-height: 1.6;
}

.post-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 14px;
    height: 8px;
    border-left: 2px solid var(--accent-2);
    border-bottom: 2px solid var(--accent-2);
    transform: rotate(-45deg);
}

.post-block ol {
    padding-left: 1.25em;
    color: var(--text-2);
    font-size: 17px;
    line-height: 1.6;
}

.post-block a {
    color: var(--accent-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-block a:hover {
    color: var(--accent);
}

.post-block blockquote {
    margin: 28px 0;
    padding: 24px 28px;
    border-left: 3px solid var(--accent);
    background: var(--surface);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
}

.post-block img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 24px 0;
    border: 1px solid var(--border);
}

/* ——— Похожие статьи ——— */
.post-related {
    padding: 0 0 80px;
    position: relative;
    z-index: 2;
}

.post-related:not(:has(.post-card)) {
    display: none;
}

.post-related .section-head {
    margin-bottom: 32px;
}

.post-related .blog__grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1200px) {
    .post-hero__layout {
        grid-template-columns: minmax(0, 1fr) clamp(280px, 36vw, 400px);
        gap: 36px;
    }

    .post-related .blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .post-hero__layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
        min-height: 0;
    }

    .post-hero__meta-rail {
        grid-column: 1;
        grid-row: auto;
        order: 1;
    }

    .post-hero__media {
        grid-column: 1;
        grid-row: auto;
        order: 2;
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
        position: relative;
        top: auto;
        max-height: none;
    }

    .post-hero__copy {
        grid-column: 1;
        grid-row: auto;
        order: 3;
        padding: 0;
    }

    .post-hero__layout:not(:has(.post-hero__meta-rail)) .post-hero__media {
        order: 1;
    }

    .post-hero__layout:not(:has(.post-hero__meta-rail)) .post-hero__copy {
        order: 2;
    }

    .post-hero__visual-wrap {
        min-height: 0;
    }

    .post-hero__visual:not(.post-hero__visual--photo) {
        max-height: 380px;
        min-height: 240px;
        aspect-ratio: 16 / 10;
        height: auto;
    }

    .post-hero__visual--photo .post-hero__img {
        max-height: none;
    }

    .post-hero__headline {
        padding-left: 16px;
        margin-bottom: 20px;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .post-block[id] {
        scroll-margin-top: calc(var(--header-height) + var(--detail-toc-bar-height, 52px) + 8px);
    }

    .post-toc {
        position: -webkit-sticky;
        position: sticky;
        top: var(--header-height);
        z-index: 30;
        flex-direction: row;
        flex-wrap: nowrap;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        padding: 12px var(--container-padding);
        gap: 8px;
        margin: 0 calc(-1 * var(--container-padding)) 4px;
        background: var(--mobile-nav-bg);
        backdrop-filter: blur(16px) saturate(160%);
        -webkit-backdrop-filter: blur(16px) saturate(160%);
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        box-shadow: 0 8px 28px rgba(6, 8, 26, 0.14);
        touch-action: pan-x;
        scrollbar-width: none;
    }

    .post-toc::-webkit-scrollbar {
        display: none;
    }

    .post-toc__title {
        display: none;
    }

    .post-toc a {
        white-space: nowrap;
        flex-shrink: 0;
        border-left: none;
        border-bottom: 2px solid transparent;
        touch-action: manipulation;
    }

    .post-toc a.active {
        border-left: none;
        border-bottom-color: var(--accent);
    }

    .post-related .blog__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .post-engagement {
        padding: 12px 14px;
    }

    .post-engagement__title {
        margin-bottom: 6px;
        font-size: 12px;
    }

    .post-engagement__reactions {
        gap: 5px;
    }

    .post-reaction,
    .post-engagement__views {
        min-height: 32px;
        padding: 4px 9px;
        font-size: 12px;
        gap: 5px;
    }

    .post-reaction__emoji {
        font-size: 15px;
    }

    .post-engagement__views-icon {
        width: 15px;
        height: 15px;
    }

    .post-engagement__views-icon svg {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 600px) {
    .post-hero {
        padding-bottom: 40px;
    }

    .post-hero__lead {
        font-size: 16px;
    }

    .post-content {
        padding: 40px 0 56px;
    }

    .post-engagement {
        padding: 10px 12px;
    }

    .post-engagement__title {
        margin-bottom: 5px;
        font-size: 11px;
    }

    .post-engagement__reactions {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        gap: 4px;
        padding-bottom: 2px;
    }

    .post-engagement__reactions::-webkit-scrollbar {
        display: none;
    }

    .post-reaction,
    .post-engagement__views {
        flex-shrink: 0;
        min-height: 30px;
        padding: 3px 8px;
        font-size: 11px;
        gap: 4px;
    }

    .post-reaction__emoji {
        font-size: 14px;
    }

    .post-engagement__views-icon {
        width: 14px;
        height: 14px;
    }

    .post-engagement__views-icon svg {
        width: 14px;
        height: 14px;
    }

    .post-block p,
    .post-block ul li,
    .post-block ol {
        font-size: 16px;
    }
}
