/* ==========================================================================
   Article Page — Layout, Typography, Mobile & RTL
   Scoped to .page-shell--article so nothing bleeds into other page types.
   All tokens defined in layout-cleanup.css :root are available here.
   ========================================================================== */

/* ── Reading column ─────────────────────────────────────────────────────── */
.page-shell--article .article-reading-column {
    max-width: 760px;
    width: 100%;
}

/* On desktop the grid already constrains width via col-lg-8.
   On mobile the column is full-width so article-reading-column is also full. */
@media (max-width: 991px) {
    .page-shell--article .article-reading-column {
        max-width: 100%;
    }
}

/* ── Overflow protection ────────────────────────────────────────────────── */
.page-shell--article .article-reading-column,
.page-shell--article .article-body,
.page-shell--article .ck-content {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.page-shell--article .ck-content img,
.page-shell--article .ck-content iframe,
.page-shell--article .ck-content table {
    max-width: 100%;
    height: auto;
}

/* ── Article typography ─────────────────────────────────────────────────── */
.page-shell--article .article-body .ck-content {
    font-size: var(--site-reading-size, 1.0625rem);
    line-height: var(--site-reading-line-height, 1.95);
    color: var(--k24-ink, #071325);
}

.page-shell--article .article-body .ck-content p {
    margin-block-end: 1.35em;
}

.page-shell--article .article-body .ck-content h2 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 700;
    margin-block: 2em 0.75em;
    line-height: 1.4;
    color: var(--k24-ink, #071325);
}

.page-shell--article .article-body .ck-content h3 {
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    font-weight: 700;
    margin-block: 1.75em 0.6em;
    line-height: 1.45;
    color: var(--k24-ink, #071325);
}

.page-shell--article .article-body .ck-content blockquote {
    border-inline-start: 4px solid var(--k24-crimson, #ef3f48);
    padding-inline-start: 1.25rem;
    padding-block: 0.5rem;
    margin-inline: 0;
    margin-block: 1.5em;
    color: #374151;
    font-style: normal;
}

.page-shell--article .article-body .ck-content ul,
.page-shell--article .article-body .ck-content ol {
    padding-inline-start: 1.75rem;
    margin-block-end: 1.25em;
}

.page-shell--article .article-body .ck-content li {
    margin-block-end: 0.4em;
    line-height: var(--site-reading-line-height, 1.95);
}

.page-shell--article .article-body .ck-content a {
    color: var(--k24-crimson, #ef3f48);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.page-shell--article .article-body .ck-content a:hover {
    text-decoration-thickness: 2px;
}

/* ── Excerpt ────────────────────────────────────────────────────────────── */
.page-shell--article .article-excerpt {
    margin-block-end: 1.5rem;
}

.page-shell--article .article-excerpt p {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.7;
    color: #374151;
    font-weight: 500;
}

/* ── Tags ───────────────────────────────────────────────────────────────── */
.page-shell--article .article-tags {
    margin-block: 1.5rem;
}

.page-shell--article .article-tags .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-shell--article .article-tags .tag-cloud-link {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--site-border, rgba(17,24,39,.12));
    border-radius: 4px;
    font-size: 0.8125rem;
    color: var(--site-muted, #6b7280);
    text-decoration: none;
    transition: border-color .15s, color .15s;
    white-space: nowrap;
}

.page-shell--article .article-tags .tag-cloud-link:hover {
    border-color: var(--k24-crimson, #ef3f48);
    color: var(--k24-crimson, #ef3f48);
}

/* ── Source attribution ─────────────────────────────────────────────────── */
.page-shell--article .article-source {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-block: 1rem;
    font-size: 0.875rem;
    color: var(--site-muted, #6b7280);
}

.page-shell--article .article-source__label {
    font-weight: 600;
    color: var(--k24-ink, #071325);
}

.page-shell--article .article-source__link {
    color: var(--k24-crimson, #ef3f48);
    text-decoration: none;
    font-weight: 500;
}

.page-shell--article .article-source__link:hover {
    text-decoration: underline;
}

/* ── Share toolbar — mobile ─────────────────────────────────────────────── */
@media (max-width: 767px) {
    .page-shell--article .article-toolbar {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .page-shell--article .article-toolbar__share {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-block-start: 0.5rem;
    }

    /* Float-based share in non-default layouts */
    .page-shell--article .single-social-share {
        float: none !important;
        clear: both;
        margin-block: 1rem;
    }

    .page-shell--article .article-share-list {
        float: none !important;
        display: flex !important;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
    }

    .page-shell--article .article-share-list .list-inline-item {
        margin: 0;
    }
}

/* ── Author box ─────────────────────────────────────────────────────────── */
.page-shell--article .article-author-box {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem;
    margin-block: 1.5rem;
    border: 1px solid var(--site-border, rgba(17,24,39,.12));
}

.page-shell--article .article-author-box .author-image {
    flex: 0 0 auto;
    margin: 0;
}

.page-shell--article .article-author-box .avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

@media (max-width: 767px) {
    .page-shell--article .article-author-box {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem;
        margin-block: 1.25rem;
    }

    .page-shell--article .article-author-box .avatar {
        width: 48px;
        height: 48px;
    }

    .page-shell--article .article-author-box .author-info h4 {
        font-size: 0.9375rem;
        margin-block-end: 0.4rem;
    }

    .page-shell--article .article-author-box .author-info p {
        font-size: 0.8125rem;
        line-height: 1.6;
    }

    /* Remove excess top margin that creates dead space */
    .page-shell--article .bt-1.border-color-1.mt-30.mb-30 {
        margin-block: 1rem !important;
    }
}

/* ── Related posts ──────────────────────────────────────────────────────── */
.page-shell--article .article-related {
    margin-block-start: 2.5rem;
}

.page-shell--article .related-posts__heading {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    font-weight: 700;
    border-inline-start: 4px solid var(--k24-crimson, #ef3f48);
    padding-inline-start: 0.75rem;
    margin-block-end: 1.5rem;
    line-height: 1.3;
}

.page-shell--article .related-posts__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Individual related card ────────────────────────────────────────────── */
.page-shell--article .related-card {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding-block: 1.125rem;
    border-bottom: 1px solid var(--site-border, rgba(17,24,39,.1));
    text-decoration: none;
}

.page-shell--article .related-card:first-child {
    border-top: 1px solid var(--site-border, rgba(17,24,39,.1));
}

/* Thumbnail */
.page-shell--article .related-card__thumb {
    flex: 0 0 42%;
    max-width: 42%;
    overflow: hidden;
    border-radius: 6px;
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    align-self: flex-start;
}

.page-shell--article .related-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-shell--article .related-card:hover .related-card__img {
    transform: scale(1.04);
}

/* Video / external badge */
.page-shell--article .related-card__badge {
    position: absolute;
    inset-block-start: 0.4rem;
    inset-inline-end: 0.4rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
}

.page-shell--article .related-card__badge--video {
    background: var(--k24-crimson, #ef3f48);
}

.page-shell--article .related-card__badge--external {
    background: rgba(17,24,39,.55);
}

/* Content column */
.page-shell--article .related-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    justify-content: center;
}

/* Category pill */
.page-shell--article .related-card__category {
    display: inline-block;
    align-self: flex-start;
    padding: 0.15rem 0.55rem;
    background: var(--k24-crimson, #ef3f48);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: opacity 0.15s;
}

.page-shell--article .related-card__category:hover {
    opacity: 0.85;
}

/* Title */
.page-shell--article .related-card__title {
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-shell--article .related-card__title a {
    color: var(--k24-ink, #071325);
    text-decoration: none;
    transition: color 0.15s;
}

.page-shell--article .related-card__title a:hover {
    color: var(--k24-crimson, #ef3f48);
}

/* Date */
.page-shell--article .related-card__date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--site-muted, #6b7280);
    margin-block-start: auto;
}

.page-shell--article .related-card__date-icon {
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* ── Mobile tweaks ───────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .page-shell--article .related-card__thumb {
        flex: 0 0 38%;
        max-width: 38%;
    }

    .page-shell--article .related-card__title {
        -webkit-line-clamp: 2;
        font-size: 0.875rem;
    }

    .page-shell--article .related-card {
        gap: 0.75rem;
        padding-block: 0.875rem;
    }
}

/* ── Ad slot label ──────────────────────────────────────────────────────── */
.page-shell--article .article-ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.page-shell--article .sidebar-ad-slot {
    align-items: stretch;
}

.article-ad-label {
    display: block;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--site-muted, #9ca3af);
    text-align: center;
    line-height: 1;
}

/* ── Inline ad spacing ──────────────────────────────────────────────────── */
.page-shell--article .article-inline-ad {
    margin-block: 2rem;
    text-align: center;
}

/* ── Sidebar — disable sticky on mobile ────────────────────────────────── */
@media (max-width: 991px) {
    .page-shell--article .primary-sidebar.sticky-sidebar {
        position: static !important;
        top: auto !important;
        height: auto !important;
    }
}

/* ── RTL alignment ──────────────────────────────────────────────────────── */
[dir="rtl"] .page-shell--article .article-body .ck-content blockquote {
    border-inline-start: none;
    border-inline-end: 4px solid var(--k24-crimson, #ef3f48);
    padding-inline-start: 0;
    padding-inline-end: 1.25rem;
}

[dir="rtl"] .page-shell--article .article-tags .tags {
    direction: rtl;
}

[dir="rtl"] .page-shell--article .article-source {
    direction: rtl;
}

/* ==========================================================================
   Recently Viewed Posts band — scoped to the article page
   ========================================================================== */

/* ── Band wrapper ────────────────────────────────────────────────────────── */
.page-shell--article .recently-viewed-band {
    /* Break out of .container to span full container width */
    margin-inline: -15px;
    padding-inline: 15px;
    padding-block: 2.25rem 2.75rem;
    margin-block-start: 2.5rem;
    background: #f8f9fb;
    border-top: 1px solid var(--site-border, rgba(17,24,39,.08));
}

/* ── Section heading ─────────────────────────────────────────────────────── */
.rv-section__heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-block-end: 1.25rem;
}

.rv-section__icon {
    display: flex;
    align-items: center;
    color: var(--k24-crimson, #ef3f48);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.rv-section__title {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
    color: var(--k24-ink, #071325);
    margin: 0;
    line-height: 1.3;
}

/* ── Card strip — desktop grid ───────────────────────────────────────────── */
.rv-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.125rem;
}

/* ── Individual card ─────────────────────────────────────────────────────── */
.rv-card {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 16 / 10;
    background: #1f2937;
    box-shadow: 0 2px 8px rgba(7,19,37,.10);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.rv-card:hover {
    box-shadow: 0 6px 20px rgba(7,19,37,.18);
    transform: translateY(-2px);
}

/* Media layer */
.rv-card__media {
    position: absolute;
    inset: 0;
}

.rv-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.rv-card:hover .rv-card__img {
    transform: scale(1.05);
}

/* Gradient overlay — bottom-heavy so text always readable */
.rv-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 30%,
        rgba(7, 19, 37, 0.55) 60%,
        rgba(7, 19, 37, 0.88) 100%
    );
}

/* Play badge (video posts) */
.rv-card__play {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.rv-card:hover .rv-card__play {
    background: var(--k24-crimson, #ef3f48);
}

/* External link badge */
.rv-card__ext-badge {
    position: absolute;
    inset-block-start: 0.5rem;
    inset-inline-end: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 4px;
    background: rgba(7,19,37,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.85);
    font-size: 0.75rem;
}

/* Text info layer — sits over the gradient */
.rv-card__info {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 0.75rem 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.rv-card__cat {
    display: inline-block;
    align-self: flex-start;
    padding: 0.1rem 0.45rem;
    background: var(--k24-crimson, #ef3f48);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.rv-card__title {
    font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
    font-weight: 700;
    line-height: 1.42;
    color: #fff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.rv-card__date {
    font-size: 0.6875rem;
    color: rgba(255,255,255,.65);
    line-height: 1;
}

/* ── Tablet: 2-column grid ───────────────────────────────────────────────── */
@media (max-width: 991px) {
    .rv-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Mobile: horizontal scroll strip ────────────────────────────────────── */
@media (max-width: 575px) {
    .page-shell--article .recently-viewed-band {
        /* On mobile, extend to the full viewport edge */
        margin-inline: -15px;
        padding-inline: 0;
        padding-block: 1.75rem 2rem;
    }

    .rv-section__heading {
        padding-inline: 15px;
    }

    .rv-strip {
        display: flex;
        gap: 0.75rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        padding-inline: 15px;
        /* Trailing padding so the last card doesn't clip */
        padding-inline-end: 15px;
    }

    @supports (scrollbar-width: none) {
        .rv-strip {
            scrollbar-width: none;
        }
    }

    .rv-strip::-webkit-scrollbar {
        display: none;
    }

    .rv-strip__item {
        flex: 0 0 75vw;
        max-width: 75vw;
        scroll-snap-align: start;
    }

    .rv-card {
        aspect-ratio: 4 / 3;
    }

    [dir="rtl"] .rv-strip {
        direction: ltr;
    }

    [dir="rtl"] .rv-card {
        direction: rtl;
    }
}

/* ==========================================================================
   Related Posts — Grid layout (overlay cards, 2-col)
   ========================================================================== */

.rp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.rp-grid__card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(7,19,37,.09);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.rp-grid__card:hover {
    box-shadow: 0 6px 20px rgba(7,19,37,.17);
    transform: translateY(-2px);
}

.rp-grid__link {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    text-decoration: none;
    background: #1f2937;
}

.rp-grid__media {
    position: absolute;
    inset: 0;
}

.rp-grid__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.rp-grid__card:hover .rp-grid__img {
    transform: scale(1.05);
}

.rp-grid__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 30%,
        rgba(7, 19, 37, 0.55) 60%,
        rgba(7, 19, 37, 0.90) 100%
    );
}

.rp-grid__play {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: background 0.2s;
}

.rp-grid__card:hover .rp-grid__play {
    background: var(--k24-crimson, #ef3f48);
}

.rp-grid__info {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 0.75rem 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rp-grid__cat {
    display: inline-block;
    align-self: flex-start;
    padding: 0.1rem 0.4rem;
    background: var(--k24-crimson, #ef3f48);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 2px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rp-grid__title {
    font-size: clamp(0.8rem, 1.1vw, 0.9375rem);
    font-weight: 700;
    line-height: 1.38;
    color: #fff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.rp-grid__date {
    font-size: 0.6875rem;
    color: rgba(255,255,255,.65);
    line-height: 1;
}

@media (max-width: 480px) {
    .rp-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Related Posts — Numbered list layout
   ========================================================================== */

.rp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rp-list__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-block: 0.875rem;
    border-bottom: 1px solid var(--site-border, rgba(17,24,39,.08));
}

.rp-list__item:last-child {
    border-bottom: none;
}

.rp-list__num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--k24-crimson, #ef3f48);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-block-start: 0.1rem;
}

.rp-list__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.rp-list__cat {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--k24-crimson, #ef3f48);
}

.rp-list__title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--k24-ink, #071325);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}

.rp-list__title:hover {
    color: var(--k24-crimson, #ef3f48);
}

.rp-list__date {
    font-size: 0.6875rem;
    color: var(--k24-muted, #6b7280);
    line-height: 1;
}

/* ==========================================================================
   Recently Viewed — Horizontal scroll strip (all breakpoints)
   ========================================================================== */

.rv-strip--scroll {
    display: flex;
    gap: 0.875rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Hide scrollbar for IE, Edge */
    -ms-overflow-style: none;
    padding-block-end: 0.25rem;
}

@supports (scrollbar-width: none) {
    .rv-strip--scroll {
        /* Hide scrollbar for Firefox */
        scrollbar-width: none;
    }
}

.rv-strip--scroll::-webkit-scrollbar {
    display: none;
}

.rv-strip--scroll .rv-strip__item--fixed {
    flex: 0 0 280px;
    max-width: 280px;
    scroll-snap-align: start;
}

@media (max-width: 575px) {
    .rv-strip--scroll .rv-strip__item--fixed {
        flex: 0 0 72vw;
        max-width: 72vw;
    }
}

/* ==========================================================================
   Recently Viewed — Compact list layout
   ========================================================================== */

.rv-compact {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rv-compact__item {
    border-bottom: 1px solid var(--site-border, rgba(17,24,39,.08));
}

.rv-compact__item:last-child {
    border-bottom: none;
}

.rv-compact__card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding-block: 0.75rem;
    text-decoration: none;
    transition: opacity 0.15s;
}

.rv-compact__card:hover {
    opacity: 0.85;
}

.rv-compact__thumb {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #1f2937;
}

.rv-compact__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.rv-compact__card:hover .rv-compact__img {
    transform: scale(1.05);
}

.rv-compact__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    background: rgba(7,19,37,.35);
}

.rv-compact__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.rv-compact__cat {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--k24-crimson, #ef3f48);
    white-space: nowrap;
}

.rv-compact__title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.42;
    color: var(--k24-ink, #071325);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rv-compact__date {
    font-size: 0.6875rem;
    color: var(--k24-muted, #6b7280);
    line-height: 1;
}

/* ============================================================
   ARTICLE BODY — CSS VARIABLE DRIVEN TYPOGRAPHY
   ============================================================ */
.article-reading-column .ck-content,
.article-reading-column .entry-main-content {
    font-size: var(--article-font-size, 17px);
    line-height: var(--article-line-height, 1.8);
}

.article-reading-column .article-reading-column-inner,
.article-reading-column > .entry-main-content {
    max-width: var(--article-max-width, 760px);
}

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    height: 3px;
    width: 0%;
    background: var(--k24-crimson, #d71920);
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ============================================================
   AUTHOR BOX — MINIMAL VARIANT
   ============================================================ */
.author-bio--minimal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--k24-border, #e5e7eb);
    border-bottom: 1px solid var(--k24-border, #e5e7eb);
    margin-bottom: 1.5rem;
}

.author-bio--minimal .author-bio__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.author-bio--minimal .avatar--small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-bio__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--k24-ink, #071325);
}

/* ============================================================
   TAGS — HASHTAG VARIANT
   ============================================================ */
.tags--hashtag .tag-cloud-link {
    background: none;
    border: none;
    padding: 0 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--k24-crimson, #d71920);
    font-weight: 600;
    border-radius: 0;
    text-decoration: none;
}

.tags--hashtag .tag-cloud-link:hover {
    text-decoration: underline;
    color: var(--k24-ink, #071325);
}

/* ============================================================
   RELATED POSTS — EDITORIAL LAYOUT
   ============================================================ */
.rp-editorial {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rp-editorial__hero {
    width: 100%;
}

.rp-editorial__hero-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.rp-editorial__hero-media {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.rp-editorial__hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rp-editorial__hero-link:hover .rp-editorial__hero-media img {
    transform: scale(1.03);
}

.rp-editorial__hero-info {
    padding: 0.75rem 0 0.25rem;
}

.rp-editorial__cat {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--k24-crimson, #d71920);
    margin-bottom: 0.375rem;
}

.rp-editorial__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.375rem;
    color: var(--k24-ink, #071325);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rp-editorial__date {
    font-size: 0.6875rem;
    color: var(--k24-muted, #6b7280);
}

.rp-editorial .related-posts__list--horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

/* ============================================================
   RECENTLY VIEWED — TEXT RAIL LAYOUT
   ============================================================ */
.rv-text-rail {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rv-text-rail__item {
    border-bottom: 1px solid var(--k24-border, #e5e7eb);
}

.rv-text-rail__item:last-child {
    border-bottom: none;
}

.rv-text-rail__link {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    text-decoration: none;
    color: inherit;
}

.rv-text-rail__link:hover .rv-text-rail__title {
    color: var(--k24-crimson, #d71920);
}

.rv-text-rail__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--k24-ink, #071325);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.rv-text-rail__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rv-text-rail__cat {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--k24-crimson, #d71920);
}

.rv-text-rail__title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.42;
    color: var(--k24-ink, #071325);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

/* ============================================================
   OVERLAY HEADER
   ============================================================ */
.single-header-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1.875rem;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.single-header-overlay__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.single-header-overlay__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-header-overlay__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.72) 80%,
        rgba(0, 0, 0, 0.88) 100%
    );
    z-index: 1;
}

.single-header-overlay__content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.75rem 1.5rem;
    color: #fff;
}

.single-header-overlay__content .post-cat {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
}

.single-header-overlay__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 0.875rem;
}

.single-header-overlay__title a {
    color: inherit;
    text-decoration: none;
}

.single-header-overlay__title a:hover {
    opacity: 0.9;
}

.single-header-overlay__meta {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0;
    margin-bottom: 0.75rem;
}

.single-header-overlay__meta .post-by a,
.single-header-overlay__meta .post-by span {
    color: #fff;
    font-weight: 600;
}

.single-header-overlay__meta .has-dot::before {
    color: rgba(255, 255, 255, 0.5);
}

.single-header-overlay__share {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.single-header-overlay__share .share-btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.single-header-overlay__share .share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 767px) {
    .single-header-overlay {
        min-height: 280px;
        border-radius: 0;
    }

    .single-header-overlay__content {
        padding: 1.25rem 1rem 1rem;
    }
}

/* ============================================================
   ARTICLE META DISPLAY MODIFIERS
   ============================================================ */

/* Compact: hide author and views, keep date + read time */
.article-meta--compact .post-by,
.article-meta--compact .hit-count:not(.time-related) {
    display: none !important;
}

/* More precise: target the views span specifically */
.entry-header-1.article-meta--compact .hit-count {
    display: none !important;
}

.entry-header-1.article-meta--compact .time-reading {
    display: inline-flex !important;
}

/* Date-only: hide author, read time, and views */
.article-meta--date-only .post-by,
.article-meta--date-only .time-reading,
.article-meta--date-only .hit-count {
    display: none !important;
}

/* ============================================================
   FEATURED IMAGE RATIO CLASSES
   ============================================================ */
.ratio-4-3 .media-surface,
.ratio-4-3 .entry-thumb-url {
    aspect-ratio: 4/3 !important;
}

.ratio-1-1 .media-surface,
.ratio-1-1 .entry-thumb-url {
    aspect-ratio: 1/1 !important;
}

.ratio-hidden .media-surface,
.ratio-hidden .entry-thumb-url,
.ratio-hidden .post-thumb {
    display: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
    .rp-editorial .related-posts__list--horizontal {
        grid-template-columns: 1fr;
    }
}
