/* Loaded only by the Hebrew homepage template. */
#home-page.home-page-hebrew .home-intro-copy {
    width: 100%;
    min-width: 0;
    text-align: right;
}

/* Echo the blue navigation and softly rounded level cards. */
#home-page.home-page-hebrew .home-intro-copy h1 {
    box-sizing: border-box;
    margin: 0 0 20px;
    padding: 16px 22px;
    border: 1px solid #cbdcf1;
    border-inline-start: 5px solid #488cf5;
    border-radius: 12px;
    background: linear-gradient(to bottom, #f8fbff, #eaf2fc);
    box-shadow: 0 2px 0 rgba(32, 77, 120, 0.08);
    color: #245a88;
    font-family: inherit;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    font-weight: 700;
    line-height: 1.45;
    text-wrap: balance;
}

/* Keep the introductory instructions and lower copy out of the legacy clamp. */
#home-page.home-page-hebrew .box-container p {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

#home-page.home-page-hebrew .frametop h2 {
    color: #000;
    padding-bottom: 10px;
    font-size: 150%;
    line-height: 1em;
    margin-top: -5px;
}

#home-page.home-page-hebrew .home-intro-toggle {
    display: none;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 4px;
    color: #145ca4;
    font: inherit;
    font-weight: bold;
    min-height: 44px;
    padding: 8px 14px;
    margin: 8px 0;
    cursor: pointer;
}

#home-page.home-page-hebrew .home-intro-toggle:focus-visible {
    outline: 3px solid #145ca4;
    outline-offset: 3px;
}

#home-page.home-page-hebrew .home-intro-more[hidden],
#home-page.home-page-hebrew .home-intro-toggle[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    #home-page.home-page-hebrew .home-intro-copy h1 {
        padding: 12px 14px;
        margin-bottom: 16px;
    }

    #home-page.home-page-hebrew .home-intro-toggle:not([hidden]) {
        display: inline-block;
    }
}
