/* Internal content templates — Stage 05 */
.eds-technical-index {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--eds-teal-700);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.5;
}

.eds-technical-index::before {
    width: 24px;
    height: 2px;
    background: currentColor;
    content: "";
}

.eds-technical-index--inverse {
    color: rgba(255, 255, 255, 0.72);
}

.eds-breadcrumbs {
    margin-bottom: 34px;
}

.eds-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: var(--eds-text-muted);
    font-size: 0.78rem;
    list-style: none;
}

.eds-breadcrumbs li:not(:last-child)::after {
    margin-inline-start: 8px;
    color: var(--eds-border-strong);
    content: "/";
}

.eds-breadcrumbs a {
    color: var(--eds-text-secondary);
}

/* Archive hero */
.eds-archive-hero,
.eds-page-hero,
.eds-single-hero,
.eds-article-hero {
    position: relative;
    overflow: hidden;
    padding-block: 58px 70px;
    border-bottom: 1px solid var(--eds-border);
    background:
        radial-gradient(circle at 12% 12%, rgba(50, 184, 197, 0.1), transparent 22%),
        linear-gradient(rgba(8, 124, 132, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 124, 132, 0.045) 1px, transparent 1px),
        var(--eds-surface);
    background-size: auto, 32px 32px, 32px 32px, auto;
}

.eds-archive-hero__grid,
.eds-single-hero__grid {
    display: grid;
    gap: 30px;
}

.eds-archive-hero h1,
.eds-page-hero h1,
.eds-single-hero h1,
.eds-article-hero h1 {
    max-width: 900px;
    margin: 14px 0 0;
    color: var(--eds-brand-800);
    font-size: clamp(2.15rem, 6vw, 4.35rem);
    font-weight: 850;
    line-height: 1.35;
    letter-spacing: -0.035em;
}

.eds-archive-hero__grid > p,
.eds-page-hero > .eds-container > p,
.eds-single-hero__lead,
.eds-article-hero__inner > p {
    max-width: 650px;
    margin: 0;
    color: var(--eds-text-secondary);
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 2.05;
}

.eds-archive-filters {
    border-bottom: 1px solid var(--eds-border);
    background: var(--eds-canvas);
}

.eds-archive-filters nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-block: 14px;
    scrollbar-width: none;
}

.eds-archive-filters nav::-webkit-scrollbar {
    display: none;
}

.eds-archive-filters a {
    flex: 0 0 auto;
    padding: 7px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--eds-text-secondary);
    font-size: 0.82rem;
    font-weight: 650;
}

.eds-archive-filters a:hover,
.eds-archive-filters a.is-active {
    border-color: var(--eds-teal-600);
    background: var(--eds-surface);
    color: var(--eds-teal-700);
    text-decoration: none;
}

/* Cards */
.eds-archive-body {
    padding-block: 64px 86px;
}

.eds-content-grid {
    display: grid;
    gap: 22px;
}

.eds-content-card {
    overflow: hidden;
    border: 1px solid var(--eds-border);
    border-radius: var(--eds-radius-lg);
    background: var(--eds-surface);
    box-shadow: 0 10px 36px rgba(11, 29, 51, 0.035);
    transition: transform var(--eds-duration-standard) var(--eds-ease-standard), box-shadow var(--eds-duration-standard) var(--eds-ease-standard), border-color var(--eds-duration-standard) var(--eds-ease-standard);
}

.eds-content-card:hover {
    border-color: rgba(8, 124, 132, 0.42);
    box-shadow: var(--eds-shadow-sm);
    transform: translateY(-4px);
}

.eds-content-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1px solid var(--eds-border);
    background: var(--eds-canvas);
}

.eds-content-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms var(--eds-ease-standard);
}

.eds-content-card:hover .eds-content-card__media img {
    transform: scale(1.025);
}

.eds-content-card__placeholder {
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(135deg, var(--eds-brand-800), var(--eds-teal-700));
    background-size: 28px 28px, 28px 28px, auto;
    color: #fff;
}

.eds-content-card--portfolio .eds-content-card__placeholder {
    background:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(135deg, #3a1520, #7b263b);
    background-size: 28px 28px, 28px 28px, auto;
}

.eds-content-card--case_study .eds-content-card__placeholder {
    background:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(135deg, #0b3f43, #087c84);
    background-size: 28px 28px, 28px 28px, auto;
}

.eds-content-card__placeholder strong {
    font-size: 2.9rem;
    font-weight: 300;
    line-height: 1;
    opacity: 0.82;
}

.eds-content-card__placeholder small {
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.14em;
}

.eds-content-card__body {
    display: flex;
    min-height: 310px;
    flex-direction: column;
    padding: 25px;
}

.eds-content-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--eds-text-muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.eds-content-card h2 {
    margin: 14px 0 10px;
    color: var(--eds-brand-800);
    font-size: 1.2rem;
    line-height: 1.7;
}

.eds-content-card h2 a {
    color: inherit;
}

.eds-content-card h2 a:hover {
    color: var(--eds-teal-700);
    text-decoration: none;
}

.eds-content-card__body > p {
    margin: 0;
    color: var(--eds-text-secondary);
    font-size: 0.88rem;
    line-height: 1.95;
}

.eds-term-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.eds-term-list li {
    padding: 4px 9px;
    border: 1px solid var(--eds-border);
    border-radius: 999px;
    background: var(--eds-canvas);
    color: var(--eds-text-secondary);
    font-size: 0.68rem;
    font-weight: 650;
}

.eds-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
    color: var(--eds-teal-700);
    font-size: 0.82rem;
    font-weight: 750;
}

.eds-card-link:hover {
    gap: 12px;
    text-decoration: none;
}

.eds-card-link .eds-icon {
    width: 17px;
    height: 17px;
}

/* Pagination and empty state */
.eds-pagination {
    margin-top: 48px;
}

.eds-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eds-pagination a,
.eds-pagination span {
    display: grid;
    min-width: 42px;
    height: 42px;
    place-items: center;
    padding-inline: 12px;
    border: 1px solid var(--eds-border);
    border-radius: var(--eds-radius-md);
    background: var(--eds-surface);
    color: var(--eds-brand-800);
    font-size: 0.82rem;
    font-weight: 700;
}

.eds-pagination .current,
.eds-pagination a:hover {
    border-color: var(--eds-brand-800);
    background: var(--eds-brand-800);
    color: #fff;
    text-decoration: none;
}

.eds-empty-state {
    max-width: 700px;
    margin-inline: auto;
    padding: 58px 30px;
    border: 1px dashed var(--eds-border-strong);
    border-radius: var(--eds-radius-xl);
    background: var(--eds-canvas);
    text-align: center;
}

.eds-empty-state__index {
    color: var(--eds-cyan-500);
    font-size: 3rem;
    font-weight: 250;
}

.eds-empty-state h2 {
    margin: 10px 0;
    color: var(--eds-brand-800);
    font-size: 1.6rem;
}

.eds-empty-state p {
    margin: 0 auto 24px;
    color: var(--eds-text-secondary);
}

/* Shared CTA */
.eds-inline-cta {
    padding-block: 0 86px;
    background: var(--eds-surface);
}

.eds-inline-cta__box {
    display: grid;
    gap: 28px;
    padding: 34px;
    border-radius: var(--eds-radius-xl);
    background:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        var(--eds-brand-800);
    background-size: 28px 28px, 28px 28px, auto;
    color: #fff;
}

.eds-inline-cta h2 {
    max-width: 760px;
    margin: 11px 0 8px;
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.35rem);
    line-height: 1.55;
}

.eds-inline-cta p {
    max-width: 690px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.eds-button--light {
    border-color: #fff;
    background: #fff;
    color: var(--eds-brand-800);
}

.eds-button--outline-light {
    border-color: rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
}

/* Single hero and body */
.eds-single-hero__summary {
    padding: 24px;
    border: 1px solid var(--eds-border);
    border-radius: var(--eds-radius-lg);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--eds-shadow-sm);
}

.eds-single-hero__number {
    display: block;
    margin-bottom: 20px;
    color: var(--eds-cyan-500);
    font-size: 2.6rem;
    font-weight: 250;
    line-height: 1;
}

.eds-single-hero__summary dl,
.eds-single-hero__summary dl div {
    margin: 0;
}

.eds-single-hero__summary dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 10px;
    border-top: 1px solid var(--eds-border);
}

.eds-single-hero__summary dt {
    color: var(--eds-text-muted);
    font-size: 0.72rem;
}

.eds-single-hero__summary dd {
    margin: 0;
    color: var(--eds-brand-800);
    font-size: 0.78rem;
    font-weight: 750;
}

.eds-term-list--hero {
    margin-top: 24px;
}

.eds-term-list--hero li {
    background: rgba(255, 255, 255, 0.72);
}

.eds-single-cover,
.eds-article-cover {
    padding-block: 34px 0;
}

.eds-single-cover img,
.eds-article-cover img {
    width: 100%;
    max-height: 720px;
    border: 1px solid var(--eds-border);
    border-radius: var(--eds-radius-xl);
    object-fit: cover;
    box-shadow: var(--eds-shadow-sm);
}

.eds-single-body,
.eds-page-body {
    padding-block: 64px 86px;
}

.eds-single-body__grid,
.eds-article-layout {
    display: grid;
    gap: 44px;
}

.eds-prose {
    min-width: 0;
    color: var(--eds-text-primary);
    font-size: 1rem;
    line-height: 2.15;
}

.eds-prose > *:first-child {
    margin-top: 0;
}

.eds-prose h2,
.eds-prose h3,
.eds-prose h4 {
    color: var(--eds-brand-800);
    line-height: 1.65;
}

.eds-prose h2 {
    margin: 2.2em 0 0.7em;
    font-size: clamp(1.55rem, 4vw, 2.2rem);
}

.eds-prose h3 {
    margin: 1.9em 0 0.65em;
    font-size: 1.35rem;
}

.eds-prose p,
.eds-prose ul,
.eds-prose ol,
.eds-prose blockquote,
.eds-prose table {
    margin-block: 1.25em;
}

.eds-prose ul,
.eds-prose ol {
    padding-inline-start: 1.5em;
}

.eds-prose a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.eds-prose blockquote {
    margin-inline: 0;
    padding: 24px;
    border-inline-start: 4px solid var(--eds-teal-600);
    border-radius: 0 var(--eds-radius-md) var(--eds-radius-md) 0;
    background: var(--eds-teal-50);
    color: var(--eds-brand-800);
}

.eds-prose img {
    height: auto;
    border-radius: var(--eds-radius-lg);
}

.eds-prose table {
    display: block;
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse;
}

.eds-prose th,
.eds-prose td {
    padding: 12px 15px;
    border: 1px solid var(--eds-border);
    text-align: right;
    white-space: nowrap;
}

.eds-prose th {
    background: var(--eds-canvas);
    color: var(--eds-brand-800);
}

.eds-prose__lead {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--eds-border);
    color: var(--eds-text-secondary);
    font-size: 1.12rem;
}

.eds-single-aside,
.eds-article-aside {
    display: grid;
    align-content: start;
    gap: 18px;
}

.eds-single-aside__card,
.eds-single-aside__facts {
    padding: 24px;
    border: 1px solid var(--eds-border);
    border-radius: var(--eds-radius-lg);
    background: var(--eds-canvas);
}

.eds-single-aside__card h2 {
    margin: 12px 0 10px;
    color: var(--eds-brand-800);
    font-size: 1.25rem;
    line-height: 1.7;
}

.eds-single-aside__card p {
    margin: 0 0 20px;
    color: var(--eds-text-secondary);
    font-size: 0.86rem;
}

.eds-single-aside__card .eds-button {
    width: 100%;
}

.eds-single-aside__facts h3 {
    margin: 0 0 12px;
    color: var(--eds-brand-800);
    font-size: 1rem;
}

.eds-single-aside__facts ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eds-single-aside__facts li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-block: 9px;
    border-top: 1px solid var(--eds-border);
    font-size: 0.75rem;
}

.eds-single-aside__facts span {
    color: var(--eds-text-muted);
}

.eds-single-aside__facts strong {
    color: var(--eds-brand-800);
}

.eds-related-content {
    padding-block: 72px;
    background: var(--eds-canvas);
}

.eds-related-content__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 30px;
}

.eds-related-content h2 {
    margin: 10px 0 0;
    color: var(--eds-brand-800);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
}

/* Magazine */
.eds-article-hero__inner {
    max-width: 1040px;
}

.eds-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 24px;
    color: var(--eds-text-muted);
    font-size: 0.78rem;
}

.eds-article-meta span:not(:last-child)::after {
    margin-inline-start: 22px;
    color: var(--eds-border-strong);
    content: "•";
}

.eds-article-layout {
    padding-block: 64px 86px;
}

/* Pages */
.eds-page-hero > .eds-container > p {
    margin-top: 18px;
}

.eds-prose--page {
    max-width: 900px;
}

/* 404 */
.eds-not-found {
    min-height: 70vh;
    padding-block: 64px 90px;
    background:
        linear-gradient(rgba(8, 124, 132, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 124, 132, 0.04) 1px, transparent 1px),
        var(--eds-surface);
    background-size: 32px 32px;
}

.eds-not-found__inner {
    max-width: 920px;
}

.eds-not-found__code {
    display: block;
    color: rgba(50, 184, 197, 0.42);
    font-size: clamp(5rem, 20vw, 12rem);
    font-weight: 200;
    line-height: 0.9;
}

.eds-not-found h1 {
    margin: 18px 0 10px;
    color: var(--eds-brand-800);
    font-size: clamp(2rem, 6vw, 3.7rem);
    line-height: 1.4;
}

.eds-not-found p {
    max-width: 680px;
    margin: 0 0 26px;
    color: var(--eds-text-secondary);
}

@media (min-width: 700px) {
    .eds-content-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eds-inline-cta__box {
        padding: 42px;
    }
}

@media (min-width: 960px) {
    .eds-archive-hero,
    .eds-page-hero,
    .eds-single-hero,
    .eds-article-hero {
        padding-block: 68px 84px;
    }

    .eds-archive-hero__grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
        align-items: end;
    }

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

    .eds-content-grid--client,
    .eds-content-grid--testimonial {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .eds-inline-cta__box {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 46px 50px;
    }

    .eds-single-hero__grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: end;
    }

    .eds-single-body__grid,
    .eds-article-layout {
        grid-template-columns: minmax(0, 1fr) 310px;
        align-items: start;
    }

    .eds-single-aside,
    .eds-article-aside {
        position: sticky;
        top: calc(var(--eds-header-height) + 24px);
    }
}

@media (max-width: 699px) {
    .eds-archive-hero,
    .eds-page-hero,
    .eds-single-hero,
    .eds-article-hero {
        padding-block: 34px 48px;
    }

    .eds-breadcrumbs {
        margin-bottom: 24px;
    }

    .eds-archive-hero h1,
    .eds-page-hero h1,
    .eds-single-hero h1,
    .eds-article-hero h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .eds-archive-body,
    .eds-single-body,
    .eds-page-body,
    .eds-article-layout {
        padding-block: 46px 64px;
    }

    .eds-content-card__body {
        min-height: 0;
        padding: 22px;
    }

    .eds-inline-cta {
        padding-bottom: 64px;
    }

    .eds-inline-cta__box {
        padding: 26px;
    }

    .eds-inline-cta .eds-button-group,
    .eds-inline-cta .eds-button {
        width: 100%;
    }

    .eds-article-meta span::after {
        display: none;
    }
}
