/* Key Personnel — simple, professional single-column directory */
:root {
    --kp-maroon: #8f2938;
    --kp-maroon-bright: #b53b4c;
    --kp-navy: #0b2035;
    --kp-text: #26323e;
    --kp-muted: #000;
    --kp-border: #dfe4e8;
    --kp-surface: #fff;
    --kp-page: #f6f7f8;
}

/* The homepage-style editorial heading. */
.c-layout-page > .c-layout-breadcrumbs-1:first-child { display: none; }

.kp-page-heading {
    padding: 54px 0 42px;
    border-bottom: 1px solid #e5e8eb;
    background: #fff;
}

.kp-page-heading .nespak-section-heading { margin: 0; }

.kp-page-heading .nespak-section-heading__eyebrow {
    margin: 0 0 10px;
    color: var(--kp-maroon);
    font-family: "ABC Diatype", Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .7px;
    line-height: 1.15;
    text-transform: uppercase;
}

.kp-page-heading .nespak-section-heading__title {
    margin: 0;
    color: var(--kp-navy);
    font-family: "ABC Diatype", Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.35px;
    line-height: 1.16;
}

.kp-page-heading .nespak-section-heading__title::after {
    content: "";
    display: block;
    width: 46px;
    height: 4px;
    margin-top: 18px;
    background: var(--kp-maroon-bright);
}

.c-layout-page { background: var(--kp-page); }
.kp-directory { max-width: 1050px; padding-top: 44px; padding-bottom: 70px; }
.kp-directory > .c-content-box { padding: 0 !important; }
.kp-directory > .c-content-box > .c-margin-t-20 { display: none; }

/* One profile per row. */
.kp-directory .row.c-margin-b-40 {
    width: 100%;
    margin: 0 0 22px !important;
}

.kp-directory .c-content-product-2 {
    position: relative;
    display: flex;
    min-height: 250px;
    overflow: hidden;
    border: 1px solid var(--kp-border);
    border-radius: 3px;
    background: var(--kp-surface);
    box-shadow: 0 3px 12px rgba(11,32,53,.055);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.kp-directory .c-content-product-2::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: var(--kp-maroon);
}

.kp-directory .c-content-product-2:hover {
    border-color: #cbd3d9;
    box-shadow: 0 7px 20px rgba(11,32,53,.09);
}

/* Portrait sits at the upper-left of every card. */
.kp-directory .c-content-product-2 > .col-md-4 {
    float: none;
    flex: 0 0 205px;
    width: 205px;
    padding: 24px 0 24px 24px;
}

.kp-directory .c-content-overlay {
    width: 180px;
    height: 202px;
    overflow: hidden;
    border-radius: 2px;
    background: #e6eaed;
}

.kp-directory .c-content-overlay .c-image {
    width: 180px !important;
    height: 202px !important;
    min-height: 202px;
    background-position: center top !important;
    background-size: cover !important;
}

.kp-directory .c-content-product-2 > .col-md-8 {
    float: none;
    display: flex;
    align-items: flex-start;
    flex: 1 1 auto;
    width: auto;
    padding: 28px 34px 28px 32px;
}

.kp-directory .c-info-list { width: 100%; }
.kp-directory .c-title { margin: 0 0 15px !important; }

.kp-directory .c-title .c-theme-link {
    display: block;
    color: var(--kp-navy) !important;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.kp-directory .c-title .c-theme-link small {
    display: inline-block;
    margin-top: 3px;
    color: var(--kp-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.kp-directory .c-title .c-theme-link::after {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 13px;
    background: var(--kp-maroon-bright);
}

.kp-directory .c-desc {
    margin: 0;
    color: var(--kp-muted);
    font-family: "Roboto Condensed", Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 300;
    line-height: 1.65;
    text-align: justify;
}

.kp-directory .c-desc strong {
    color: var(--kp-text);
    font-weight: 700;
}

/* Separate the statutory focal-person card while keeping the same layout. */
.kp-directory .c-layout-breadcrumbs-1 {
    margin: 48px 0 22px;
    padding: 0;
    border: 0 !important;
    background: transparent;
}

.kp-directory .c-layout-breadcrumbs-1 .container { width: auto; padding: 0; }
.kp-directory .c-layout-breadcrumbs-1 .c-page-title { float: none !important; }

.kp-directory .c-layout-breadcrumbs-1 h1,
.kp-directory .c-layout-breadcrumbs-1 h2 {
    margin: 0;
    color: var(--kp-navy);
    font-family: "ABC Diatype", Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none !important;
}

.kp-directory .c-layout-breadcrumbs-1 h1::after,
.kp-directory .c-layout-breadcrumbs-1 h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 14px;
    background: var(--kp-maroon-bright);
}

.kp-directory .kp-profile-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ba8b1;
    font-size: 56px;
    background: linear-gradient(145deg, #dce2e6, #eef1f3);
}

.kp-directory .c-desc a { color: var(--kp-maroon); }

/* Our Offices reuses the Key Personnel row layout with office icons. */
.our-offices-key-page .kp-page-heading .nespak-section-heading__title {
    text-transform: none;
}

.office-directory .office-section-heading:first-of-type {
    margin-top: 0;
}

.office-directory .c-title .c-theme-link small {
    display: block;
}

.office-directory .c-content-overlay .c-image {
    background-position: center center !important;
}

.office-directory .office-card-no-image > .col-md-8 {
    width: 100%;
    padding-left: 34px;
}

.kp-directory [style*="img/key/.jpg"] {
    position: relative;
    background-image: linear-gradient(145deg, #dce2e6, #eef1f3) !important;
}

.kp-directory [style*="img/key/.jpg"]::after {
    content: "\f007";
    position: absolute;
    top: 50%;
    left: 50%;
    color: #9ba8b1;
    font: 56px/1 FontAwesome;
    transform: translate(-50%, -50%);
}

@media (max-width: 767px) {
    .kp-page-heading { padding: 42px 0 34px; }
    .kp-page-heading .nespak-section-heading__title { font-size: 26px; }
    .kp-directory { padding-top: 32px; padding-bottom: 50px; }

    .kp-directory .c-content-product-2 {
        display: block;
        min-height: 0;
    }

    .kp-directory .c-content-product-2::before {
        right: 0;
        bottom: auto;
        width: auto;
        height: 4px;
    }

    .kp-directory .c-content-product-2 > .col-md-4 {
        width: 100%;
        padding: 24px 24px 0;
    }

    .kp-directory .c-content-product-2 > .col-md-8 {
        width: 100%;
        padding: 23px 24px 28px;
    }

    .kp-directory .c-layout-breadcrumbs-1 { margin-top: 38px; }
    .kp-directory .c-layout-breadcrumbs-1 h1,
    .kp-directory .c-layout-breadcrumbs-1 h2 { font-size: 22px; }
}

@media (max-width: 480px) {
    .kp-page-heading .nespak-section-heading__eyebrow { font-size: 15px; }
    .kp-page-heading .nespak-section-heading__title { font-size: 23px; }
    .kp-directory .c-content-overlay,
    .kp-directory .c-content-overlay .c-image {
        width: 150px !important;
        height: 170px !important;
        min-height: 170px;
    }

    .kp-directory .c-title .c-theme-link { font-size: 20px; }
    .kp-directory .c-desc { font-size: 15px !important; }
}
