.engineering-legacy .site-nav [aria-current="page"] {
    color: var(--db-blue) !important;
    background: #edf4ff;
}

.legacy-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: clamp(24px, 4vw, 54px);
}
.engineering-legacy .listing-hero h1 { text-wrap: pretty; }
.legacy-hero-line {
    margin: 12px 0 0;
    color: var(--db-ink);
    font-size: clamp(1.1rem, 2vw, 1.42rem);
    line-height: 1.4;
    font-weight: 800;
}
.legacy-hero-figure { min-width: 0; margin: 0; }
.legacy-hero-figure img, .legacy-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #eaf1fa;
}
.legacy-hero-figure img {
    border: 1px solid rgba(17, 55, 108, .14);
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(17, 55, 108, .13);
}
.legacy-search { align-items: end; justify-content: flex-start; padding: 12px; }
.legacy-search label { flex: 1 1 190px; min-width: 0; color: var(--db-ink); font-size: .86rem; font-weight: 700; }
.legacy-search label:first-child { flex-grow: 2; }
.legacy-search .listing-search { display: block; width: 100%; max-width: none; margin-top: 5px; }
.legacy-search .btn { flex-shrink: 0; }
.legacy-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.legacy-stage-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
}
.legacy-stage-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--db-line);
    border-radius: 10px;
    background: var(--db-paper);
    color: var(--db-ink);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}
.legacy-stage-links a:hover { color: var(--db-blue); border-color: var(--db-blue); }
.legacy-stage + .legacy-stage { margin-top: clamp(34px, 5vw, 62px); }
.legacy-stage > h3 { margin: 0 0 6px; font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 800; }
.legacy-stage > p { margin-bottom: 16px; color: #405471; }
.legacy-card {
    display: flex;
    flex-direction: column;
    overflow: clip;
    min-width: 0;
    border: 1px solid var(--db-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(18, 57, 104, .06);
}
.legacy-card figure { margin: 0; }
.legacy-card-body { display: flex; flex: 1; flex-direction: column; padding: clamp(16px, 3vw, 24px); }
.legacy-card-body h4 { font-size: clamp(1.15rem, 2vw, 1.42rem); line-height: 1.2; margin: 0 0 9px; font-weight: 800; }
.legacy-card-body h4 a { color: var(--db-ink); text-decoration: none; }
.legacy-card-body h4 a:hover { color: var(--db-blue); text-decoration: underline; }
.legacy-card-body > p { margin-bottom: 12px; color: #405471; }
.legacy-card-body .legacy-meta {
    color: var(--db-blue);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.4;
    text-transform: uppercase;
}
.legacy-card-body .listing-text-link { margin-top: auto; align-self: start; }
.legacy-journey { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; }
.legacy-journey li { border-inline-start: 3px solid var(--db-blue); border-radius: 0 14px 14px 0; padding: 16px 18px; background: #fff; }
.legacy-journey li strong { color: var(--db-blue); }
.legacy-journey h3 { margin: 5px 0; font-size: 1.18rem; font-weight: 800; }
.legacy-journey h3 a { color: var(--db-blue); }
.legacy-journey p { margin-bottom: 0; color: #405471; }
.legacy-detail-hero h1 { font-size: clamp(2.08rem, 4.45vw, 3.85rem); }
.legacy-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; color: #4e627d; font-size: .9rem; }
.legacy-breadcrumb a, .legacy-related a { color: var(--db-blue); }
.legacy-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
    gap: clamp(24px, 6vw, 74px);
    align-items: start;
    padding-block: clamp(36px, 5vw, 65px);
}
.engineering-legacy main { background: #fff; }
.legacy-prose { max-width: 74ch; }
.legacy-prose-section + .legacy-prose-section { margin-top: 28px; }
.engineering-legacy .legacy-prose h2 { margin-bottom: 10px; font-size: clamp(1.38rem, 2.5vw, 1.85rem); font-weight: 800; }
.legacy-prose p { color: #344a66; line-height: 1.75; }
.legacy-context { padding: 16px 18px; margin: 0 0 24px; border-inline-start: 3px solid var(--db-amber); border-radius: 0 12px 12px 0; background: var(--db-paper); }
.legacy-related { padding: 20px; border: 1px solid var(--db-line); border-radius: 18px; background: var(--db-paper); }
.engineering-legacy .legacy-related h2 { font-size: 1.45rem; font-weight: 800; }
.legacy-related h3 { margin: 16px 0 8px; font-size: 1rem; font-weight: 800; }
.legacy-related ul { padding-inline-start: 20px; margin-bottom: 0; }
.legacy-related li + li { margin-top: 8px; }

.hero-showcase { position: relative; min-width: 0; }
body.site-home #home .hero-slide:first-child h1 span { display: block; }
.hero-experience {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    gap: clamp(10px, 2vw, 17px);
    margin: 14px auto 0;
    padding: 13px 17px;
    border: 1px solid #a8c2e9;
    border-radius: 15px;
    background: #fff;
    color: var(--db-ink);
    text-decoration: none;
    box-shadow: 0 12px 35px rgba(13, 53, 111, .15);
}
.hero-experience:hover { color: var(--db-blue); border-color: var(--db-blue); }
.hero-experience strong { color: var(--db-blue); font-size: clamp(1.18rem, 2.4vw, 1.66rem); line-height: 1.06; white-space: nowrap; }
.hero-experience-copy { flex: 1; display: grid; gap: 3px; padding-inline-start: 13px; border-inline-start: 1px solid #c9d9f0; }
.hero-experience-copy span { font-size: .83rem; font-weight: 800; line-height: 1.4; }
.hero-experience-copy small { color: #425979; font-weight: 700; }
.hero-experience-arrow { color: var(--db-blue); }
.track-record-note .btn { margin: 0; }

@media (min-width: 992px) {
    .legacy-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-experience { position: absolute; right: 32px; bottom: 5px; margin: 0; }
    body.site-home #home .hero-system-card { transform: translateY(-105px) rotate(-3deg); }
    body.site-home #home .hero-float { transform: translateY(-105px); }
    body.site-home #home .hero-float--bottom { bottom: 44px; }
    body.site-home #home .hero-float--top { right: 0; }
}
@media (max-width: 991.98px) {
    .legacy-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .legacy-hero-figure { width: min(100%, 650px); }
    .hero-showcase { display: grid; }
    .hero-experience { order: -1; margin: 0 auto 16px; }
}
@media (max-width: 649.98px) {
    .legacy-cards, .legacy-journey, .legacy-detail-grid { grid-template-columns: minmax(0, 1fr); }
    .legacy-search label { flex-basis: 100%; }
}
@media (max-width: 575.98px) {
    body.site-home #home { padding-top: 112px !important; }
    body.site-home #home .hero-lead { line-height: 1.55; }
    .hero-experience {
        max-width: calc(100% - 76px);
        margin-inline: 0 auto;
        gap: 9px;
        padding-inline: 12px;
    }
    .hero-experience-copy { padding-inline-start: 9px; }
    .hero-experience-arrow { display: none; }
}
