:root {
    --desk: #dde3e0;
    --ink: #1d2b3a;
    --ink-soft: #4a5a6a;
    --teal: #1b7f79;
    --amber: #ffb703;
    --paper: #fbf7ea;
}

@media (prefers-color-scheme: dark) {
    :root {
        --desk: #15202b;
        --ink: #e8edf2;
        --ink-soft: #a9b8c6;
        --teal: #5fd0c8;
        --paper: #1f2d3b;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--desk);
    color: var(--ink);
    font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.55;
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: calc(.75rem + env(safe-area-inset-top, 0px)) 1.25rem .75rem;
}

.brand { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; }
.brand-mark { width: 2.5rem; height: 2.5rem; flex: none; }
.brand-name { font-family: "Nunito", "Segoe UI", system-ui, sans-serif; font-weight: 800; font-size: 1.7rem; line-height: 1; }
.brand-accent { color: var(--teal); }

.content { max-width: 52rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

h1 {
    margin: 0 0 1rem;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-weight: 700;
    font-size: clamp(2.3rem, 8vw, 3.6rem);
    line-height: 1;
}

.lead { margin: 0 0 1.5rem; color: var(--ink-soft); font-size: 1.15rem; }

.btn {
    display: inline-block;
    padding: .6rem 1.1rem;
    background: var(--amber);
    color: #1d2b3a;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}
.btn:hover { filter: brightness(.95); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink-soft); }
.btn-big { padding: .85rem 1.6rem; font-size: 1.15rem; }

.empty { padding: 1.25rem; background: var(--paper); border-radius: 12px; color: var(--ink-soft); }
.empty p { margin: 0; }

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

#blazor-error-ui {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0;
    padding: .75rem 1.25rem;
    background: #c8372d;
    color: #fff;
    z-index: 1000;
}

/* Onboarding */
.step { margin: 0 0 .5rem; color: var(--teal); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }

.choices { display: grid; gap: .9rem; }
.choice {
    display: grid;
    gap: .3rem;
    width: 100%;
    padding: 1.1rem 1.25rem;
    text-align: left;
    font: inherit;
    color: var(--ink);
    background: var(--paper);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
}
.choice:hover { border-color: var(--amber); }
.choice:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.choice-name { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.choice-desc { color: var(--ink-soft); }

.field { display: grid; gap: .4rem; margin: 0 0 1.25rem; }
.field-label { font-weight: 600; }
.input {
    width: 100%;
    padding: .75rem .9rem;
    font: inherit;
    color: var(--ink);
    background: var(--paper);
    border: 2px solid var(--ink-soft);
    border-radius: 10px;
}
.input:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field-error { margin: 0; color: #c8372d; font-weight: 600; }
@media (prefers-color-scheme: dark) { .field-error { color: #ff8a80; } }

.summary { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.5rem; color: var(--ink-soft); }
.link-btn { padding: 0; font: inherit; color: var(--teal); background: none; border: 0; text-decoration: underline; cursor: pointer; }

button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
button.btn-big { font-size: 1.15rem; }
button.btn:disabled { opacity: .6; cursor: progress; }

/* Account line on the jobs page */
.account-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 1.25rem; }
.trial-pill { padding: .15rem .65rem; border-radius: 999px; background: var(--amber); color: #1d2b3a; font-size: .9rem; font-weight: 600; }

/* Blazor focuses the heading after navigation (for screen readers); no visible box needed. */
h1:focus { outline: none; }
