@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,700;1,900&display=swap');

:root {
    color-scheme: dark;
    --cyan: #22d3ee;
    --text: #f4f4f5;
    --muted: #d4d4d8;
    --dim: #a1a1aa;
    --card: #18181b;
    --line: rgba(255, 255, 255, 0.12);
}

.skip {
    position: absolute;
    left: 1rem;
    top: 1rem;
    z-index: 200;
    transform: translateY(-200%);
    background: var(--cyan);
    color: #000;
    font-weight: 900;
    padding: 0.7rem 1rem;
    border-radius: 0.6rem;
    text-decoration: none;
}

.skip:focus {
    transform: none;
}

html[lang="fr-CA"] .skip[data-skip="en"],
html[lang="fr-CA"] .skip[data-skip="es"],
html[lang="es"] .skip[data-skip="en"],
html[lang="es"] .skip[data-skip="fr"],
html[lang="en-CA"] .skip[data-skip="fr"],
html[lang="en-CA"] .skip[data-skip="es"],
html[lang="en"] .skip[data-skip="fr"],
html[lang="en"] .skip[data-skip="es"] {
    display: none;
}

body.guide {
    margin: 0;
    background: #000;
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.6;
}

.guide a {
    color: var(--cyan);
}

.guide a:hover {
    color: #fff;
}

.wrap {
    max-width: 46rem;
    margin: 0 auto;
    padding: 1.25rem 1.15rem 4rem;
}

.topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: space-between;
    align-items: center;
}

.brand {
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    font-size: 1.35rem;
}

.brand:hover {
    color: var(--cyan);
}

.langs {
    display: flex;
    background: var(--card);
    border-radius: 0.85rem;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.15rem;
}

.langs a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.85rem;
    border-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.langs a[aria-current="page"] {
    background: #fff;
    color: #000;
}

.crumb {
    margin-top: 1.25rem;
    color: var(--dim);
    font-size: 0.95rem;
}

.crumb a {
    color: var(--muted);
    font-weight: 700;
}

.kicker {
    margin: 1.75rem 0 0.4rem;
    color: var(--cyan);
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.guide h1 {
    margin: 0 0 1.25rem;
    padding-bottom: 0.7rem;
    border-bottom: 8px solid var(--cyan);
    font-style: italic;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.045em;
    line-height: 0.95;
    font-size: clamp(2.05rem, 7vw, 4.1rem);
    overflow-wrap: anywhere;
}

.guide h2 {
    margin: 2.4rem 0 0.7rem;
    font-style: italic;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1.12;
    font-size: clamp(1.35rem, 4vw, 1.9rem);
}

.guide h3 {
    margin: 1.75rem 0 0.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
    font-size: 1.25rem;
    color: #fff;
}

.guide p,
.guide li {
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--muted);
}

.guide li {
    margin: 0.35rem 0;
}

.guide ul,
.guide ol {
    padding-left: 1.2rem;
}

.lede {
    font-size: 1.25rem;
    color: var(--text);
}

.table-wrap {
    overflow-x: auto;
    margin: 1rem 0 1.35rem;
    border-radius: 1.25rem;
    background: var(--card);
}

.guide table {
    width: 100%;
    border-collapse: collapse;
    min-width: 18rem;
}

.guide caption {
    text-align: left;
    font-weight: 800;
    color: var(--text);
    padding: 1rem 1rem 0.4rem;
    font-size: 1rem;
}

.guide th,
.guide td {
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
    vertical-align: baseline;
    font-size: 1.05rem;
}

.guide tbody tr:last-child th,
.guide tbody tr:last-child td {
    border-bottom: 0;
}

.guide td.num,
.guide th.num {
    text-align: right;
    white-space: nowrap;
    color: var(--cyan);
    font-weight: 800;
}

.guide tr.total th,
.guide tr.total td {
    color: #fff;
    font-weight: 800;
}

.note {
    background: var(--card);
    border-left: 6px solid var(--cyan);
    border-radius: 1.25rem;
    padding: 0.3rem 1.1rem;
    margin: 1.25rem 0;
}

.note.aid {
    border-left-color: #f87171;
}

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.25rem 0;
}

.cta a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: var(--cyan);
    color: #000;
    font-weight: 900;
    text-decoration: none;
}

.cta a:hover {
    background: #fff;
    color: #000;
}

.guide footer {
    margin-top: 3rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.guide footer h2 {
    margin-top: 0;
    font-size: 1.15rem;
}

.guide footer ul {
    list-style: none;
    padding: 0;
}

.guide footer li {
    margin: 0.45rem 0;
}

.guide footer a {
    font-weight: 800;
}

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

.site-guides {
    position: relative;
    z-index: 1;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.5rem 1.15rem 4.5rem;
    font-family: Inter, system-ui, sans-serif;
    color: var(--text);
}

.site-guides h2 {
    margin: 0 0 0.75rem;
    font-style: italic;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1;
    color: #fff;
}

.site-guides h3 {
    margin: 1.4rem 0 0.4rem;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
}

.site-guides p,
.site-guides li {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.site-guides ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-guides li {
    margin: 0.15rem 0;
}

.site-guides li a,
.guide footer li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.site-guides a {
    color: var(--cyan);
    font-weight: 800;
}

.site-guides a:hover {
    color: #fff;
}

.guide-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem 2rem;
}

@media (min-width: 800px) {
    .guide-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

.boot {
    padding: 1.5rem 1.15rem 0.5rem;
    max-width: 40rem;
    font-family: Inter, system-ui, sans-serif;
}

.boot h1 {
    margin: 0 0 0.8rem;
    font-style: italic;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.045em;
    line-height: 0.95;
    font-size: clamp(2.4rem, 8vw, 4.5rem);
}

.boot p {
    color: var(--muted);
    font-size: 1.125rem;
    line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
    .fade-up,
    .scanline,
    .budget-block {
        animation: none !important;
        transition: none !important;
    }

    .budget-block.active {
        transform: none;
    }
}
