/* =============================================================================
   Shell — page shell, skip link, header, navigation, footer
   ========================================================================== */

.svr-shell {
    width: 100%;
    max-width: var(--svr-shell-max);
    margin-inline: auto;
    padding-inline: var(--svr-gutter);
}

.svr-main {
    display: block;
    min-height: 40vh;
}

/* =============================================================================
   Skip link

   Not display:none — that would make screen readers skip it. It sits outside
   the visible area and slides in on focus.
   ========================================================================== */

.svr-skiplink {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    transform: translateY(-120%);
    padding: var(--svr-space-sm) var(--svr-space-md);
    background: var(--svr-accent);
    color: var(--svr-accent-text);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 var(--svr-radius) 0;
    transition: transform var(--svr-transition);
}

.svr-skiplink:focus {
    transform: translateY(0);
    color: var(--svr-accent-text);
}

/* =============================================================================
   Header
   ========================================================================== */

.svr-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--svr-surface-header);
    border-bottom: 1px solid var(--svr-border);
}

.svr-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--svr-space-md);
    padding-block: 0.875rem;
}

/* ── Emblem and club name ──────────────────────────────────────────────────── */

.svr-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: inherit;
}

.svr-brand__mark {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: var(--svr-radius);
    background: var(--svr-surface-plate);
}

.svr-brand__name {
    display: block;
    font-family: var(--svr-font-display);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--svr-text-strong);
}

.svr-brand__suffix {
    display: block;
    margin-top: 0.2em;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--svr-text-muted);
}

/* =============================================================================
   Main navigation

   Checkbox hack: a visually hidden but focusable checkbox drives a
   :checked ~ nav selector. Below the breakpoint the list starts collapsed
   and the checkbox toggles it; from the breakpoint on the list is always
   shown outright and the checkbox no longer matters. One markup copy, no
   JavaScript.
   ========================================================================== */

.svr-nav {
    flex: 1 1 100%;
    order: 3;
}

/* Not display:none — that would drop it from the tab order too. Hidden
   visually only; the label below carries the visible focus ring. */
.svr-nav__checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.svr-nav__checkbox:focus-visible ~ .svr-nav__toggle {
    outline: var(--svr-focus-ring);
    outline-offset: 2px;
}

.svr-nav__toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--svr-tap);
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--svr-border-strong);
    border-radius: var(--svr-radius);
    color: var(--svr-text-strong);
    font-weight: 600;
    cursor: pointer;
}

.svr-nav__toggle::before {
    content: "";
    width: 1.125rem;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.svr-nav__checkbox:checked ~ .svr-nav__toggle::before {
    box-shadow: none;
    transform: rotate(45deg);
    position: relative;
}

.svr-nav__checkbox:checked ~ .svr-nav__toggle::after {
    content: "";
    position: absolute;
    left: 0.875rem;
    width: 1.125rem;
    height: 2px;
    background: currentColor;
    transform: rotate(-45deg);
}

.svr-nav > nav {
    display: none;
}

.svr-nav__checkbox:checked ~ nav {
    display: block;
}

.svr-nav__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: var(--svr-space-sm) 0 var(--svr-space-sm);
    padding: 0;
    list-style: none;
}

.svr-nav__link {
    display: block;
    min-height: var(--svr-tap);
    padding: 0.6875rem 0.875rem;
    border-radius: var(--svr-radius);
    color: var(--svr-text);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.4;
    text-decoration: none;
    transition: background var(--svr-transition), color var(--svr-transition);
}

.svr-nav__link:hover {
    background: rgb(31 60 42);
    color: var(--svr-text-strong);
}

/* The current page and its branch are marked with different weight. */
.svr-nav__link--active {
    background: rgb(38 71 50);
    color: var(--svr-text-strong);
}

.svr-nav__link--branch {
    color: var(--svr-text-strong);
    box-shadow: inset 0 -2px 0 var(--svr-accent);
}

/* ── Member login button ───────────────────────────────────────────────────── */

.svr-header__member {
    display: inline-flex;
    align-items: center;
    min-height: var(--svr-tap);
    padding: 0.6875rem 1rem;
    border: 1px solid var(--svr-border-strong);
    border-radius: var(--svr-radius);
    color: var(--svr-text);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: border-color var(--svr-transition), color var(--svr-transition);
}

.svr-header__member:hover {
    border-color: var(--svr-accent);
    color: var(--svr-accent);
}

/* ── From here on there is room for a horizontal bar ───────────────────────── */

@media (min-width: 60rem) {
    .svr-nav {
        flex: 0 1 auto;
        order: 0;
    }

    .svr-nav__toggle {
        display: none;
    }

    /* Always shown from here on, checked or not. */
    .svr-nav > nav {
        display: block;
    }

    .svr-nav__list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2px;
        margin: 0;
    }

    .svr-nav__link {
        min-height: 0;
        padding: 0.625rem 0.75rem;
    }
}

@media (min-width: 75rem) {
    .svr-nav__link {
        padding: 0.625rem 0.875rem;
        font-size: 1rem;
    }
}

/* =============================================================================
   Footer
   ========================================================================== */

.svr-footer {
    background: var(--svr-surface-header);
    border-top: 1px solid var(--svr-border);
}

.svr-footer__columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--svr-space-xl);
    padding-block: var(--svr-space-xl);
}

@media (min-width: 48rem) {
    .svr-footer__columns {
        grid-template-columns: 1.2fr 1fr 1fr;
    }
}

.svr-footer__heading {
    margin: 0 0 var(--svr-space-sm);
    font-family: var(--svr-font-body);
    font-size: var(--svr-size-meta);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--svr-text-faint);
}

.svr-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--svr-space-md);
}

.svr-footer__brand-mark {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--svr-radius);
    background: var(--svr-surface-plate);
}

.svr-footer__brand-name {
    font-family: var(--svr-font-display);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--svr-text-strong);
}

.svr-footer__contact {
    font-style: normal;
    color: var(--svr-text-muted);
}

.svr-footer__contact a {
    color: var(--svr-text-muted);
}

.svr-footer__contact a:hover {
    color: var(--svr-accent);
}

/* Training times as a definition list: day and time belong together, and
   screen readers turn that into something meaningful. */
.svr-footer__hours {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem var(--svr-space-md);
    margin: 0;
    color: var(--svr-text);
}

.svr-footer__hours dt {
    font-weight: 600;
    color: var(--svr-text-strong);
}

.svr-footer__hours dd {
    margin: 0;
}

.svr-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--svr-text);
}

.svr-footer__list li + li {
    margin-top: 0.25rem;
}

.svr-footer__list a {
    color: var(--svr-text);
    text-decoration: none;
}

.svr-footer__list a:hover {
    color: var(--svr-accent);
    text-decoration: underline;
}

.svr-footer__wifi {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: var(--svr-space-md);
    font-size: var(--svr-size-small);
    color: var(--svr-text-muted);
}

.svr-footer__wifi img {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 0.15em;
}

/* ── Bottom bar ─────────────────────────────────────────────────────────────── */

.svr-footer__bottom {
    background: var(--svr-surface-deep);
    border-top: 1px solid var(--svr-border);
}

.svr-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--svr-space-md);
    padding-block: var(--svr-space-md);
    font-size: var(--svr-size-small);
    color: var(--svr-text-faint);
}

.svr-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--svr-space-md);
    margin: 0;
    padding: 0;
    list-style: none;
}

.svr-footer__legal a {
    display: inline-block;
    padding-block: 0.375rem;
    color: var(--svr-text-muted);
    text-decoration: none;
}

.svr-footer__legal a:hover {
    color: var(--svr-accent);
    text-decoration: underline;
}
