/* /Components/Common/CustomPaginator.razor.rz.scp.css */

.pagination[b-fzbd9b5crj] {
    --bs-pagination-color: var(--web-color);
    --bs-pagination-bg: var(--web-background-color);
    --bs-pagination-border-color: var(--web-color);

    --bs-pagination-hover-color: var(--web-color);
    --bs-pagination-hover-bg: var(--web-secondary-background-color);
    --bs-pagination-hover-border-color: var(--web-color);

    --bs-pagination-active-color: var(--web-color);
    --bs-pagination-active-bg: var(--web-secondary-background-color);
    --bs-pagination-active-border-color: var(--web-color);

    --bs-pagination-disabled-color: var(--web-secondary-background-color);
    --bs-pagination-disabled-bg: var(--web-background-color);
    --bs-pagination-disabled-border-color: var(--web-color);
}

.pagination .page-link[b-fzbd9b5crj] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    height: 2rem;
}

.pagination .material-icons[b-fzbd9b5crj] {
    font-size: 1rem;
}
/* /Components/Common/PostcodeEntry.razor.rz.scp.css */
/* /Components/Layout/Footer.razor.rz.scp.css */



.footer[b-45rprwe4de] {
    background-color: var(--web-secondary-background-color);
    color: var(--web-color);
}

.headline-section[b-45rprwe4de] {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--web-color);
}

.social-section h2[b-45rprwe4de] {
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;

}

.social-icons[b-45rprwe4de] {
    display: flex;
    /* The four icons are a fixed 40px, so only the gap scales — 3 x 2rem is 96px at
       a 16px root but 144px at 24px, taking the block to 304px. Wrapping bounds it
       regardless of font size. */
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-icons a svg[b-45rprwe4de] {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-links[b-45rprwe4de] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-top: 1px solid var(--web-color);
    padding-top: 1rem;
}

.footer-links a[b-45rprwe4de] {
    color: var(--web-color);
    text-decoration: none;
    font-size: 0.9rem;
    /* WCAG 2.2 AA 2.5.8 Target Size (Minimum). These are standalone block links,
       not links inside a sentence, so the "inline" exception does not apply.
       Measured at 306x22 before this rule. */
    display: flex;
    align-items: center;
    min-height: 24px;
}

.footer-links a:hover[b-45rprwe4de] {
    text-decoration: underline;
}

.copyright[b-45rprwe4de] {
    font-size: 0.9rem;
    margin-top: 1rem;
}

.partners-section[b-45rprwe4de] {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.partners-section p[b-45rprwe4de] {
    word-wrap: break-word; /* Enable word wrapping */
    overflow-wrap: break-word; /* Modern browsers */
    min-width: 0; /* Allow text container to shrink */
}

.partners-images[b-45rprwe4de] {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    background-color: rgba(255,255,255, 0.2);
    border-radius: 1rem;
    padding: 1rem 0.5rem 1rem 1rem;
}

.partners-images img[b-45rprwe4de] {
    height: 36px;
}

.row-one[b-45rprwe4de] {
    display: flex;
    flex-direction: column;
}

/* The contact link sits on the blue footer; the pink link colour only
   reaches 2.57:1 there, so use the white footer text colour (WCAG 1.4.3). */
.contact-button[b-45rprwe4de] {
    color: var(--web-color);
    /* WCAG 2.2 AA 2.5.8 — measured at 167x19 before this rule. */
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}


/* Responsive adjustments */
@media (min-width: 768px) {
    .footer[b-45rprwe4de] {
        padding: 2rem 3rem;
    }

    .partners-section[b-45rprwe4de] {
        flex-direction: row;
    }

    .partners-section p[b-45rprwe4de] {
        max-width: 30%;
        flex-shrink: 1;
        min-width: 0;
        margin-left: 2rem;
    }

    .partners-images[b-45rprwe4de] {
        flex: 1;
        align-items: center;
        min-width: 60%;
        gap: 2rem;
    }

    .partners-images img[b-45rprwe4de] {
        height: 48px;
        width: auto;
        object-fit: contain;
    }

    .row-one[b-45rprwe4de] {
        flex-direction: row;
        /* WCAG 2.2 AA 1.4.10. The two columns below are sized with rem-based fixed
           spacing, so they grow with the browser's default font size while the
           viewport does not. Wrapping lets them stack instead of overflowing at a
           raised font size; at 16px they still sit side by side. */
        flex-wrap: wrap;
        gap: 2rem;
    }

    .headline-section[b-45rprwe4de] {
        flex-wrap: wrap;
        max-width: 30%;
        /* Was `margin-right: 10rem` — 160px at a 16px root but 240px at 24px, which
           pushed the social column off-screen. `auto` fills whatever space is left,
           so the desktop appearance is preserved and it collapses when there is
           none to give. */
        margin-right: auto;
        border-bottom: 0;
    }

    .footer-links[b-45rprwe4de] {
        flex-direction: row;
        gap:2rem;
    }

    .copyright[b-45rprwe4de] {
        margin-top: 0;
        margin-left: auto;
    }
}
/* /Components/Layout/TopMenu.razor.rz.scp.css */
.navbar-toggler[b-xjq1hwiizx] {
    appearance: none;
    cursor: pointer;
    /* The toggler is an <input type="checkbox"> styled as a hamburger, so the GLOBAL
       `input[type="checkbox"], input[type="radio"] { transform: scale(1.5) }` in the vendored
       cctc-components.css applied to it as collateral damage. A transform does not affect layout,
       so the control painted and hit-tested at 1.5x its layout box and grew from its centre —
       leftwards, over the menu. Measured 2026-09-08 at 360px/24px root: layout box 72x48, actual
       hit box 108x72, and document.elementFromPoint at the centre of the "home" and "help" nav
       links returned the toggler, not the link. Both were unclickable.

       Opting out and declaring the real size keeps the rendered appearance identical (72x48 at a
       16px root, 108x72 at 24px) while making the layout box honest, so what is drawn is what is
       hit. #menu-container reserves matching space below. */
    transform: none;
    width: 4.5rem;
    height: 3rem;
    color: var(--web-color);
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

/* The state is an attribute on <html>, set by js/topMenu.js, not the toggler's :checked: the page's first
   interactive render replaces the toggler, and would take a toggle made before it with it. */
html[data-menu-closed] #menu-container[b-xjq1hwiizx] {
    display: none;
}

/*.nav-link {*/
/*    line-height: 1.1 !important;*/
/*}*/

/*::deep .nav-link:hover {*/
/*    !*color: var(--web-link-color);*!*/
/*    color: green !important;*/
/*}*/

#menu-container[b-xjq1hwiizx] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    /* Reserve the toggler's footprint (4.5rem wide at right: 1rem) so a nav link can never extend
       underneath it. The toggler is position: absolute and therefore reserves no space of its own,
       and the links widen with the root font while it does not move — which is why this only bit
       at a raised font size. In rem so the reservation scales with the text it is protecting. */
    padding-right: 6rem;
}



.animate-background-opacity-in[b-xjq1hwiizx] {
    animation: background-opacity-in-b-xjq1hwiizx 0.5s linear both;
}

@keyframes background-opacity-in-b-xjq1hwiizx {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

.animate-height-in[b-xjq1hwiizx] {
    animation: height-in-b-xjq1hwiizx 3s linear both;
}

@keyframes height-in-b-xjq1hwiizx {
    0% {
        height: 0;
    }
    100% {
        height: 300px;
    }
}

.collapsible[b-xjq1hwiizx] {
    transition: height 3s ease;
    height: 0;
    overflow: hidden;
}

@media (min-width: 768px) {

    #menu-container[b-xjq1hwiizx] {
        flex-direction: row;
        /* WCAG 2.2 AA 1.4.10 Reflow. Without flex-wrap the row's intrinsic width is
           912px at a 16px root and 1259px at 24px, so seven signed-in nav items
           overflowed a 760px viewport on every page — and .navbar-toggler is hidden
           at this breakpoint, leaving no fallback. Measured: 944>760 at 768/16px,
           1307>760 at 768/24px, 1307>1272 at desktop/24px.

           The gap stays at 2rem deliberately. It cannot be tuned to fix this: the
           items alone total ~720px, so fitting 760px would need a ~7px gap, well
           under the spacing WCAG 2.5.8 wants between adjacent targets. Wrapping is
           what makes it fit; the gap is what keeps the targets separable. */
        flex-wrap: wrap;
        gap: 2rem;
        /* Release the toggler reservation from the base rule: .navbar-toggler is display: none at
           this breakpoint, so 6rem of right padding would be dead width on the very row whose
           intrinsic width caused #67. Measured above: the items alone total ~720px against a
           760px viewport, so there is no slack to donate. */
        padding-right: 0;
    }

    html[data-menu-closed] #menu-container[b-xjq1hwiizx] {
        display: flex;
    }

    .navbar-toggler[b-xjq1hwiizx] {
        display:none;
    }

}
/* /Components/Layout/WebLayout.razor.rz.scp.css */

/*

set any variable here that apply across the website to ensure consistency with different
pages within the site.
prefix with --web-

REMEMBER! may need to use deep to persist element styles here to child items
*/

/*
    DESIGN FOR MOBILE FIRST

    based on guidance here
    https://www.learnui.design/blog/mobile-desktop-website-font-size-guidelines.html#mobile-web
    https://www.smashingmagazine.com/2018/06/reference-guide-typography-mobile-web-design/

    16px is the default font size for browser
    should be default for mobile then size up from there

 */

*[b-tw9jhq309x] {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

webpage[b-tw9jhq309x] {

    /* mobile - assuming default is 16px */

    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100%;
    scrollbar-gutter: stable;
    /*overflow-x: hidden;*/

    --web-default-font-size: 1rem;                      /* 16px */
    --web-default-wordy-font-size: 1.125rem;            /* 18px */
    --web-secondary-font-size: 0.875rem;                /* 14px */
    --web-title-font-size: 2.25rem;                     /* 36px */
    --web-subtitle-font-size: 1.875rem;                 /* 30px */
    --web-hero-header-font-size: 1.875rem;              /* 30px */
    --web-hero-subheader-font-size: 1.875rem;           /* 30px */
    --web-background-color: #083054;
    --web-color: white;
    --web-header-height: 2rem;
    --web-border-radius: 1rem;
    --web-cctc-logo-color: #61c3d0;
    --web-highlight-color: #ffa500;
    --web-link-color: #ff66b0;
    --web-secondary-background-color: #0f5ba0;
    --web-secondary-success-color: #27d383;
    --web-secondary-danger-color: #ff6f3d;
    --web-secondary-warning-color : #ffc600;
    
    --web-component-padding: 4rem;
    --web-inactive-text-color: #093d6e;
    --web-inactive-icon-color: grey;
    
    --web-secondary-text-color: #ffa500;

    background-color: var(--web-background-color);
    color: var(--web-color);

}

header[b-tw9jhq309x] {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: calc(var(--web-header-height) + 1rem);
    padding-bottom: 1rem;
    font-size: var(--web-default-wordy-font-size);
    z-index: 10;
    background-color: var(--web-background-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Let the nav drop to its own line rather than squeeze the brand out of existence.
       Without this the header is a nowrap flex row and every deficit lands on the brand,
       because an <img> constrained only by max-width has no min-content floor to stop at.
       Measured 2026-09-09 at 360px: the logo went 96px wide at a 16px root, 55px at 20px
       and 0.4px at 24px - the home link was still focusable, just invisible. Wrapping is
       the same remedy #menu-container already uses above 768px. */
    flex-wrap: wrap;
}

.header-brand[b-tw9jhq309x] {
    /* The brand is not the shock absorber. #menu-container reserves 6rem for the toggler
       and that reservation scales with the root font (144px at 24px), so on a 360px
       viewport the nav alone wants more than the header has; something must give, and it
       must not be the logo. */
    flex-shrink: 0;
}

section[b-tw9jhq309x] {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 0;
}

header > nav[aria-label="Main"][b-tw9jhq309x] {
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 0.2rem;
}

main[b-tw9jhq309x] {
    position: relative;
    flex: 1;
    padding: 0.5rem;
}

footer[b-tw9jhq309x] {
    background-color: var(--web-secondary-background-color);
    padding: 1.5rem 1.5rem;
}

[b-tw9jhq309x] .inverted {
    text-align: center;
    margin: 1rem 4rem;
    padding: 0.5rem 0;
    border-radius: var(--web-border-radius);
    color: var(--web-background-color);
    background-color: var(--web-color);
}

[b-tw9jhq309x] a {
    color: var(--web-link-color);
    text-decoration: none;
}

/* Links inside prose must be distinguishable without relying on colour
   alone (WCAG 1.4.1 / axe link-in-text-block). */
[b-tw9jhq309x] p a {
    text-decoration: underline;
}

/* Default <code> colour (Bootstrap pink) fails contrast on the dark
   web background; use the on-palette highlight colour instead. */
[b-tw9jhq309x] code {
    color: var(--web-highlight-color);
}

.skip-link:focus[b-tw9jhq309x],
.skip-link:focus-visible[b-tw9jhq309x] {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 9999;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    background-color: var(--web-color);
    color: var(--web-background-color);
    border: 2px solid var(--web-background-color);
    border-radius: var(--web-border-radius);
    text-decoration: underline;
    clip: auto;
}

#logo[b-tw9jhq309x] {
    margin-right: auto;
    height: 2rem;
    max-width: 100%;
}

/*removes the border from all component Checkboxes by default*/
[b-tw9jhq309x] cctc-input[data-cctc-input-type='checkbox'] div.checkbox-wrapper {
    border-style: none;
}

.construction-stamp[b-tw9jhq309x] {
    background-color: var(--web-secondary-warning-color);
    color: var(--web-background-color);
    font-size: 0.625rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    white-space: nowrap;
    transform: rotate(-5deg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    position: fixed;
    /* Bottom-left is the intended placement, not a stopgap: decided 2026-09-14 (#74) to keep the badge
       where it is, rather than replace it with an in-flow banner or footer line, or retire it. The
       measurements below are why this is the one position that neither hides the nav nor overflows.

       Moved out of the header 2026-09-08. At top: 10px / left: 80px this badge sat directly over
       the first two nav items at mobile — measured at 360px: it covered "home" by 114x20px and
       "help" by 114x9px at a 16px root, and 119x22px / 119x19px at 24px. pointer-events: none means
       it never blocked a click, but it hid the labels and would hide a focus ring on them
       (WCAG 2.2 AA 2.4.11 Focus Not Obscured).

       Three alternatives were measured and rejected, all of which traded the occlusion for
       horizontal overflow (WCAG 1.4.10 Reflow) because the badge is white-space: nowrap and the
       header cannot shrink it: putting it back in flow overflowed by 35px at 16px and 209px at
       24px; wrapping it within the header span, 27px and 197px; block with wrapped text, 0px and
       141px. Anchoring to the bottom keeps it out of the layout entirely — measured 0 overflow and
       0 occluded focusable elements at both font sizes.

       Offsets in rem rather than px so the gap scales with the text, per the accessibility
       checklist's resize-text requirement. */
    top: auto;
    bottom: 0.5rem;
    left: 0.5rem;
    pointer-events: none;
    opacity: 1;
}


@media (min-width: 768px) {

    /*font sizes for both desktops*/
    webpage[b-tw9jhq309x] {
        --web-default-font-size: 1.125rem;                  /* 18px */
        --web-default-wordy-font-size: 1.5rem;              /* 24px */
        --web-secondary-font-size: 1rem;                    /* 16px */
        --web-title-font-size: 3rem;                        /* 48px */
        --web-subtitle-font-size: 2.25rem;                  /* 36px */
        --web-hero-header-font-size: 3rem;                  /* 48px */
        --web-hero-subheader-font-size: 2.25rem;            /* 36px */
    }

    header[b-tw9jhq309x] {
        /* The wrap in the base rule is a mobile remedy and must not reach this far: above the
           breakpoint there is room for the brand and the nav on one row, and #menu-container does
           its own wrapping inside the nav. Left wrapping, the nav takes a whole second row at 768
           even at a 16px root, which is a layout change rather than a fix. */
        flex-wrap: nowrap;
    }

    .navbar-toggler[b-tw9jhq309x] {
        display: none;
    }

    [b-tw9jhq309x] .nav-link {
        font-size: 1rem;
    }

    header[b-tw9jhq309x] {
        justify-content: space-between;
        padding: 1rem;
    }

    main[b-tw9jhq309x] {
        padding: 0 1rem 1rem 1rem;
    }

    .construction-stamp[b-tw9jhq309x] {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        margin-left: 0.75rem;
    }

}

/*@media (min-width: 75rem) {*/
/*    main {*/
/*        padding: 1rem 3rem;*/
/*    }*/

/*}*/


/* /Components/Shared/ContactForm.razor.rz.scp.css */
.contact-form[b-bv1hdfjs8u] {
    /*background-color: rgba(255, 255, 255, 0.03);*/
    padding: 2rem;
    /*border-radius: 0.75rem;*/
    /*border: 1px solid rgba(255, 255, 255, 0.1);*/
}

.section-header[b-bv1hdfjs8u] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--web-secondary-background-color);
    padding-bottom: 0.5rem;
}

.section-icon[b-bv1hdfjs8u] {
    font-size: 1.5rem;
    color: var(--web-highlight-color);
}

.section-header h2[b-bv1hdfjs8u] {
    margin: 0;
    font-size: var(--web-default-wordy-font-size);
    color: var(--web-color);
}

.form-description[b-bv1hdfjs8u] {
    color: var(--web-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-form-container[b-bv1hdfjs8u] {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group[b-bv1hdfjs8u] {
    display: flex;
    flex-direction: column;
}

.form-group label[b-bv1hdfjs8u] {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--web-color);
    font-size: var(--web-default-font-size);
}

.form-actions[b-bv1hdfjs8u] {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.alert[b-bv1hdfjs8u] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
}

.alert-success[b-bv1hdfjs8u] {
    background-color: rgba(39, 211, 131, 0.1);
    color: var(--web-color);
}

.alert-error[b-bv1hdfjs8u] {
    background-color: rgba(255, 111, 61, 0.1);
    color: var(--web-color);
}

.alert-icon[b-bv1hdfjs8u] {
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.alert-success .alert-icon[b-bv1hdfjs8u] {
    color: var(--web-secondary-success-color);
}

.alert-error .alert-icon[b-bv1hdfjs8u] {
    color: var(--web-secondary-danger-color);
}

.alert-content[b-bv1hdfjs8u] {
    flex: 1;
}

.alert-content strong[b-bv1hdfjs8u] {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.alert-content p[b-bv1hdfjs8u] {
    margin: 0;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .contact-form-container[b-bv1hdfjs8u] {
        max-width: 600px;
    }
    
    .section-header h2[b-bv1hdfjs8u] {
        font-size: var(--web-subtitle-font-size);
    }
}
/* /Components/Trials/Public/TrialInfo.razor.rz.scp.css */
.loading-container[b-lat2z2z3jn] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 1rem;
    color: var(--web-color);
    min-height: 50vh;
}

.spinner-container[b-lat2z2z3jn] {
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner[b-lat2z2z3jn] {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: spin-b-lat2z2z3jn 1s linear infinite;
}

@keyframes spin-b-lat2z2z3jn {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-container[b-lat2z2z3jn] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem;
    gap: 1rem;
}

.error-icon[b-lat2z2z3jn] {
    font-size: 4rem;
    color: var(--web-secondary-danger-color);
}

.trial-info-container[b-lat2z2z3jn] {
    max-width: 100%;
    padding: 1rem 0;
}

.trial-header[b-lat2z2z3jn] {
    margin-bottom: 1rem;
}

.trial-title-section[b-lat2z2z3jn] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.trial-id-badge[b-lat2z2z3jn] {
    background-color: var(--web-secondary-background-color);
    color: var(--web-color);
    padding: 0.5rem 1rem;
    border-radius: var(--cctc-border-radius);
    font-weight: bold;
    font-size: var(--web-secondary-font-size);
}

.trial-acronym[b-lat2z2z3jn] {
    color: var(--web-highlight-color);
    font-weight: bold;
    font-size: var(--web-default-wordy-font-size);
}

.trial-title[b-lat2z2z3jn] {
    color: var(--web-color);
    margin: 0;
    line-height: 1.3;
}

.trial-content[b-lat2z2z3jn] {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.module-info[b-lat2z2z3jn],
.site-info[b-lat2z2z3jn] {
    background-color: var(--web-background-color);
    padding: 0;
    border-radius: var(--cctc-border-radius);
}

.section-header[b-lat2z2z3jn] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background-color: var(--web-background-color);
    padding: 0.5rem;
    border-radius: var(--cctc-border-radius);
}

.section-icon[b-lat2z2z3jn] {
    font-size: 1.5rem;
    color: var(--cctc-highlight-color);
}

.section-header h3[b-lat2z2z3jn] {
    margin: 0;
    font-size: var(--web-default-wordy-font-size);
    color: var(--cctc-highlight-color);
}

.info-grid[b-lat2z2z3jn] {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

.info-item[b-lat2z2z3jn] {
    padding: 0.75rem;
    border-radius: var(--cctc-border-radius);
}

.info-item.full-width[b-lat2z2z3jn] {
    grid-column: 1 / -1;
}

.info-item h3[b-lat2z2z3jn] {
    margin: 0 0 0.4rem 0;
    font-size: var(--web-default-font-size);
    color: var(--cctc-highlight-color);
    font-weight: 600;
}

.info-item p[b-lat2z2z3jn] {
    margin: 0;
    color: var(--web-color);
    line-height: 1.5;
}

.status-section[b-lat2z2z3jn] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
    margin-left: 0.75rem;
}

.status-section h3[b-lat2z2z3jn] {
    margin: 0.75rem 0 0.4rem 0;
    font-size: var(--web-default-font-size);
    color: var(--cctc-highlight-color);
    font-weight: 600;
}

.status-grid[b-lat2z2z3jn] {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr;
}

.status-item[b-lat2z2z3jn] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.25rem;
    border-radius: var(--cctc-border-radius);
}


.status-icon[b-lat2z2z3jn] {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.status-item.active .status-icon[b-lat2z2z3jn],
.status-item.active .status-text[b-lat2z2z3jn] {
    color: var(--web-secondary-success-color);
}

.status-item.inactive .status-icon[b-lat2z2z3jn],
.status-item.inactive .status-text[b-lat2z2z3jn] {
    color: var(--web-secondary-danger-color);
}

.status-item.recruiting .status-icon[b-lat2z2z3jn],
.status-item.recruiting .status-text[b-lat2z2z3jn] {
    color: var(--web-secondary-success-color);
}

.status-item.not-recruiting .status-icon[b-lat2z2z3jn],
.status-item.not-recruiting .status-text[b-lat2z2z3jn] {
    color: var(--web-secondary-warning-color);
}

.status-item.indeterminate .status-icon[b-lat2z2z3jn],
.status-item.indeterminate .status-text[b-lat2z2z3jn] {
    color: var(--web-inactive-text-color);
}

.status-text[b-lat2z2z3jn] {
    font-weight: 500;
}

.site-details[b-lat2z2z3jn] {
    padding: 0.75rem;
    border-radius: var(--cctc-border-radius);
}

.site-details h3[b-lat2z2z3jn] {
    margin: 0 0 0.4rem 0;
    color: var(--web-color);
    font-size: var(--web-default-wordy-font-size);
}

.org-name[b-lat2z2z3jn] {
    margin: 0;
    color: var(--web-secondary-text-color);
    font-style: italic;
}

[b-lat2z2z3jn] .contact-form {
    padding: 0.75rem;
}

@media (min-width: 768px) {
    .trial-info-container[b-lat2z2z3jn] {
        margin: 0 auto;
        padding: 1.5rem;
    }

    .trial-header[b-lat2z2z3jn] {
        margin-bottom: 1.5rem;
    }

    .module-info[b-lat2z2z3jn],
    .site-info[b-lat2z2z3jn] {
        padding: 1rem;
    }

    .section-header[b-lat2z2z3jn] {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .section-header h2[b-lat2z2z3jn] {
        font-size: var(--web-subtitle-font-size);
    }

    .info-grid[b-lat2z2z3jn] {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .status-grid[b-lat2z2z3jn] {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 0.75rem;
    }

    .status-section[b-lat2z2z3jn] {
        gap: 0.5rem;
        margin-left: 1rem;
        margin-top: 1rem;
    }

    .site-details[b-lat2z2z3jn] {
        padding: 1rem;
    }
}
/* /Components/Trials/SummaryTab.razor.rz.scp.css */
h3[b-lwmhwa0zcg], h4[b-lwmhwa0zcg] {
    color: var(--cctc-highlight-color);
}


.sub-header[b-lwmhwa0zcg] {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.loading-message[b-lwmhwa0zcg] {
    text-align: center;
    padding: 2rem;
}

.error-message[b-lwmhwa0zcg] {
    text-align: center;
    padding: 2rem;
}

.summary-grid[b-lwmhwa0zcg] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0.5rem;
}

.summary-card[b-lwmhwa0zcg] {
    display: flex;
    gap: 1rem;
    border: 1px solid var(--web-secondary-background-color);
    border-radius: 0.5rem;
    padding: 1rem;
}

.summary-card.clickable[b-lwmhwa0zcg] {
    cursor: pointer;
}

.card-icon[b-lwmhwa0zcg] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    color: var(--web-secondary-warning-color);
    flex-shrink: 0;
}

.card-icon .material-icons[b-lwmhwa0zcg] {
    font-size: 3rem !important;
}

.card-content[b-lwmhwa0zcg] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-title[b-lwmhwa0zcg] {
    font-weight: 600;
    color: var(--web-secondary-warning-color);
    font-size: 1rem;
}

.card-value[b-lwmhwa0zcg] {
    font-size: 2rem;
    font-weight: 700;
    color: var(--web-color);
}

.card-value-small[b-lwmhwa0zcg] {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--web-color);
}

.card-details[b-lwmhwa0zcg] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.detail-item[b-lwmhwa0zcg] {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.detail-label[b-lwmhwa0zcg] {
    font-style: italic;
}

.detail-value[b-lwmhwa0zcg] {
    color: var(--web-color);
    font-weight: 500;
}

.card-action[b-lwmhwa0zcg] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--web-color);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.card-action .material-icons[b-lwmhwa0zcg] {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .summary-grid[b-lwmhwa0zcg] {
        /* minmax(0, 1fr), not 1fr. A grid track sized `1fr` has an automatic minimum of
           its content's min-content width, so these columns refused to shrink below it:
           measured 334.5px + 382.4px = 717px inside a 680px grid at a 24px root, putting
           the right-hand card 53px past the viewport. minmax(0, …) removes that floor and
           lets the tracks share the space they actually have. */
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
        padding: 1rem;
    }

    .summary-card[b-lwmhwa0zcg] {
        padding: 1rem;
    }

    .card-icon[b-lwmhwa0zcg] {
        width: 4rem;
        height: 4rem;
    }

    .card-icon .material-icons[b-lwmhwa0zcg] {
        font-size: 2rem;
    }

    .card-title[b-lwmhwa0zcg] {
        font-size: 1.4rem;
    }

    .card-value[b-lwmhwa0zcg] {
        font-size: 2.5rem;
    }

    .card-value-small[b-lwmhwa0zcg] {
        font-size: 1.5rem;
    }

    .card-details[b-lwmhwa0zcg] {
        font-size: 0.9rem;
    }

    .card-action[b-lwmhwa0zcg] {
        font-size: 0.9rem;
    }

    .card-action .material-icons[b-lwmhwa0zcg] {
        font-size: 1.2rem;
    }
}
/* /Components/Trials/Trials.razor.rz.scp.css */
.required-for-deep-css-isolation[b-4fnsud6owk] {
    height: 100% !important;
}

[b-4fnsud6owk] cctc-tabs-selected-content {
    height: 100% !important;
}

.above-grid[b-4fnsud6owk] {
    display: flex;
    justify-content: space-between;
    background-color: var(--web-background-color);
    z-index: 10;
    border-bottom: 1px solid var(--web-inactive-icon-color);
    padding-bottom: 1rem;
}

.loading-overlay[b-4fnsud6owk] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.1); /* Optional: adds a slight overlay effect */
}

.data-section[b-4fnsud6owk] {
    z-index: 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 70vh;
    width: 100%;
}

/* Desktop view is hidden on mobile */
.desktop-view[b-4fnsud6owk] {
    display: none;
}

/* Desktop view is hidden on mobile */
.desktop-view-options[b-4fnsud6owk] {
    display: none;
}

/* Mobile card view */
.mobile-view[b-4fnsud6owk] {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Unassigned trials desktop view is hidden on mobile */
.unassigned-desktop-view[b-4fnsud6owk] {
    display: none;
}

/* Unassigned trials mobile card view */
.unassigned-mobile-view[b-4fnsud6owk] {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trial-card[b-4fnsud6owk] {
    display: flex;
    flex-direction: column;
    background-color: var(--web-secondary-background-color);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/*this is used to help when showing trials as lister*/
[b-4fnsud6owk] cctc-lister-item-row:not(:empty) {
    min-height: 200px !important;
    padding-left: 0 !important;
}

/*this is needed to override the above for the specific lister items given*/
[b-4fnsud6owk] cctc-lister-item-row[id^='organisations-lister-item'],
[b-4fnsud6owk] cctc-lister-item-row[id^='sites-lister-item'],
[b-4fnsud6owk] cctc-lister-item-row[id^='conditions-lister-item'],
[b-4fnsud6owk] cctc-lister-item-row[id^='keywords-lister-item'],
[b-4fnsud6owk] cctc-lister-item-row[id^='module-types-lister-item']
{
    min-height: inherit !important;
    padding-left: 0 !important;
}

.card-header[b-4fnsud6owk] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.trial-id[b-4fnsud6owk] {
    font-size: 1rem;
    color: var(--web-highlight-color);
    word-break: break-all;
    flex-grow: 1;
}

.trial-id-container[b-4fnsud6owk] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trial-id-mobile[b-4fnsud6owk] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    /* White, not the highlight orange: on the card's secondary background the orange measured 3.51:1, below
       the 4.5:1 this normal-weight text needs at any font size. */
    color: var(--web-color);
    word-break: break-all;
    flex-grow: 1;
}

[b-4fnsud6owk] .trial-id-container cctc-infoicon .material-icons {
    color: var(--web-highlight-color) !important;
    background-color: var(--web-background-color);
}

[b-4fnsud6owk] .trial-id-mobile cctc-infoicon .material-icons {
    color: var(--web-highlight-color) !important;
    background-color: var(--web-secondary-background-color);
}

.trial-acronym[b-4fnsud6owk] {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--web-highlight-color);
}

.trial-sponsor[b-4fnsud6owk] {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--web-cctc-logo-color);
}

.trial-title[b-4fnsud6owk] {
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
}

.pagination-wrapper[b-4fnsud6owk] {
    display: flex;
    gap: 2rem;
    margin-left: auto;
    margin-right: 2rem;
}

.actions[b-4fnsud6owk] {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex-shrink: 1;
}

[b-4fnsud6owk] .actions .component-wrapper div {
    padding-right: 0;
}

[b-4fnsud6owk] .actions .component-wrapper div label {
    text-align: end;
}

[b-4fnsud6owk] .actions .checkbox-wrapper {
    width: 170px;
}

.unassigned-trials-selection[b-4fnsud6owk] {
    /*padding: 1rem;*/
    gap: 1rem;
}

.unassigned-trials-selection .pagination-wrapper[b-4fnsud6owk] {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.data-source-selection[b-4fnsud6owk] {
    padding: 1rem;
}

.role-assignment-layout[b-4fnsud6owk] {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
}

.selected-trials-column[b-4fnsud6owk] {
    flex: 2;
}

.role-selection-column[b-4fnsud6owk] {
    flex: 1;
}

.selected-trials-list[b-4fnsud6owk] {
    background-color: var(--web-secondary-background-color);
    border-radius: 0.375rem;
    padding: 1rem;
    min-height: 120px;
    max-height: 700px;
    overflow-y: auto;
}

.selected-trial-item[b-4fnsud6owk] {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--web-inactive-icon-color);
}

.trial-id-display[b-4fnsud6owk] {
    font-size: 0.85rem;
    color: var(--web-highlight-color);
    font-weight: 500;
}

.trial-acronym-display[b-4fnsud6owk] {
    font-size: 1rem;
    font-weight: bold;
    margin: 0.25rem 0;
    color: var(--web-color);
}

.trial-title-display[b-4fnsud6owk] {
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--web-color);
    margin-top: 0.25rem;
}

.selected-trial-item:last-child[b-4fnsud6owk] {
    border-bottom: none;
}

.selected-trial-more[b-4fnsud6owk] {
    padding: 0.25rem 0;
    font-style: italic;
    color: var(--web-cctc-logo-color);
    font-size: 0.85rem;
}

.no-trials-message[b-4fnsud6owk] {
    color: var(--web-inactive-icon-color);
    font-style: italic;
    text-align: center;
    padding: 2rem 0;
}

.role-selection select[b-4fnsud6owk] {
    width: 100%;
    max-width: 300px;
}

.confirmation[b-4fnsud6owk] {
    padding: 1rem;
}

.confirmation-summary[b-4fnsud6owk] {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 1rem;
}

.confirmation-summary h5[b-4fnsud6owk] {
    margin-bottom: 0.5rem;
    color: #495057;
}

.confirmation-summary ul[b-4fnsud6owk] {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.confirmation-summary ul li[b-4fnsud6owk] {
    margin-bottom: 0.25rem;
}

.confirmation-actions[b-4fnsud6owk] {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.select-column[b-4fnsud6owk] {
    width: 50px;
}


[b-4fnsud6owk] .quickgrid .col-options-button {
    -webkit-filter: invert(50%);
    color: var(--web-highlight-color);
}

#chkbox-prefer-list[b-4fnsud6owk] {
    margin-right: auto;
}

[b-4fnsud6owk] #chkbox-prefer-list {
    width: 11rem;
}

[b-4fnsud6owk] #chkbox-prefer-list .checkbox-wrapper {
    border-style: none !important;
    gap: 0 !important;
    padding-right: 0 !important;
}

#chkbox-unassigned-prefer-list[b-4fnsud6owk] {
    margin-right: auto;
}

[b-4fnsud6owk] #chkbox-unassigned-prefer-list {
    width: 11rem;
}

[b-4fnsud6owk] #chkbox-unassigned-prefer-list .checkbox-wrapper {
    border-style: none !important;
    gap: 0 !important;
    padding-right: 0 !important;
}

#trials-tabs-tabs-headers[b-4fnsud6owk] {
    width: 430px;
    gap: 0.5rem;
}

.selected-trials-column .label[b-4fnsud6owk], .role-selection-column .label[b-4fnsud6owk] {
    margin-bottom: 1rem;
}

.confirmation-message[b-4fnsud6owk] {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--web-color);
    margin-bottom: 1.5rem;
}

.confirmation-checkbox[b-4fnsud6owk] {
    background-color: var(--web-secondary-background-color);
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 2rem;
}

.data-role-selection[b-4fnsud6owk] {
    padding: 1rem;
}

.data-role-confirmation[b-4fnsud6owk] {
    padding: 1rem;
}

.site-roles-label[b-4fnsud6owk] {
    margin-top: 1.5rem !important;
}

.site-roles-section[b-4fnsud6owk] {
    margin-top: 0.5rem;
}

.selected-sponsor-role[b-4fnsud6owk] {
    margin-top: 1rem;
    background-color: var(--web-secondary-background-color);
    border-radius: 0.375rem;
    padding: 0.75rem;
}

.selected-site-roles[b-4fnsud6owk] {
    margin-top: 1rem;
    background-color: var(--web-secondary-background-color);
    border-radius: 0.375rem;
    padding: 0.75rem;
}

.selected-roles-label[b-4fnsud6owk] {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--web-color);
}

.selected-sponsor-role-item[b-4fnsud6owk] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin: 0.25rem 0;
    background-color: var(--web-background-color);
    border-radius: 0.25rem;
}

.selected-sponsor-role-item .role-info[b-4fnsud6owk] {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.selected-sponsor-role-item .role-name[b-4fnsud6owk] {
    font-size: 0.9rem;
    color: var(--web-color);
}

.selected-sponsor-role-item .role-description[b-4fnsud6owk] {
    font-size: 0.8rem;
    color: var(--web-cctc-logo-color);
    font-style: italic;
}

[b-4fnsud6owk] .selected-sponsor-role-item .button-wrapper {
    --cctc-button-x-padding: 4px;
}

.selected-site-role-item[b-4fnsud6owk] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin: 0.25rem 0;
    background-color: var(--web-background-color);
    border-radius: 0.25rem;
    border: 1px solid var(--web-inactive-icon-color);
}

.selected-site-role-item .role-info[b-4fnsud6owk] {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.selected-site-role-item .site-name[b-4fnsud6owk] {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--web-highlight-color);
}

.selected-site-role-item .role-name[b-4fnsud6owk] {
    font-size: 0.9rem;
    color: var(--web-color);
}

.selected-site-role-item .role-description[b-4fnsud6owk] {
    font-size: 0.8rem;
    color: var(--web-cctc-logo-color);
    font-style: italic;
}

[b-4fnsud6owk] .selected-site-role-item .button-wrapper {
    --cctc-button-x-padding: 4px;
}

.no-site-roles-message[b-4fnsud6owk],
.no-sponsor-roles-message[b-4fnsud6owk]{
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
    background-color: var(--web-secondary-background-color);
    border-radius: 0.375rem;
}

.info-message[b-4fnsud6owk] {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: var(--web-secondary-background-color);
    border: 1px solid var(--web-highlight-color);
    border-radius: 0.375rem;
    color: var(--web-color);
    font-size: 0.9rem;
}

.confirmation-role-header[b-4fnsud6owk] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.site-name-label[b-4fnsud6owk] {
    font-size: 0.85rem;
    color: var(--web-cctc-logo-color);
}

.site-roles-header[b-4fnsud6owk] {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--web-cctc-logo-color);
}

.organisation-content[b-4fnsud6owk], .site-content[b-4fnsud6owk] {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.organisation-info[b-4fnsud6owk], .site-info[b-4fnsud6owk] {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.organisation-name[b-4fnsud6owk], .site-name[b-4fnsud6owk], .condition-name[b-4fnsud6owk], .keyword-name[b-4fnsud6owk], .module-type-name[b-4fnsud6owk] {
    color: var(--web-highlight-color);
}

.organisation-location[b-4fnsud6owk], .site-address[b-4fnsud6owk] {
    color: var(--web-color);
}

.organisation-action[b-4fnsud6owk], .site-action[b-4fnsud6owk], .condition-action[b-4fnsud6owk], .keyword-action[b-4fnsud6owk], .module-type-action[b-4fnsud6owk] {
    display: flex;
    flex-shrink: 1;
    flex-direction: column;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 0.5rem;
}

.add-edit-organisation-section[b-4fnsud6owk],
.add-edit-site-section[b-4fnsud6owk],
.add-edit-condition-section[b-4fnsud6owk],
.add-edit-keyword-section[b-4fnsud6owk],
.add-edit-module-type-section[b-4fnsud6owk] {
    background-color: var(--web-inactive-text-color);
    border-radius: var(--web-border-radius);
    padding: 1.5rem;
    margin: 2rem 0 4rem 0;
}

.controls[b-4fnsud6owk] {
    padding: 1rem 0;
    display: flex;
    justify-content: end;
    gap: 1rem;
}

.save-organisations-timeout-content[b-4fnsud6owk], .save-sites-timeout-content[b-4fnsud6owk], .save-conditions-timeout-content[b-4fnsud6owk], .save-keywords-timeout-content[b-4fnsud6owk] {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
}

.wrapper[b-4fnsud6owk] {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: 1fr;
    border-bottom: 1px solid var(--cctc-highlight-background-color);
    padding: 1rem 0;
}

.label[b-4fnsud6owk] {
    grid-column: 1;
    
}

.wrapper small[b-4fnsud6owk] {
    color: var(--cctc-highlight-color);
    line-height: 1 !important;
}

h3[b-4fnsud6owk], h4[b-4fnsud6owk] {
    color: var(--cctc-highlight-color);
}

.condition-content[b-4fnsud6owk], .keyword-content[b-4fnsud6owk], .module-type-content[b-4fnsud6owk] {
    display: flex;
    flex-direction: column;
}

.condition-info[b-4fnsud6owk], .keyword-info[b-4fnsud6owk] {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.condition-edit-warning[b-4fnsud6owk], .condition-delete-impact-message[b-4fnsud6owk],
.organisation-edit-warning[b-4fnsud6owk], .organisation-delete-impact-message[b-4fnsud6owk],
.site-edit-warning[b-4fnsud6owk], .site-delete-impact-message[b-4fnsud6owk],
.keyword-edit-warning[b-4fnsud6owk], .keyword-delete-impact-message[b-4fnsud6owk],
.module-type-edit-warning[b-4fnsud6owk], .module-type-delete-impact-message[b-4fnsud6owk]{
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--cctc-warning-color);
}

/*::deep #new-edit-module-type-id-input {*/
/*    text-transform: uppercase;*/
/*}*/

.coordinate-validation-warning[b-4fnsud6owk],
.coordinate-validation-info[b-4fnsud6owk] {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
    border: 1px solid;
}

.coordinate-validation-warning[b-4fnsud6owk] {
    background-color: var(--web-secondary-background-color);
    border-color: var(--web-secondary-warning-color);
    color: var(--web-color);
}

.coordinate-validation-info[b-4fnsud6owk] {
    background-color: var(--web-secondary-background-color);
    border-color: var(--web-highlight-color);
    color: var(--web-color);
}

.coordinate-validation-warning .material-icons[b-4fnsud6owk],
.coordinate-validation-info .material-icons[b-4fnsud6owk] {
    font-size: 20px;
    flex-shrink: 0;
    color: var(--web-secondary-warning-color);
}

.coordinate-validation-info .material-icons[b-4fnsud6owk] {
    color: var(--web-highlight-color);
}

.coordinate-validation-warning div[b-4fnsud6owk],
.coordinate-validation-info div[b-4fnsud6owk] {
    flex: 1;
    line-height: 1.4;
}

.sub-header[b-4fnsud6owk] {
    margin-bottom: 1rem;
}

.direct-role-access-notice[b-4fnsud6owk] {
    margin-left: auto;
    margin-right: 0;
}

/* Desktop styles */
@media (min-width: 768px) {
    .mobile-view[b-4fnsud6owk] {
        display: none;
    }

    [b-4fnsud6owk] cctc-tabs-selected-content {
        height: 100% !important;
    }

    .desktop-view[b-4fnsud6owk] {
        display: block;
        width: 100%;
    }

    .wrapper[b-4fnsud6owk] {
        grid-template-columns: 30% 55%;
    }

    .wrapper .label[b-4fnsud6owk] {
        margin-left: 3rem !important;
    }
    
    .unassigned-mobile-view[b-4fnsud6owk] {
        display: none;
    }

    .unassigned-desktop-view[b-4fnsud6owk] {
        display: block;
        width: 100%;
    }
    
    [b-4fnsud6owk] cctc-tabs-selected-content {
        position: relative !important;
        height: 800px;
        padding: 0 2rem 2rem 2rem;
    }
    
    .desktop-view-options[b-4fnsud6owk] {
        display: flex;
        justify-content: flex-end;
        align-items: start;
        height: 4rem;
        gap: 1rem;
        
    }

    .unassigned-trials-selection .desktop-view-options[b-4fnsud6owk] {
        width: 100%;
    }

    [b-4fnsud6owk] .quickgrid {
        width: 75vw;
        height: 55vh;
    }

    [b-4fnsud6owk] .edit-column {
        width: 8%;
        
    }

    [b-4fnsud6owk] .id-column {
        width: 15%;
    }

    [b-4fnsud6owk] .acronym-column {
        width: 15%;
    }

    [b-4fnsud6owk] .sponsor-column {
        display: table-cell;
        width: 20%;
    }

    [b-4fnsud6owk] .brief-title-column {
        flex-grow: 1;
    }

    [b-4fnsud6owk] tr {
        vertical-align: top;
    }

    [b-4fnsud6owk] .quickgrid[theme=default] tbody tr td {
        padding: 0.5rem;
    }

    [b-4fnsud6owk] .quickgrid[theme=default] table {
        height: auto;
    }

    .data-section[b-4fnsud6owk] {
        justify-content: start;
    }
    
    .unassigned-trials-selection[b-4fnsud6owk] {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .unassigned-trials-selection .pagination-wrapper[b-4fnsud6owk] {
        margin-bottom: 1.5rem;
    }
    
    .data-source-selection[b-4fnsud6owk] {
        padding: 1.5rem;
    }
    
    .confirmation[b-4fnsud6owk] {
        padding: 1.5rem;
    }
    
    [b-4fnsud6owk] .select-column {
        width: 8%;
    }

    [b-4fnsud6owk] #trials-tabs-tabs-headers {
        width: 220px;
        gap: 0.5rem;
    }
    
    [b-4fnsud6owk] .left-item-header {
        max-width: 600px !important;
    }

    [b-4fnsud6owk] #chkbox-prefer-list-label {
        text-wrap: wrap;
    }

    #trials-tabs-tabs-selected-content > div.above-grid > a > div[b-4fnsud6owk] {
        line-height: 1;
        margin-right: 1rem;
    }

    .role-assignment-layout[b-4fnsud6owk] {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }
    
    .selected-trials-column[b-4fnsud6owk] {
        flex: 2;
        min-width: 0;
    }
    
    .role-selection-column[b-4fnsud6owk] {
        flex: 1;
        min-width: 0;
        max-width: 400px;
    }

    .controls[b-4fnsud6owk] {
        padding: 1rem 0;
        margin-right: 5%;
        align-items: end;
    }

    .organisation-info[b-4fnsud6owk], .site-info[b-4fnsud6owk] {
        flex-direction: row;
    }

    [b-4fnsud6owk] cctc-lister-item-row[id^='organisations-lister-item'],
    [b-4fnsud6owk] cctc-lister-item-row[id^='sites-lister-item'],
    [b-4fnsud6owk] cctc-lister-item-row[id^='conditions-lister-item'],
    [b-4fnsud6owk] cctc-lister-item-row[id^='keywords-lister-item'],
    [b-4fnsud6owk] cctc-lister-item-row[id^='module-types-lister-item']{
        padding-right: 2rem;
    }

    .condition-content[b-4fnsud6owk], .keyword-content[b-4fnsud6owk], .module-type-content[b-4fnsud6owk] {
        flex-direction: row;
        justify-content: space-between;
    }

    .organisation-action[b-4fnsud6owk], .site-action[b-4fnsud6owk], .condition-action[b-4fnsud6owk], .keyword-action[b-4fnsud6owk], .module-type-action[b-4fnsud6owk] {
        flex-direction: row;
    }

    .above-grid[b-4fnsud6owk] {
        padding-bottom: 0 !important;
        align-items: stretch;
    }
    
    .coordinate-validation-warning[b-4fnsud6owk] {
        margin: 1rem 3rem;
    }

    .direct-role-access-notice[b-4fnsud6owk] {
        margin-right: 2rem;
        margin-left: 2rem;
    }
    
}
/* /Pages/AccessibilityPreferences.razor.rz.scp.css */
.page-container[b-5cgb84b6zz] {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* Mobile first: icon, heading and introduction stack. As a row at every width they could not fit below 768px —
   the paragraph was squeezed to under 100px and pushed off the page, 109px over at 360px with a 16px root. */
.page-header[b-5cgb84b6zz] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1[b-5cgb84b6zz] {
    color: var(--web-secondary-text-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 600;
    /* A single long word ("Accessibility") at a raised root font is wider than a phone. Break it rather than let
       it overflow. */
    overflow-wrap: break-word;
    min-width: 0;
    max-width: 100%;
}

.page-header p[b-5cgb84b6zz] {
    color: var(--web-color);
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

.page-header .material-icons[b-5cgb84b6zz] {
    font-size: 64px;
    color: var(--web-secondary-text-color);
}

.prefs-section[b-5cgb84b6zz] {
    padding: 2rem;
}

.section-header[b-5cgb84b6zz] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--web-secondary-background-color);
    padding-bottom: 0.5rem;
}

.section-icon[b-5cgb84b6zz] {
    font-size: 1.5rem;
    color: var(--web-highlight-color);
}

.section-header h2[b-5cgb84b6zz] {
    margin: 0;
    font-size: var(--web-default-wordy-font-size);
    color: var(--web-color);
}

.section-description[b-5cgb84b6zz] {
    color: var(--web-color);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

/* Strip the default cctc-input box around the radio groups on this page —
   the section card already provides containment, so the inner border would
   look like a second nested box. */
.prefs-section[b-5cgb84b6zz]  .radio-group-wrapper {
    box-shadow: none;
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.prefs-section[b-5cgb84b6zz]  .radio-group-wrapper::before,
.prefs-section[b-5cgb84b6zz]  .radio-group-wrapper::after {
    display: none;
}

.hidden-focus-warning[b-5cgb84b6zz] {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--web-secondary-danger-color, #ff6f3d);
    background-color: rgba(255, 111, 61, 0.08);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hidden-focus-header[b-5cgb84b6zz] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hidden-focus-header .material-icons[b-5cgb84b6zz] {
    color: var(--web-secondary-danger-color, #ff6f3d);
}

.hidden-focus-warning h3[b-5cgb84b6zz] {
    margin: 0;
    color: var(--web-color);
    font-size: 1.05rem;
}

.hidden-focus-warning p[b-5cgb84b6zz] {
    margin: 0;
    color: var(--web-color);
    line-height: 1.5;
}

.hidden-focus-actions[b-5cgb84b6zz],
.reset-actions[b-5cgb84b6zz] {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.alert[b-5cgb84b6zz] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
}

.alert-success[b-5cgb84b6zz] {
    background-color: rgba(39, 211, 131, 0.1);
    color: var(--web-color);
}

.alert-icon[b-5cgb84b6zz] {
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.alert-success .alert-icon[b-5cgb84b6zz] {
    color: var(--web-secondary-success-color);
}

.alert-content[b-5cgb84b6zz] {
    flex: 1;
}

.alert-content strong[b-5cgb84b6zz] {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.alert-content p[b-5cgb84b6zz] {
    margin: 0;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .page-container[b-5cgb84b6zz] {
        padding: 2rem;
    }

    /* Icon and heading share a row; the introduction wraps onto its own line beneath them, so it is never
       squeezed between them — which it was at 768px with a 24px root. */
    .page-header[b-5cgb84b6zz] {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        column-gap: 3rem;
    }

    .page-header p[b-5cgb84b6zz] {
        flex-basis: 100%;
    }

    .page-header h1[b-5cgb84b6zz] {
        font-size: 2.5rem;
    }

    .section-header h2[b-5cgb84b6zz] {
        font-size: var(--web-subtitle-font-size);
    }
}
/* /Pages/Search/Leaflet.razor.rz.scp.css */
.map-container[b-dyo5z0fv11] {
    border-radius: 5px;
    margin-top: 1rem;
    margin-right: 0.4rem;
    overflow: hidden;
    height: 60vh;
}

.map-container :global(.leaflet-container)[b-dyo5z0fv11] {
    border-radius: 5px;
}

/* The map's attribution sits on a near-white box, but the layout colours every link pink for its navy background:
   2.54:1 there, below WCAG 1.4.3's 4.5:1. Its links take the layout's navy instead, and are underlined, because the
   attribution's own text is a dark grey that navy cannot be told apart from by colour alone (WCAG 1.4.1). */
[b-dyo5z0fv11] .leaflet-control-attribution a {
    color: #083054;
    text-decoration: underline;
}

.custom-div-icon[b-dyo5z0fv11] {
    background: transparent;
    border: none;
}

.marker-pin[b-dyo5z0fv11] {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #c30b82;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
}

.marker-pin[b-dyo5z0fv11]::after {
    content: '';
    width: 24px;
    height: 24px;
    margin: 3px 0 0 3px;
    background: #fff;
    position: absolute;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .map-container[b-dyo5z0fv11] {
        margin-top: 2.4rem;
        height: 800px;
    }
}
/* /Pages/Search/Search.razor.rz.scp.css */
.header[b-kj4e8445ss] {
    display: flex;
    align-items: center;
}

.wrapper[b-kj4e8445ss] {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.data-entry[b-kj4e8445ss] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    /* WCAG 2.2 AA 1.4.10 Reflow. The postcode field and its clear/submit buttons are a nowrap flex
       row whose intrinsic width exceeds a 360px viewport once the root font rises — and the buttons
       cannot shrink without dropping below the 2.5.8 touch-target minimum. Measured 2026-09-08 at
       360px: the row ran 8px past the viewport at a 16px root, 50px at 20px and 92px at 24px, with
       #submit-postcode reaching x=446 in a 354px-wide page. Wrapping puts the buttons on their own
       line instead; it is the same remedy, for the same reason, as the nav row in TopMenu.razor.css
       and .wrapper in the desktop block below.

       The desktop block re-declares .data-entry but not flex-wrap, so it inherits this. */
    flex-wrap: wrap;
}

.message[b-kj4e8445ss] {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.results[b-kj4e8445ss] {
    margin-top: 1rem;
    width: 100%;
    height: 100%
}

[b-kj4e8445ss] #trial-location-list {
    height: 550px !important;
    width: 100%;
}

[b-kj4e8445ss] cctc-lister-items-container {
    margin-left: -0.3rem !important;
    margin-right: -0.3rem !important;
}

.input[b-kj4e8445ss] {
    font-size: 1.8rem;
}

#trial-acronym-input[b-kj4e8445ss]  input {
    height: 100px !important;
}

[b-kj4e8445ss] #your-postcode {
    width: 120px !important;
    --cctc-input-height: 2.2rem;
}

[b-kj4e8445ss] #your-postcode input {
    text-transform: uppercase;
}

[b-kj4e8445ss] #submit-postcode .material-icons {
    font-size: 36px;
}

[b-kj4e8445ss] #submit-postcode > .disabled > .material-icons,
[b-kj4e8445ss] #clear-postcode > .disabled > .material-icons{
    color: var(--web-inactive-icon-color);
}

.trial-card[b-kj4e8445ss] {
    background-color: var(--web-secondary-background-color);
    border-radius: 0.5rem;
    padding: 1rem;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trial-header[b-kj4e8445ss] {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.trial-main[b-kj4e8445ss] {
    flex: 1;
    margin-right: 1rem;
}

.trial-acronym[b-kj4e8445ss] {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--web-highlight-color);
    margin-bottom: 0.25rem;
}

.brief-title[b-kj4e8445ss] {
    font-size: 1rem;
    color: var(--web-color);
    line-height: 1.4;
    display: block;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    max-height: calc(1.4rem * 2);
}

.site-info[b-kj4e8445ss] {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
}

.site-name[b-kj4e8445ss] {
    font-size: 1.1rem;
    color: var(--web-cctc-logo-color);
    line-height: 1.4;
    display: block;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    max-height: calc(1.6rem * 2);
    flex: 1;
}

.trial-distance-icon[b-kj4e8445ss] {
    font-size: 2rem;
    margin-left: auto;
    margin-right: 1rem;
    color: var(--web-highlight-color);
}

.trial-distance[b-kj4e8445ss] {
    text-align: end;
    display: flex;
    flex-direction: row;
    font-size: 1.2rem;
    color: var(--web-highlight-color);
    white-space: nowrap;
}


.module-info[b-kj4e8445ss] {
    border-radius: 0.25rem;
    padding: 0.75rem;
}

.module-name[b-kj4e8445ss] {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--web-cctc-logo-color);

    line-height: 1.4;
    display: block;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    max-height: calc(1.4rem * 2)
}

.module-description[b-kj4e8445ss] {
    font-size: 0.8rem;
    line-height: 1.5;
    display: none;
}

.trial-status[b-kj4e8445ss] {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid;
    padding-top: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.8rem;
    background-color: rgba(0, 0, 0, 0.1);
}

.status-item[b-kj4e8445ss] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.status-item .material-icons[b-kj4e8445ss] {
    font-size: 1.4rem;
}

.active[b-kj4e8445ss] {
    color: var(--web-secondary-success-color);
    border-top-color: var(--web-secondary-success-color);
}

.inactive[b-kj4e8445ss] {
    color: var(--web-secondary-danger-color);
    border-top-color: var(--web-secondary-danger-color);
}

.indeterminate[b-kj4e8445ss] {
    color: var(--web-secondary-warning-color);
    border-top-color: var(--web-secondary-warning-color);
}

[b-kj4e8445ss] .trial-status cctc-button {
    margin-left: auto;
}

[b-kj4e8445ss] cctc-lister-item-row {
    height: auto !important;
}

/* The row clips its overflow, and the card's wrapper is a flex item that would otherwise refuse to shrink
   below its content. Measured before this rule: a card 408px wide in a 338px row at 360px / 24px font, and
   468px in a 386px row at 768px on the default font, with the right-hand side of the card cut off. */
[b-kj4e8445ss] cctc-lister-item-row > div {
    min-width: 0;
}


.advanced-search[b-kj4e8445ss] {
    transition: all 0.3s ease-in-out;
    opacity: 0;
    max-height: 0;
}

/*use media queries to manually update the expected height*/
.advanced-search[b-kj4e8445ss] {
    --advanced-search-height: 50vh;
}

.advanced-search.show[b-kj4e8445ss] {
    max-height: var(--advanced-search-height);
    opacity: 1;
}

.advanced-search.hide[b-kj4e8445ss] {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

.params-grid[b-kj4e8445ss] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
    padding: 0 0.5rem 1rem 0.5rem;
    border-top: 2px solid var(--web-secondary-background-color);
    border-bottom: 2px solid var(--web-secondary-background-color);
}

.param-group[b-kj4e8445ss] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.param-group label[b-kj4e8445ss] {
    color: var(--web-secondary-text-color);
}

[b-kj4e8445ss] #accepting-patients-only .checkbox-wrapper {
    display: flex;
    border-style: none !important;
    gap: 0 !important;
    padding-right: 0 !important;
}

[b-kj4e8445ss] #accepting-patients-only label,
[b-kj4e8445ss] #limit-to-target-country label {
    color: var(--web-secondary-text-color);
}

[b-kj4e8445ss] #limit-to-target-country-label {
    max-width: 300px;
    font-size: 0.8rem !important;
}

[b-kj4e8445ss] #limit-to-target-country-checkbox {
    transform: scale(0.8);
    width: 30px !important;
}

[b-kj4e8445ss] #limit-to-target-country-checkbox-label-tooltip {
    padding-left: 0;
}

.hide-it[b-kj4e8445ss] {
    visibility: hidden;
}

.show-it[b-kj4e8445ss] {
    visibility: visible;
}

.map[b-kj4e8445ss] {
    width: 100%;
    margin-right: 2rem;
    padding-top: 1rem;
    /*determines the height of the whole map including key*/
    height: 70vh;
    margin-bottom: 2rem;
}

[b-kj4e8445ss] .leaflet-popup-content-wrapper {
    background-color: var(--web-background-color);
    max-width: 300px;
    max-height: 280px;
}

[b-kj4e8445ss] .leaflet-popup-content > h5,
[b-kj4e8445ss] .leaflet-popup-content > h6 {
    color: var(--web-color);
}

[b-kj4e8445ss] .leaflet-popup-tip {
    background: var(--web-background-color);
}

[b-kj4e8445ss] #popup-trial-list {
    overflow-y: scroll;
    max-height: 200px;
    padding-left: 1rem;
}

[b-kj4e8445ss] #popup-trial-list a {
    text-decoration: none !important;
}

[b-kj4e8445ss] #popup-trial-list a:hover {
    text-decoration: underline !important;
}

[b-kj4e8445ss] #popup-trial-list::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

[b-kj4e8445ss] #popup-trial-list::-webkit-scrollbar-track {
    background: var(--web-background-color);
    border: none;
}

[b-kj4e8445ss] .advanced-search {
    --cctc-input-border-style: none;
    --cctc-input-border-radius: 0;
}

[b-kj4e8445ss] .advanced-search input, [b-kj4e8445ss] .advanced-search cctc-input-dropdown-selected {
    border-bottom: none;
}

.centred[b-kj4e8445ss] {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    height: 50vh; /* Use viewport height to make it vertically centered */
    text-align: center;
    font-size: 1.5rem;
    color: var(--web-color);
}

.map-guidance[b-kj4e8445ss] {
    display: flex;
    justify-content: end;
    margin-top: 0.6rem;
    margin-right: 0.5rem;
    gap: 1.5rem;
}

.map-guidance div[b-kj4e8445ss] {
    display: flex;
    margin-left: 0.4rem;
    font-size: small;
}

.map-guidance img[b-kj4e8445ss] {
    width: auto;
    height: 30px;
}

.map-header-controls-container[b-kj4e8445ss] {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
    margin-top: 0.3rem;
}

.modules-list[b-kj4e8445ss] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.module-item[b-kj4e8445ss] {
    padding-left: 1rem;
}

.module-item.active[b-kj4e8445ss] {
    border-left: 3px solid var(--web-secondary-success-color);
}

.module-item.inactive[b-kj4e8445ss] {
    border-left: 3px solid var(--web-secondary-danger-color);
}

.module-item.indeterminate[b-kj4e8445ss] {
    border-left: 3px solid var(--web-secondary-warning-color);
}

/*.module-item.active,*/
/*.module-item.inactive,*/
/*.module-item.indeterminate {*/
/*    color: inherit;*/
/*}*/

.module-item:not(:last-child)[b-kj4e8445ss] {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}


@media (min-width: 768px) {

    .params-grid[b-kj4e8445ss] {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
        column-gap: 1.5rem;
        row-gap: 1rem;
        padding-top: 0.8rem;
    }

    .advanced-search[b-kj4e8445ss] {
        margin-top: 1rem;
        /* A ceiling, in rem so it rises with the root font — not a fixed height. At 100px the cap
           was below the panel's own content at every font size and the panel has no
           overflow: hidden, so the controls simply rendered outside their box and over the results
           beneath. Measured 2026-09-08 at 1280px: content 106px at a 16px root (6px out), 132px at
           20px (32px out, with #max-distance-input-input and
           #limit-to-target-country-checkbox below the box), and 158px at 24px (58px out).

           ⚠️ Do NOT "fix" this by adding overflow: hidden. That would clip those two controls
           instead of spilling them, turning a layout defect into an operability one — the absence
           of overflow: hidden is what keeps them usable today. The cap is the bug.

           12rem clears the measured content at 16 / 20 / 24px with headroom, and because it is a
           max-height the panel still sizes to its content (106 / 132 / 158px) rather than to the
           cap. */
        --advanced-search-height: 12rem;
    }

    [b-kj4e8445ss] cctc-lister-items-container {
        height: 100% !important;
    }

    .loading-overlay[b-kj4e8445ss] {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .loading-overlay.show[b-kj4e8445ss] {
        transition: all 0.1s ease-in-out;
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
    
    .loading-overlay.hide[b-kj4e8445ss] {
        transition: all 0.3s ease-in-out;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .results[b-kj4e8445ss] {
        position: relative;
        height: 900px !important; /* Restore fixed height for desktop only */
        margin-top: 2rem;
    }

    .results.hide[b-kj4e8445ss] {
        transition: all 0.3s ease-in-out;
        overflow: hidden;
        opacity: 0;
    }

    .results.show[b-kj4e8445ss] {
        transition: all 0.3s ease-in-out;
        opacity: 1;
    }


    [b-kj4e8445ss] #trial-site-map {
        height: 900px !important;
    }

    .param-group label[b-kj4e8445ss] {
        width: auto;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .param-group[b-kj4e8445ss]  cctc-input-dropdown {
        max-width: calc(100% - 80px);
        width: 100%;
    }

    /* Text inputs only. A checkbox or radio sits inside the library's 24px
       .cctc-input-touch-target span, so the percentages here resolve against THAT — not against
       the grid column — and calc(24px - 80px) clamps to zero at every column width. That is why
       #limit-to-target-country-checkbox measured 0px wide even at 2966px, while the same control
       is 24px below the breakpoint where this rule does not apply. Radio is excluded for the same
       reason, though no radio sits in a .param-group today. */
    .param-group[b-kj4e8445ss]  input:not([type="checkbox"]):not([type="radio"]) {
        max-width: calc(100% - 80px);
        width: 100%;
    }

    .param-group:nth-child(1)[b-kj4e8445ss] {
        grid-column: 1;
        grid-row: 1;
    }

    .param-group:nth-child(2)[b-kj4e8445ss] {
        grid-column: 2;
        grid-row: 1;
    }

    .param-group:nth-child(3)[b-kj4e8445ss] {
        grid-column: 3;
        grid-row: 1;
    }

    .param-group:nth-child(4)[b-kj4e8445ss] {
        grid-column: 1;
        grid-row: 2;
    }

    .param-group:nth-child(5)[b-kj4e8445ss] {
        grid-column: 3;
        grid-row: 2;
    }

    .wrapper[b-kj4e8445ss] {
        flex-direction: row;
        align-items: center;
        /* WCAG 2.2 AA 1.4.10. .data-entry and .search-options sit side by side here as a
           nowrap flex row, so at a raised font their combined intrinsic width pushed
           .search-options 41px past this container (signed in, 768px, 24px root — the
           signed-in nav is taller, which is why the anonymous case did not show it).
           Wrapping lets the two blocks stack instead of overflowing. */
        flex-wrap: wrap;
    }

    [b-kj4e8445ss] #trial-location-list {
        height: 50rem !important;
        width: 50vw;
    }

    .data-entry[b-kj4e8445ss] {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .search-options[b-kj4e8445ss] {
        margin-left: auto;
        display: flex;
        /* WCAG 2.2 AA 1.4.10. The checkbox plus the three buttons are a nowrap flex
           row whose intrinsic width is 512px, which overflowed a 768px viewport by
           185px once the nav stopped absorbing the blame for it. Wrapping lets the
           controls stack when the row cannot fit. */
        flex-wrap: wrap;
    }

    .results[b-kj4e8445ss] {
        margin-top: 2rem;
    }

    .results-frames[b-kj4e8445ss] {
        position: relative;
        display: flex;
        gap: 1.5rem;
    }

    .map[b-kj4e8445ss] {
        margin-right: 0;
        padding-top: 0;
    }

    .message[b-kj4e8445ss] {
        margin-top: 0;
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }

    .trial-status[b-kj4e8445ss] {
        flex-direction: row;
        align-items: center;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 0.5rem;
        gap: 3rem;
    }

    .status-notice[b-kj4e8445ss] {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
        flex-grow: 1;
    }

    .status-item .material-icons[b-kj4e8445ss] {
        font-size: 1.4rem;
    }

    .status-item[b-kj4e8445ss] {
        display: flex;
        flex-direction: row !important;
    }

    .module-description[b-kj4e8445ss] {
        font-size: 0.9rem;
        line-height: 1.4;
        display: block;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-line-clamp: 3;
        max-height: calc(1.4rem * 3);
    }

    [b-kj4e8445ss] #submit-postcode .material-icons {
        font-size: 48px;
    }

    [b-kj4e8445ss] #popup-trial-list {
        max-height: 250px;
        max-width: 350px;
    }

    [b-kj4e8445ss] .leaflet-popup-content-wrapper {
        max-height: 350px;
        max-width: 400px;
    }

    .map-header-controls-container[b-kj4e8445ss] {
        flex-direction: row;
        gap: 2rem;
        margin-bottom: -1.7rem; 
        margin-top: -0.3rem;
    }

    .modules-list[b-kj4e8445ss] {
        gap: 1.5rem;
    }

    .module-item[b-kj4e8445ss] {
        padding-left: 1.5rem;
    }

    .module-item.active[b-kj4e8445ss] {
        border-left: 4px solid var(--web-secondary-success-color);
    }

    .module-item.inactive[b-kj4e8445ss] {
        border-left: 4px solid var(--web-secondary-danger-color);
    }

    .module-item.indeterminate[b-kj4e8445ss] {
        border-left: 4px solid var(--web-secondary-warning-color);
    }

    .module-item.active[b-kj4e8445ss],
    .module-item.inactive[b-kj4e8445ss],
    .module-item.indeterminate[b-kj4e8445ss] {
        color: inherit;
    }

    .module-item:not(:last-child)[b-kj4e8445ss] {
        padding-bottom: 1.5rem;
    }
    
    .module-info[b-kj4e8445ss] {
        margin-bottom: 1rem;
    }
}
