.post-page {
    --post-line: rgba(255, 255, 255, 0.1);
    --post-tint: rgba(255, 255, 255, 0.035);
    --post-text: rgba(255, 255, 255, 0.72);
    --post-strong: #fff;
}

.post-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 30rem;
    overflow: hidden;
    border-radius: 1.5rem;
    background-position: center;
    background-size: cover;
}

.post-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.15) 0%, rgba(11, 15, 25, 0.55) 45%, rgba(11, 15, 25, 0.95) 100%);
}

.post-hero-body {
    position: relative;
    max-width: 58rem;
    padding: 3rem;
}

.post-hero .landing-kicker {
    color: #fff;
}

.post-hero-title {
    margin-bottom: 1rem;
    color: #fff;
    font-size: calc(1.7rem + 2vw);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: balance;
}

.post-hero-lead {
    max-width: 46rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    line-height: 1.55;
}

.post-hero-date {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    font-weight: 600;
}

.post-main {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
}

.post-body {
    min-width: 0;
    color: var(--post-text);
    font-size: 1.05rem;
    line-height: 1.7;
}

.post-body h2 {
    margin-top: 4.5rem;
    margin-bottom: 1.25rem;
    color: var(--post-strong);
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    scroll-margin-top: 6rem;
}

.post-body h3 {
    color: var(--post-strong);
    font-size: 1.2rem;
    font-weight: 700;
    scroll-margin-top: 6rem;
}

.post-body strong,
.post-body b {
    color: var(--post-strong);
}

.post-body :not(pre) > code {
    padding: 0.1rem 0.35rem;
    border-radius: 0.3rem;
    background: rgba(255, 255, 255, 0.07);
    color: #c7d2fe;
    font-size: 0.875em;
}

.post-body a:not(.btn) {
    color: #a5b4fc;
}

.post-body a:not(.btn):hover {
    color: #fff;
}

.post-lede {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.3rem;
    line-height: 1.55;
}

.post-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-right: 0.7rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #d946ef);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    vertical-align: 0.15rem;
}

.post-toc {
    padding-left: 1rem;
    border-left: 1px solid var(--post-line);
}

.post-toc .nav-link {
    color: var(--si-gray-500, rgba(255, 255, 255, 0.55));
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
}

.post-toc .nav-link:hover,
.post-toc .nav-link.active {
    color: #fff;
}

.post-code {
    margin: 1.25rem 0 1.5rem;
    overflow: hidden;
    border: 1px solid var(--post-line);
    border-radius: 0.85rem;
    background: rgba(11, 15, 25, 0.8);
}

.post-code-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0.55rem 0.45rem 1rem;
    border-bottom: 1px solid var(--post-line);
    background: var(--post-tint);
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--landing-mono);
    font-size: 0.75rem;
}

.post-code-bar .landing-copy {
    position: static;
    flex: none;
    box-shadow: none;
}

.blog-content pre.post-code-body {
    margin: 0;
    tab-size: 4;
    padding: 1rem 1.15rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #e0e7ff;
    font-size: 0.84rem;
    line-height: 1.6;
}

.post-callout {
    display: flex;
    gap: 0.9rem;
    margin: 1.75rem 0;
    padding: 1.15rem 1.25rem;
    border: 1px solid;
    border-radius: 0.9rem;
}

.post-callout > i {
    flex: none;
    font-size: 1.5rem;
    line-height: 1.6;
}

.post-callout > div > :last-child {
    margin-bottom: 0;
}

.post-callout-info {
    border-color: rgba(129, 140, 248, 0.45);
    background: rgba(99, 102, 241, 0.1);
}

.post-callout-info > i {
    color: #a5b4fc;
}

.post-callout-warn {
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(245, 158, 11, 0.09);
}

.post-callout-warn > i {
    color: #fbbf24;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

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

.post-tile {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid var(--post-line);
    border-radius: 1rem;
    background: var(--post-tint);
    font-size: 0.95rem;
    line-height: 1.55;
}

.post-tile-accent {
    border-color: rgba(129, 140, 248, 0.45);
    background: radial-gradient(80% 90% at 100% 0%, rgba(99, 102, 241, 0.22), transparent 70%), var(--post-tint);
}

.post-tile > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.85rem;
    border-radius: 0.7rem;
    background: rgba(99, 102, 241, 0.16);
    color: #a5b4fc;
    font-size: 1.3rem;
}

.post-tile > :last-child {
    margin-bottom: 0;
}

.post-tile-title {
    margin-bottom: 0.5rem;
    color: var(--post-strong);
    font-size: 1.05rem;
    font-weight: 700;
}

.post-tile-meta {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid var(--post-line);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
}

.post-tile-meta b {
    display: block;
    color: var(--post-strong);
    font-size: 0.95rem;
}

.post-tile p {
    margin-bottom: 0.85rem;
}

.post-tabs {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
}

.post-panel {
    margin: 0 0 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--post-line);
    border-radius: 1rem;
    background: var(--post-tint);
}

.post-panel > :first-child {
    margin-top: 0;
}

.post-panel > :last-child {
    margin-bottom: 0;
}

.post-seq {
    counter-reset: post-seq;
    margin: 1.75rem 0;
    padding: 0;
    list-style: none;
}

.post-seq > li {
    position: relative;
    padding: 0 0 1.25rem 3.25rem;
    counter-increment: post-seq;
}

.post-seq > li::before {
    content: counter(post-seq);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid rgba(129, 140, 248, 0.5);
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.18);
    color: #c7d2fe;
    font-size: 0.875rem;
    font-weight: 800;
}

.post-seq > li::after {
    content: "";
    position: absolute;
    top: 2.3rem;
    bottom: 0.2rem;
    left: 1.05rem;
    width: 1px;
    background: rgba(129, 140, 248, 0.35);
}

.post-seq > li:last-child {
    padding-bottom: 0;
}

.post-seq > li:last-child::after {
    display: none;
}

.post-checks {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1.25rem 0;
    padding: 0;
    list-style: none;
}

.post-checks > li {
    position: relative;
    padding-left: 1.9rem;
}

.post-checks > li::before {
    content: "";
    position: absolute;
    top: 0.4rem;
    left: 0.35rem;
    width: 0.45rem;
    height: 0.8rem;
    border: solid #22c55e;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.post-rows {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1.25rem 0;
    padding: 0;
    list-style: none;
}

.post-rows > li {
    padding: 0.85rem 1.1rem;
    border-left: 3px solid #818cf8;
    border-radius: 0 0.7rem 0.7rem 0;
    background: var(--post-tint);
}

.post-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin: 1.5rem 0;
}

.post-split > * {
    min-width: 0;
}

.post-split .post-code {
    margin: 0;
}

.post-compare-good {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.07);
}

.post-compare-bad {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.07);
}

.post-table {
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid var(--post-line);
    border-radius: 0.9rem;
}

.blog-content .post-table table {
    display: table;
    margin: 0;
    border-style: hidden;
}

.blog-content .post-table th,
.blog-content .post-table td {
    border-color: var(--post-line);
    font-size: 0.92rem;
}

.blog-content .post-table thead th {
    background: var(--post-tint);
    color: var(--post-strong);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.post-next {
    margin-top: 4.5rem;
    padding: 1.75rem;
    border: 1px solid rgba(129, 140, 248, 0.35);
    border-radius: 1.1rem;
    background: radial-gradient(70% 90% at 100% 0%, rgba(99, 102, 241, 0.2), transparent 70%), var(--post-tint);
}

.post-body .post-next h2 {
    margin-top: 0;
    font-size: 1.4rem;
}

.post-next > :last-child {
    margin-bottom: 0;
}

.post-tested {
    display: flex;
    gap: 0.6rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    line-height: 1.5;
}

.post-tested i {
    flex: none;
    color: #22c55e;
    font-size: 1.15rem;
}

.post-related .card-img-top {
    height: 10rem;
}

@media (max-width: 767.98px) {
    .post-hero {
        min-height: 24rem;
        border-radius: 1rem;
    }

    .post-hero-body {
        padding: 1.5rem;
    }

    .post-hero-lead {
        font-size: 1rem;
    }

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

    .post-body h2 {
        margin-top: 3rem;
        font-size: 1.5rem;
    }

    .post-n {
        width: 2rem;
        height: 2rem;
        margin-right: 0.5rem;
    }
}
