:root {
    color-scheme: light;
    --brand-blue: #003b8f;
    --brand-sky: #0072ce;
    --brand-green: #00a63c;
    --brand-lime: #65c600;
    --ink: #172437;
    --muted: #607085;
    --subtle: #8795a7;
    --page: #f6f8fb;
    --surface: #fff;
    --surface-soft: #eff4f8;
    --line: #dfe7ef;
    --hero: #f1f7fc;
    --shadow: 0 16px 42px rgba(18, 44, 73, .08);
    --font-body: "Inter", Arial, sans-serif;
    --font-display: "Plus Jakarta Sans", "Inter", sans-serif;
    --radius: 18px;
    --radius-sm: 11px;
    --content: 1200px;
}

[data-theme="dark"] {
    color-scheme: dark;
    --brand-blue: #82b8ff;
    --brand-sky: #75bcff;
    --brand-green: #40d978;
    --brand-lime: #a6e75c;
    --ink: #e8eef7;
    --muted: #adbacb;
    --subtle: #8594a8;
    --page: #0d1420;
    --surface: #141e2c;
    --surface-soft: #1c2a3b;
    --line: #2b3b4f;
    --hero: #111d2d;
    --shadow: 0 16px 42px rgba(0, 0, 0, .24);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 15px/1.65 var(--font-body);
    transition: background-color .2s, color .2s;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--brand-sky);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--brand-blue);
}

img,
svg {
    display: block;
}

button {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--brand-lime);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 10px;
    left: 10px;
    transform: translateY(-150%);
    padding: 10px 15px;
    border-radius: 9px;
    background: var(--brand-blue);
    color: #fff;
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

.wrap {
    width: min(var(--content), calc(100% - 48px));
    margin-inline: auto;
}

.topbar {
    position: sticky;
    z-index: 10;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(16px);
}

.topbar-inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand-name {
    font: 800 15px/1.1 var(--font-display);
    letter-spacing: -.04em;
    color: var(--brand-blue);
}

.brand-name span {
    color: var(--brand-green);
}

.brand-caption {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-link {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.theme-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
}

.theme-button svg {
    width: 17px;
    height: 17px;
}

.hero {
    padding: 56px 0 46px;
    background: radial-gradient(ellipse at 88% 12%, rgba(0, 114, 206, .1), transparent 34%), radial-gradient(ellipse at 9% 90%, rgba(0, 166, 60, .08), transparent 34%), var(--hero);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--brand-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.22;
}

h1 {
    max-width: 800px;
    margin-bottom: 16px;
    font-size: clamp(2.15rem, 5vw, 3.7rem);
    letter-spacing: -.055em;
}

.hero-copy {
    max-width: 720px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 17px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags span {
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 34px;
    padding-top: 36px;
    padding-bottom: 80px;
}

.toc {
    position: sticky;
    top: 94px;
    align-self: start;
    max-height: calc(100vh - 112px);
    overflow: auto;
    padding: 17px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.toc-title {
    margin: 0 0 9px 8px;
    color: var(--subtle);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.toc a {
    display: block;
    padding: 6px 8px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    text-decoration: none;
}

.toc a[hidden] {
    display: none !important;
}

.toc a:hover {
    background: var(--surface-soft);
    color: var(--brand-blue);
}

main {
    min-width: 0;
}

.section {
    scroll-margin-top: 95px;
    margin-bottom: 20px;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.section-number {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    background: color-mix(in srgb, var(--brand-sky) 11%, var(--surface));
    color: var(--brand-sky);
    font: 800 13px var(--font-display);
}

h2 {
    margin-bottom: 5px;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    letter-spacing: -.035em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

h3 {
    margin: 0 0 9px;
    font-size: 1.05rem;
    letter-spacing: -.02em;
}

h4 {
    margin: 0 0 7px;
    font-size: .94rem;
}

p {
    margin-bottom: 12px;
}

.muted {
    color: var(--muted);
}

.small {
    color: var(--muted);
    font-size: 13px;
}

.grid {
    display: grid;
    gap: 15px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.demo-box {
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
}

.demo-label {
    display: block;
    margin-bottom: 10px;
    color: var(--subtle);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.callout {
    margin: 16px 0 0;
    padding: 13px 15px;
    border-left: 3px solid var(--brand-sky);
    border-radius: 0 9px 9px 0;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 13px;
}

.callout strong {
    color: var(--ink);
}

.swatch {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.swatch-color {
    min-height: 74px;
    padding: 12px;
    display: flex;
    align-items: flex-end;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.swatch-caption {
    padding: 10px 11px 11px;
}

.swatch-caption strong {
    display: block;
    font-size: 12px;
}

.swatch-caption code {
    color: var(--muted);
    font-size: 11px;
}

code,
pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
    font-size: .9em;
}

pre {
    max-width: 100%;
    overflow: auto;
    margin: 11px 0 0;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 12px;
    line-height: 1.65;
    tab-size: 2;
}

.type-sample {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.type-sample:last-child {
    border: 0;
}

.type-sample small {
    display: block;
    color: var(--subtle);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.type-display {
    font: 800 clamp(25px, 4vw, 38px)/1.2 var(--font-display);
    letter-spacing: -.05em;
}

.type-title {
    font: 700 25px/1.3 var(--font-display);
    letter-spacing: -.035em;
}

.type-subtitle {
    font: 600 18px/1.4 var(--font-display);
}

.type-body {
    font-size: 15px;
}

.type-meta {
    color: var(--muted);
    font-size: 12px;
}

.logo-stage {
    display: grid;
    min-height: 170px;
    place-items: center;
    border: 1px dashed var(--line);
    border-radius: 13px;
    background: var(--surface-soft);
}

.logo-lockup {
    display: flex;
    align-items: center;
    gap: 13px;
}

.logo-lockup img {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.logo-wordmark {
    font: 800 22px/1.1 var(--font-display);
    letter-spacing: -.05em;
    color: var(--brand-blue);
}

.logo-wordmark span {
    color: var(--brand-green);
}

.logo-lockup small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}

.icon-tile {
    display: grid;
    min-height: 76px;
    justify-items: center;
    align-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--brand-sky);
}

.icon-tile svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-tile span {
    color: var(--muted);
    font-size: 10px;
}

.spacing-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.spacing-bar {
    height: 12px;
    max-width: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--brand-sky), var(--brand-green));
}

.spacing-row code {
    color: var(--muted);
    font-size: 12px;
}

.button-row,
.link-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s, background .15s, border-color .15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--brand-blue);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-sky);
    color: #fff;
}

.btn-secondary {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
}

.btn-secondary:hover {
    border-color: var(--brand-sky);
    color: var(--brand-sky);
}

.btn-quiet {
    background: var(--surface-soft);
    color: var(--brand-blue);
}

.btn-danger {
    background: #b42318;
    color: #fff;
}

.btn:disabled {
    transform: none;
    cursor: not-allowed;
    opacity: .5;
}

.text-link {
    color: var(--brand-sky);
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.input {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--ink);
}

.input::placeholder {
    color: var(--subtle);
}

.input:hover {
    border-color: var(--subtle);
}

.input:focus {
    border-color: var(--brand-sky);
    outline: 3px solid color-mix(in srgb, var(--brand-sky) 20%, transparent);
    outline-offset: 1px;
}

.field {
    display: grid;
    gap: 5px;
    margin-bottom: 13px;
}

.field label,
.field-label {
    font-size: 13px;
    font-weight: 650;
}

.hint {
    color: var(--muted);
    font-size: 12px;
}

.search-wrap {
    position: relative;
}

.search-wrap svg {
    position: absolute;
    top: 13px;
    left: 12px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.8;
}

.search-wrap input {
    padding-left: 39px;
}

.control-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 9px 0;
}

.control-line input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin: 2px 0 0;
    accent-color: var(--brand-sky);
}

.control-line label {
    cursor: pointer;
    font-size: 13px;
}

.switch {
    position: relative;
    display: inline-flex;
    width: 48px;
    height: 28px;
    flex: 0 0 auto;
    align-items: center;
    border: 0;
    border-radius: 99px;
    background: #8996a5;
    cursor: pointer;
    transition: background .2s;
}

.switch::after {
    width: 20px;
    height: 20px;
    margin-left: 4px;
    border-radius: 50%;
    background: white;
    content: "";
    transition: transform .2s;
}

.switch[aria-checked="true"] {
    background: var(--brand-green);
}

.switch[aria-checked="true"]::after {
    transform: translateX(20px);
}

.switch:focus-visible {
    outline: 3px solid var(--brand-lime);
    outline-offset: 3px;
}

.switch-demo {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.form-status {
    min-height: 24px;
    margin: 10px 0 0;
    color: var(--brand-green);
    font-size: 13px;
    font-weight: 650;
}

.card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
}

.card-band {
    height: 7px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky), var(--brand-green), var(--brand-lime));
}

.card-body {
    padding: 17px;
}

.card-meta {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.card h3 {
    margin: 7px 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 99px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.badge.success {
    background: color-mix(in srgb, #00a63c 13%, var(--surface));
    color: #087a32;
}

.badge.warning {
    background: color-mix(in srgb, #e99b00 17%, var(--surface));
    color: #8c5a00;
}

.badge.info {
    background: color-mix(in srgb, #0072ce 13%, var(--surface));
    color: #0055a0;
}

[data-theme="dark"] .badge.success {
    color: #68e694;
}

[data-theme="dark"] .badge.warning {
    color: #ffd16a;
}

[data-theme="dark"] .badge.info {
    color: #91c8ff;
}

.alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 42px 13px 14px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand-sky);
    border-radius: 10px;
    background: var(--surface-soft);
}

.alert strong {
    display: block;
    margin-bottom: 2px;
}

.alert p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.alert.success-alert {
    border-left-color: var(--brand-green);
}

.alert.warning-alert {
    border-left-color: #d99500;
}

.dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 19px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 11px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

th,
td {
    padding: 11px 13px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

th {
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: color-mix(in srgb, var(--brand-sky) 5%, var(--surface));
}

th button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-transform: inherit;
}

.progress {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--surface-soft);
}

.progress>span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-sky), var(--brand-green));
    transition: width .2s;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    font-size: 12px;
}

.chart {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.chart-row {
    display: grid;
    grid-template-columns: minmax(88px, 1fr) 3fr 34px;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.chart-track {
    height: 14px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--surface-soft);
}

.chart-bar {
    width: var(--value);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky));
    transition: width .35s;
}

.chart-row:nth-child(even) .chart-bar {
    background: linear-gradient(90deg, var(--brand-green), var(--brand-lime));
}

.chart-row output {
    text-align: right;
    font-weight: 700;
}

.do-list {
    margin: 0;
    padding-left: 20px;
}

.do-list li {
    margin: 5px 0;
}

.do {
    color: #087a32;
}

.dont {
    color: #b42318;
}

[data-theme="dark"] .do {
    color: #68e694;
}

[data-theme="dark"] .dont {
    color: #ff8f86;
}

.author {
    padding: 19px;
    border-radius: 13px;
    background: var(--surface-soft);
}

.author strong {
    color: var(--ink);
}

footer {
    padding: 25px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .toc {
        position: static;
        max-height: none;
        display: flex;
        align-items: center;
        gap: 5px;
        overflow-x: auto;
        padding: 9px;
        white-space: nowrap;
    }

    .toc-title {
        display: none;
    }

    .toc a {
        display: inline-block;
    }

    .grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .wrap {
        width: min(100% - 30px, var(--content));
    }

    .topbar-inner {
        min-height: 64px;
    }

    .brand img {
        width: 39px;
        height: 39px;
    }

    .brand-name {
        font-size: 13px;
    }

    .brand-caption {
        font-size: 8px;
    }

    .top-link {
        display: none;
    }

    .theme-button {
        min-height: 38px;
        padding: 0 10px;
        font-size: 12px;
    }

    .hero {
        padding: 40px 0 34px;
    }

    .hero-copy {
        font-size: 15px;
    }

    .layout {
        padding-top: 20px;
        padding-bottom: 48px;
    }

    .section {
        padding: 19px 16px;
    }

    .grid.two,
    .grid.three,
    .grid.four {
        grid-template-columns: minmax(0, 1fr);
    }

    .icon-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .chart-row {
        grid-template-columns: 88px minmax(45px, 1fr) 30px;
        gap: 7px;
        font-size: 11px;
    }

    footer .wrap {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

.grid.four .swatch:nth-child(1) .swatch-color {
    background: #003b8f;
}

.grid.four .swatch:nth-child(2) .swatch-color {
    background: #0072ce;
}

.grid.four .swatch:nth-child(3) .swatch-color {
    background: #00a63c;
}

.grid.four .swatch:nth-child(4) .swatch-color {
    background: #65c600;
    color: #173400;
}

#espacamento .spacing-row:nth-child(1) .spacing-bar {
    width: 16px;
}

#espacamento .spacing-row:nth-child(2) .spacing-bar {
    width: 32px;
}

#espacamento .spacing-row:nth-child(3) .spacing-bar {
    width: 48px;
}

#espacamento .spacing-row:nth-child(4) .spacing-bar {
    width: 64px;
}

#espacamento .spacing-row:nth-child(5) .spacing-bar {
    width: 96px;
}

#espacamento .spacing-row:nth-child(6) .spacing-bar {
    width: 128px;
}

fieldset.demo-box {
    border: 1px solid var(--line);
    border-radius: 13px;
}

fieldset.demo-box legend {
    padding-inline: 6px;
    font-weight: 700;
}

.data-table caption {
    padding: 10px 13px;
    text-align: left;
}

.field {
    margin-top: 17px;
}

.chart-row:nth-child(1) .chart-bar {
    --value: 78%;
}

.chart-row:nth-child(2) .chart-bar {
    --value: 56%;
}

.chart-row:nth-child(3) .chart-bar {
    --value: 34%;
}

#id-error {
    color: #b42318;
    font-size: 12px;
}

.author p:last-child {
    margin-bottom: 0;
}

.svg-definitions {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
