/* Locally hosted OFL web fonts for both CHOW & HERR websites. */
@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('shared-asset.php?file=jost-latin-v20-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Jost';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('shared-asset.php?file=jost-latin-v20-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Urbanist';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('shared-asset.php?file=urbanist-latin-v18-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Urbanist';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('shared-asset.php?file=urbanist-latin-v18-italic.woff2') format('woff2');
}

/* Shared interaction and accessibility layer for both CHOW & HERR websites. */
.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000000;
    padding: 10px 14px;
    background: var(--white);
    color: var(--accent-text, var(--alt2));
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--accent-text, var(--alt2)) !important;
    outline-offset: 3px;
}

/* Shared marker for links that intentionally open a new browser tab. */
.chowherr-external-link-icon {
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 1px;
    box-sizing: border-box;
    color: var(--accent-text);
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: 0.92em;
    font-style: normal;
    font-weight: 400;
    height: 1em;
    justify-content: center;
    line-height: 1;
    margin-left: 0.45em;
    opacity: 0.9;
    speak: none;
    vertical-align: -0.04em;
    width: 1em;
}

.chowherr-external-link-icon::before {
    content: "\2197";
    font-size: 0.86em;
    font-weight: 600;
    line-height: 1;
    transform: translate(0.02em, -0.04em);
}

.doctor-entry {
    margin-bottom: 25px;
}

.doctor-entry:last-child {
    margin-bottom: 0;
}

/* Shared sidebar logo system. Both sites use the same optical height and spacing. */
#chowherr-aside .chowherr-logo {
    display: block;
    flex: 0 0 auto;
    margin-bottom: clamp(24px, 5vh, 70px);
    text-align: center;
}

#chowherr-aside .chowherr-logo h2 {
    color: var(--accent-text);
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 45px;
    font-weight: 400;
    letter-spacing: 9px;
    margin-bottom: 0;
    position: relative;
    width: 100%;
}

#chowherr-aside .chowherr-logo span {
    color: var(--grey);
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 4px;
    line-height: 1.5;
    margin-right: 5px;
    margin-top: 10px;
    text-transform: uppercase;
}

#chowherr-aside .chowherr-logo a {
    color: var(--accent-text);
    display: inline-block;
    text-align: center;
}

#chowherr-aside .chowherr-logo a span {
    margin-top: 0;
}

#chowherr-aside .chowherr-logo img.logo-img,
#chowherr-aside .chowherr-logo object.logo-img {
    display: block;
    height: clamp(105px, 14vh, 150px);
    margin: 0 auto 5px;
    max-width: 100%;
    width: auto;
}

@media screen and (min-width: 1201px) and (max-height: 1200px) {
    #chowherr-aside .chowherr-logo {
        margin-bottom: clamp(18px, 4vh, 42px);
    }

    #chowherr-aside .chowherr-logo img.logo-img,
    #chowherr-aside .chowherr-logo object.logo-img {
        height: clamp(95px, 14vh, 140px);
    }
}

@media screen and (min-width: 1201px) and (max-height: 820px) {
    #chowherr-aside .chowherr-logo {
        margin-bottom: 10px;
    }

    #chowherr-aside .chowherr-logo img.logo-img,
    #chowherr-aside .chowherr-logo object.logo-img {
        height: clamp(82px, 12vh, 92px);
    }
}

#chowherr-aside .chowherr-main-menu ul ul li a {
    font-size: 16.2px;
}

@media screen and (min-width: 1950px) {
    #chowherr-aside .chowherr-main-menu ul ul li a {
        font-size: 18px;
    }
}

/* Keep shared hero ornaments and titles inside the actual hero height. */
.header,
.header100,
.header75,
.header50,
.header25 {
    position: relative;
}

/* A comfortable measure keeps long medical copy readable on wide screens. */
.content-wrapper section:not(.services) .col-md-12 > p,
.content-wrapper section:not(.services) .col-md-12 > ul,
.content-wrapper section:not(.services) .col-md-12 > ol,
.faq-answer {
    max-width: 78ch;
}

/* Native, keyboard-accessible FAQ accordion. */
.faq-index {
    margin-bottom: 42px;
    max-width: 78ch;
}

.faq-index summary,
.faq-item summary {
    color: var(--dark);
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
}

.faq-index summary {
    font-size: 1.55rem;
    letter-spacing: 2px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.faq-index:not([open]) summary {
    margin-bottom: 0;
}

.faq-index ol {
    margin: 0 0 0 1.25rem;
    padding: 0;
}

.faq-index li + li {
    margin-top: 8px;
}

.faq-item {
    border-top: 1px solid rgba(50, 50, 50, 0.16);
    max-width: 78ch;
    padding: 20px 0;
}

.faq-item:last-child {
    border-bottom: 1px solid rgba(50, 50, 50, 0.16);
}

.faq-item summary {
    align-items: baseline;
    display: flex;
    font-size: 1.25rem;
    gap: 10px;
    justify-content: space-between;
    line-height: 1.35;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    color: var(--accent-text, var(--alt2));
    content: '+';
    flex: 0 0 auto;
    font-size: 1.5rem;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-question {
    color: inherit;
    display: inline;
}

.faq-answer {
    padding-top: 18px;
}

.faq-item .link-btn {
    margin-top: 8px;
}

.mobile-title-break {
    display: none;
}

.content-wrapper .link-btn {
    background: var(--accent-text);
    border: 1px solid var(--accent-text);
    border-radius: 2px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.35;
    margin-bottom: 0;
    padding: 11px 15px;
    transition: background-color 180ms ease, color 180ms ease;
}

.content-wrapper .link-btn::before {
    display: none;
}

.content-wrapper .link-btn:hover,
.content-wrapper .link-btn:focus-visible {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--white);
}

.services .item > a {
    color: inherit;
}

@media screen and (max-width: 1200px) {
    .header-title {
        font-size: clamp(2.25rem, 5vw, 3rem);
        line-height: 1.15;
        max-width: calc(100% - 150px);
    }

    .chowherr-nav-toggle {
        left: auto;
        margin-left: 0;
        right: 15px;
    }

    body.offcanvason .chowherr-nav-toggle {
        left: 285px;
        right: auto;
        transform: none;
    }

    /* Only the current or explicitly opened submenu is expanded. */
    #chowherr-aside .chowherr-main-menu > ul > li:not(.open) > ul {
        display: none !important;
    }

    #chowherr-aside .chowherr-main-menu > ul > li.open > ul {
        display: block !important;
    }

    #chowherr-aside .chowherr-main-menu i,
    #chowherr-aside .chowherr-main-menu .holder {
        display: inline-block !important;
    }

    [id] {
        scroll-margin-top: 78px;
    }
}

@media screen and (max-width: 768px) {
    .header-title {
        bottom: clamp(48px, 12vh, 90px);
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        hyphens: auto;
        left: 0;
        line-height: 1.15;
        margin-left: 30px;
        margin-right: 0;
        max-width: calc(100% - 60px);
        overflow-wrap: normal;
        right: 30px;
    }

    body[data-page="home"] .header .caption h1 {
        letter-spacing: 2px;
        line-height: 1.25;
    }

    .faq-index {
        margin-bottom: 28px;
    }

    .faq-index summary {
        font-size: 1.25rem;
    }

    .faq-item {
        padding: 17px 0;
    }

    .faq-item summary {
        font-size: 1.12rem;
    }

    .content-wrapper p,
    .faq-answer {
        font-size: 1.1rem;
        line-height: 1.65;
    }

    .mobile-title-break {
        display: block;
    }

    .progress-wrap {
        background: rgba(243, 232, 233, 0.96);
        bottom: 12px;
        right: 12px;
    }
}

/* Hero presentation: imagery and copy get their own uninterrupted space. */
.header75,
.header100 {
    background: var(--light);
    display: block;
}

.header75 > .item,
.header100 > .item {
    bottom: 0;
    height: 100%;
    left: 0;
    min-height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    transform-origin: center top;
    will-change: opacity, transform;
    width: 100%;
    z-index: 0;
}

.header-title,
.hero-copy {
    border-top: 3px solid var(--accent-text, var(--alt2));
    bottom: 0;
    position: absolute;
    transform-origin: center bottom;
    will-change: opacity, transform;
    z-index: 3;
}

.header-title {
    background: var(--light);
    box-shadow: 0 18px 45px rgba(50, 50, 50, 0.14);
    color: var(--dark);
    font-size: clamp(1.8rem, 3.1vw, 3rem);
    letter-spacing: 0.01em;
    line-height: 1.12;
    left: clamp(30px, 4vw, 56px);
    margin: 0;
    max-width: min(78%, 920px);
    min-width: min(38%, 420px);
    padding: clamp(22px, 2.6vw, 32px) clamp(30px, 3.6vw, 48px);
    right: auto;
    text-shadow: none;
    width: fit-content;
}

.header-title span {
    color: inherit;
}

.hero-copy {
    -webkit-backdrop-filter: blur(10px) saturate(112%);
    backdrop-filter: blur(10px) saturate(112%);
    background: rgba(243, 232, 233, 0.84);
    background: linear-gradient(135deg, rgba(250, 246, 246, 0.92), rgba(243, 232, 233, 0.78));
    border-bottom: 1px solid rgba(255, 255, 255, 0.42);
    border-left: 1px solid rgba(255, 255, 255, 0.42);
    border-right: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 22px 56px rgba(50, 42, 43, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    left: clamp(30px, 4vw, 56px);
    margin: 0;
    max-width: 860px;
    overflow: hidden;
    padding: clamp(22px, 2.6vw, 32px) clamp(30px, 3.6vw, 48px);
    width: min(72%, 860px);
}

.hero-copy .container {
    max-width: none !important;
    padding: 0;
    width: 100%;
}

.hero-copy h1 {
    color: var(--dark);
    font-size: clamp(1.65rem, 3.2vw, 2.8rem);
    font-weight: 360;
    letter-spacing: clamp(2px, 0.55vw, 7px);
    line-height: 1.12;
    margin: 0;
    text-shadow: none;
    text-wrap: balance;
    text-transform: uppercase;
}

.hero-copy h1 b {
    color: var(--accent-text, var(--alt2));
    font-weight: 540;
}

.hero-copy p {
    color: var(--dark);
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    line-height: 1.4;
    margin: 12px 0 0;
    max-width: 62ch;
    opacity: 0.72;
    text-shadow: none;
}

.header75 .hero-corner,
.header75 .hero-corner3,
.header100 .hero-corner,
.header100 .hero-corner3 {
    display: none;
}

@media screen and (max-width: 991px) {
    .services .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .header-title {
        font-size: clamp(1.65rem, 7vw, 2rem);
        hyphens: none;
        line-height: 1.15;
        left: 20px;
        margin: 0;
        max-width: calc(100% - 40px);
        min-width: 0;
        padding: 20px 22px 22px;
        width: calc(100% - 40px);
    }

    .hero-copy {
        left: 20px;
        margin: 0;
        max-width: calc(100% - 40px);
        padding: 20px 22px 22px;
        width: calc(100% - 40px);
    }

    .hero-copy h1 {
        font-size: clamp(1.55rem, 6.7vw, 1.9rem);
        letter-spacing: 2px;
    }

}
