/* 2025-12-password-form */
.post-password-form {
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    margin-top: 100px;
    margin-bottom: 300px;
}

/* 2026-01-hero-banner */
.hero-banner .wp-block-cover, 
.hero-banner .wp-block-cover-image {
    background-position: 50%;
    box-sizing: border-box;
    display: flex;
    min-height: 430px;
    overflow: clip;
}
.hero-banner .wp-block-cover .wp-block-cover__image-background, 
.hero-banner .wp-block-cover video.wp-block-cover__video-background, 
.hero-banner .wp-block-cover-image .wp-block-cover__image-background, 
.hero-banner .wp-block-cover-image video.wp-block-cover__video-background {
    border: none;
    bottom: 0;
    box-shadow: none;
    height: 100%;
    left: 0;
    margin: 0;
    max-height: none;
    max-width: none;
    object-fit: cover;
    outline: none;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}

.hero-banner .wp-block-cover__inner-container .wp-block-group {
    width: auto;
    max-width: 40%;
    margin-left: 0 !important;
}

@media (max-width: 1024px) {
    .hero-banner .wp-block-cover__inner-container .wp-block-group {
        max-width: 60%;
    }
}

@media (max-width: 768px) {
    .hero-banner .wp-block-cover__inner-container .wp-block-group {
        max-width: 80%;
    }
}

.hero-banner .wp-block-cover__inner-container .wp-block-group h1,
.hero-banner .wp-block-cover__inner-container .wp-block-group p {
    width: auto;
    margin-left: 0 !important;
}
.hero-banner .wp-block-cover__inner-container span:last-child {
    margin-left: 0 !important;   
}
.hero-banner .wp-block-cover__inner-container > p:last-child {
    width: 100%;
}


@media (max-width: 768px) {
    .hero-banner .wp-block-cover__background {
        display: none;
    }
    .hero-banner .wp-block-cover__inner-container:before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(180deg,rgba(0,0,0,.66) 0%,transparent 50%)!important
    }

    .hero-banner.has-long-mobile-hero-title .wp-block-cover__inner-container:before {
        background: linear-gradient(180deg,rgba(0,0,0,.66) 0%,transparent 84%)!important
    }
}



/* 2026-02-page-margin */
.page-section--main .page-section.--template-post:last-of-type {
    margin-bottom: 80px;
}

/* 2026-04-terms-layout */
.single-medical_term .page-section.article-meta {
    display: none;
}

@media (min-width: 769px) {
    .single-medical_term .hero-banner .wp-block-cover .wp-block-cover__inner-container p {
        min-width: 440px;
    }
}



/* 2026-04-hero-h1 */
.hero-banner .wp-block-cover__inner-container .wp-block-group h1, .hero-banner .wp-block-cover__inner-container .wp-block-group p {
    max-height: 350px;
}

/* 2026-06-content-sizing */

.page-section--main h2,
.wp-block-post-content h2,
.editor-styles-wrapper h2 {
    font-size: 28px;
    letter-spacing: -0.62px;
}

.page-section--main h2:first-of-type,
.wp-block-post-content h2:first-of-type,
.editor-styles-wrapper h2:first-of-type {
    font-size: 32px;
    letter-spacing: -0.64px;
}


.page-section--main h3,
.wp-block-post-content h3,
.editor-styles-wrapper h3,
.page-section--main .type--h3,
.wp-block-post-content .type--h3,
.editor-styles-wrapper .type--h3 {
    font-size: 26px;
    letter-spacing: -0.58px;
}

.page-section--main h4,
.wp-block-post-content h4,
.editor-styles-wrapper h4 {
    font-size: 24px;
    letter-spacing: -0.50px;
}

.page-section--main h5,
.wp-block-post-content h5,
.editor-styles-wrapper h5 {
    font-size: 20px;
    letter-spacing: -0.42px;
}

.page-section--main ul li, 
.wp-block-post-content ul li, 
.editor-styles-wrapper ul li, 
.block-editor-block-list__layout ul li {
    padding: 0 0;
}

.page-section--main h2, 
.page-section--main h3, 
.page-section--main h4, 
.page-section--main h5, 
.page-section--main h6, 
.wp-block-post-content h2, 
.wp-block-post-content h3, 
.wp-block-post-content h4, 
.wp-block-post-content h5, 
.wp-block-post-content h6, 
.editor-styles-wrapper h2, 
.editor-styles-wrapper h3, 
.editor-styles-wrapper h4, 
.editor-styles-wrapper h5, 
.editor-styles-wrapper h6 {
    padding-top: 10px;
}

#h-questions-to-ask-your-doctor {
    margin-bottom: 16px;
}

.page-section--main ul.is-style-questions-list, 
.wp-block-post-content ul.is-style-questions-list, 
.editor-styles-wrapper ul.is-style-questions-list, 
.block-editor-block-list__layout ul.is-style-questions-list {
    margin-top: 0;
}

.page-section--main ul.is-style-questions-list li:first-child, 
.wp-block-post-content ul.is-style-questions-list li:first-child, 
.editor-styles-wrapper ul.is-style-questions-list li:first-child, 
.block-editor-block-list__layout ul.is-style-questions-list li:first-child {
    padding-top: 0;
}

.spb-asset-content h2, 
.spb-asset-content h3,
.spb-asset-content h4,
.spb-asset-content h5,
.spb-asset-content h6 {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* 2026-09-hero-editor-sizing: cap Homepage Hero Slides asset height in the block
   editor canvas, since the carousel JS that normally sizes it never runs there. */
.editor-styles-wrapper .--home-hero .slider-hero__asset {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
}

/* 2026-09-reactions-width: Reactify's own markup has no width cap, so the reaction
   bar can stretch full-bleed on wide layouts. Cap it to the content width. */
.fd-reactions {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Doctors Notes FacetWP category toggles */
.facetwp-facet.facetwp-facet-doctors_notes_categories {
    background-color: #faf7f6;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 8px;
}

.facetwp-facet.facetwp-facet-doctors_notes_categories .facetwp-checkbox {
    color: #0e3759;
    letter-spacing: -0.32px;
    text-transform: capitalize;
    cursor: pointer;
    background: none;
    border: 1px solid #d0e3f4;
    border-radius: 10px;
    margin-bottom: 0;
    padding: 0.75em 1em;
    font-family: Museo Sans, sans-serif;
    font-size: 1em;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    position: relative;
    display: inline-block;
}

.facetwp-facet.facetwp-facet-doctors_notes_categories .facetwp-checkbox:hover,
.facetwp-facet.facetwp-facet-doctors_notes_categories .facetwp-checkbox.checked {
    color: #fff;
    background-color: #285ff5;
}

.facetwp-facet.facetwp-facet-doctors_notes_categories .facetwp-checkbox.disabled {
    pointer-events: none;
}

.facetwp-facet.facetwp-facet-doctors_notes_categories .facetwp-display-value {
    padding-right: 0;
}

.facetwp-facet.facetwp-facet-doctors_notes_categories .facetwp-counter {
    display: none;
}

/* Reactify reaction bar, restyled to the FamilyDoctor design language.
   !important is required only where Reactify's settings CSS uses it. */
.fd-reactions {
    margin: 40px 0;
}

.fd-reactions .reactify-react-container {
    background-color: #faf7f6 !important;
    border: 0;
    border-radius: 0;
    padding: 24px;
    cursor: default;
}

.fd-reactions .reactify-react-container .reactify-react-block-title {
    color: #0e3759 !important;
    font-family: Work Sans, sans-serif !important;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.2px;
    line-height: 1.4;
    text-align: center;
    margin: 0 0 20px;
    padding: 0;
}

/* Equal-width tiles on one row, whatever emoji count Reactify is set to. */
.fd-reactions .reactify-react-container .reactify-react-emoji-wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
}

.fd-reactions .reactify-react-container .reactify-react-emoji {
    align-items: center;
    background-color: #fff;
    border: 1px solid #d0e3f4;
    border-radius: 12px;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    padding: 12px 8px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, background-color 0.3s;
}

.fd-reactions .reactify-react-container .reactify-react-emoji:hover {
    border-color: #285ff5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.fd-reactions .reactify-react-container .reactify-react-emoji img {
    width: 40px;
}

/* Clicks are bound to .reactify-emoji, so stretch it to the full tile width. */
.fd-reactions .reactify-react-container .reactify-emoji {
    display: block;
    width: 100%;
}

.fd-reactions .reactify-react-container .reactify-react-percentage,
.fd-reactions .reactify-react-container .reactify-react-count {
    background: #e6f0fa;
    color: #0e3759 !important;
    font-family: Museo Sans, sans-serif !important;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Reactify's speech-bubble caret paints over the bottom of the digits. */
.fd-reactions .reactify-react-container .reactify-react-percentage::after,
.fd-reactions .reactify-react-container .reactify-react-count::after {
    content: none;
}

.fd-reactions .reactify-react-container .reactify-emoji-name {
    color: #0e3759 !important;
    font-family: Museo Sans, sans-serif !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.2px;
    margin: 8px 0 0;
    padding: 0;
}

.fd-reactions .reactify-react-container .reactify-emoji.emoji-reacted {
    transform: scale(1.06);
}

.fd-reactions .reactify-react-container .reactify-react-emoji:has(.emoji-reacted) {
    background-color: #eef5fd;
    border-color: #285ff5;
}

@media (max-width: 575px) {
    .fd-reactions .reactify-react-container {
        padding: 16px;
    }

    .fd-reactions .reactify-react-container .reactify-react-block-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .fd-reactions .reactify-react-container .reactify-react-emoji-wrapper {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .fd-reactions .reactify-react-container .reactify-react-emoji {
        padding: 10px 4px;
    }

    .fd-reactions .reactify-react-container .reactify-react-emoji img {
        width: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fd-reactions .reactify-react-container .reactify-react-emoji,
    .fd-reactions .reactify-react-container .reactify-emoji {
        transition: none;
    }

    .fd-reactions .reactify-react-container .reactify-react-emoji:hover {
        transform: none;
    }
}
