:root {
    --kp-card-radius: 16px;
    --kp-card-shadow: 0 3px 10px rgba(1, 4, 28, 0.055);
    --kp-card-padding-compact: 1.25rem;
    --kp-card-padding-spacious: 1.5rem;
    --kp-card-gap-compact: 1rem;
    --kp-card-gap-spacious: 1.5rem;
    --kp-body-lead: 1.125rem; /* 18px / 13.5pt — all hero and prompt body copy */
    --kp-body-standard: 1rem; /* 16px / 12pt — standard supporting body copy */
}

@media (min-width: 768px) {
    :root {
        --kp-card-padding-compact: 1.5rem;
        --kp-card-padding-spacious: 2.5rem;
    }
}

/*Fonts: Bases
-------------------------------------------------- */
p,
.card-title,
.card-body,
ul,
ol,
.btn {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}


h1 {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.btn:not(.btn-link) {
    border-radius: 999px;
}


h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.6rem;
}

.h2-serif {
    padding-top: 1rem;
    font-family: 'EB Garamond', serif !important;
    font-size: 1.9rem;
}

.hr-after-h2{
    margin-top: 10px;
    margin-bottom: 1.5rem;
    border-width: 2px;
    border-color: lightgray;
}

/* to be used to add a break between paragraphs, as before a conclusion paragraph */
.hr-inline{
    margin-top: 3rem;
    margin-bottom: 3rem;
    border-width: 2px;
    width: 200px;
    border-color: lightgray;
}

h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
}

h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

strong {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
}

.serif-huge {
    padding-top: 1rem;
    font-family: 'EB Garamond', serif !important;
    font-size: 3rem;
}

blockquote {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    opacity: .6;
    padding-left: 2rem;
    border-left: 2px solid;
    border-color: rgb(177, 177, 177);
}

/* Fonts: Colors
--------------------------------------------------*/
.font-color-dark {
    color: rgb(233, 245, 255);
    opacity: .85;
}

.hr-color-dark{
    border-color: rgb(233, 245, 255);
    opacity: .85;
}

.font-color-dark-secondary {
    color: rgb(233, 245, 255);
    opacity: .92;
}

.font-color-mediumdark {
    color: rgb(233, 245, 255);
}

.font-color-brightblue{
    color: rgb(42, 108, 146);
}

.font-color-darkblue{
    color: rgb(31, 41, 101);
}


/*Fonts: Special styles
--------------------------------------------------*/
.p-detail {
    opacity: .6;
    padding-left: 1rem;
    border-left: 2px solid rgb(179, 179, 179);
}

.p-huge {
    font-size: 1.8rem; 
    font-weight: 500;
}

.border-right{
    border-right: 1px solid lightgray;
}


/*Reduces spacing between secondary header and primary header*/
.secondary-header-large-above {
    margin-top: .5rem;
}

.p-header-above {
    padding-top: 0rem;
}

.secondary-header-large {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 0rem;
    margin-top: 1rem;
    text-transform: uppercase;
}

.p-header {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: .25rem;
}


/*Using when there is a secondary heading immediately before H2*/
.h-translucent {
    opacity: 0.6;
}


.list-detail {
    opacity: .5;
    border-left: 1px solid;
}

.list-detail-p {
    margin-left: -1.5rem;
    margin-bottom: 0rem;
}


/* For list of paragraph-length text, as in a footnotes section */
.long-list li {
    padding-bottom: 1rem;
}


/* for captions that are as wide as the body text above and below them */
.figcaption-inline {
    text-align: center;
    padding: 0 5vw 0 5vw;
}


.landing-page-heading-h1 {
    font-size: 2.8rem;
}

.landing-page-heading-h2 {
    font-size: 1.2rem;
    padding-top: .5rem;
    font-weight: 300;
    line-height: 1.5rem;
}

.a-page-breadcrumb {
    font-family: 'Roboto', sans-serif;
    font-size: .8rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: rgb(0, 0, 0);
    opacity: .5;
}

.a-page-breadcrumb-dark {
    font-family: 'Roboto', sans-serif;
    font-size: .8rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: rgb(217, 227, 235);
    opacity: .5;
}

.a-page-breadcrumb:hover,
.a-page-breadcrumb:focus,
.a-page-breadcrumb-dark:hover,
.a-page-breadcrumb-dark:focus {
    text-decoration: none;
    color: rgb(122, 133, 143);
    opacity: .85;
}


/*links in text*/
.a-dark {
    text-decoration: none;
    color: rgb(108, 201, 255);
}

.a-dark:hover,
.a-dark:focus {
    text-decoration: none;
    color: rgb(36, 175, 255);
}

.a-dark-detail {
    text-decoration: none;
    color: rgb(145, 215, 255);
}

.a-dark-detail:hover,
.a-dark-detail:focus {
    text-decoration: none;
    color: rgb(82, 192, 255);
}

/*links in text*/
.link-no-href {
    text-decoration: none;
    color: #287CFF !important;
}

.link-no-href:hover,
.link-no-href:focus {
    text-decoration: none;
    color: #1E62CB !important;
}

/*links that navigate between pages in areas like sidebar and footer, that appear on dark backgrounds*/
.a-navigation-dark {
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    color: rgb(219, 230, 240);
}

.social-icon-block .a-navigation-dark {
    opacity: 0.85;
}

.a-navigation-dark:hover,
.a-navigation-dark:focus,
.a-navigation-dark:active {
    text-decoration: none;
    color: rgb(255, 255, 255);
}

/*links that navigate between pages in areas like sidebar and footer, that appear on dark backgrounds*/
.a-navigation-dark-small {
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    color: #6B7B85;
    font-size: .9rem !important;
}

.a-navigation-dark-small:hover,
.a-navigation-dark-small:focus,
.a-navigation-dark-small:active {
    text-decoration: none;
    color: rgb(161, 170, 177);
}

/*Social icons*/
.social-icon-block {
    font-size: 1.7rem;
}

/* containers
-------------------------------------------------- */
.container-body {
    padding-top: 2rem;
}

.container-dark {
    background-color: #090E35;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 0;
    padding-right: 0;
}

.container-light-secondary {
    background-color: rgb(245, 245, 245);
    padding: 1.5rem;
    border-radius: 4px;
}

.container-darkest {
    background-color: rgb(1, 4, 28);
}

.container-darkest-gradient {
    background: rgb(1, 4, 28);
    background: linear-gradient(180deg, rgb(1, 4, 28) 30%, rgb(6, 13, 58) 100%);
}

.landing-page-heading-container {
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 6rem;
}

.page-heading-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.page-heading-container-hero {
    padding-top: 2rem;
    padding-bottom: 15rem;
}

.no-text-decoration {
    text-decoration: none !important;
}

.container-video-modal-background {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-color: rgb(223, 237, 240);
}


/*Hero image
--------------------------------------------------*/
.bg-hero-gradient {
    /* image and gradient */
    background-image: linear-gradient(to bottom, rgba(1, 4, 28, 1) 0%, rgba(1, 4, 28, 0.6) 100%),
    url("media/hero_spacetime_branches.png");
    
    /* display a color similar to the image while browser is loading image */
    background-color: rgb(0, 112, 177);
    
    /* Full height */
    height: 100%;
    
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


.bg-hero-literature-card {
    background-color: #f3fbff;
}

.bg-hero-jobs-card {
    background-color: rgb(0, 99, 186);    
}

.bg-hero-pauli-smscreen {
    /* image and gradient */
    background-image: linear-gradient(to bottom, rgba(1, 4, 28, 1) 0%, rgba(1, 4, 28, 0) 80%),
    url("media/page-pauli_hero-smscreen.png");
    
    /* display a color similar to the image while browser is loading image */
    background-color: rgba(1, 4, 28, 1);
    
    /* Full height */
    height: 100%;
    
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-hero-pauli-lgscreen {
    /* image and gradient */
    background-image: linear-gradient(to bottom, rgba(1, 4, 28, 1) 0%, rgba(1, 4, 28, 0) 90%),
    url("media/page-pauli_hero-lgscreen.png");
    
    /* display a color similar to the image while browser is loading image */
    background-color: rgba(1, 4, 28, 1);
    
    /* Full height */
    height: 100%;
    
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-hero-blackholes-smscreen {
    /* image and gradient */
    background-image: linear-gradient(to bottom, rgba(1, 4, 28, 1) 0%, rgba(1, 4, 28, 0) 70%),
    url("media/page-blackhole_hero-smscreen.png");
    
    /* display a color similar to the image while browser is loading image */
    background-color: rgba(1, 4, 28, 1);
    
    /* Full height */
    height: 100%;
    
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-hero-blackholes-lgscreen {
    /* image and gradient */
    background-image: linear-gradient(to bottom, rgba(1, 4, 28, 1) 0%, rgba(1, 4, 28, 0) 40%),
    url("media/page-blackhole_hero-lgscreen.png");
    
    /* display a color similar to the image while browser is loading image */
    background-color: rgba(1, 4, 28, 1);
    
    /* Full height */
    height: 100%;
    
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-hero-superfluid-smscreen {
    /* image and gradient */
    background-image: url("media/page-superfluid_hero-smscreen.png");
    
    /* display a color similar to the image while browser is loading image */
    background-color: rgba(1, 4, 28, 1);
    
    /* Full height */
    height: 100%;
    
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-hero-superfluid-lgscreen {
    /* image and gradient */
    background-image: url("media/page-superfluid_hero-lgscreen.png");
    
    /* display a color similar to the image while browser is loading image */
    background-color: rgba(1, 4, 28, 1);
    
    /* Full height */
    height: 100%;
    
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-hero-cat-smscreen {
    /* image and gradient */
    background-image: url("media/page-cat_hero-smscreen.png");
    
    /* display a color similar to the image while browser is loading image */
    background-color: rgba(1, 4, 28, 1);
    
    /* Full height */
    height: 100%;
    
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-hero-cat-lgscreen {
    /* image and gradient */
    background-image: url("media/page-cat_hero-lgscreen.png");
    
    /* display a color similar to the image while browser is loading image */
    background-color: rgba(1, 4, 28, 1);
    
    /* Full height */
    height: 100%;
    
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-hero-visualizing-smscreen {
    /* image and gradient */
    background-image: linear-gradient(to bottom, rgba(1, 4, 28, 1) 0%, rgba(1, 4, 28, 0) 20%),
    url("media/page-visualizing_hero-smscreen.png");
    
    /* display a color similar to the image while browser is loading image */
    background-color: rgba(1, 4, 28, 1);
    
    /* Full height */
    height: 100%;
    
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-hero-visualizing-lgscreen {
    /* image and gradient */
    background-image: linear-gradient(to bottom, rgba(1, 4, 28, 1) 0%, rgba(1, 4, 28, 0) 20%),
    url("media/page-visualizing_hero-lgscreen.png");
    
    /* display a color similar to the image while browser is loading image */
    background-color: rgba(1, 4, 28, 1);
    
    /* Full height */
    height: 100%;
    
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-hero-origins-smscreen {
    /* image and gradient */
    background-image: linear-gradient(to bottom, rgba(1, 4, 28, 1) 0%, rgba(1, 4, 28, 0) 0%),
    url("media/page-origins_hero-smscreen.png");
    
    /* display a color similar to the image while browser is loading image */
    background-color: rgba(1, 4, 28, 1);
    
    /* Full height */
    height: 100%;
    
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-hero-origins-lgscreen {
    /* image and gradient */
    background-image: linear-gradient(to bottom, rgba(1, 4, 28, 1) 0%, rgba(1, 4, 28, 0) 0%),
    url("media/page-origins_hero-lgscreen.png");
    
    /* display a color similar to the image while browser is loading image */
    background-color: rgba(1, 4, 28, 1);
    
    /* Full height */
    height: 100%;
    
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*card
-------------------------------------------------- */

.card-image {
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 100%;
}

.card-overlay {
    background: rgb(1, 4, 28, 0.5);
}

.card-margin {
    margin-bottom: 2rem;
}

a.card-link,
a.card-link:hover {
    color: inherit;
}

.card-no-border {
    border: none;
}

.card-body-no-border {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0.5rem;
}

/*make cards of equal height within a row*/
.row.equal-height {
    display: flex;
    flex-wrap: wrap;
}
.row.equal-height > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.equal-height .card {
    flex: 1;
}

/*make cards of equal height within a column*/
.col.equal-height {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

.equal-height .card {
    flex: 1;
}



/*Accordion
-------------------------------------------------- */
.accordion-caret:after {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: "\f068";
    float: left;
    margin-right: 1rem;
    color: gray;
}

.accordion-caret.collapsed:after {
    /* symbol for "collapsed" panels */
    content: "\f067";
}

.accordion-card-header-container {
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: .5rem;
    padding-left: .5rem;
}

.accordion div.card:only-child { 
    border-bottom: 1px solid rgba(0, 0, 0, 0.125); 
    border-radius: calc(0.25rem - 1px); 
}

.accordion .card-header, .accordion-cards .card-header {
    background-color: white;
    border-bottom-color: whitesmoke;
}



/*images
-------------------------------------------------- */
.image-col {
    padding-bottom: 1rem;
}

.image-inline {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.max-width-160 {
    max-width: 160px;
    width: 100%;
}

.max-width-350 {
    max-width: 350px;
    width: 100%;
}

.max-width-400 {
    max-width: 400px;
    width: 100%;
}

.max-width-700 {
    max-width: 700px;
    width: 100%;
}

/*playsinline MP4 (looks like gif)
-------------------------------------------------- */
.embed-video-playsinline-intros {
    border-width: 0px;
    max-width: 550px;
}

.embed-video-playsinline {
    border-width: 0px;
}

/*navbar 
-------------------------------------------------- */
/* Extra height for vertical videos. Add onto embed-responsive-1by1  */
.vert-video {
    padding-top: 30%;
}

/*navbar 
-------------------------------------------------- */
.navbar-brand {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: 1.5rem;
    width: 140px;
}

.nav-item {
    font-size: .9rem;
    font-weight: 500;
    margin-left: 1rem;
    margin-top: 1rem;
}

.page-navbar-padding {
    margin-top: 60px;
}

.navbar {
    background-color: rgb(1, 4, 28);
    z-index: 100;
    height: 60px;
}



/* Mobile navigation drawer ----------------------------------------- */

#sidebar.kp-mobile-drawer {
    background:
        radial-gradient(circle at 100% 0%, rgba(108, 201, 255, 0.16), rgba(108, 201, 255, 0) 38%),
        linear-gradient(150deg, #01041c 0%, #090e35 68%, #102b4d 100%);
    box-shadow: none;
    color: #ffffff;
    height: 100vh;
    height: 100dvh;
    left: auto;
    max-width: 460px;
    overflow-y: auto;
    overscroll-behavior: contain;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(105%);
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
    z-index: 1001;
}

#sidebar.kp-mobile-drawer.active {
    box-shadow: -24px 0 70px rgba(1, 4, 28, 0.34);
    left: auto;
    transform: translateX(0);
}

body:has(#sidebar.active) {
    overflow: hidden;
}

#dismiss {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(223, 238, 251, 0.24);
    border-radius: 50%;
    color: #dfeefb;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.9rem;
    height: 40px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: clamp(1.25rem, 5vw, 2rem);
    top: 14px;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
    width: 40px;
}

#dismiss:hover,
#dismiss:focus {
    background: rgba(223, 238, 251, 0.1);
    border-color: rgba(223, 238, 251, 0.5);
    color: #ffffff;
    outline: none;
}

#sidebarCollapse {
    cursor: pointer;
}

.overlay {
    background: rgba(1, 4, 28, 0.64);
    backdrop-filter: blur(3px);
    display: block;
    height: 100vh;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 220ms ease, visibility 220ms ease;
    visibility: hidden;
    width: 100vw;
    z-index: 1000;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

#sidebar .sidebar-header-div {
    align-items: center;
    border-bottom: 1px solid rgba(223, 238, 251, 0.18);
    display: flex;
    height: 68px;
    padding: 0 clamp(1.25rem, 5vw, 2rem);
}

#sidebar a.sidebar-header {
    color: #ffffff;
    font-family: 'EB Garamond', serif;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1;
    opacity: 1;
    text-decoration: none;
}

#sidebar ul.components {
    margin: 0;
    padding: 1.8rem clamp(1.25rem, 5vw, 2rem) 0.5rem;
}

#sidebar ul li {
    margin: 0 !important;
}

#sidebar ul p {
    color: #6cc9ff;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    margin: 1.8rem 0 0.45rem !important;
    padding: 0;
    text-transform: uppercase;
}

#sidebar ul p:first-child {
    margin-top: 0 !important;
}

#sidebar ul li a {
    align-items: center;
    border-bottom: 1px solid rgba(223, 238, 251, 0.18);
    color: rgba(233, 245, 255, 0.82);
    display: flex;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    justify-content: space-between;
    padding: 1rem 0;
    text-decoration: none;
    transition: border-color 160ms ease, color 160ms ease;
}

#sidebar ul li a::after {
    content: "→";
    font-size: 1rem;
    opacity: 0.5;
}

#sidebar ul li a:hover,
#sidebar ul li a:focus,
#sidebar ul li.active > a {
    background: transparent;
    border-color: rgba(108, 201, 255, 0.46);
    color: #ffffff;
    outline: none;
}

#sidebar ul li.active > a::after {
    color: #6cc9ff;
    opacity: 1;
}

.kp-mobile-drawer__cta,
.kp-desktop-nav .kp-nav-contact {
    --kp-ai-nav-background:
        radial-gradient(ellipse at 100% 20%, rgba(50, 146, 211, 0.21), transparent 85%),
        radial-gradient(ellipse at 15% 100%, rgba(101, 78, 190, 0.275), transparent 85%),
        linear-gradient(115deg, #100d3b, #06223d);
}

.kp-mobile-drawer__cta {
    align-items: center;
    background: var(--kp-ai-nav-background);
    border: 1.5px solid #83c9f5;
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(83, 180, 240, 0.2), inset 0 0 12px rgba(83, 180, 240, 0.07);
    color: #e9f5ff !important;
    display: flex;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    justify-content: space-between;
    letter-spacing: 0.05em;
    margin: 1.5rem clamp(1.25rem, 5vw, 2rem) 0;
    padding: 0.95rem 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
}

.kp-mobile-drawer__cta:hover,
.kp-mobile-drawer__cta:focus {
    background: var(--kp-ai-nav-background);
    filter: brightness(1.12);
    border-color: #b1e1ff;
    color: #ffffff !important;
    text-decoration: none;
}

#sidebar .social-icon-block {
    border-top: 1px solid rgba(223, 238, 251, 0.18);
    display: flex;
    font-size: 1rem;
    gap: 0.75rem;
    margin: 1rem clamp(1.25rem, 5vw, 2rem) 0;
    padding: 1rem 0 2rem !important;
}

#sidebar a[href*="twitter.com"],
#sidebar > br {
    display: none;
}

@media (min-width: 992px) {
    #sidebar.kp-mobile-drawer,
    .overlay {
        display: none !important;
    }
}


/*dims page content when sidebar open*/
#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
    position: absolute;
    top: 0;
    right: 0;
}

/* same as above but for footer-minimal */
#content-footer-minimal {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
    position: absolute;
    top: 0;
    right: 0;
}


/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

#content {
    padding-bottom: 0;
}

#content-footer-minimal {
    padding-bottom: 0;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 366px;
    /* Set the fixed height of the footer here */
    /*line-height: 30px;*/
    /* Vertically center the text there */
    background-color: rgb(4, 8, 36);
}

.footer-minimal {
    position: absolute;
    bottom: 0;
    width: 100%;
    /* height: 366px; */
    /* Set the fixed height of the footer here */
    /*line-height: 30px;*/
    /* Vertically center the text there */
    background-color: rgb(4, 8, 36);
}

.footer-top {
    padding-top: 2rem !important;
    padding-bottom: 1rem !important;
}

.footer-bottom {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    text-align: center;
}

/*Padding anchors so that anchored section appears below the fixed navbar
-------------------------------------------------- */
a.anchor {
    position: relative;
    top: -60px;
    visibility: hidden;
}

/*Modal
-------------------------------------------------- */
.modal-dialog {
    max-width: 900px;
    margin: 80px auto;
}

.modal-body {
    position: relative;
    padding: 0px;
}

.close {
    position: absolute;
    right: 25px;
    top: -40px;
    z-index: 999;
    font-size: 2rem;
    font-weight: normal;
    color: #fff;
    opacity: 1;
}

.modal-backdrop {
    opacity: .8 !important;
}

/*Video thumbnail timestamp
-------------------------------------------------- */
.bottom-right {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

.btn-timestamp {
    background-color: rgb(1, 4, 28);
    color: rgb(217, 227, 235) !important;
    opacity: 0.85;
}

.btn-video-play {
    border-radius: 1rem;
}



/*Cognito forms styling
-------------------------------------------------- */

/* Use Cognito's documented font settings to match the site's body typography. */
:root :is(.kp-contact-form, .kp-footer-form) .cog-cognito {
    --font-family: var(--kp-type-sans, 'IBM Plex Sans', sans-serif);
    --header__font-family: var(--kp-type-sans, 'IBM Plex Sans', sans-serif);
    --label__font-family: var(--kp-type-sans, 'IBM Plex Sans', sans-serif);
    --button-primary__font-family: var(--kp-type-sans, 'IBM Plex Sans', sans-serif);
    --button-secondary__font-family: var(--kp-type-sans, 'IBM Plex Sans', sans-serif);
    --button__border-radius: 999px;
    --button-primary__border-radius: 999px;
    --button-primary__border-width: 1px;
    --button-primary__background-color: #e6eef5;
    --button-primary__border-color: rgba(42, 108, 146, 0.24);
    --button-primary__color: #245d7e;
    --button-primary__font-size: 0.875rem;
    --button-primary__font-weight: 500;
    --kp-form-control-height: 3.0625rem;
    --kp-form-button-hover-background: #d6e5ef;
    --kp-form-button-hover-border: rgba(42, 108, 146, 0.42);
    --kp-form-button-hover-color: #090e35;
    --kp-form-button-focus: #527d9c;
}

/* Match the Theory resources pills while retaining Cognito's native controls. */
#content :is(.kp-contact-form, .kp-footer-form) .cog-button--submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: var(--kp-form-control-height);
    min-height: var(--kp-form-control-height);
    padding: 0 1.15rem;
    line-height: 1.5;
    letter-spacing: 0.035em;
    text-transform: none;
    box-shadow: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

#content :is(.kp-contact-form, .kp-footer-form) .cog-button--submit:not(:disabled):not(.is-disabled):hover,
#content :is(.kp-contact-form, .kp-footer-form) .cog-button--submit:not(:disabled):not(.is-disabled):focus-visible {
    background-color: var(--kp-form-button-hover-background);
    border-color: var(--kp-form-button-hover-border);
    color: var(--kp-form-button-hover-color);
}

#content :is(.kp-contact-form, .kp-footer-form) .cog-button--submit:focus-visible {
    outline: 2px solid var(--kp-form-button-focus);
    outline-offset: 3px;
}

#content .kp-footer-form .cog-email .el-input__inner {
    height: var(--kp-form-control-height);
}

:root .cog-cognito {
    --negative: #527085;
    --negative-reverse: #ffffff;
    --kp-validation-background: #edf3f7;
    --kp-validation-text: #38536b;
}

/* Gentle message panels, with a distinct blue-gray invalid-field outline. */
#content .cog-cognito .cog-error-message {
    background-color: var(--kp-validation-background);
    color: var(--kp-validation-text);
    font-weight: 400;
}

/* Give errors more definition against the light Contact and Jobs surfaces. */
:root :is(.kp-contact-form, .kp-jobs-subscribe__form) .cog-cognito {
    --kp-validation-background: #d7e3ec;
    --kp-validation-text: #2e495f;
}

#content :is(.kp-contact-form, .kp-jobs-subscribe__form) .cog-error-message {
    border-left: 3px solid #7694ab;
    font-weight: 500;
}

/* Keep the message below the input; remove Cognito's whole-field error wash. */
#content .cog-cognito .cog-field.is-error::before,
#content .cog-cognito .cog-field.is-error::after {
    display: none;
}

/* Hide only Cognito's visual required marker. Its offscreen label text,
   aria-required attributes, and validation messages stay intact. */
:is(.kp-contact-form, .kp-footer-form) .cog-asterisk {
    display: none !important;
}

/* Place the existing policy help link beside the complete checkbox label. */
#content .kp-contact-form .kp-contact-consent {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
}

#content .kp-contact-consent > .cog-checkable {
    width: auto;
    max-width: 100%;
    margin: 0;
}

#content .kp-contact-consent > .cog-helptext,
#content .kp-contact-consent > .cog-helptext p {
    margin: 0;
}

#content .kp-contact-consent > .cog-helptext a {
    white-space: nowrap;
}

#content .kp-contact-consent > .cog-error-message {
    flex-basis: 100%;
}

/* Set height of multiline textbox */
.el-textarea__inner {
    height: 200px!important;
}

/* Page utilities
-------------------------------------------------- */
/* Group inline math with adjacent punctuation so it cannot wrap alone. */
.kp-math-phrase {
    white-space: nowrap;
}

.team-profile {
    scroll-margin-top: 6rem;
}

/* Shared site footer
-------------------------------------------------- */
.kp-footer-ai-band,
.kp-site-footer {
    --kp-footer-navy: #090e35;
    --kp-footer-navy-soft: #121a49;
    --kp-footer-navy-bottom: #01041c;
    --kp-footer-blue: #83b7e8;
    --kp-footer-blue-pale: #dfeefb;
    --kp-footer-muted: #b9b9b9;
    --kp-footer-divider: rgba(223, 238, 251, 0.18);
    line-height: 1.55;
}

.kp-footer-ai-band {
    background: var(--kp-footer-blue-pale);
    color: var(--kp-footer-navy-bottom);
}

.kp-site-footer {
    background: var(--kp-footer-navy);
    color: #ffffff;
}

.kp-footer-inner {
    margin: 0 auto;
    max-width: var(--kp-page-shell, 1280px);
    padding: 0 var(--kp-page-gutter, clamp(1.25rem, 5vw, 4.5rem));
}

.kp-footer-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 4.5rem);
    grid-template-columns: minmax(280px, 1.6fr) repeat(2, minmax(150px, 0.75fr));
    padding: clamp(5rem, 8vw, 7rem) 0 clamp(2.75rem, 4vw, 3rem);
}

.kp-site-footer .kp-footer-intro p,
.kp-site-footer .kp-footer-updates-copy p {
    color: var(--kp-footer-muted);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.72;
}

.kp-footer-intro p {
    margin: 1.3rem 0 0;
    max-width: 350px;
}

.kp-footer-wordmark {
    color: #ffffff;
    font-family: 'EB Garamond', serif;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
}

.kp-footer-wordmark:hover {
    color: #ffffff;
    text-decoration: none;
}

.kp-footer-column {
    align-content: start;
    display: grid;
    gap: 0.85rem;
}

.kp-footer-column h2 {
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.4;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.kp-footer-column a {
    color: var(--kp-footer-muted);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.94rem;
    text-decoration: none;
}

.kp-footer-column a:hover,
.kp-footer-legal a:hover {
    color: var(--kp-footer-blue);
    text-decoration: none;
}

.kp-footer-ai {
    align-items: center;
    color: var(--kp-footer-navy-bottom);
    display: grid;
    gap: clamp(3rem, 7vw, 6.5rem);
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    padding: clamp(3.5rem, 6vw, 5rem) 0;
}

.kp-footer-ai-band--prompt .kp-footer-ai {
    padding-bottom: clamp(6.5rem, 11vw, 10rem);
    padding-top: clamp(6.5rem, 11vw, 10rem);
}

.kp-footer-ai-band--dark {
    background:
        radial-gradient(circle at 82% 18%, rgba(50, 146, 211, 0.28), transparent 30%),
        radial-gradient(circle at 76% 108%, rgba(101, 78, 190, 0.4), transparent 42%),
        linear-gradient(135deg, #02051b 0%, #100d3b 48%, #06223d 100%);
    border-bottom: 1px solid rgba(223, 238, 251, 0.18);
    border-top: 1px solid rgba(223, 238, 251, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: #ffffff;
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

.kp-footer-ai-band--dark::before,
.kp-footer-ai-band--dark::after {
    content: "";
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.kp-footer-ai-band--dark::before {
    background: linear-gradient(108deg, transparent 18%, rgba(116, 101, 205, 0.03) 38%, rgba(131, 183, 232, 0.14) 50%, rgba(116, 101, 205, 0.1) 68%, transparent 88%);
    inset: -36% 34% -36% -22%;
    transform: skewX(-13deg);
}

.kp-footer-ai-band--dark::after {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
    background-image:
        linear-gradient(rgba(131, 183, 232, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(131, 183, 232, 0.16) 1px, transparent 1px);
    background-size: 72px 72px;
    inset: 0;
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
    opacity: 0.18;
}

.kp-footer-ai-band--dark > .kp-footer-inner {
    position: relative;
    z-index: 1;
}

.kp-footer-ai-band--dark .kp-footer-label {
    color: #83c9f5;
}

.kp-footer-ai-band--dark .kp-footer-ai h2 {
    color: #ffffff;
    text-shadow: 0 10px 36px rgba(65, 157, 220, 0.2);
}

.kp-footer-ai-band--dark .kp-footer-ai-lede {
    color: #c9d7e6;
}

.kp-footer-ai-copy {
    max-width: 620px;
}

.kp-footer-label {
    color: #456f96;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.kp-footer-ai-band .kp-footer-label {
    line-height: 1.4;
}

.kp-footer-ai h2 {
    color: var(--kp-footer-navy-bottom);
    font-family: 'EB Garamond', serif;
    font-size: clamp(2.8rem, 4.6vw, 4.4rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0;
    max-width: 620px;
}

.kp-footer-ai-lede {
    color: #35465d;
    font-size: var(--kp-body-standard, clamp(1rem, 1.1vw, 1.08rem));
    margin: 1.5rem 0 0;
    max-width: 570px;
}

.kp-footer-ai-band .kp-footer-ai-lede {
    line-height: 1.7;
}

.kp-footer-ai-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(9, 14, 53, 0.16);
    border-radius: var(--kp-card-radius);
    box-shadow: 0 14px 32px rgba(1, 4, 28, 0.08);
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.kp-footer-ai-panel__toolbar {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.kp-footer-ai-panel__toolbar p {
    color: #456f96;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin: 0;
    text-transform: uppercase;
}

.kp-footer-ai-panel__toolbar > span {
    background: #e5f2fa;
    border: 1px solid rgba(42, 108, 146, 0.22);
    border-radius: 999px;
    color: #245f82;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    padding: 0.35rem 0.65rem;
    text-transform: uppercase;
}

.kp-footer-ai-panel h3 {
    color: var(--kp-footer-navy-bottom);
    font-family: 'EB Garamond', serif;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 400;
    line-height: 1.08;
    margin: 0;
}

.kp-footer-ai-panel__meta {
    color: #58677a;
    font-size: 0.88rem;
    margin: 0.6rem 0 1.75rem;
}

.kp-footer-ai-panel--prompt blockquote {
    color: #30384f;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: clamp(1rem, 1.1vw, 1.08rem);
    line-height: 1.68;
    margin: 0;
}

.kp-footer-ai-panel--prompt .kp-ai-prompt__copy-button {
    box-shadow:
        0 7px 16px rgba(9, 14, 53, 0.16),
        0 2px 5px rgba(9, 14, 53, 0.1);
    flex: 0 0 auto;
}

.kp-footer-ai-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kp-footer-ai-actions a {
    align-items: center;
    border: 1px solid var(--kp-footer-navy-bottom);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 500;
    gap: 1.25rem;
    justify-content: space-between;
    line-height: 1.4;
    min-width: 0;
    padding: 0.9rem 1.15rem;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
    width: 100%;
}

.kp-footer-ai-primary {
    background: var(--kp-footer-navy-bottom);
    color: #ffffff;
}

.kp-footer-ai-primary:hover {
    background: transparent;
    color: var(--kp-footer-navy-bottom);
    text-decoration: none;
}

.kp-footer-ai-secondary {
    background: transparent;
    color: var(--kp-footer-navy-bottom);
}

.kp-footer-ai-secondary:hover {
    background: var(--kp-footer-navy-bottom);
    color: #ffffff;
    text-decoration: none;
}

.kp-literature-workspace-card {
    --kp-footer-navy-bottom: #01041c;
    align-items: center;
    background: #dfeefb;
    border: 1px solid rgba(9, 14, 53, 0.12);
    border-radius: 22px;
    box-shadow: 0 22px 55px rgba(1, 4, 28, 0.1);
    display: grid;
    gap: clamp(3rem, 7vw, 6rem);
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    margin: 0 0 4.5rem;
    padding: clamp(2.5rem, 5vw, 4.5rem);
}

.kp-literature-ai-drafts {
    display: grid;
    gap: 2rem;
    margin-bottom: 4.5rem;
}

.kp-literature-ai-drafts .kp-ai-concept-feature,
.kp-literature-ai-drafts .kp-literature-workspace-card {
    margin-bottom: 0;
}

.kp-literature-workspace-card__copy {
    max-width: 590px;
}

.kp-literature-workspace-card h2 {
    color: var(--kp-footer-navy-bottom);
    font-family: 'EB Garamond', serif;
    font-size: clamp(2.8rem, 4.5vw, 4.35rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0;
}

.kp-footer-engagement {
    border-top: 1px solid var(--kp-footer-divider);
    padding: clamp(2.75rem, 4vw, 3rem) 0;
}

.kp-footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

#sidebar .social-icon-block a,
.kp-footer-social a {
    align-items: center;
    background: var(--kp-footer-navy-soft, #121a49);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 500;
    opacity: 1;
    height: 2.6rem;
    justify-content: center;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
    width: 2.6rem;
}

#sidebar .social-icon-block a:hover,
#sidebar .social-icon-block a:focus-visible,
.kp-footer-social a:hover,
.kp-footer-social a:focus-visible {
    background: var(--kp-footer-blue, #83b7e8);
    color: #181818;
    text-decoration: none;
}

.kp-footer-updates {
    --kp-footer-stack-gap: 1rem;
    align-items: start;
    display: grid;
    gap: clamp(2.5rem, 7vw, 6rem);
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    width: 100%;
}

.kp-footer-updates-copy h2 {
    color: #ffffff;
    font-family: 'EB Garamond', serif;
    font-size: clamp(2.3rem, 3.1vw, 2.55rem);
    font-weight: 400;
    line-height: 1.25;
    margin: 0;
    max-width: 650px;
}

.kp-footer-updates-copy p {
    margin: 1rem 0 0;
    max-width: 520px;
}

.kp-footer-form {
    min-width: 0;
    width: 100%;
}

/* Match confirmation messages and entry details to the shared footer body text. */
:root .kp-site-footer .cog-cognito {
    --color: var(--kp-footer-muted);
    --button-primary__background-color: #182747;
    --button-primary__border-color: #526780;
    --button-primary__color: #dfeefb;
    --kp-form-button-hover-background: #243858;
    --kp-form-button-hover-border: #839db8;
    --kp-form-button-hover-color: #ffffff;
    --kp-form-button-focus: #9bbccc;
    --input__background-color: var(--kp-footer-navy);
    --input__border-color: rgba(223, 238, 251, 0.32);
    --input__color: #dfeefb;
    --negative: #9bbccc;
    --negative-reverse: #090e35;
    --kp-validation-background: #182747;
    --kp-validation-text: #dfeefb;
}

/* Keep Cognito's original controls and validation in a compact subscription row. */
.kp-footer-form {
    container-type: inline-size;
}

/* Apply the compact layout only before submission. Otherwise our ID selector
   overrides Cognito's rule hiding entry details after a successful submission.
   Match the copy-to-input gap, including Cognito's quarter-gutter input inset. */
@container (max-width: 359.98px) {
    #content .kp-footer-form .cog-cognito:not(.is-success) .cog-email,
    #content .kp-footer-form .cog-cognito:not(.is-success) .cog-email > .cog-input {
        margin-bottom: 0;
    }

    #content .kp-footer-form .cog-cognito:not(.is-success) .cog-page__navigation {
        margin: 0;
        padding-top: calc(var(--kp-footer-stack-gap) + var(--gutter, 25px) / 4);
    }

    #content .kp-footer-form .cog-cognito:not(.is-success) .cog-button--submit {
        margin: 0;
    }
}

@container (min-width: 360px) {
    #content .kp-footer-form .cog-cognito:not(.is-success) .cog-page {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.4rem 0.75rem;
    }

    #content .kp-footer-form .cog-cognito:not(.is-success) .cog-page > .cog-row:first-child,
    #content .kp-footer-form .cog-cognito:not(.is-success) .cog-page > .cog-row:first-child > .cog-email {
        display: contents;
    }

    #content .kp-footer-form .cog-cognito:not(.is-success) .cog-email > .cog-label {
        grid-column: 1;
        grid-row: 1;
        padding: 0;
    }

    #content .kp-footer-form .cog-cognito:not(.is-success) .cog-email > .cog-input:not(.cog-field__placeholder) {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    #content .kp-footer-form .cog-cognito:not(.is-success) .cog-email > .cog-error-message {
        grid-column: 1;
        grid-row: 3;
    }

    #content .kp-footer-form .cog-cognito:not(.is-success) .cog-page__navigation {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        margin: 0;
        padding: 0;
    }

    #content .kp-footer-form .cog-cognito:not(.is-success) .cog-button--submit {
        margin: 0;
    }
}

.kp-footer-legal-shell {
    background: var(--kp-footer-navy-bottom);
}

.kp-footer-legal {
    align-items: center;
    color: #999999;
    display: flex;
    font-size: 0.78rem;
    gap: 2rem;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1280px;
    padding: 1.5rem clamp(1.25rem, 5vw, 4.5rem);
}

.kp-footer-legal p {
    margin: 0;
}

.kp-footer-legal nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.kp-footer-legal a {
    color: #999999;
    font-size: 0.875rem;
    text-decoration: none;
}

.kp-footer-privacy-choice {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
}

.kp-footer-privacy-choice-icon {
    flex: 0 0 auto;
    height: auto;
    width: 2rem;
}

@media (max-width: 900px) {
    .kp-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kp-footer-intro {
        grid-column: 1 / -1;
    }

    .kp-footer-ai {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .kp-literature-workspace-card {
        grid-template-columns: 1fr;
    }

    .kp-footer-ai-copy,
    .kp-footer-ai h2,
    .kp-footer-ai-lede {
        max-width: 760px;
    }

    .kp-footer-ai-panel {
        max-width: 720px;
        width: 100%;
    }

    .kp-footer-updates {
        grid-template-columns: 1fr;
        gap: var(--kp-footer-stack-gap);
    }

}

@media (max-width: 600px) {
    .kp-footer-ai-panel {
        padding: 1.4rem;
    }

    .kp-literature-workspace-card {
        border-radius: 16px;
        padding: 2rem 1.4rem;
    }

    .kp-footer-legal {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .kp-footer-legal nav {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Homepage design refresh
-------------------------------------------------- */
.kp-homepage {
    --kp-ink: #090e35;
    --kp-ink-deep: #01041c;
    --kp-blue: #2a6c92;
    --kp-blue-bright: #6cc9ff;
    --kp-blue-pale: #dfeefb;
    --kp-paper: #f7f9fc;
    --kp-line: rgba(9, 14, 53, 0.14);
    --kp-page-gutter: clamp(1.25rem, 5vw, 4.5rem);
    --kp-page-shell: 1280px;
    background: var(--kp-paper);
    color: var(--kp-ink);
}

.kp-homepage p,
.kp-homepage .card-title,
.kp-homepage .card-body,
.kp-homepage ul,
.kp-homepage ol,
.kp-homepage .btn,
.kp-homepage h2,
.kp-homepage h3,
.kp-homepage h4,
.kp-homepage strong {
    font-family: 'IBM Plex Sans', sans-serif;
}

.kp-homepage h1,
.kp-homepage .h2-serif,
.kp-homepage .serif-huge,
.kp-homepage .navbar-brand,
.kp-homepage .kp-footer-wordmark,
.kp-homepage .kp-footer-ai h2,
.kp-homepage .kp-footer-updates-copy h2 {
    font-family: 'EB Garamond', serif;
}

.kp-homepage #content {
    background: var(--kp-paper);
    position: relative;
}

.kp-homepage p,
.kp-homepage li {
    line-height: 1.72;
}

.kp-topbar {
    background: #01041c;
    border-bottom: 1px solid rgba(223, 238, 251, 0.18);
    box-shadow: none !important;
    height: 72px;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}

.kp-topbar .kp-nav-shell {
    align-items: center;
    display: flex;
    gap: 0;
    height: 100%;
    justify-content: flex-start;
    max-width: var(--kp-page-shell, 1280px);
    padding-left: var(--kp-page-gutter, clamp(1.25rem, 5vw, 4.5rem));
    padding-right: var(--kp-page-gutter, clamp(1.25rem, 5vw, 4.5rem));
    width: 100%;
}

.kp-topbar .navbar-brand {
    color: #ffffff;
    font-size: 1.75rem;
    line-height: 1;
    margin: 0;
    opacity: 1;
    padding: 0;
    width: auto;
}

.kp-menu-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #dfeefb;
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    height: 2.4rem;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    width: 2.4rem;
}

.kp-menu-toggle:hover,
.kp-menu-toggle:focus-visible {
    color: #ffffff;
    outline: 1px solid rgba(223, 238, 251, 0.5);
    outline-offset: 2px;
}

.kp-menu-toggle__icon,
.kp-menu-toggle__icon::before,
.kp-menu-toggle__icon::after {
    background: currentColor;
    border-radius: 999px;
    display: block;
    height: 1.5px;
    width: 18px;
}

.kp-menu-toggle__icon {
    position: relative;
}

.kp-menu-toggle__icon::before,
.kp-menu-toggle__icon::after {
    content: "";
    left: 0;
    position: absolute;
}

.kp-menu-toggle__icon::before {
    top: -5px;
}

.kp-menu-toggle__icon::after {
    top: 5px;
}

.kp-desktop-nav {
    align-items: center;
    gap: clamp(1.2rem, 2.4vw, 2.2rem);
    height: 100%;
    margin-left: clamp(2.5rem, 5vw, 5.5rem);
    width: 100%;
}

.kp-desktop-nav a {
    color: rgba(233, 245, 255, 0.76);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 160ms ease;
}

/* Give the top navigation comfortable vertical click targets. */
.kp-topbar .navbar-brand,
.kp-desktop-nav > a,
.kp-nav-dropdown > summary {
    align-items: center;
    display: inline-flex;
    min-height: 48px;
}

.kp-desktop-nav a:not(.kp-nav-link--just-activated):hover,
.kp-desktop-nav a:focus-visible {
    color: #ffffff;
    text-decoration: none;
}

.kp-desktop-nav a:focus:not(:focus-visible) {
    outline: none;
}

.kp-desktop-nav a:focus-visible {
    border-radius: 3px;
}

.kp-desktop-nav > a.kp-nav-link--just-activated:hover {
    color: rgba(233, 245, 255, 0.76);
}

.kp-nav-dropdown {
    align-items: center;
    display: flex;
    height: 100%;
    position: relative;
}

.kp-nav-dropdown summary {
    align-items: center;
    color: rgba(233, 245, 255, 0.76);
    cursor: pointer;
    display: flex;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.45rem;
    letter-spacing: 0.08em;
    line-height: 1;
    list-style: none;
    text-transform: uppercase;
    transition: color 160ms ease;
}

.kp-nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.kp-nav-dropdown:not(.kp-nav-dropdown--just-closed) summary:hover,
.kp-nav-dropdown[open] summary {
    color: #ffffff;
    outline: none;
}

.kp-nav-dropdown summary:focus:not(:focus-visible) {
    outline: none;
}

.kp-nav-dropdown summary:focus-visible {
    border-radius: 3px;
    color: #ffffff;
}

.kp-nav-dropdown__chevron {
    border-bottom: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    display: inline-block;
    flex: 0 0 auto;
    height: 0.42rem;
    margin-top: -0.22rem;
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 160ms ease;
    width: 0.42rem;
}

.kp-nav-dropdown[open] .kp-nav-dropdown__chevron {
    /* Keep the visible border strokes centered when the chevron flips. */
    transform: translateY(calc((0.42rem - 1.5px) / 1.41421356)) rotate(225deg);
}

.kp-nav-dropdown__menu {
    background: rgba(1, 4, 28, 0.98);
    border: 1px solid rgba(223, 238, 251, 0.18);
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(1, 4, 28, 0.34);
    color: #ffffff;
    left: -1.35rem;
    min-width: 210px;
    padding: 0.55rem;
    position: absolute;
    right: auto;
    top: calc(100% + 1px);
    z-index: 1000;
}

.kp-desktop-nav .kp-nav-dropdown__link {
    border-radius: 6px;
    color: rgba(233, 245, 255, 0.8);
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.72rem 0.8rem;
    text-transform: none;
    transition: background 160ms ease, color 160ms ease;
}

.kp-desktop-nav .kp-nav-dropdown__link:hover,
.kp-desktop-nav .kp-nav-dropdown__link:focus {
    background: rgba(223, 238, 251, 0.11);
    color: #ffffff;
}

.kp-desktop-nav .kp-nav-contact {
    background: var(--kp-ai-nav-background);
    border: 1.5px solid #83c9f5;
    border-radius: 999px;
    box-shadow:
        0 0 16px rgba(83, 180, 240, 0.2),
        inset 0 0 12px rgba(83, 180, 240, 0.07);
    color: #e9f5ff;
    margin-left: auto;
    padding: 0.7rem 1rem;
    white-space: nowrap;
}

.kp-desktop-nav .kp-nav-contact:hover,
.kp-desktop-nav .kp-nav-contact:focus {
    background: var(--kp-ai-nav-background);
    filter: brightness(1.12);
    border-color: #b1e1ff;
    box-shadow:
        0 0 20px rgba(83, 180, 240, 0.28),
        inset 0 0 12px rgba(83, 180, 240, 0.1);
    color: #ffffff !important;
}

.kp-desktop-nav .kp-nav-contact.kp-nav-link--just-activated:hover {
    background: var(--kp-ai-nav-background);
    color: #e9f5ff;
}

.kp-topbar + .page-navbar-padding {
    margin-top: 72px;
}

@media (min-width: 992px) {
    .kp-menu-toggle {
        display: none;
    }
}

.kp-home-hero {
    background-position: center 46%;
    min-height: 680px;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
    position: relative;
}

.kp-home-hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: var(--kp-page-shell);
    min-height: 680px;
    padding-bottom: 7rem;
    padding-left: var(--kp-page-gutter);
    padding-right: var(--kp-page-gutter);
    padding-top: 7rem;
    position: relative;
    width: 100%;
    z-index: 1;
}

.kp-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    margin: 0 0 1.7rem;
    opacity: 0.72;
    text-transform: uppercase;
}

.kp-home-hero h1 {
    font-size: clamp(4rem, 7.5vw, 7rem);
    letter-spacing: -0.035em;
    line-height: 1.06;
    margin: 0;
    max-width: 980px;
    opacity: 1;
}

.kp-home-hero__lede {
    font-size: var(--kp-body-lead);
    line-height: 1.72;
    margin: 2rem 0 0;
    max-width: 720px;
    opacity: 0.84;
}

.kp-home-hero__actions {
    align-items: center;
    background: linear-gradient(110deg, rgba(1, 4, 28, 0.82), rgba(20, 72, 108, 0.64));
    border: 1px solid rgba(108, 201, 255, 0.44);
    border-left: 3px solid var(--kp-blue-bright);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(1, 4, 28, 0.18);
    display: grid;
    gap: clamp(1.5rem, 3vw, 3rem);
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 1.75rem;
    max-width: 860px;
    padding: 1.15rem 1.25rem;
    width: 100%;
}

.kp-home-hero__actions .kp-home-hero__primary {
    align-items: center;
    background: var(--kp-blue-pale);
    border: 1px solid var(--kp-blue-pale);
    border-radius: 999px;
    color: var(--kp-ink-deep);
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 0.75rem;
    justify-self: end;
    letter-spacing: 0.04em;
    min-width: 0;
    padding: 0.85rem 1rem;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    width: max-content;
}

.kp-home-hero__actions .kp-home-hero__primary:hover,
.kp-home-hero__actions .kp-home-hero__primary:focus {
    background: transparent;
    color: #ffffff;
    text-decoration: none;
}

.kp-home-hero__ai-copy {
    color: rgba(233, 245, 255, 0.78);
    max-width: 570px;
}

.kp-home-hero__ai-copy p {
    color: rgba(233, 245, 255, 0.84);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    line-height: 1.55;
    margin: 0;
}

.kp-download-hero {
    background:
        radial-gradient(circle at 8% 14%, rgba(108, 201, 255, 0.34), transparent 34%),
        radial-gradient(circle at 92% 18%, rgba(239, 133, 197, 0.28), transparent 31%),
        linear-gradient(135deg, #f4f8ff 0%, #f7f3ff 52%, #fff5f7 100%);
    color: var(--kp-ink-deep);
    overflow: hidden;
    padding: clamp(5.5rem, 9vw, 8.5rem) 0;
    position: relative;
}

.kp-download-hero::after {
    border: 1px solid rgba(42, 108, 146, 0.12);
    border-radius: 50%;
    content: "";
    height: 440px;
    position: absolute;
    right: -210px;
    top: -220px;
    width: 440px;
}

.kp-download-hero__inner {
    align-items: center;
    display: grid;
    gap: clamp(3rem, 7vw, 7rem);
    grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
    margin: 0 auto;
    max-width: var(--kp-page-shell);
    padding-left: var(--kp-page-gutter);
    padding-right: var(--kp-page-gutter);
    position: relative;
    width: 100%;
    z-index: 1;
}

.kp-download-hero__copy {
    max-width: 650px;
}

.kp-download-hero__eyebrow {
    align-items: center;
    color: #35418f;
    display: flex;
    font-size: 0.76rem;
    font-weight: 600;
    gap: 0.6rem;
    letter-spacing: 0.12em;
    margin: 0 0 1.6rem;
    text-transform: uppercase;
}

.kp-download-hero__eyebrow span {
    color: #cb3b91;
    font-size: 1rem;
}

.kp-download-hero h2 {
    color: var(--kp-ink-deep);
    font-family: 'EB Garamond', serif;
    font-size: clamp(3.4rem, 5.7vw, 5.9rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0;
}

.kp-download-hero h2 > span {
    background: linear-gradient(90deg, #354fc7 0%, #aa3ca4 56%, #e25572 100%);
    background-clip: text;
    color: transparent;
    display: block;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.kp-download-hero__lede {
    color: #3f4864;
    font-size: var(--kp-body-lead);
    line-height: 1.68 !important;
    margin: 1.8rem 0 0;
    max-width: 640px;
}

.kp-download-hero__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.kp-download-hero__actions a {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 600;
    gap: 1.1rem;
    justify-content: center;
    letter-spacing: 0.035em;
    min-height: 52px;
    padding: 0.9rem 1.25rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.kp-download-hero__actions a:hover,
.kp-download-hero__actions a:focus {
    text-decoration: none;
}

.kp-download-hero__primary {
    background: var(--kp-ink-deep);
    border: 1px solid var(--kp-ink-deep);
    color: #ffffff;
}

.kp-download-hero__primary:hover,
.kp-download-hero__primary:focus {
    background: #35418f;
    border-color: #35418f;
    color: #ffffff;
}

.kp-download-hero__secondary {
    background: rgba(255, 255, 255, 0.46);
    border: 1px solid rgba(1, 4, 28, 0.28);
    color: var(--kp-ink-deep);
}

.kp-download-hero__secondary:hover,
.kp-download-hero__secondary:focus {
    background: #ffffff;
    border-color: var(--kp-ink-deep);
    color: var(--kp-ink-deep);
}

.kp-download-hero__meta {
    color: #697087;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.73rem;
    gap: 0.35rem 0.7rem;
    letter-spacing: 0.025em;
    margin: 1.25rem 0 0;
}

.kp-download-app {
    background: #0b1038;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 26px;
    box-shadow: 0 34px 80px rgba(18, 23, 68, 0.22), 0 10px 26px rgba(18, 23, 68, 0.12);
    min-width: 0;
    overflow: hidden;
    transform: rotate(1.1deg);
}

.kp-download-app__bar {
    align-items: center;
    color: rgba(255, 255, 255, 0.72);
    display: grid;
    font-size: 0.68rem;
    gap: 1rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    letter-spacing: 0.055em;
    min-height: 52px;
    padding: 0.85rem 1.15rem;
    text-transform: uppercase;
}

.kp-download-app__bar > span:not(.kp-download-app__secure) {
    justify-self: center;
}

.kp-download-app__dots {
    display: flex;
    gap: 0.38rem;
}

.kp-download-app__dots span {
    background: #ff6f7d;
    border-radius: 50%;
    height: 8px;
    width: 8px;
}

.kp-download-app__dots span:nth-child(2) {
    background: #f4cb59;
}

.kp-download-app__dots span:nth-child(3) {
    background: #6ed69b;
}

.kp-download-app__secure {
    color: #8fd8ff;
    justify-self: end;
}

.kp-download-app__body {
    background: #ffffff;
    border-radius: 18px 18px 22px 22px;
    margin: 0 8px 8px;
    padding: clamp(1.4rem, 3vw, 2.2rem);
}

.kp-download-app__file {
    align-items: center;
    background: #f1f6fb;
    border: 1px solid #d9e4ee;
    border-radius: 14px;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 1rem;
}

.kp-download-app__file-icon {
    align-items: center;
    background: #35418f;
    border-radius: 9px;
    color: #ffffff;
    display: flex;
    font-size: 0.62rem;
    font-weight: 600;
    height: 40px;
    justify-content: center;
    letter-spacing: 0.04em;
    width: 40px;
}

.kp-download-app__file strong,
.kp-download-app__file > div span {
    display: block;
}

.kp-download-app__file strong {
    color: var(--kp-ink-deep);
    font-size: 0.82rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-download-app__file > div span {
    color: #747c91;
    font-size: 0.67rem;
    margin-top: 0.2rem;
}

.kp-download-app__loaded {
    color: #26754e;
    font-size: 0.68rem;
    font-weight: 600;
}

.kp-download-app__prompts > p {
    color: #747c91;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin: 1.65rem 0 0.75rem;
    text-transform: uppercase;
}

.kp-download-app__prompts ol {
    display: grid;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kp-download-app__prompts li {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dde3ec;
    border-radius: 12px;
    color: var(--kp-ink-deep);
    display: grid;
    gap: 0.85rem;
    grid-template-columns: auto 1fr auto;
    line-height: 1.3;
    padding: 0.9rem 1rem;
}

.kp-download-app__prompts li > span:first-child {
    color: #aa3ca4;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.kp-download-app__prompts li strong {
    font-size: 0.84rem;
    font-weight: 500;
}

.kp-download-app__prompts li > span:last-child {
    color: #35418f;
    font-size: 1rem;
}

.kp-download-app__status {
    align-items: center;
    color: #697087;
    display: flex;
    font-size: 0.68rem;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.kp-download-app__status > span {
    background: #2ab475;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(42, 180, 117, 0.12);
    height: 7px;
    width: 7px;
}

.kp-home-main {
    max-width: var(--kp-page-shell);
    padding-bottom: 0;
    padding-left: var(--kp-page-gutter);
    padding-right: var(--kp-page-gutter);
    padding-top: 4.5rem !important;
    width: 100%;
}

.kp-home-intro {
    align-items: center;
    display: grid;
    gap: clamp(3rem, 7vw, 7.5rem);
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
    margin-bottom: 4.5rem;
    margin-left: 0;
    margin-right: 0;
    padding: 3.5rem 0;
}

.kp-home-intro__copy {
    max-width: 480px;
}

.kp-home-intro__eyebrow {
    color: var(--kp-blue) !important;
    font-size: 0.78rem !important;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 0 0 1.5rem;
    text-transform: uppercase;
}

.kp-homepage .kp-section-heading {
    color: var(--kp-ink);
    font-family: 'EB Garamond', serif;
    font-size: clamp(3rem, 5vw, 4.7rem) !important;
    font-weight: 400 !important;
    letter-spacing: -0.025em;
    line-height: 1.05 !important;
    margin: 0 0 2rem;
    padding-top: 0;
}

.kp-home-intro__copy > p:last-child {
    color: #4c526a;
    font-size: var(--kp-body-standard);
    line-height: 1.72;
    margin: 0;
}

.kp-home-intro__stage {
    align-items: center;
    aspect-ratio: 1;
    background: #176f9f;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(1, 4, 28, 0.14);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    padding: clamp(1.25rem, 3vw, 2.75rem);
}

.kp-home-intro__media {
    aspect-ratio: 1;
    background: #01041c;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(1, 4, 28, 0.24);
    overflow: hidden;
    width: 100%;
}

.kp-home-intro__media iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.kp-homepage .card {
    border: 1px solid var(--kp-line);
    border-radius: var(--kp-card-radius) !important;
    box-shadow: var(--kp-card-shadow) !important;
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.kp-homepage .card:not(.kp-paper-card):not(.kp-team-section .card):hover {
    border-color: rgba(42, 108, 146, 0.4);
    box-shadow: var(--kp-card-shadow) !important;
}

.kp-overview-feature {
    align-items: center;
    display: grid;
    gap: clamp(3rem, 7vw, 7.5rem);
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    margin-bottom: 4.5rem;
    padding: 3.5rem 0;
}

.kp-overview-feature__visual {
    aspect-ratio: 1;
    background-color: #176f9f;
    background-image: url("media/page-summary_hero-card-lgscreen.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(1, 4, 28, 0.14);
    justify-self: end;
    max-width: 460px;
    width: 100%;
}

.kp-overview-feature__copy {
    max-width: 480px;
}

.kp-overview-feature__copy p {
    color: #4c526a;
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    margin-bottom: 2rem;
}

.kp-technical-card {
    background: var(--kp-blue-pale);
    border: 0 !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    display: grid;
    gap: clamp(2.5rem, 6vw, 6rem);
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    margin-bottom: 4.5rem;
    padding: clamp(2.5rem, 4vw, 3.5rem);
}

.kp-technical-card__intro {
    align-self: start;
}

.kp-technical-card .h2-serif {
    margin-bottom: 1.6rem;
}

.kp-technical-card__intro p {
    color: #4c526a;
    font-size: 1rem;
    margin: 0;
}

.kp-technical-card__intro .kp-technical-card__eyebrow {
    color: var(--kp-blue);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.kp-technical-card__analysis {
    border-left: 1px solid rgba(9, 14, 53, 0.18);
    padding-left: clamp(2.5rem, 5vw, 5rem);
}

.kp-technical-card__analysis h3 {
    color: var(--kp-ink);
    font-family: 'EB Garamond', serif;
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 400;
    line-height: 1.08;
    margin: 0 0 1rem;
}

.kp-technical-card__analysis > p {
    color: #4c526a;
    margin: 0 0 1.6rem;
    max-width: 650px;
}

.kp-technical-card__analysis .kp-technical-card__instruction {
    color: var(--kp-ink);
    font-weight: 500;
}

.kp-analysis-prompts {
    counter-reset: kp-analysis;
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.kp-analysis-prompts li {
    align-items: baseline;
    border-top: 1px solid rgba(9, 14, 53, 0.16);
    color: var(--kp-ink);
    counter-increment: kp-analysis;
    display: grid;
    font-size: 0.92rem;
    gap: 1.25rem;
    grid-template-columns: 1.8rem minmax(0, 1fr);
    line-height: 1.55;
    padding: 1rem 0;
}

.kp-analysis-prompts li:last-child {
    border-bottom: 1px solid rgba(9, 14, 53, 0.16);
}

.kp-analysis-prompts li::before {
    color: var(--kp-blue);
    content: "0" counter(kp-analysis);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.kp-technical-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.kp-ai-concept-feature {
    display: grid;
    gap: 2rem;
    margin-bottom: 5.5rem;
    margin-top: -1rem;
}

.kp-literature-ai-feature {
    --kp-blue-bright: #6cc9ff;
    --kp-ink: #090e35;
    --kp-ink-deep: #01041c;
    margin-top: 0;
}

.kp-ai-concept {
    align-items: center;
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(1, 4, 28, 0.18);
    display: flex;
    min-height: 500px;
    overflow: hidden;
    padding: clamp(3.25rem, 6vw, 5.25rem);
    position: relative;
}

.kp-ai-concept__layout {
    align-items: center;
    display: grid;
    position: relative;
    width: 100%;
    z-index: 1;
}

.kp-ai-concept__copy {
    max-width: 780px;
}

.kp-ai-concept__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.35 !important;
    margin: 0 0 0.8rem;
    text-transform: uppercase;
}

.kp-ai-concept h2 {
    font-family: 'EB Garamond', serif;
    font-size: clamp(3rem, 5vw, 4.7rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0;
}

.kp-ai-concept__wide-break {
    display: none;
}

@media (min-width: 600px) {
    .kp-ai-concept__wide-break {
        display: block;
    }
}

.kp-ai-concept__copy > p:last-child {
    font-size: clamp(1rem, 1.15vw, 1.08rem);
    line-height: 1.68;
    margin: 1.35rem 0 0;
    max-width: 700px;
}

.kp-ai-concept__action {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 0.9rem;
    justify-content: center;
    letter-spacing: 0.045em;
    min-height: 54px;
    padding: 0.95rem 1.35rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
    white-space: nowrap;
}

.kp-ai-concept__action:hover,
.kp-ai-concept__action:focus {
    text-decoration: none;
}

.kp-ai-concept--editorial {
    background: #090e35;
    color: #ffffff;
}

.kp-ai-concept--editorial::before {
    background: radial-gradient(circle, rgba(108, 201, 255, 0.22) 0, rgba(108, 201, 255, 0) 68%);
    content: "";
    height: 360px;
    pointer-events: none;
    position: absolute;
    right: -130px;
    top: -210px;
    width: 360px;
}

.kp-ai-concept--editorial .kp-ai-concept__layout {
    gap: clamp(2.5rem, 5vw, 5.5rem);
    grid-template-columns: minmax(0, 1fr) auto;
}

.kp-ai-concept--editorial .kp-ai-concept__eyebrow {
    color: var(--kp-blue-bright);
}

.kp-ai-concept--editorial h2 {
    color: #ffffff;
}

.kp-ai-concept--editorial .kp-ai-concept__copy > p:last-child {
    color: rgba(233, 245, 255, 0.76);
}

.kp-ai-concept--editorial .kp-ai-concept__action {
    background: #dfeefb;
    border: 1px solid #dfeefb;
    color: var(--kp-ink-deep);
}

.kp-ai-concept--editorial .kp-ai-concept__action:hover,
.kp-ai-concept--editorial .kp-ai-concept__action:focus {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--kp-ink-deep);
}

.kp-ai-concept--gradient-field {
    background:
        radial-gradient(ellipse at 92% 5%, rgba(105, 211, 255, 0.34) 0%, rgba(44, 126, 183, 0.18) 34%, transparent 62%),
        radial-gradient(ellipse at 8% 110%, rgba(87, 76, 186, 0.28) 0%, rgba(43, 38, 113, 0.12) 40%, transparent 66%),
        linear-gradient(130deg, #090e35 0%, #10194b 48%, #16466f 100%);
}

.kp-ai-concept--gradient-field::before {
    background: linear-gradient(105deg, rgba(255, 255, 255, 0) 28%, rgba(158, 226, 255, 0.08) 62%, rgba(158, 226, 255, 0.16) 100%);
    content: "";
    height: 150%;
    pointer-events: none;
    position: absolute;
    right: -16%;
    top: -38%;
    transform: rotate(-6deg);
    width: 125%;
}

.kp-ai-concept--prompt {
    background:
        radial-gradient(ellipse at 100% 38%, rgba(50, 146, 211, 0.24), transparent 54%),
        radial-gradient(ellipse at 48% 115%, rgba(101, 78, 190, 0.26), transparent 58%),
        linear-gradient(115deg, #02051b 0%, #100d3b 58%, #06223d 100%);
    border: 0;
    box-shadow: 0 28px 70px rgba(1, 4, 28, 0.18), inset 0 0 0 1px rgba(131, 183, 232, 0.28);
    color: #ffffff;
    isolation: isolate;
    min-height: 500px;
}

.kp-ai-concept--prompt::before,
.kp-ai-concept--prompt::after {
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.kp-ai-concept--prompt::before {
    background: linear-gradient(125deg, transparent 30%, rgba(131, 183, 232, 0.07) 56%, rgba(116, 101, 205, 0.05) 72%, transparent 90%);
}

.kp-ai-concept--prompt::after {
    background-image:
        linear-gradient(rgba(131, 183, 232, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(131, 183, 232, 0.16) 1px, transparent 1px);
    background-size: 88px 88px;
    -webkit-mask-image: radial-gradient(ellipse at 90% 45%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse at 90% 45%, #000, transparent 75%);
    opacity: 0.22;
}

.kp-ai-prompt__layout {
    align-items: center;
    display: grid;
    gap: clamp(3rem, 6vw, 6rem);
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
    position: relative;
    width: 100%;
    z-index: 1;
}

.kp-ai-prompt__copy {
    max-width: 600px;
}

.kp-ai-concept--prompt .kp-ai-concept__eyebrow {
    color: var(--kp-blue-bright);
}

.kp-ai-concept--prompt h2 {
    color: #ffffff;
    font-size: clamp(2.8rem, 4.4vw, 4.25rem);
}

.kp-ai-prompt__copy > p:last-child {
    color: rgba(233, 245, 255, 0.76);
    font-size: var(--kp-body-standard, 1rem);
    line-height: 1.68;
    margin: 1.35rem 0 0;
    max-width: 540px;
}

/* One shared prompt surface for Home, the footer, and Ask AI; all sit on dark backgrounds. */
.kp-ai-prompt__panel {
    background: #eef0f4;
    border: 1px solid rgba(118, 190, 241, 0.5);
    border-radius: var(--kp-card-radius);
    box-shadow:
        0 18px 42px rgba(1, 4, 28, 0.22),
        0 0 28px rgba(69, 155, 224, 0.3),
        0 0 64px rgba(69, 155, 224, 0.18);
    color: var(--kp-ink);
    min-width: 0;
    padding: 1.5rem;
}

.kp-ai-prompt__toolbar {
    align-items: center;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.kp-ai-prompt__label {
    color: var(--kp-blue) !important;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin: 0;
    text-transform: uppercase;
}

.kp-ai-prompt__panel blockquote {
    border-left: 0 !important;
    color: #4c526a;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: var(--kp-body-lead, clamp(1.05rem, 1.45vw, 1.2rem));
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
    opacity: 1;
    padding: 0;
}

.kp-ai-prompt__copy-button {
    --kp-copy-button-bg: #fbfcfd;
    align-items: center;
    background: var(--kp-copy-button-bg);
    border: 1px solid rgba(9, 14, 53, 0.16);
    border-radius: 10px;
    color: var(--kp-ink-deep);
    cursor: pointer;
    display: inline-flex;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 0.7rem;
    justify-content: center;
    letter-spacing: 0.01em;
    min-height: 48px;
    padding: 0.78rem 1.15rem;
    text-transform: none;
    transition: background 160ms ease, border-color 160ms ease;
    white-space: nowrap;
}

.kp-ai-prompt__copy-button:hover,
.kp-ai-prompt__copy-button:focus-visible {
    --kp-copy-button-bg: #ffffff;
    background: #ffffff;
    border-color: rgba(42, 108, 146, 0.5);
}

.kp-ai-prompt__copy-icon {
    display: inline-block;
    flex: 0 0 19px;
    height: 19px;
    position: relative;
    width: 19px;
}

.kp-ai-prompt__copy-icon::before,
.kp-ai-prompt__copy-icon::after {
    background: var(--kp-copy-button-bg);
    border: 1.7px solid currentColor;
    border-radius: 3px;
    content: "";
    height: 12px;
    position: absolute;
    width: 12px;
}

.kp-ai-prompt__copy-icon::before {
    left: 1px;
    top: 1px;
}

.kp-ai-prompt__copy-icon::after {
    bottom: 1px;
    right: 1px;
}

.kp-ai-prompt__copy-button.is-copied .kp-ai-prompt__copy-icon::before {
    background: transparent;
    border: 0;
    border-bottom: 2px solid currentColor;
    border-radius: 0;
    border-right: 2px solid currentColor;
    height: 12px;
    left: 6px;
    top: 1px;
    transform: rotate(45deg);
    width: 7px;
}

.kp-ai-prompt__copy-button.is-copied .kp-ai-prompt__copy-icon::after {
    display: none;
}

.kp-ai-concept--prompt-outline .kp-ai-prompt__copy-button {
    border: 1px solid #c7cbd2;
    box-shadow: none;
}

.kp-section-title {
    margin-bottom: 1.25rem !important;
}

.kp-homepage .hr-after-h2 {
    border-color: var(--kp-blue);
    border-width: 1px;
    margin: 0 0 2rem;
    opacity: 0.55;
    width: 72px;
}

.kp-homepage .btn {
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    padding: 0.8rem 1.15rem;
    text-transform: uppercase;
}

.kp-homepage .btn-dark {
    background: var(--kp-ink-deep);
    border-color: var(--kp-ink-deep);
}

.kp-homepage .btn-outline-dark {
    border-color: rgba(1, 4, 28, 0.55);
    color: var(--kp-ink-deep);
}

.kp-homepage .container-light-secondary {
    background: #edf4f9;
    border-radius: 0;
    margin-top: 5rem;
    padding-bottom: 4rem;
    padding-top: 4rem;
}

.kp-jobs-section {
    margin-bottom: 0;
}

.kp-jobs-header {
    margin-bottom: 1.5rem;
}

.kp-jobs-copy {
    color: #37405a;
    font-size: var(--kp-body-standard);
    line-height: 1.7;
    max-width: 760px;
}

.kp-jobs-copy p {
    margin: 0 0 0.35rem;
}

.kp-jobs-copy a {
    color: #155c84;
    font-weight: 400;
}

.kp-section-title {
    margin-top: 0;
}

.kp-paper-header {
    align-items: flex-end;
    border-bottom: 1px solid rgba(9, 14, 53, 0.18);
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2rem;
    margin-left: 0;
    margin-right: 0;
    padding-bottom: 1.25rem;
}

.kp-paper-header .kp-section-heading {
    margin-bottom: 0 !important;
}

.kp-paper-grid {
    margin-bottom: 4.5rem;
    margin-left: 0;
    margin-right: 0;
}

.kp-paper-grid > .col {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    padding-left: 0;
    padding-right: 0;
}

.kp-paper-card {
    background: #ffffff;
    margin-bottom: 0;
}

/* Paper cards are static reading surfaces, matching the Literature cards. */
.kp-homepage .kp-paper-card {
    box-shadow: var(--kp-card-shadow) !important;
    transition: none;
}

.kp-paper-card .card-body {
    display: flex;
    flex-direction: column;
    padding: clamp(2rem, 4vw, 3.4rem) !important;
}

.kp-paper-card h3 {
    color: var(--kp-ink);
    font-family: 'EB Garamond', serif;
    font-size: clamp(1.4rem, 2.1vw, 1.85rem);
    font-weight: 400;
    line-height: 1.08;
    margin: 0 0 0.55rem;
}

.kp-paper-card p {
    color: #4c526a;
    font-size: var(--kp-body-standard);
}

.kp-paper-card .card-body > p:first-of-type {
    color: #4c526a;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: var(--kp-body-standard);
    font-weight: 500;
    letter-spacing: normal;
    line-height: 1.72;
    margin-bottom: 0.45rem;
    text-transform: none;
}

.kp-paper-card .card-body > p:last-child {
    margin-bottom: 0;
    margin-top: 0;
    padding-top: 0;
}

.kp-paper-card .kp-paper-abstract {
    color: #4c526a;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: var(--kp-body-standard);
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.72;
    margin-bottom: 0.45rem;
    text-transform: none;
}

.kp-paper-card .kp-paper-publication {
    font-weight: 500;
}

.kp-paper-card .kp-paper-publication-row {
    margin-bottom: 0.45rem;
}

.kp-theory-resources {
    margin-bottom: 4.5rem;
}

.kp-theory-resources__header,
.kp-seminar-header {
    border-bottom: 0;
    display: block;
    margin-bottom: 2rem;
    padding-bottom: 0;
}

.kp-theory-resources__header .kp-section-heading::after,
.kp-seminar-header .kp-section-heading::after {
    border-top: 2px solid rgba(9, 14, 53, 0.18);
    content: "";
    display: block;
    margin-top: 1.3rem;
    width: 72px;
}

.kp-theory-resources__grid {
    display: grid;
    gap: var(--kp-card-gap-spacious);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kp-theory-resources__grid > .kp-theory-resource-card {
    gap: 1.5rem;
}

.kp-theory-resource-card {
    background: #ffffff;
    border: 1px solid rgba(9, 14, 53, 0.13);
    border-left: 6px solid var(--kp-blue);
    border-radius: var(--kp-card-radius);
    box-shadow: var(--kp-card-shadow);
    display: flex;
    flex-direction: column;
    min-height: 390px;
    padding: var(--kp-card-padding-spacious);
}

.kp-theory-resource-card__eyebrow {
    color: var(--kp-blue);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.kp-theory-resource-card h3 {
    color: var(--kp-ink);
    font-family: 'EB Garamond', serif;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.06;
    margin: 0;
}

.kp-theory-resource-card__description {
    color: #4c526a;
    font-size: var(--kp-body-standard);
    line-height: 1.68;
    margin: 1.25rem 0 0;
}

.kp-homepage .kp-theory-resource-card__action {
    align-self: flex-start;
    background: #e6eef5;
    border-color: rgba(42, 108, 146, 0.24);
    color: #245d7e;
    margin-top: auto;
}

.kp-theory-resource-card__actions {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem 1.25rem;
    margin-top: auto;
}

.kp-homepage .kp-theory-resource-card__actions > .kp-theory-resource-card__action {
    align-self: center;
    flex: 0 0 auto;
    margin-top: 0;
}

.kp-theory-resource-card__markdown {
    color: #245d7e;
    flex: 1 1 0;
    font-size: 0.875rem;
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    white-space: normal;
}

.kp-theory-resource-card__markdown:hover,
.kp-theory-resource-card__markdown:focus-visible {
    color: var(--kp-ink);
}

.kp-theory-resource-card__actions--stacked {
    flex-wrap: wrap;
}

.kp-theory-resource-card__actions--stacked > .kp-theory-resource-card__markdown {
    flex-basis: 100%;
}

.kp-homepage .kp-theory-resource-card__action:hover,
.kp-homepage .kp-theory-resource-card__action:focus,
.kp-homepage .kp-theory-resource-card__action:not(:disabled):not(.disabled):active {
    background: #d6e5ef;
    border-color: rgba(42, 108, 146, 0.42);
    color: var(--kp-ink);
}

.kp-seminar-section {
    background: transparent;
    margin-bottom: 4.5rem;
    padding: 0;
}

.kp-seminar-header {
    margin-bottom: 2rem;
}

.kp-seminar-section__content {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(9, 14, 53, 0.1);
    border-radius: var(--kp-card-radius);
    box-shadow: var(--kp-card-shadow);
    display: grid;
    gap: clamp(2.5rem, 6vw, 6rem);
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    padding: clamp(2rem, 4vw, 3.5rem);
}

.kp-seminar-section__copy {
    max-width: 650px;
}

.kp-seminar-section__copy h3 {
    color: var(--kp-ink);
    font-family: 'EB Garamond', serif;
    font-size: clamp(1.4rem, 2.1vw, 1.85rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0 0 1rem;
}

.kp-seminar-section__meta {
    color: #4c526a;
    font-size: var(--kp-body-standard);
    font-weight: 500;
    line-height: 1.72;
    margin: 0 0 0.45rem;
}

.kp-seminar-section__description {
    color: #4c526a;
    font-size: var(--kp-body-standard);
    line-height: 1.7;
    margin: 0;
}

.kp-seminar-section__media {
    aspect-ratio: 16 / 9;
    background: #dbe8f0;
    border: 1px solid rgba(9, 14, 53, 0.12);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(1, 4, 28, 0.055);
    display: block;
    overflow: hidden;
    position: relative;
}

.kp-seminar-section__media img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 200ms ease;
    width: 100%;
}

.kp-seminar-section__media:hover img,
.kp-seminar-section__media:focus img {
    transform: scale(1.015);
}

.kp-seminar-section__timestamp {
    background: rgba(1, 4, 28, 0.88);
    border-radius: 3px;
    bottom: 0.75rem;
    color: #ffffff;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.55rem;
    position: absolute;
    right: 0.75rem;
}

.kp-seminar-section__play {
    align-items: center;
    background: var(--kp-ink-deep);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    height: 52px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: background-color 160ms ease, transform 160ms ease;
    width: 52px;
}

.kp-seminar-section__media:hover .kp-seminar-section__play,
.kp-seminar-section__media:focus .kp-seminar-section__play {
    background: var(--kp-blue);
    transform: translate(-50%, -50%) scale(1.06);
}

.kp-homepage .kp-team-section {
    background: #e8eaef !important;
    border-radius: 0 !important;
    color: var(--kp-ink);
    margin: clamp(5rem, 8vw, 7rem) 0 0 !important;
    padding: clamp(3.5rem, 6vw, 5rem) 0 !important;
}

.kp-team-section > .container {
    margin: 0 auto;
    max-width: var(--kp-page-shell);
    padding-left: var(--kp-page-gutter);
    padding-right: var(--kp-page-gutter);
    width: 100%;
}

.kp-team-header {
    align-items: end;
    border-bottom: 1px solid rgba(9, 14, 53, 0.18);
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    padding-bottom: 2.2rem;
}

.kp-team-section .kp-section-heading {
    color: var(--kp-ink) !important;
    margin: 0;
}

.kp-paper-header .kp-section-heading,
.kp-seminar-section .kp-section-heading,
.kp-team-section .kp-section-heading {
    font-size: clamp(2.25rem, 3.5vw, 3.3rem) !important;
}

.kp-team-all {
    align-items: center;
    color: #2a6c92;
    display: inline-flex;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 1rem;
    letter-spacing: 0.07em;
    padding-bottom: 0.25rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 160ms ease;
}

.kp-team-all span {
    font-size: 1.15rem;
    transition: transform 160ms ease;
}

.kp-team-all:hover,
.kp-team-all:focus-visible {
    color: #174c6a;
    text-decoration: none;
}

.kp-team-all:hover span,
.kp-team-all:focus-visible span {
    transform: translateX(4px);
}

.kp-team-grid {
    display: grid;
    column-gap: clamp(2rem, 4vw, 4rem);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(3.5rem, 7vw, 6rem);
    row-gap: clamp(4rem, 7vw, 6.5rem);
}

.kp-team-grid .row {
    display: contents;
}

.kp-team-grid .col-md-4 {
    display: block;
    flex: none;
    max-width: none;
    padding: 0;
    width: auto;
}

.kp-team-grid .col-md-4:empty {
    display: none;
}

.kp-team-section .card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: var(--kp-ink);
    height: 100%;
    margin: 0;
    overflow: visible;
    padding: 0 !important;
    transition: none;
}

.kp-team-section .card img {
    aspect-ratio: 1;
    background: #5f7887;
    border: 0;
    border-radius: 50% !important;
    box-shadow: none;
    height: 152px;
    object-fit: cover;
    object-position: 50% 50%;
    transition: box-shadow 160ms ease, filter 160ms ease;
    width: 152px;
}

.kp-team-portrait-link {
    display: block;
    width: fit-content;
    border-radius: 50%;
    line-height: 0;
}

.kp-homepage .kp-team-section .kp-team-portrait-link:is(:hover, :focus-visible) img {
    box-shadow: 0 0 0 4px rgba(42, 108, 146, 0.2), 0 10px 26px rgba(1, 4, 28, 0.13);
    filter: brightness(1.03) saturate(1.04);
}

.kp-team-section .text-center {
    text-align: left !important;
}

.kp-team-section .card h3 {
    color: var(--kp-ink);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0;
    margin-top: 1.5rem !important;
    transition: color 160ms ease;
}

.kp-homepage .kp-team-section .kp-team-name-link {
    color: var(--kp-ink);
    text-decoration: none;
    transition: color 160ms ease;
}

.kp-homepage .kp-team-section .kp-team-name-link:is(:hover, :focus-visible) {
    color: var(--kp-blue);
    text-decoration: none;
}

.kp-team-portrait-link:focus-visible,
.kp-team-name-link:focus-visible {
    outline: 2px solid var(--kp-blue);
    outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
    .kp-team-portrait-link img,
    .kp-homepage .kp-team-section .kp-team-name-link {
        transition: none;
    }
}

.kp-team-section .card p {
    color: #5a6175;
    font-size: var(--kp-body-standard);
    line-height: 1.5;
}

.kp-team-section .card .font-weight-bold {
    color: #456f96;
    font-size: 0.875rem;
    font-weight: 600 !important;
    letter-spacing: 0.12em;
    margin-bottom: 0.55rem !important;
    margin-top: 0.55rem;
    text-transform: uppercase;
}

.kp-homepage .team-profile,
.kp-homepage .container-light-secondary .card {
    background: rgba(255, 255, 255, 0.86);
}

.kp-homepage .container-light-secondary:not(.kp-team-section) .card img {
    border-radius: 50% !important;
    filter: saturate(0.82);
}

@media (max-width: 991.98px) {
    .kp-home-hero,
    .kp-home-hero__inner {
        min-height: 600px;
    }

    .kp-home-hero h1 {
        font-size: clamp(3.7rem, 10vw, 5.8rem);
        max-width: 760px;
    }

    .kp-download-hero__inner {
        grid-template-columns: 1fr;
    }

    .kp-download-hero__copy {
        max-width: 760px;
    }

    .kp-download-app {
        max-width: 720px;
        transform: none;
        width: 100%;
    }

    .kp-home-intro {
        gap: 3.5rem;
        grid-template-columns: 1fr;
    }

    .kp-home-intro__copy {
        max-width: 700px;
    }

    .kp-home-intro__stage {
        max-width: 720px;
        width: 100%;
    }

    .kp-overview-feature,
    .kp-seminar-section__content {
        gap: 3.5rem;
        grid-template-columns: 1fr;
    }

    .kp-overview-feature__copy {
        max-width: 700px;
        order: -1;
    }

    .kp-overview-feature__visual {
        max-width: 400px;
        width: 100%;
    }

    .kp-seminar-section__media {
        justify-self: center;
        max-width: 520px;
        width: 100%;
    }

    .kp-seminar-section__copy {
        max-width: 700px;
    }

    .kp-technical-card {
        gap: 2.5rem;
        grid-template-columns: 1fr;
    }

    .kp-technical-card__analysis {
        border-left: 0;
        border-top: 1px solid rgba(9, 14, 53, 0.18);
        padding-left: 0;
        padding-top: 2.5rem;
    }

    .kp-ai-concept--editorial .kp-ai-concept__layout {
        grid-template-columns: 1fr;
    }

    .kp-ai-prompt__layout {
        grid-template-columns: 1fr;
    }

    .kp-ai-concept__copy {
        max-width: 760px;
    }

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

@media (max-width: 767.98px) {
    .kp-topbar {
        height: 68px;
    }

    .kp-topbar + .page-navbar-padding {
        margin-top: 68px;
    }

    .kp-nav-shell {
        justify-content: flex-start;
    }

    .kp-topbar .navbar-brand {
        font-size: 1.55rem;
    }

    .kp-home-hero,
    .kp-home-hero__inner {
        min-height: 560px;
    }

    .kp-home-hero__inner {
        padding-bottom: 3.5rem;
        padding-top: 3.5rem;
    }

    .kp-home-hero h1 {
        font-size: clamp(3rem, 13vw, 4.25rem);
        line-height: 1.06;
    }

    .kp-home-hero__lede {
        margin-top: 1.5rem;
    }

    .kp-home-hero__actions {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
        padding: 1.15rem;
    }

    .kp-home-hero__actions .kp-home-hero__primary {
        justify-self: start;
        width: auto;
    }

    .kp-download-hero {
        padding-bottom: 4.5rem;
        padding-top: 4.5rem;
    }

    .kp-download-hero h2 {
        font-size: clamp(2.9rem, 13vw, 4.2rem);
        letter-spacing: -0.035em;
    }

    .kp-download-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .kp-download-hero__actions a {
        width: 100%;
    }

    .kp-download-app {
        border-radius: 18px;
    }

    .kp-download-app__bar {
        grid-template-columns: auto 1fr;
    }

    .kp-download-app__bar > span:not(.kp-download-app__secure) {
        justify-self: end;
    }

    .kp-download-app__secure {
        display: none;
    }

    .kp-download-app__body {
        border-radius: 12px 12px 15px 15px;
        margin: 0 5px 5px;
        padding: 1rem;
    }

    .kp-download-app__file {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .kp-download-app__loaded {
        grid-column: 2;
    }

    .kp-home-main {
        --kp-editorial-gutter: 0;
        padding-bottom: 0;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-top: 3rem !important;
    }

    .kp-home-intro,
    .kp-overview-feature,
    .kp-technical-card,
    .kp-paper-grid,
    .kp-seminar-section {
        margin-bottom: 3.5rem;
    }

    .kp-home-intro,
    .kp-overview-feature {
        padding-bottom: 2.5rem;
        padding-top: 2.5rem;
    }

    .kp-paper-grid > .col,
    .kp-team-grid {
        grid-template-columns: 1fr;
    }

    .kp-theory-resources {
        margin-bottom: 3.5rem;
    }

    .kp-theory-resources__grid {
        grid-template-columns: 1fr;
    }

    .kp-theory-resource-card {
        min-height: 0;
        padding: var(--kp-card-padding-spacious);
    }

    .kp-theory-resource-card__action {
        margin-top: 2rem;
    }

    .kp-team-section {
        padding: 2rem 0 !important;
    }

    .kp-homepage .kp-team-section .kp-section-heading {
        font-size: 2.25rem !important;
    }

    .kp-paper-header,
    .kp-team-header {
        align-items: flex-end;
        flex-direction: row;
        gap: 1rem;
    }

    .kp-paper-header > .kp-team-all,
    .kp-team-header > .kp-team-all {
        flex-shrink: 0;
        gap: 0.5rem;
        max-width: 45%;
        text-align: right;
    }

    .kp-featured-paper-header > .kp-team-all {
        max-width: 7rem;
    }

    .kp-paper-header.kp-jobs-header {
        align-items: flex-end;
        flex-direction: row;
    }

    .kp-paper-header.kp-seminar-header {
        align-items: flex-end;
        flex-direction: row;
    }

    /* Mobile roster: one left-aligned profile per row, portrait above copy. */
    .kp-team-grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 3rem;
    }

    .kp-team-section .card img {
        height: 6rem;
        width: 6rem;
    }

    .kp-team-section .card h3 {
        margin-top: 1rem !important;
    }

    .kp-team-section .card p:last-child {
        margin-bottom: 0;
    }

    .kp-overview-feature__visual {
        background-image: url("media/page-summary_hero-card-smscreen.png");
    }

    .kp-technical-card,
    .kp-homepage .card-body.p-5 {
        padding: 1.75rem !important;
    }

    .kp-ai-concept-feature {
        margin-top: -0.5rem;
    }

    .kp-ai-concept {
        border-radius: 18px;
        padding: 2.75rem 1.75rem;
    }

    .kp-ai-concept__action {
        width: 100%;
    }

    .kp-ai-prompt__copy-button {
        box-sizing: border-box;
        max-width: 100%;
        order: 2;
        width: 100%;
    }

    .kp-ai-prompt__panel {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .kp-ai-prompt__toolbar,
    .kp-footer-ai-panel__toolbar {
        display: contents;
    }

    .kp-ai-prompt__panel blockquote {
        order: 1;
    }

    .kp-seminar-section__content {
        padding: 1.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kp-homepage *,
    .kp-homepage *::before,
    .kp-homepage *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* AI assessment page
-------------------------------------------------- */
.kp-ai-page-hero {
    align-items: center;
    display: flex;
    min-height: calc(100vh - 72px);
    min-height: calc(100svh - 72px);
    overflow: hidden;
    position: relative;
}

.kp-ai-page-hero .kp-footer-inner {
    position: relative;
    width: 100%;
    z-index: 1;
}

.kp-ai-page-hero .kp-footer-ai {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(4rem, 7vw, 6rem);
    padding-top: clamp(4rem, 7vw, 6rem);
}

.kp-ai-page-hero .kp-footer-ai-copy {
    align-items: center;
    display: flex;
    flex-direction: column;
    max-width: 920px;
    text-align: center;
}

.kp-ai-page-title {
    color: var(--kp-footer-navy-bottom);
    font-family: 'EB Garamond', serif;
    font-size: clamp(3.75rem, 7vw, 6.5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 0.94;
    margin: 0;
    max-width: 900px;
}

.kp-footer-ai-band--dark .kp-ai-page-title {
    color: #ffffff;
    text-shadow: 0 10px 36px rgba(65, 157, 220, 0.2);
}

.kp-ai-page-hero .kp-footer-ai-lede {
    font-size: var(--kp-body-lead);
    line-height: 1.68;
    margin-top: 1.75rem;
    max-width: 720px;
}

.kp-ai-page-hero .kp-footer-ai-panel {
    max-width: 570px;
    width: 100%;
}

.kp-ai-page-hero .kp-footer-ai-panel__toolbar {
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .kp-ai-page-title {
        font-size: clamp(3rem, 14vw, 4.25rem);
    }

    .kp-ai-page-hero .kp-footer-ai {
        gap: 2.5rem;
        padding-bottom: 4rem;
        padding-top: 4rem;
    }

    .kp-ai-page-hero .kp-footer-ai-copy {
        align-items: flex-start;
        text-align: left;
    }

    .kp-ai-page-hero .kp-footer-ai-panel__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .kp-ai-page-hero .kp-ai-prompt__copy-button {
        width: 100%;
    }
}

/* Shared inner-page design
-------------------------------------------------- */
.kp-not-found-page {
    --kp-not-found-header-height: 72px;
    --kp-not-found-footer-peek: 24px;
}

.kp-not-found {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    max-width: var(--kp-page-shell, 1280px);
    width: 100%;
    min-height: calc(100vh - var(--kp-not-found-header-height) - var(--kp-not-found-footer-peek));
    min-height: calc(100dvh - var(--kp-not-found-header-height) - var(--kp-not-found-footer-peek));
    padding: clamp(1.5rem, 6vh, 6.5rem) var(--kp-page-gutter, 24px);
}

@media (max-width: 767.98px) {
    .kp-not-found-page {
        --kp-not-found-header-height: 68px;
    }
}

.kp-not-found h1 {
    color: #090e35;
    font-size: clamp(2.75rem, 5.625vw, 5.0625rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin: 0 0 1.75rem;
    max-width: 850px;
}

.kp-not-found > p {
    color: #4c526a;
    max-width: 630px;
}

.kp-not-found > .kp-page-eyebrow {
    color: #527085;
    margin: 0 0 1.5rem;
}

.kp-not-found__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-top: 2rem;
}

.kp-not-found__links a {
    color: #2a6c92;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.kp-not-found__links a:focus-visible {
    outline: 2px solid #2a6c92;
    outline-offset: 6px;
}

/* Preserve room for the recovery links in short landscape windows. */
@media (max-height: 600px) {
    .kp-not-found h1 {
        font-size: clamp(2rem, 5vw, 2.75rem);
        margin-bottom: 1rem;
    }

    .kp-not-found > .kp-page-eyebrow {
        margin-bottom: 1rem;
    }

    .kp-not-found__links {
        margin-top: 1rem;
    }
}

.kp-site-page {
    --kp-ink: #090e35;
    --kp-ink-deep: #01041c;
    --kp-blue: #2a6c92;
    --kp-blue-bright: #6cc9ff;
    --kp-blue-pale: #dfeefb;
    --kp-paper: #f7f9fc;
    --kp-line: rgba(9, 14, 53, 0.14);
    --kp-page-gutter: clamp(1.25rem, 5vw, 4.5rem);
    --kp-page-shell: 1280px;
    background: var(--kp-paper);
    color: var(--kp-ink);
    font-family: 'IBM Plex Sans', sans-serif;
}

.kp-site-page #content {
    background: var(--kp-paper);
    position: relative;
}

.kp-site-page p,
.kp-site-page li,
.kp-site-page .card-title,
.kp-site-page .card-body,
.kp-site-page .btn,
.kp-site-page h2,
.kp-site-page h3,
.kp-site-page h4,
.kp-site-page strong {
    font-family: 'IBM Plex Sans', sans-serif;
}

.kp-site-page strong {
    font-size: inherit;
    font-weight: 600;
}

.kp-site-page h1,
.kp-site-page .h2-serif,
.kp-site-page .navbar-brand,
.kp-site-page .kp-footer-wordmark,
.kp-site-page .kp-footer-ai h2,
.kp-site-page .kp-footer-updates-copy h2 {
    font-family: 'EB Garamond', serif;
}

.kp-site-page .container-darkest-gradient {
    background: linear-gradient(108deg, #01041c 0%, #060a30 58%, #123653 100%);
    overflow: hidden;
    position: relative;
}

.kp-site-page .page-heading-container {
    margin: 0 auto;
    max-width: var(--kp-page-shell);
    padding: clamp(4rem, 7vw, 6.5rem) var(--kp-page-gutter) clamp(4.5rem, 8vw, 7rem);
    position: relative;
    width: 100%;
    z-index: 1;
}

/* Match heading gutters to the navigation; band wrappers add no extra inset. */
.kp-site-page:is(.kp-overview-page, .kp-about-page, .kp-jobs-page, .kp-literature-page, .kp-contact-page, .kp-team-page, .kp-application-page) .container-darkest-gradient {
    padding-left: 0;
    padding-right: 0;
}

.kp-site-page .a-page-breadcrumb-dark {
    color: rgba(223, 238, 251, 0.66);
    display: inline-block;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin: 0 0 1.75rem;
    opacity: 1;
    text-transform: uppercase;
}

.kp-site-page .a-page-breadcrumb-dark:hover,
.kp-site-page .a-page-breadcrumb-dark:focus {
    color: #ffffff;
    opacity: 1;
}

.kp-site-page .page-heading-container h1 {
    color: #ffffff;
    font-family: 'EB Garamond', serif;
    font-size: clamp(3.8rem, 7vw, 6.6rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1;
    margin: 0;
    max-width: 1000px;
}

.kp-site-page .page-heading-container > p {
    color: rgba(233, 245, 255, 0.78) !important;
    font-size: var(--kp-body-lead);
    line-height: 1.72;
    margin: 1.75rem 0 0;
    max-width: 760px;
}

.kp-site-page .page-heading-container > .kp-page-eyebrow {
    color: rgba(233, 245, 255, 0.62) !important;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
    margin: 0 0 1.75rem;
    text-transform: uppercase;
}

.kp-about-page .page-heading-container .kp-page-title--long,
.kp-overview-page .page-heading-container .kp-page-title--long {
    font-size: clamp(3.4rem, 5.6vw, 5.6rem);
    max-width: 1120px;
}

/* Keep approved cosmology equations within the reading column. */
.kp-overview-page .kp-cosmology-equation {
    max-width: 100%;
    overflow-x: auto;
    padding: 0.35rem 0;
    margin: 0.75rem 0;
}

@media print {
    .kp-overview-page .kp-cosmology-equation { overflow: visible; }
}

/* Keep legacy-topic deep links visible below the fixed navigation. */
.kp-overview-page :is(#quantum-collapse, #pauli-exclusion, #electroweak, #strong-sector, #gravity) {
    scroll-margin-top: 100px;
}

.kp-site-page .container-darkest-gradient + .container {
    margin: 0 auto;
    max-width: 1080px;
    padding-bottom: clamp(5rem, 8vw, 8rem);
    padding-left: var(--kp-page-gutter);
    padding-right: var(--kp-page-gutter);
    padding-top: clamp(4rem, 7vw, 6rem);
    width: 100%;
}

.kp-site-page .container-darkest-gradient + .container > br {
    display: none;
}

.kp-site-page .container-darkest-gradient + .container > p,
.kp-site-page .kp-reading-content > p,
.kp-site-page .container-darkest-gradient + .container section > p,
.kp-site-page .container-darkest-gradient + .container li {
    color: #4c526a;
    font-size: clamp(1rem, 1.05vw, 1.06rem);
    line-height: 1.78;
}

.kp-site-page .container-darkest-gradient + .container a:not(.btn) {
    color: var(--kp-blue);
    text-decoration-color: rgba(42, 108, 146, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.kp-site-page .container-darkest-gradient + .container a:not(.btn):hover,
.kp-site-page .container-darkest-gradient + .container a:not(.btn):focus {
    color: #174c6a;
    text-decoration-color: currentColor;
}

.kp-site-page .container-darkest-gradient + .container .h2-serif {
    color: var(--kp-ink);
    font-family: 'EB Garamond', serif !important;
    font-size: clamp(2.5rem, 4vw, 3.7rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.06;
    margin: var(--kp-reading-section-gap) 0 1.3rem !important;
    padding: 0;
}

.kp-site-page .container-darkest-gradient + .container .h2-serif:first-child {
    margin-top: 0 !important;
}

.kp-about-page .container-darkest-gradient + .container > .h2-serif:first-of-type {
    margin-top: 0 !important;
}

.kp-site-page .container-darkest-gradient + .container h3 {
    color: var(--kp-ink);
    font-size: clamp(1.25rem, 1.7vw, 1.55rem);
    font-weight: 500;
    line-height: 1.3;
    margin: 2.75rem 0 0.8rem;
}

.kp-site-page .hr-after-h2 {
    border: 0;
    border-top: 2px solid rgba(42, 108, 146, 0.45);
    margin: 0 0 1.75rem;
    width: 72px;
}

.kp-site-page .btn {
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.035em;
    padding: 0.85rem 1.2rem;
}

.kp-site-page .btn-dark,
.kp-site-page .btn-primary {
    background: var(--kp-ink-deep);
    border-color: var(--kp-ink-deep);
    color: #ffffff;
}

.kp-site-page .btn-dark:hover,
.kp-site-page .btn-dark:focus,
.kp-site-page .btn-primary:hover,
.kp-site-page .btn-primary:focus {
    background: var(--kp-blue);
    border-color: var(--kp-blue);
}

.kp-site-page .card {
    background: #ffffff;
    border: 1px solid var(--kp-line);
    border-radius: var(--kp-card-radius);
    box-shadow: var(--kp-card-shadow);
    overflow: hidden;
}

.kp-site-page .card-header {
    background: #eef5fb;
    border-bottom: 1px solid var(--kp-line);
    padding: 1.15rem 1.4rem;
}

.kp-site-page .card-body {
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.kp-site-page .kp-site-footer,
.kp-site-page .kp-footer-ai-band {
    font-family: 'IBM Plex Sans', sans-serif;
}

@media (max-width: 767.98px) {
    .kp-site-page .page-heading-container {
        padding-bottom: 4.25rem;
        padding-top: 3.75rem;
    }

    .kp-site-page .page-heading-container h1 {
        font-size: clamp(3.2rem, 14vw, 4.6rem);
    }

    .kp-about-page .page-heading-container .kp-page-title--long,
    .kp-overview-page .page-heading-container .kp-page-title--long {
        font-size: clamp(2.75rem, 11vw, 4rem);
    }

    .kp-site-page .container-darkest-gradient + .container {
        padding-bottom: 5rem;
        padding-top: 3.5rem;
    }
}

/* Inner-page components
-------------------------------------------------- */
.kp-overview-page,
.kp-overview-page #content {
    background: #ffffff;
}

.kp-site-page.kp-overview-page .container-darkest-gradient,
.kp-site-page.kp-about-page .container-darkest-gradient,
.kp-site-page.kp-application-page .container-darkest-gradient {
    background:
        linear-gradient(115deg, #edf2f7 0%, #e8edf5 55%, #dfeaf1 100%);
}

.kp-site-page.kp-overview-page .container-darkest-gradient::before,
.kp-site-page.kp-about-page .container-darkest-gradient::before,
.kp-site-page.kp-application-page .container-darkest-gradient::before {
    background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.08) 62%, rgba(255, 255, 255, 0.16) 100%);
    content: "";
    height: 150%;
    pointer-events: none;
    position: absolute;
    right: -16%;
    top: -38%;
    transform: rotate(-6deg);
    width: 125%;
}

.kp-overview-wavefield {
    height: 82%;
    opacity: 0.54;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 9%;
    width: 100%;
    z-index: 0;
}

/* Overview: approved 06B Right-edge veil with the desktop line color and opacity. */
@media (max-width: 1099.98px) {
    .kp-overview-page .page-heading-container {
        padding-bottom: 40px;
    }

    .kp-overview-wavefield {
        --kp-wave-stroke-width: 1;
        --kp-wave-start: 0.12;
        --kp-wave-width-scale: 1.12;
        height: calc(100% - 32px);
        opacity: 0.54;
        left: 0;
        right: -45%;
        top: 16px;
        transform: none;
        width: 145%;
    }
}

.kp-overview-page .page-heading-container .kp-page-title--long {
    color: #182b45;
    max-width: 800px;
    opacity: 1;
}

.kp-overview-page .page-heading-container > .kp-page-eyebrow {
    color: #50667c !important;
    opacity: 1;
}

.kp-overview-page .page-heading-container > p:not(.kp-page-eyebrow) {
    color: #475d72 !important;
    opacity: 1;
}

.kp-overview-page .container-darkest-gradient + .container {
    max-width: var(--kp-page-shell);
    padding-bottom: clamp(8rem, 12vw, 12rem);
}

.kp-overview-page .container-darkest-gradient + .container section {
    margin: 0 !important;
}

.kp-overview-page .container-darkest-gradient + .container .kp-reading-content > section {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 760px;
}

.kp-overview-page .container-darkest-gradient + .container .h2-serif::after {
    border-top: 2px solid rgba(42, 108, 146, 0.45);
    content: "";
    display: block;
    margin-top: 1.3rem;
    width: 72px;
}

.kp-about-page .page-heading-container .kp-page-title--long {
    color: #182b45;
    max-width: 800px;
    opacity: 1;
}

.kp-about-page .page-heading-container > .kp-page-eyebrow {
    color: #50667c !important;
}

.kp-about-page .page-heading-container > p:not(.kp-page-eyebrow) {
    color: #475d72 !important;
    opacity: 1;
}

.kp-about-page .container-darkest-gradient + .container {
    max-width: calc(clamp(570px, 40vw, 640px) + (2 * var(--kp-page-gutter)));
}

/* Section navigation alongside centered text on the Banded pages. */
.kp-site-page .container-darkest-gradient + .kp-reading-layout {
    --kp-reading-width: 760px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--kp-reading-width)) minmax(0, 1fr);
    align-items: start;
    max-width: var(--kp-page-shell);
}

.kp-about-page .container-darkest-gradient + .kp-reading-layout,
.kp-overview-page .container-darkest-gradient + .kp-reading-layout {
    --kp-reading-width: clamp(570px, 40vw, 640px);
}

.kp-reading-content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.kp-reading-content h2[id] {
    scroll-margin-top: 100px;
}

.kp-page-contents {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 100px;
    align-self: start;
    /* Reserve the outline's 5px extent inside the scrolling container. */
    max-width: 209px;
    margin-left: -5px;
    padding: 9px 24px 0 5px;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
}

.kp-page-contents__label {
    color: var(--kp-blue);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.4;
    margin: 0 0 22px;
    text-transform: uppercase;
}

.kp-page-contents__label::after {
    content: "";
    display: block;
    width: 36px;
    border-top: 2px solid #9bbccc;
    margin-top: 20px;
}

.kp-site-page .kp-reading-layout .kp-page-contents__links a:not(.btn) {
    display: block;
    color: #4c526a;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 16px;
    text-decoration: none;
}

.kp-site-page .kp-reading-layout .kp-page-contents__links a:hover,
.kp-site-page .kp-reading-layout .kp-page-contents__links a:focus-visible {
    color: var(--kp-blue);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.kp-site-page .kp-reading-layout .kp-page-contents__links a[aria-current="location"] {
    color: var(--kp-blue);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
}

/* Keep the contents rail beside the article on medium screens. */
@media (min-width: 768px) and (max-width: 1099.98px) {
    .kp-site-page .container-darkest-gradient + .kp-reading-layout {
        grid-template-columns: clamp(180px, 18.5vw, 204px) minmax(0, 1fr);
    }

    .kp-reading-content {
        max-width: var(--kp-reading-width);
    }
}

@media (max-width: 767.98px) {
    .kp-site-page .container-darkest-gradient + .kp-reading-layout {
        display: block;
    }

    .kp-reading-content {
        max-width: var(--kp-reading-width);
        margin-left: auto;
        margin-right: auto;
    }

    .kp-page-contents {
        display: none;
    }
}

.kp-overview-page .container-darkest-gradient + .container ul,
.kp-overview-page .container-darkest-gradient + .container .kp-footnotes ol {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.kp-overview-page .container-darkest-gradient + .container ul {
    padding-left: 1.25rem;
}

.kp-overview-page .kp-overview-visual-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: grid;
    grid-template-columns: 1fr;
    margin: clamp(2rem, 4vw, 3rem) auto;
    max-width: 350px;
    overflow: visible;
    width: 100%;
}

.kp-overview-page .kp-overview-visual-grid {
    display: grid;
    gap: clamp(2.5rem, 5vw, 4rem);
    grid-template-columns: 1fr;
    margin: clamp(2rem, 4vw, 3rem) auto;
    max-width: 350px;
}

.kp-overview-page .kp-overview-visual-grid .kp-overview-visual-card {
    margin: 0;
}

.kp-overview-page .kp-overview-visual-card--wide {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
}

.kp-overview-page .kp-overview-visual-card--reverse {
    grid-template-columns: 1fr;
}

.kp-overview-page .kp-overview-visual-card--reverse .kp-overview-visual-card__media {
    grid-column: 1;
    grid-row: 1;
}

.kp-overview-page .kp-overview-visual-card--reverse figcaption {
    border-left: 0;
    border-right: 0;
    grid-column: 1;
    grid-row: 2;
}

.kp-overview-page .kp-overview-visual-card__media {
    align-items: center;
    background: #ffffff;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    max-width: 350px;
    min-height: 220px;
    padding: clamp(0.75rem, 2vw, 1.5rem) 0;
    width: 100%;
}

.kp-overview-page .kp-overview-visual-card__media img,
.kp-overview-page .kp-overview-visual-card__media video {
    display: block;
    height: auto;
    max-height: 290px;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.kp-overview-page .kp-overview-visual-card__media--video {
    padding: 0;
}

.kp-overview-page .kp-overview-visual-card__media--video video {
    background: #ffffff;
    max-height: none;
}

.kp-overview-page .kp-overview-visual-card figcaption {
    border-left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    max-width: 350px;
    padding: 0.85rem 0 0;
    width: 100%;
}

.kp-overview-page .kp-overview-visual-grid figcaption {
    border-left: 0;
    border-top: 0;
    justify-content: flex-start;
    padding: 0.85rem 0 0;
}

.kp-overview-page .container-darkest-gradient + .container .kp-overview-media-review {
    background: #f6f8fb;
    border: 1px solid #e0e5ed;
    border-radius: 16px;
    margin-top: clamp(3.5rem, 6vw, 5rem) !important;
    padding: clamp(1.15rem, 2.5vw, 1.75rem);
}

.kp-overview-media-review__heading {
    align-items: end;
    display: grid;
    gap: 0.8rem 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
    margin-bottom: 1.25rem;
}

.kp-overview-media-review__heading > div > p {
    color: #737b8f;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.kp-overview-media-review__heading h2 {
    color: var(--kp-ink);
    font-family: 'EB Garamond', serif;
    font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.1;
    margin: 0;
}

.kp-overview-media-review__heading > p {
    color: #6c7487;
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

.kp-overview-media-review__grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kp-overview-media-review__grid figure {
    background: #ffffff;
    border: 1px solid #e2e6ed;
    border-radius: 10px;
    margin: 0;
    min-width: 0;
    overflow: hidden;
}

.kp-overview-media-review__thumb {
    align-items: center;
    aspect-ratio: 16 / 9;
    background: #ffffff;
    display: flex;
    justify-content: center;
    padding: 0.35rem;
}

.kp-overview-media-review__thumb img,
.kp-overview-media-review__thumb video {
    display: block;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.kp-overview-media-review__grid figcaption {
    border-top: 1px solid #edf0f4;
    display: block;
    padding: 0.72rem 0.75rem 0.82rem;
}

.kp-overview-media-review__grid figcaption strong,
.kp-overview-media-review__grid figcaption span {
    display: block;
}

.kp-overview-media-review__grid figcaption strong {
    color: #252b40;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.3;
}

.kp-overview-media-review__grid figcaption span {
    color: #747b8c;
    font-size: 0.78rem;
    line-height: 1.48;
    margin-top: 0.25rem;
}

.kp-overview-page .container-darkest-gradient + .container .kp-overview-next {
    background: transparent;
    border: 0;
    border-radius: 0;
    margin-bottom: 0 !important;
    margin-top: clamp(4.5rem, 8vw, 7rem) !important;
    padding: 0;
}

.kp-overview-page .kp-overview-next h2 {
    color: var(--kp-ink);
    font-family: 'EB Garamond', serif;
    font-size: clamp(2.5rem, 4vw, 3.7rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.06;
    margin: 0;
}

.kp-overview-page .kp-overview-next p {
    color: #4c526a;
    font-size: clamp(1rem, 1.2vw, 1.08rem);
    line-height: 1.7;
    margin: 1.25rem 0 0;
    max-width: 720px;
}

.kp-overview-page .kp-overview-next .kp-overview-next__link {
    align-items: center;
    display: inline-flex;
    font-weight: 600;
    gap: 0.55rem;
    margin-top: 1.25rem;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .kp-overview-page .kp-overview-visual-grid,
    .kp-overview-page .kp-overview-visual-card--wide,
    .kp-overview-page .kp-overview-visual-card--reverse {
        grid-template-columns: 1fr;
    }

    .kp-overview-page .kp-overview-visual-card--reverse .kp-overview-visual-card__media,
    .kp-overview-page .kp-overview-visual-card--reverse figcaption {
        grid-column: 1;
    }

    .kp-overview-page .kp-overview-visual-card--reverse .kp-overview-visual-card__media {
        grid-row: 1;
    }

    .kp-overview-page .kp-overview-visual-card--reverse figcaption {
        border-right: 0;
        grid-row: 2;
    }

    .kp-overview-page .kp-overview-visual-card figcaption {
        border-left: 0;
        border-top: 0;
        padding: 0.85rem 0 0;
    }

    .kp-overview-page .kp-overview-visual-card__media {
        min-height: 190px;
    }

    .kp-overview-media-review__heading {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .kp-overview-media-review__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.kp-literature-page .container-darkest-gradient + .container,
.kp-events-page .container-darkest-gradient + .container {
    max-width: 1180px;
}

.kp-team-page .container-darkest-gradient + .container {
    max-width: var(--kp-page-shell);
}

.kp-site-page.kp-literature-page .container-darkest-gradient {
    background: var(--kp-paper);
    position: relative;
}

.kp-site-page.kp-literature-page,
.kp-site-page.kp-jobs-page {
    --kp-header-divider-gap: clamp(4.5rem, 8vw, 7rem);
}

.kp-site-page.kp-literature-page .container-darkest-gradient::after,
.kp-site-page.kp-jobs-page .container-darkest-gradient::after {
    background: rgba(42, 108, 146, 0.24);
    bottom: 0;
    content: "";
    height: 1px;
    left: max(var(--kp-page-gutter), calc((100% - var(--kp-page-shell)) / 2 + var(--kp-page-gutter)));
    position: absolute;
    right: max(var(--kp-page-gutter), calc((100% - var(--kp-page-shell)) / 2 + var(--kp-page-gutter)));
}

.kp-site-page.kp-team-page .container-darkest-gradient,
.kp-site-page.kp-jobs-page .container-darkest-gradient {
    background: var(--kp-paper);
}

/* Header artwork: Jobs line field and About's selected Curved horizon. */
.kp-jobs-linefield {
    height: 100%;
    opacity: 0.48;
    pointer-events: none;
    position: absolute;
    inset: 0;
    width: 100%;
    z-index: 0;
}

.kp-jobs-linefield path {
    opacity: 0.54;
    fill: none;
    stroke: #436687;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.kp-about-header-art {
    position: absolute;
    left: calc(max(var(--kp-page-gutter), (100% - var(--kp-page-shell)) / 2 + var(--kp-page-gutter)) + 710px);
    right: -155px;
    top: 16px;
    bottom: 16px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.kp-about-header-art svg {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 1099px) {
    .kp-about-page .container-darkest-gradient {
        display: flex;
        flex-direction: column;
    }

    .kp-about-page .container-darkest-gradient .page-heading-container {
        padding-bottom: 24px;
    }

    .kp-about-header-art {
        position: relative;
        inset: auto;
        order: 2;
        width: 65%;
        height: 260px;
        margin: -10px -100px 20px auto;
    }
}

@media (max-width: 767.98px) {
    .kp-jobs-linefield {
        opacity: 0.3;
    }
}

@media (max-width: 600px) {
    .kp-about-header-art {
        width: 90%;
        height: 200px;
        margin-right: -80px;
    }
}

/* About mobile and medium headers: approved Right-edge veil composition. */
@media (max-width: 1099.98px) {
    .kp-about-page .container-darkest-gradient {
        display: block;
        isolation: isolate;
    }

    .kp-about-page .container-darkest-gradient .page-heading-container {
        padding-bottom: 40px;
    }

    .kp-about-page .kp-about-header-art {
        position: absolute;
        inset: 16px -45% 16px 0;
        width: auto;
        height: auto;
        margin: 0;
        opacity: 0.8;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 65%);
        mask-image: linear-gradient(90deg, transparent, #000 65%);
    }

    .kp-about-page .kp-about-header-art path {
        stroke-width: 0.8px;
        vector-effect: non-scaling-stroke;
    }
}

.kp-site-page.kp-literature-page .page-heading-container {
    max-width: var(--kp-page-shell);
    padding-bottom: var(--kp-header-divider-gap);
}

.kp-site-page.kp-team-page .page-heading-container {
    max-width: var(--kp-page-shell);
    padding-bottom: clamp(2rem, 3vw, 3rem);
}

.kp-team-header-art,
.kp-jobs-header-art,
.kp-contact-header-art,
.kp-literature-header-art {
    display: none;
    pointer-events: none;
}

@media (min-width: 1100px) {
    .kp-team-header-art,
    .kp-jobs-header-art,
    .kp-contact-header-art,
    .kp-literature-header-art {
        display: block;
        position: absolute;
        left: calc(max(var(--kp-page-gutter), (100% - var(--kp-page-shell)) / 2 + var(--kp-page-gutter)) + 700px + 48px);
        right: -155px;
        top: 28px;
        bottom: 24px;
        overflow: hidden;
    }

    .kp-literature-header-art {
        left: calc(max(var(--kp-page-gutter), (100% - var(--kp-page-shell)) / 2 + var(--kp-page-gutter)) + 700px);
    }

    .kp-jobs-header-art {
        left: calc(max(var(--kp-page-gutter), (100% - var(--kp-page-shell)) / 2 + var(--kp-page-gutter)) + clamp(580px, calc(1117px - 43.33vw), 640px));
    }
}

.kp-team-header-art svg,
.kp-jobs-header-art svg,
.kp-contact-header-art svg,
.kp-literature-header-art svg {
    display: block;
    width: 100%;
    height: 100%;
}

.kp-jobs-header-art svg {
    transform: scale(1.12, 1.2);
    transform-origin: left center;
}

/* Team and Jobs mobile and medium headers: approved Right-edge veil composition. */
@media (max-width: 1099.98px) {
    .kp-team-page .kp-team-header-art,
    .kp-jobs-page .kp-jobs-header-art {
        display: block;
        position: absolute;
        inset: 16px -45% 16px 0;
        overflow: hidden;
        opacity: 0.8;
        z-index: 0;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 65%);
        mask-image: linear-gradient(90deg, transparent, #000 65%);
    }

    .kp-team-page .kp-team-header-art path,
    .kp-jobs-page .kp-jobs-header-art path {
        stroke-width: 0.8px;
        vector-effect: non-scaling-stroke;
    }

    .kp-site-page.kp-team-page .page-heading-container {
        padding-bottom: 40px;
    }

    .kp-jobs-page .kp-jobs-header-art svg {
        transform: none;
    }
}

/* Literature mobile and medium: approved 06B veil, retaining 40% strength behind the copy. */
@media (max-width: 1099.98px) {
    .kp-literature-page .kp-literature-header-art {
        display: block;
        position: absolute;
        inset: 16px -45% 16px 0;
        overflow: hidden;
        opacity: 0.8;
        z-index: 0;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 65%);
        mask-image: linear-gradient(90deg, transparent, #000 65%);
    }

    .kp-literature-page .kp-literature-header-art svg {
        -webkit-mask-image: linear-gradient(#000 var(--veil-title-end, 40%), rgba(0, 0, 0, .4) var(--veil-copy-start, 55%));
        mask-image: linear-gradient(#000 var(--veil-title-end, 40%), rgba(0, 0, 0, .4) var(--veil-copy-start, 55%));
    }

    .kp-literature-page .kp-literature-header-art path {
        stroke-width: 0.8px;
        vector-effect: non-scaling-stroke;
    }
}

.kp-site-page.kp-jobs-page .page-heading-container {
    max-width: var(--kp-page-shell);
    padding-bottom: var(--kp-header-divider-gap);
}

.kp-site-page.kp-literature-page .container-darkest-gradient + .container,
.kp-site-page.kp-jobs-page .container-darkest-gradient + .container {
    max-width: var(--kp-page-shell);
    padding-top: var(--kp-header-divider-gap);
}

.kp-site-page.kp-literature-page .page-heading-container h1 {
    color: var(--kp-ink);
    font-size: clamp(3.4rem, 5.6vw, 5.6rem);
}

.kp-site-page.kp-team-page .page-heading-container h1 {
    color: var(--kp-ink);
    font-size: clamp(3.4rem, 5.6vw, 5.6rem);
    max-width: 800px;
}

.kp-site-page.kp-jobs-page .page-heading-container h1,
.kp-site-page.kp-application-page .page-heading-container h1 {
    color: #182b45;
    font-size: clamp(3.4rem, 5.6vw, 5.6rem);
}

.kp-site-page.kp-literature-page .page-heading-container > p {
    color: #4c526a !important;
}

.kp-site-page.kp-team-page .page-heading-container > p {
    color: #4c526a !important;
}

.kp-site-page.kp-jobs-page .page-heading-container > p,
.kp-site-page.kp-application-page .page-heading-container > p {
    color: #475d72 !important;
}

.kp-site-page:is(.kp-overview-page, .kp-about-page, .kp-jobs-page, .kp-literature-page, .kp-contact-page, .kp-team-page) .page-heading-container > .kp-page-eyebrow {
    color: var(--kp-blue) !important;
}

.kp-application-page .a-page-breadcrumb-dark {
    color: #50667c;
}

.kp-application-page .a-page-breadcrumb-dark:hover,
.kp-application-page .a-page-breadcrumb-dark:focus {
    color: var(--kp-blue);
}

.kp-application-page .page-heading-container h1,
.kp-application-page .page-heading-container > p {
    max-width: 700px;
    opacity: 1;
}

/* Banded and Integrated Headings share title color and line spacing. */
.kp-site-page:is(.kp-overview-page, .kp-about-page, .kp-jobs-page, .kp-literature-page, .kp-contact-page, .kp-team-page, .kp-application-page) .page-heading-container h1 {
    color: var(--kp-ink);
    line-height: 1.14;
}

.kp-site-page:is(.kp-overview-page, .kp-about-page, .kp-jobs-page, .kp-literature-page, .kp-contact-page, .kp-team-page, .kp-application-page) .page-heading-container > p:not(.kp-page-eyebrow) {
    color: #4c526a !important;
}

.kp-site-page:is(.kp-overview-page, .kp-literature-page, .kp-about-page, .kp-team-page, .kp-jobs-page) .page-heading-container h1,
.kp-site-page:is(.kp-overview-page, .kp-literature-page, .kp-about-page, .kp-team-page, .kp-jobs-page) .page-heading-container > p:not(.kp-page-eyebrow) {
    max-width: 700px;
}

@media (max-width: 767.98px) {
    .kp-site-page.kp-literature-page .page-heading-container h1 {
        font-size: clamp(2.75rem, 11vw, 4rem);
    }

    .kp-site-page.kp-team-page .page-heading-container h1,
    .kp-site-page.kp-contact-page .page-heading-container h1 {
        font-size: clamp(2.75rem, 11vw, 4rem);
    }

    .kp-site-page.kp-jobs-page .page-heading-container h1,
    .kp-site-page.kp-application-page .page-heading-container h1 {
        font-size: clamp(2.75rem, 11vw, 4rem);
    }
}

.kp-literature-page .kp-literature-ai-drafts {
    display: none;
}

.kp-literature-page .kp-literature-book {
    margin-bottom: clamp(4rem, 7vw, 6rem) !important;
}

.kp-literature-page .kp-literature-book--within-section {
    margin-bottom: 1rem !important;
    margin-top: clamp(2rem, 4vw, 3rem);
}

.kp-literature-page .kp-literature-book__controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 0.8rem;
}

.kp-literature-page .kp-literature-book__formats {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.kp-literature-page .kp-literature-book__controls .kp-resource-link {
    margin-top: 0;
}

.kp-literature-page .kp-literature-book__drawer {
    margin-inline: calc(-1 * var(--kp-card-padding-spacious));
}

.kp-literature-page .kp-literature-book__preface {
    border-top: 1px solid var(--kp-line);
    color: #4c526a;
    font-size: 0.98rem;
    line-height: 1.75;
    margin-top: 1.25rem;
    padding-inline: var(--kp-card-padding-spacious);
    padding-top: 1.5rem;
}

.kp-literature-page .kp-literature-book__preface p {
    max-width: 900px;
    color: inherit;
    font-size: inherit !important;
    line-height: inherit !important;
    margin-bottom: 0;
}

.kp-literature-page .kp-literature-book__preface .kp-literature-book__preface-note {
    color: #667086;
    font-size: 0.82rem !important;
    font-weight: 600;
    margin-top: 0.85rem;
}

.kp-literature-page .kp-literature-book .kp-theory-resources__header {
    margin-bottom: 2rem;
}

.kp-literature-page .kp-theory-resource-card--full {
    min-height: 0;
    width: 100%;
}

.kp-site-page.kp-literature-page .container-darkest-gradient + .container .kp-theory-resource-card--full .kp-theory-resource-card__title {
    font-family: 'EB Garamond', serif;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin: 0;
}

.kp-literature-page .kp-literature-book__metadata {
    margin-top: 1.25rem;
}

.kp-literature-page .kp-literature-book__metadata p {
    color: #667086;
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
}

.kp-literature-page .kp-literature-heading-rule,
.kp-jobs-page .kp-jobs-heading-rule {
    border: 0;
    border-top: 2px solid rgba(42, 108, 146, 0.45);
    width: 72px;
}

.kp-site-page.kp-literature-page .container-darkest-gradient + .container .kp-literature-section-heading,
.kp-site-page.kp-jobs-page .container-darkest-gradient + .container .kp-jobs-section-heading {
    font-family: 'EB Garamond', serif !important;
    font-size: clamp(2.25rem, 3.5vw, 3.3rem) !important;
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.kp-literature-page .kp-literature-heading-rule,
.kp-jobs-page .kp-jobs-heading-rule {
    margin: -0.35rem 0 2rem;
}

.kp-literature-page .kp-theory-resource-card--full .kp-theory-resource-card__description {
    max-width: 860px;
}

.kp-literature-page .kp-theory-resource-card--full .kp-theory-resource-card__action {
    margin-top: 2rem;
}

.kp-literature-page .accordion {
    display: grid;
    gap: var(--kp-card-gap-compact);
    margin-bottom: 1.25rem;
}

.kp-literature-page .accordion > .card,
.kp-literature-page .container-darkest-gradient + .container > .card {
    margin-bottom: 1rem;
}

.kp-literature-page .accordion > .card {
    border: 1px solid var(--kp-line) !important;
    border-radius: var(--kp-card-radius) !important;
    margin-bottom: 0 !important;
    overflow: hidden;
}

.kp-literature-page .card-header {
    background: #ffffff;
    padding: 0;
}

.kp-literature-page .kp-literature-paper-heading {
    align-items: end;
    display: grid;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    grid-template-columns: minmax(0, 1fr) auto;
    padding: var(--kp-card-padding-compact);
}

.kp-literature-page .accordion > .card .card-body {
    padding: var(--kp-card-padding-compact);
}

.kp-literature-page .card-title {
    color: var(--kp-ink);
    margin: 0;
    text-decoration: none;
}

.kp-literature-page .card-title h5 {
    color: var(--kp-ink);
    font-family: 'EB Garamond', serif;
    font-size: clamp(1.4rem, 2.1vw, 1.85rem);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 0.55rem;
}

.kp-literature-page .card-title p {
    color: #667086;
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
}

/* Shared Resource link: homepage PDFs and Literature PDF/Markdown links. */
a.kp-resource-link {
    color: var(--kp-blue) !important;
    display: inline-block;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.035em;
    text-decoration: none;
}

a.kp-resource-link:hover,
a.kp-resource-link:focus {
    color: var(--kp-ink) !important;
}

/* Placement belongs to the containing card, not the shared link style. */
.kp-literature-page .card-title > .kp-resource-link {
    margin-top: 0.8rem;
}

.kp-literature-page .kp-paper-abstract-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--kp-ink);
    cursor: pointer;
    display: inline-flex;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 0.65rem;
    letter-spacing: 0.035em;
    padding: 0.55rem 0;
    white-space: nowrap;
}

.kp-literature-page .kp-paper-abstract-toggle:not(.kp-disclosure-just-activated):is(:hover, :focus-visible) {
    color: var(--kp-blue);
}

.kp-literature-page .kp-paper-abstract-toggle__caret {
    border-bottom: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    display: block;
    height: 0.5rem;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 180ms ease;
    width: 0.5rem;
}

.kp-literature-page .kp-paper-abstract-toggle[aria-expanded="true"] .kp-paper-abstract-toggle__caret {
    transform: rotate(225deg) translate(-1px, -1px);
}

.kp-literature-page .card-body {
    border-top: 1px solid var(--kp-line);
    color: #4c526a;
    font-size: 0.98rem;
    line-height: 1.75;
}

.kp-literature-page #complete-theory-title {
    scroll-margin-top: 120px;
}

.kp-team-page .container-darkest-gradient + .container > p {
    max-width: 900px;
}

.kp-team-page .team-profile {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--kp-line);
    border-radius: var(--kp-card-radius);
    box-shadow: var(--kp-card-shadow);
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
    grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
    margin: 0 0 var(--kp-card-gap-spacious) !important;
    padding: var(--kp-card-padding-spacious);
}

.kp-team-page .team-profile > [class*="col-"] {
    flex: none;
    max-width: none;
    padding: 0;
    width: auto;
}

.kp-team-page .team-profile > div:first-child {
    align-items: center;
    display: flex;
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    margin: 0 !important;
}

.kp-team-page .team-profile > div:last-child {
    align-self: center;
    grid-column: 1;
    grid-row: 1;
}

.kp-team-page .team-profile img {
    aspect-ratio: 4 / 5;
    background: #5f7887;
    border: 1px solid rgba(9, 14, 53, 0.12);
    border-radius: 16px !important;
    height: auto;
    max-width: 230px;
    object-fit: cover;
    object-position: center 20%;
    width: 100%;
}

.kp-site-page.kp-team-page .team-profile h3 {
    font-family: 'EB Garamond', serif;
    font-size: clamp(1.4rem, 2.1vw, 1.85rem);
    font-weight: 500;
    letter-spacing: normal;
    line-height: 1.2;
    margin: 0 0 0.55rem;
}

.kp-team-page .team-profile p {
    font-size: 0.98rem !important;
    line-height: 1.68 !important;
}

.kp-team-page .team-profile .col-md-9 > p:last-child {
    color: #4c526a;
    font-size: clamp(0.96rem, 1.05vw, 1.04rem) !important;
    font-weight: 400;
    line-height: 1.68 !important;
}

.kp-team-page .team-profile .font-weight-bold {
    color: #667086 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kp-team-page .kp-external-link {
    align-items: center;
    border-bottom: 0;
    color: var(--kp-blue);
    display: inline-flex;
    font-size: 0.92rem;
    font-weight: 500;
    gap: 0.36rem;
    justify-self: start;
    line-height: 1.35;
    padding-bottom: 0;
    text-decoration: none;
}

.kp-team-page .kp-external-link:hover,
.kp-team-page .kp-external-link:focus {
    color: var(--kp-ink);
    text-decoration: none;
}

.kp-team-page .kp-external-link:focus-visible {
    border-radius: 3px;
}

.kp-external-link__icon {
    display: inline-block;
    font-size: 0.8em;
    line-height: 1;
    vertical-align: baseline;
    text-decoration: none;
}


.kp-jobs-page .container-darkest-gradient + .container {
    max-width: var(--kp-page-shell);
    padding-bottom: var(--kp-header-divider-gap);
}

.kp-jobs-page .kp-jobs-status {
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.kp-site-page.kp-jobs-page .container-darkest-gradient + .container .kp-jobs-status > .kp-jobs-status-message {
    color: var(--kp-ink);
    font-family: 'IBM Plex Sans', sans-serif !important;
    font-size: clamp(1rem, 1.2vw, 1.16rem);
    font-weight: 600;
    letter-spacing: normal;
    line-height: 1.45;
    margin: 0 0 0.85rem !important;
}

.kp-jobs-page .kp-jobs-status > p {
    color: #4c526a;
    font-size: clamp(1rem, 1.05vw, 1.06rem);
    line-height: 1.78;
    margin: 0;
    max-width: 700px;
}

.kp-jobs-page .kp-jobs-subscribe-wrap {
    margin-left: 0;
    margin-top: clamp(2.5rem, 4vw, 4rem);
    max-width: 700px;
    width: 100%;
}

.kp-jobs-page .kp-jobs-subscribe {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--kp-card-radius);
    box-shadow: var(--kp-card-shadow);
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
    padding: 2rem;
    scroll-margin-top: 120px;
}

.kp-jobs-page .kp-jobs-subscribe__copy {
    min-width: 0;
}

.kp-jobs-page .kp-jobs-subscribe--cool-slate {
    --kp-jobs-card-copy: #445064;
    --kp-jobs-card-heading: #090e35;
    background: #e8edf2;
    border-color: #cfd7e1;
}

/* The slate card needs a stronger action color than the white-card buttons. */
:root .kp-jobs-subscribe__form .cog-cognito {
    --button-primary__background-color: #245d7e;
    --button-primary__border-color: #245d7e;
    --button-primary__color: #dfeefb;
    --kp-form-button-hover-background: #1b4863;
    --kp-form-button-hover-border: #1b4863;
    --kp-form-button-hover-color: #ffffff;
}

.kp-site-page.kp-jobs-page .container-darkest-gradient + .container .kp-jobs-subscribe__copy h3 {
    color: var(--kp-jobs-card-heading, var(--kp-ink));
    font-family: 'EB Garamond', serif;
    font-size: clamp(2.25rem, 4vw, 3.1rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin: 0;
}

.kp-jobs-page .kp-jobs-subscribe__copy p {
    color: var(--kp-jobs-card-copy, #4c526a);
    font-size: 0.98rem !important;
    line-height: 1.68 !important;
    margin: 0.9rem 0 0;
    max-width: 580px;
}

.kp-jobs-page .kp-jobs-subscribe__form {
    margin: 0;
    max-width: none;
}

@media (max-width: 767.98px) {
    .kp-jobs-page .kp-jobs-subscribe {
        gap: 1.5rem;
        grid-template-columns: minmax(0, 1fr);
        padding: 1.5rem;
    }
}

.kp-application-page .container-darkest-gradient + .container {
    background: #ffffff;
    border: 1px solid var(--kp-line);
    border-radius: var(--kp-card-radius);
    box-shadow: var(--kp-card-shadow);
    margin-bottom: clamp(5rem, 8vw, 8rem);
    margin-top: clamp(4rem, 7vw, 6rem);
    max-width: 980px;
    padding: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 767.98px) {
    .kp-application-page .container-darkest-gradient + .container {
        width: calc(100% - 2 * var(--kp-page-gutter));
    }
}

.kp-contact-page,
.kp-contact-page #content,
.kp-site-page.kp-contact-page .container-darkest-gradient {
    background: var(--kp-paper);
}

.kp-contact-page .page-heading-container {
    max-width: var(--kp-page-shell);
    padding-bottom: clamp(2rem, 3vw, 3rem);
}

.kp-contact-intro {
    position: relative;
    overflow: hidden;
}

.kp-contact-intro .kp-contact-header-art {
    bottom: auto;
    height: clamp(600px, 52vw, 680px);
}

.kp-contact-page .page-heading-container h1 {
    color: var(--kp-ink);
    font-size: clamp(3.4rem, 5.6vw, 5.6rem);
    max-width: 700px;
}

.kp-contact-page .page-heading-container > p:not(.kp-page-eyebrow) {
    color: #4c526a !important;
    max-width: 700px;
}

.kp-contact-page .container-darkest-gradient + .kp-contact-layout {
    max-width: var(--kp-page-shell);
    padding-top: 0;
    padding-bottom: clamp(4.5rem, 7vw, 7rem);
    scroll-margin-top: 100px;
}

.kp-contact-form {
    min-width: 0;
    max-width: 760px;
    border-top: 2px solid #b5c9d8;
    padding-top: 1.5rem;
}

/* Contact: the approved veil reaches 240px into the form at smaller widths.
   The artwork uses the header's grid row, so its height follows text wrapping. */
@media (max-width: 1099.98px) {
    .kp-contact-intro {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        isolation: isolate;
    }

    .kp-site-page.kp-contact-page .kp-contact-intro > .container-darkest-gradient {
        grid-area: 1 / 1 / 2 / 2;
        background: transparent;
        position: relative;
        z-index: 1;
    }

    .kp-contact-intro > .kp-contact-layout {
        grid-area: 2 / 1 / 3 / 2;
        position: relative;
        z-index: 1;
    }

    .kp-contact-intro .kp-contact-header-art {
        grid-area: 1 / 1 / 2 / 2;
        display: block;
        position: absolute;
        inset: 16px -45% auto 0;
        height: calc(100% + 224px);
        overflow: hidden;
        opacity: 0.8;
        z-index: 0;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 65%);
        mask-image: linear-gradient(90deg, transparent, #000 65%);
    }

    .kp-contact-intro .kp-contact-header-art svg {
        -webkit-mask-image: linear-gradient(#000 80%, transparent);
        mask-image: linear-gradient(#000 80%, transparent);
    }

    .kp-contact-intro .kp-contact-header-art path {
        stroke-width: 0.8px;
        vector-effect: non-scaling-stroke;
    }
}

/* Medium headers keep the artwork's original 560:520 proportions, anchored right.
   Explicit height lets aspect-ratio determine width instead of stretching to both edges. */
@media (min-width: 768px) and (max-width: 1099.98px) {
    .kp-about-page .kp-about-header-art,
    .kp-literature-page .kp-literature-header-art,
    .kp-team-page .kp-team-header-art,
    .kp-jobs-page .kp-jobs-header-art,
    .kp-contact-intro .kp-contact-header-art {
        left: auto;
        right: 0;
        bottom: auto;
        width: auto;
        max-width: 100%;
        height: calc(100% - 32px);
        aspect-ratio: 560 / 520;
    }

    .kp-contact-intro .kp-contact-header-art {
        height: calc(100% + 224px);
    }

    /* Enlarge the Jobs mesh uniformly and crop it through the right edge. */
    .kp-jobs-page .kp-jobs-header-art {
        top: calc(24px - 25%);
        right: -12%;
        height: calc(150% - 48px);
        max-width: none;
    }
}

.kp-events-page .container-darkest-gradient + .container > .card {
    margin-top: 1.5rem;
}

.kp-events-page .card-header h4 {
    color: var(--kp-blue);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    margin: 0;
}

.kp-events-page .card-title {
    color: var(--kp-ink);
    font-family: 'EB Garamond', serif;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 500;
    line-height: 1.18;
}

.kp-events-page .card-subtitle {
    color: var(--kp-blue) !important;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.035em;
}

@media (max-width: 767.98px) {
    .kp-team-page .team-profile {
        grid-template-columns: 1fr;
    }

    .kp-team-page .team-profile > div:first-child {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start;
        text-align: left !important;
    }

    .kp-team-page .team-profile > div:last-child {
        grid-column: 1;
        grid-row: 1;
    }

    .kp-team-page .team-profile img {
        max-width: 220px;
    }

    .kp-literature-page .kp-literature-paper-heading {
        align-items: start;
        gap: 0.75rem;
        grid-template-columns: 1fr;
        padding: var(--kp-card-padding-compact);
    }

    .kp-literature-page .kp-paper-abstract-toggle {
        justify-self: start;
    }
}

/* Consistent affordance for textual links
-------------------------------------------------- */
:is(.kp-site-page, .kp-homepage) a:not(:where(
    .a-navigation-dark,
    .anchor,
    .btn,
    .card-title,
    .kp-download-hero__primary,
    .kp-download-hero__secondary,
    .kp-external-link,
    .kp-footer-wordmark,
    .kp-mobile-drawer__cta,
    .kp-nav-contact,
    .kp-nav-dropdown__link,
    .kp-resource-link,
    .kp-seminar-section__media,
    .kp-team-all,
    .navbar-brand,
    .stretched-link
)) {
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

:is(.kp-site-page, .kp-homepage) .kp-resource-link {
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.06em;
    text-decoration: none !important;
}

:is(.kp-site-page, .kp-homepage) .kp-resource-link:hover,
:is(.kp-site-page, .kp-homepage) .kp-resource-link:focus {
    text-decoration: none !important;
}

:is(.kp-site-page, .kp-homepage) .kp-desktop-nav a,
:is(.kp-site-page, .kp-homepage) #sidebar a,
:is(.kp-site-page, .kp-homepage) #footer a {
    text-decoration: none;
}

/* Shared keyboard focus; color follows the surface around each control. */
:is(.kp-homepage, .kp-site-page) {
    --kp-focus-color: #2a6c92;
}

:where(.kp-topbar, .kp-mobile-drawer, .kp-site-footer,
       .kp-home-hero, .kp-footer-ai-band--dark, .kp-ai-concept) {
    --kp-focus-color: #dfeefb;
}

/* Light prompt panels sit inside the dark AI callouts. */
:where(.kp-ai-prompt__panel, .kp-footer-ai-panel, .modal-content) {
    --kp-focus-color: #2a6c92;
}

/* Override legacy ID selectors and Bootstrap's focus resets in one place. */
/* Pointer clicks keep focus for navigation, without a lingering button ring. */
:is(.kp-homepage, .kp-site-page) :is(button, .btn):focus:not(:focus-visible) {
    outline: none !important;
}

:is(.kp-homepage, .kp-site-page) .btn:focus:not(:focus-visible) {
    box-shadow: none !important;
}

:is(.kp-homepage, .kp-site-page) :where(
    a[href], button, summary, input, select, textarea,
    [tabindex]:not([tabindex="-1"]), [contenteditable="true"]
):not(.stretched-link):focus-visible,
:is(.kp-homepage, .kp-site-page) .stretched-link:focus-visible::after {
    outline: 2px solid var(--kp-focus-color) !important;
    outline-offset: 3px !important;
}

/* Disclosure controls use a text underline instead of a focus box. */
.kp-site-page.kp-literature-page .kp-paper-abstract-toggle:focus {
    outline: none !important;
    box-shadow: none !important;
}

.kp-literature-page .kp-paper-abstract-toggle:focus-visible > span:first-child {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

/* A stretched link's visible target is the full card, not its empty anchor. */
:is(.kp-homepage, .kp-site-page) .stretched-link:focus-visible {
    outline: none;
}

/* Replace Bootstrap's button focus glow with the shared outline. */
:is(.kp-homepage, .kp-site-page) .btn:focus-visible {
    box-shadow: none !important;
}

/* One external-link arrow standard. A literal space separates the text and icon.
   The text owns the underline so neither the space nor the icon is decorated. */
a.kp-new-tab-link,
a.kp-new-tab-link:hover,
a.kp-new-tab-link:focus {
    text-decoration: none !important;
}
.kp-team-page a.kp-new-tab-link.kp-external-link,
.kp-literature-page a.kp-new-tab-link.kp-resource-link {
    display: inline-block;
    gap: normal;
}
a.kp-new-tab-link.kp-resource-link {
    border-bottom: 0;
    padding-bottom: 0;
}
a.kp-new-tab-link:not(.btn):not(.kp-external-link):not(.kp-download-hero__primary):not(.kp-download-hero__secondary) > .kp-external-link__text {
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}


/* Approved heading accent. One rule shared by hr and generated accents.
   This layer overrides legacy margins without changing the heading’s top gap. */
@layer kp-heading-lines {
    :root {
        --kp-heading-accent-color: #9bbccc;
        --kp-heading-accent-width: 4.5rem;
        --kp-heading-accent-thickness: 2px;
        --kp-heading-accent-above: 1.5rem;
        --kp-heading-accent-below: 2rem;
    }

    :where(.hr-after-h2, .kp-literature-heading-rule, .kp-jobs-heading-rule),
    :where(.kp-theory-resources__header .kp-section-heading,
        .kp-seminar-header .kp-section-heading,
        .kp-overview-page .container-darkest-gradient + .container .h2-serif)::after {
        display: block !important;
        box-sizing: border-box !important;
        width: var(--kp-heading-accent-width) !important;
        max-width: 100% !important;
        height: var(--kp-heading-accent-thickness) !important;
        padding: 0 !important;
        border: 0 !important;
        background: var(--kp-heading-accent-color) !important;
        opacity: 1 !important;
        margin: var(--kp-heading-accent-above) 0 var(--kp-heading-accent-below) !important;
    }

    :where(.kp-theory-resources__header .kp-section-heading,
        .kp-seminar-header .kp-section-heading,
        .kp-overview-page .container-darkest-gradient + .container .h2-serif)::after {
        content: "";
    }

    :where(h2:has(+ :is(.hr-after-h2, .kp-literature-heading-rule, .kp-jobs-heading-rule)),
        .kp-theory-resources__header,
        .kp-seminar-header,
        .kp-seminar-header .kp-section-heading,
        .kp-theory-resources__header .kp-section-heading,
        .kp-overview-page .container-darkest-gradient + .container .h2-serif) {
        margin-bottom: 0 !important;
    }

    /* The accent owns the following gap, including before Overview subheadings. */
    :where(:is(.hr-after-h2, .kp-literature-heading-rule, .kp-jobs-heading-rule) + *,
        .kp-theory-resources__header + *,
        .kp-seminar-header + *,
        .kp-overview-page .container-darkest-gradient + .container .h2-serif + *) {
        margin-top: 0 !important;
    }
}


/* Approved structural dividers. Components own each gap exactly once. */
@layer kp-structural-lines {
    :root {
        --kp-divider-color: #d6dce4;
        --kp-divider-thickness: 1px;
        --kp-component-divider-gap: 1.5rem;
        --kp-reading-section-gap: clamp(4rem, 7vw, 6rem);
        --kp-integrated-heading-gap: clamp(4.5rem, 8vw, 7rem);
    }
    @media (max-width: 767.98px) {
        :root { --kp-component-divider-gap: 1.25rem; }
    }

    :where(.kp-page-contents__label) { margin-bottom: 1.5rem !important; }
    :where(.kp-page-contents__label)::after {
        display: block;
        width: 2.25rem !important;
        max-width: 100%;
        height: 2px;
        border: 0 !important;
        background: #9bbccc;
        margin: 1rem 0 0 !important;
    }
    :where(.kp-page-contents__label + *) { margin-top: 0 !important; }

    :where(.kp-homepage .kp-paper-header:not(.kp-theory-resources__header, .kp-seminar-header), .kp-homepage .kp-team-header) {
        border-bottom: var(--kp-divider-thickness) solid var(--kp-divider-color) !important;
        padding-bottom: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
    :where(.kp-homepage .kp-paper-header:not(.kp-theory-resources__header, .kp-seminar-header) > .kp-section-heading,
        .kp-homepage .kp-team-header > .kp-section-heading) { margin-bottom: 0 !important; }
    :where(.kp-homepage .kp-paper-header:not(.kp-theory-resources__header, .kp-seminar-header) + *, .kp-homepage .kp-team-header + *) {
        margin-top: 0 !important;
    }

    /* Integrated heading divider: the rule stays within the page gutters. */
    :where(.kp-literature-page, .kp-jobs-page) .container-darkest-gradient::after {
        height: var(--kp-divider-thickness) !important;
        background: var(--kp-divider-color) !important;
    }
    :where(.kp-literature-page, .kp-jobs-page) .page-heading-container {
        padding-bottom: calc(var(--kp-integrated-heading-gap) + var(--kp-divider-thickness)) !important;
    }
    :where(.kp-literature-page, .kp-jobs-page) .container-darkest-gradient + .container {
        padding-top: var(--kp-integrated-heading-gap) !important;
    }

    /* One separator on the expanded body; the header does not add another. */
    :where(.kp-literature-page .card-header) { border-bottom: 0 !important; }
    :where(.kp-literature-page .kp-literature-paper-heading) {
        padding-bottom: var(--kp-component-divider-gap) !important;
    }
    :where(.kp-literature-page .card-body, .kp-literature-book__preface, .kp-contact-form, .kp-footnotes) {
        border-top: var(--kp-divider-thickness) solid var(--kp-divider-color) !important;
    }
    :where(.kp-literature-page .card-body, .kp-literature-book__preface, .kp-contact-form) {
        padding-top: var(--kp-component-divider-gap) !important;
    }
    :where(.kp-literature-page .card-body > :first-child,
        .kp-literature-book__preface > :first-child, .kp-footnotes > :first-child) { margin-top: 0 !important; }
    :where(.kp-literature-book__preface) { margin-top: var(--kp-component-divider-gap) !important; }
    /* Footnotes follow a full article section, using the reading-section rhythm. */
    :where(.kp-footnotes) {
        margin-top: var(--kp-reading-section-gap) !important;
        padding-top: var(--kp-reading-section-gap) !important;
    }
    :where(.kp-contact-page .page-heading-container) {
        padding-bottom: var(--kp-component-divider-gap) !important;
    }
    :where(.kp-contact-page .container-darkest-gradient + .kp-contact-layout) {
        padding-top: 0 !important;
    }
}


/* Shared brand-link interaction on the navigation, drawer, and footer surfaces. */
@layer kp-wordmark-interaction {
    :where(.kp-topbar .navbar-brand, #sidebar a.sidebar-header, .kp-footer-wordmark) {
        color: #e4e7ee !important;
        text-decoration: none !important;
        transition: color 160ms ease;
    }
    :where(.kp-topbar .navbar-brand, #sidebar a.sidebar-header, .kp-footer-wordmark):is(:hover, :focus-visible) {
        color: #ffffff !important;
    }
    @media (prefers-reduced-motion: reduce) {
        :where(.kp-topbar .navbar-brand, #sidebar a.sidebar-header, .kp-footer-wordmark) {
            transition: none;
        }
    }
}

/* Approved subtle underlines for reading links and resource actions.
   External links keep decoration on their text span, clear of the arrow. */
:is(.kp-reading-content, .kp-home-main) :is(p, li) a,
:is(.kp-reading-content, .kp-home-main) :is(p, li) a > .kp-external-link__text,
a.kp-resource-link > .kp-external-link__text,
.kp-theory-resource-card__markdown {
    text-decoration-color: rgba(42,108,146,.35);
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}
:is(.kp-reading-content, .kp-home-main) :is(p, li) a:is(:hover, :focus),
:is(.kp-reading-content, .kp-home-main) :is(p, li) a:is(:hover, :focus) > .kp-external-link__text,
a.kp-resource-link:is(:hover, :focus) > .kp-external-link__text,
.kp-theory-resource-card__markdown:is(:hover, :focus) {
    text-decoration-color: currentColor;
}
:is(.kp-site-page, .kp-homepage) a.kp-resource-link:not(.kp-new-tab-link) {
    border-bottom-color: rgba(42,108,146,.35);
}
:is(.kp-site-page, .kp-homepage) a.kp-resource-link:not(.kp-new-tab-link):is(:hover, :focus) {
    border-bottom-color: currentColor;
}

/* Section actions share a directional hover/focus treatment, including next/back. */
.kp-team-all.kp-section-action--back:is(:hover, :focus-visible) span {
    transform: translateX(-4px);
}
/* Page layout owns the surrounding spacing, independently of the action style. */
.kp-overview-next > .kp-team-all { margin-top: 1.25rem; }
.kp-application-page .page-heading-container > .kp-team-all { margin-bottom: 1.75rem; }
@media (prefers-reduced-motion: reduce) {
    .kp-team-all, .kp-team-all span { transition: none; }
    .kp-team-all:is(:hover, :focus-visible) span { transform: none; }
    .kp-team-all.kp-section-action--back:is(:hover, :focus-visible) span { transform: none; }
}
