.blog-page {
    padding: 0;
}

.blog-shell {
    width: min(64rem, calc(100% - 2rem));
    margin-inline: auto;
}

@media (min-width: 640px) {
    .blog-shell {
        width: min(64rem, calc(100% - 3rem));
    }
}

.blog-article {
    padding-bottom: 3.5rem;
}

.blog-article__top {
    padding-top: 2.5rem;
}

@media (min-width: 640px) {
    .blog-article {
        padding-bottom: 4rem;
    }

    .blog-article__top {
        padding-top: 3.5rem;
    }
}

.blog-hero__byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
    margin-top: 1.35rem;
}

.blog-hero__byline .blog-meta {
    margin: 0;
}

.blog-title {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #0f172a;
}

@media (min-width: 640px) {
    .blog-title {
        font-size: 2rem;
        line-height: 1.25;
    }
}

.blog-lead,
.blog-empty,
.blog-locale-note {
    color: #475569;
    line-height: 1.7;
}

.blog-lead {
    margin: 1.25rem 0 0;
    max-width: 42rem;
    font-size: 1rem;
}

@media (min-width: 640px) {
    .blog-lead {
        font-size: 1.125rem;
    }
}

.blog-locale-note {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 1.15rem 0 0;
}

.blog-author {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    flex-shrink: 0;
}

.blog-author--compact {
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.blog-author__photo {
    display: block;
    width: 3rem;
    height: 3rem;
    overflow: hidden;
    border-radius: 999px;
    background: #f1f5f9;
    flex-shrink: 0;
}

.blog-author--compact .blog-author__photo {
    width: 1.75rem;
    height: 1.75rem;
}

.blog-author__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 10%;
}

.blog-author__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.05rem;
}

.blog-author__kicker {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.blog-author__name {
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
}

.blog-author--compact .blog-author__name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.blog-author__role {
    color: #64748b;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.blog-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(226 232 240 / 0.8);
    background: #fff;
    padding: 0.4rem 0.85rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
}

.blog-badge svg {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
    color: #64748b;
}

.blog-toc {
    margin: 1.75rem 0 0;
    padding: 1.15rem 1.2rem 1.2rem;
    border: 1px solid rgb(226 232 240 / 0.85);
    border-radius: 0.75rem;
    background: #fff;
}

.blog-toc__title {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
}

.blog-toc__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-toc__list li + li {
    border-top: 1px solid #f1f5f9;
}

.blog-toc__list a {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    color: #334155;
    font-size: 0.925rem;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
}

.blog-toc__list a:hover {
    color: #0f172a;
}

.blog-toc__num {
    flex-shrink: 0;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

.blog-video {
    overflow: hidden;
    margin: 2rem 0 0;
    border-radius: 1rem;
}

.blog-video > div {
    border: 0;
    border-radius: 1rem;
}

.blog-hero-image,
.blog-figure {
    width: 100%;
    margin: 2rem 0 0;
    background: transparent;
}

.blog-figure {
    margin: 1.5rem 0;
}

.blog-figure--lead {
    margin: 0 0 1.5rem;
}

.blog-figure__frame {
    overflow: hidden;
    border-radius: 1.5rem;
    background: transparent;
}

.blog-hero-image .blog-figure__frame {
    aspect-ratio: 16 / 9;
}

.blog-hero-image img,
.blog-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(42rem, 78vh);
    border-radius: 1.5rem;
    object-fit: cover;
    background: transparent;
}

.blog-hero-image img {
    height: 100%;
    max-height: none;
}

.blog-index-card__image {
    display: block;
    width: 100%;
    height: 13.5rem;
    object-fit: cover;
    background: #f1f5f9;
}

.blog-intro {
    margin-top: 2rem;
}

.blog-p,
.blog-h3,
.blog-checks li,
.blog-steps li {
    color: #475569;
    line-height: 1.75;
}

.blog-p {
    margin: 0 0 1rem;
    font-size: 1rem;
}

.blog-h3 {
    margin: 1.75rem 0 0.55rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.blog-figure figcaption {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
}

.blog-section {
    margin: 0;
    padding: 2.75rem 0;
    scroll-margin-top: 6rem;
}

.blog-section--surface-panel {
    background: #fff;
    border-top: 1px solid rgb(226 232 240 / 0.75);
    border-bottom: 1px solid rgb(226 232 240 / 0.75);
}

.blog-section--surface-panel + .blog-section--surface-panel {
    border-top: 0;
}

.blog-section--surface-editorial,
.blog-section--surface-split {
    background: #f5f5f5;
}

.blog-h2 {
    margin: 0 0 1.15rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: #0f172a;
}

@media (min-width: 640px) {
    .blog-h2 {
        font-size: 1.75rem;
    }
}

.blog-section--surface-panel .blog-quiz {
    background: #f5f5f5;
}

.blog-section--surface-editorial .blog-quiz,
.blog-section--surface-split .blog-quiz {
    border: 1px solid rgb(226 232 240 / 0.85);
    background: #fff;
}

.blog-table-wrap {
    margin: 1.25rem 0 1.5rem;
    overflow-x: auto;
    border: 1px solid rgb(226 232 240 / 0.85);
    border-radius: 0.75rem;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.blog-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

.blog-table--wide {
    min-width: 56rem;
}

.blog-table th,
.blog-table td {
    padding: 0.8rem 0.95rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    line-height: 1.5;
}

.blog-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f5f5f5;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #737373;
    white-space: nowrap;
}

.blog-table td:first-child,
.blog-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 10.5rem;
    font-weight: 650;
    color: #0f172a;
    background: #fff;
    box-shadow: 1px 0 0 #e2e8f0;
}

.blog-table th:first-child {
    z-index: 3;
    background: #f5f5f5;
}

.blog-table tbody tr:nth-child(even) td {
    background: #fafafa;
}

.blog-table tbody tr:nth-child(even) td:first-child {
    background: #fafafa;
}

.blog-table tbody tr:hover td,
.blog-table tbody tr:hover td:first-child {
    background: #f8fafc;
}

.blog-table tr:last-child td {
    border-bottom: 0;
}

.blog-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgb(226 232 240 / 0.9);
    background: #f8fafc;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 650;
    line-height: 1.2;
    color: #334155;
    white-space: nowrap;
}

.blog-chip--metric {
    background: #f1f5f9;
    color: #334155;
}

.blog-chip--good {
    background: #ecfdf3;
    border-color: rgb(18 161 90 / 0.12);
    color: #087f5b;
}

.blog-chip--warn {
    background: #fff7ed;
    border-color: rgb(194 65 12 / 0.12);
    color: #c2410c;
}

.blog-chip--strong {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.blog-chip--muted,
.blog-chip--neutral {
    background: #f8fafc;
    color: #64748b;
}

.blog-table .blog-chip {
    max-width: 100%;
    white-space: normal;
}

.blog-list-card {
    margin: 1.15rem 0 1.4rem;
    overflow: hidden;
    border: 1px solid rgb(226 232 240 / 0.85);
    border-radius: 0.75rem;
    background: #fff;
}

.blog-checks,
.blog-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-checks li,
.blog-steps li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    margin: 0;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.blog-checks li:last-child,
.blog-steps li:last-child {
    border-bottom: 0;
}

.blog-list-card li:nth-child(even) {
    background: #fafafa;
}

.blog-check {
    display: inline-flex;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    margin-top: 0.12rem;
    border-radius: 999px;
    background: #ecfdf3;
    color: #12a15a;
}

.blog-check svg {
    width: 0.85rem;
    height: 0.85rem;
}

.blog-step-pill {
    display: inline-flex;
    min-width: 1.55rem;
    height: 1.55rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.blog-quiz {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    border-radius: 0.75rem;
    background: #f5f5f5;
}

@media (min-width: 720px) {
    .blog-quiz {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.25rem;
    }
}

.blog-quiz__kicker {
    margin: 0 0 0.15rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
}

.blog-quiz__copy {
    margin: 0;
    max-width: 34rem;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.6;
}

.blog-quiz__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.55rem 1rem;
    border-radius: 0.5rem;
    background: #0f172a;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.blog-quiz__link:hover {
    background: #1e293b;
}

.blog-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 32rem;
    margin: 1.75rem 0 0;
}

.blog-search__icon {
    position: absolute;
    left: 0.9rem;
    display: inline-flex;
    color: #94a3b8;
    pointer-events: none;
}

.blog-search__icon svg {
    width: 1.05rem;
    height: 1.05rem;
}

.blog-search input {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.7rem 5.5rem 0.7rem 2.55rem;
    border: 1px solid rgb(226 232 240 / 0.9);
    border-radius: 0.75rem;
    background: #fff;
    color: #0f172a;
    font-size: 0.925rem;
    outline: none;
}

.blog-search input::placeholder {
    color: #94a3b8;
}

.blog-search input:focus {
    border-color: #cbd5e1;
    box-shadow: 0 0 0 3px rgb(15 23 42 / 0.04);
}

.blog-search__clear {
    position: absolute;
    right: 0.55rem;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
}

.blog-search__clear:hover {
    color: #0f172a;
}

.blog-results {
    scroll-margin-top: 6rem;
}

.blog-results.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.blog-results-meta {
    margin: 1.25rem 0 0;
    color: #64748b;
    font-size: 0.875rem;
}

.blog-index-list {
    display: grid;
    gap: 1.35rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .blog-index-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.blog-index-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgb(226 232 240 / 0.8);
    border-radius: 0.75rem;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.blog-index-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
}

.blog-index-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.5rem;
}

.blog-index-card .blog-meta {
    margin: 0;
}

.blog-index-card h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
}

.blog-index-card__excerpt {
    margin: 0;
    color: #64748b;
    font-size: 0.925rem;
    line-height: 1.65;
}

.blog-index-card .blog-author--compact {
    margin-top: 0.15rem;
}

.blog-index-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: auto;
    align-self: flex-start;
    min-height: 2.5rem;
    padding: 0.55rem 1rem;
    border-radius: 0.5rem;
    background: #0f172a;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 650;
}

.blog-index-card__cta svg {
    width: 1rem;
    height: 1rem;
}

.blog-index-card:hover .blog-index-card__cta {
    background: #1e293b;
    color: #fff;
}

.blog-empty {
    margin-top: 2rem;
    font-size: 0.95rem;
}

.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.blog-pagination__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-pagination__btn,
.blog-pagination__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgb(226 232 240 / 0.9);
    border-radius: 0.6rem;
    background: #fff;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
}

.blog-pagination__num {
    min-width: 2.25rem;
    padding-inline: 0.55rem;
}

.blog-pagination__btn:hover,
.blog-pagination__num:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}

.blog-pagination__num.is-current {
    background: #0f172a;
    border-color: #0f172a;
    color: #fff;
}

.blog-pagination__btn.is-disabled {
    color: #94a3b8;
    pointer-events: none;
}

.blog-pagination__ellipsis {
    color: #94a3b8;
    padding: 0 0.15rem;
}

.blog-intro a,
.blog-section .blog-p a,
.blog-section .blog-h2 a,
.blog-section .blog-h3 a,
.blog-section .blog-checks a,
.blog-section .blog-steps a,
.blog-section .blog-table a,
.blog-inline-link {
    color: inherit;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-color: #9ca3af;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

.blog-intro a:hover,
.blog-section .blog-p a:hover,
.blog-section .blog-h2 a:hover,
.blog-section .blog-h3 a:hover,
.blog-section .blog-checks a:hover,
.blog-section .blog-steps a:hover,
.blog-section .blog-table a:hover,
.blog-inline-link:hover {
    color: #0f172a;
    text-decoration-color: #64748b;
}

.blog-intro a::after,
.blog-section .blog-p a::after,
.blog-section .blog-h2 a::after,
.blog-section .blog-h3 a::after,
.blog-section .blog-checks a::after,
.blog-section .blog-steps a::after,
.blog-section .blog-table a::after,
.blog-inline-link::after {
    content: "";
    display: inline-block;
    width: 0.72em;
    height: 0.72em;
    margin-left: 0.22em;
    vertical-align: -0.02em;
    background-color: #9ca3af;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6.25 3.25H3.75A1.5 1.5 0 0 0 2.25 4.75v7.5a1.5 1.5 0 0 0 1.5 1.5h7.5a1.5 1.5 0 0 0 1.5-1.5v-2.5M9.25 2.25h4.5v4.5M13.75 2.25 7 9'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6.25 3.25H3.75A1.5 1.5 0 0 0 2.25 4.75v7.5a1.5 1.5 0 0 0 1.5 1.5h7.5a1.5 1.5 0 0 0 1.5-1.5v-2.5M9.25 2.25h4.5v4.5M13.75 2.25 7 9'/%3E%3C/svg%3E") center / contain no-repeat;
}
