/*
 * Welkey — struttura delle pagine.
 * Pannello: barra laterale + barra in alto + contenuto + colonna destra fissa (uguale in tutte le pagine).
 * Accesso: scheda centrata.
 * App ospite: una colonna, pensata per il telefono.
 *
 * Punti di rottura (larghezza dello schermo):
 *   ≤ 1180px  la colonna destra va sotto il contenuto
 *   ≤ 860px   la barra laterale diventa un menu a scomparsa (pulsante ☰)
 *   ≤ 560px   nella barra in alto restano solo le iniziali dell'utente
 */

/* Link "vai al contenuto": visibile solo con la tastiera */
.wk-skip {
    position: absolute;
    z-index: 100;
    top: var(--wk-space-2);
    left: var(--wk-space-2);
    padding: var(--wk-space-2) var(--wk-space-3);
    border-radius: var(--wk-radius);
    background: var(--wk-surface);
    color: var(--wk-ink);
    box-shadow: var(--wk-shadow-lg);
    transform: translateY(-200%);
}

.wk-skip:focus {
    transform: none;
}

/* ---------- Pannello: barra laterale + area principale ---------- */

.wk-app {
    display: grid;
    grid-template-columns: var(--wk-sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
}

.wk-app--collapsed {
    grid-template-columns: var(--wk-sidebar-compact) minmax(0, 1fr);
}

.wk-main {
    min-width: 0;
}

/* ---------- Barra laterale ---------- */

.wk-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: var(--wk-space-3) var(--wk-space-2);
    background: var(--wk-surface);
    border-right: 1px solid var(--wk-border);
    overflow-y: auto;
}

.wk-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(var(--wk-topbar-height) - var(--wk-space-3));
    padding: 0 var(--wk-space-2) var(--wk-space-3);
}

.wk-sidebar__logo-compact,
.wk-sidebar__close {
    display: none;
}

.wk-sidebar__nav {
    display: grid;
    gap: 2px;
    align-content: start;
    flex: 1;
}

.wk-sidebar__foot {
    padding-top: var(--wk-space-2);
    border-top: 1px solid var(--wk-border);
}

.wk-nav__item {
    display: flex;
    align-items: center;
    gap: var(--wk-space-3);
    width: 100%;
    min-height: 36px;
    padding: 0 var(--wk-space-3);
    border: 0;
    border-radius: var(--wk-radius);
    background: none;
    color: var(--wk-ink-muted);
    font: inherit;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.wk-nav__item:hover {
    background: var(--wk-surface-2);
    color: var(--wk-ink);
}

.wk-nav__item[aria-current="page"] {
    background: var(--wk-brand-soft);
    color: var(--wk-brand);
    font-weight: 600;
}

.wk-nav__item .wk-icon {
    width: 18px;
    height: 18px;
}

/* Sezione con sottovoci (partials/nav.html, nav.section): voce + freccia a destra, sottovoci rientrate */
.wk-nav__section {
    min-width: 0;
}

.wk-nav__row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 2px;
}

.wk-nav__row .wk-nav__item {
    flex: 1;
    width: auto;
    min-width: 0;
}

.wk-nav__toggle {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: var(--wk-radius-sm);
    background: none;
    color: var(--wk-ink-muted);
    cursor: pointer;
}

.wk-nav__toggle:hover {
    background: var(--wk-surface-2);
    color: var(--wk-ink);
}

.wk-nav__toggle .wk-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.15s ease;
}

.wk-nav__toggle[aria-expanded="true"] .wk-icon {
    transform: rotate(180deg);
}

.wk-nav__group {
    display: grid;
    gap: 1px;
    margin: 2px 0 var(--wk-space-2) calc(var(--wk-space-3) + 9px);
    padding-left: var(--wk-space-3);
    border-left: 1px solid var(--wk-border);
}

.wk-nav__group[hidden] {
    display: none;
}

.wk-nav__sub {
    display: flex;
    align-items: center;
    min-height: 30px;
    padding: 0 var(--wk-space-2);
    border-radius: var(--wk-radius-sm);
    color: var(--wk-ink-muted);
    font-size: var(--wk-text-sm);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wk-nav__sub:hover {
    background: var(--wk-surface-2);
    color: var(--wk-ink);
}

.wk-nav__sub[aria-current="page"] {
    color: var(--wk-brand);
    font-weight: 600;
    background: var(--wk-brand-soft);
}

/* Sezione della pagina attiva: la voce resta in evidenza, la pagina attiva è la sottovoce */
.wk-nav__section.is-open .wk-nav__item {
    color: var(--wk-ink);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .wk-nav__toggle .wk-icon {
        transition: none;
    }
}

/* Barra compressa: solo le icone delle sezioni; frecce e sottovoci spariscono, la sezione attiva resta colorata */
.wk-app--collapsed .wk-nav__toggle,
.wk-app--collapsed .wk-nav__group {
    display: none;
}

.wk-app--collapsed .wk-nav__section.is-open .wk-nav__item {
    background: var(--wk-brand-soft);
    color: var(--wk-brand);
}

.wk-nav__label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Barra compressa: solo icone (il testo resta per gli screen reader) */
.wk-app--collapsed .wk-sidebar__logo {
    display: none;
}

.wk-app--collapsed .wk-sidebar__logo-compact {
    display: inline-flex;
}

.wk-app--collapsed .wk-sidebar__head {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.wk-app--collapsed .wk-nav__item {
    justify-content: center;
    padding: 0;
}

.wk-app--collapsed .wk-nav__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.wk-app--collapsed .wk-sidebar__collapse .wk-icon {
    transform: scaleX(-1);
}

.wk-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: var(--wk-overlay);
}

/* ---------- Barra in alto ---------- */

.wk-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: var(--wk-space-2);
    height: var(--wk-topbar-height);
    padding: 0 var(--wk-space-4);
    background: var(--wk-surface);
    border-bottom: 1px solid var(--wk-border);
}

.wk-topbar__spacer {
    flex: 1;
}

.wk-topbar__menu,
.wk-topbar__logo {
    display: none;
}

.wk-topbar__logo .wk-logo__svg {
    height: 26px;
}

/* Nome del cliente: si accorcia con "…" invece di allargare la barra */
.wk-topbar__tenant {
    min-width: 0;
}

.wk-topbar__tenant > summary {
    max-width: 100%;
}

.wk-topbar__tenant-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 28ch;
}

.wk-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--wk-brand-soft);
    color: var(--wk-brand);
    font-size: var(--wk-text-xs);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.wk-topbar__user > summary {
    padding-left: var(--wk-space-1);
}

.wk-topbar__user-name {
    max-width: 22ch;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ---------- Contenuto + colonna destra ---------- */

.wk-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--wk-rail-width);
    gap: var(--wk-space-5);
    max-width: calc(var(--wk-content-max) + var(--wk-rail-width) + var(--wk-space-5));
    padding: var(--wk-space-5) var(--wk-space-4);
}

.wk-content {
    min-width: 0;
}

.wk-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--wk-space-3);
    margin-bottom: var(--wk-space-4);
}

.wk-page-head h1 {
    margin: 0;
}

/* Riga di spiegazione sotto il titolo della pagina */
.wk-page-head__lead {
    margin: var(--wk-space-1) 0 0;
    color: var(--wk-ink-muted);
}

.wk-rail {
    position: sticky;
    top: calc(var(--wk-topbar-height) + var(--wk-space-5));
    align-self: start;
    display: grid;
    gap: var(--wk-space-4);
}

@media (max-width: 1180px) {
    .wk-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .wk-rail {
        position: static;
    }
}

/* ---------- Telefono e tablet stretto: menu a scomparsa ---------- */

@media (max-width: 860px) {
    .wk-app,
    .wk-app--collapsed {
        grid-template-columns: minmax(0, 1fr);
    }

    .wk-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: min(var(--wk-sidebar-width), 85vw);
        box-shadow: var(--wk-shadow-lg);
        transform: translateX(-105%);
        transition: transform 180ms ease;
        visibility: hidden;
    }

    .wk-app--nav-open .wk-sidebar {
        transform: none;
        visibility: visible;
    }

    /* Sul telefono la barra non è mai compressa e si chiude con la X */
    .wk-app--collapsed .wk-sidebar__logo {
        display: inline-flex;
    }

    .wk-app--collapsed .wk-sidebar__logo-compact,
    .wk-sidebar__foot {
        display: none;
    }

    .wk-app--collapsed .wk-sidebar__head {
        justify-content: space-between;
        padding: 0 var(--wk-space-2) var(--wk-space-3);
    }

    .wk-app--collapsed .wk-nav__item {
        justify-content: flex-start;
        padding: 0 var(--wk-space-3);
    }

    .wk-app--collapsed .wk-nav__label {
        position: static;
        width: auto;
        height: auto;
        clip: auto;
    }

    .wk-sidebar__close,
    .wk-topbar__menu,
    .wk-topbar__logo {
        display: inline-flex;
    }

    .wk-topbar {
        padding: 0 var(--wk-space-2);
    }

    .wk-shell {
        padding: var(--wk-space-4) var(--wk-space-3);
    }
}

@media (max-width: 560px) {
    .wk-topbar__user-name {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .wk-topbar__tenant-name {
        max-width: 14ch;
    }

    .wk-topbar .wk-badge {
        display: none;
    }
}

/* ---------- Pagine di accesso ---------- */

/*
 * Pagine di accesso: pannello "la soglia" a sinistra + modulo a destra.
 * Host: pannello verde del marchio. Admin: pannello terracotta (accento), come il badge "Amministrazione".
 * Sotto i 960px il pannello diventa una fascia in alto senza disegno.
 */
.wk-auth {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    background: var(--wk-bg);
}

@media (min-width: 960px) {
    .wk-auth {
        grid-template-columns: minmax(380px, 46%) 1fr;
        grid-template-rows: none;
    }
}

/* App ospite (pagine di errore): solo il modulo, al centro. */
.wk-auth--plain {
    grid-template-columns: none;
    grid-template-rows: none;
}

.wk-auth--plain .wk-auth__main {
    align-items: center;
}

.wk-auth-aside {
    --wk-aside-bg: var(--wk-brand);
    --wk-aside-ink: var(--wk-ink-inverse);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: var(--wk-space-5);
    padding: var(--wk-space-5) var(--wk-space-4);
    overflow: hidden;
    color: var(--wk-aside-ink);
    background: var(--wk-aside-bg);
}

.wk-auth-aside--admin {
    --wk-aside-bg: var(--wk-accent);
}

/* Tema scuro: marchio e accento diventano chiari, quindi il pannello usa il tono scuro "soft" e linee chiare. */
:root[data-theme="dark"] .wk-auth-aside {
    --wk-aside-bg: var(--wk-brand-soft);
    --wk-aside-ink: var(--wk-brand);
}

:root[data-theme="dark"] .wk-auth-aside--admin {
    --wk-aside-bg: var(--wk-accent-soft);
    --wk-aside-ink: var(--wk-accent);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .wk-auth-aside {
        --wk-aside-bg: var(--wk-brand-soft);
        --wk-aside-ink: var(--wk-brand);
    }

    :root:not([data-theme="light"]) .wk-auth-aside--admin {
        --wk-aside-bg: var(--wk-accent-soft);
        --wk-aside-ink: var(--wk-accent);
    }
}

.wk-auth-art {
    display: none;
}

.wk-auth-aside__text {
    position: relative;
    max-width: 34rem;
}

.wk-auth-aside__title {
    margin: 0;
    font-size: var(--wk-text-xl);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.wk-auth-aside__lead,
.wk-auth-aside__points {
    display: none;
}

@media (min-width: 960px) {
    .wk-auth-aside {
        justify-content: space-between;
        min-height: 100vh;
        padding: var(--wk-space-7) clamp(var(--wk-space-6), 5vw, 5rem);
    }

    .wk-auth-art {
        display: block;
        width: min(78%, 360px);
        height: auto;
        margin: var(--wk-space-5) auto 0;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .wk-auth-art__wall {
        stroke-width: 2;
        opacity: 0.35;
    }

    .wk-auth-art__door {
        stroke-width: 3;
    }

    .wk-auth-art__step {
        stroke-width: 3;
    }

    .wk-auth-art__tiles,
    .wk-auth-art__lock {
        stroke-width: 1.5;
        opacity: 0.55;
    }

    .wk-auth-art__ring,
    .wk-auth-art__bit {
        stroke-width: 1;
    }

    .wk-auth-art__dot {
        fill: currentColor;
        stroke: none;
    }

    /* Un solo momento di movimento: la chiave entra nella soglia all'apertura della pagina. */
    .wk-auth-art__key {
        animation: wk-auth-key 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
    }

    .wk-auth-aside__title {
        font-size: clamp(2rem, 3.2vw, 2.9rem);
        line-height: 1.08;
        letter-spacing: -0.025em;
    }

    .wk-auth-aside__lead {
        display: block;
        margin: var(--wk-space-4) 0 0;
        max-width: 30rem;
        font-size: var(--wk-text-lg);
        line-height: 1.5;
        opacity: 0.9;
    }

    .wk-auth-aside__points {
        display: grid;
        gap: var(--wk-space-2);
        margin: var(--wk-space-5) 0 0;
        padding: var(--wk-space-4) 0 0;
        list-style: none;
        border-top: 1px solid currentColor;
        border-top-color: color-mix(in srgb, currentColor 30%, transparent);
        font-size: var(--wk-text-sm);
    }

    .wk-auth-aside__points li {
        position: relative;
        padding-left: var(--wk-space-5);
    }

    .wk-auth-aside__points li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0.55em;
        width: 10px;
        height: 6px;
        border-left: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(-45deg);
    }
}

@keyframes wk-auth-key {
    from {
        opacity: 0;
        transform: translateX(70px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wk-auth-art__key {
        animation: none;
    }
}

.wk-auth__main {
    display: grid;
    justify-items: center;
    align-items: start;
    padding: var(--wk-space-6) var(--wk-space-4);
}

@media (min-width: 960px) {
    .wk-auth__main {
        align-items: center;
    }
}

.wk-auth__box {
    width: min(400px, 100%);
}

.wk-auth__head {
    display: flex;
    align-items: center;
    gap: var(--wk-space-2);
    margin-bottom: var(--wk-space-6);
}

.wk-auth__head .wk-help-btn {
    margin-left: auto;
}

.wk-auth__card h1 {
    margin-bottom: var(--wk-space-2);
    font-size: var(--wk-text-2xl);
    letter-spacing: -0.015em;
}

.wk-auth__lead {
    margin: 0 0 var(--wk-space-4);
    color: var(--wk-ink-muted);
}

/* Pagina di errore (usa il layout di accesso): numero grande, poi titolo e spiegazione */
.wk-error__code {
    margin: 0 0 var(--wk-space-1);
    color: var(--wk-brand);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.wk-error__debug {
    max-height: 320px;
    overflow: auto;
    font-size: var(--wk-text-xs);
    white-space: pre-wrap;
}

.wk-auth__card .wk-steps {
    margin: 0 0 var(--wk-space-4);
    padding: 0;
}

/* Primo passo della 2FA: richiesta del codice separata dal campo dove scriverlo */
.wk-auth__send {
    margin-bottom: var(--wk-space-4);
    padding-bottom: var(--wk-space-4);
    border-bottom: 1px solid var(--wk-border);
}


.wk-auth__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--wk-space-3);
    margin-top: var(--wk-space-4);
    font-size: var(--wk-text-sm);
}

.wk-auth__lang select {
    min-height: 32px;
    padding: 0 var(--wk-space-2);
    font-size: var(--wk-text-sm);
}

/* ---------- App ospite (mobile-first, un passo per schermata) ---------- */

/*
 * Colonna unica larga al massimo 520px; pulsanti fissi in basso.
 * Testo dei campi a 16px: sotto questa misura l'iPhone ingrandisce la pagina quando si tocca un campo.
 * env(safe-area-inset-bottom): spazio per la "barra home" dell'iPhone.
 */
.wk-guest {
    display: flex;
    flex-direction: column;
    max-width: 520px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    font-size: var(--wk-text-lg);
}

.wk-guest__head {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: var(--wk-space-2);
    min-height: 56px;
    padding: var(--wk-space-2) var(--wk-space-4);
    background: var(--wk-surface);
    border-bottom: 1px solid var(--wk-border);
}

.wk-guest__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: calc(var(--wk-space-2) * -1);
    border-radius: var(--wk-radius);
    color: var(--wk-ink);
}

.wk-guest__back .wk-icon {
    width: 20px;
    height: 20px;
}

.wk-guest__brand {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 700;
}

.wk-guest__brand .wk-logo__svg {
    height: 26px;
}

.wk-guest__lang select {
    min-height: 36px;
    width: auto;
    padding: 0 var(--wk-space-6) 0 var(--wk-space-2);
    font-size: var(--wk-text-md);
}

.wk-guest__main {
    flex: 1;
    padding: var(--wk-space-5) var(--wk-space-4);
}

.wk-guest__actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: flex;
    gap: var(--wk-space-2);
    padding: var(--wk-space-3) var(--wk-space-4) calc(var(--wk-space-3) + env(safe-area-inset-bottom));
    background: var(--wk-surface);
    border-top: 1px solid var(--wk-border);
}

.wk-guest__actions .wk-btn {
    flex: 1;
}

.wk-guest__actions .wk-btn--secondary-step {
    flex: 0 0 auto;
    min-width: 30%;
}

.wk-guest__foot {
    padding: var(--wk-space-3) var(--wk-space-4) calc(var(--wk-space-3) + env(safe-area-inset-bottom));
    text-align: center;
    font-size: var(--wk-text-xs);
    color: var(--wk-ink-muted);
}

/* Bersagli comodi per il pollice (almeno 48px) e testo a 16px nei campi */
.wk-guest .wk-btn {
    min-height: 48px;
    font-size: var(--wk-text-lg);
}

.wk-guest .wk-input,
.wk-guest .wk-select,
.wk-guest .wk-textarea {
    min-height: 48px;
    font-size: 1rem;
}

.wk-guest .wk-field label {
    font-size: var(--wk-text-md);
}

.wk-guest .wk-check,
.wk-guest .wk-switch {
    min-height: 44px;
}

/* Titolo e spiegazione del passo */
.wk-step__title {
    margin-bottom: var(--wk-space-2);
    font-size: var(--wk-text-2xl);
    line-height: 1.2;
}

.wk-step__lead {
    margin-bottom: var(--wk-space-5);
    color: var(--wk-ink-muted);
}

.wk-step--center {
    text-align: center;
}

.wk-step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: var(--wk-space-5) 0 var(--wk-space-3);
    border-radius: 50%;
    background: var(--wk-success-soft);
    color: var(--wk-success);
}

.wk-step__icon .wk-icon {
    width: 32px;
    height: 32px;
}

/* Barra di avanzamento a segmenti (partials/progress.html): app ospite e configurazione della 2FA */
.wk-steps {
    padding: var(--wk-space-3) var(--wk-space-4) 0;
}

.wk-steps__bar {
    display: flex;
    gap: var(--wk-space-1);
}

.wk-steps__seg {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--wk-border-strong);
}

.wk-steps__seg.is-done {
    background: var(--wk-accent);
}

.wk-steps__seg.is-current {
    background: var(--wk-brand);
}

.wk-steps__label {
    margin: var(--wk-space-1) 0 0;
    font-size: var(--wk-text-sm);
    color: var(--wk-ink-muted);
}

/* Riepilogo a righe (es. dati della prenotazione) */
.wk-summary {
    margin: 0 0 var(--wk-space-4);
    padding: var(--wk-space-2) var(--wk-space-4);
    background: var(--wk-surface);
    border: 1px solid var(--wk-border);
    border-radius: var(--wk-radius-lg);
}

.wk-summary div {
    display: flex;
    justify-content: space-between;
    gap: var(--wk-space-3);
    padding: var(--wk-space-2) 0;
}

.wk-summary div + div {
    border-top: 1px solid var(--wk-border);
}

.wk-summary dt {
    color: var(--wk-ink-muted);
}

.wk-summary dd {
    margin: 0;
    font-weight: 600;
}

/* Riquadro della firma (il disegno col dito arriverà con il modulo del check-in) */
.wk-signature {
    height: 180px;
    margin-bottom: var(--wk-space-3);
    background: var(--wk-surface);
    border: 2px dashed var(--wk-border-strong);
    border-radius: var(--wk-radius-lg);
}

/* Intestazione comune della scheda del cliente (modules/admin_tenants/views/_head.html, inclusa da tutti i moduli admin con una sezione del cliente). */
.wk-at-head {
    flex-wrap: wrap;
    align-items: center;
}

.wk-at-head h1 {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wk-space-2);
    align-items: center;
    min-width: 0;
    word-break: break-word;
}

.wk-at-head__back {
    flex-basis: 100%;
    margin: 0;
    font-size: var(--wk-text-sm);
}

.wk-at-head__back a {
    display: inline-flex;
    align-items: center;
    gap: var(--wk-space-1);
    color: var(--wk-ink-muted);
    text-decoration: none;
}

.wk-at-head__back a:hover {
    color: var(--wk-ink);
}

.wk-at-head__sections {
    margin-left: auto;
}
