 :root { --ink: #182938; --muted: #526574; --surface: #fff; --canvas: #f6f8f8; --line: #c9d5d7; --brand: #006d77; --brand-dark: #004e56; --tint: #e4f4f3; --focus: #b45309; --brand-rgb: 0, 109, 119; --brand-dark-rgb: 0, 78, 86; }
html { min-width: 320px; }
body { min-width: 320px; margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
#blazor-error-ui { color-scheme: light only; background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, .2); box-sizing: border-box; display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
a, .btn-link { color: var(--brand-dark); }
a:hover { color: #003b41; }
.btn-primary { --bs-btn-color: #fff; --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-focus-shadow-rgb: var(--brand-rgb); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-outline-primary { --bs-btn-color: var(--brand-dark); --bs-btn-border-color: var(--brand); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-focus-shadow-rgb: var(--brand-rgb); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); --bs-btn-disabled-color: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.form-check-input:checked, .form-check-input[type=checkbox]:indeterminate { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .25rem rgba(var(--brand-rgb), .25); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: none; }
/* Keep the shared shell aligned with the Landing page's 75rem content cap. */
.app-container { width: min(75vw, 75rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: .5rem; left: .5rem; padding: .6rem .8rem; background: #fff; color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.app-header { background: #fff; border-bottom: 1px solid var(--line); }
.app-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.app-brand { display: inline-flex; flex-direction: column; align-items: flex-start; color: var(--ink); font-weight: 800; letter-spacing: -.04em; line-height: 1; text-decoration: none; }.app-brand-name { font-size: 1.3rem; }.app-brand-name span { color: var(--brand); }.app-brand-subtitle { margin: .28rem 0 0 .3rem; color: var(--muted); font-size: .62rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.app-nav-links { display: flex; flex-wrap: wrap; gap: .25rem; }.app-nav-links a { border-radius: .35rem; color: var(--muted); font-weight: 650; padding: .55rem .7rem; text-decoration: none; }.app-nav-links a.active { background: var(--tint); color: var(--brand-dark); }.app-nav-links a:hover { background: #edf1f1; }
.app-main { min-height: 60vh; padding-block: 2.5rem 5rem; }.app-footer { border-top: 1px solid var(--line); padding: 1.5rem 0 4rem; }.app-disclaimer, .comparison-disclaimer { color: var(--muted); font-size: .9rem; max-width: 70rem; }
.page-intro { max-width: 46rem; margin-bottom: 1.75rem; }.eyebrow { margin: 0 0 .35rem; color: var(--brand-dark); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.page-intro h1 { letter-spacing: -.035em; }
.surface-card, .scenario-editor, .comparison-results { padding: clamp(1rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: .65rem; }.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }.empty-state { padding: 1.5rem; border: 1px dashed #8ca3a8; border-radius: .5rem; background: #fbfcfc; }.empty-state p { margin-bottom: 0; color: var(--muted); }.plan-list { display: grid; gap: .75rem; padding: 0; list-style: none; }.plan-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; }.plan-actions { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }.plan-actions form { margin: 0; }.provenance { padding: .75rem 1rem; background: var(--tint); border-left: 4px solid var(--brand); color: var(--ink); }

/* Import labels can wrap at different points. Reserve two label lines so each row's controls stay aligned. */
@media (min-width: 768px) { .import-review-grid > [class*="col-"] > .form-label { min-height: 3rem; } }

.scenario-picker { display: grid; grid-template-columns: repeat(4, 9rem); gap: .5rem; width: max-content; }
.scenario-picker .btn { white-space: nowrap; }

.usage-table-wrap { margin: 0 -.25rem; }.usage-table { min-width: 32rem; margin: 0; }.usage-table th { white-space: nowrap; }.usage-table input { min-width: 7rem; }

.diff-headline {
    padding: .75rem;
    background: var(--tint);
    border-left: .25rem solid var(--brand);
    font-size: 1.1rem;
}

.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: .75rem;
}

.cost-card {
    padding: .75rem;
    background: #f7fbfb;
    border: 1px solid var(--line);
    border-radius: .25rem;
}

.cost-value {
    margin-bottom: .25rem;
    color: var(--brand-dark);
    font-size: 1.5rem;
    font-weight: 700;
}

.comparison-title { align-items: flex-start; }
.comparison-report-download { flex: none; white-space: nowrap; }
.comparison-controls { padding: .75rem; background: var(--tint); border: 1px solid var(--line); border-radius: .4rem; }
.plan-picker { display: flex; flex-wrap: wrap; gap: .45rem; }
.comparison-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.comparison-table { width: 100%; min-width: 48rem; border-collapse: separate; border-spacing: 0; }
.comparison-table caption { padding: .6rem .75rem; color: var(--muted); caption-side: top; text-align: left; }
.comparison-table th, .comparison-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table thead th { position: sticky; z-index: 2; top: 0; height: 68px; background: var(--surface); box-shadow: 0 1px var(--line); }
.comparison-table .attribute-heading { min-width: 14rem; }
.comparison-table .plan-heading { min-width: 12rem; }
.plan-name, .plan-carrier, .cost-headline, .cost-caption { display: block; }
.plan-name { font-weight: 750; }.plan-carrier, .cost-caption { color: var(--muted); font-size: .8rem; }.cost-headline { color: var(--brand-dark); font-weight: 750; }.remove-plan { margin-top: .2rem; padding: 0; border: 0; background: transparent; color: var(--brand-dark); font-size: .8rem; text-decoration: underline; }
.comparison-table tbody tr:not(.category-row):not(.identical-row):nth-child(even) { background: #f7fbfb; }
.comparison-table tbody tr:not(.category-row):not(.identical-row):hover { background: var(--tint); }
.comparison-table .category-row th { padding-block: .45rem; background: #e9efef; color: var(--brand-dark); font-size: .85rem; letter-spacing: .02em; }
.comparison-table .identical-row td { background: var(--tint); }
.scenario-editor summary { cursor: pointer; }.scenario-editor summary::marker { color: var(--brand); }
.benefit-grid tbody tr:nth-child(even) { background: #f7fbfb; }.benefit-grid tbody tr:hover { background: var(--tint); }.benefit-grid .benefit-checkbox { float: none; margin: 0; border-color: var(--brand); cursor: pointer; }.benefit-grid .benefit-checkbox:checked { background-color: var(--brand); border-color: var(--brand); }

/* Landing page */
.landing-hero, .landing-section, .landing-closing { max-width: 75rem; margin-inline: auto; }
.landing-hero { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.landing-hero-copy, .landing-section > div, .landing-faq { min-width: 0; }
.landing-hero h1 { max-width: 18ch; letter-spacing: -.035em; font-size: clamp(1.9rem, 4vw, 2.8rem); }
/* FocusOnNavigate moves focus here for screen-reader context; it is not an editable control. */
.landing-hero h1:focus { outline: 0; }
.landing-lead { max-width: 68ch; font-size: 1.08rem; }
.landing-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.landing-trust { max-width: 62ch; margin-top: 1rem; color: var(--muted); font-size: .95rem; }
.landing-image { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: .65rem; }
.landing-section { margin-top: clamp(3.5rem, 8vw, 7rem); }
.landing-section h2, .landing-closing h2 { letter-spacing: -.025em; }
.landing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.landing-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); }
.landing-card h3, .landing-steps h3 { font-size: 1.1rem; }
.landing-card p, .landing-steps p { margin-bottom: 0; }
.landing-section-image { max-width: 60rem; margin: 1.5rem auto 0; }
.landing-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; padding: 0; list-style-position: inside; }
.landing-steps li { padding: 1.25rem; border-left: .25rem solid var(--brand); background: var(--surface); }
.landing-steps h3 { display: inline; margin-left: .35rem; }
.landing-steps p { margin-top: .75rem; }
.landing-figure { max-width: 100%; margin: 2rem 0 0; padding: 1rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); color: var(--brand); }
.landing-figure svg { display: block; width: 100%; height: auto; }
.landing-flow-node rect { fill: var(--tint); stroke: var(--brand); stroke-width: 2; }
.landing-flow-node text { fill: var(--ink); font-size: 16px; font-weight: 700; text-anchor: middle; }
.landing-flow-arrow { fill: none; stroke: currentColor; stroke-width: 2; }
.landing-figure figcaption { margin-top: .75rem; color: var(--muted); text-align: center; }
.landing-limits { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(16rem, .7fr); gap: 2rem; align-items: start; }
.landing-limits ul { max-width: 68ch; padding-left: 1.25rem; }.landing-limits li + li { margin-top: .7rem; }
.landing-faq dt { margin-top: 1.5rem; font-weight: 750; }.landing-faq dd { max-width: 68ch; margin: .35rem 0 0; }
.landing-closing { margin-top: clamp(3.5rem, 8vw, 7rem); padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: .65rem; background: var(--tint); }

@media (min-width: 900px) { .landing-hero { grid-template-columns: minmax(0, 1fr) minmax(18rem, .8fr); } }

@media (max-width: 390px) {
    .app-container { width: min(100% - 1rem, 75rem); }.app-nav { align-items: flex-start; flex-direction: column; padding-block: .75rem; gap: .35rem; }.app-nav-links { width: 100%; justify-content: space-between; }.app-nav-links a { padding-inline: .45rem; }.section-heading, .plan-card { align-items: flex-start; flex-direction: column; }.scenario-picker { grid-template-columns: repeat(4, 1fr); width: 100%; }.landing-actions .btn { width: 100%; }.landing-figure { padding: .5rem; }
}
@media (max-width: 600px) { .comparison-title { flex-direction: column; }.comparison-table { min-width: 38rem; }.landing-grid, .landing-steps, .landing-limits { grid-template-columns: 1fr; }.landing-hero { gap: 1.5rem; } }
@media print { .comparison-controls, .comparison-title .btn, .remove-plan, .scenario-picker, .scenario-editor { display: none; }.comparison-table-wrap { overflow: visible; }.comparison-table { min-width: 0; }.comparison-table thead th { position: static; }.comparison-results { border: 0; padding: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

.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/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMj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TUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}
