.corporate-history {
    color: #25334a;
    background: #fff;
}

.history-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.history-intro {
    padding: 24px 0 46px;
    border-bottom: 1px solid #e1e6f0;
    background: #f2f5fc;
}

.history-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
    color: #657087;
    font-size: 13px;
    line-height: 1.5;
}

.corporate-history .history-breadcrumb a:hover {
    color: #b31327;
    text-decoration: underline;
}

.history-eyebrow {
    margin: 0 0 14px;
    color: #b31327;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    text-transform: uppercase;
}

.history-intro h1 {
    margin: 0;
    color: #07166d;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
}

.history-lead {
    max-width: 790px;
    margin: 20px 0 0;
    color: #4c5b72;
    font-size: 18px;
    line-height: 1.75;
}

.history-layout {
    display: grid;
    grid-template-columns: 212px minmax(0, 1fr);
    align-items: start;
    gap: 64px;
    padding: 56px 0 72px;
}

.history-sidebar {
    position: sticky;
    top: var(--history-scroll-offset, 154px);
    min-width: 0;
}

.history-nav-label {
    margin: 0 0 16px;
    color: #69758b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
}

.history-index-links {
    display: grid;
    border-left: 1px solid #dce3f0;
}

.history-index-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    margin-left: -1px;
    padding: 10px 14px;
    border-left: 3px solid transparent;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.history-index-links a > span {
    color: #8790a3;
    font-size: 11px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.corporate-history .history-index-links a:hover {
    color: #07166d;
    background: #f7f9fd;
}

.corporate-history .history-index-links a[aria-current="location"] {
    border-color: #b31327;
    color: #07166d;
    background: #f2f5fc;
}

.history-related {
    display: grid;
    gap: 4px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #e1e6f0;
}

.history-related .history-nav-label {
    margin-bottom: 8px;
}

.history-related a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.corporate-history .history-related a:hover {
    color: #b31327;
}

.history-related a > span {
    color: #b31327;
    font-size: 18px;
}

.history-document {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    gap: 48px 32px;
}

.history-section {
    grid-column: 1 / -1;
    min-width: 0;
    padding-top: 36px;
    border-top: 1px solid #e1e6f0;
    scroll-margin-top: var(--history-scroll-offset, 154px);
}

.history-section-story {
    padding-top: 0;
    border: 0;
}

.history-section-heading {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 24px;
}

.history-section-number {
    flex: 0 0 auto;
    color: #b31327;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.history-section h2 {
    margin: 0;
    color: #07166d;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.history-section-body {
    min-width: 0;
    color: #4c5b72;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.history-section-body p {
    margin: 0 0 18px;
}

.history-section-body > :last-child {
    margin-bottom: 0;
}

.history-section-body ul,
.history-section-body ol {
    margin: 16px 0 24px;
    padding-left: 22px;
}

.history-section-body li {
    margin-bottom: 12px;
    padding-left: 4px;
}

.history-section-body li::marker {
    color: #0c817e;
}

.history-section-body strong {
    color: #25334a;
    font-weight: 600;
}

.history-story-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    align-items: start;
    gap: 32px;
}

.history-community {
    min-width: 0;
    margin: 0;
}

.history-community img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 578 / 432;
    object-fit: cover;
}

.history-community figcaption {
    display: grid;
    gap: 5px;
    padding: 16px 0;
    border-bottom: 2px solid #0c817e;
    color: #657087;
    font-size: 12px;
    line-height: 1.5;
}

.history-community figcaption strong {
    color: #07166d;
    font-size: 14px;
    font-weight: 600;
}

.history-section-principle {
    grid-column: auto;
    border-top: 3px solid #07166d;
}

.history-section-principle + .history-section-principle {
    border-color: #0c817e;
}

.history-section-principle .history-section-body {
    font-size: 18px;
    line-height: 1.7;
}

.history-section-values {
    padding-top: 0;
    overflow: hidden;
    border: 1px solid #dce5ed;
    border-radius: 12px;
    background: #fff;
}

.history-values-header {
    padding: 20px 22px;
    border-left: 5px solid #6ea8e5;
    background: #fff;
}

.history-values-header .history-section-heading {
    margin-bottom: 8px;
}

.history-values-header .history-section-number {
    color: #23639d;
}

.history-values-header h2 {
    color: #07166d;
}

.history-values-intro {
    max-width: 54ch;
    margin: 0;
    color: #405d7c;
    font-size: 15px;
    line-height: 1.6;
}

.history-section-values .history-section-body {
    padding: 0 22px;
}

.history-section-values .history-section-body > ul,
.history-section-values .history-section-body > ol {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: history-value;
}

.history-section-values .history-section-body > ul > li,
.history-section-values .history-section-body > ol > li {
    position: relative;
    margin: 0;
    padding: 14px 0 14px 48px;
    border-top: 1px solid #e5ebef;
    color: #34465b;
    font-size: 16px;
    line-height: 1.65;
    counter-increment: history-value;
}

.history-section-values .history-section-body > ul > li:first-child,
.history-section-values .history-section-body > ol > li:first-child {
    border-top: 0;
}

.history-section-values .history-section-body > ul > li::before,
.history-section-values .history-section-body > ol > li::before {
    content: counter(history-value, decimal-leading-zero);
    position: absolute;
    top: 14px;
    left: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #086b65;
    background: #e7f4f1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.history-section-values .history-section-body > ul > li > :last-child,
.history-section-values .history-section-body > ol > li > :last-child {
    margin-bottom: 0;
}

.corporate-history .history-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 44px;
    margin-top: 24px;
    padding: 8px 0;
    border-bottom: 1px solid #c5cedf;
    color: #07166d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.corporate-history .history-text-link:hover {
    border-color: #b31327;
    color: #b31327;
}

.history-contact-band {
    padding: 44px 0;
    border-top: 1px solid #e1e6f0;
    background: #f2f5fc;
}

.history-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.history-contact-inner h2 {
    margin: 0;
    color: #07166d;
    font-size: 28px;
    line-height: 1.3;
}

.history-contact-inner p:not(.history-eyebrow) {
    max-width: 520px;
    margin: 14px 0 0;
    color: #4c5b72;
    font-size: 15px;
    line-height: 1.7;
}

.history-contact-actions {
    display: grid;
    flex: 0 0 auto;
    justify-items: start;
    gap: 8px;
}

.corporate-history .history-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid #07166d;
    border-radius: 4px;
    color: #fff;
    background: #07166d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.corporate-history .history-primary-link:hover {
    border-color: #b31327;
    background: #b31327;
}

.history-contact-actions .history-text-link {
    margin-top: 0;
}

.corporate-history main a:focus-visible {
    outline: 2px solid #1769aa;
    outline-offset: 4px;
}

@media (max-width: 1000px) {
    .history-layout {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 0;
    }

    .history-sidebar {
        top: var(--history-header-height, 128px);
        z-index: 9;
        margin: 0 -24px;
        padding: 16px 24px 0;
        border-bottom: 1px solid #e1e6f0;
        background: #fff;
    }

    .history-nav-label {
        margin-bottom: 6px;
    }

    .history-index-links {
        display: flex;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        border: 0;
        scrollbar-width: thin;
    }

    .history-index-links a {
        flex: 0 0 auto;
        margin: 0;
        padding: 12px 14px;
        border-left: 0;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }

    .history-index-links a > span,
    .history-related {
        display: none;
    }
}

@media (max-width: 680px) {
    .history-container {
        width: calc(100% - 40px);
    }

    .history-intro {
        padding: 20px 0 32px;
    }

    .history-breadcrumb {
        margin-bottom: 24px;
    }

    .history-intro h1 {
        font-size: 36px;
    }

    .history-lead {
        margin-top: 16px;
        font-size: 16px;
    }

    .history-layout {
        gap: 32px;
        padding-bottom: 44px;
    }

    .history-sidebar {
        margin: 0 -20px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .history-document {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .history-section {
        grid-column: 1;
        padding-top: 28px;
    }

    .history-section-story {
        padding-top: 0;
    }

    .history-section h2 {
        font-size: 24px;
    }

    .history-section-heading {
        gap: 10px;
        margin-bottom: 20px;
    }

    .history-story-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .history-community {
        grid-row: 1;
    }

    .history-section-values {
        padding-top: 0;
    }

    .history-values-header {
        padding: 16px;
    }

    .history-section-values .history-section-body {
        padding: 0 14px;
    }

    .history-section-values .history-section-body > ul > li,
    .history-section-values .history-section-body > ol > li {
        padding: 12px 0 12px 40px;
        font-size: 15px;
    }

    .history-section-values .history-section-body > ul > li::before,
    .history-section-values .history-section-body > ol > li::before {
        top: 12px;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .history-contact-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .history-contact-inner h2 {
        font-size: 26px;
    }

    .history-contact-band {
        padding: 36px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:has(.corporate-history) {
        scroll-behavior: auto;
    }
}
