/* ============================================================================
   kp-modern theme — shared chrome for 2027+ KP Medicare microsites.
   Navy masthead + KP dark-blue footer + intro-band polish, ported from the
   agent site's 2026 Lead-Gen redesign and aligned to kp-design-system/tokens.css.

   Registered (after the 2027 Vite bundle) by layout-2027.php only when the
   resolved theme is 'kp-modern', and scoped under body.theme-kp-modern so it is
   fully self-contained and cannot leak into the classic theme.

   Palette: navy #0D1C3D, navy accent / blue-dark #003b71, blue #0078B3,
   footer field #003b71 / text #cdd9e8.
   ============================================================================ */

/* ---- masthead ---- */
.theme-kp-modern header#header {
    background: #0D1C3D;
    border-top: 24px solid #003b71;
    margin: 0;
    padding: 0;
}

.theme-kp-modern header#header .masthead-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-kp-modern header#header .masthead-brand {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.theme-kp-modern header#header .logo-link {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.theme-kp-modern header#header .logo-img {
    display: block;
    width: 210px;
    height: auto;
    max-width: 52vw;
}

.theme-kp-modern header#header .logo-text {
    /* Gotham (licensed) → Montserrat (free substitute) → system sans */
    font-family: 'Gotham 4r', 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    margin: 0;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.45);
}

/* font-size adjuster sits where the agent header has its language toggle */
.theme-kp-modern header#header .adjust-font-size {
    margin: 0 0 0 auto;
    white-space: nowrap;
    color: #fff;
}

.theme-kp-modern header#header .adjust-font-size span {
    color: #fff;
    margin-right: 6px;
}

.theme-kp-modern header#header .adjust-font-size button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    border-radius: 4px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 2px;
}

.theme-kp-modern header#header .adjust-font-size .font-size-smaller { font-size: 13px; }
.theme-kp-modern header#header .adjust-font-size .font-size-normal { font-size: 16px; }
.theme-kp-modern header#header .adjust-font-size .font-size-larger { font-size: 20px; }

.theme-kp-modern header#header .adjust-font-size button:hover,
.theme-kp-modern header#header .adjust-font-size button:focus {
    background: rgba(255, 255, 255, 0.15);
}

/* ---- footer (duplicates kp-design-system/sample.html footer treatment) ---- */
/* Dark-blue footer: navy-blue field with light text, links light, and a
   hairline-topped .foot-bottom row for the trailing metadata. Tokens:
   bg #003b71 (--kp-blue-dark), text #cdd9e8, padding 64px/32px
   (--kp-space-8 / --kp-space-6). */
.theme-kp-modern footer {
    margin-top: 48px;          /* --kp-space-7 */
    padding: 64px 0 32px;      /* --kp-space-8 0 --kp-space-6 */
    background: #003b71;
    color: #cdd9e8;
    line-height: 1.5;          /* --kp-leading-relaxed */
}

.theme-kp-modern footer a,
.theme-kp-modern footer a:visited {
    color: #cdd9e8;
    text-decoration: underline;
}

.theme-kp-modern footer a:hover,
.theme-kp-modern footer a:focus {
    color: #fff;
}

/* centered block sized to the legal width; legal text inside is left-justified */
.theme-kp-modern footer .footer-content-wrap {
    text-align: center;
}

.theme-kp-modern footer .footer-content {
    display: inline-block;
    text-align: left;
    max-width: 960px;
}

.theme-kp-modern footer .footer-content p {
    margin: 0 0 10px;
}

.theme-kp-modern footer .footer-content .footnote sup {
    font-weight: 700;
    margin-right: 2px;
}

/* trailing metadata (MMID / last-update), set off like the sample's .foot-bottom */
.theme-kp-modern footer .foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 32px;          /* --kp-space-6 */
    padding-top: 16px;         /* --kp-space-4 */
}

.theme-kp-modern footer .foot-bottom p:last-child {
    margin-bottom: 0;
}

/* ---- masthead responsive ---- */
@media (max-width: 767px) {
    .theme-kp-modern header#header {
        border-top-width: 10px;
    }
    .theme-kp-modern header#header .masthead-inner {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 6px 12px;
    }
    .theme-kp-modern header#header .logo-img {
        width: 158px;
    }
    .theme-kp-modern header#header .logo-text {
        font-size: 15px;
        padding-left: 12px;
    }
    .theme-kp-modern header#header .adjust-font-size {
        flex: 0 0 100%;
        margin-left: 0;
        text-align: right;
    }
}

/* ============================================================================
   Intro section polish — values aligned to kp-design-system/tokens.css.
   ============================================================================ */

/* breathing room between the navy masthead and the first content container
   (--kp-space-7: 48px) */
.theme-kp-modern #content {
    padding-top: 48px;
}

/* rounded, softly-shadowed intro photo (--kp-radius-lg: 16px,
   --kp-shadow-card: 0 2px 8px rgba(0,0,0,.08)) */
.theme-kp-modern .row.agent .img-responsive {
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* greeting tied to the navy masthead (--kp-blue-dark: #003b71) */
.theme-kp-modern .row.agent .intro h2 {
    color: #003b71;
}

@media (max-width: 767px) {
    .theme-kp-modern #content {
        padding-top: 32px; /* --kp-space-6 */
    }
}
