/* Fonts, design tokens, and foundations */
@font-face {
    font-family: "myriad-pro";
    src: url("https://use.typekit.net/af/cafa63/00000000000000000001709a/27/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff2"), url("https://use.typekit.net/af/cafa63/00000000000000000001709a/27/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff"), url("https://use.typekit.net/af/cafa63/00000000000000000001709a/27/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("opentype");
    font-display: auto;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "myriad-pro";
    src: url("https://use.typekit.net/af/1b1b1e/00000000000000000001709e/27/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("woff2"), url("https://use.typekit.net/af/1b1b1e/00000000000000000001709e/27/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("woff"), url("https://use.typekit.net/af/1b1b1e/00000000000000000001709e/27/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n7&v=3") format("opentype");
    font-display: auto;
    font-style: normal;
    font-weight: 700;
}

:root {
    --portal-font-sans: "Inter", "Segoe UI", Arial, sans-serif;
    --portal-font-display: Georgia, "Times New Roman", serif;
    --portal-font-accent: "myriad-pro", Arial, sans-serif;
    --portal-navy: #071D49;
    --portal-red: #d6073b;
    --portal-gold: #d8ad62;
    --portal-cream: #F2EADE;
    --portal-cream-soft: #f4efe8;
    --portal-cream-light: #fbf6ee;
    --portal-surface: #ffffff;
    --portal-border: #e5e8ef;
    --portal-muted: #5f6b7d;
    --portal-heading-tracking: 0.1em;
    --portal-success-bg: #e7f5ef;
    --portal-success: #24735b;
    --portal-warning-bg: #fff3df;
    --portal-warning: #9b6114;
    --portal-shadow: 0 16px 40px rgba(7, 29, 73, 0.08);
}

html {
    font-size: 16px;
}

body {
    background: var(--portal-cream);
    color: #1d2735;
    font-family: var(--portal-font-sans);
    letter-spacing: 0;
    padding-top: 50px;
}

a {
    color: var(--portal-navy);
}

a:hover {
    color: var(--portal-red);
}

.body-content {
    margin-top: 0;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 28px;
    padding-bottom: 48px;
}

.fas {
    font-size: 60px;
}

.fas.toggle {
    font-size: 12px;
}

.btn {
    font-family: var(--portal-font-accent);
    font-weight: 700;
    margin: 2px;
    text-transform: uppercase;
}

input,
select {
    max-width: 280px;
}

.popover {
    background: var(--portal-gold);
}

.popover .arrow::after {
    border-left-color: var(--portal-gold);
}

.validation-summary-errors {
    background-color: rgba(255, 0, 0, 0.25);
    border-radius: 5px;
    color: darkred;
    font-weight: 700;
}

.validation-summary-errors ul {
    list-style-type: none;
}

/* Global navigation */
#masthead.portal-masthead {
    background: var(--portal-surface);
    border-bottom: 1px solid var(--portal-border);
    box-shadow: 0 8px 24px rgba(7, 29, 73, 0.08);
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100;
}

#masthead ul {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

#masthead ul li::before {
    content: none;
}

#masthead #header-main {
    height: 76px;
    margin-top: 0;
    background: var(--portal-surface);
}

#masthead #header-main .portal-header-container {
    height: 76px;
}

.portal-header-row {
    align-items: center;
    display: flex;
    gap: 28px;
    height: 76px;
}

#masthead .site-logo {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    padding-top: 0;
}

#masthead .site-logo img {
    height: 40px;
    padding-right: 0;
    width: auto;
}

#masthead #main-menu {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    font-size: 14px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    position: static;
}

#masthead #main-menu > li {
    float: none;
    position: relative;
}

#masthead #main-menu a:hover {
    text-decoration: none;
}

#masthead #main-menu > li:after {
    content: none;
}

#masthead #main-menu > li > a {
    border-bottom: 3px solid transparent;
    color: var(--portal-navy);
    display: block;
    float: none;
    height: 76px;
    line-height: 76px;
    margin: 0;
    padding: 0 14px;
}

#masthead #main-menu > li:hover > a,
#masthead #main-menu > li.active > a {
    background: transparent;
    border-bottom-color: var(--portal-navy);
    color: var(--portal-navy);
}

#masthead #menu-toggle {
    display: none;
}

#masthead #menu-toggle .b {
    background: #000;
    display: block;
    height: 2px;
    margin: 5px 0;
    position: relative;
    width: 31px;
}

#masthead #menu-toggle .b1,
#masthead #menu-toggle .b3 {
    top: 0;
    transform: rotate(0deg);
    transition: transform 0.25s ease, top 0.25s ease;
}

#masthead #menu-toggle .b2 {
    left: 0;
    transition: width 0.25s ease, left 0.25s ease;
}

#masthead #topbar.portal-user-region {
    background: transparent;
    flex: 0 0 auto;
    height: auto;
    left: auto;
    overflow: visible;
    padding: 0;
    position: static;
    right: auto;
    text-align: left;
    top: auto;
}

.portal-user-nav {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.portal-user-link {
    align-items: center;
    color: var(--portal-navy) !important;
    display: flex;
    gap: 10px;
    padding: 0 !important;
}

.portal-user-avatar {
    align-items: center;
    background: var(--portal-cream-soft);
    border: 1px solid #eadfd1;
    border-radius: 50%;
    color: var(--portal-navy);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.portal-user-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    max-width: 180px;
}

.portal-user-greeting {
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-user-meta {
    color: var(--portal-muted);
    font-size: 12px;
}

.portal-login-btn,
.portal-logout-btn,
.portal-primary-btn,
.btn-primary,
.btn-success {
    background: var(--portal-navy);
    border-color: var(--portal-navy);
    border-radius: 4px;
    color: #fff !important;
    font-weight: 800;
}

.portal-login-btn,
.portal-logout-btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 40px;
    min-width: 108px;
    padding-bottom: 8px;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 8px;
}

.portal-login-btn:hover,
.portal-logout-btn:hover,
.portal-primary-btn:hover,
.btn-primary:hover,
.btn-success:hover {
    background: var(--portal-navy);
    border-color: var(--portal-navy);
    color: #fff !important;
}

.btn-outline-secondary {
    border-color: #cbd3df;
    color: var(--portal-navy);
    font-weight: 700;
}

.btn-outline-secondary:hover {
    background: #eef2f7;
    border-color: #cbd3df;
    color: var(--portal-navy);
}

.inherit-color {
    background: var(--portal-surface);
    height: 76px;
    margin-bottom: 0;
}

.dashboard-page {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -28px;
}

/* Home dashboard */
.home-hero {
    min-height: 318px;
    overflow: hidden;
}

.home-hero-carousel .carousel-inner,
.home-hero-carousel .carousel-item,
.home-hero-slide {
    height: 318px;
    min-height: 318px;
}

.home-hero-inner {
    align-items: center;
    display: flex;
    min-height: 318px;
}

.home-hero-photo-slide {
    background-position: center right;
    background-repeat: no-repeat;
    background-size: cover;
}

.home-hero-main-slide {
    background-image: linear-gradient(90deg, rgba(247, 243, 237, 0.98) 0%, rgba(247, 243, 237, 0.82) 34%, rgba(247, 243, 237, 0.24) 68%), url("https://chministries.org/wp-content/uploads/2024/10/fall-banner-2.jpg");
}

.home-hero-vcs-slide {
    background-image: linear-gradient(90deg, rgba(247, 243, 237, 0.98) 0%, rgba(247, 243, 237, 0.86) 35%, rgba(247, 243, 237, 0.22) 70%), url("../images/vcs-hero-banner-optimized.jpg");
}

.home-hero-care-slide {
    background-image: linear-gradient(90deg, rgba(247, 243, 237, 0.98) 0%, rgba(247, 243, 237, 0.86) 35%, rgba(247, 243, 237, 0.2) 72%), url("../images/care-solutions-hero-banner-optimized.jpg");
    background-position: center 18%;
}

.home-hero-announcement-slide {
    background-color: #faf9f7;
    background-image: url("../images/new-year-same-prices-carousel.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.home-carousel-control {
    bottom: auto;
    height: 48px;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
}

.home-carousel-control .carousel-control-prev-icon,
.home-carousel-control .carousel-control-next-icon {
    background-color: rgba(7, 29, 73, 0.88);
    background-size: 50% 50%;
    border-radius: 50%;
    height: 42px;
    width: 42px;
}

.home-hero-carousel .carousel-indicators {
    bottom: 12px;
}

.home-hero-carousel .carousel-indicators li {
    background-color: var(--portal-navy);
    border-radius: 50%;
    height: 9px;
    opacity: 0.35;
    width: 9px;
}

.home-hero-carousel .carousel-indicators .active {
    opacity: 1;
}

.home-hero-content {
    max-width: 460px;
    padding: 46px 0;
}

.page-kicker {
    color: var(--portal-navy);
    display: block;
    font-family: var(--portal-font-accent);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.home-hero h1 {
    color: var(--portal-navy);
    font-family: var(--portal-font-display);
    font-size: 46px;
    font-weight: 500;
    line-height: 1.05;
    margin: 0 0 16px;
}

.home-hero h1 {
    display: inline-block;
}

.home-hero h1:after {
    background: var(--portal-red);
    content: "";
    display: block;
    height: 2px;
    margin-top: 16px;
    width: 100%;
}

.home-hero p,
.portal-info-panel p {
    color: #344054;
    line-height: 1.65;
}

/* Shared portal components */
.portal-section {
    margin: 24px auto 0;
    max-width: 1180px;
    padding: 0 15px;
}

.section-title {
    color: var(--portal-navy);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.quick-actions {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.dashboard-action-card,
.portal-info-panel {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    box-shadow: var(--portal-shadow);
}

.dashboard-action-card {
    color: var(--portal-navy);
    display: grid;
    gap: 7px;
    min-height: 104px;
    padding: 18px;
    text-decoration: none;
}

.dashboard-action-card:hover {
    border-color: #cbd7ea;
    color: var(--portal-navy);
    text-decoration: none;
    transform: translateY(-1px);
}

.dashboard-action-icon {
    display: block;
    height: 44px;
    object-fit: contain;
    object-position: left center;
    width: 44px;
}

.dashboard-action-card span,
.portal-info-panel h2 {
    color: var(--portal-navy);
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
}

.dashboard-action-card small {
    color: var(--portal-muted);
    line-height: 1.35;
}

.portal-dashboard-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.public-home-grid {
    align-items: stretch;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
}

.public-home-grid .quick-actions {
    height: calc(100% - 28px);
}

.public-home-grid .dashboard-action-card,
.public-home-grid .portal-info-panel {
    min-height: 168px;
}

.public-home-grid .dashboard-action-card {
    display: block;
    padding: 22px;
}

.public-home-grid .dashboard-action-icon {
    display: none;
}

.public-home-grid .dashboard-action-card span {
    display: block;
    letter-spacing: var(--portal-heading-tracking);
    margin: 0 0 16px;
}

.public-home-grid .dashboard-action-card small {
    color: #344054;
    display: block;
    font-size: 16px;
    line-height: 1.65;
}

.public-home-spacer {
    visibility: hidden;
}

.portal-info-panel {
    padding: 22px;
}

.portal-info-panel h2 {
    letter-spacing: var(--portal-heading-tracking);
    margin: 0 0 16px;
}

.overview-items {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.overview-items > div {
    padding: 10px 20px 10px 0;
}

.overview-items > div:last-child {
    padding-right: 0;
}

.overview-items span {
    color: var(--portal-muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.overview-items strong {
    color: var(--portal-navy);
    display: block;
    font-size: 19px;
    line-height: 1.25;
}

.portal-text-link {
    font-weight: 900;
    text-decoration: none;
}

.page-breadcrumb {
    color: #33415c;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-breadcrumb span {
    color: var(--portal-muted);
    padding: 0 7px;
}

#side-nav li {
    float: none;
    margin: 0;
}

.menu-option {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--portal-navy);
    display: flex;
    font-weight: 800;
    gap: 10px;
    justify-content: flex-start;
    margin-bottom: 6px;
    padding: 11px 12px;
    text-align: left;
    text-decoration: none;
    white-space: normal;
}

.menu-option:hover {
    background: #f8fafc;
    color: var(--portal-navy);
}

.menu-option-selected {
    background: #fff7ed;
    border-color: #efd8b8;
    color: var(--portal-navy);
}

.portal-card-toolbar {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.portal-search-form {
    display: flex;
    flex: 1 1 auto;
    gap: 12px;
}

.portal-search-field {
    flex: 1 1 320px;
    position: relative;
}

.portal-search-field i {
    color: #8a97aa;
    left: 13px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.portal-search-field .form-control {
    padding-left: 38px;
    width: 100%;
}

.form-control {
    border: 1px solid #d8dee9;
    border-radius: 6px;
    min-height: 42px;
}

.form-control:focus {
    border-color: #9eb2d5;
    box-shadow: 0 0 0 0.2rem rgba(7, 29, 73, 0.12);
}

.portal-table,
.table {
    color: #1f2937;
    margin-bottom: 0;
}

.portal-table th,
.portal-table td,
.table th,
.table td {
    border-top: 1px solid #edf0f4;
    padding: 14px 16px;
    vertical-align: middle;
}

.groups-table-header {
    background: var(--portal-navy);
    color: #fff;
}

.groups-table-header th {
    border-top: 0;
    font-size: 13px;
    font-weight: 900;
}

.groups-table-header th:first-child {
    border-top-left-radius: 6px;
}

.groups-table-header th:last-child {
    border-top-right-radius: 6px;
}

.groups-table-primary {
    background-color: #fff;
}

.groups-table-primary:nth-child(even) {
    background-color: #fbfcfe;
}

.portal-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--portal-navy);
    cursor: pointer;
    display: inline-flex;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.portal-toggle i {
    font-size: 14px;
    line-height: 1;
}

.need-badge {
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    white-space: nowrap;
}

.need-badge-warning {
    background: var(--portal-warning-bg);
    color: var(--portal-warning);
}

.need-badge-success {
    background: var(--portal-success-bg);
    color: var(--portal-success);
}

.portal-pagination {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-top: 18px;
}

.portal-pagination-summary {
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.portal-pagination-pages {
    align-items: center;
    display: flex;
    gap: 8px;
}

.portal-page-link,
.portal-page-ellipsis {
    align-items: center;
    border: 1px solid #d8dee9;
    border-radius: 6px;
    color: var(--portal-navy);
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    height: 36px;
    justify-content: center;
    min-width: 36px;
    padding: 0 10px;
    text-decoration: none;
}

.portal-page-link:hover {
    background: #f8fafc;
    color: var(--portal-navy);
    text-decoration: none;
}

.portal-page-link.active {
    background: var(--portal-navy);
    border-color: var(--portal-navy);
    color: #fff;
}

.portal-page-link.disabled {
    color: #98a2b3;
    pointer-events: none;
}

.portal-page-ellipsis {
    border-color: transparent;
    color: var(--portal-muted);
    min-width: 24px;
    padding: 0 4px;
}

.portal-page-size-form .form-control {
    min-height: 36px;
    min-width: 130px;
}

/* Administration tables */
.admin-table {
    color: #1f2937;
    margin-bottom: 0;
}

.admin-table th {
    border-top: 0;
    border-bottom: 1px solid #d8dee9;
    color: var(--portal-navy);
    font-size: 13px;
    font-weight: 900;
    padding: 16px;
    white-space: nowrap;
}

.admin-table th i {
    color: #7a8699;
    font-size: 12px;
    margin-left: 4px;
}

.admin-table td {
    border-top: 1px solid #edf0f4;
    padding: 18px 16px;
    vertical-align: middle;
}

.admin-index-table {
    table-layout: auto;
    width: 100%;
}

.admin-index-table th {
    white-space: nowrap;
}

.admin-index-table td {
    overflow-wrap: normal;
    word-break: normal;
}

.admin-index-table th:nth-child(1),
.admin-index-table td:nth-child(1) {
    width: 12%;
}

.admin-index-table th:nth-child(2),
.admin-index-table td:nth-child(2) {
    width: 27%;
    overflow-wrap: anywhere;
}

.admin-index-table th:nth-child(3),
.admin-index-table td:nth-child(3) {
    width: 20%;
    overflow-wrap: break-word;
}

.admin-index-table th:nth-child(4),
.admin-index-table td:nth-child(4) {
    white-space: nowrap;
    width: 15%;
}

.admin-index-table th:nth-child(5),
.admin-index-table td:nth-child(5) {
    white-space: nowrap;
    width: 8%;
}

.admin-index-table th:nth-child(6),
.admin-index-table td:nth-child(6) {
    white-space: nowrap;
    width: 7%;
}

.admin-index-table th:nth-child(7),
.admin-index-table td:nth-child(7) {
    white-space: nowrap;
    width: 11%;
}

.admin-index-table .account-action-button {
    flex-wrap: nowrap;
    font-size: 12px;
    gap: 5px;
    min-width: 78px;
    padding: 6px 8px;
    white-space: nowrap;
    width: auto;
}

.admin-index-table .account-action-button span {
    white-space: nowrap;
}

.admin-index-table form {
    margin: 0;
}

.account-status-badge {
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
}

.account-status-active {
    background: var(--portal-success-bg);
    color: var(--portal-success);
}

.account-status-disabled {
    background: #eef1f5;
    color: #475467;
}

.account-action-button {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
    min-width: 112px;
}

.account-action-danger {
    background: #fff;
    border: 1px solid var(--portal-red);
    color: var(--portal-red);
}

.account-action-danger:hover {
    background: #fff1f4;
    color: var(--portal-red);
}

.account-action-disabled {
    background: #fff;
    border: 1px solid #d8dee9;
    color: #7a8699;
}

.empty-state {
    align-items: center;
    color: #475467;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 40px;
    text-align: center;
}

.empty-state i {
    color: var(--portal-navy);
    font-size: 34px;
}

/* Shared internal page heroes */
.portal-page-hero {
    align-items: center;
    display: flex;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 26px;
    min-height: 175px;
}

.portal-page-hero--divided {
    border-bottom: 1px solid var(--portal-border);
    padding-bottom: 8px;
}

.portal-page-hero-content {
    max-width: 680px;
}

.portal-page-hero h1 {
    color: var(--portal-navy);
    display: inline-block;
    font-family: var(--portal-font-display);
    font-size: 42px;
    font-weight: 500;
    line-height: 1.05;
    margin: 0 0 18px;
}

.portal-page-hero h1::after {
    background: var(--portal-red);
    content: "";
    display: block;
    height: 2px;
    margin-top: 16px;
    width: 100%;
}

.portal-page-hero p {
    color: #344054;
    line-height: 1.65;
    margin-bottom: 0;
}

.portal-page-hero-illustration {
    align-items: flex-end;
    color: var(--portal-navy);
    display: flex;
    flex: 0 0 330px;
    height: 152px;
    justify-content: center;
    position: relative;
}

/* Manage administrators */
.manage-admin-page {
    margin: 0 auto;
    max-width: 1180px;
}

.manage-admin-hero {
    min-height: 180px;
}

.manage-admin-illustration {
    background: radial-gradient(circle at 55% 48%, #f3eadc 0 38%, transparent 39%);
    flex: 0 0 380px;
    height: 155px;
}

.manage-admin-brand-icon {
    background-color: var(--portal-navy);
    height: 120px;
    margin-bottom: 22px;
    -webkit-mask: url("../images/icons/hero-admins.svg") center / contain no-repeat;
    mask: url("../images/icons/hero-admins.svg") center / contain no-repeat;
    position: relative;
    width: 230px;
    z-index: 1;
}

.admin-management-card {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    box-shadow: var(--portal-shadow);
    margin-bottom: 24px;
    padding: 28px;
}

.admin-card-heading,
.admin-card-title {
    align-items: center;
    display: flex;
    gap: 16px;
}

.admin-card-heading {
    margin-bottom: 20px;
}

.admin-card-heading-with-action {
    justify-content: space-between;
}

.admin-card-icon {
    align-items: center;
    background: #eef4fd;
    border-radius: 50%;
    color: var(--portal-navy);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 28px;
    height: 56px;
    justify-content: center;
    width: 56px;
}

.admin-card-heading h2 {
    color: var(--portal-navy);
    font-size: 22px;
    font-weight: 900;
    margin: 0;
}

.admin-list-toolbar {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

.admin-list-toolbar .portal-search-field {
    flex: 1 1 auto;
}

.admin-create-form {
    margin: 0;
}

.admin-create-grid {
    display: grid;
    gap: 20px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-create-grid label {
    color: var(--portal-navy);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 8px;
}

.admin-create-grid label span {
    color: var(--portal-red);
}

.admin-create-actions {
    margin-top: 22px;
}

.admin-create-actions .portal-primary-btn {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    padding: 12px 22px;
}

.admin-status-message {
    color: var(--portal-success);
    font-weight: 800;
}

/* Contact */
.contact-page {
    margin: 0 auto;
    max-width: 1180px;
}

.contact-illustration {
    background: radial-gradient(circle at 58% 48%, #f3eadc 0 38%, transparent 39%);
    height: 150px;
}

.contact-brand-icon {
    background-color: var(--portal-navy);
    height: 112px;
    margin-bottom: 20px;
    -webkit-mask: url("../images/icons/hero-contact.svg") center / contain no-repeat;
    mask: url("../images/icons/hero-contact.svg") center / contain no-repeat;
    position: relative;
    width: 150px;
    z-index: 1;
}

.contact-card {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    box-shadow: var(--portal-shadow);
    display: grid;
    gap: 38px;
    grid-template-columns: minmax(0, 1fr) 300px;
    margin-bottom: 22px;
    padding: 28px;
}

.contact-form-grid {
    display: grid;
    gap: 20px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form-grid label {
    color: var(--portal-navy);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 8px;
}

.contact-form-grid label span {
    color: var(--portal-red);
}

.contact-input-icon {
    position: relative;
}

.contact-input-icon i {
    color: var(--portal-navy);
    left: 14px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.contact-input-icon .form-control {
    padding-left: 42px;
}

.contact-message-field {
    grid-column: 1 / -1;
}

.contact-textarea-icon i {
    top: 18px;
    transform: none;
}

.contact-textarea-icon textarea.form-control {
    min-height: 120px;
    padding-top: 14px;
}

#counterText {
    color: #667085;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
}

.contact-actions {
    align-items: center;
    display: flex;
    gap: 28px;
    margin-top: 22px;
}

.contact-actions .portal-primary-btn {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    padding: 12px 22px;
}

.contact-cancel-link {
    color: var(--portal-navy);
    font-weight: 800;
    text-decoration: none;
}

.contact-help-card {
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(7, 29, 73, 0.06);
    padding: 26px;
}

.contact-help-icon {
    align-items: center;
    background: var(--portal-cream-soft);
    border-radius: 50%;
    color: var(--portal-navy);
    display: inline-flex;
    font-size: 34px;
    height: 64px;
    justify-content: center;
    margin-bottom: 22px;
    width: 64px;
}

.contact-help-card h2 {
    color: var(--portal-navy);
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 12px;
}

.contact-help-card p {
    color: #344054;
    line-height: 1.65;
    margin-bottom: 24px;
}

.contact-help-card ul {
    display: grid;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-help-card li {
    align-items: center;
    color: var(--portal-navy);
    display: flex;
    font-weight: 800;
    gap: 12px;
}

.contact-resources-strip {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #efd8b8;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 20px 24px;
}

.billing-page {
    margin: 0 auto;
    max-width: 1040px;
}

.billing-notice p {
    color: #344054;
    line-height: 1.65;
    margin-bottom: 0;
}

.billing-illustration {
    background: radial-gradient(circle at 62% 42%, #f3eadc 0 34%, transparent 35%);
}

.billing-brand-icon {
    background-color: var(--portal-navy);
    height: 112px;
    margin-bottom: 20px;
    -webkit-mask: url("../images/icons/hero-billing.svg") center / contain no-repeat;
    mask: url("../images/icons/hero-billing.svg") center / contain no-repeat;
    position: relative;
    width: 166px;
    z-index: 1;
}

.billing-action-panel {
    align-items: center;
    background: var(--portal-navy);
    border-radius: 8px;
    box-shadow: var(--portal-shadow);
    color: #fff;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto 20px;
    margin-bottom: 24px;
    padding: 28px 30px 20px;
}

.billing-action-main {
    align-items: center;
    display: flex;
    gap: 18px;
}

.billing-action-icon {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    color: var(--portal-navy);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 34px;
    height: 68px;
    justify-content: center;
    width: 68px;
}

.billing-action-panel h2 {
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    margin: 0 0 8px;
}

.billing-action-panel p {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    margin: 0;
    max-width: 420px;
}

.billing-action-button {
    background: #fff;
    border: 0;
    border-radius: 5px;
    color: var(--portal-navy) !important;
    font-weight: 900;
    padding: 13px 22px;
    white-space: nowrap;
}

.billing-action-button:hover {
    background: #f3f6fb;
    color: var(--portal-navy) !important;
}

.billing-give-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    max-width: 430px;
}

.billing-give-panel-actions .billing-action-button {
    min-width: 185px;
    text-align: center;
}

.billing-action-chevron {
    color: #fff;
    font-size: 24px;
}

.billing-action-footnote {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 10px;
    grid-column: 1 / -1;
    padding-top: 16px;
}

.billing-give-footnote {
    align-items: flex-start;
}

.billing-notice {
    align-items: flex-start;
    background: var(--portal-surface);
    border: 1px solid #cfe0f6;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(7, 29, 73, 0.04);
    display: flex;
    gap: 24px;
    margin-bottom: 18px;
    padding: 26px 30px;
}

.billing-notice-icon {
    align-items: center;
    background: #f3f7fc;
    border-radius: 50%;
    color: var(--portal-navy);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 30px;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.billing-notice h2 {
    color: var(--portal-navy);
    font-size: 17px;
    font-weight: 900;
    margin: 0 0 8px;
}

.members-page {
    margin: 0 auto;
    max-width: 1280px;
}

.members-illustration {
    background: radial-gradient(circle at 58% 48%, #f3eadc 0 38%, transparent 39%);
}

.members-brand-icon {
    background-color: var(--portal-navy);
    height: 112px;
    margin-bottom: 20px;
    -webkit-mask: url("../images/icons/hero-members.svg") center / contain no-repeat;
    mask: url("../images/icons/hero-members.svg") center / contain no-repeat;
    position: relative;
    width: 190px;
    z-index: 1;
}

.members-panel {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    box-shadow: var(--portal-shadow);
    padding: 24px;
}

.members-table th:first-child,
.members-table td:first-child {
    text-align: center;
    width: 58px;
}

.members-table th:nth-child(2),
.members-table td:nth-child(2) {
    width: 18%;
}

.members-table th:nth-child(5),
.members-table td:nth-child(5) {
    width: 22%;
}

.member-detail-row > td {
    background: #fff;
    border-top: 0;
    padding: 0 12px 14px;
}

.member-detail-panel {
    background: #f8fbff;
    border: 1px solid #cbdaf2;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 18px;
}

.member-detail-heading {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.member-detail-icon,
.member-person-icon {
    align-items: center;
    background: #eef4ff;
    border-radius: 50%;
    color: var(--portal-navy);
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
}

.member-detail-icon {
    font-size: 20px;
    height: 44px;
    width: 44px;
}

.member-detail-heading h2 {
    color: var(--portal-navy);
    font-size: 16px;
    font-weight: 900;
    margin: 0 0 2px;
}

.member-detail-heading p {
    color: #475467;
    font-size: 13px;
    margin: 0;
}

.member-detail-table {
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 6px;
    overflow: hidden;
}

.member-detail-table th,
.member-detail-table td {
    font-size: 13px;
    padding: 10px 14px;
}

.member-detail-table thead th {
    background: #f2f6fc;
    border-top: 0;
    color: var(--portal-navy);
    font-weight: 900;
}

.member-person-icon {
    font-size: 12px;
    height: 24px;
    width: 24px;
}

.recent-applications-panel .portal-search-form {
    max-width: 720px;
}

.recent-applications-search {
    flex-basis: 520px;
    min-width: 520px;
}

.applications-table th:first-child,
.applications-table td:first-child {
    text-align: center;
    padding-left: 8px;
    padding-right: 8px;
    width: 44px;
}

.application-detail-row .member-detail-table th:first-child,
.application-detail-row .member-detail-table td:first-child {
    padding-left: 12px;
    padding-right: 8px;
    text-align: center;
    width: 44px;
}

.applicant-detail-table {
    table-layout: fixed;
}

.applicant-detail-table .applicant-icon-column {
    width: 44px;
}

.applicant-detail-table .applicant-name-column {
    width: 145px;
}

.applicant-detail-table .applicant-level-column {
    width: 190px;
}

.applicant-detail-table .applicant-spacer-column {
    width: auto;
}

.applicant-detail-table th:first-child,
.applicant-detail-table td:first-child {
    padding-left: 8px;
    padding-right: 8px;
}

.applicant-detail-table th:last-child,
.applicant-detail-table td:last-child {
    padding-left: 0;
    padding-right: 0;
}

.applications-table th:nth-child(2),
.applications-table td:nth-child(2) {
    width: 13%;
}

.applications-table th:nth-child(3),
.applications-table td:nth-child(3),
.applications-table th:nth-child(4),
.applications-table td:nth-child(4) {
    width: 17%;
}

.applications-table th:nth-child(5),
.applications-table td:nth-child(5) {
    width: 24%;
}

.applications-table th:nth-child(6),
.applications-table td:nth-child(6),
.applications-table th:nth-child(7),
.applications-table td:nth-child(7) {
    width: 11%;
}

/* Resources */
.resources-page {
    margin: 0 auto;
    max-width: 1280px;
}

.resources-section > p,
.resources-support-strip p {
    color: #344054;
    line-height: 1.65;
    margin-bottom: 0;
}

.resources-hero p {
    font-size: 18px;
}

.resources-illustration {
    background: radial-gradient(circle at 58% 45%, #f3eadc 0 38%, transparent 39%);
}

.resources-brand-icon {
    background-color: var(--portal-navy);
    height: 112px;
    margin-bottom: 18px;
    -webkit-mask: url("../images/icons/hero-resources.svg") center / contain no-repeat;
    mask: url("../images/icons/hero-resources.svg") center / contain no-repeat;
    position: relative;
    width: 160px;
    z-index: 1;
}

.resources-section {
    margin-bottom: 24px;
}

.resources-section h2 {
    color: var(--portal-navy);
    font-size: 20px;
    font-weight: 900;
    margin: 0 0 6px;
}

.resources-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
}

.resource-card {
    align-items: flex-start;
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(7, 29, 73, 0.06);
    color: var(--portal-navy);
    display: flex;
    gap: 22px;
    min-height: 170px;
    padding: 28px 26px;
    text-decoration: none;
}

.resource-card:hover {
    border-color: #cbd7ea;
    color: var(--portal-navy);
    text-decoration: none;
    transform: translateY(-1px);
}

.resource-card-icon {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    height: 72px;
    justify-content: center;
    width: 72px;
}

.resource-card-icon img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.resource-card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.resource-card-content strong {
    color: var(--portal-navy);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 12px;
}

.resource-card-content small {
    color: #475467;
    line-height: 1.45;
    margin-bottom: 24px;
}

.resource-card-content span {
    color: var(--portal-navy);
    font-size: 13px;
    font-weight: 900;
    margin-top: auto;
}

.resource-task-card,
.resource-table-card {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(7, 29, 73, 0.06);
    margin-top: 22px;
    padding: 28px;
}

.resource-form {
    margin: 0;
}

.resource-form-grid {
    display: grid;
    gap: 20px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-settings-grid {
    align-items: end;
}

.account-password-toggle {
    align-items: end;
    display: flex;
    margin-bottom: 0;
}

.account-checkbox-option {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    color: var(--portal-navy);
    cursor: pointer;
    display: inline-flex;
    gap: 10px;
    margin: 0;
    min-height: 42px;
    padding: 10px 12px;
}

.account-checkbox-option input {
    height: 16px;
    margin: 0;
    width: 16px;
}

.account-password-panel {
    background: #f8fafc;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    margin-top: 18px;
    max-width: 820px;
    padding: 20px;
}

.account-password-current {
    max-width: 360px;
}

.account-password-pair {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.resource-form label {
    color: var(--portal-navy);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 8px;
}

.resource-form-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.resource-form-actions .btn {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.resource-editor {
    background: #fff;
    margin-top: 20px;
}

.resource-editor .ql-container,
.resource-editor #editor {
    min-height: 180px;
}

.resource-tools-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.resource-tabs {
    margin: 0 0 24px;
}

.resource-tools-strip a {
    align-items: center;
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    color: var(--portal-navy);
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    padding: 12px 14px;
    text-decoration: none;
}

.resource-tools-strip a:hover {
    background: #f8fafc;
    text-decoration: none;
}

.resource-tools-strip a.menu-option-selected {
    background: #fff7ed;
    border-color: #efd8b8;
    color: var(--portal-navy);
}

.resources-support-strip {
    align-items: center;
    background: #f3f8ff;
    border: 1px solid #cfe0f6;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 20px 24px;
}

.resources-support-content {
    align-items: center;
    display: flex;
    gap: 18px;
}

.resources-support-content > i {
    color: var(--portal-navy);
    font-size: 36px;
}

.resources-support-strip h2 {
    color: var(--portal-navy);
    font-size: 16px;
    font-weight: 900;
    margin: 0 0 4px;
}

.resources-support-button {
    background: var(--portal-navy);
    border: 0;
    border-radius: 5px;
    color: #fff !important;
    font-weight: 900;
    padding: 13px 22px;
    white-space: nowrap;
}

.resources-support-button:hover {
    background: var(--portal-navy);
    color: #fff !important;
}

/* Providers */
.providers-page {
    margin: 0 auto;
    max-width: 940px;
}

.providers-hero {
    align-items: center;
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
}

.providers-heading-icon {
    align-items: center;
    background: #eef4fd;
    border-radius: 50%;
    color: var(--portal-navy);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 36px;
    height: 72px;
    justify-content: center;
    width: 72px;
}

.providers-brand-icon {
    background-color: var(--portal-navy);
    display: block;
    height: 48px;
    -webkit-mask: url("../images/icons/hero-providers.svg") center / contain no-repeat;
    mask: url("../images/icons/hero-providers.svg") center / contain no-repeat;
    width: 48px;
}

.providers-hero h1 {
    color: var(--portal-navy);
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 6px;
}

.providers-hero p {
    color: #344054;
    font-size: 16px;
    font-weight: 800;
    margin: 0;
}

.providers-intro {
    color: #344054;
    line-height: 1.55;
    margin-bottom: 18px;
}

.providers-intro p {
    margin: 0 0 10px;
}

.providers-intro p:first-child {
    color: var(--portal-navy);
    font-weight: 800;
}

.providers-alert {
    align-items: flex-start;
    background: #f3f8ff;
    border: 1px solid #cfe0f6;
    border-radius: 8px;
    color: var(--portal-navy);
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 18px;
}

.providers-alert i {
    font-size: 22px;
    margin-top: 2px;
}

.providers-alert p {
    font-weight: 800;
    line-height: 1.45;
    margin: 0;
}

.providers-search-card {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    box-shadow: var(--portal-shadow);
    margin-bottom: 20px;
    padding: 22px;
}

.providers-search-grid {
    display: grid;
    gap: 18px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.providers-search-card label {
    color: var(--portal-navy);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 8px;
}

.providers-search-button {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    margin-top: 16px;
}

.providers-results {
    display: grid;
    gap: 16px;
}

.provider-result-card {
    background: var(--portal-cream-light);
    border: 1px solid #eadcca;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(7, 29, 73, 0.05);
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.58fr);
    padding: 22px 24px;
}

.provider-specialization {
    color: #344054;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 4px;
}

.provider-result-main h2 {
    color: var(--portal-navy);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 8px;
}

.provider-result-main address {
    color: #1f2937;
    display: grid;
    font-style: normal;
    line-height: 1.45;
    margin: 0 0 10px;
}

.provider-link,
.provider-phone-link {
    color: var(--portal-red);
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.provider-phone-link {
    margin-top: 8px;
}

.provider-link:hover,
.provider-phone-link:hover {
    color: var(--portal-navy);
    text-decoration: none;
}

.provider-result-meta {
    border-left: 1px solid #d9c9b4;
    color: #1f2937;
    padding-left: 24px;
}

.provider-flags {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.provider-flags i {
    color: var(--portal-navy);
    margin-right: 8px;
}

.provider-details-list {
    border-top: 1px solid #d9c9b4;
    display: grid;
    gap: 2px;
    margin: 0;
    padding-top: 12px;
}

.provider-details-list dt {
    color: var(--portal-navy);
    font-size: 13px;
    font-weight: 900;
}

.provider-details-list dd {
    color: #1f2937;
    font-size: 12px;
    line-height: 1.4;
    margin: 0 0 8px;
}

.providers-pagination {
    justify-content: center;
}

/* Authentication */
.login-page {
    align-items: center;
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1fr);
    margin: 0 auto;
    max-width: 1080px;
    min-height: 560px;
    padding: 28px 0 36px;
}

.login-welcome {
    display: grid;
    gap: 44px;
}

.login-welcome-content h1 {
    color: var(--portal-navy);
    display: inline-block;
    font-family: var(--portal-font-display);
    font-size: 42px;
    font-weight: 500;
    line-height: 1.05;
    margin: 0 0 14px;
}

.login-welcome-content h1:after {
    background: var(--portal-red);
    content: "";
    display: block;
    height: 2px;
    margin-top: 18px;
    width: 100%;
}

.login-welcome-content p {
    color: #344054;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.login-illustration {
    align-items: flex-end;
    color: var(--portal-navy);
    display: flex;
    height: 170px;
    justify-content: center;
    max-width: 430px;
    position: relative;
}

.login-laptop {
    align-items: center;
    border: 3px solid var(--portal-navy);
    border-radius: 8px 8px 2px 2px;
    display: flex;
    height: 112px;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    width: 190px;
    z-index: 1;
}

.login-laptop:after {
    background: var(--portal-cream);
    border: 3px solid var(--portal-navy);
    border-radius: 0 0 10px 10px;
    bottom: -15px;
    content: "";
    height: 15px;
    left: -14px;
    position: absolute;
    width: 218px;
}

.login-laptop i {
    align-items: center;
    background: var(--portal-cream-soft);
    border: 2px solid var(--portal-gold);
    border-radius: 8px;
    color: var(--portal-navy);
    display: inline-flex;
    font-size: 28px;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.login-mug {
    color: var(--portal-navy);
    font-size: 52px;
    margin-bottom: 22px;
    margin-left: 18px;
    position: relative;
    z-index: 1;
}

.login-brand-icon {
    background-color: var(--portal-navy);
    height: 126px;
    margin-bottom: 24px;
    -webkit-mask: url("../images/icons/hero-login.svg") center / contain no-repeat;
    mask: url("../images/icons/hero-login.svg") center / contain no-repeat;
    position: relative;
    width: 190px;
    z-index: 1;
}

.login-brand-icon--password {
    -webkit-mask-image: url("../images/icons/hero-password-help.svg");
    mask-image: url("../images/icons/hero-password-help.svg");
}

.login-brand-icon--email {
    -webkit-mask-image: url("../images/icons/hero-email-confirmation.svg");
    mask-image: url("../images/icons/hero-email-confirmation.svg");
}

.login-card {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    box-shadow: var(--portal-shadow);
    padding: 42px 42px 36px;
}

.login-card h2 {
    color: var(--portal-navy);
    font-family: var(--portal-font-display);
    font-size: 34px;
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 10px;
}

.login-card > p {
    color: #475467;
    margin: 0;
}

.login-card hr {
    border-top: 1px solid var(--portal-border);
    margin: 24px 0;
}

.login-card label {
    color: var(--portal-navy);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 8px;
}

.account-recovery-message {
    background: #f4f8ff;
    border: 1px solid #c9dcff;
    border-radius: 8px;
    color: #344054;
    line-height: 1.5;
    margin-bottom: 18px;
    padding: 14px 16px;
}

.account-recovery-message a {
    font-weight: 900;
}

.login-password-field .form-control {
    padding-right: 44px;
}

.login-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #7a8699;
    display: inline-flex;
    height: 100%;
    justify-content: center;
    position: absolute;
    right: 10px;
    top: 0;
    width: 32px;
}

.login-password-toggle:hover {
    color: var(--portal-navy);
}

.login-remember-row {
    margin: 10px 0 18px;
}

.login-remember-row label {
    align-items: center;
    color: #344054;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    gap: 8px;
    margin: 0;
}

.login-submit {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    min-height: 46px;
    width: 100%;
}

.login-divider {
    align-items: center;
    color: #7a8699;
    display: flex;
    gap: 14px;
    margin: 26px 0 20px;
}

.login-divider:before,
.login-divider:after {
    background: var(--portal-border);
    content: "";
    flex: 1;
    height: 1px;
}

.login-divider span {
    font-size: 13px;
}

.login-links {
    display: grid;
    gap: 14px;
}

.login-links a {
    align-items: center;
    display: inline-flex;
    font-weight: 800;
    gap: 10px;
    text-decoration: none;
}

.login-help-strip {
    border-top: 1px solid var(--portal-border);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 18px 15px 0;
    text-align: center;
}

.login-help-strip p {
    color: #344054;
    margin: 0;
}

.login-help-strip a {
    font-weight: 800;
}

.card.option {
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(7, 29, 73, 0.06);
    margin-bottom: 16px;
}

.card.option .card-body {
    align-items: center;
    display: flex;
    gap: 14px;
    min-height: 88px;
}

.card.option i {
    color: var(--portal-navy);
    font-size: 24px;
}

.card.option .card-title {
    color: var(--portal-navy);
    font-size: 16px;
    font-weight: 900;
    margin: 0;
    text-align: left;
}

.card-button {
    display: block;
    text-align: left;
    width: 100%;
}

footer {
    background: var(--portal-navy);
    color: #fff;
    font-family: var(--portal-font-accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 23.33333333px;
    min-height: auto;
    padding: 22px 0;
}

footer a {
    background-color: transparent;
    outline: none;
    text-decoration: none;
}

footer .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer .nav-menu li {
    display: inline-block;
}

footer .nav-menu li::after {
    content: "|";
}

footer .nav-menu li:last-child::after {
    content: none;
}

footer a,
footer .nav-menu li::after {
    color: #fff;
}

.alignleft {
    float: left;
    text-align: left;
}

#side-nav {
    list-style-type: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}

input[type="number"] {
    appearance: textfield;
}

/* Responsive adjustments */
@media screen and (max-width: 1199px) {
    body {
        padding-top: 0;
    }

    #masthead #header-main {
        height: 76px;
        padding: 0;
    }

    #masthead #menu-toggle {
        background: transparent;
        border: 0;
        display: block;
        position: static;
        transform: none;
    }

    #masthead #main-menu {
        background: var(--portal-surface);
        border-left: 1px solid var(--portal-border);
        border-top: 1px solid var(--portal-border);
        bottom: 0;
        display: block;
        font-size: 18px;
        max-width: 360px;
        overflow: auto;
        position: fixed;
        right: -360px;
        text-align: left;
        top: 76px;
        transition: right 0.25s ease;
        width: 100%;
    }

    #masthead #main-menu > li > a {
        border-bottom: 1px solid var(--portal-border);
        float: none;
        height: auto;
        line-height: 1.2;
        padding: 18px 24px;
    }

    .mobile-menu-shown #masthead #main-menu {
        right: 0;
    }

    body #masthead {
        top: 0;
    }

    body #masthead .site-logo .full {
        display: block;
    }

    .portal-header-row {
        gap: 16px;
        justify-content: space-between;
    }

    .portal-user-content {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .body-content {
        padding-top: 18px;
    }

    .home-hero,
    .home-hero-inner,
    .home-hero-carousel .carousel-inner,
    .home-hero-carousel .carousel-item,
    .home-hero-slide {
        min-height: 360px;
        height: 360px;
    }

    .home-hero-photo-slide {
        background-position: center;
    }

    .home-hero-content {
        max-width: 100%;
        padding: 36px 0;
    }

    .home-hero h1 {
        font-size: 34px;
    }

    .mobile-menu-shown #masthead #menu-toggle .b1 {
        top: 7px;
        transform: rotate(-45deg);
    }

    .mobile-menu-shown #masthead #menu-toggle .b2 {
        left: 15px;
        width: 0;
    }

    .mobile-menu-shown #masthead #menu-toggle .b3 {
        top: -7px;
        transform: rotate(45deg);
    }

    .portal-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .public-home-grid {
        grid-template-columns: 1fr;
    }

    .portal-card-toolbar,
    .portal-search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-pagination-pages {
        flex-wrap: wrap;
    }

    .admin-list-toolbar {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
    }

    .admin-list-toolbar .portal-search-field,
    .admin-list-toolbar .form-control {
        width: 100%;
    }

    .admin-list-toolbar .btn {
        width: 100%;
    }

    .portal-page-hero,
    .admin-card-heading-with-action {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-page-hero {
        gap: 18px;
    }

    .portal-page-hero-illustration {
        flex-basis: auto;
        width: 100%;
    }

    .admin-create-grid {
        grid-template-columns: 1fr;
    }

    .admin-card-heading-with-action .btn {
        width: 100%;
    }

    .contact-card,
    .contact-resources-strip {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .contact-form-panel,
    .contact-help-card,
    .contact-resources-strip .resources-support-button {
        width: 100%;
    }

    .portal-search-field {
        flex-basis: auto;
    }

    .recent-applications-search {
        flex-basis: auto;
        min-width: 0;
        width: 100%;
    }

    .billing-action-panel {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .billing-action-main,
    .billing-notice {
        flex-direction: column;
    }

    .billing-action-chevron {
        display: none;
    }

    .billing-action-button {
        width: 100%;
    }

    .billing-give-panel-actions {
        max-width: none;
        width: 100%;
    }

    .members-panel {
        padding: 18px;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .resource-form-grid {
        grid-template-columns: 1fr;
    }

    .account-password-panel {
        padding: 16px;
    }

    .account-password-pair {
        grid-template-columns: 1fr;
    }

    .resource-card {
        min-height: auto;
    }

    .resources-support-strip,
    .resources-support-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .resources-support-button {
        width: 100%;
    }

    .providers-hero,
    .providers-alert {
        align-items: flex-start;
    }

    .providers-search-grid,
    .provider-result-card {
        grid-template-columns: 1fr;
    }

    .provider-result-meta {
        border-left: 0;
        border-top: 1px solid #d9c9b4;
        padding-left: 0;
        padding-top: 16px;
    }

    .login-page {
        gap: 28px;
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 18px;
    }

    .login-welcome {
        gap: 24px;
    }

    .login-welcome-content h1 {
        font-size: 34px;
    }

    .login-illustration {
        max-width: none;
        width: 100%;
    }

    .login-card {
        padding: 28px 22px;
    }

}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .resources-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (min-width: 992px) {
    .alignright {
        float: right;
        text-align: right;
    }

    .resource-tabs {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .resource-tabs a {
        font-size: 15px;
        justify-content: center;
        padding-left: 10px;
        padding-right: 10px;
        white-space: nowrap;
    }
}

