.article-engineering .hero-copy {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    padding: 28px;
    border-radius: var(--radius-xl);
}

.article-engineering .hero-copy::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    pointer-events: none;
}

.article-engineering .hero-copy > * {
    position: relative;
    z-index: 1;
}

.article-engineering .hero-copy p {
    max-width: 68ch;
}

.article-main .article-block + .article-block,
.article-main .article-block + .article-figure,
.article-main .article-block + .article-table-wrap,
.article-main .article-table-wrap + .article-block,
.article-main .article-table-wrap + .article-figure,
.article-main .article-figure + .article-table-wrap {
    margin-top: var(--space-8);
}

.article-main .article-block > h2,
.article-main .article-block > h3 {
    scroll-margin-top: 5rem;
}

.article-engineering .article-list {
    display: grid;
    gap: 0.7rem;
    margin: 0 0 var(--space-5);
    padding-left: 1.25rem;
    color: var(--color-text-muted);
}

.article-engineering .article-list li {
    padding-left: 0.25rem;
}

.article-engineering .article-list li::marker {
    color: var(--color-primary);
}

.article-engineering .article-list--nested {
    margin-top: 0.7rem;
    margin-bottom: 0;
}

.article-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin-bottom: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface-2);
    scrollbar-width: thin;
}

.article-table-wrap:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.article-table {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--color-text);
    font-size: var(--text-sm);
    line-height: 1.45;
}

.article-table th,
.article-table td {
    padding: 0.8rem 0.9rem;
    border-right: 1px solid var(--color-divider);
    border-bottom: 1px solid var(--color-divider);
    text-align: left;
    vertical-align: top;
}

.article-table th:last-child,
.article-table td:last-child {
    border-right: 0;
}

.article-table tbody tr:last-child > * {
    border-bottom: 0;
}

.article-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--color-surface-offset);
    color: var(--color-text);
    font-weight: 700;
}

.article-table tbody tr:nth-child(even):not(.article-table-group) td {
    background: color-mix(in srgb, var(--color-surface-offset) 46%, transparent);
}

.article-table-group th {
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-weight: 700;
}

.article-engineering .article-figure {
    min-width: 0;
}

.article-figure .lightbox-trigger {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface-2);
}

.article-figure .lightbox-trigger img {
    width: 100%;
    height: auto;
    border: 0;
    border-radius: var(--radius-lg);
    object-fit: contain;
}

.article-figure figcaption {
    margin-top: 0.65rem;
}

.article-figure--narrow {
    width: min(100%, 660px);
    margin-right: auto;
    margin-left: auto;
}

.article-figure--formula {
    width: fit-content;
    max-width: min(100%, 620px);
    margin-right: auto;
    margin-left: auto;
}

.article-figure--formula .lightbox-trigger {
    padding: 1.1rem 1.35rem;
}

.article-figure--formula img {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.article-figure--formula-wide {
    width: min(100%, 760px);
}

.article-figure-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.article-figure-gallery figcaption {
    grid-column: 1 / -1;
}

@media (max-width: 980px) {
    .article-engineering .hero-copy {
        padding: 24px;
    }

    .article-engineering .hero-copy::after {
        background-position: center;
        background-size: cover;
    }
}

@media (max-width: 720px) {
    .article-engineering .hero-copy {
        padding: 20px;
    }

    .article-figure-gallery {
        grid-template-columns: 1fr;
    }

    .article-table {
        min-width: 600px;
    }
}

.article-materials .hero-copy::after {
    background-image: url("../materials_components/header_materials_components.png");
}

.article-pump-foundations .hero-copy::after {
    background-image: url("../pump_foundation/header_pump_foundation.png");
}

.article-pile-design .hero-copy::after {
    background-image: url("../pile_design/logo_pile_design.png");
}

.article-pile-design .hero-copy p {
    max-width: 62ch;
}

.article-lead-panel {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-lg);
    background: var(--color-surface-2);
}

.article-note-soft {
    padding: 18px 20px;
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-lg);
    background: var(--color-surface-2);
}

.article-force-chain {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0 0 var(--space-5);
    padding: 0;
    list-style: none;
    counter-reset: force-step;
}

.article-force-chain li {
    position: relative;
    min-width: 0;
    padding: 1rem 0.85rem 0.9rem;
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-lg);
    background: var(--color-surface-2);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    line-height: 1.4;
    counter-increment: force-step;
}

.article-force-chain li::before {
    content: counter(force-step, decimal-leading-zero);
    display: block;
    margin-bottom: 0.55rem;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.article-force-chain li:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -0.72rem;
    z-index: 1;
    width: 0.6rem;
    color: var(--color-primary);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-50%);
}

@media (max-width: 980px) {
    .article-pile-design .hero-copy::after {
        background-position: right 12px center;
        background-size: min(46%, 300px);
    }
}

@media (max-width: 720px) {
    .article-force-chain {
        grid-template-columns: 1fr;
    }

    .article-force-chain li:not(:last-child)::after {
        top: auto;
        right: 50%;
        bottom: -0.73rem;
        transform: translateX(50%) rotate(90deg);
    }

    .article-pile-design .hero-copy::after {
        background-position: right 8px bottom;
        background-size: min(52%, 240px);
    }
}

@media (max-width: 560px) {
    .article-pile-design .hero-copy::after {
        background-position: right -8px bottom;
        background-size: min(58%, 200px);
    }
}
