﻿*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #262626;
}

/* â”€â”€ Header â”€â”€ */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 1.5rem;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    height: 70px;
    gap: 2rem;
}

/* Logo */
.site-header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-header__logo img {
    display: block;
    height: 42px;
    width: auto;
}

/* Nav */
.site-header__nav { 
    margin-right: auto; 

}

.site-header__nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-header__nav-link {
    text-decoration: none;
    color: #262626;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
}

.site-header__nav-link:hover { 
    color: #c0392b; 

}

/* Language switcher pill */
.language-switch {
    margin-right: 8px;
    background-color: #EEE;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    line-height: 1;
}

    .language-switch strong {
        font-weight: 600;
        color: #000;
    }

    .language-switch .text-muted {
        color: #6c757d !important;
        text-decoration: none;
    }

/* ==========================================================================
   Onboarding
   ========================================================================== */

/* â”€â”€ Step 1 Splash â”€â”€ */
.splash {
    min-height: 100vh;
    background-image: url('/images/BlueGradientBackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0d7a6e;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 1.5rem 2rem 3rem;
}

.splash::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
}

.splash .lang-switch {
    align-self: flex-start;
    display: flex;
    align-items: center;
    position: relative; /* anchor for the dropdown */
    z-index: 10;
}

.splash .lang-switch__btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
    font-weight: normal;
    background: none;
    border: none;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.splash .lang-switch__btn:hover,
.splash .lang-switch__btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.15);
}

.splash .lang-switch svg {
    width: 20px;
    height: 9px;
    fill: none;
    stroke: #ffffff;
    transition: transform 0.2s;
}

.splash .lang-switch__btn[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* Dropdown panel */
.splash .lang-switch__dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 200;
}

.splash .lang-switch__dropdown.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.splash .lang-switch__option {
    display: block;
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.15s;
}

.splash .lang-switch__option:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.splash__logo {
    margin-top: 1.5rem;
    z-index: 1;
}

.splash__logo img {
    max-width: 350px;
    display: block;
}

.splash__welcome {
    color: #ffffff;
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-top: 0.5rem;
    z-index: 1;
    text-align: center;
}

.splash__subtitle {
    color: #ffffff;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    text-align: center;
    z-index: 1;
    margin-top: 0.25rem;
}

.splash__content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 2.5rem;
    gap: 1.5rem;
    max-width: 600px;
    width: 100%;
    z-index: 1;
}

.splash__avatar {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
}

.splash__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.splash__text {
    color: #ffffff;
    font-size: 0.92rem;
    line-height: 1.65;
}

.splash__text p + p {
    margin-top: 0.85rem;
}

.splash__cta {
    margin-top: 2rem;
    z-index: 1;
    max-width: 600px;
    width: 100%;
    padding-left: calc(90px + 1.5rem);
}

.splash__cta a {
    display: inline-block;
    background: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    transition: background 0.2s, transform 0.1s;
}

.splash__cta a:hover {
    background: #333;
    transform: translateY(-1px);
}

.splash__mascot {
    position: absolute;
    right: 3%;
    bottom: 0;
    width: clamp(180px, 22vw, 300px);
    z-index: 0;
}

.splash__mascot img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 750px) {
    .splash__mascot {
        display: none;
    }

    .splash__content {
        flex-direction: column;
        align-items: center;
    }

    .splash__avatar {
        margin: 0 auto;
    }

    .splash__text {
        text-align: center;
    }

    .splash__cta {
        padding-left: 0;
        text-align: center;
    }
}


/* ==========================================================================
   Onboarding Step Layout (sidebar + form)
   ========================================================================== */

.ob-layout {
    display: flex;
    min-height: 100vh;
    align-items: flex-start;
}

/* ── Sidebar ── */
.ob-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    background-image: url('/images/BlueGradientBackground.png');
    background-size: cover;
    background-position: center;
    background-color: #0d7a6e;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem 1.75rem 2rem;
}

.ob-sidebar .lang-switch {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
}

.ob-sidebar .lang-switch__btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
    font-weight: normal;
    background: none;
    border: none;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.ob-sidebar .lang-switch__btn:hover,
.ob-sidebar .lang-switch__btn[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.15);
}

.ob-sidebar .lang-switch svg {
    width: 20px;
    height: 9px;
    fill: none;
    stroke: #ffffff;
    transition: transform 0.2s;
}

.ob-sidebar .lang-switch__btn[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.ob-sidebar .lang-switch__dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 200;
}

.ob-sidebar .lang-switch__dropdown.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ob-sidebar .lang-switch__option {
    display: block;
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.15s;
}

.ob-sidebar .lang-switch__option:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.ob-sidebar__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: flex-start;
    gap: 1.25rem;
    color: #ffffff;
    margin-top: 20px;
}

.ob-sidebar__heading {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.25;
}

.ob-sidebar__meta {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    align-items: flex-start;
}

.ob-sidebar__step-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

.ob-sidebar__step-current,
.ob-sidebar__step-total {
    display: block;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.03em;
}

.ob-sidebar__text-col {
    flex: 1;
}

.ob-sidebar__desc {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.6;
}

.ob-sidebar__logo img {
    height: 36px;
    width: auto;
}

/* ── Content area ── */
.ob-content {
    flex: 1;
    min-width: 0;
    padding: 3rem 3.5rem;
    background: #F4F4F4;
    min-height: 100vh;
}

.ob-content__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.ob-content__lead {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.ob-map {
    width: 100%;
    height: 380px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    z-index: 0;
}

/* ── Form ── */
.ob-form .form-group {
    margin-bottom: 1.5rem;
}

.ob-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}

.ob-form label .required {
    color: #8d8d8d;
    font-weight: 400;
    font-size: 0.8rem;
    margin-left: 0.2rem;
}

.ob-form label .required__star {
    color: #da1e28;
}

.ob-form input[type="text"],
.ob-form input[type="email"],
.ob-form input[type="tel"],
.ob-form input[type="number"],
.ob-form select {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s;
    background: #ffffff;
}

.ob-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpolyline points='1,1 5,5 9,1' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
    cursor: pointer;
}

.ob-form input[type="text"]:focus,
.ob-form input[type="email"]:focus,
.ob-form input[type="tel"]:focus,
.ob-form input[type="number"]:focus,
.ob-form select:focus {
    border-color: #0d7a6e;
}

.ob-form .hint {
    font-size: 0.78rem;
    color: #666;
    margin-top: 0.4rem;
    line-height: 1.5;
}

.ob-form .input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ob-form .input-icon-wrap input {
    padding-right: 2.25rem;
}

.ob-form .input-icon-wrap .info-icon {
    position: absolute;
    right: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    color: #888;
    cursor: pointer;
    user-select: none;
}

.ob-form .input-icon-wrap .info-icon:hover {
    color: #555;
}

/* ==========================================================================
   Quill Rich Text Editor overrides
   ========================================================================== */

.quill-editor .ql-toolbar.ql-snow {
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background: #f7f7f7;
    padding: 0.4rem 0.6rem;
    font-family: inherit;
}

.quill-editor .ql-container.ql-snow {
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    font-size: 0.875rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 160px;
    color: #333;
    background: #ffffff;
}

.quill-editor .ql-editor {
    min-height: 160px;
    line-height: 1.6;
    padding: 0.75rem;
    background: #ffffff;
}

.quill-editor .ql-editor.ql-blank::before {
    color: #aaa;
    font-style: normal;
}

/* Teal focus ring to match the rest of the form */
.quill-editor.is-focused .ql-toolbar.ql-snow,
.quill-editor.is-focused .ql-container.ql-snow {
    border-color: #0d7a6e;
}

/* Rich text mock */
.ob-form .rte-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 0.4rem 0.6rem;
    background: #f7f7f7;
    flex-wrap: wrap;
}

.ob-form .rte-toolbar button {
    background: none;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    padding: 0.2rem 0.35rem;
    border-radius: 3px;
    line-height: 1;
}

.ob-form .rte-toolbar button:hover {
    background: #e0e0e0;
}

.ob-form .rte-toolbar .rte-divider {
    width: 1px;
    height: 16px;
    background: #ccc;
    margin: 0 0.15rem;
}

.ob-form textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: #333;
    line-height: 1.6;
    resize: vertical;
    min-height: 160px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.ob-form textarea:focus {
    border-color: #0d7a6e;
}

/* ── Back / Next buttons ── */
.ob-form .form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.ob-form .btn-back {
    display: inline-block;
    padding: 0.65rem 1.75rem;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.ob-form .btn-back:hover {
    background: #f0f0f0;
}

.ob-form .btn-next {
    display: inline-block;
    text-decoration: none;
    padding: 0.65rem 1.75rem;
    border: none;
    background: #1a1a1a;
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.ob-form .btn-next:hover {
    background: #333;
}

/* ── Responsive ── */
@media (max-width: 750px) {
    .ob-layout {
        flex-direction: column;
    }

    .ob-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1.25rem 1.5rem;
    }

    .ob-sidebar__body {
        justify-content: flex-start;
        padding: 1rem 0;
    }

    .ob-content {
        width: 100%;
        max-width: 100vw;
        padding: 1.5rem 1rem;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .ob-form {
        width: 100%;
        max-width: 100%;
    }

    .ob-form input[type="text"],
    .ob-form input[type="email"],
    .ob-form input[type="tel"],
    .ob-form input[type="number"],
    .ob-form textarea {
        max-width: 100%;
        box-sizing: border-box;
    }


    .input-row {
        flex-direction: column;
    }

    .phone-row {
        flex-direction: column;
    }

    .form-actions {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
}

/* ==========================================================================
   Geolocation Help Drawer
   ========================================================================== */

.geo-drawer {
    display: contents;
}

.geo-drawer__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.geo-drawer__panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 560px;
    max-width: 100vw;
    background: #ffffff;
    z-index: 201;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

/* Open state */
.geo-drawer.is-open .geo-drawer__overlay {
    opacity: 1;
    pointer-events: all;
}

.geo-drawer.is-open .geo-drawer__panel {
    transform: translateX(0);
}

/* Header */
.geo-drawer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.geo-drawer__header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0;
}

.geo-drawer__close {
    background: none;
    border: none;
    font-size: 0.85rem;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
    padding: 0.1rem 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.geo-drawer__close:hover {
    color: #000;
}

.geo-drawer__close strong {
    font-size: 1.1rem;
}

/* Body */
.geo-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.geo-drawer__section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.geo-drawer__steps {
    padding-left: 1.25rem;
    margin: 0;
    font-size: 0.85rem;
    color: #333;
    line-height: 1.7;
}

.geo-drawer__steps li + li {
    margin-top: 0.25rem;
}

/* Image placeholder */
.geo-drawer__img-placeholder {
    width: 100%;
    margin-top: 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
}

/* Callout boxes */
.geo-drawer__callout {
    padding: 0.85rem 1rem;
    border-radius: 6px;
    font-size: 0.82rem;
    line-height: 1.6;
}

.geo-drawer__callout--pink {
    background: #fde8e8;
    color: #7a1a1a;
}

.geo-drawer__callout--teal {
    background: #e6f4f1;
    color: #0d5c52;
}

@media (max-width: 750px) {
    .geo-drawer__panel {
        width: 100vw;
    }
}

/* ==========================================================================
   Onboarding Step 2
   ========================================================================== */

/* Two-column number inputs */
.ob-form .input-row {
    display: flex;
    gap: 1.5rem;
}

.ob-form .input-row .form-group {
    flex: 1;
}

@media (max-width: 768px) {
    .ob-form .input-row {
        flex-direction: column;
    }

    .ob-form .input-row .form-group {
        width: 100%;
    }

    .ob-form .input-row input[type="number"] {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Definition info box */
.ob-info-box {
    display: flex;
    gap: 1rem;
    padding: 0.25rem 0 1.25rem;
    font-size: 0.82rem;
    color: #333;
    line-height: 1.6;
}

.ob-info-box__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #888;
}

.ob-info-box__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ob-info-box__content ul {
    padding-left: 1.1rem;
    margin: 0.4rem 0 0;
}

.ob-info-box__content ul li {
    margin-bottom: 0.2rem;
}

/* Checkbox groups */
.ob-form .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.ob-form .checkbox-group--cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    width: fit-content;
}

.ob-form .checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: #1a1a1a;
    cursor: pointer;
    user-select: none;
}

/* Hide native checkbox, replace with custom box */
.ob-form .checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 0.1rem;
    border: 2px solid #b0b0b0;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    transition: background 0.15s, border-color 0.15s;
}

/* Checked state — keep white background, darken border */
.ob-form .checkbox-item input[type="checkbox"]:checked {
    background: #ffffff;
    border-color: #333;
}

/* Checkmark via pseudo-element — black tick, no fill */
.ob-form .checkbox-item input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 9px;
    border: 2px solid #1a1a1a;
    border-top: none;
    border-left: none;
    transform: translate(-50%, -60%) rotate(45deg);
}

/* Focus ring for accessibility */
.ob-form .checkbox-item input[type="checkbox"]:focus-visible {
    outline: 2px solid #0d7a6e;
    outline-offset: 2px;
}

/* Hover — subtle border darkening */
.ob-form .checkbox-item:hover input[type="checkbox"]:not(:checked) {
    border-color: #0d7a6e;
}

.ob-form .checkbox-item__desc {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.1rem;
    line-height: 1.45;
}

.ob-form .sub-label {
    font-size: 0.8rem;
    font-weight: 400;
    color: #555;
    margin-bottom: 0.75rem;
    display: block;
}

.ob-form .section-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2rem 0;
}

/* ==========================================================================
   Onboarding Step 3 - NRP Specialist Selection
   ========================================================================== */

.ob-sidebar__tip {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.ob-sidebar__tip-label {
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.ob-sidebar__tip-title {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.35rem;
}

.ob-sidebar__tip-body {
    color: #ffffff;
    line-height: 1.6;
}

/* Specialist list */
.specialist-table-wrap {
    width: 100%;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.specialist-table-wrap::-webkit-scrollbar {
    display: none;
}

.specialist-scroll-track {
    position: relative;
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

.specialist-scroll-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #0d7a6e;
    border-radius: 3px;
    transition: left 0.05s linear;
}

.specialist-table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
    margin-top: 1.25rem;
}

.specialist-table thead tr {
    border-bottom: 1px solid #e0e0e0;
}

.specialist-table th {
    font-size: 0.78rem;
    font-weight: 600;
    color: #000000;
    padding: 0.5rem 0.75rem 0.75rem;
    text-align: left;
    white-space: nowrap;
}

.specialist-table th:first-child,
.specialist-table td:first-child {
    width: 60px;
    text-align: center;
    padding-left: 0;
}

.specialist-table th:last-child,
.specialist-table td:last-child {
    width: 80px;
    text-align: right;
}

.specialist-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.specialist-table tbody tr:hover {
    background: #fafafa;
}

.specialist-table td {
    padding: 0.85rem 0.75rem;
    vertical-align: middle;
}

/* Radio button */
.specialist-table input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #1a1a1a;
    cursor: pointer;
}

/* Specialist info cell */
.specialist-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.specialist-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #ddd;
    border: 2px solid #e0e0e0;
}

.specialist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.specialist-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.15rem;
}

.specialist-region {
    font-size: 0.78rem;
    color: #000000;
}

/* Action buttons */
.specialist-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.specialist-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 1rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.specialist-actions button:hover {
    color: #0d7a6e;
    background: #f0f0f0;
}

.specialist-actions a {
    background: none;
    border: none;
    cursor: pointer;
    color: #000000;
    font-size: 1rem;
    padding: 0.25rem;
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.specialist-actions a:hover {
    color: #0d7a6e;
    background: #f0f0f0;
}

/* See More */
.specialist-see-more {
    padding: 1rem 0 0.5rem;
    font-size: 0.85rem;
    color: #555;
}

.specialist-see-more a {
    display: flex;
    justify-content: center;
    width: 100%;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 0.75rem 1rem;
    align-items: center;
    gap: 0.5rem;
}

.specialist-see-more a:hover {
    color: #0d7a6e;
}

/* Save button variant */
.ob-form .btn-save {
    display: inline-block;
    text-decoration: none;
    padding: 0.65rem 1.75rem;
    border: none;
    background: #1a1a1a;
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.ob-form .btn-save:hover {
    background: #333;
}

/* ==========================================================================
   Region Served Modal
   ========================================================================== */

.region-modal {
    display: contents;
}

.region-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.region-modal__dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 301;
    width: 90%;
    max-width: 680px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;

    /* Start: fully off the right edge of the screen */
    pointer-events: none;
    opacity: 0;
    transform: translate(150vw, -50%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

/* Open state */
.region-modal.is-open .region-modal__overlay {
    opacity: 1;
    pointer-events: all;
}

.region-modal.is-open .region-modal__dialog {
    pointer-events: all;
    opacity: 1;
    transform: translate(-50%, -50%);
}

/* Header */
.region-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    flex-shrink: 0;
}

.region-modal__header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.region-modal__close {
    background: none;
    border: none;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.region-modal__close:hover {
    color: #000;
}

.region-modal__close strong {
    font-size: 2rem;
    font-weight: 100;
    line-height: 1;
    vertical-align: middle;
}

/* Map placeholder */
.region-modal__map {
    width: 100%;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

/* Footer */
.region-modal__footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.region-modal__avatar {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
}

.region-modal__footer .specialist-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.region-modal__footer .specialist-region {
    font-size: 0.85rem;
    color: #000000;
}


/* ==========================================================================
   Onboarding Step 4 - Pick Your Team
   ========================================================================== */

.ob-content__title--large {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.ob-content__subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.ob-content__body {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.65;
    margin-bottom: 2rem;
}

/* Input error state */
.ob-form input.is-error {
    border-color: #c0392b;
    outline: none;
}

.ob-form .error-msg {
    font-size: 0.78rem;
    color: #c0392b;
    margin-top: 0.35rem;
}

/* Phone + note row */
.ob-form .phone-row {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.ob-form .phone-row .form-group {
    flex-shrink: 0;
    width: 200px;
}

.ob-form .phone-note {
    font-size: 0.72rem;
    color: #999;
    line-height: 1.5;
    padding-top: 1.6rem;
}

/* Add committee member button */
.btn-add-member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1.1rem;
    border: 1.5px dashed #bbb;
    border-radius: 6px;
    background: #fff;
    color: #444;
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    margin-top: 1.5rem;
}

.btn-add-member:hover {
    border-color: #0d7a6e;
    color: #0d7a6e;
}

.btn-add-member svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: currentColor;
    stroke-width: 1.8;
    flex-shrink: 0;
}

/* ==========================================================================
   Committee Member Accordion (Step 4)
   ========================================================================== */

.member-list {
    margin-bottom: 1.5rem;
}

/* ── Single-member mode: no card styling ── */
.member-list:not(.is-multi) .member-entry {
    /* flat — no border, no card */
}

.member-list:not(.is-multi) .member-body {
    display: block;
}

/* ── Multi-member mode: each entry becomes a card ── */
.member-list.is-multi .member-entry {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #ffffff;
    overflow: hidden;
}

/* Header row */
.member-accordion__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: #f5f5f5;
    gap: 0.75rem;
}

/* Toggle (chevron + name) */
.member-accordion__toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
    padding: 0;
}

.member-accordion__toggle svg {
    width: 14px;
    height: 8px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.member-accordion__toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.member-accordion__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Remove button */
.member-accordion__remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    color: #c0392b;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.member-accordion__remove:hover {
    background: #fef2f2;
    color: #922b21;
}

/* Body — collapsed by default in multi mode */
.member-list.is-multi .member-body {
    display: none;
    padding: 1rem 1rem 0.25rem;
    border-top: 1px solid #e0e0e0;
}

.member-list.is-multi .member-body.is-open {
    display: block;
}

/* Submit button variant */
.ob-form .btn-submit {
    display: inline-block;
    text-decoration: none;
    padding: 0.65rem 1.75rem;
    border: none;
    background: #1a1a1a;
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.ob-form .btn-submit:hover {
    background: #333;
}


/* ==========================================================================
   App Shell — Header, Sidebar & Body Layout
   ========================================================================== */

.app-shell {
    display: flex;          /* sidebar | right-panel side by side */
    flex-direction: row;
    height: 100vh;          /* fill the viewport exactly */
    overflow: hidden;       /* each column scrolls independently */
}

/* ── Top Header Bar (inside .app-right — never touches left edge) ── */
.app-header {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 1.25rem;
    background: linear-gradient(90deg, #0a6860 0%, #0d7a6e 100%);
    gap: 1rem;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Language switcher */
.app-header__lang {
    flex-shrink: 0;
}

.app-header__lang-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
}

.app-header__lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.app-header__lang-btn svg {
    width: 10px;
    height: 6px;
    fill: rgba(255, 255, 255, 0.9);
}

/* Right-side group (sharing, what's new, instructions, user) */
.app-header__right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
    flex-shrink: 0;
}

.app-header__badge {
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.app-header__action-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.82rem;
    white-space: nowrap;
    transition: color 0.2s;
}

.app-header__action-link:hover {
    color: #ffffff;
}

.app-header__action-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.app-header__user-wrap {
    position: relative;
}

.app-header__user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: none;
    border: none;
    transition: background 0.2s;
}

.app-header__user:hover {
    background: rgba(255, 255, 255, 0.15);
}

.app-header__user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 200;
    overflow: hidden;
}

.app-header__user-dropdown.is-open {
    display: block;
}

.app-header__user-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: background 0.15s;
}

.app-header__user-option svg {
    width: 16px;
    height: 16px;
    stroke: #555;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.app-header__user-option:hover {
    background: #f0f5f4;
    color: #0d7a6e;
}

.app-header__user-option:hover svg {
    stroke: #0d7a6e;
}

.app-header__badge--dark {
    background: #0d7a6e;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
}

.app-header__user-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 0.25rem 0;
}

/* Mobile-only dropdown items — hidden on desktop */
.app-header__user-option--mobile,
.app-header__user-divider--mobile {
    display: none;
}

@media (max-width: 878px) {
    .app-header__action-link {
        display: none;
    }

    .app-header__user-option--mobile {
        display: flex;
    }

    .app-header__user-divider--mobile {
        display: block;
    }
}

.app-header__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.app-header__username {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
}

.app-header__user svg {
    width: 10px;
    height: 6px;
    fill: rgba(255, 255, 255, 0.7);
}

/* ── Sidebar logo area ── */
.app-sidebar__logo-area {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 1rem;
    background: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid #e8e8e8;
}

.app-sidebar__logo-area a {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 38px;
}

/* Full logo — visible when sidebar is expanded */
.app-sidebar__logo-full {
    height: 36px;
    width: auto;
    display: block;
    position: absolute;
    left: 0;
    opacity: 1;
    transition: opacity 0.2s ease;
    max-width: 160px;
    object-fit: contain;
}

/* Flame icon — visible when sidebar is collapsed */
.app-sidebar__logo-icon {
    width: 32px;
    height: 32px;
    display: block;
    position: absolute;
    left: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    object-fit: contain;
}

/* Swap on collapse */
.app-sidebar.is-collapsed .app-sidebar__logo-full {
    opacity: 0;
    pointer-events: none;
}

.app-sidebar.is-collapsed .app-sidebar__logo-icon {
    opacity: 1;
}

/* ── Right panel (header + scrollable main) ── */
.app-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-y: auto;   /* right column scrolls; sidebar stays fixed */
    height: 100vh;
}

/* ── Sidebar (full-height left column) ── */
.app-sidebar {
    width: 200px;
    flex-shrink: 0;
    background: #ffffff;
    border-right: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    height: 100vh;      /* always fills viewport — no sticky needed */
    position: relative; /* anchor for the absolute-positioned toggle button */
    z-index: 50;
    overflow: visible;
    transition: width 0.25s ease;
}

.app-sidebar.is-collapsed {
    width: 56px;
}


/* Sidebar inner scroll container (keeps nav clipped while toggle bleeds outside) */
.app-sidebar__inner {
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1;           /* fills all space below the logo area */
    display: flex;
    flex-direction: column;
    min-height: 0;
}
/* Toggle button — clears the logo area (64px) + 1rem breathing room */
.app-sidebar__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    position: absolute;
    right: -12px;
    top: calc(64px + 1rem);
    z-index: 60;            /* above .app-right content */
    transition: transform 0.25s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.app-sidebar.is-collapsed .app-sidebar__toggle {
    transform: rotate(180deg);
}

.app-sidebar__toggle svg {
    width: 14px;
    height: 14px;
    stroke: #555;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* Nav list */
.app-sidebar__nav {
    padding: 1rem 0;
    flex: 1;
}

.app-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.app-sidebar__item {
    position: relative;
}

/* Shared link styles */
.app-sidebar__link,
.app-sidebar__accordion-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    transition: background 0.15s, color 0.15s;
    border-radius: 0;
}

.app-sidebar__link:hover,
.app-sidebar__accordion-btn:hover {
    background: #f0f5f4;
    color: #0d7a6e;
}

.app-sidebar__item--active .app-sidebar__link {
    background: #e8f3f1;
    color: #0d7a6e;
    font-weight: 600;
    border-right: 3px solid #0d7a6e;
}

/* Icons */
.app-sidebar__icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Labels — hide when collapsed */
.app-sidebar__label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s;
}

.app-sidebar.is-collapsed .app-sidebar__label,
.app-sidebar.is-collapsed .app-sidebar__chevron {
    opacity: 0;
    pointer-events: none;
    width: 0;
}

/* Accordion chevron */
.app-sidebar__chevron {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.25s;
}

.app-sidebar__accordion-btn[aria-expanded="true"] .app-sidebar__chevron {
    transform: rotate(180deg);
}

/* Submenu */
.app-sidebar__submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: #f9fafа;
}

.app-sidebar__submenu.is-open {
    max-height: 200px;
}

.app-sidebar__sublink {
    display: block;
    padding: 0.5rem 1rem 0.5rem 3rem;
    font-size: 0.82rem;
    color: #555;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    overflow: hidden;
}

.app-sidebar__sublink:hover {
    background: #f0f5f4;
    color: #0d7a6e;
}

/* ── Main content ── */
.app-main {
    flex: 1;
    background: #f5f5f5;
    min-width: 0;
    padding: 2rem;
}

/* ════════════════════════════════════════
   Champion Dashboard
   ════════════════════════════════════════ */

.db-page {
    width: 100%;
}

.db-page__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.25rem;
}

/* ── Outer two-column layout: left (grows) | right (fixed) ── */
.db-layout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.db-layout__left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.db-layout__right {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Inner 2-column grid for the 4 progress tiles ── */
.db-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch; /* tiles in the same row always match height */
}

/* ── Base tile ── */
.db-tile {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ── Tile header row ── */
.db-tile__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.db-tile__head-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.db-tile__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
}

.db-tile__name--lg {
    font-size: 1rem;
}

.db-tile__meta {
    font-size: 0.78rem;
    color: #888;
    margin: 0;
}

.db-tile__meta--sm {
    font-size: 0.76rem;
}

.db-tile__desc {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.5;
    flex: 1;
}

/* Tile footer: link left, chart right */
.db-tile__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.5rem;
}

.db-tile__link {
    font-size: 0.82rem;
    color: #0d7a6e;
    text-decoration: none;
    font-weight: 500;
}

.db-tile__link:hover {
    text-decoration: underline;
}

.db-tile__arrow-link {
    display: flex;
    color: #888;
    flex-shrink: 0;
    transition: color 0.2s;
}

.db-tile__arrow-link:hover { color: #0d7a6e; }

.db-tile__arrow-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Badges ── */
.db-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.db-badge--progress {
    background: #e0f2f1;
    color: #0d7a6e;
}

.db-badge--not-started {
    background: #fef3c7;
    color: #b45309;
}

.db-badge--complete {
    background: #dcfce7;
    color: #15803d;
}

/* ── Donut chart wrapper ── */
.db-chart-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.db-chart-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #555;
    pointer-events: none;
}

.db-chart-label--green {
    color: #15803d;
}

/* ── Neighbourhood Details tile ── */
.db-map-placeholder {
    width: 100%;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    background: #d4e6e4;
    margin: 0.25rem 0;
}

.db-map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.db-neighbourhood__name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0.25rem;
}

.db-neighbourhood__stats {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.db-stat {
    flex: 1;
    background: #f0f5f4;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.db-stat__label {
    font-size: 0.72rem;
    color: #888;
}

.db-stat__value {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.db-stat__value--active {
    color: #0d7a6e;
}

/* ── NRP Specialist tile ── */
.db-specialist {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 0.5rem 0;
}

.db-specialist__avatar-wrap {
    flex-shrink: 0;
    align-self: start;
}

.db-specialist__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.db-specialist__info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.db-specialist__online-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.db-specialist__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
}

.db-specialist__status {
    display: flex;
    align-items: center;
    font-size: 0.76rem;
    color: #8d8d8d;
    font-weight: 500;
}

.db-specialist__contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #444;
    margin: 0.85rem 0;
}

.db-specialist__contact svg {
    width: 16px;
    height: 16px;
    stroke: #0d7a6e;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.db-specialist__btn {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.8rem 1rem;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.db-specialist__btn:hover {
    background: #0d7a6e;
}

/* ── Welcome Modal ── */
.welcome-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.welcome-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.welcome-modal {
    display: flex;
    width: 100%;
    max-width: 850px;
    min-height: 400px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    transform: translateY(-80px);
    transition: transform 0.4s cubic-bezier(0.34, 1.26, 0.64, 1);
    margin: 1.5rem;
}

.welcome-modal.is-visible {
    transform: translateY(0);
}

.welcome-modal__left {
    width: 260px;
    flex-shrink: 0;
    background-image: url('/images/BlueGradientBackground.png');
    background-size: cover;
    background-position: center;
    background-color: #0d7a6e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1.75rem 1.25rem 0;
    position: relative;
}

.welcome-modal__heading {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.welcome-modal__fox {
    position: absolute;
    left: 87px;
    top: 125px;
    width: 100%;
    max-width: 200px;
    display: block;
    object-fit: contain;
}

.welcome-modal__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 2.5rem;
    min-width: 0;
    text-align: left;
}

.welcome-modal__close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 0.9rem;
    color: #000000;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0;
    margin-bottom: auto;
    font-weight: 500;
}

.welcome-modal__close:hover {
    color: #0d7a6e;
}

.welcome-modal__close svg {
    display: block;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.welcome-modal__close:hover svg path {
    fill: #0d7a6e;
}

.welcome-modal__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
    color: #000000;
    line-height: 1.7;
    margin-bottom: auto;
}

.welcome-modal__divider {
    width: 100%;
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 0.5rem 0;
}

.welcome-modal__suppress {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.9rem;
    color: #000000;
    cursor: pointer;
    user-select: none;
}

/* Hide native checkbox, replace with custom circle */
.welcome-modal__suppress input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #000000;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 2.5rem;
    transition: border-color 0.2s, background 0.2s;
}

.welcome-modal__suppress input[type="checkbox"]:checked {
    background: #0d7a6e;
    border-color: #0d7a6e;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='1,5 4.5,8.5 11,1' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 10px;
}

@media (max-width: 580px) {
    .welcome-modal {
        flex-direction: column;
        margin: 0.75rem;
    }

    .welcome-modal__left {
        width: 100%;
        height: 62px;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        padding: 1rem;
    }

    .welcome-modal__heading {
        position: static;
        font-size: 1.6rem;
    }

    .welcome-modal__fox {
        max-width: 40px;
        top: 5px;
        right: 15px;
        left: unset;
    }

    .welcome-modal__right {
        padding: 1.25rem;
    }
}

/* ── Committee Members tile ── */
.db-members {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.db-members__row {
    border-top: 1px solid #f0f0f0;
}

.db-members__row td {
    padding: 0.65rem 0.5rem;
    font-size: 0.83rem;
    color: #333;
    vertical-align: middle;
}

.db-members__name {
    font-weight: 500;
    white-space: nowrap;
}

.db-members__email {
    color: #555;
}

.db-members__phone {
    white-space: nowrap;
    color: #555;
}

.db-members__actions {
    text-align: right;
    white-space: nowrap;
}

.db-members__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    color: #000000;
    transition: background 0.15s, color 0.15s;
}

.db-members__btn:hover {
    background: #f0f5f4;
    color: #0d7a6e;
}

.db-members__btn--delete:hover {
    background: #fef2f2;
    color: #dc2626;
}

.db-members__btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Horizontal scroll wrapper for the members table */
.db-members__scroll {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.db-members__scroll::-webkit-scrollbar {
    display: none;
}

.db-members__scroll-track {
    position: relative;
    height: 6px;
    background: #e8e8e8;
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}

.db-members__scroll-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #0d7a6e;
    border-radius: 3px;
    transition: left 0.05s linear;
}

.db-members {
    min-width: 480px; /* prevents squishing before scroll kicks in */
}

.db-members__add-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 0.25rem;
}

.db-members__add-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    font-size: 0.83rem;
    color: #0d7a6e;
    cursor: pointer;
    padding: 0;
    font-weight: 500;
}

.db-members__add-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.db-members__add-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    color: #888;
    transition: color 0.15s;
}

.db-members__add-icon:hover { color: #0d7a6e; }

.db-members__add-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================================
   Dashboard — Right column drops below left at 1000 px
   ========================================================================== */

@media (max-width: 1000px) {
    .db-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .db-layout__left,
    .db-layout__right {
        width: 100%;
    }
}

/* ==========================================================================
   Mobile Sidebar Overlay
   ========================================================================== */

.app-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 490;
}

.app-sidebar-overlay.is-active {
    display: block;
}

/* Prevent body scroll while mobile sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* Hamburger button — hidden on desktop */
.app-header__menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    flex-shrink: 0;
    border-radius: 6px;
    transition: background 0.2s;
}

.app-header__menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.app-header__menu-btn svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Dashboard — Mobile Responsive  (≤ 750 px)
   ========================================================================== */

@media (max-width: 750px) {

    /* ── App shell: let the page scroll naturally ── */
    .app-shell {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    /* ── Sidebar becomes a fixed slide-in drawer ── */
    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px;
        z-index: 500;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        /* always show full labels in drawer */
        width: 260px !important;
    }

    .app-sidebar.is-mobile-open {
        transform: translateX(0);
    }

    /* Always show labels inside the mobile drawer */
    .app-sidebar .app-sidebar__label,
    .app-sidebar .app-sidebar__chevron {
        opacity: 1 !important;
        pointer-events: auto !important;
        width: auto !important;
    }

    /* Hide the desktop collapse toggle inside the drawer */
    .app-sidebar__toggle {
        display: none;
    }

    /* ── Right panel: normal document flow ── */
    .app-right {
        height: auto;
        overflow-y: visible;
        min-height: 100vh;
        width: 100%;
    }

    /* ── Header ── */
    .app-header__menu-btn {
        display: flex;
    }

    /* Hide verbose header links on mobile */
    .app-header__action-link {
        display: none;
    }

    /* Keep user avatar visible but slim */
    .app-header__username {
        display: none;
    }

    .app-header__user svg {
        display: inline-block;
    }

    /* ── Main content ── */
    .app-main {
        padding: 1rem;
    }

    /* ── Dashboard layout: stack right column below left ── */
    .db-layout {
        flex-direction: column;
    }

    .db-layout__right {
        width: 100%;
    }

    /* ── Progress tile grid: single column, tiles full width ── */
    .db-grid {
        grid-template-columns: 1fr;
    }

    .db-tile {
        width: 100%;
        box-sizing: border-box;
    }

    /* ── Neighbourhood stats: allow wrapping ── */
    .db-neighbourhood__stats {
        flex-wrap: wrap;
    }

    /* ── Tile head: allow badge to wrap below title ── */
    .db-tile__head {
        flex-wrap: wrap;
    }
}

