html, body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Admin nav drawer toggle - same technique the default Blazor template's own NavMenu.razor
   uses: a hidden checkbox + a <label> styled as the visible button, with pure CSS driving
   show/hide below. MudDrawer stays hardcoded Open="true" in AdminLayout.razor forever, so
   MudBlazor's own AppBar/Drawer/MainContent coordination never has to change and can't break -
   this only ever overlays a visual transform on top, it never touches MudBlazor's own margin/
   width classes. See the comment at the top of AdminLayout.razor for the full why. */
.admin-drawer-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-left: -12px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.admin-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* In-drawer close button - the drawer becomes a fullscreen overlay on phones (see the
   max-width: 959.98px block below), so it needs its own explicit close control there. Hidden
   by default and only shown under that same breakpoint, since on desktop/tablet the drawer is
   a persistent sidebar and closing it from inside would be surprising. */
.admin-drawer-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.admin-drawer-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-drawer-checkbox:focus-visible ~ .mud-layout .admin-menu-toggle {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.mud-layout .mud-drawer {
    transition: transform 225ms cubic-bezier(0, 0, 0.2, 1);
}

/* Desktop/tablet (matches MudBlazor's own sm breakpoint at 960px): drawer starts open,
   unchecking-by-default; checking the box collapses it. */
@media (min-width: 960px) {
    .admin-drawer-checkbox:checked ~ .mud-layout .mud-drawer {
        transform: translateX(-100%);
    }

    .admin-drawer-checkbox:checked ~ .mud-layout .mud-appbar,
    .admin-drawer-checkbox:checked ~ .mud-layout .mud-main-content {
        margin-left: 0 !important;
    }

    .admin-drawer-checkbox:checked ~ .mud-layout .mud-appbar {
        width: 100% !important;
    }
}

/* Phones/small tablets: drawer starts closed (matching the old breakpoint-detection JS this
   replaces), checking the box opens it as an overlay. Since the checkbox has no server-side
   state, a fresh navigation naturally resets it to unchecked/closed, exactly like the old
   "close after navigating on a small screen" behavior did. */
@media (max-width: 959.98px) {
    .mud-layout .mud-drawer {
        transform: translateX(-100%);
        width: 100%;
    }

    .mud-layout .mud-appbar,
    .mud-layout .mud-main-content {
        margin-left: 0 !important;
    }

    .mud-layout .mud-appbar {
        width: 100% !important;
    }

    .admin-drawer-checkbox:checked ~ .mud-layout .mud-drawer {
        transform: translateX(0);
    }

    .admin-drawer-close {
        display: inline-flex;
    }
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* === Sticky topprad (alla publika sidor): kontaktinfo, backoffice-länk, språkval === */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 1300;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    background: #0d0d0d;
    border-bottom: 1px solid #262626;
    padding: 0.5rem 1rem;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.top-bar-address {
    /* <address> is block-level by default; this lets it sit inline in the flex row. */
    display: contents;
    font-style: normal;
}

/* "Kan jag åka idag?" - status i topplisten */
.today-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid;
}

.today-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.today-status-open {
    color: #5fd38d;
    border-color: rgba(95, 211, 141, 0.4);
    background: rgba(95, 211, 141, 0.1);
}

.today-status-open .today-status-dot {
    animation: today-status-pulse 2s ease-in-out infinite;
}

.today-status-bookable {
    color: #e6cf7a;
    border-color: rgba(201, 162, 39, 0.45);
    background: rgba(201, 162, 39, 0.1);
}

.today-status-closed {
    color: #ef8a8a;
    border-color: rgba(239, 138, 138, 0.4);
    background: rgba(239, 138, 138, 0.08);
}

a.today-status:hover {
    filter: brightness(1.15);
}

@keyframes today-status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
}

.top-bar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #d8d8d8;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.top-bar-link:hover {
    color: #C9A227;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.lang-switcher a {
    color: #999;
    text-decoration: none;
    transition: color 0.15s ease;
}

.lang-switcher a:hover {
    color: #fff;
}

.lang-switcher a.lang-switcher-active {
    color: #C9A227;
}

.lang-switcher-sep {
    color: #444;
}

/* Mobile: contact details as full-width pills stacked in a left column, language (and
   backoffice) as their own right-hand column, today's status full-width underneath. */
@media (max-width: 600px) {
    /* Too tall to keep on screen while scrolling on a phone - scrolls away with the page. */
    .top-bar {
        position: static;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.6rem 0.75rem;
    }

    .top-bar-contact {
        flex: 1 1 0;
        min-width: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }

    .top-bar-link {
        min-width: 0;
        gap: 0.55rem;
        padding: 0.55rem 0.95rem;
        border-radius: 999px;
        background: #1a1a1a;
        border: 1px solid #2c2c2c;
        font-size: 0.95rem;
        color: #ececec;
    }

    .top-bar-link-text {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .top-bar-link .mud-icon-root {
        color: #C9A227;
    }

    .top-bar-right {
        flex: 0 0 auto;
        flex-direction: column;
        justify-content: center;
        margin-left: 0;
        gap: 0.4rem;
    }

    /* Backoffice shrinks to an icon here so the column stays narrow. */
    .top-bar-right .top-bar-link {
        justify-content: center;
        padding: 0.55rem;
    }

    .top-bar-right .top-bar-link-text {
        display: none;
    }

    .lang-switcher {
        flex-direction: column;
        gap: 0.4rem;
        font-size: 0.95rem;
    }

    .lang-switcher-sep {
        display: none;
    }

    .lang-switcher a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 52px;
        min-height: 40px;
        border-radius: 999px;
        border: 1px solid #2c2c2c;
        background: #1a1a1a;
        color: #bbb;
    }

    .lang-switcher a.lang-switcher-active {
        background: #C9A227;
        border-color: #C9A227;
        color: #111;
    }

    /* Comes between the two columns in the markup - pushed to its own row underneath. */
    .today-status {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
        text-align: center;
        font-size: 0.9rem;
        padding: 0.5rem 0.85rem;
    }
}

/* === Main page hero med loop-video === */
.hero {
    position: relative;
    height: 78vh;
    min-height: 440px;
    max-height: 720px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #0d0d0d;
    background-size: cover;
    background-position: center;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.85) 100%),
        radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 1.25rem;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #C9A227;
    margin-bottom: 0.6rem;
}

.hero-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.15;
    font-size: clamp(1.75rem, 4.5vw, 3rem) !important;
    text-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

.hero-subtitle {
    margin-top: 0.75rem;
    max-width: 46ch;
    color: #d8d8d8;
    font-weight: 400;
    line-height: 1.5;
}

.hero-cta {
    margin-top: 1.5rem;
    font-weight: 700;
    padding: 0.75rem 2.25rem;
    font-size: 1.05rem;
    color: #121212 !important;
    box-shadow: 0 8px 28px rgba(201, 162, 39, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(201, 162, 39, 0.4);
}

.hero-social {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.hero-social a {
    color: #d8d8d8;
    transition: color 0.15s ease, transform 0.15s ease;
}

.hero-social a:hover {
    color: #C9A227;
    transform: translateY(-2px);
}

.hero-scroll-cue {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem !important;
    animation: hero-scroll-cue-bounce 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hero-scroll-cue-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* === Nyheter - bildspel över hero === */
/* Centered under the hero text on every screen size; the hero grows to fit both. */
.hero--with-news {
    height: auto;
    max-height: none;
    flex-direction: column;
    padding: 3rem 0 4.5rem;
}

.news-slider {
    position: relative;
    z-index: 3;
    width: calc(100% - 2rem);
    max-width: 560px;
    margin-top: 1.75rem;
    text-align: left;
    color: #fff;
}

.news-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.4rem;
    padding: 0 0.25rem;
}

.news-slider-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #C9A227;
}

.news-slider-count {
    font-size: 0.75rem;
    color: #bbb;
    font-variant-numeric: tabular-nums;
}

.news-slide {
    position: relative;
    animation: news-slide-in 0.5s ease;
}

@keyframes news-slide-in {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

.news-card {
    display: flex;
    gap: 0.85rem;
    padding: 0.75rem;
    background: rgba(18, 18, 18, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid #C9A227;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.news-card-image {
    flex-shrink: 0;
    width: 104px;
    height: 104px;
    object-fit: cover;
    border-radius: 6px;
    background: #222;
}

.news-card--expanded {
    flex-direction: column;
}

.news-card--expanded .news-card-image {
    width: 100%;
    height: auto;
    max-height: 220px;
}

.news-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.news-card-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    color: #fff;
}

.news-card-text {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #d0d0d0;
    white-space: pre-line;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card--expanded .news-card-text {
    display: block;
    -webkit-line-clamp: unset;
    max-height: 40vh;
    overflow-y: auto;
}

.news-card-link {
    align-self: flex-start;
    margin-top: 0.6rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: #C9A227;
    color: #111 !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.news-card-link:hover {
    filter: brightness(1.1);
}

/* Countdown to the next slide; restarts with each slide (see @key in NewsSlider). */
.news-slider-progress {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.news-slider-progress span {
    display: block;
    height: 100%;
    background: #C9A227;
    transform-origin: left;
    animation: news-progress var(--news-interval, 7s) linear forwards;
}

.news-slider--paused .news-slider-progress span {
    animation-play-state: paused;
}

@keyframes news-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.news-slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.news-slider-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(18, 18, 18, 0.7);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.news-slider-arrow:hover {
    border-color: #C9A227;
    color: #C9A227;
}

.news-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.news-slider-dot.active {
    width: 22px;
    border-radius: 999px;
    background: #C9A227;
}

@media (max-width: 900px) {
    .hero--with-news {
        padding: 2.5rem 0 4rem;
    }

    .news-slider {
        margin-top: 1rem;
        touch-action: pan-y;
    }
}

/* Phones: finger-sized controls, slightly smaller image so the text gets more room. */
@media (max-width: 600px) {
    .news-card {
        gap: 0.7rem;
        padding: 0.65rem;
    }

    .news-card-image {
        width: 84px;
        height: 84px;
    }

    .news-card-text {
        font-size: 0.9rem;
    }

    .news-card-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .news-slider-nav {
        gap: 0.25rem;
        margin-top: 0.6rem;
    }

    .news-slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    /* Bigger hit area around the small visible dot. */
    .news-slider-dot {
        width: 10px;
        height: 10px;
        margin: 0 4px;
        box-shadow: 0 0 0 10px transparent;
    }

    .news-slider-dot.active {
        width: 26px;
    }
}

/* === Fingerboard-spel (startsidan) === */
.fingerboard-wrap {
    position: relative;
    border: 1px solid #2c2c2c;
    border-top: 3px solid #C9A227;
    border-radius: 10px;
    overflow: hidden;
    background: #121212;
}

.fingerboard-canvas {
    display: block;
    width: 100%;
    height: 360px;
    cursor: grab;
    /* The game handles all touch gestures itself - don't scroll/zoom the page while playing. */
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.fingerboard-canvas:active {
    cursor: grabbing;
}

.fingerboard-fullscreen-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(18, 18, 18, 0.75);
    color: #fff;
    cursor: pointer;
}

.fingerboard-fullscreen-btn:hover {
    border-color: #C9A227;
    color: #C9A227;
}

.fingerboard-fullscreen-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.fingerboard-fullscreen-btn .fs-exit,
.fingerboard-wrap.is-fullscreen .fingerboard-fullscreen-btn .fs-enter {
    display: none;
}

.fingerboard-wrap.is-fullscreen .fingerboard-fullscreen-btn .fs-exit {
    display: block;
}

/* Fullscreen (real Fullscreen API, or the CSS fallback on iPhone): the game fills the screen. */
.fingerboard-wrap.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 2000;
    border: none;
    border-radius: 0;
}

.fingerboard-wrap.is-fullscreen .fingerboard-canvas {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
}

/* Fallback mode can't hide the browser's own scrolling - stop the page behind from scrolling. */
html.fingerboard-fullscreen-open,
html.fingerboard-fullscreen-open body {
    overflow: hidden;
}

.fingerboard-help {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #b0b0b0;
    text-align: center;
}

.fingerboard-help strong {
    color: #C9A227;
}

/* Show the instructions for the input the visitor actually has. */
.fingerboard-help-touch {
    display: none;
}

@media (hover: none) and (pointer: coarse) {
    .fingerboard-help-desktop {
        display: none;
    }

    .fingerboard-help-touch {
        display: block;
    }
}

@media (max-width: 600px) {
    .fingerboard-canvas {
        height: 320px;
    }

    /* Larger, higher-contrast instructions on phones for easier reading. */
    .fingerboard-help {
        font-size: 1.05rem;
        line-height: 1.65;
        color: #e0e0e0;
        text-align: left;
    }

    .fingerboard-fullscreen-btn {
        width: 48px;
        height: 48px;
    }

    .fingerboard-fullscreen-btn svg {
        width: 28px;
        height: 28px;
    }
}

/* === Startsidan på mobil: större, mer lättläst text === */
@media (max-width: 600px) {
    .home-page .mud-typography-body1 {
        font-size: 1.12rem;
        line-height: 1.6;
    }

    .home-page .mud-typography-body2 {
        font-size: 1.02rem;
        line-height: 1.55;
    }

    .home-page .mud-typography-caption {
        font-size: 0.92rem;
    }

    .home-page .mud-typography-h4 {
        font-size: 1.85rem;
    }

    .home-page .mud-text-secondary {
        color: #d0d0d0 !important;
    }

    .home-page .hero-kicker {
        font-size: 0.85rem;
    }

    .home-page .hero-subtitle {
        font-size: 1.15rem !important;
    }

    /* Tables (club activities, membership prices) */
    .home-page .info-table th {
        font-size: 0.85rem;
    }

    .home-page .info-table td {
        font-size: 1.02rem;
    }

    .home-page .membership-description,
    .home-page .membership-period {
        font-size: 0.95rem;
    }

    .home-page .membership-amount {
        font-size: 1.35rem;
    }

    /* News slideshow */
    .home-page .news-card-title {
        font-size: 1.12rem;
    }

    .home-page .news-card-text {
        font-size: 1rem;
    }

    .home-page .news-slider-label,
    .home-page .news-slider-count {
        font-size: 0.85rem;
    }
}

/* Admin preview: same card, on a dark backdrop like the hero video. */
.news-admin-preview {
    padding: 1rem;
    margin-bottom: 0.4rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #2a2a2a, #0d0d0d);
}

@media (prefers-reduced-motion: reduce) {
    .news-slide {
        animation: none;
    }
}

/* "Öppna Swish och betala" in the booking confirmation page template - only on phones, where
   the Swish app is; on a computer the QR code is scanned instead. */
.swish-pay-mobile {
    display: none;
}

@media (max-width: 768px) {
    .swish-pay-mobile {
        display: inline-block;
        margin-top: 1rem;
        padding: 0.75rem 1.75rem;
        border-radius: 999px;
        background: #C9A227;
        color: #111 !important;
        font-weight: 700;
        text-decoration: none;
    }
}

/* === Klubbverksamhet (startsidan) - uses the shared .info-table below === */
.club-activity-day {
    font-weight: 700;
    color: #f2f2f2;
    width: 1%;
    white-space: nowrap;
}

.club-activity-time {
    font-weight: 700;
    color: #C9A227;
    width: 1%;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.club-activity-label {
    color: #d0d0d0;
}

/* === Tabeller på startsidan (klubbverksamhet, medlemspriser) === */
.info-table-wrap {
    max-width: 860px;
    margin: 0 auto;
    border: 1px solid #2c2c2c;
    border-radius: 10px;
    overflow: hidden;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background: #1c1c1c;
}

.info-table th {
    background: #C9A227;
    color: #111;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.75rem 1.25rem;
}

.info-table td {
    padding: 0.9rem 1.25rem;
    border-top: 1px solid #2c2c2c;
    vertical-align: middle;
}

.info-table tbody tr:nth-child(even) td {
    background: #212121;
}

.info-table tbody tr:hover td {
    background: #282828;
}

.info-table td + td,
.info-table th + th {
    border-left: 1px solid #2c2c2c;
}

.info-table th + th {
    border-left-color: rgba(0, 0, 0, 0.15);
}

.membership-row-payable {
    cursor: pointer;
}

.info-table tbody tr.membership-row-payable:hover td {
    background: rgba(201, 162, 39, 0.08);
}

.membership-row-payable:focus-visible td {
    outline: 2px solid #C9A227;
    outline-offset: -2px;
}

/* Text for screen readers only. */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.info-table .membership-buy-col {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

/* "Köp" pill at the end of each payable row; fills in gold when the row is hovered. */
.membership-buy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #C9A227;
    color: #C9A227;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.membership-row-payable:hover .membership-buy,
.membership-row-payable:focus-visible .membership-buy {
    background: #C9A227;
    color: #111;
}

@media (max-width: 600px) {
    .membership-buy {
        padding: 0.4rem;
    }

    .membership-buy-text {
        display: none;
    }
}

/* Medlemskap -> Swish-modal */
.membership-pay-summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #2c2c2c;
}

.membership-pay-result {
    margin-top: 1.25rem;
    text-align: center;
}

.membership-pay-button {
    display: block;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    background: #C9A227;
    color: #111 !important;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
}

.membership-pay-button:hover {
    filter: brightness(1.1);
}

.membership-name {
    font-weight: 700;
    color: #f2f2f2;
}

.membership-description {
    margin-top: 0.15rem;
    font-size: 0.85rem;
    color: #a8a8a8;
}

.membership-period {
    color: #d0d0d0;
    font-size: 0.9rem;
}

.membership-period div + div {
    margin-top: 0.25rem;
}

.info-table .info-table-num {
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

.membership-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: #C9A227;
}

.membership-unit {
    margin-left: 0.15rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #C9A227;
}

@media (max-width: 600px) {
    .info-table th,
    .info-table td {
        padding: 0.7rem 0.75rem;
    }

    .membership-period {
        font-size: 0.8rem;
    }

    .membership-amount {
        font-size: 1.15rem;
    }
}

/* MudBlazor sets the picker popup's width inline to match its (narrow) closed field -
   force it back to a sane fixed width so the calendar itself doesn't get squished. The
   range picker shows two months side by side, so it needs more room than a single date picker. */
.mud-picker-popover-paper {
    width: 350px !important;
    max-width: 90vw !important;
}

.mud-picker-popover-paper:has(.mud-picker-calendar-content-2) {
    width: 656px !important;
}

/* The toolbar's date text is sized for a short single date ("14 Sept") - a full range
   ("Mon 14 Sept - Mon 28 Sept") needs a smaller size and a flexible height to avoid overlap. */
.mud-picker-toolbar {
    height: auto;
    min-height: 100px;
    padding: 12px 16px;
}

.mud-picker-datepicker-toolbar .mud-button-date {
    font-size: 1.4rem;
    line-height: 1.3;
}

/* === Bokningskalender === */
.booking-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
    background: transparent;
    padding: 0;
}

.booking-day {
    background: #1c1c1c;
    border: 1px solid #2c2c2c;
    border-radius: 10px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.15s ease;
}

.booking-day--today {
    border-color: #C9A227;
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35);
}

.booking-day-header {
    position: relative;
    text-align: center;
    padding: 0.85rem 0.5rem 0.7rem;
    border-bottom: 1px solid #2c2c2c;
    background: #202020;
}

.booking-day--today .booking-day-header {
    background: rgba(201, 162, 39, 0.08);
}

.booking-day-badge {
    position: absolute;
    top: 0.4rem;
    right: 0.5rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #121212;
    background: #C9A227;
    border-radius: 999px;
    padding: 0.1rem 0.4rem;
}

.booking-day-name {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #9a9a9a;
    letter-spacing: 0.8px;
}

.booking-day-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.booking-day--today .booking-day-number {
    color: #C9A227;
}

.booking-day-month {
    font-size: 0.72rem;
    color: #9a9a9a;
    text-transform: capitalize;
}

.booking-day-slots {
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.slot-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.78rem;
    color: #666;
    padding: 1rem 0.25rem;
}

.slot-card {
    border-radius: 8px !important;
    cursor: pointer;
    border: 1px solid #333;
    border-left: 3px solid transparent;
    background-color: #262626 !important;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.slot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.slot-card--available {
    border-left-color: #4caf50;
}

.slot-card--few {
    border-left-color: #ff9800;
}

.slot-time {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.slot-icon {
    flex-shrink: 0;
}

.slot-meta {
    font-size: 0.78rem;
    color: #a3a3a3;
    margin-top: 0.2rem;
    margin-bottom: 0.6rem;
}

.slot-deal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.2rem;
    margin-bottom: 0.6rem;
}

.slot-deal-badge {
    background: #c9a227;
    color: #1a1a1a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}

.slot-price-old {
    color: #a3a3a3;
    font-size: 0.85rem;
}

.slot-price-new {
    color: #e6cf7a;
    font-size: 1.05rem;
}

.slot-chip {
    font-weight: 600 !important;
    margin-bottom: 0.6rem;
}

@media (max-width: 900px) {
    .booking-calendar {
        grid-template-columns: repeat(1, 1fr);
    }

    .slot-card {
        text-align: center;
    }

    .slot-time {
        justify-content: center;
    }
}

/* === Adminkalender (bokningar, klubbverksamhet, stängda dagar, avvikelser) === */
.admin-calendar-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.admin-calendar-title {
    flex: 1;
    text-align: center;
    text-transform: capitalize;
}

.admin-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.78rem;
    color: #a3a3a3;
    margin-bottom: 1rem;
}

.admin-calendar-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.admin-calendar-legend-dot--approved { background: #4caf50; }
.admin-calendar-legend-dot--pending { background: #ff9800; }
.admin-calendar-legend-dot--activity { background: #2196f3; }
.admin-calendar-legend-dot--closed { background: #f44336; }

.admin-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.admin-calendar-weekday {
    text-align: center;
    font-weight: 700;
    font-size: 0.72rem;
    color: #a3a3a3;
    padding-bottom: 0.4rem;
    text-transform: uppercase;
}

.admin-calendar-day {
    min-height: 110px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.admin-calendar-day--muted {
    opacity: 0.4;
}

.admin-calendar-day--today {
    border-color: #C9A227;
}

.admin-calendar-day--closed {
    background: #2a1414;
    border-color: #7a2f2f;
}

.admin-calendar-day-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.admin-calendar-badge {
    font-size: 0.66rem;
    line-height: 1.25;
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-calendar-badge--closed {
    background: #f44336;
    color: #fff;
    font-weight: 600;
}

.admin-calendar-badge--activity {
    background: rgba(33, 150, 243, 0.18);
    color: #64b5f6;
}

.admin-calendar-badge--booking-approved {
    background: rgba(76, 175, 80, 0.18);
    color: #81c784;
}

.admin-calendar-badge--booking-pending {
    background: rgba(255, 152, 0, 0.18);
    color: #ffb74d;
}

/* A booking seen by someone who may not see who booked: just a time that is taken, the same whether it is approved or pending. */
.admin-calendar-badge--booking-anonymous {
    background: rgba(189, 189, 189, 0.2);
    color: #e0e0e0;
}

@media (max-width: 900px) {
    .admin-calendar-day {
        min-height: 72px;
    }

    .admin-calendar-badge {
        font-size: 0.6rem;
    }

    .admin-calendar-weekday {
        font-size: 0.62rem;
    }
}

/* === Sparade bokningar (klientsida, localStorage) === */
.saved-booking-card {
    cursor: pointer;
    border: 1px solid #333;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.saved-booking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    border-color: #555;
}

/* Admin booking statistics: simple bar chart, one series */
.stats-chart {
    display: flex;
    align-items: stretch;
    gap: 2px;
    height: 180px;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.stats-col {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: default;
}

.stats-bar {
    width: 100%;
    background: var(--mud-palette-primary);
    opacity: 0.75;
    border-radius: 4px 4px 0 0;
}

.stats-bar--top {
    opacity: 1;
}

.stats-col:hover .stats-bar {
    opacity: 1;
}

.stats-label {
    position: absolute;
    bottom: -1.2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: #a3a3a3;
    white-space: nowrap;
}


/* Booking page: the day picked in the date picker */
.booking-day {
    scroll-margin-top: 80px;
}

.booking-day--selected {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}


/* Booking confirmation: compact so the Swish pay button is visible without scrolling on phones */
.confirm-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.confirm-title {
    line-height: 1.2;
}

.confirm-ref {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.confirm-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    font-size: 0.85rem;
}

.confirm-details .mud-text-secondary {
    font-size: 0.7rem;
}

.confirm-pay > div {
    padding: 8px !important;
}

.confirm-pay p {
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
}

.confirm-pay img {
    max-width: 150px !important;
}

@media (max-width: 600px) {
    .confirm-details {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =====================================================================
   Mobile-first upgrade: menu, hero link, cards, news controls, focus
   ===================================================================== */

/* Visible keyboard focus everywhere (never removed, only added). */
:where(a, button, summary, [role="button"], input, select, textarea):focus-visible {
    outline: 2px solid #C9A227;
    outline-offset: 2px;
}

/* --- Site menu (native <details>: works without JS, keyboard accessible) --- */
.site-menu {
    position: relative;
}

.site-menu summary {
    list-style: none;
    cursor: pointer;
}

.site-menu summary::-webkit-details-marker {
    display: none;
}

.site-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    min-width: 44px;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #2c2c2c;
    background: #1a1a1a;
    color: #ececec;
    font-size: 0.9rem;
    font-weight: 600;
}

.site-menu[open] .site-menu-button {
    background: #C9A227;
    border-color: #C9A227;
    color: #111;
}

.site-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 1400;
    min-width: 240px;
    max-width: calc(100vw - 1.5rem);
    display: flex;
    flex-direction: column;
    background: #202020;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 0.4rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.site-menu-panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    color: #f5f5f5;
    text-decoration: none;
}

.site-menu-panel a:hover {
    background: #2b2b2b;
}

.site-menu-panel .site-menu-cta {
    background: #C9A227;
    color: #111;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.site-menu-panel .site-menu-cta:hover {
    background: #d9b337;
}

@media (max-width: 600px) {
    .site-menu-button {
        width: 100%;
        padding: 0.4rem;
    }

    .site-menu-button-text {
        display: none;
    }
}

/* --- Hero: secondary link under the primary CTA --- */
.hero-secondary {
    margin-top: 0.9rem;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.4rem 0.75rem;
    color: #f5f5f5;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #C9A227;
    text-underline-offset: 4px;
}

.hero-secondary:hover {
    color: #C9A227;
}

.hero-cta {
    min-height: 48px;
}

/* --- Phones: tables become cards (club activities + membership) --- */
@media (max-width: 600px) {
    .info-table--cards,
    .info-table--cards tbody,
    .info-table--cards tr,
    .info-table--cards td {
        display: block;
        width: 100%;
    }

    .info-table--cards thead {
        /* Column headers are repeated as labels inside each card. */
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .info-table-wrap:has(.info-table--cards) {
        border: none;
        border-radius: 0;
        overflow: visible;
        background: transparent;
    }

    .info-table--cards {
        background: transparent;
    }

    .info-table--cards tbody {
        display: grid;
        gap: 0.75rem;
    }

    .info-table--cards tbody tr,
    .info-table--cards tbody tr:nth-child(even) {
        background: #202020;
        border: 1px solid #2c2c2c;
        border-radius: 12px;
        overflow: hidden;
    }

    .info-table--cards tbody tr:nth-child(even) td,
    .info-table--cards tbody tr:hover td,
    .info-table--cards td {
        background: transparent;
    }

    .info-table--cards td,
    .info-table--cards td + td {
        border: none;
        padding: 0.35rem 1rem;
        width: 100%;
        white-space: normal;
    }

    /* Activities: "Monday [Today]" as the card title, time and activity beneath. */
    .activities-table td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 1rem;
        text-align: right;
    }

    .activities-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        color: #9a9a9a;
        text-align: left;
    }

    .activities-table tr {
        padding: 0.5rem 0;
    }

    .activities-table .club-activity-day {
        font-size: 1.1rem;
    }

    /* Membership: plan name + description on top, period and price as rows, big buy button. */
    .membership-table .membership-plan-cell {
        padding-top: 0.9rem;
    }

    .membership-table td[data-label] {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 1rem;
        text-align: right;
    }

    .membership-table td[data-label]::before {
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        color: #9a9a9a;
        text-align: left;
    }

    .membership-table .membership-buy-col {
        padding: 0.5rem 1rem 1rem;
        text-align: center;
    }

    .membership-table .membership-buy {
        display: flex;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        padding: 0.6rem 1rem;
        background: #C9A227;
        color: #111;
        font-size: 1rem;
    }

    .membership-table .membership-buy-text {
        display: inline;
    }
}

.club-activity-today .club-activity-day,
.club-activity-today .club-activity-time {
    color: #C9A227;
}

.club-activity-today-badge {
    margin-left: 0.4rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #C9A227;
    color: #111;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
}

/* --- News: finger-sized controls with real hit areas --- */
.news-slider-arrow {
    min-width: 44px;
    min-height: 44px;
}

.news-slider-dot {
    position: relative;
    width: 24px;
    height: 44px;
    margin: 0;
    background: transparent;
    border: none;
}

.news-slider-dot::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transition: width 0.2s ease, background-color 0.2s ease;
}

.news-slider-dot.active {
    width: 24px;
    background: transparent;
}

.news-slider-dot.active::before {
    width: 22px;
    background: #C9A227;
}

@media (max-width: 600px) {
    .news-slider-dot,
    .news-slider-dot.active {
        width: 24px;
        height: 44px;
        margin: 0;
        box-shadow: none;
    }

    .news-slider-arrow {
        width: 44px;
        height: 44px;
    }
}

.news-card-image {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.news-card:focus-visible {
    outline: 2px solid #C9A227;
    outline-offset: 2px;
}

/* --- Language switcher: comfortable tap targets (phones; on wider screens it stays an inline link) --- */
@media (max-width: 600px) {
    .lang-switcher a {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-scroll-cue {
        animation: none;
    }
}

/* Phones: the buy cell must span the whole card (beats the desktop `width: 1%` rule above). */
@media (max-width: 600px) {
    .info-table.info-table--cards td.membership-buy-col {
        display: block;
        width: 100%;
        padding: 0.5rem 1rem 1rem;
    }

    .info-table.info-table--cards .membership-buy {
        display: flex;
        width: 100%;
        box-sizing: border-box;
    }
}

/* === Familjesidan (QR-kod, registrering och incheckning) === */
.family-code {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: 0.4rem;
    text-align: center;
    line-height: 1.1;
    margin: 0.5rem 0 1rem;
    color: #C9A227;
    font-variant-numeric: tabular-nums;
}

.family-code-small {
    font-size: 2rem;
    letter-spacing: 0.25rem;
    margin-bottom: 0.5rem;
}

.family-label {
    letter-spacing: 0.08rem;
}

.family-lines {
    margin: 0 0 0.5rem;
    padding-left: 1.2rem;
}

/* === QR-koden för registrering: dialog och utskrift === */
.qr-print-area {
    text-align: center;
    padding: 1rem;
}

.qr-print-title {
    font-size: 1.8rem;
    font-weight: 800;
}

.qr-print-sub {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.qr-print-code {
    width: min(320px, 80%);
    margin: 0 auto;
    background: #fff;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.qr-print-code svg {
    width: 100%;
    height: auto;
    display: block;
}

.qr-print-link {
    margin-top: 0.75rem;
    word-break: break-all;
    font-size: 0.95rem;
}

@media print {
    body * {
        visibility: hidden !important;
    }

    .qr-print-area,
    .qr-print-area * {
        visibility: visible !important;
        color: #000 !important;
    }

    .qr-print-area {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        padding: 3rem 2rem;
        background: #fff;
    }

    .qr-print-title {
        font-size: 3rem;
    }

    .qr-print-sub {
        font-size: 1.6rem;
    }

    .qr-print-code {
        width: 70%;
    }

    .qr-print-link {
        font-size: 1.3rem;
    }
}

/* Knappen Checka in / Registrera: en egen rad sist i tabellen över klubbverksamhet, centrerad även i kortläget på mobilen. */
.club-activity-action td {
    text-align: center;
}

.activities-table .club-activity-action td {
    justify-content: center;
}

.activities-table .club-activity-action td::before {
    display: none;
}
