:root {
    color-scheme: light;
    font-family: system-ui, sans-serif;
    line-height: 1.55;
    color: #14243a;
    background: #f3f6fb;
    --surface: #fff;
    --muted: #4e5f75;
    --border: #d5deea;
    --link: #164a89;
    --accent: #154b89;
    --active: #e5effc;
    --success: #d9f3e6;
    --success-text: #18513b;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
a {
    color: var(--link);
    text-underline-offset: 0.2em;
}
a:hover {
    text-decoration-thickness: 0.13em;
}
:focus-visible {
    outline: 3px solid #488be7;
    outline-offset: 3px;
}
h1,
h2,
h3 {
    line-height: 1.15;
    margin: 0 0 0.65rem;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}
h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}
h2 {
    font-size: 1.35rem;
}
h3 {
    font-size: 1.08rem;
}
p {
    margin: 0.35rem 0 1rem;
}
p:last-child {
    margin-bottom: 0;
}
.site-header {
    background: #101e36;
    color: #f7fbff;
}
.header-inner {
    max-width: 91rem;
    margin: auto;
    padding: 0.85rem clamp(0.9rem, 4vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}
.site-header a {
    color: inherit;
}
.brand {
    font-size: 1.08rem;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    white-space: nowrap;
}
.brand-mark {
    flex: none;
    width: 2rem;
    height: 2rem;
}
.brand-detail {
    font-weight: 500;
}
.account {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 1rem;
}
.account .button,
.site-header .button {
    background: transparent;
    color: #f7fbff;
    border-color: #69788e;
}
.shell {
    max-width: 91rem;
    margin: auto;
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    gap: clamp(1rem, 4vw, 2.5rem);
    padding: clamp(1rem, 4vw, 2rem);
}
.public-shell {
    display: block;
    max-width: 73rem;
}
.sidebar {
    align-self: start;
    display: grid;
    gap: 0.18rem;
}
.sidebar a {
    padding: 0.56rem 0.8rem;
    border-radius: 0.45rem;
    text-decoration: none;
    color: inherit;
    font-size: 0.94rem;
    font-weight: 550;
}
.sidebar a:hover,
.sidebar a[aria-current='page'] {
    background: var(--active);
    color: var(--link);
}
.sidebar a[aria-current='page'] {
    font-weight: 750;
}
.main {
    min-width: 0;
    max-width: 66rem;
}
.hero,
.card {
    border-radius: 0.85rem;
    padding: clamp(1rem, 3.3vw, 1.65rem);
    margin: 0 0 1rem;
}
.hero {
    color: #f3f9ff;
    background: #183758;
    border: 1px solid #305175;
    background-image: linear-gradient(110deg, #162b48, #153d59 75%, #176262);
}
.hero h1 {
    max-width: 19ch;
}
.hero p {
    max-width: 60ch;
}
.hero .eyebrow {
    color: #a5e9dc;
}
.hero .button {
    background: #a5e9dc;
    color: #102a36;
    border-color: transparent;
}
.hero .secondary {
    background: transparent;
    color: #fff;
    border-color: #a5bbc9;
}
.landing {
    padding: clamp(1.4rem, 7vw, 5rem);
    margin-top: 1rem;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
}
.grid {
    display: grid;
    gap: 0.85rem;
}
.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.row,
.list-row,
.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}
.row,
.list-row {
    justify-content: space-between;
}
.row h1,
.row h2,
.row h3 {
    margin-bottom: 0;
}
.list-row {
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
}
.list-row:last-child {
    padding-bottom: 0;
}
.eyebrow {
    font-size: 0.875rem;
    font-weight: 750;
    color: var(--muted);
}
.muted {
    color: var(--muted);
}
.block {
    display: block;
}
.metric {
    font-size: 2rem;
    font-weight: 750;
}
.metric span {
    font-size: 1rem;
    color: var(--muted);
}
progress {
    width: 100%;
    height: 0.66rem;
    display: block;
    accent-color: var(--accent);
    margin: 0.65rem 0 0;
}
.badge {
    background: var(--active);
    color: var(--link);
    border-radius: 99rem;
    padding: 0.22rem 0.65rem;
    font-size: 0.875rem;
    font-weight: 650;
}
.success {
    background: var(--success);
    color: var(--success-text);
}
.notice {
    background: var(--active);
    color: var(--link);
    border: 1px solid var(--border);
    border-radius: 0.55rem;
    padding: 0.7rem 0.95rem;
    margin: 0.7rem 0 1rem;
}
.notice ul {
    margin: 0;
    padding-left: 1.25rem;
}
.danger {
    color: #831d28;
    background: #fff0f0;
    border-color: #ebb8ba;
}
.button {
    display: inline-block;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.55rem 0.85rem;
    border-radius: 0.45rem;
}
.button:hover {
    filter: brightness(1.12);
}
.button.secondary {
    background: transparent;
    color: var(--link);
    border-color: var(--border);
}
.site-header .button.secondary {
    color: #fff;
    border-color: #69788e;
}
.button.compact {
    padding: 0.25rem 0.6rem;
    font-size: 0.875rem;
}
.stack {
    display: grid;
    gap: 0.9rem;
    margin-top: 0.85rem;
}
.check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}
.check input {
    flex: none;
    margin-top: 0.35rem;
}
label {
    font-size: 0.95rem;
    font-weight: 600;
}
label .muted {
    font-weight: 400;
}
input,
textarea,
select {
    font: inherit;
    accent-color: var(--accent);
    color: inherit;
}
input:not([type='checkbox'], [type='radio'], [type='hidden']),
select,
textarea {
    display: block;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 0.38rem;
    background: var(--surface);
    margin-top: 0.28rem;
    width: 100%;
}
textarea {
    resize: vertical;
}
fieldset {
    border: 1px solid var(--border);
    border-radius: 0.45rem;
    min-width: 0;
}
legend,
summary {
    font-weight: 700;
}
summary {
    cursor: pointer;
    color: var(--link);
}
.steps {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}
.step {
    margin-top: 0.65rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.8rem;
    scroll-margin: 1rem;
}
.step.current {
    border-color: var(--accent);
    box-shadow: inset 0.2rem 0 var(--accent);
}
.step p {
    margin-top: 0.7rem;
}
.items {
    padding-left: 1.4rem;
}
.items li + li {
    margin-top: 0.35rem;
}
.pre-line {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.credential {
    font-family: ui-monospace, monospace;
}
.pagination ul {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    padding-left: 0;
}
.skip-link {
    position: absolute;
    top: -5rem;
    left: 0.5rem;
    padding: 0.6rem;
    background: var(--surface);
}
.skip-link:focus {
    top: 0.5rem;
}
@media (max-width: 46rem) {
    .shell {
        display: block;
    }
    .sidebar {
        display: flex;
        flex-wrap: wrap;
        margin: 0 0 1rem;
    }
    .sidebar a {
        padding: 0.4rem 0.55rem;
    }
    .three {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 32rem) {
    .two {
        grid-template-columns: 1fr;
    }
    .account > a {
        max-width: 7rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
:root[data-appearance='dark'] {
    color-scheme: dark;
    color: #e8f0fa;
    background: #101a2a;
    --surface: #172438;
    --muted: #b1c1d5;
    --border: #3c4e65;
    --link: #9bc8ff;
    --active: #203855;
    --success: #1b4239;
    --success-text: #b8ebd8;
}
@media (prefers-color-scheme: dark) {
    :root[data-appearance='system'] {
        color-scheme: dark;
        color: #e8f0fa;
        background: #101a2a;
        --surface: #172438;
        --muted: #b1c1d5;
        --border: #3c4e65;
        --link: #9bc8ff;
        --active: #203855;
        --success: #1b4239;
        --success-text: #b8ebd8;
    }
}
@media (max-width: 27rem) {
    .brand {
        gap: 0.3rem;
        font-size: 1rem;
    }
    .brand-mark {
        width: 1.7rem;
        height: 1.7rem;
    }
}

/* ---------- Header brand ---------- */
.brand {
    gap: 0.85rem;
}
.brand-wordmark {
    width: 7.5rem;
}
.brand-detail {
    padding-left: 0.85rem;
    border-left: 1px solid rgb(255 255 255 / 0.25);
    font-size: 0.95rem;
    font-weight: 500;
    color: #c9d5e4;
}
.public-header .header-inner {
    max-width: 73rem;
    padding-inline: clamp(1rem, 4vw, 2rem);
}
.public-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.public-nav-link {
    padding: 0.3rem 0.7rem;
    border-radius: 0.45rem;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}
.public-nav-link:hover {
    background: rgb(255 255 255 / 0.08);
}
.site-header .public-nav-cta {
    background: #a5e9dc;
    color: #102a36;
    border-color: #a5e9dc;
    padding: 0.3rem 0.8rem;
}

/* ---------- Landing page ---------- */
body:has(.landing-page) {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #101e36;
}
body:has(.landing-page) .site-header {
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.public-shell:has(.landing-page) {
    flex: 1;
    display: flex;
    max-width: none;
    width: 100%;
    padding: 0;
}
.public-shell:has(.landing-page) .main {
    flex: 1;
    display: flex;
    max-width: none;
}
.landing-page {
    flex: 1;
    display: flex;
    align-items: center;
    color: #f3f9ff;
    background:
        radial-gradient(45rem 30rem at 85% 110%, rgb(31 140 120 / 0.45), transparent 70%),
        radial-gradient(35rem 25rem at 70% 0%, rgb(60 110 200 / 0.25), transparent 70%),
        linear-gradient(160deg, #101e36 0%, #122a47 55%, #123f4a 100%);
}
.landing-inner {
    width: 100%;
    max-width: 73rem;
    margin: auto;
    padding: 3rem clamp(1rem, 4vw, 2rem) 4rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}
.landing-kicker {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    font-weight: 650;
    color: #a5e9dc;
}
.landing-page h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}
.landing-lede {
    font-size: 1.1rem;
    color: #c4d3e6;
    max-width: 36rem;
    margin-bottom: 2rem;
}
.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.landing-actions .button {
    padding: 0.7rem 1.2rem;
    background: #a5e9dc;
    color: #102a36;
    border-color: #a5e9dc;
}
.landing-actions .button.secondary {
    background: transparent;
    color: #fff;
    border-color: rgb(255 255 255 / 0.35);
}
.landing-actions .button.secondary:hover {
    background: rgb(255 255 255 / 0.08);
    filter: none;
}
.landing-art {
    width: 100%;
    max-width: 32rem;
    height: auto;
    justify-self: end;
}
@media (max-width: 52rem) {
    .landing-inner {
        grid-template-columns: 1fr;
    }
    .landing-art {
        max-width: 18rem;
        justify-self: center;
        order: -1;
    }
}
@media (max-width: 32rem) {
    .brand-detail {
        display: none;
    }
}

.profile-content {
    max-width: 36rem;
}

.profile-details {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.profile-details dt {
    font-weight: 650;
}

.profile-details dd {
    margin: 0.2rem 0 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.profile-content input[aria-invalid='true'] {
    border-color: #b53847;
}


.task-resources {
    gap: 1.25rem 2rem;
    margin-top: 1rem;
}

.task-resources .items {
    margin: 0.4rem 0 0;
}

.lab-command {
    max-width: 100%;
    margin: 0.7rem 0;
    padding: 0.75rem 0.95rem;
    border: 1px solid #3e536e;
    border-radius: 0.5rem;
    background: #101e36;
    color: #ddf1fc;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-x: auto;
}

.lab-command code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
