.erc-directory,
.erc-application,
.erc-dashboard,
.erc-thank-you {
    --erc-border: #dce8e5;
    --erc-text: #1e2428;
    --erc-muted: #607174;
    --erc-brand: #008578;
    --erc-brand-dark: #0b3b3a;
    --erc-brand-soft: #eaf4f3;
    --erc-accent: #62cbbf;
    --erc-surface: #ffffff;
    color: var(--erc-text);
    max-width: 1120px;
    margin: 0 auto;
}

.erc-search,
.erc-form {
    background: var(--erc-surface);
    border: 1px solid var(--erc-border);
    border-radius: 8px;
    padding: 20px;
}

.erc-thank-you {
    text-align: center;
    max-width: 760px;
    padding: 54px 24px;
}

.erc-thank-you-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--erc-brand-soft);
    color: var(--erc-brand);
    box-shadow: 0 0 0 8px rgba(0, 133, 120, 0.08);
}

.erc-thank-you-kicker {
    margin: 0 0 10px;
    color: var(--erc-brand);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.erc-thank-you h1 {
    margin: 0 auto 14px;
    max-width: 680px;
    color: var(--erc-brand-dark);
    font-size: 2.6rem;
    line-height: 1.12;
}

.erc-thank-you > p:not(.erc-thank-you-kicker) {
    max-width: 610px;
    margin: 0 auto 24px;
    color: var(--erc-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.erc-thank-you-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.erc-thank-you-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 6px;
    padding: 0 18px;
    font-weight: 800;
    text-decoration: none;
}

.erc-thank-you-primary {
    background: var(--erc-brand);
    color: #fff;
}

.erc-thank-you-primary:hover,
.erc-thank-you-primary:focus {
    background: var(--erc-brand-dark);
    color: #fff;
}

.erc-thank-you-secondary {
    border: 1px solid var(--erc-border);
    background: #fff;
    color: var(--erc-brand-dark);
}

.erc-thank-you-secondary:hover,
.erc-thank-you-secondary:focus {
    border-color: var(--erc-brand);
    color: var(--erc-brand);
}

@media (max-width: 640px) {
    .erc-thank-you {
        padding: 40px 18px;
    }

    .erc-thank-you h1 {
        font-size: 2rem;
    }

    .erc-thank-you-actions a {
        width: 100%;
    }
}

.erc-search {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
    margin-bottom: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.erc-search .erc-field {
    grid-column: span 3;
}

.erc-search .erc-field:first-child {
    grid-column: span 4;
}

.erc-search .erc-search-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 4px;
}

.erc-search input,
.erc-search select {
    background-color: #fbfcfd;
}

.erc-search input:focus,
.erc-search select:focus {
    border-color: var(--erc-brand);
    box-shadow: 0 0 0 2px rgba(0, 133, 120, 0.14);
    outline: 2px solid transparent;
}

@media (max-width: 980px) {
    .erc-search .erc-field,
    .erc-search .erc-field:first-child {
        grid-column: span 6;
    }
}

.erc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.erc-field-wide {
    grid-column: 1 / -1;
}

.erc-field label,
.erc-field-label,
.erc-checks label {
    color: var(--erc-text);
    font-size: 0.95rem;
    font-weight: 700;
}

.erc-required {
    color: #b42318;
    font-weight: 800;
}

.erc-field input,
.erc-field select,
.erc-field textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--erc-border);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--erc-text);
    background: #fff;
    font: inherit;
}

.erc-field input[type="file"] {
    min-height: auto;
    border: 0;
    padding: 0;
}

.erc-field textarea {
    min-height: 112px;
    resize: vertical;
}

.erc-multi-dropdown {
    position: relative;
}

.erc-multi-dropdown summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    border: 1px solid var(--erc-border);
    border-radius: 6px;
    padding: 0 12px;
    background: #fff;
    color: var(--erc-text);
    cursor: pointer;
    font: inherit;
    list-style: none;
}

.erc-multi-dropdown summary::-webkit-details-marker {
    display: none;
}

.erc-multi-dropdown summary span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erc-multi-dropdown[open] summary,
.erc-multi-dropdown summary:focus {
    border-color: var(--erc-brand);
    box-shadow: 0 0 0 2px rgba(0, 133, 120, 0.14);
    outline: 2px solid transparent;
}

.erc-multi-dropdown-arrow {
    color: var(--erc-brand);
    font-weight: 800;
}

.erc-multi-dropdown-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 230px;
    overflow: auto;
    border: 1px solid var(--erc-border);
    border-radius: 8px;
    padding: 8px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.erc-multi-dropdown-panel label {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 0;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
}

.erc-multi-dropdown-panel label:hover {
    background: var(--erc-brand-soft);
}

.erc-multi-dropdown-panel input {
    width: auto;
    min-height: 0;
    margin-top: 2px;
    accent-color: var(--erc-brand);
}

.erc-file-upload {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    border: 1px solid var(--erc-border);
    border-radius: 6px;
    padding: 8px;
    background: #fff;
}

.erc-file-upload input {
    width: 100%;
    color: var(--erc-muted);
    font-size: 0.92rem;
}

.erc-file-upload input::file-selector-button {
    min-height: 34px;
    margin-right: 12px;
    border: 1px solid var(--erc-border);
    border-radius: 5px;
    padding: 0 12px;
    background: #f8fafc;
    color: var(--erc-text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.erc-file-upload span {
    color: var(--erc-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.erc-field-has-error input,
.erc-field-has-error select,
.erc-field-has-error .erc-multi-dropdown summary,
.erc-field-has-error textarea {
    border-color: #b42318;
    box-shadow: 0 0 0 1px rgba(180, 35, 24, 0.12);
}

.erc-field-has-error .erc-file-upload {
    border-color: #b42318;
    box-shadow: 0 0 0 1px rgba(180, 35, 24, 0.12);
}

.erc-field-error {
    margin: 2px 0 0;
    color: #b42318;
    font-size: 0.9rem;
    font-weight: 700;
}

.erc-field-help {
    margin: 0;
    color: var(--erc-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.erc-address-picker-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: 14px;
}

.erc-address-picker-fields {
    display: grid;
    gap: 10px;
}

.erc-address-search {
    display: flex;
    gap: 8px;
    align-items: center;
}

.erc-address-search input {
    flex: 1;
}

.erc-address-search .erc-button {
    flex: 0 0 auto;
    min-height: 44px;
    gap: 7px;
}

.erc-location-status {
    display: none;
    margin: -2px 0 0;
    color: #b42318;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
}

.erc-location-status[data-active="1"] {
    display: block;
}

.erc-address-map {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 236px;
    border: 1px solid var(--erc-border);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--erc-muted);
    overflow: hidden;
}

.erc-address-map[data-active="1"] {
    display: block;
}

.erc-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.erc-search-actions,
.erc-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.erc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--erc-brand);
    border-radius: 6px;
    padding: 10px 16px;
    background: var(--erc-brand);
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.erc-button:hover,
.erc-button:focus {
    background: var(--erc-brand-dark);
    color: #fff;
}

.erc-button-secondary {
    background: #fff;
    color: var(--erc-brand);
}

.erc-button-secondary:hover,
.erc-button-secondary:focus {
    background: var(--erc-brand-soft);
    color: var(--erc-brand-dark);
}

.erc-notice-error {
    background: #fef3f2;
    color: #b42318;
}

.erc-map-control {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
}

.erc-map-control label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    border: 1px solid var(--erc-border);
    border-radius: 6px;
    padding: 8px 12px;
    background: #fff;
    color: var(--erc-text);
    font-weight: 700;
}

.erc-map-control input {
    margin: 0;
}

.erc-map {
    min-height: 132px;
    border: 1px solid var(--erc-border);
    border-radius: 8px;
    padding: 18px;
    color: var(--erc-muted);
    background: #f8fafc;
    margin-bottom: 18px;
}

.erc-map[hidden] {
    display: none;
}

.erc-map-heading {
    color: var(--erc-text);
    font-weight: 800;
    margin-bottom: 10px;
}

.erc-map-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.erc-map-jump {
    max-width: 520px;
    margin-bottom: 12px;
}

.erc-map-canvas {
    display: none;
    width: 100%;
    min-height: 320px;
    border: 1px solid var(--erc-border);
    border-radius: 8px;
    margin-bottom: 14px;
}

.erc-map-canvas[data-active="1"] {
    display: block;
}

.erc-map-points a,
.erc-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: #e0f2fe;
    color: #075985;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.erc-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.erc-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(216, 222, 228, 0.9);
    border-radius: 8px;
    padding: 0;
    background: var(--erc-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 34px rgba(15, 23, 42, 0.055);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.erc-card::before {
    display: none;
}

.erc-card[hidden] {
    display: none;
}

.erc-card:hover {
    border-color: rgba(0, 133, 120, 0.28);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 22px 48px rgba(15, 23, 42, 0.09);
    transform: translateY(-2px);
}

.erc-card-reveal {
    animation: erc-card-reveal 260ms ease both;
}

@keyframes erc-card-reveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.erc-card-media,
.erc-card-body {
    min-width: 0;
}

.erc-card-media {
    display: flex;
    justify-content: center;
    padding: 20px 18px 0;
}

.erc-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 18px 16px;
}

.erc-card-photo {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fdfa;
    color: var(--erc-brand-dark);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0 0 4px #fff, 0 10px 24px rgba(15, 23, 42, 0.08);
}

.erc-card-photo-placeholder {
    border: 1px solid #d1f2ec;
}

.erc-card-heading {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.erc-card h2 {
    margin: 0;
    color: var(--erc-text);
    font-size: 1.05rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.erc-card-heading span,
.erc-badge,
.erc-profile-status,
.erc-notice {
    border-radius: 6px;
    padding: 6px 10px;
    background: var(--erc-brand-soft);
    color: var(--erc-brand-dark);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.erc-card-heading span {
    position: absolute;
    top: 12px;
    right: 12px;
}

.erc-provider-name {
    color: var(--erc-muted);
    font-weight: 700;
    margin: 5px 0 12px;
    text-align: center;
}

.erc-card-body > p:not(.erc-provider-name) {
    margin: 0 0 12px;
    color: var(--erc-text);
    line-height: 1.5;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.erc-card .erc-details {
    display: grid;
    gap: 0;
    margin: 0 0 12px;
    border: 0;
}

.erc-card .erc-details div {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #eef2f3;
}

.erc-card .erc-details div:first-child {
    border-top: 0;
}

.erc-card .erc-details dt {
    display: contents;
    color: var(--erc-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.erc-card .erc-details dt > span:last-child {
    display: block;
    color: #8a949e;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.erc-card .erc-details dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--erc-text);
    font-size: 0.96rem;
    font-weight: 750;
    line-height: 1.35;
}

.erc-detail-row dd {
    grid-column: 2;
}

.erc-detail-icon {
    display: inline-flex;
    grid-row: span 2;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--erc-brand-soft);
    color: var(--erc-brand);
}

.erc-detail-icon .erc-icon {
    width: 18px;
    height: 18px;
}

.erc-detail-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 4px 10px;
    margin: 0 6px 6px 0;
    background: #eaf8fc;
    color: #1d6e92;
    font-size: 0.84rem;
    font-weight: 750;
}

.erc-card-details[hidden] {
    display: none;
}

.erc-card-details {
    animation: erc-details-open 180ms ease both;
}

@keyframes erc-details-open {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.erc-card .erc-details a {
    color: var(--erc-brand);
    font-weight: 700;
}

.erc-card .erc-card-actions {
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 2px;
    justify-content: center;
}

.erc-card .erc-button {
    min-height: 34px;
    border-radius: 6px;
    padding: 7px 9px;
    font-size: 0.82rem;
    gap: 6px;
    box-shadow: none;
}

.erc-card .erc-button-ghost {
    border-color: transparent;
    background: #f8fafc;
    color: var(--erc-text);
}

.erc-card .erc-button-ghost:hover,
.erc-card .erc-button-ghost:focus {
    border-color: #d8dee4;
    background: #eef6f5;
    color: var(--erc-brand-dark);
}

.erc-card .erc-button-secondary {
    border-color: #d8dee4;
    background: #fff;
    color: var(--erc-text);
}

.erc-card .erc-button-secondary:hover,
.erc-card .erc-button-secondary:focus {
    border-color: rgba(0, 133, 120, 0.35);
    background: #f8fafc;
    color: var(--erc-brand-dark);
}

.erc-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.erc-load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 24px 0 0;
}

.erc-load-more-wrap .erc-button {
    min-width: 210px;
    gap: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.erc-load-more-wrap [hidden] {
    display: none;
}

.erc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.erc-profile {
    --erc-border: #dce8e5;
    --erc-text: #1e2428;
    --erc-muted: #607174;
    --erc-brand: #008578;
    --erc-brand-dark: #0b3b3a;
    --erc-brand-soft: #eaf4f3;
    --erc-accent: #62cbbf;
    color: var(--erc-text);
    max-width: 1080px;
    margin: 0 auto;
    font-family: Lato, sans-serif;
}

.erc-back-link {
    display: inline-flex;
    margin-bottom: 16px;
    color: var(--erc-brand);
    font-weight: 700;
    text-decoration: none;
}

.erc-profile-back {
    align-items: center;
    gap: 8px;
    color: var(--erc-brand);
    font-size: 0.94rem;
}

.erc-profile-back::before {
    content: "";
    width: 7px;
    height: 7px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
}

.erc-profile-header {
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--erc-border);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    background:
        radial-gradient(circle at 92% 12%, rgba(86, 176, 210, 0.16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f7fafb 100%);
    box-shadow: 0 18px 45px rgba(30, 36, 40, 0.08);
}

.erc-profile-header h1 {
    margin: 0;
    color: #1e2428;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.05;
}

.erc-profile-provider {
    color: var(--erc-muted);
    font-size: 1.05rem;
    font-weight: 800;
    margin: 12px 0 14px;
}

.erc-profile-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    border: 1px solid rgba(0, 133, 120, 0.22);
    border-radius: 999px;
    padding: 6px 12px;
    margin-bottom: 12px;
    color: var(--erc-brand-dark);
    background: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(0, 133, 120, 0.08);
}

.erc-profile-photo-shell {
    position: relative;
}

.erc-profile-photo-shell::after {
    content: "";
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: var(--erc-accent);
    opacity: 0.18;
    z-index: 0;
}

.erc-profile-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    border-radius: 8px;
    border: 6px solid #fff;
    object-fit: cover;
    background: var(--erc-brand-soft);
    box-shadow: 0 16px 34px rgba(30, 36, 40, 0.14);
}

.erc-profile-photo-placeholder {
    border-color: #fff;
}

.erc-profile-bio {
    max-width: 680px;
    margin: 0 0 18px;
    color: #4d565d;
    font-size: 1rem;
    line-height: 1.7;
}

.erc-profile-bio p {
    margin: 0 0 10px;
}

.erc-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.erc-profile .erc-button {
    border-color: var(--erc-brand);
    background: var(--erc-brand);
    box-shadow: 0 10px 22px rgba(0, 133, 120, 0.18);
    gap: 8px;
}

.erc-profile .erc-button:hover,
.erc-profile .erc-button:focus {
    border-color: var(--erc-brand-dark);
    background: var(--erc-brand-dark);
}

.erc-profile .erc-button-secondary {
    border-color: rgba(0, 133, 120, 0.28);
    background: #fff;
    color: var(--erc-brand);
}

.erc-profile .erc-button-secondary:hover,
.erc-profile .erc-button-secondary:focus {
    background: var(--erc-brand-soft);
    color: var(--erc-brand-dark);
}

.erc-profile .erc-button-ghost {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.72);
    color: var(--erc-muted);
    box-shadow: none;
}

.erc-profile .erc-button-ghost:hover,
.erc-profile .erc-button-ghost:focus {
    border-color: rgba(0, 133, 120, 0.22);
    background: #fff;
    color: var(--erc-brand-dark);
}

.erc-profile-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.42fr);
    gap: 20px;
    align-items: start;
}

.erc-profile-panel {
    border: 1px solid var(--erc-border);
    border-radius: 8px;
    padding: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(30, 36, 40, 0.06);
}

.erc-profile-panel h2 {
    margin: 0 0 16px;
    color: var(--erc-brand);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0;
}

.erc-profile-info {
    display: grid;
    gap: 0;
    margin: 0;
}

.erc-profile-info > div {
    display: grid;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid #edf4f7;
}

.erc-profile-info > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.erc-profile-info > div:last-child {
    padding-bottom: 0;
}

.erc-profile-info dt {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #8b969c;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.erc-profile-info dt .erc-icon {
    width: 19px;
    height: 19px;
    color: var(--erc-brand);
}

.erc-profile-info dd {
    margin: 0;
    color: #1e2428;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.erc-profile-info dd a {
    color: var(--erc-brand);
    text-decoration: none;
}

.erc-profile-info dd a:hover,
.erc-profile-info dd a:focus {
    color: var(--erc-brand-dark);
    text-decoration: underline;
}

.erc-profile-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
}

.erc-profile-info-grid > div:nth-child(-n+2) {
    padding-top: 0;
    border-top: 0;
}

.erc-profile .erc-detail-pill {
    background: #eaf8fc;
    color: #1d6e92;
    font-weight: 800;
}

.erc-profile .erc-profile-status {
    display: inline-flex;
    width: fit-content;
    background: #eef8fc;
    color: var(--erc-brand-dark);
}

.erc-coverage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.erc-coverage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--erc-border);
    border-radius: 8px;
    padding: 14px;
    color: var(--erc-text);
    background: #fff;
    text-decoration: none;
}

.erc-coverage-item strong {
    color: var(--erc-brand);
    font-size: 1.35rem;
}

.erc-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.erc-stats-grid div {
    border: 1px solid var(--erc-border);
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}

.erc-stats-grid strong {
    display: block;
    color: var(--erc-brand);
    font-size: 2rem;
    line-height: 1;
}

.erc-stats-grid span {
    display: block;
    margin-top: 8px;
    color: var(--erc-muted);
    font-weight: 700;
}

.erc-checks {
    display: grid;
    gap: 10px;
    border: 0;
    margin: 18px 0;
    padding: 0;
}

.erc-dashboard {
    --erc-border: #dce8e5;
    --erc-text: #1e2428;
    --erc-muted: #607174;
    --erc-brand: #008578;
    --erc-brand-dark: #0b3b3a;
    --erc-brand-soft: #eaf4f3;
    --erc-accent: #62cbbf;
    max-width: 1040px;
    margin: 0 auto;
    color: var(--erc-text);
}

.erc-dashboard-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.erc-dashboard-header h2 {
    margin: 0 0 6px;
    font-size: 1.65rem;
    line-height: 1.2;
}

.erc-dashboard-header p {
    max-width: 680px;
    margin: 0;
    color: var(--erc-muted);
}

.erc-dashboard-guest-card,
.erc-dashboard-profile {
    background: #fff;
    border: 1px solid var(--erc-border);
    border-radius: 8px;
    padding: 22px;
}

.erc-dashboard-guest-card h2 {
    margin: 0 0 8px;
    font-size: 1.7rem;
}

.erc-dashboard-guest-card p {
    max-width: 760px;
    color: var(--erc-muted);
}

.erc-dashboard-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.erc-dashboard-steps div {
    border: 1px solid var(--erc-border);
    border-radius: 8px;
    padding: 14px;
    background: #f8faf9;
}

.erc-dashboard-steps strong,
.erc-dashboard-steps span {
    display: block;
}

.erc-dashboard-steps span {
    margin-top: 6px;
    color: var(--erc-muted);
}

.erc-dashboard-profile-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--erc-border);
    margin-bottom: 18px;
}

.erc-dashboard-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: var(--erc-brand-soft);
    color: var(--erc-brand-dark);
    font-size: 2rem;
    font-weight: 800;
}

.erc-dashboard-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.erc-dashboard-profile-hero h3 {
    margin: 0 0 4px;
    font-size: 1.55rem;
}

.erc-dashboard-profile-hero p {
    margin: 0 0 10px;
    color: var(--erc-muted);
    font-weight: 700;
}

.erc-dashboard-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.erc-dashboard-badges span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--erc-brand-soft);
    color: var(--erc-brand-dark);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 5px 10px;
}

.erc-dashboard-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.erc-dashboard-profile-grid section {
    border: 1px solid var(--erc-border);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.erc-dashboard-profile-grid h4 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.erc-dashboard-detail {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid #eef2f3;
}

.erc-dashboard-detail:first-of-type {
    border-top: 0;
}

.erc-dashboard-detail dt {
    color: var(--erc-muted);
    font-weight: 800;
}

.erc-dashboard-detail dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.erc-empty {
    border: 1px solid var(--erc-border);
    border-radius: 8px;
    padding: 18px;
    color: var(--erc-muted);
}

@media (max-width: 760px) {
    .erc-search,
    .erc-form-grid,
    .erc-results,
    .erc-profile-header,
    .erc-profile-layout,
    .erc-profile-info-grid,
    .erc-dashboard-header,
    .erc-dashboard-steps,
    .erc-dashboard-profile-grid,
    .erc-dashboard-detail,
    .erc-coverage-grid,
    .erc-stats-grid,
    .erc-details div {
        grid-template-columns: 1fr;
    }

    .erc-dashboard-header,
    .erc-dashboard-profile-hero {
        display: block;
    }

    .erc-dashboard-header .erc-button,
    .erc-dashboard-photo {
        margin-top: 14px;
    }

    .erc-profile-header {
        padding: 22px;
    }

    .erc-profile-photo-shell {
        max-width: 210px;
    }

    .erc-profile-actions {
        flex-direction: column;
    }

    .erc-profile-info-grid > div:nth-child(-n+2) {
        padding-top: 16px;
        border-top: 1px solid #edf4f7;
    }

    .erc-profile-info-grid > div:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .erc-search .erc-field,
    .erc-search .erc-field:first-child,
    .erc-search .erc-search-actions {
        grid-column: 1 / -1;
    }

    .erc-address-picker-shell {
        grid-template-columns: 1fr;
    }

    .erc-address-search {
        align-items: stretch;
        flex-direction: column;
    }

    .erc-address-map {
        min-height: 220px;
    }

    .erc-search-actions,
    .erc-card-actions {
        flex-direction: column;
    }

    .erc-file-upload {
        align-items: flex-start;
        flex-direction: column;
    }

    .erc-file-upload span {
        white-space: normal;
    }

    .erc-card {
        padding: 0;
    }

    .erc-card-heading {
        display: block;
    }

    .erc-card-heading span {
        display: inline-flex;
    }

    .erc-button {
        width: 100%;
    }

    .erc-card-media {
        display: flex;
        justify-content: flex-start;
    }

    .erc-card-photo {
        width: 82px;
        height: 82px;
    }

    .erc-card .erc-details div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

@media print {
    .erc-back-link,
    .erc-card-actions,
    .erc-search,
    .erc-map {
        display: none !important;
    }

    .erc-profile {
        max-width: none;
    }
}
.erc-directory .erc-field input {
    line-height: normal;
    padding: 10px 12px;
    box-sizing: border-box;
}
.erc-directory, .erc-application, .erc-dashboard, .erc-profile {
    margin-bottom: 50px;
}
.erc-card-heading span, .erc-badge, .erc-profile-status, .erc-notice {
	margin-bottom: 16px;
}
.erc-notice-error {
    background-color: #fef3f2;
    color: #b42318;
}
.erc-load-more-wrap .erc-button {
	font-size: 14px;
}
.erc-card-details p {
    margin: 0;
    padding: 10px;
    background-color: #dff8f1;
    color: #075e55;
    border-radius: 10px;
    border-left: 3px solid #075e55;
    font-size: 16px;
    line-height: 1.4;
}
.erc-card .erc-card-actions {
    padding-top: 10px;
}
