html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0 auto;
    max-width: 1180px;
    min-height: 100vh;
    padding: 20px;
    background: #f4f7f8;
    color: #1f2933;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    line-height: 1.4;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

.portal-topbar,
.portal-nav,
.portal-hero,
.portal-card-grid,
.portal-quick-links {
    background: #fff;
    border: 1px solid #dde7ea;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(31, 41, 51, 0.04);
}

.portal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 14px;
    padding: 18px 22px;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.portal-brand__logo {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, #dbe9ee 0%, #b8d3db 100%);
    color: #205b66;
    font-size: 28px;
    font-weight: 700;
}

.portal-brand__eyebrow {
    color: #5f7a82;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-brand__text h1 {
    font-size: 30px;
    line-height: 1.05;
}

.portal-topbar__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.portal-user {
    display: grid;
    gap: 2px;
    margin-right: 6px;
    text-align: right;
}

.portal-user strong {
    font-size: 15px;
}

.portal-user span {
    color: #617780;
    font-size: 13px;
}

.portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid #3e7280;
    border-radius: 12px;
    background: #3e7280;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
}

.portal-button[hidden] {
    display: none;
}

.portal-button--ghost {
    background: #fff;
    color: #2f6170;
}

.portal-nav {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 18px;
    overflow: hidden;
}

.portal-nav__item {
    flex: 1 1 150px;
    padding: 14px 12px;
    border-right: 1px solid #e6eef1;
    color: #445a63;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.portal-nav__item:last-child {
    border-right: 0;
}

.portal-hero {
    margin-bottom: 18px;
    padding: 56px 40px;
    background: linear-gradient(180deg, #edf5f8 0%, #d7e5ea 100%);
}

.portal-hero__content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.portal-hero__eyebrow {
    color: #54727b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-hero__content h2 {
    margin-top: 10px;
    font-size: 44px;
    line-height: 1.08;
}

.portal-hero__content p {
    margin-top: 14px;
    color: #42525a;
    font-size: 20px;
}

.portal-hero__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.portal-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px;
}

.portal-card {
    padding: 16px;
    border: 1px solid #e2ebee;
    border-radius: 16px;
    background: #fbfcfd;
}

.portal-card__media {
    height: 150px;
    margin-bottom: 16px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, transparent 49%, #c4d5db 50%, transparent 51%),
        linear-gradient(45deg, transparent 49%, #c4d5db 50%, transparent 51%),
        #e8f0f3;
}

.portal-card h3 {
    color: #59737d;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portal-card h4 {
    margin-top: 8px;
    font-size: 24px;
    line-height: 1.2;
}

.portal-card p {
    margin-top: 10px;
    color: #52636b;
}

.portal-card__meta {
    display: inline-block;
    margin-top: 14px;
    color: #628390;
    font-size: 14px;
    font-weight: 600;
}

.portal-quick-links {
    padding: 24px;
}

.portal-quick-links__header h2 {
    margin-top: 8px;
    font-size: 30px;
}

.portal-quick-links__header p {
    margin-top: 10px;
    max-width: 760px;
    color: #52636b;
    font-size: 18px;
}

.portal-priorities__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    justify-content: space-around;
}

.portal-quick-links__items {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.quick-link {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 18px;
    border: 1px solid #dbe6ea;
    border-radius: 12px;
    background: #f7fafb;
}

a.quick-link {
    color: inherit;
    text-decoration: none;
}

a.quick-link:hover strong {
    color: #2f6170;
}

.quick-link strong {
    color: #1f2933;
    min-width: 190px;
}

.quick-link span {
    color: #50626b;
    flex: 1;
}

.portal-saved-list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.portal-saved-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 4px;
    border-bottom: 1px solid #e3e9ee;
}

.portal-saved-item:last-child {
    border-bottom: none;
}

.portal-saved-item__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.portal-saved-item__text strong {
    font-weight: 600;
}

.portal-saved-item__type {
    color: #5d6b77;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.portal-saved-item__actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
}

.portal-saved-item .portal-card__save {
    display: flex;
    width: auto;
    margin: 0;
}

@media (max-width: 980px) {
    .portal-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body {
        padding: 12px;
    }

    .portal-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-topbar__actions {
        justify-content: flex-start;
    }

    .portal-user {
        margin-right: 0;
        text-align: left;
    }

    .portal-hero {
        padding: 36px 20px;
    }

    .portal-hero__content h2 {
        font-size: 34px;
    }

    .portal-hero__content p {
        font-size: 18px;
    }

    .portal-hero__actions {
        flex-direction: column;
    }

    .quick-link {
        flex-direction: column;
    }

    .quick-link strong {
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .portal-brand {
        align-items: flex-start;
    }

    .portal-brand__text h1 {
        font-size: 24px;
    }

    .portal-nav__item {
        flex-basis: 100%;
    }
}


/* Password reset forms — label above input, breathing room around fields and buttons */
.reset-form {
    max-width: 420px;
    margin-top: 22px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.form-field label {
    color: #1f2933;
    font-size: 15px;
    font-weight: 600;
}

.form-field input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border: 1px solid #cbdde3;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2933;
    font: inherit;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(31, 41, 51, 0.04);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-field input:hover {
    border-color: #93b6c0;
}

.form-field input:focus,
.form-field input:focus-visible {
    outline: none;
    border-color: #3e7280;
    box-shadow: 0 0 0 3px rgba(62, 114, 128, 0.18);
}

.form-field__help {
    color: #52636b;
    font-size: 13px;
    line-height: 1.4;
}

.form-field__errors {
    margin: 0;
    padding-left: 18px;
    color: #b3261e;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Simplified shared portal header and public-facing homepage */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    border-radius: 6px;
    background: #102a43;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.portal-site-header {
    margin-bottom: 18px;
    border: 1px solid #d8e4e8;
    border-radius: 14px;
    background: #fff;
}

.portal-site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 82px;
    padding: 12px 18px;
}

.portal-brand--link {
    flex: 0 0 auto;
    color: #102a43;
    text-decoration: none;
}

.portal-brand--link .portal-brand__logo {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #dcebef;
    color: #176b7a;
    font-size: 24px;
}

.portal-brand__name {
    font-size: 20px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
}

.portal-primary-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1 1 auto;
}

.portal-primary-nav a,
.portal-account-link,
.portal-management-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    color: #102a43;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.portal-primary-nav a:hover,
.portal-account-link:hover,
.portal-management-link:hover {
    background: #eff6fa;
    color: #105866;
}

.portal-primary-nav a[aria-current="page"] {
    box-shadow: inset 0 -2px #176b7a;
}

.portal-primary-nav__search {
    gap: 7px;
}

.portal-primary-nav__search svg,
.home-search svg,
.home-resource-row svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.portal-account-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex: 0 1 auto;
}

.portal-site-header--management .portal-site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 20px;
}

.portal-site-header--management .portal-brand--link {
    grid-column: 1;
    grid-row: 1;
}

.portal-site-header--management .portal-account-actions {
    grid-column: 2;
    grid-row: 1;
    flex-wrap: wrap;
    margin-left: 0;
}

.portal-site-header--management .portal-primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-top: 4px;
    border-top: 1px solid #e6eef1;
}

.portal-account-actions form {
    margin: 0;
}

.portal-user-summary {
    display: none;
    color: #5f737c;
    font-size: 12px;
    line-height: 1.25;
}

.portal-user-summary span {
    display: block;
}

.portal-account-link--button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.portal-account-link {
    white-space: nowrap;
}

.portal-management-link {
    border: 1px solid #bdd5db;
    color: #105866;
    white-space: nowrap;
}

.portal-management-link--secondary {
    border-color: transparent;
    color: #526b75;
    font-size: 13px;
}

.portal-sign-in {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 8px;
    background: #15395b;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.portal-sign-in:hover {
    background: #102a43;
}

.portal-site-header a:focus-visible,
.portal-site-header button:focus-visible,
.homepage a:focus-visible,
.homepage button:focus-visible,
.homepage input:focus-visible,
.portal-footer a:focus-visible,
.clinician-page a:focus-visible,
.search-page a:focus-visible,
.committee-page a:focus-visible {
    outline: 3px solid #f5b942;
    outline-offset: 3px;
}

body.template-homepage,
body.template-clinician,
body.template-search,
body.template-committee-dashboard {
    max-width: none;
    padding: 0;
    background: #fff;
    color: #102a43;
}

.template-homepage .portal-site-header,
.template-clinician .portal-site-header,
.template-search .portal-site-header,
.template-committee-dashboard .portal-site-header {
    max-width: 1348px;
    margin: 0 auto;
    border-width: 0 0 1px;
    border-radius: 0;
}

.homepage,
.clinician-page,
.search-page,
.committee-page {
    max-width: 1348px;
    margin: 0 auto;
    padding: 20px 28px 24px;
}

.urgent-help {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    padding: 10px 18px;
    border: 1px solid #bcd7f0;
    border-radius: 8px;
    background: #eff6ff;
    color: #334e68;
}

.urgent-help__icon {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    fill: #1765a2;
    stroke: #fff;
    stroke-linecap: round;
    stroke-width: 2;
}

.urgent-help strong {
    margin-right: 14px;
    color: #15395b;
}

.home-hero {
    padding: 30px 76px 28px;
}

.home-hero__content {
    max-width: 930px;
}

.home-hero h1 {
    color: #102a43;
    font-size: clamp(2.5rem, 4vw, 3rem);
    line-height: 1.14;
    letter-spacing: -0.025em;
}

.home-hero__line {
    display: block;
}

.home-hero__content > p {
    max-width: 720px;
    margin-top: 12px;
    color: #334e5a;
    font-size: 18px;
    line-height: 1.5;
}

.home-search {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.home-search__field {
    position: relative;
    flex: 1 1 auto;
}

.home-search__field svg,
.clinician-filter-form__search svg {
    position: absolute;
    top: 50%;
    fill: none;
    color: #102a43;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
    transform: translateY(-50%);
    pointer-events: none;
}

.home-search__field svg {
    left: 16px;
    width: 25px;
    height: 25px;
}

.home-search input {
    width: 100%;
    min-height: 54px;
    padding: 12px 18px 12px 52px;
    border: 1px solid #cbd9df;
    border-radius: 7px;
    background: #fff;
    color: #102a43;
    font: inherit;
    font-size: 16px;
}

.home-search input::placeholder {
    color: #5f737c;
    opacity: 1;
}

.home-search button,
.clinician-filter-form button {
    border: 1px solid #176b7a;
    background: #176b7a;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.home-search button {
    min-width: 112px;
    min-height: 54px;
    padding: 12px 22px;
    border-radius: 7px;
}

.home-search button:hover,
.clinician-filter-form button:hover {
    background: #105866;
}

.home-pathways {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-pathway-card,
.home-panel,
.clinician-tools,
.clinician-results-panel {
    border: 1px solid #d8e4e8;
    border-radius: 12px;
    background: #fff;
}

.home-pathway-card {
    min-height: 250px;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 22px 24px 18px;
    text-align: center;
}

.home-pathway-card__icon,
.clinician-page__hero > svg,
.clinician-disclosure summary > svg {
    fill: none;
    stroke: #176b7a;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-pathway-card__icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    stroke-width: 2.4;
}

.home-pathway-card h2 {
    color: #102a43;
    font-size: 18px;
    line-height: 1.3;
}

.home-pathway-card p {
    margin-top: 10px;
    color: #526b75;
    font-size: 15px;
    line-height: 1.5;
}

.home-pathway-card a,
.home-panel__link,
.home-panel__heading-row a {
    color: #105f70;
    font-weight: 700;
    text-decoration: none;
}

.home-pathway-card a,
.home-panel__link {
    margin-top: auto;
    padding-top: 16px;
}

.home-pathway-card a:hover,
.home-panel__link:hover,
.home-panel__heading-row a:hover {
    color: #102a43;
    text-decoration: underline;
}

.home-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.home-panel {
    padding: 18px 20px;
}

.home-panel h2 {
    color: #102a43;
    font-size: 19px;
}

.home-resource-list {
    margin-top: 6px;
    border-top: 1px solid #d8e4e8;
}

.home-resource-row {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 6px;
    border-bottom: 1px solid #d8e4e8;
    color: #102a43;
    text-decoration: none;
}

.home-resource-row:hover {
    background: #f7fafb;
}

.home-resource-row > svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.home-resource-row__text {
    display: grid;
    gap: 2px;
    flex: 1 1 auto;
}

.home-resource-row__text strong {
    font-size: 14px;
}

.home-resource-row__text span {
    color: #5f737c;
    font-size: 13px;
}

.home-resource-row__arrow {
    font-size: 24px;
}

.home-resource-row--unavailable {
    color: #5f737c;
}

.home-panel__link {
    display: inline-block;
}

.home-panel__heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.home-panel__heading-row a {
    font-size: 14px;
}

.home-faq__list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.home-faq__item {
    border: 1px solid #d8e4e8;
    border-radius: 7px;
    background: #fbfcfd;
}

.home-faq__item summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    color: #102a43;
    cursor: pointer;
    font-size: 14px;
    list-style: none;
}

.home-faq__item summary::-webkit-details-marker {
    display: none;
}

.home-faq__item summary::after {
    content: "+";
    font-size: 20px;
}

.home-faq__item[open] summary::after {
    content: "−";
}

.home-faq__item > div {
    padding: 0 16px 14px;
    color: #334e5a;
    font-size: 14px;
    line-height: 1.5;
}

.home-panel__empty {
    padding: 18px 0;
    color: #5f737c;
}

/* Committee overview: the home page card shell fronted by a count. */
.home-stat-card {
    min-height: 168px;
    justify-content: center;
    gap: 6px;
}

.home-stat-card .home-stat-card__value {
    margin-top: 0;
    color: #105f70;
    font-size: clamp(2.25rem, 3.4vw, 2.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* A resource row that is read-only, so it gains no hover affordance. */
.home-feedback-row {
    display: flex;
    padding: 11px 6px;
    border-bottom: 1px solid #d8e4e8;
    color: #102a43;
}

.home-feedback-row .home-resource-row__text span {
    line-height: 1.5;
}

.portal-footer {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto;
    align-items: center;
    gap: 32px;
    max-width: 1348px;
    margin: 0 auto;
    padding: 22px 28px;
    border-top: 1px solid #d8e4e8;
    color: #526b75;
    font-size: 13px;
}

.portal-footer nav {
    display: flex;
    gap: 24px;
}

.portal-footer a {
    color: #105f70;
    font-weight: 700;
    text-decoration: none;
}

.portal-footer a:hover {
    text-decoration: underline;
}

.clinician-page__hero,
.search-page__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 38px 42px;
    border: 1px solid #bcd7e1;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6fa 0%, #e8f3f5 100%);
}

.clinician-page__hero h1 {
    max-width: 760px;
    margin-top: 8px;
    color: #102a43;
    font-size: clamp(2.25rem, 4vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.clinician-page__hero > div > p:last-child {
    max-width: 720px;
    margin-top: 12px;
    color: #334e5a;
    font-size: 18px;
    line-height: 1.5;
}

.clinician-page__hero > svg {
    width: 82px;
    height: 82px;
    flex: 0 0 auto;
    stroke-width: 2;
}

.clinician-tools,
.clinician-results-panel {
    padding: 20px;
}

.clinician-tools {
    margin-top: 18px;
}

.clinician-tools__heading,
.clinician-results-panel__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.clinician-tools__heading h2,
.clinician-results-panel__heading h2 {
    color: #102a43;
    font-size: 21px;
}

.clinician-tools__heading p {
    margin-top: 5px;
    color: #526b75;
    font-size: 14px;
}

.clinician-tools__heading > a {
    color: #105f70;
    font-size: 14px;
    font-weight: 700;
}

.clinician-filter-form {
    display: grid;
    grid-template-columns: minmax(260px, 1.7fr) minmax(170px, 1fr) minmax(170px, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin-top: 18px;
}

.clinician-filter-form label {
    display: block;
    margin-bottom: 6px;
    color: #334e5a;
    font-size: 13px;
    font-weight: 700;
}

.clinician-filter-form__search > div {
    position: relative;
}

.clinician-filter-form__search svg {
    left: 14px;
    width: 22px;
    height: 22px;
}

.clinician-filter-form input,
.clinician-filter-form select,
.clinician-filter-form button {
    width: 100%;
    min-height: 48px;
    border-radius: 7px;
    font: inherit;
}

.clinician-filter-form input,
.clinician-filter-form select {
    padding: 10px 12px;
    border: 1px solid #cbd9df;
    background: #fff;
    color: #102a43;
}

.clinician-filter-form input {
    padding-left: 46px;
}

.clinician-filter-form button {
    min-width: 100px;
    padding: 10px 18px;
}

.clinician-filter-form input:focus-visible,
.clinician-filter-form select:focus-visible,
.clinician-filter-form button:focus-visible,
.clinician-disclosure summary:focus-visible {
    outline: 3px solid #f5b942;
    outline-offset: 2px;
}

.clinician-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
    margin-top: 18px;
}

.clinician-results-panel__heading {
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid #d8e4e8;
}

.clinician-results-panel__heading h2 {
    margin-top: 4px;
}

.clinician-results-panel__heading > span {
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f3f5;
    color: #105866;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.clinician-disclosure-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.clinician-disclosure {
    border: 1px solid #d8e4e8;
    border-radius: 8px;
    background: #fbfcfd;
}

.clinician-disclosure summary {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #102a43;
    cursor: pointer;
    list-style: none;
}

.clinician-disclosure summary::-webkit-details-marker {
    display: none;
}

.clinician-disclosure summary > svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    stroke-width: 1.8;
}

.clinician-disclosure summary > span {
    display: grid;
    gap: 3px;
    flex: 1 1 auto;
}

.clinician-disclosure summary strong {
    font-size: 15px;
    line-height: 1.3;
}

.clinician-disclosure summary small {
    color: #5f737c;
    font-size: 12px;
}

.clinician-disclosure summary::after {
    content: "+";
    color: #105866;
    font-size: 21px;
}

.clinician-disclosure[open] summary::after {
    content: "−";
}

.clinician-disclosure__body {
    padding: 0 14px 16px 50px;
    color: #334e5a;
    font-size: 14px;
    line-height: 1.5;
}

.clinician-disclosure__body a,
.clinician-list__unavailable {
    display: inline-block;
    margin-top: 12px;
    color: #105f70;
    font-weight: 700;
}

.clinician-disclosure__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.clinician-disclosure__meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8f3f5;
    color: #105866;
    font-size: 12px;
}

.clinician-empty-state {
    display: grid;
    gap: 4px;
    padding: 20px;
    border: 1px dashed #b8ccd4;
    border-radius: 8px;
    color: #526b75;
}

.clinician-empty-state strong {
    color: #102a43;
}

@media (max-width: 1180px) {
    .portal-site-header__inner {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .portal-primary-nav {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        border-top: 1px solid #e6eef1;
    }

    .portal-account-actions {
        margin-left: auto;
        flex-wrap: wrap;
    }
}

@media (max-width: 900px) {
    .home-hero {
        padding-right: 24px;
        padding-left: 24px;
    }

    .home-pathways {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-footer {
        grid-template-columns: 1fr 1fr;
    }

    .portal-footer > p:first-child {
        grid-column: 1 / -1;
    }

    .clinician-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .clinician-filter-form__search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .portal-site-header {
        margin-right: 0;
        margin-left: 0;
    }

    .portal-site-header__inner {
        gap: 12px;
        padding: 12px;
    }

    .portal-brand__name {
        white-space: normal;
    }

    .portal-account-actions {
        width: 100%;
        order: 2;
        justify-content: flex-start;
    }

    .portal-primary-nav {
        flex-wrap: wrap;
        overflow: visible;
        padding-top: 6px;
    }

    .portal-primary-nav a {
        flex: 0 0 auto;
    }

    .portal-site-header--management .portal-site-header__inner {
        grid-template-columns: 1fr;
    }

    .portal-site-header--management .portal-brand--link,
    .portal-site-header--management .portal-account-actions,
    .portal-site-header--management .portal-primary-nav {
        grid-column: 1;
    }

    .portal-site-header--management .portal-account-actions {
        grid-row: 2;
        justify-content: flex-start;
    }

    .portal-site-header--management .portal-primary-nav {
        grid-row: 3;
    }

    .homepage,
    .clinician-page,
    .search-page {
        padding: 12px;
    }

    .urgent-help {
        align-items: flex-start;
    }

    .urgent-help strong {
        display: block;
        margin: 0 0 2px;
    }

    .home-hero {
        padding: 28px 4px;
    }

    .home-hero h1 {
        font-size: 34px;
    }

    .home-hero__line {
        display: inline;
    }

    .home-search {
        flex-direction: column;
    }

    .home-search button {
        width: 100%;
    }

    .home-pathways,
    .home-panels {
        grid-template-columns: 1fr;
    }

    .portal-footer {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 12px;
    }

    .portal-footer > p:first-child {
        grid-column: auto;
    }

    .portal-footer nav {
        flex-wrap: wrap;
        gap: 14px 20px;
    }

    .clinician-page__hero {
        padding: 30px 20px;
    }

    .clinician-page__hero h1 {
        font-size: 34px;
    }

    .clinician-page__hero > svg {
        display: none;
    }

    .clinician-tools__heading {
        flex-direction: column;
    }

    .clinician-filter-form {
        grid-template-columns: 1fr;
    }

    .clinician-filter-form__search {
        grid-column: auto;
    }

    .clinician-disclosure-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .portal-brand--link .portal-brand__logo {
        width: 40px;
        height: 40px;
        font-size: 21px;
    }

    .portal-brand__name {
        font-size: 17px;
    }

    .home-pathway-card {
        min-height: 230px;
    }

    .home-panel__heading-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
