/* Intro paragraph on carer/job search pages (application/helpers/search_intro_helper.php).
   Desktop: full text. Mobile: one line + "Read more" (text stays in the HTML for Google). */
.tc-search-intro {
    /* Same width as the filters + results below (no empty space on the right). */
    width: 100%;
    margin: 14px 0 0;
    color: #374151;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    line-height: 1.65;
}

.tc-search-intro p.tc-search-intro-text {
    margin: 0;
    color: #374151;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    line-height: 1.65;
}

/* Site-wide checkbox styles would otherwise show this toggle. */
.tc-search-intro input.tc-search-intro-toggle {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    pointer-events: none;
}

.tc-search-intro-more {
    display: none;
}

/* The filters normally sit 50px under Back; with the intro in between, keep the page
   height about the same: Back - 20px - intro - 28px - filters. (~ not +: the intro's
   script tag sits between them. Only while the intro is visible - not when switched off
   on desktop or hidden because the search has no results.) */
@media (min-width: 768px) {
    .tc-search-intro:not(.tc-search-intro--no-desktop):not([style*="none"]) ~ #filter-uius-new.care-inner {
        margin-top: 28px !important;
    }
}

@media (max-width: 767px) {
    .tc-search-intro {
        margin: 10px 0 12px;
        font-size: 14px;
        line-height: 1.55;
    }

    .tc-search-intro p.tc-search-intro-text {
        font-size: 14px;
        line-height: 1.55;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tc-search-intro-more {
        display: inline-block;
        margin-top: 2px;
        color: #0f5a60;
        font-weight: 600;
        cursor: pointer;
    }

    .tc-search-intro-toggle:focus-visible ~ .tc-search-intro-more {
        outline: 2px solid #0f5a60;
        outline-offset: 2px;
    }

    .tc-search-intro .tc-search-intro-toggle:checked ~ .tc-search-intro-text {
        display: block;
        overflow: visible;
    }

    .tc-search-intro-toggle:checked ~ .tc-search-intro-more {
        display: none;
    }
}

/* Admin -> Site Settings -> Search Page Intro: switched off for one screen size. */
@media (min-width: 768px) {
    .tc-search-intro.tc-search-intro--no-desktop {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .tc-search-intro.tc-search-intro--no-mobile {
        display: none !important;
    }
}
