/* Blog listing and article — ported from dumps/onecta-copy/static/css/fix-blog.css */

.page--blog-index,
.page--article {
    position: relative;
    z-index: 1;
    background: var(--color-white);
}

.page--blog-index .section--page-hero {
    padding-top: 56px;
    padding-bottom: 8px;
}

.page--blog-index .section--page-hero .section__inner {
    display: block;
    flex: none;
    gap: 0;
}

.page--blog-index .breadcrumbs {
    margin-bottom: 16px;
}

.page--blog-index .page-hero__title {
    margin-bottom: 0;
    font-size: var(--text-display);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.page--blog-index .breadcrumbs__current {
    color: var(--color-text);
}

.page--blog-index .breadcrumbs a {
    color: var(--color-muted);
}

.page--blog-index .breadcrumbs a:hover {
    color: var(--color-green);
}

.page--blog-index .page-hero__lead {
    max-width: 640px;
    margin-top: 16px;
    font-size: var(--text-lg);
    line-height: 1.5;
    color: var(--color-text-secondary);
    text-wrap: pretty;
}

.section--blog-subindexes {
    padding-top: 28px;
    padding-bottom: 28px;
}

.page--blog-index .section.section--blog-subindexes + .section.section--blog-list {
    padding-top: 0;
}

.blog-subindexes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.blog-subindexes__link {
    display: inline-flex;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    font-size: var(--text-xs);
    font-weight: 600;
    text-decoration: none;
    color: var(--color-black);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.blog-subindexes__link:hover {
    border-color: var(--color-green);
    color: var(--color-green);
}

.blog-subindexes__link.is-current {
    border-color: var(--color-dark);
    background: var(--color-dark);
    color: var(--color-white);
}

.blog-subindexes__link.is-current:hover {
    border-color: var(--color-dark);
    color: var(--color-white);
}

.section--blog-list {
    padding-top: 28px;
    padding-bottom: 96px;
}

.article-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
}

.article-cards--2 {
    grid-template-columns: 1fr;
}

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.article-card:hover {
    border-color: var(--color-muted-light);
}

.article-card__image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(80, 189, 78, 0.1) 0 10px,
            rgba(80, 189, 78, 0.04) 10px 20px
        ),
        var(--color-bg-alt);
}

.article-card__cover {
    display: block;
    width: 100%;
    height: 100%;
}

.article-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 10px;
    padding: 20px 24px 24px;
}

.article-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: var(--text-xs);
    line-height: 16px;
    color: var(--color-muted);
}

.article-card__rubric {
    color: var(--color-text-secondary);
    font-weight: 600;
}

.article-card__meta-sep {
    color: var(--color-muted-light);
}

.article-card__title {
    margin: 0;
    font-size: var(--text-lg);
    line-height: 1.3;
    font-weight: 500;
    text-wrap: pretty;
}

.article-card__title a {
    text-decoration: none;
    color: var(--color-black);
}

.article-card__title a:hover {
    color: var(--color-green);
}

.article-card__text {
    margin: 0;
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--color-gray-mid);
    text-wrap: pretty;
}

.article-card__link {
    margin-top: auto;
    padding-top: 8px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-decoration: none;
    color: var(--color-black);
}

.article-card__link:hover {
    color: var(--color-green);
}

.article-card--featured {
    grid-column: 1 / -1;
    flex-direction: column;
}

.article-card--featured .article-card__image {
    flex: 0 0 auto;
    min-height: 200px;
}

.blog-empty {
    max-width: 520px;
}

.blog-empty p {
    margin: 0;
    font-size: var(--text-md);
    line-height: 1.4;
    color: var(--color-nav-active);
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.blog-pagination__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    font-size: var(--text-sm);
    text-decoration: none;
    color: var(--color-black);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.blog-pagination__item:hover {
    border-color: var(--color-green);
    color: var(--color-green);
}

.blog-pagination__item.is-current {
    border-color: var(--color-dark);
    background: var(--color-dark);
    color: var(--color-white);
}

.blog-pagination__item.is-current:hover {
    color: var(--color-white);
}

.article-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 0 48px;
    background: var(--color-white);
}

.article-hero__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.article-hero__crumbs {
    color: var(--color-muted);
}

.article-hero__crumbs a {
    color: inherit;
    text-decoration: none;
}

.article-hero__crumbs a:hover {
    color: var(--color-green);
}

.article-hero__crumbs span:last-child {
    overflow: hidden;
    max-width: 42ch;
    color: var(--color-text);
    white-space: nowrap;
    text-overflow: clip;
}

.article-hero__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

.article-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 720px;
}

.article-hero__meta {
    margin-bottom: 16px;
}

.page--article .article-hero__title {
    max-width: 20ch;
    font-size: var(--text-display);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-text);
    text-wrap: pretty;
}

.article-hero__lead {
    max-width: 52ch;
    margin-top: 20px;
    font-size: var(--text-lg);
    line-height: 1.5;
    color: var(--color-text-secondary);
    text-wrap: pretty;
}

.article-hero__card {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--color-border);
    border-radius: 0;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(80, 189, 78, 0.1) 0 10px,
            rgba(80, 189, 78, 0.04) 10px 20px
        ),
        var(--color-bg-alt);
}

.article-hero__card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page--article .section--body {
    background: var(--color-white);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 680px);
    gap: 24px;
    justify-content: start;
}

.article-toc {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.article-toc__title {
    margin: 0 0 12px;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.article-toc__list {
    margin: 0;
    padding: 0 0 0 18px;
    list-style: decimal;
    color: var(--color-muted);
}

.article-toc__list li {
    margin-bottom: 10px;
    font-size: var(--text-sm);
    line-height: 1.4;
}

.article-toc__list a {
    text-decoration: none;
    color: var(--color-text);
}

.article-toc__list a:hover,
.article-toc__list a.is-current {
    color: var(--color-green);
}

.article-toc__list a.is-current {
    font-weight: 600;
}

.article-toc__list li.is-current {
    color: var(--color-green);
}

.article-body {
    font-size: var(--text-md);
    line-height: 1.65;
    color: var(--color-text);
}

.article-body p {
    margin: 0 0 20px;
    text-wrap: pretty;
}

.article-body h2 {
    margin: 32px 0 16px;
    font-size: var(--text-xl);
    line-height: 1.25;
    font-weight: 600;
    scroll-margin-top: 132px;
}

.article-body h2:first-child {
    margin-top: 4px;
}

.article-body h3 {
    margin: 32px 0 12px;
    font-size: var(--text-xl);
    line-height: 1.3;
    font-weight: 600;
}

.article-body ul,
.article-body ol {
    display: block;
    max-width: none;
    margin: 0 0 24px;
    padding-left: 0;
    list-style: none;
}

.article-body ol {
    padding-left: 22px;
    list-style: decimal;
}

.article-body li,
.article-body.richtext ul li,
.article-body.richtext ol li {
    position: relative;
    margin: 0 0 12px;
    padding: 0 0 0 26px;
    border: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    line-height: 1.65;
    text-wrap: pretty;
}

.article-body ol li,
.article-body.richtext ol li {
    padding-left: 0;
}

.article-body.richtext ul > li:first-child,
.article-body.richtext ol > li:first-child {
    border: 0;
}

.article-body ul li::before,
.article-body.richtext ul li::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-green);
}

.article-body ol li::before,
.article-body.richtext ol li::before,
.article-body.richtext ul li::marker,
.article-body.richtext ol li::marker {
    content: none;
}

.article-body a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--color-muted-light);
}

.article-body a:hover {
    color: var(--color-green);
    text-decoration-color: var(--color-green);
}

.article-figure {
    margin: 32px 0;
}

.article-figure__placeholder {
    display: block;
    aspect-ratio: 16 / 9;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(80, 189, 78, 0.1) 0 10px,
            rgba(80, 189, 78, 0.04) 10px 20px
        ),
        var(--color-bg-alt);
}

.article-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.article-figure figcaption {
    margin-top: 10px;
    font-size: var(--text-sm);
    line-height: 1.5;
    color: var(--color-muted);
}

.table-scroll {
    margin: 0 0 28px;
    overflow-x: auto;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.article-body th,
.article-body td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.article-body th {
    font-weight: 600;
    color: var(--color-text-secondary);
    background: var(--color-bg-alt);
}

.article-body blockquote {
    margin: 32px 0;
    padding: 4px 0 4px 16px;
    border-left: 2px solid var(--color-green);
    font-size: var(--text-lg);
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.article-body blockquote p {
    margin: 0;
}

.article-note {
    margin: 32px 0;
    padding: 20px;
    background: var(--color-bg-alt);
    border-left: 2px solid var(--color-dark);
}

.article-note__title {
    margin: 0 0 8px;
    font-weight: 600;
}

.article-note p:last-child {
    margin: 0;
}

.article-cta {
    margin: 36px 0 0;
}

.article-cta a {
    text-decoration: none;
}

.section--related {
    padding-top: 72px;
    padding-bottom: 24px;
    background: var(--color-white);
}

.section__head-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

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

    .article-card--featured {
        flex-direction: row;
    }

    .article-card--featured .article-card__image {
        flex: 0 0 52%;
        aspect-ratio: auto;
        align-self: stretch;
        min-height: 0;
    }

    .article-card--featured .article-card__body {
        flex: 1 1 auto;
        justify-content: center;
        gap: 14px;
        padding: 32px;
    }

    .article-card--featured .article-card__text {
        max-width: 46ch;
        font-size: var(--text-md);
    }

    .article-hero {
        padding: 36px 0 56px;
    }

    .article-hero__layout--cover {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 42%);
        gap: 40px 48px;
        align-items: center;
    }

    .article-hero__card {
        max-width: 520px;
        min-height: 280px;
        justify-self: end;
    }

    .article-body h2 {
        margin-top: 44px;
        font-size: var(--text-2xl);
    }

    .article-body h2:first-child {
        margin-top: 0;
    }

    .article-note {
        padding: 24px 28px;
    }

    .article-body blockquote {
        padding-left: 24px;
    }
}

@media (min-width: 1100px) {
    .article-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .article-card--featured .article-card__body {
        padding: 40px 48px;
    }

    .article-hero__layout--cover {
        gap: 56px;
    }

    .article-layout {
        grid-template-columns: 240px minmax(0, 680px);
        gap: 64px;
        justify-content: center;
    }

    .article-layout--solo {
        grid-template-columns: minmax(0, 680px);
    }

    .article-toc {
        position: sticky;
        top: 132px;
        align-self: start;
        padding-bottom: 0;
        border-bottom: 0;
    }
}
