html, body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ════════════════════════════════════════════════════════════════════════════
   Shared landing / public-page components (used by Home + Plans pages)
   ════════════════════════════════════════════════════════════════════════════ */

/* Header */
.landing-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 64px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(1.5rem, calc((100% - 72rem) / 2));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.landing-brand:hover { color: #0f172a; text-decoration: none; }

.landing-brand-mark {
    width: 34px;
    height: 34px;
    background: #dc2626;
    color: #fff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.landing-brand-mark--sm {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 0.75rem;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Links & buttons */
.landing-link {
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

.landing-link:hover { color: #0f172a; text-decoration: none; }

.landing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.125rem;
    border-radius: 6px;
    transition: background 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
}

.landing-button:hover {
    background: #b91c1c;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.landing-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.125rem;
    border-radius: 6px;
    border: 1.5px solid #e2e8f0;
    transition: border-color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.landing-secondary:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
}

.landing-button.large,
.landing-secondary.large {
    padding: 0.8125rem 2rem;
    font-size: 1rem;
    border-radius: 8px;
}

/* Footer */
.landing-footer {
    padding: 1.75rem max(1.5rem, calc((100% - 72rem) / 2));
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #64748b;
    gap: 1rem;
    flex-wrap: wrap;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.landing-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing-footer-brand strong {
    display: block;
    color: #0f172a;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.landing-footer-brand p {
    margin: 0;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.landing-footer-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.not-found-page {
    min-height: 100vh;
    background: #f8fafc;
}

.not-found-main {
    align-items: center;
    display: flex;
    min-height: calc(100vh - 64px);
    padding: 3rem max(1.5rem, calc((100% - 72rem) / 2));
}

.not-found-panel {
    max-width: 42rem;
}

.not-found-panel h1 {
    color: #0f172a;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 1rem;
}

.not-found-panel > p:last-of-type {
    color: #475569;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 34rem;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.not-found-quote {
    margin-top: 2rem;
}

.help-page {
    max-width: 72rem;
}

.help-hero {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1.25rem;
}

.help-hero p {
    color: #344767;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 0;
    max-width: 56rem;
}

.help-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.help-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.25rem;
}

.help-section h5 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.help-section p,
.help-section li {
    color: #4b5563;
    font-size: 0.925rem;
    line-height: 1.65;
}

.help-section ul,
.help-section ol {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.help-section li + li {
    margin-top: 0.35rem;
}

.help-note {
    background: #f8fafc;
    border-left: 3px solid #1a73e8;
    border-radius: 6px;
    margin-top: 1rem;
    padding: 0.75rem 0.85rem;
}

@media (max-width: 640px) {
    .landing-header { padding: 0 1rem; }

    .landing-footer {
        padding: 1.5rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .not-found-main {
        align-items: flex-start;
        min-height: calc(100vh - 64px);
        padding: 5rem 1.25rem 2rem;
    }

    .not-found-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image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IgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.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;
}

:root {
    --dojo-primary: #1a73e8;
    --dojo-ink: #202124;
    --dojo-muted: #7b809a;
    --dojo-surface: #fff;
}

body {
    color: var(--dojo-ink);
}

.main-content {
    margin-left: 17.125rem;
}

.navbar-main {
    margin-top: 0.75rem;
}

.content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.card {
    border: 0;
    box-shadow: 0 4px 18px rgba(20, 20, 20, 0.06);
}

.table thead th {
    border-bottom: 1px solid #e9ecef;
    color: #7b809a;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table tbody td {
    color: #3c4043;
    font-size: 0.875rem;
}

.badge {
    text-transform: none;
}

.btn {
    margin-bottom: 0;
}

.form-control,
.form-select {
    border: 1px solid #d2d6da;
    padding: 0.625rem 0.75rem;
}

.form-control-sm,
.form-select-sm {
    min-height: 2.25rem;
    padding: 0.45rem 0.65rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--dojo-primary);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.12);
}

.dojo-page-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.dojo-page-header h4 {
    margin-bottom: 0;
}

.dojo-muted {
    color: var(--dojo-muted);
}

.http-status-page {
    max-width: 72rem;
}

.http-status-shell {
    background: #f8fafc;
    min-height: calc(100vh - 64px);
    padding: 2rem max(1.5rem, calc((100% - 72rem) / 2)) 3rem;
}

.http-status-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
}

.http-status-code-link {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #344767;
    display: flex;
    flex-direction: column;
    min-height: 7rem;
    padding: 1rem;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.http-status-code-link:hover {
    border-color: #dc2626;
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.08);
    color: #344767;
    text-decoration: none;
    transform: translateY(-2px);
}

.http-status-code {
    color: #dc2626;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.http-status-description {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 0.75rem;
}

.http-status-detail {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.http-status-detail-header {
    align-items: center;
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.http-status-detail-code {
    align-items: center;
    background: #dc2626;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 800;
    height: clamp(5rem, 13vw, 7rem);
    justify-content: center;
    line-height: 1;
    min-width: clamp(6.5rem, 17vw, 9rem);
    padding: 0 1rem;
}

.http-status-detail h1 {
    color: #0f172a;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0;
}

.http-status-quote {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 6px solid #dc2626;
    border-radius: 8px;
    margin: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.http-status-quote blockquote {
    color: #7f1d1d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.4rem, 4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.http-status-quote figcaption {
    border-top: 1px solid rgba(220, 38, 38, 0.25);
    color: #9f1239;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    font-weight: 700;
    gap: 0.2rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
}

.http-status-quote cite {
    color: #b45309;
    font-style: normal;
    font-weight: 600;
}

@media (max-width: 1199.98px) {
    .main-content {
        margin-left: 0;
    }

    .sidenav {
        transform: translateX(-17.125rem);
        transition: transform 0.2s ease;
        z-index: 1040;
    }

    body.g-sidenav-pinned .sidenav {
        transform: translateX(0);
    }
}

@media (max-width: 575.98px) {
    .content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .dojo-page-header {
        align-items: stretch;
        flex-direction: column;
    }
}
