.post-shell {
    background: #f5f7fb;
    color: #172033;
    font-size: 15px;
}

.post-shell,
.post-shell * {
    box-sizing: border-box;
}

.post-shell__inner {
    width: min(100% - 32px, 1240px);
    margin: 0 auto;
    padding: 24px 0 64px;
}

.post-shell__inner--wide {
    width: min(100% - 32px, 1360px);
}

.post-shell__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 28px;
    align-items: start;
}

.post-shell__main,
.post-shell__aside {
    min-width: 0;
}

.post-shell__aside {
    position: sticky;
    top: 96px;
}

/* Article pages use a distraction-free, full-width reading layout on desktop.
   The sidebar remains available below the article on tablets and phones. */
@media (min-width: 992px) {
    .post-shell__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .post-shell__aside {
        display: none;
    }
}

.post-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 32px;
    align-items: center;
    margin: 18px 0 24px;
    padding: clamp(28px, 4vw, 54px);
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(34, 197, 94, .2), transparent 26rem),
        radial-gradient(circle at 90% 16%, rgba(59, 130, 246, .2), transparent 24rem),
        linear-gradient(135deg, #08111f 0%, #10233d 52%, #0f3f46 100%);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}

.post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .14;
    background-image:
        linear-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .22) 1px, transparent 1px);
    background-size: 44px 44px;
}

.post-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #fef3c7;
    background: rgba(255, 255, 255, .1);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.post-hero h1 {
    max-width: 880px;
    margin: 16px 0 10px;
    color: #fff;
    font-size: clamp(32px, 4.2vw, 58px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0;
}

.post-hero__subtitle {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(17px, 1.5vw, 22px);
    font-weight: 750;
}

.post-hero__description {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .66);
    line-height: 1.8;
}

.post-hero__actions,
.post-action-panel__actions,
.post-download-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.post-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.post-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: rgba(255, 255, 255, .76);
    background: rgba(255, 255, 255, .07);
    font-size: 13px;
    font-weight: 750;
}

.post-hero__visual {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06));
    box-shadow: 0 22px 58px rgba(0, 0, 0, .2);
    backdrop-filter: blur(18px);
}

.post-hero__visual img {
    max-width: calc(100% - 44px);
    max-height: 230px;
    border-radius: 20px;
    object-fit: cover;
}

.post-hero__visual-icon {
    width: 132px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    color: #facc15;
    background: rgba(255, 255, 255, .12);
    font-size: 58px;
}

.post-hero__status {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(14px);
}

.post-hero__status span {
    color: rgba(255, 255, 255, .66);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.post-hero__status strong {
    color: #fff;
}

.post-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    padding: 10px 16px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 850;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.post-btn:hover {
    transform: translateY(-2px);
}

.post-btn--primary {
    color: #102033;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    box-shadow: 0 16px 32px rgba(245, 158, 11, .22);
}

.post-btn--secondary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    box-shadow: 0 16px 34px rgba(37, 99, 235, .2);
}

.post-btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, .26);
    background: rgba(255, 255, 255, .08);
}

.post-action-panel,
.post-section-card,
.post-download-card,
.post-sidebar__card {
    border: 1px solid #e4edf7;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(15, 23, 42, .07);
}

.post-action-panel {
    padding: 22px;
}

.post-action-panel h2,
.post-download-card h2,
.post-sidebar__card h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.post-action-panel p,
.post-download-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

.post-action-panel__note {
    display: block;
    margin-top: 14px;
    color: #64748b;
    font-weight: 650;
}

.post-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.post-facts-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-facts-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-fact-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e4edf7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .055);
}

.post-fact-card i {
    color: #2563eb;
    font-size: 20px;
    margin-bottom: 10px;
}

.post-fact-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.post-fact-card strong {
    display: block;
    margin-top: 5px;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.post-fact-card small {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
}

.post-section-card {
    margin-bottom: 22px;
    overflow: hidden;
}

.post-section-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid #edf2f7;
    background: linear-gradient(180deg, #fff, #f8fafc);
}

.post-section-card__header span {
    display: block;
    margin-bottom: 4px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.post-section-card__header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 900;
}

.post-section-card__header h2 i {
    margin-right: 8px;
    color: #0f766e;
}

.post-rich-content {
    padding: 22px;
    color: #475569;
    line-height: 1.85;
}

.post-section-card--compact .post-rich-content {
    padding: 16px 18px;
}

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

.post-rich-content table {
    width: 100%;
    margin: 18px 0;
    border-collapse: collapse;
}

.post-rich-content th,
.post-rich-content td {
    padding: 12px;
    border: 1px solid #e5e7eb;
    vertical-align: top;
}

.post-rich-content th {
    color: #0f172a;
    background: #f8fafc;
}

.post-timeline {
    display: grid;
    gap: 12px;
}

.post-timeline__item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 14px;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    background: #f8fafc;
}

.post-timeline__date {
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 10px;
    text-align: center;
    font-weight: 900;
}

.post-timeline__item strong {
    display: block;
    color: #0f172a;
}

.post-timeline__item p {
    margin: 4px 0 0;
    color: #64748b;
}

.post-timeline__item > span {
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 850;
}

.post-download-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 22px;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, .12), transparent 14rem),
        #fff;
}

.post-download-card__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    font-size: 28px;
}

.post-related-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    color: #0f172a;
    text-decoration: none;
    background: #fff;
}

.post-related-card:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.post-related-card > i {
    color: #2563eb;
    margin-top: 2px;
}

.post-related-card span {
    min-width: 0;
    flex: 1;
}

.post-related-card strong {
    display: block;
    font-size: 14px;
    line-height: 1.45;
}

.post-related-card small {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

.post-related-card em {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #ecfdf5;
    color: #15803d;
    padding: 4px 8px;
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
}

.post-sidebar {
    display: grid;
    gap: 16px;
}

.post-sidebar__card {
    padding: 18px;
}

.post-sidebar__facts,
.post-sidebar__list {
    display: grid;
    gap: 10px;
}

.post-sidebar__facts div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #edf2f7;
}

.post-sidebar__facts div:last-child {
    border-bottom: 0;
}

.post-sidebar__facts span {
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
}

.post-sidebar__facts strong {
    color: #0f172a;
    text-align: right;
}

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

.post-share-row a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: #2563eb;
    text-decoration: none;
}

.post-share-row a:nth-child(3) {
    background: #16a34a;
}

.post-share-row a:nth-child(4) {
    background: #0284c7;
}

.post-faq {
    display: grid;
    gap: 12px;
}

.post-faq__item {
    border: 1px solid #edf2f7;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.post-faq__item summary {
    cursor: pointer;
    padding: 16px;
    color: #0f172a;
    font-weight: 850;
}

.post-faq__item div {
    padding: 0 16px 16px;
    color: #475569;
}

.post-shell__ad {
    margin: 0 0 18px;
}

.post-shell__ad:empty,
.post-shell__mobile-ad:empty {
    display: none;
}

.post-shell__mobile-ad {
    display: none;
}

.post-utility-bar {
    position: sticky;
    top: 76px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 20px;
    padding: 10px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.post-utility-bar__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 8px;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 850;
    white-space: nowrap;
}

.post-utility-bar__label i {
    color: #2563eb;
}

.post-utility-bar__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.post-utility-bar__actions a,
.post-utility-bar__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.post-utility-bar__actions a:hover,
.post-utility-bar__actions button:hover,
.post-utility-bar__actions button.is-copied,
.post-utility-bar__actions button.is-saved {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.post-utility-bar__actions button.is-saved i {
    font-family: "bootstrap-icons";
}

.post-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
}

.post-mobile-cta span,
.post-mobile-cta small {
    display: block;
}

.post-mobile-cta span {
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 850;
    line-height: 1.25;
}

.post-mobile-cta small {
    margin-top: 2px;
    color: #64748b;
    font-size: 0.74rem;
    line-height: 1.2;
}

.post-mobile-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 11px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

body.has-post-mobile-cta {
    padding-bottom: 82px;
}

@media (max-width: 991.98px) {
    .post-shell__grid,
    .post-hero {
        grid-template-columns: 1fr;
    }

    .post-shell__aside {
        position: static;
    }

    .post-hero__visual {
        min-height: 240px;
    }

    .post-facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-utility-bar {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }

    .post-utility-bar__actions {
        justify-content: stretch;
    }

    .post-utility-bar__actions a,
    .post-utility-bar__actions button {
        flex: 1 1 auto;
    }
}

@media (max-width: 767.98px) {
    .post-shell__inner {
        width: min(100% - 24px, 100%);
        padding-top: 16px;
    }

    .post-hero {
        padding: 24px;
        border-radius: 22px;
    }

    .post-hero h1 {
        font-size: 30px;
    }

    .post-hero__actions .post-btn,
    .post-action-panel__actions .post-btn,
    .post-download-card__actions .post-btn {
        width: 100%;
    }

    .post-hero__meta span {
        width: 100%;
        justify-content: center;
    }

    .post-facts-grid,
    .post-facts-grid--3,
    .post-facts-grid--2 {
        grid-template-columns: 1fr;
    }

    .post-section-card__header {
        padding: 18px;
    }

    .post-rich-content {
        padding: 18px;
    }

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

    .post-download-card {
        grid-template-columns: 1fr;
    }

    .post-mobile-cta {
        display: flex;
    }

    .post-shell__mobile-ad {
        display: block;
    }
}

@media (min-width: 768px) {
    body.has-post-mobile-cta {
        padding-bottom: 0;
    }
}
