.rcm-article-page {
    --rcm-article-topic-color: var(--topic-color, #7153b0);
    width: 100%;
    color: #000000;
}

.rcm-article-page .rcm-as__shell {
    max-width: 1260px;
    margin: 0 auto;
    padding: 24px 24px 56px;
}

.rcm-article-page .rcm-as__layout {
    display: grid;
    grid-template-columns: minmax(0, 792px) 300px;
    column-gap: 54px;
    align-items: start;
}

.rcm-article-page .rcm-as__main {
    min-width: 0;
}

.rcm-article-page .rcm-as__svg-line.rcm-section-border {
    width: 100%;
    margin-bottom: 40px;
    box-sizing: border-box;
}

/*
 * Keep desktop border geometry on article single (plugin mobile rules widen accent to 35%/45%).
 */
.rcm-article-page .rcm-as__svg-line.rcm-section-border {
    height: 6px !important;
}

.rcm-article-page .rcm-as__svg-line.rcm-section-border .rcm-section-border__accent {
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 6px !important;
}

.rcm-article-page .rcm-as__svg-line.rcm-section-border .rcm-section-border__accent svg {
    width: 48px !important;
    height: 6px !important;
}

.rcm-article-page .rcm-as__svg-line.rcm-section-border .rcm-section-border__track {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 6px !important;
}

.rcm-article-page .rcm-as__svg-line.rcm-section-border .rcm-section-border__track svg {
    width: 100% !important;
    height: 6px !important;
    display: block;
}

.rcm-article-page .rcm-as__title {
    margin: 0 0 24px;
    font-family: 'Manrope', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 32.6px;
    color: #3e286d;
}

.rcm-article-page .rcm-as__topics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px 20px;
    margin-bottom: 18px;
}

.rcm-article-page .rcm-as__topic-item {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    color: inherit;
    max-width: 100%;
}

.rcm-article-page .rcm-as__topic-item:hover .rcm-as__topic-item-name {
    text-decoration: underline;
}

/* Topic chip icon: Figma RCM 353:2250 — 29.147px disc, 14.573px radius */
.rcm-article-page .rcm-as__topic-item-icon {
    width: 29.147px;
    height: 29.147px;
    border-radius: 14.573px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.rcm-article-page .rcm-as__topic-item-icon img {
    width: 16px;
    height: 16px;
    max-width: 16px;
    max-height: 16px;
    object-fit: contain;
    object-position: center;
    display: block;
    flex-shrink: 0;
}

.rcm-article-page .rcm-as__topic-item-icon svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

/* Figma 353:2250 — 15px / 14.784px line, #6d757f, capitalize */
.rcm-article-page .rcm-as__topic-item-name {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 14.784px;
    color: #6d757f;
    text-transform: capitalize;
}

.rcm-article-page .rcm-as__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    width: 100%;
    max-width: none;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.rcm-article-page .rcm-as__meta-left {
    display: none;
}

.rcm-article-page .rcm-as__meta-actions {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.rcm-article-page .rcm-as__author,
.rcm-article-page .rcm-as__date {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.011em;
    color: #000000;
}

.rcm-article-page .rcm-as__action {
    border: 0;
    background: transparent;
    padding: 6px 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: #52525b;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: -0.084px;
    transition: color 0.2s ease, background 0.2s ease;
}

.rcm-article-page .rcm-as__action:hover {
    color: var(--rcm-article-topic-color);
}

.rcm-article-page .rcm-as__action svg {
    width: 16px;
    height: 16px;
    color: var(--rcm-article-topic-color);
    flex-shrink: 0;
}

.rcm-article-page .rcm-as__image {
    margin: 0 0 36px;
    border-radius: 12px;
    overflow: hidden;
}

.rcm-article-page .rcm-as__image img {
    width: 100%;
    display: block;
    aspect-ratio: 792 / 439;
    object-fit: cover;
}

.rcm-article-page .rcm-as__body,
.rcm-article-page .rcm-as__intro,
.rcm-article-page .rcm-as__section {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    color: #000000;
    margin-top: 60px;
}

.rcm-article-page .rcm-as__intro>*:first-child,
.rcm-article-page .rcm-as__section>*:first-child {
    margin-top: 0;
}

.rcm-article-page .rcm-as__intro p,
.rcm-article-page .rcm-as__section p {
    margin: 0 0 16px;
}

.rcm-article-page .rcm-as__intro>p:first-of-type::first-letter {
    float: left;
    margin: 2px 10px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 98px;
    font-weight: 700;
    line-height: 0.82;
    color: var(--rcm-article-topic-color);
}

.rcm-article-page .rcm-as__intro a,
.rcm-article-page .rcm-as__section a {
    color: #7153b0;
    text-decoration: underline;
}

.rcm-article-page .rcm-as__quote {
    position: relative;
    margin: 36px 0;
    padding: 30px 0;
    border-top: 1px solid #dfdfdf;
    border-bottom: 1px solid #dfdfdf;
}

.rcm-article-page .rcm-as__quote-mark {
    position: absolute;
    top: 5px;
    left: 0;
    color: #D3D3D3;
    text-align: justify;
    font-family: 'Inter', sans-serif;
    font-size: 98.667px;
    font-style: normal;
    font-weight: 700;
    line-height: 135.667px; /* 137.5% */
    text-transform: capitalize;
}

.rcm-article-page .rcm-as__quote-text {
    padding: 26px 0 0 59px;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: -0.006em;
    color: var(--rcm-article-topic-color);
}

.rcm-article-page .rcm-as__quote-text p {
    margin: 0;
}

.rcm-article-page .rcm-as__related {
    margin-top: 56px;
}

.rcm-article-page .rcm-as__related-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.rcm-article-page .rcm-as__related-ornament {
    width: 12px;
    height: 32px;
    background: var(--rcm-article-topic-color);
    flex: 0 0 12px;
    border-radius: 0 !important;
}

.rcm-article-page .rcm-as__related-title {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    color: #000000;
}

.rcm-article-page .rcm-as__related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 46px;
}

.rcm-article-page .rcm-as__related-card-title {
    margin: 0 0 8px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    letter-spacing: -0.014em;
}

.rcm-article-page .rcm-as__related-card-title a {
    color: #000000;
    text-decoration: none;
}

.rcm-article-page .rcm-as__related-card-meta,
.rcm-article-page .rcm-as__related-card-meta span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #000000;
}

.rcm-article-page .rcm-as__related-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.rcm-article-page .rcm-as__related-card-divider {
    width: 1px;
    height: 16px;
    background: #dfdfdf;
}

.rcm-article-page .rcm-as__pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 19px;
    margin-top: 48px;
    width: 100%;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.rcm-article-page .rcm-as__pager-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rcm-article-topic-color);
    text-decoration: none;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rcm-article-page .rcm-as__pager-btn:not(.is-disabled):hover {
    background: #f8f5ff;
    border-color: var(--rcm-article-topic-color);
}

.rcm-article-page .rcm-as__pager-btn.is-disabled,
.rcm-article-page .rcm-as__pager-btn:disabled {
    opacity: 1 !important;
    pointer-events: none;
    cursor: default;
    border-color: var(--rcm-article-topic-color, #7153b0) !important;
    color: var(--rcm-article-topic-color, #7153b0) !important;
    -webkit-text-fill-color: var(--rcm-article-topic-color, #7153b0);
    background: #ffffff !important;
    transition: none;
}

.rcm-article-page .rcm-as__pager-btn.is-disabled:hover,
.rcm-article-page .rcm-as__pager-btn.is-disabled:focus,
.rcm-article-page .rcm-as__pager-btn.is-disabled:focus-visible,
.rcm-article-page .rcm-as__pager-btn.is-disabled:active,
.rcm-article-page .rcm-as__pager-btn:disabled:hover,
.rcm-article-page .rcm-as__pager-btn:disabled:focus,
.rcm-article-page .rcm-as__pager-btn:disabled:focus-visible,
.rcm-article-page .rcm-as__pager-btn:disabled:active {
    background: #ffffff !important;
    border-color: var(--rcm-article-topic-color, #7153b0) !important;
    color: var(--rcm-article-topic-color, #7153b0) !important;
    -webkit-text-fill-color: var(--rcm-article-topic-color, #7153b0);
    box-shadow: none;
    outline: none;
}

/* Disabled buttons: UA styles break currentColor → SVG; stroke chevrons need explicit stroke */
.rcm-article-page .rcm-as__pager-btn.is-disabled .rcm-as__pager-icon,
.rcm-article-page .rcm-as__pager-btn:disabled .rcm-as__pager-icon {
    color: var(--rcm-article-topic-color, #7153b0) !important;
}

.rcm-article-page .rcm-as__pager-btn.is-disabled .rcm-as__pager-icon svg path,
.rcm-article-page .rcm-as__pager-btn:disabled .rcm-as__pager-icon svg path {
    fill: none !important;
    stroke: var(--rcm-article-topic-color, #7153b0) !important;
}

.rcm-article-page .rcm-as__pager-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.rcm-article-page .rcm-as__pager-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.rcm-article-page .rcm-as__bottom-ad-wrap {
    margin-top: 64px;
    width: 100%;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.rcm-article-page .rcm-as__bottom-ad {
    min-height: 70px;
    border-radius: 12px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.rcm-article-page .rcm-as__bottom-ad--placeholder span,
.rcm-article-page .rcm-as__ad-placeholder span {
    font-family: 'Inter', sans-serif;
    font-size: 28.59px;
    font-weight: 500;
    line-height: 1;
    color: #000000;
    text-transform: uppercase;
}

.rcm-article-page .rcm-as__ad-label {
    font-family: 'Inter', sans-serif;
    font-size: 28.59px;
    font-weight: 500;
    line-height: 1;
    color: #000000;
    text-transform: uppercase;
}

.rcm-article-page .rcm-as__sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rcm-article-page .rcm-as__ad {
    width: 300px;
    max-width: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.rcm-article-page .rcm-as__ad--300-600 {
    min-height: 600px;
}

.rcm-article-page .rcm-as__ad--300-250 {
    min-height: 250px;
}

.rcm-article-page .rcm-as__ad-placeholder {
    min-height: inherit;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1180px) {
    .rcm-article-page .rcm-as__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Sidebar rail is emptied by article-single-shortcode.js — hide the empty column. */
    .rcm-article-page .rcm-as__sidebar.rcm-mobile-ad-parent--empty {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    /* Fallback if script does not run: stack the three units full-width. */
    .rcm-article-page .rcm-as__sidebar:not(.rcm-mobile-ad-parent--empty) {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 40px;
    }

    .rcm-article-page .rcm-as__ad {
        width: 100%;
    }

    /* In-flow slots: same .rcm-as__ad nodes as desktop, full main column width. */
    .rcm-article-page .rcm-as__mobile-inline-ad {
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
        box-sizing: border-box;
    }

    /* Leaderboard strip — same footprint as .rcm-as__bottom-ad (70px, 12px radius). */
    .rcm-article-page .rcm-as__mobile-inline-ad > .rcm-as__ad,
    .rcm-article-page .rcm-as__mobile-inline-ad > .rcm-as__ad--300-600 {
        width: 100% !important;
        max-width: min(920px, 100%) !important;
        margin-left: auto;
        margin-right: auto;
        height: auto !important;
        min-height: 70px;
        max-height: 70px;
        aspect-ratio: unset;
        padding: 0;
        box-sizing: border-box;
        border-radius: 12px;
        overflow: hidden;
    }

    .rcm-article-page .rcm-as__mobile-inline-ad .rcm-as__ad-label {
        font-size: 28.59px !important;
        font-weight: 500 !important;
        line-height: 1 !important;
        text-transform: uppercase !important;
    }

    .rcm-article-page .rcm-as__mobile-inline-ad iframe,
    .rcm-article-page .rcm-as__mobile-inline-ad img,
    .rcm-article-page .rcm-as__mobile-inline-ad ins {
        max-width: 100% !important;
        max-height: 70px !important;
        width: auto !important;
        height: auto !important;
        margin-left: auto;
        margin-right: auto;
        display: block;
        object-fit: contain;
    }

    .rcm-article-page .rcm-as__bottom-ad-wrap {
        max-width: none;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .rcm-article-page .rcm-as__shell {
        padding: 20px 16px 40px;
    }

    .rcm-article-page .rcm-as__title {
        font-size: 26px;
    }

    .rcm-article-page .rcm-as__meta {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
        padding: 16px;
        margin-bottom: 24px;
        background: #f8f9fa;
        border-radius: 8px;
        box-sizing: border-box;
        max-width: none;
    }

    .rcm-article-page .rcm-as__meta-actions {
        gap: 8px;
    }

    .rcm-article-page .rcm-as__action {
        padding: 8px 16px;
        min-height: 36px;
        background: #ffffff;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
        font-size: 13px;
        line-height: 1.2;
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .rcm-article-page .rcm-as__action:hover {
        background: var(--rcm-article-topic-color, #7153b0);
        border-color: var(--rcm-article-topic-color, #7153b0);
        color: #ffffff;
    }

    .rcm-article-page .rcm-as__action:hover svg {
        color: #ffffff;
    }

    .rcm-article-page .rcm-as__action svg {
        width: 14px;
        height: 14px;
    }

    .rcm-article-page .rcm-as__quote-text {
        padding-left: 48px;
        font-size: 18px;
        line-height: 26px;
    }

    .rcm-article-page .rcm-as__related-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .rcm-article-page .rcm-as__mobile-inline-ad {
        margin: 8px 0;
    }

    .rcm-article-page .rcm-as__mobile-inline-ad > .rcm-as__ad,
    .rcm-article-page .rcm-as__mobile-inline-ad > .rcm-as__ad--300-600 {
        min-height: 70px;
        max-height: 70px;
    }

    .rcm-article-page .rcm-as__mobile-inline-ad iframe,
    .rcm-article-page .rcm-as__mobile-inline-ad img,
    .rcm-article-page .rcm-as__mobile-inline-ad ins {
        max-height: 70px !important;
    }
}

@media (max-width: 480px) {
    .rcm-article-page .rcm-as__meta {
        padding: 12px;
        gap: 10px;
    }

    .rcm-article-page .rcm-as__action {
        padding: 6px 12px;
        min-height: 32px;
        font-size: 12px;
    }

    .rcm-article-page .rcm-as__intro>p:first-of-type::first-letter {
        font-size: 72px;
        margin-right: 8px;
    }

    .rcm-article-page .rcm-as__pager {
        max-width: none;
        padding: 0 4px;
    }
}
