.hero-text-content {
    width: max(386px, calc(26.8vw * var(--scale)));
}

h1.hero-title {
    font-size: max(32px, calc(2.22vw * var(--scale)));
    letter-spacing: -.02em;
    margin-bottom: max(9px, calc(0.63vw * var(--scale)));
    line-height: 130%;
}

.hero-paragraph {
    margin-bottom: max(15px, calc(1.04vw * var(--scale)));
}

.hero-section {
    display: flex;
    flex-direction: column;
    padding-right: var(--big-padding);
    padding-left: var(--small-padding);
}

.hero-subtitle {
    margin-bottom: max(9px, calc(0.625vw * var(--scale)));
}

.custom-hero-bottom {
    margin-top: auto;
}

.custom-hero-bottom-text {
    display: none;
}

.show-on-desktop {
    display: block;
}

.sticky-hero-section-mobile {
    display: none;
}

.sticky-hero-section {
    width: 100vw;
    right: 0;
    left: 0;
    position: fixed;
    top: 14vh;
    padding-left: var(--small-padding);
}

.sticky-hero-section .title-and-subtitle {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-direction: row-reverse;
    width: calc(100vw - 2 * var(--small-padding));
}

.sticky-hero-section .title-and-subtitle .hero-subtitle {
    font-size: max(16px, calc(1.11vw * var(--scale)));
    margin-bottom: max(15px, calc(1.04vw * var(--scale)));
}

.sticky-posts-section {
    padding-left: var(--small-padding);
    margin-top: auto;
    margin-bottom:  max(81px, calc(5.7vw * var(--scale)));
}

.sticky-posts-section .grid {
    min-width: calc(100vw - 2 * var(--small-padding));
}

.sticky-posts-section .dashed-border-outer,
.sticky-posts-section .absolute-subtitle {
    display: none;
}

.sticky-hero-section .medium-text {
    font-size: max(16px, calc(1.11vw * var(--scale)));
}

.padding-top-on-mobile .dashed-border-outer {
    display: none;
}

html[data-card-image-aspect-ratio-desktop="Alternate Align Top"][data-show-excerpt-on-cards="true"] .sticky-posts-section {
    margin-bottom: max(120px, calc(8.3vw * var(--scale)));
}

@media (max-width: 991px) {    
    .hero-text-content {
        max-width: max(386px, calc(26.8vw * var(--scale)));
        width: 100%;
    }
    
    .hero-section {
        width: 100%;
        padding-right: 0px;
        min-height: 100vh;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-left: 0px;
    }

    .custom-hero-bottom {
        margin-top: 130px;
    }

    .hide-on-mobile {
        display: none;
    }

    .custom-hero-bottom-text {
        display: block;
        font-size: 16px;
    }

    .sticky-hero-section-mobile {
        display: flex;
    }

    .sticky-hero-section .medium-text {
        font-size: 18px;
    }

    .sticky-hero-section-mobile {
        display: none;
    }
    
    .sticky-hero-section {
        width: 100% !important;
        position: static !important;
        padding-left: 0px !important;
    }
    
    .sticky-hero-section .title-and-subtitle {
        align-items: center;
        justify-content: center;
        width: 100% !important;
    }
    
    .sticky-hero-section .title-and-subtitle .hero-subtitle {
        font-size: max(16px, calc(1.11vw * var(--scale)));
        margin-bottom: max(15px, calc(1.04vw * var(--scale)));
    }
    
    .sticky-posts-section {
        padding-left: 0px;
        margin-top: 0px;
        margin-bottom: 0px;
    }
    
    .sticky-posts-section .grid {
        min-width: unset !important;
    }
    
    .sticky-posts-section .dashed-border-outer,
    .sticky-posts-section .absolute-subtitle {
        display: flex;
    }
    
    .sticky-hero-section .medium-text {
        font-size: max(16px, calc(1.11vw * var(--scale)));
    }

    .custom-layout-hero-section {
        padding-top: 7vh;
    }

    .padding-top-on-mobile .dashed-border-outer {
        display: block;
    }
}

/* Editable home introduction and Toggle cards — 2026-09-18 */
.home-profile .home-profile-scroll {
    width: clamp(386px, 38vw, 540px);
    max-width: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    padding-right: 12px;
    padding-bottom: 12px;
}
.home-profile .hero-text-content { width: 100%; max-width: none; }
.home-profile h1.hero-title { margin-bottom: 22px; }
.home-profile .hero-paragraph,
.home-profile .home-intro-content > p {
    font-family: var(--font1);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.65;
    text-transform: none;
    color: var(--text-color);
    opacity: 1;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    margin: 0 0 24px;
}
.home-profile .home-intro-content { overflow-wrap: anywhere; }
.home-profile .home-intro-content > :first-child { margin-top: 0; }
.home-profile .home-intro-content a { text-decoration: underline; text-underline-offset: 3px; }
.home-profile .kg-toggle-card { padding: 15px 0; border-color: var(--text-color-20, #ddd); }
.home-profile .kg-toggle-heading { min-height: 28px; gap: 16px; }
.home-profile .kg-toggle-card h4.kg-toggle-heading-text,
.home-profile .kg-toggle-card h4.kg-toggle-heading-text * {
    font-size: 16px;
    line-height: 1.4;
    text-transform: none !important;
    margin: 0;
}
.home-profile .kg-toggle-content { max-width: 100%; }
.home-profile .kg-toggle-content[hidden] { display: none; }
.home-profile .kg-toggle-card .kg-toggle-content p {
    font-size: 16px;
    line-height: 1.65;
    margin-top: 12px;
    margin-bottom: 0;
}
.home-profile .kg-toggle-card-icon { min-width: 32px; min-height: 32px; cursor: pointer; }
.home-profile .kg-toggle-card-icon:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.home-profile .homepage-section-socials { margin-top: 32px; }
.home-profile .newsletter-outer { margin-top: 40px; gap: 20px; }
.home-profile .newsletter-outer > p { margin: 0; }
@media (max-width: 991px) {
    .hero-section.home-profile { text-align: left; align-items: flex-start; }
    .home-profile .home-profile-scroll { width: 100%; max-width: 540px; overflow: visible; padding: 0; }
    .home-profile .hero-paragraph,
    .home-profile .home-intro-content > p { font-size: 18px; line-height: 1.65; }
}
