.platform-article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 2rem;
}

.platform-article-categories a,
.platform-article-category {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #334155;
    font-size: .875rem;
    font-weight: 700;
    padding: .55rem 1rem;
    text-decoration: none;
}

.platform-article-categories a:hover,
.platform-article-categories a.is-active {
    background: #0a6c3d;
    border-color: #0a6c3d;
    color: #fff;
}

.platform-article-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.platform-article-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: 0 20px 55px -42px rgba(15, 23, 42, .5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.platform-article-card-media {
    aspect-ratio: 16 / 9;
    display: block;
    overflow: hidden;
}

.platform-article-card-media img {
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
    width: 100%;
}

.platform-article-card:hover .platform-article-card-media img { transform: scale(1.035); }
.platform-article-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem; }
.platform-article-category { align-self: flex-start; color: #0a6c3d; padding: .35rem .7rem; }
.platform-article-card h2 { color: #0f172a; font-size: 1.25rem; line-height: 1.35; margin: 1rem 0 .65rem; }
.platform-article-card h2 a { color: inherit; text-decoration: none; }
.platform-article-card p { color: #475569; line-height: 1.7; margin: 0; }
.platform-article-meta { color: #64748b; display: flex; flex-wrap: wrap; font-size: .8rem; gap: .5rem 1rem; margin-top: auto; padding-top: 1.25rem; }
.platform-article-empty { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 1rem; color: #475569; grid-column: 1 / -1; padding: 2rem; text-align: center; }
.platform-article-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.platform-article-pagination a {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: .65rem;
    color: #334155;
    display: inline-flex;
    font-size: .9rem;
    font-weight: 800;
    justify-content: center;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: .5rem .8rem;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.platform-article-pagination a:hover,
.platform-article-pagination a.is-active {
    background: #0a6c3d;
    border-color: #0a6c3d;
    color: #fff;
}

.platform-article-pagination a:focus-visible {
    outline: 3px solid rgba(10, 108, 61, .3);
    outline-offset: 2px;
}
.platform-article-preview { background: #fff7ed; border: 1px solid #fdba74; border-radius: .75rem; color: #9a3412; margin-bottom: 1.5rem; padding: 1rem; }
.platform-article-show { margin: 0 auto; max-width: 900px; }
.platform-article-show-meta { color: #64748b; display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; margin-bottom: 1.5rem; }
.platform-article-show-meta a { color: #0a6c3d; font-weight: 700; }
.platform-article-show figure { margin: 0 0 2rem; }
.platform-article-show figure img { border-radius: 1.25rem; height: auto; max-height: 560px; object-fit: cover; width: 100%; }
.platform-article-show figcaption { color: #64748b; font-size: .85rem; margin-top: .5rem; text-align: center; }
.platform-article-content { color: #1e293b; font-size: 1.075rem; line-height: 1.85; }
.platform-article-content img { border-radius: .8rem; height: auto; max-width: 100%; }
.platform-article-content a { color: #0a6c3d; text-decoration: underline; }

.platform-article-cluster {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #0a6c3d;
    border-radius: .9rem;
    margin-bottom: 2rem;
    padding: 1.25rem 1.4rem;
}

.platform-article-cluster-label {
    color: #0a6c3d;
    display: block;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: .45rem;
    text-transform: uppercase;
}

.platform-article-cluster a,
.platform-article-cluster strong {
    color: #14532d;
    font-size: 1.1rem;
    font-weight: 800;
}

.platform-article-cluster p {
    color: #3f6212;
    line-height: 1.6;
    margin: .4rem 0 0;
}

.platform-article-show .platform-article-cluster-tree {
    --cluster-accent: #0a6c3d;
    --cluster-accent-strong: #14532d;
    --cluster-border: #d7e5dc;
    --cluster-border-strong: #9fd4b3;
    --cluster-surface: #ffffff;
    --cluster-surface-current: #edf8f1;
    --cluster-surface-subtle: #f7faf8;
    --cluster-text: #163126;
    --cluster-text-muted: #52675c;
    background: var(--cluster-surface);
    border: 1px solid var(--cluster-border);
    border-left: 4px solid var(--cluster-accent);
    border-radius: 1rem;
    box-shadow: 0 18px 50px -40px rgba(15, 23, 42, .45);
    padding: 1.5rem;
}

.platform-article-show .platform-article-cluster-tree h3,
.platform-article-show .platform-article-cluster-tree p,
.platform-article-show .platform-article-cluster-tree ul {
    margin: 0;
    padding: 0;
}

.platform-article-show .platform-article-cluster-tree .platform-article-cluster-header {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    list-style: none;
    margin: -1.5rem;
    min-height: 3rem;
    padding: 1.5rem;
    touch-action: manipulation;
}

.platform-article-show .platform-article-cluster-tree .platform-article-cluster-header::-webkit-details-marker {
    display: none;
}

.platform-article-show .platform-article-cluster-tree .platform-article-cluster-header::marker {
    content: '';
}

.platform-article-show .platform-article-cluster-tree .platform-article-cluster-header:focus-visible {
    border-radius: .75rem;
    outline: 3px solid rgba(10, 108, 61, .28);
    outline-offset: 3px;
}

.platform-article-show .platform-article-cluster-tree .platform-article-cluster-header-copy {
    display: grid;
    gap: .35rem;
    min-width: 0;
}

.platform-article-show .platform-article-cluster-tree .platform-article-cluster-label {
    color: var(--cluster-accent);
    margin: 0;
}

.platform-article-show .platform-article-cluster-tree .platform-article-cluster-title {
    color: var(--cluster-text);
    display: block;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.35;
}

.platform-article-show .platform-article-cluster-tree .platform-article-cluster-description {
    color: var(--cluster-text-muted);
    display: block;
    font-size: .9rem;
    line-height: 1.6;
}

.platform-article-show .platform-article-cluster-tree .platform-article-cluster-toggle {
    align-items: center;
    border: 1px solid var(--cluster-border);
    border-radius: 999px;
    color: var(--cluster-accent-strong);
    display: flex;
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 800;
    gap: .35rem;
    justify-content: center;
    letter-spacing: .03em;
    min-height: 2.75rem;
    padding: .55rem .75rem;
    text-transform: uppercase;
}

.platform-article-show .platform-article-cluster-tree .platform-article-cluster-toggle svg {
    height: 1rem;
    transition: transform 200ms ease;
    width: 1rem;
}

.platform-article-show .platform-article-cluster-tree .platform-article-cluster-toggle-closed {
    display: none;
}

.platform-article-show .platform-article-cluster-disclosure:not([open]) .platform-article-cluster-toggle-open {
    display: none;
}

.platform-article-show .platform-article-cluster-disclosure:not([open]) .platform-article-cluster-toggle-closed {
    display: inline;
}

.platform-article-show .platform-article-cluster-disclosure[open] .platform-article-cluster-toggle svg {
    transform: rotate(180deg);
}

.platform-article-show .platform-article-cluster-content {
    border-top: 1px solid var(--cluster-border);
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

.platform-article-show .platform-article-cluster-list,
.platform-article-show .platform-article-cluster-children,
.platform-article-show .platform-article-tree,
.platform-article-show .platform-article-cluster-tree .platform-article-tree-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.platform-article-show .platform-article-tree {
    display: grid;
    gap: .55rem;
}

.platform-article-show .platform-article-cluster-children {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.platform-article-show .platform-article-cluster-node:not(.is-root) {
    background: var(--cluster-surface-subtle);
    border: 1px solid var(--cluster-border);
    border-radius: .8rem;
    padding: 1rem;
}

.platform-article-show .platform-article-cluster-heading {
    display: grid;
    gap: .2rem;
    margin-bottom: .75rem;
}

.platform-article-show .platform-article-cluster-heading > span {
    color: var(--cluster-text-muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.platform-article-show .platform-article-cluster-heading > h3 {
    color: var(--cluster-text);
    font-size: 1rem;
    line-height: 1.45;
}

.platform-article-show .platform-article-cluster-node:not(.is-root) .platform-article-cluster-children {
    border-left: 2px solid var(--cluster-border-strong);
    margin-left: .4rem;
    padding-left: .85rem;
}

.platform-article-show .platform-article-cluster-tree .platform-article-tree-children {
    border-left: 2px solid var(--cluster-border-strong);
    display: grid;
    gap: .55rem;
    margin: .55rem 0 0 1.5rem;
    padding-left: 1.25rem;
}

.platform-article-show .platform-article-tree-item {
    margin: 0;
    position: relative;
}

.platform-article-show .platform-article-cluster-tree .platform-article-tree-children > .platform-article-tree-item::before {
    background: var(--cluster-border-strong);
    content: '';
    height: 2px;
    left: -1.25rem;
    position: absolute;
    top: 1.45rem;
    width: .9rem;
}

.platform-article-show .platform-article-tree-link {
    align-items: center;
    background: var(--cluster-surface);
    border: 1px solid var(--cluster-border);
    border-radius: .65rem;
    color: var(--cluster-text);
    display: flex;
    font-size: .92rem;
    font-weight: 700;
    gap: .75rem;
    justify-content: space-between;
    line-height: 1.5;
    min-height: 3rem;
    padding: .65rem .8rem;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.platform-article-show a.platform-article-tree-link:hover {
    background: var(--cluster-surface-current);
    border-color: var(--cluster-border-strong);
    color: var(--cluster-accent-strong);
}

.platform-article-show a.platform-article-tree-link:focus-visible {
    outline: 3px solid rgba(10, 108, 61, .28);
    outline-offset: 2px;
}

.platform-article-show .platform-article-tree-link.is-current {
    background: var(--cluster-surface-current);
    border-color: var(--cluster-border-strong);
    color: var(--cluster-accent-strong);
}

.platform-article-show .platform-article-tree-link svg {
    flex: 0 0 auto;
    height: 1.1rem;
    width: 1.1rem;
}

.platform-article-show .platform-article-tree-link small {
    background: var(--cluster-accent-strong);
    border-radius: 999px;
    color: #ffffff;
    flex: 0 0 auto;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .04em;
    padding: .25rem .5rem;
    text-transform: uppercase;
}

.platform-article-related {
    border-top: 1px solid #e2e8f0;
    margin-top: 3rem;
    padding-top: 2.5rem;
}

.platform-article-related > h2 {
    color: #0f172a;
    font-size: 1.75rem;
    margin: 0 0 1.5rem;
}

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

@media (max-width: 960px) {
    .platform-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .platform-article-grid,
    .platform-article-related .platform-article-grid { grid-template-columns: 1fr; }

    .platform-article-show .platform-article-cluster-tree {
        border-left-width: 3px;
        padding: 1rem;
    }

    .platform-article-show .platform-article-cluster-tree .platform-article-cluster-header {
        align-items: flex-start;
        margin: -1rem;
        padding: 1rem;
    }

    .platform-article-show .platform-article-cluster-tree .platform-article-cluster-description {
        font-size: .85rem;
    }

    .platform-article-show .platform-article-cluster-tree .platform-article-cluster-toggle {
        min-height: 2.75rem;
        padding: .55rem;
    }

    .platform-article-show .platform-article-cluster-tree .platform-article-cluster-toggle-labels {
        display: none;
    }

    .platform-article-show .platform-article-cluster-content {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .platform-article-show .platform-article-cluster-tree .platform-article-tree-children {
        margin-left: .75rem;
        padding-left: .85rem;
    }

    .platform-article-show .platform-article-cluster-tree .platform-article-tree-children > .platform-article-tree-item::before {
        left: -.85rem;
        width: .65rem;
    }

    .platform-article-show .platform-article-cluster-node:not(.is-root) {
        padding: .85rem;
    }

    .platform-article-show .platform-article-tree-link.is-current {
        align-items: flex-start;
        flex-direction: column;
        gap: .5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .platform-article-show .platform-article-tree-link,
    .platform-article-show .platform-article-cluster-toggle svg {
        transition: none;
    }
}
