/* /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 */
/* The same blue as the header and the page, so the footer reads as part of them, with a line marking where it
   starts. Both footer lines match the account pages' <hr> under "Manage your account" (Bootstrap's: 1px of the
   text colour at 25% opacity, 1rem from what it separates). */
.footer[b-45rprwe4de] {
    --footer-rule: 1px solid color-mix(in srgb, var(--web-color) 25%, transparent);
    background-color: var(--web-background-color);
    color: var(--web-color);
}

.footer-columns[b-45rprwe4de] {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-top: var(--footer-rule);
    border-bottom: var(--footer-rule);
    padding: 1rem;
}

/* The width is capped by a share of the column as well as in rem, so a raised font size cannot push it wider than
   a 360px phone. It is on the wrapper, which the stamp is positioned against, so the image fills it. */
.footer-logo[b-45rprwe4de] {
    position: relative;
    width: min(10rem, 55%);
}

.footer-logo img[b-45rprwe4de] {
    display: block;
    width: 100%;
    height: auto;
}

/* Laid over the foot of the logo, so it takes no space of its own. Until 2026-11-05 it was fixed to the viewport's
   bottom-left (#74, from the header since 2026-09-08), where the page had to leave room for it. It never takes a
   click, and _009D's Layout_ConstructionStamp_DoesNotCoverAnyControl holds it clear of every control and of
   horizontal overflow. */
.construction-stamp[b-45rprwe4de] {
    position: absolute;
    left: 0;
    bottom: -0.75rem;
    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;
    white-space: nowrap;
    letter-spacing: 1px;
    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);
    pointer-events: none;
}

/* The copyright and build number sit at the foot of the logo's column, in small type so they do not compete with the
   links. Below the breakpoint the column is only as tall as its content, so they simply follow the logo. */
.footer-brand[b-45rprwe4de] {
    display: flex;
    flex-direction: column;
}

.footer-notices[b-45rprwe4de] {
    margin-top: auto;
    /* Clear of the stamp, which hangs 0.75rem below the logo. */
    padding-top: 1.5rem;
    font-size: 0.75rem;
}

.footer-notices p[b-45rprwe4de] {
    margin: 0;
}

/* The width is on the link, not its image: a percentage on the image would be of a shrink-to-fit link, which is
   sized by the image. */
.footer-cctc .cctc-logo[b-45rprwe4de] {
    display: inline-block;
    width: min(5rem, 35%);
    line-height: 0;
    margin-bottom: 1rem;
}

.footer-cctc .cctc-logo img[b-45rprwe4de] {
    width: 100%;
    height: auto;
}

.footer-cctc .cctc-logo:focus-visible[b-45rprwe4de] {
    outline: 2px solid var(--web-color);
    outline-offset: 3px;
}

.footer-col h2[b-45rprwe4de] {
    font-size: var(--web-default-font-size);
    font-weight: 600;
    color: var(--web-on-secondary-accent-color);
    margin-bottom: 1rem;
}

.footer-col ul[b-45rprwe4de] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col a[b-45rprwe4de] {
    color: var(--web-color);
    font-size: var(--web-secondary-font-size);
    text-decoration: none;
}

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

.footer-col a:focus-visible[b-45rprwe4de] {
    outline: 2px solid var(--web-color);
    outline-offset: 2px;
}

/* WCAG 2.2 AA 2.5.8 Target Size (Minimum). These are standalone links in a list, not links inside a
   sentence, so the "inline" exception does not apply. */
.footer-links a[b-45rprwe4de] {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

/* A link the mockup names but whose destination is not known yet. Colour alone would fail WCAG 1.4.1,
   so the dashed underline is the second cue, and each link carries visually hidden text for screen readers.
   The on-secondary highlight is 4.88:1 even on the lighter secondary blue, so it clears AA on the footer's darker one. */
.footer-col a.tbc[b-45rprwe4de] {
    color: var(--web-on-secondary-highlight-color);
    text-decoration: underline dashed;
    text-underline-offset: 3px;
}

.footer-contact li[b-45rprwe4de] {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: var(--web-secondary-font-size);
}

.footer-contact a[b-45rprwe4de] {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    /* The email address is one long word; let it break rather than push the column wider than a phone. */
    overflow-wrap: anywhere;
}

.footer-contact .material-icons[b-45rprwe4de] {
    font-size: 1.25rem;
    line-height: 24px;
}

.footer-contact address[b-45rprwe4de] {
    margin: 0;
    line-height: 1.5;
}

.footer-statement[b-45rprwe4de] {
    font-size: var(--web-secondary-font-size);
    line-height: 1.5;
}

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

    /* Wrapping rather than a fixed grid: five columns do not fit at 768px, or at a raised font size,
       so they fall onto a second row instead of overflowing (WCAG 2.2 AA 1.4.10). */
    .footer-columns[b-45rprwe4de] {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
        padding-inline: 3.5rem;
    }

    .footer-col[b-45rprwe4de] {
        flex: 1 1 9rem;
    }

    .footer-brand[b-45rprwe4de] {
        flex-basis: 12rem;
    }

    .footer-logo[b-45rprwe4de] {
        width: 12rem;
        max-width: 100%;
    }

    .construction-stamp[b-45rprwe4de] {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .footer-contact[b-45rprwe4de] {
        flex-basis: 15rem;
    }

    .footer-cctc[b-45rprwe4de] {
        flex-basis: 15rem;
    }

    .footer-col + .footer-col[b-45rprwe4de] {
        border-left: 1px dashed var(--web-on-secondary-accent-color);
        padding-left: 2rem;
    }
}
/* /Components/Layout/SkipLink.razor.rz.scp.css */
/* Shown only while focused (Bootstrap's visually-hidden-focusable hides it otherwise). The public layout defines the
   --web-* colours on its <webpage>; under the trial-management layout, which defines none, the fallbacks are its own
   white on dark blue. */
.skip-link:focus[b-801ftqp2jr],
.skip-link:focus-visible[b-801ftqp2jr] {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 9999;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    background-color: var(--web-color, #ffffff);
    color: var(--web-background-color, #052767);
    border: 2px solid var(--web-background-color, #052767);
    border-radius: var(--web-border-radius, 0.25rem);
    text-decoration: underline;
    clip: 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;
}

/* Below the breakpoint the menu starts closed on every page (display: none in #menu-container below), so the page's
   content has the screen. It is shown by an attribute on <html>, set by js/topMenu.js, because the page's first
   interactive render replaces the toggler and would take a toggle made before it with it. It is also shown while the
   toggler is ticked, so a tap works before that script has run, and with no script at all. */
html[data-menu-open] #menu-container[b-xjq1hwiizx],
#top-menu-toggler:checked + #menu-container[b-xjq1hwiizx] {
    display: flex;
}

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

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

#menu-container[b-xjq1hwiizx] {
    display: none;
    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] {
        /* Always shown at this width, whatever the toggler's state: there is no toggler here. */
        display: flex;
        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;
    }

    .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;

    /* Accents for text on --web-secondary-background-color (#0f5ba0), where the ones above reach only 2.6-3.5:1.
       Lighter shades of the same hues, each at least 4.5:1 there and on the darker #0e5290 inside it (WCAG 1.4.3).
       Cards on that background map their accents to these. */
    --web-on-secondary-accent-color: #b8e6ec;       /* 5.15:1 */
    --web-on-secondary-highlight-color: #ffd27a;    /* 4.88:1 */
    --web-on-secondary-danger-color: #ffc9b5;       /* 4.72:1 */
    --web-on-secondary-link-color: #ffc2e0;         /* 4.64:1 */
    --web-on-secondary-success-color: #8cebbd;      /* 4.87:1 */
    --web-on-secondary-warning-color: #ffd84d;      /* 5.02:1 */

    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;
}

/* While the mobile menu is open the header lets go of the top of the viewport and scrolls away with the page. Open,
   it is several hundred pixels tall (406px signed in at 360px with a 24px root), and a pinned header that size sat on
   top of whatever keyboard focus moved back into: a browser scrolls a focused element only just into view, which is
   under the header (WCAG 2.2 AA 2.4.11). The menu closes after every navigation, so the header is sticky again on the
   next page. The attribute is set by js/topMenu.js, and only below the breakpoint can it be. */
html[data-menu-open] header[b-tw9jhq309x] {
    position: relative;
}

.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;
    /* Top-left, not centred against the header: with the mobile menu open the header is a tall column of links,
       and a centred logo drifted halfway down beside them. Inset from the corner as far as the menu toggler is from
       the other one (TopMenu.razor.css: top 0.5rem, right 1rem); the header has no padding of its own here. */
    align-self: flex-start;
    margin: 0.5rem 0 0 1rem;
}

.page-body[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;
}

/* The side padding is main's, so the footer's lines are inset as far as a rule in the page, such as the <hr> under
   "Manage your account". The footer's content is inset further by the Footer component. */
footer[b-tw9jhq309x] {
    background-color: var(--web-background-color);
    padding: 1.5rem 0.5rem 1rem;
}

[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);
}


#logo[b-tw9jhq309x] {
    /* Sized by height in rem, so the logo scales with the browser's default font size like the nav beside it; the
       width follows from the image's own proportions. No max-width: .header-brand does not shrink, and a max-width
       here would squash the wordmark rather than let the header wrap. */
    margin-right: auto;
    height: 3rem;
    width: auto;
}

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

@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;
    }

    footer[b-tw9jhq309x] {
        padding: 1.5rem 1rem 1rem;
    }

    #logo[b-tw9jhq309x] {
        height: 3.5rem;
    }

    /* The header has its own 1rem padding at this width, so the brand needs no inset. */
    .header-brand[b-tw9jhq309x] {
        margin: 0;
    }

}

/*@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;
}

.trial-summary[b-lat2z2z3jn],
.trial-eligibility[b-lat2z2z3jn],
.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);
}

/* The trial summary and eligibility texts are sanitised HTML rendered as markup, so they carry no scope attribute and
   are reached with ::deep. Their headings start below the section's h2. */
.rich-text[b-lat2z2z3jn] {
    padding: 0 0.5rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.rich-text[b-lat2z2z3jn]  :is(h3, h4, h5, h6) {
    color: var(--cctc-highlight-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.75rem 0;
}

.rich-text[b-lat2z2z3jn]  p {
    margin: 0.5rem 0;
}

.rich-text[b-lat2z2z3jn]  :is(ul, ol) {
    margin: 0.5rem 0;
    /* As the editor: list text one level in, and each nested level one further (--rich-text-level, app.css). */
    padding-left: var(--rich-text-level);
}

.rich-text[b-lat2z2z3jn]  li {
    margin: 0.25rem 0;
}

.rich-text[b-lat2z2z3jn]  blockquote {
    margin: 1rem 0;
    padding: 0.75rem;
    border-left: 3px solid var(--web-secondary-warning-color);
}

/* The view toggle: the library's radio renders as cctc-input[data-cctc-input-type="radio"]. On this page it is
   borderless, its options sit together on the left rather than spread across the width, and the text below it gets
   room to breathe. The focus ring (outline on .radio-group-wrapper) is untouched. */
.trial-eligibility[b-lat2z2z3jn]  cctc-input[data-cctc-input-type="radio"] {
    display: block;
    width: auto;
    margin: 0 0.5rem 1.5rem;
}

.trial-eligibility[b-lat2z2z3jn]  cctc-input[data-cctc-input-type="radio"] .radio-group-wrapper {
    box-shadow: none;
    padding-left: 0;
    flex: 0 1 auto;
}

/* The library also draws the top and bottom border lines on these scroll-fade bars; two options never scroll. */
.trial-eligibility[b-lat2z2z3jn]  cctc-input[data-cctc-input-type="radio"] .radio-group-wrapper::before,
.trial-eligibility[b-lat2z2z3jn]  cctc-input[data-cctc-input-type="radio"] .radio-group-wrapper::after {
    display: none;
}

.trial-eligibility[b-lat2z2z3jn]  cctc-input[data-cctc-input-type="radio"] .radio-group-row > .radio-parent {
    flex: 0 1 auto;
}

.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;
    }

    .trial-summary[b-lat2z2z3jn],
    .trial-eligibility[b-lat2z2z3jn],
    .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 */
h2[b-lwmhwa0zcg], h3[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] {
        /* As many columns as fit at 22rem each, not a fixed two. Two equal columns let the
           cards shrink below their titles: at 768px with a 20px root, beside the left tab
           strip, each card was 226px, leaving its 28px "Organisations" title 106px beside
           the icon, so the title ran 72px out of its card and past the window. A rem floor
           grows with the text, so large text gets one column. min(100%, …) keeps a single
           column from exceeding a grid narrower than 22rem; a plain 1fr track would instead
           refuse to shrink below its content's min-content width. */
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 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%;

    /* The accents the card's text uses reach only 3.4-3.5:1 on this background; inside a card they are the lighter
       shades that clear WCAG 1.4.3's 4.5:1 (WebLayout.razor.css). */
    --web-cctc-logo-color: var(--web-on-secondary-accent-color);
    --web-highlight-color: var(--web-on-secondary-highlight-color);
}

/*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;
}

h2[b-4fnsud6owk], h3[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;
    }

    /* Placed at the side, at least 220px and wider when a label needs it. A fixed 220px cut "Unassigned
       trials" to an ellipsis at 1280px with a 24px root (184px of label in 176px). Only at the side: placed
       on top (768px with a 24px root) the strip wraps, and max-content would lay it out as one 828px row. */
    [b-4fnsud6owk] #trials-tabs-tabs-headers.tabs-headers-left {
        width: max-content;
        min-width: 220px;
        flex-shrink: 0;
    }
    
    [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] {
    /* No side padding below the breakpoint: with the page's own 1rem, 2rem a side left the options 183px at 360px
       with a 24px root, and they were cut off and scrolled sideways. */
    padding: 1.5rem 0;
}

.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;
    /* The options are shown in full (RadioLabelOverflow.None), so the group sizes to them rather than scrolling. */
    overflow: visible;
}

.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;
    }

    .prefs-section[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;
}

/* On a line of its own under the postcode row, which wraps. Empty, it takes no room. */
.postcode-problem[b-kj4e8445ss] {
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.postcode-problem .material-icons[b-kj4e8445ss] {
    color: var(--web-secondary-danger-color);
}

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

[b-kj4e8445ss] #trial-location-list {
    /* Sized by its content: the filter row, the item area (ItemsContainerHeightPixels, 500px) and the results count.
       A fixed 550px held all three only at small root sizes; the count spilled out of the bottom and over the map's
       "center map" button. */
    height: auto !important;
    width: 100%;
}

/* Scrollable whether or not a pointer is on it. The CCTC Lister scrolls its item area only on :hover, which a phone
   does not have until the list is tapped, so a swipe on the results did nothing. Its scrollbar gutter is already
   reserved, so showing the bar does not shift the cards. */
[b-kj4e8445ss] #trial-location-list cctc-lister-items-container {
    overflow-y: auto !important;
}

[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);

    /* The accents the card's text and buttons use reach only 2.6-4.4:1 on this background; inside a card they are
       the lighter shades that clear WCAG 1.4.3's 4.5:1 (WebLayout.razor.css). */
    --web-cctc-logo-color: var(--web-on-secondary-accent-color);
    --web-highlight-color: var(--web-on-secondary-highlight-color);
    --web-secondary-danger-color: var(--web-on-secondary-danger-color);
    --web-secondary-success-color: var(--web-on-secondary-success-color);
    --web-secondary-warning-color: var(--web-on-secondary-warning-color);
    --cctc-button-color: var(--web-on-secondary-link-color);
    --cctc-button-icon-color: var(--web-on-secondary-link-color);
    --cctc-button-border-color: var(--web-on-secondary-link-color);
}

.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;
    /* The site name takes a row of its own, with the centre-map button and the distance below it. Sharing one
       unwrapping row with them, it was squeezed to one character per line at 360px with a 24px root. */
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 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 1 100%;
}

.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: 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;
    }

    /* The list is a fixed 50rem here, so its item area takes whatever the filter row and the results count leave,
       rather than 100% of the list and pushing the count out of the bottom. */
    [b-kj4e8445ss] #trial-location-list cctc-lister-items-container {
        height: auto !important;
        flex: 1 1 auto;
        min-height: 0;
    }

    .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;
        display: flex;
        flex-direction: column;
    }

    .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;
    }

    /* The whole map, with its button and key, stays on screen below the site header while the list scrolls (#2).
       Its height is set by Leaflet.razor.js (FitToViewport), from where its row starts. */
    .map[b-kj4e8445ss] {
        margin-right: 0;
        padding-top: 0;
        position: sticky;
        top: calc(var(--web-site-header-height, 4.5rem) + 0.5rem);
        align-self: flex-start;
        height: auto;
        margin-bottom: 0;
    }

    .map[b-kj4e8445ss]  .map-container {
        margin-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: 0.3rem 0 0 0;
    }

    .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;
    }
}
