body {
    background: var(--surface-neutral);
    color: var(--text-primary);
    font-family: "Roboto", Arial, sans-serif;
    min-height: 100vh;
}

.custom-header {
    padding: 0.75rem 0;
}

.custom-header img {
    display: block;
    height: 50px;
    max-width: 100%;
}

.wayfinder-home,
.wayfinder-home:visited {
    color: var(--brand-white);
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
}

.wayfinder-home:hover,
.wayfinder-home:focus {
    color: var(--brand-white);
    text-decoration: underline;
}

.skip-link {
    background: var(--brand-white);
    color: var(--brand-teal-ink);
    left: 0.5rem;
    padding: 0.75rem 1rem;
    position: fixed;
    top: 0.5rem;
    z-index: 1100;
}

.custom-container {
    background: var(--surface-panel);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    margin: 1.5rem auto;
    max-width: 1200px;
    padding: clamp(1rem, 3vw, 2rem);
}

h1 {
    color: var(--brand-teal-ink);
    text-align: center;
}

h2,
h3 {
    color: var(--brand-teal-ink);
}

a {
    color: var(--link-color);
}

a:hover,
a:focus {
    color: var(--link-hover);
}

.card {
    border: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: var(--brand-teal-dark);
    color: var(--brand-white);
}

.card-header h2,
.card-header h3 {
    color: inherit;
    margin-bottom: 0;
}

.form-label {
    color: var(--brand-teal-ink);
    font-weight: 700;
}

.btn-primary,
.btn-primary:visited {
    background: var(--brand-teal-dark);
    border-color: var(--brand-teal-dark);
    color: var(--brand-white);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-teal-ink);
    border-color: var(--brand-teal-ink);
    color: var(--brand-white);
}

.btn-outline-primary {
    border-color: var(--brand-teal-dark);
    color: var(--brand-teal-ink);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--brand-teal-dark);
    border-color: var(--brand-teal-dark);
    color: var(--brand-white);
}

.finder-card {
    height: 100%;
}

.finder-card .card-body {
    display: flex;
    flex-direction: column;
}

.finder-card form {
    margin-top: auto;
}

.map-frame {
    border: 0;
    display: block;
    min-height: 34rem;
    width: 100%;
}

.qr-code {
    height: 150px;
    width: 150px;
}

.location-list {
    max-height: 68vh;
    overflow-y: auto;
}

.location-row[hidden] {
    display: none !important;
}

.location-row.active {
    background: var(--surface-teal-strong);
    border-color: var(--brand-teal-dark);
    color: var(--text-primary);
}

.location-code {
    min-width: 5rem;
}

.required::after {
    color: var(--brand-red-dark);
    content: " *";
}

.stats-total {
    font-size: 1.5rem;
    font-weight: 700;
}

@media (max-width: 576px) {
    .custom-header .container {
        justify-content: center !important;
    }

    .wayfinder-home {
        width: 100%;
        text-align: center;
    }

    .custom-container {
        border-radius: 0;
        margin-top: 0;
    }

    .map-frame {
        min-height: 26rem;
    }
}
