html, body {
    font-family: 'Outfit', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #fbfaf8;
    color: #193f3c;
}

html {
    scroll-behavior: smooth;
}

/* Keep Visual Studio / Blazor debug chrome from sitting on the landing page. */
#components-reconnect-modal:not(.components-reconnect-show):not(.components-reconnect-paused):not(.components-reconnect-failed):not(.components-reconnect-rejected) {
    display: none !important;
}

iframe[src*="browserLink"],
#browserLink,
[id^="__browserLink"] {
    display: none !important;
}

a, .btn-link {
    color: #193f3c;
}

.btn-primary {
    color: #fbfaf8;
    background-color: #c29341;
    border-color: #a07830;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #fbfaf8, 0 0 0 0.25rem rgba(194, 147, 65, 0.35);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50430;
}

.validation-message {
    color: #b54b4b;
}

/* Global Blazor circuit error strip — only visible when Blazor adds .show */
#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    padding: 0.85rem 2.5rem 0.85rem 1.25rem;
    background: #193f3c;
    color: #fbfaf8;
    box-shadow: 0 -8px 28px rgba(15, 40, 38, 0.28);
    font-family: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.92rem;
    line-height: 1.45;
}

#blazor-error-ui.show {
    display: block;
}

#blazor-error-ui strong {
    color: #d4b36a;
    font-weight: 600;
}

#blazor-error-ui a {
    color: #d4b36a;
    margin-left: 0.85rem;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 1rem;
    top: 0.7rem;
    cursor: pointer;
}

#components-reconnect-modal {
    border: 1px solid #c29341;
    background: #fbfaf8;
    color: #193f3c;
    padding: 1.2rem 1.6rem;
}

#components-reconnect-modal .reconnect-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#components-reconnect-modal .reconnect-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.app-error-panel {
    max-width: 36rem;
    margin: 3rem auto;
    padding: 2rem 1.5rem;
    text-align: center;
    font-family: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #193f3c;
}

.app-error-kicker {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #a07830;
}

.app-error-panel h1 {
    margin: 0 0 0.6rem;
    font-family: "Baskervville", "Cormorant Garamond", serif;
    font-weight: 400;
    font-size: 2rem;
}

.app-error-body {
    margin: 0 0 1.2rem;
    color: rgba(25, 63, 60, 0.72);
    line-height: 1.55;
}

.app-error-details {
    text-align: left;
    background: #f6f2ea;
    border: 1px solid #e7e2d8;
    padding: 0.8rem 1rem;
    font-size: 0.82rem;
    overflow: auto;
    margin: 0 0 1.2rem;
}

.app-error-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
