/* =========================================================================
   Design 2026 – den publika sidan.
   Allt ligger under .s26 (SiteShell) så att admin/owner-panelen inte påverkas.
   Laddas efter app.css och komponenternas egna stilar och skriver över dem där det behövs.
   Föreningens färg: --club-primary (från SiteSettings, valideras i SiteShell).
   ========================================================================= */

.s26 {
    --ink: #0d1117;
    --ink-2: #3a4350;
    --muted: #5b6573;
    --bg: #f3f4f6;
    --card: #ffffff;
    --line: #e6e9ed;
    --dark: #0d1117;
    --dark-2: #1b2430;
    --dark-3: #2a3442;
    --on-dark-muted: #a3adba;
    --accent: var(--club-primary);
    --accent-soft: color-mix(in srgb, var(--club-primary) 10%, #fff);
    --radius: 22px;
    --radius-lg: 28px;
    --display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --text: var(--ink);
    --panel: var(--bg);
    --page-bg: var(--bg);

    display: block !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: clip;
}

body:has(.s26) { background: #f3f4f6; }

/* Bootstrap-knappar som är <a class="btn"> ska behålla sin egen textfärg. :where() håller specificiteten oförändrad. */
.s26 a:where(:not(.btn)) { color: var(--ink); text-underline-offset: 3px; }
.s26 a:where(:not(.btn)):hover { color: var(--accent); }
.s26 :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
/* Blazors <FocusOnNavigate Selector="h1"> flyttar fokus till sidans rubrik (för skärmläsare) – ingen synlig ram på den */
.s26 h1:focus, .s26 h1:focus-visible, .s26 [tabindex="-1"]:focus-visible { outline: none; }

.s26 h1, .s26 h2, .s26 h3, .s26 h4 {
    font-family: var(--display);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .01em;
    line-height: 1;
    color: var(--ink);
}
.s26 h1 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 18px; }
.s26 h2 { font-size: clamp(26px, 3vw, 34px); }
.s26 h3 { font-size: 24px; }

.s-wrap { max-width: 1280px; margin: 0 auto; padding-inline: 32px; box-sizing: border-box; }
.s-page { padding-top: 40px; padding-bottom: 72px; }
/* Full bredd inne i den centrerade sidan (startsidans hero) */
.s-bleed { margin-inline: calc(50% - 50vw); }

.s-skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: #fff; padding: 10px 16px; border-radius: 999px; }
.s-skip:focus { left: 16px; }

/* ---------- knappar ---------- */
.s-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.s26 .s-btn--dark { background: var(--dark); color: #fff; }
.s26 .s-btn--dark:hover { background: var(--dark-3); color: #fff; }
.s26 .s-btn--light { background: #fff; color: var(--ink); }
.s26 .s-btn--light:hover { background: #e9edf1; color: var(--ink); }
.s26 .s-btn--outline { border-color: #d5dae0; color: var(--ink); background: #fff; }
.s26 .s-btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.s-btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }

/* ---------- sidhuvud ---------- */
.s-header {
    position: sticky; top: 0; z-index: 30;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.s-header-row { height: 72px; display: flex; align-items: center; gap: 24px; }

.s26 .s-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.s-brand-logo { width: 44px; height: 44px; object-fit: contain; }
.s-brand-mark {
    width: 42px; height: 42px; border-radius: 13px; background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--display); font-weight: 800; font-size: 20px;
}
.s-brand-name { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }

.s-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; flex-wrap: wrap; }
.s26 .s-pill {
    display: inline-flex; align-items: center; gap: 6px;
    height: 40px; padding: 0 14px; border-radius: 999px;
    font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
    cursor: pointer; list-style: none;
}
.s26 .s-pill::-webkit-details-marker { display: none; }
.s26 .s-pill:hover { background: #eef1f4; color: var(--ink); }
.s26 .s-pill.active { background: var(--dark); color: #fff; font-weight: 600; }
.s-caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }

.s-dd { position: relative; }
.s-dd-menu {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 220px; max-height: 70vh; overflow-y: auto;
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 8px;
    box-shadow: 0 18px 40px rgba(13, 17, 23, .14);
    display: flex; flex-direction: column;
}
.s-dd-menu--end { left: auto; right: 0; }
.s26 .s-dd-menu a { padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; color: var(--ink); }
.s26 .s-dd-menu a:hover { background: #f3f4f6; }
.s-dd-group { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.s26 .s-dd-all { font-weight: 600; }

.s-header-end { flex: none; display: flex; align-items: center; gap: 8px; }

/* Användarmenyn (UserMenu) i den nya stilen */
.s26 .login-link {
    display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px;
    background: var(--accent); color: #fff !important; font-weight: 600; font-size: 14px; text-decoration: none;
}
.s26 .login-link:hover { filter: brightness(.92); }
.s26 .user-menu { position: relative; }
.s26 .user-toggle {
    display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; list-style: none;
}
.s26 .user-toggle::-webkit-details-marker { display: none; }
.s26 .user-dropdown {
    right: 0; left: auto; top: calc(100% + 8px); border-radius: 18px; border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(13, 17, 23, .14); padding: 8px; background: #fff; overflow: hidden;
}
.s26 .user-dropdown a, .s26 .user-dropdown button { border-radius: 10px; color: var(--ink); }

/* Hamburgaren (mobil) */
.s-burger { display: none; position: relative; margin-left: auto; }
.s-burger summary {
    list-style: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; background: #fff;
}
.s-burger summary::-webkit-details-marker { display: none; }
.s-burger summary span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
.s-burger-menu {
    position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 32px)); max-height: 75vh; overflow-y: auto;
    background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 8px; display: flex; flex-direction: column;
    box-shadow: 0 18px 40px rgba(13, 17, 23, .18);
}
.s26 .s-burger-menu a { padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.s26 .s-burger-menu a.active { background: var(--dark); color: #fff; }
.s26 .s-burger-menu a.indent { padding-left: 26px; font-weight: 400; }
.s-burger-group { padding: 12px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- lagrad (lagsidorna) ---------- */
.s-teambar { background: var(--dark); color: #fff; }
.s-teambar .s-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.s-teambar-title { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; text-transform: uppercase; }
.s-teambar-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.s26 .s-pill--dark { color: #e6eaef; }
.s26 .s-pill--dark:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.s26 .s-pill--dark.active { background: #fff; color: var(--ink); }

/* ---------- mobilens flikrad ---------- */
.s-tabbar { display: none; }

/* ---------- sidfot ---------- */
.s-prefooter { padding: 8px 0 56px; }
.s-prefooter-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.s-prefooter-grid:has(> :only-child) { grid-template-columns: 1fr; }
.s26 .ig-card, .s26 .sponsors { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0; box-shadow: none; }
.s26 .sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.s26 .sponsors-title { grid-column: 1 / -1; margin: 0 0 4px; font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; border: 0; }
.s26 .sponsors-title span { background: none; padding: 0; }
.s26 .sponsor-card { margin: 0; height: 84px; border-radius: 16px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px; box-shadow: none; }
.s26 .sponsor-card img { max-height: 60px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.s26 a.sponsor-card:hover img { filter: none; opacity: 1; }

.s-footer { background: var(--dark); color: #c4cbd4; }
.s-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.s-footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.s-footer-col p { margin: 0; line-height: 1.6; }
.s-footer-col strong { color: #fff; font-size: 15px; }
.s26 .s-footer-col a { color: #c4cbd4; text-decoration: none; }
.s26 .s-footer-col a:hover { color: #fff; text-decoration: underline; }
.s-footer-name { font-family: var(--display); font-weight: 800; font-size: 28px; color: #fff; text-transform: uppercase; }

/* ---------- gemensamma byggstenar från de befintliga sidorna ---------- */
.s26 .page-grid { gap: 32px; grid-template-columns: minmax(0, 1fr) 320px; }
.s26 .page-aside { padding-top: 0; display: flex; flex-direction: column; gap: 20px; }
.s26 .widget, .s26 .team-card, .s26 .contact-group, .s26 .member-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: none; margin: 0;
}
.s26 .widget-title, .s26 .widget-heading {
    margin: 0 0 14px; padding: 0; border: 0; background: none;
    font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; color: var(--ink);
}
.s26 .widget-link { font-weight: 600; color: var(--ink); }
.s26 .page-header { border-bottom: 0; padding-bottom: 0; margin-bottom: 24px; }
.s26 .page-image { border-radius: var(--radius); }
.s26 .rich-text { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.s26 .rich-text h2, .s26 .rich-text h3 { margin-top: 1.4em; }
.s26 .section-divider { border-color: var(--line); margin: 32px 0; }

/* Nyhetslistan */
.s26 .news-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 16px; }
.s26 .news-tag { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.s26 .news-tag strong { font-weight: 800; }
.s26 .news-title { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.05; text-transform: uppercase; margin: 0 0 8px; }
.s26 .news-title a { color: var(--ink); text-decoration: none; }
.s26 .news-title a:hover { color: var(--accent); }
.s26 .news-meta { color: var(--muted); font-size: 13px; }
.s26 .news-figure img { border-radius: 16px; }
.s26 .read-more { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--dark); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; margin-top: 6px; }
.s26 .read-more:hover { background: var(--dark-3); color: #fff; }
.s26 .pager a, .s26 .pager span { border-radius: 999px; }

/* Tabeller */
.s26 .data-table, .s26 .standings { border-collapse: separate; border-spacing: 0; width: 100%; }
.s26 .data-table thead th, .s26 .standings th { background: none; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.s26 .data-table td, .s26 .standings td { border-bottom: 1px solid #f0f2f5; }
.s26 .data-table tr.own td, .s26 .standings tr.own td { background: var(--accent-soft); font-weight: 700; }

/* Växlar (säsong/serie) och flikar */
.s26 .toggle-group { gap: 6px; border: 0; }
.s26 .toggle-group a { border: 1px solid #d5dae0 !important; border-radius: 999px !important; padding: 8px 14px; color: var(--ink); background: #fff; margin: 0; }
.s26 .toggle-group a.active { background: var(--dark); border-color: var(--dark) !important; color: #fff; }

/* Kalendern */
.s26 .calendar-nav a, .s26 .calendar-nav span { border-radius: 999px !important; }
.s26 .calendar-day { background: var(--card); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; }
.s26 .calendar-day.today { box-shadow: 0 0 0 2px var(--accent); }
.s26 .calendar-day.match { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }

/* Album, trupp, lag */
.s26 .album-card, .s26 .squad-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.s26 .photo-grid img, .s26 .album-card img { border-radius: 14px; }
.s26 .team-card-head { border: 0; background: none; padding: 0 0 10px; }
.s26 .team-card-head h2 { font-size: 28px; }
.s26 .avatar { border-radius: 14px; }

/* =========================================================================
   Startsidan
   ========================================================================= */
.h-home { display: flex; flex-direction: column; gap: 56px; margin-top: -40px; }
.h-section { display: flex; flex-direction: column; gap: 18px; }
.h-section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.s26 .h-h2 { margin: 0; font-size: 36px; }
.s26 .h-more { font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.h-muted { color: var(--muted); font-size: 13px; }
.h-muted-light { color: var(--on-dark-muted); font-size: 14px; }
.h-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.h-eyebrow--light { color: #ffd0d6; color: color-mix(in srgb, var(--accent) 35%, #fff); }
.h-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.s26 a.h-card { text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.s26 a.h-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13, 17, 23, .08); border-color: #d5dae0; color: var(--ink); }

.h-chip { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.h-chip--win { background: #e3f5ea; color: #0f5c2e; }
.h-chip--draw { background: #eef1f4; color: #3a4350; }
.h-chip--loss { background: #fde8eb; color: #9b1626; }
.h-chip--match { background: #fde8eb; color: #9b1626; }
.h-chip--training { background: #e8f0fe; color: #1a46a8; }
.h-chip--meeting { background: #fff3dc; color: #7a4504; }

/* Hero */
.h-hero { background: var(--dark); color: #fff; }
.h-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-top: 48px; padding-bottom: 56px; }
.h-hero-news {
    grid-column: span 7; position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 460px;
    background: repeating-linear-gradient(135deg, var(--dark-2) 0 22px, #202a37 22px 44px);
    display: flex; flex-direction: column; justify-content: flex-end;
}
.h-hero-news--welcome { min-height: 360px; background: var(--dark-2); }
.h-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-hero-text {
    position: relative; padding: 36px; display: flex; flex-direction: column; gap: 14px;
    background: linear-gradient(0deg, rgba(13, 17, 23, .96) 0%, rgba(13, 17, 23, .7) 55%, rgba(13, 17, 23, 0) 100%);
}
.h-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.h-tag { background: rgba(255, 255, 255, .14); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.h-tag--accent { background: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.s26 .h-hero-title { margin: 0; color: #fff; font-size: clamp(40px, 5vw, 64px); line-height: .95; }
/* Fokusringen syns på mörk bakgrund i vitt (tangentbord) */
.s26 .h-hero :focus-visible, .s26 .s-teambar :focus-visible, .s26 .s-footer :focus-visible { outline-color: #fff; }
.h-hero-summary { margin: 0; max-width: 600px; color: #c4cbd4; font-size: 17px; line-height: 1.55; }
.h-hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* Utan matcher (modulen avstängd): nyheten tar hela bredden */
.h-hero-grid--solo .h-hero-news { grid-column: 1 / -1; }
.h-hero-side { grid-column: span 5; display: flex; flex-direction: column; gap: 24px; }
.h-next { border-radius: var(--radius-lg); background: #fff; color: var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.h-next-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.s26 .h-next-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; text-decoration: none; color: var(--ink); }
.h-next-team { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 15px; }
.s26 .h-next-team .team-badge--large { width: 64px; height: 64px; border-radius: 18px; object-fit: contain; }
.h-vs { font-family: var(--display); font-weight: 700; font-size: 28px; color: #8a94a3; }
.h-countdown { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.h-countdown span { background: var(--bg); border-radius: 16px; padding: 12px; text-align: center; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; }
.h-countdown b { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1; color: var(--ink); }
.h-next-info { font-size: 14px; color: var(--ink-2); }
.h-next-actions { display: flex; gap: 10px; }
.h-next-actions .s-btn { flex: 1; }

.s26 .h-standing {
    border-radius: var(--radius-lg); background: var(--dark-2); padding: 20px 26px; display: flex; align-items: center; gap: 16px;
    color: #fff; text-decoration: none;
}
.s26 .h-standing:hover { background: var(--dark-3); color: #fff; }
.h-standing-pos { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; }
.h-standing-text { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--on-dark-muted); }
.h-standing-text strong { color: #fff; font-size: 15px; }
.h-standing-link { font-weight: 600; font-size: 14px; white-space: nowrap; }

/* Resultat */
.h-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.h-result { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.h-result-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.h-result-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.h-result-row b { font-family: var(--display); font-weight: 800; font-size: 26px; }

/* Nyheter i rutnät */
.h-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 16px; }
.s26 .h-bento-big {
    grid-column: span 2; grid-row: span 2; position: relative; border-radius: var(--radius-lg); overflow: hidden; text-decoration: none;
    background: repeating-linear-gradient(45deg, var(--dark-3) 0 18px, #303b4a 18px 36px); display: flex; flex-direction: column; justify-content: flex-end;
}
.h-bento-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.h-bento-big:hover img { transform: scale(1.03); }
.h-bento-big-text { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(0deg, rgba(13, 17, 23, .94), rgba(13, 17, 23, 0)); }
.h-bento-big-title { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; text-transform: uppercase; color: #fff; }
.h-bento-item { padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.h-bento-title { font-size: 19px; line-height: 1.3; font-weight: 700; }

/* Lag + veckan */
.h-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.h-split-main { grid-column: span 7; display: flex; flex-direction: column; gap: 18px; }
.h-split-side { grid-column: span 5; display: flex; flex-direction: column; gap: 18px; }
.h-split-side:only-child { grid-column: 1 / -1; }
.h-teams { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.h-team { padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.h-team img, .h-team-ph { height: 104px; width: 100%; border-radius: 14px; object-fit: cover; }
.h-team-ph { background: repeating-linear-gradient(135deg, #e9edf1 0 12px, #f1f3f6 12px 24px); }
.h-week { padding: 8px; }
.s26 .h-week-row { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 16px; text-decoration: none; color: var(--ink); }
.s26 .h-week-row:hover { background: var(--bg); color: var(--ink); }
.h-date { width: 56px; flex: none; text-align: center; border-radius: 14px; background: var(--bg); padding: 8px 0; display: flex; flex-direction: column; }
.h-date small { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.h-date b { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
.h-week-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.h-week-text strong { font-size: 15px; }
.h-week-text span { font-size: 13px; color: var(--muted); }

/* Välkomsttext + bli medlem */
.h-welcome { padding: 32px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; align-items: center; }
.h-welcome:not(:has(img)) { grid-template-columns: 1fr; }
.h-welcome img { width: 100%; border-radius: 18px; object-fit: cover; max-height: 360px; }
.h-welcome-text { display: flex; flex-direction: column; gap: 14px; }
.h-cta { border-radius: 32px; background: var(--accent); color: #fff; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.s26 .h-cta-title { margin: 0 0 8px; color: #fff; font-size: clamp(36px, 4vw, 52px); line-height: .95; }
.h-cta p { margin: 0; font-size: 17px; opacity: .9; }

/* =========================================================================
   Surfplatta och mobil
   ========================================================================= */
@media (max-width: 1180px) {
    .s-nav { display: none; }
    .s-burger { display: block; }
    .s-header-end { margin-left: auto; }
    .s-burger { margin-left: 0; }
    .h-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .h-hero-news, .h-hero-side, .h-split-main, .h-split-side { grid-column: 1 / -1; }
    .h-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .s26 .page-grid { grid-template-columns: 1fr; }
    .s-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .s-prefooter-grid { grid-template-columns: 1fr; }
    .h-welcome { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .s-wrap { padding-inline: 16px; }
    .s-page { padding-top: 24px; padding-bottom: 40px; }
    .s-header-row { height: 64px; gap: 12px; }
    .s-brand-name { font-size: 20px; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
    .s-header-end { margin-left: auto; }
    .s26 .s-header-end .login-link { display: none; }  /* "Logga in" ligger i flikraden */
    .s-burger { margin-left: 0; }

    .s-teambar .s-wrap { padding-top: 16px; padding-bottom: 14px; gap: 10px; }
    .s-teambar-title { font-size: 30px; width: 100%; }
    .s-teambar-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; width: calc(100% + 32px); }
    .s-teambar-nav::-webkit-scrollbar { display: none; }

    .s-tabbar {
        display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
        background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--line);
        padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
    }
    .s26 .s-tabbar a {
        display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; min-height: 44px;
        text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600;
    }
    .s26 .s-tabbar a.active { color: var(--accent); font-weight: 700; }
    .s26 { padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important; }

    .h-home { gap: 40px; margin-top: -24px; }
    .h-hero-grid { padding-top: 16px; padding-bottom: 24px; gap: 16px; }
    .h-hero-news { min-height: 380px; border-radius: 22px; }
    .h-hero-text { padding: 22px; }
    .h-next { padding: 20px; border-radius: 22px; }
    .h-results { grid-template-columns: 1fr; }
    .h-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .s26 .h-bento-big { grid-column: auto; grid-row: auto; min-height: 320px; }
    .h-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .h-cta { padding: 28px; border-radius: 24px; }
    .s-footer-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
    .s26 .news-title { font-size: 26px; }

    /* Medlemssidorna: MemberPanel har egen titelrad – som en app */
    .site--member .s-header, .site--member .s-prefooter, .site--member .s-footer { display: none; }
    .site--member .s-page { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .s26 *, .s26 *::before, .s26 *::after { transition: none !important; }
}

@media print {
    .s-header, .s-teambar, .s-tabbar, .s-prefooter, .s-footer, .s-skip, .h-hero-side, .h-cta { display: none !important; }
    .s26 { background: #fff !important; padding: 0 !important; }
    .s-wrap { padding: 0 !important; max-width: none !important; }
    .h-hero { background: #fff !important; color: #000 !important; }
}

/* Klubbmärken i det mörka matchhuvudet */
.s26 .team-badge--large { width: 96px; height: 96px; object-fit: contain; }
.s26 .team-badge--large.team-badge--empty { background: #e9edf1; border-color: #e9edf1; border-radius: 18px; }
@media (max-width: 768px) {
    .s26 .team-badge--large { width: 60px; height: 60px; }
}

/* =========================================================================
   Kontaktsidan
   ========================================================================= */
.c-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 8px 0 32px; }
.c-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.s26 .c-card-title { margin: 0 0 16px; font-size: 26px; }
.c-list { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.c-list > div { display: flex; flex-direction: column; gap: 2px; }
.c-list dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.c-list dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.c-line { display: block; }

.c-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px; margin-bottom: 40px; }
.c-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.c-subgroup { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.c-subgroup:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.c-person { display: flex; align-items: flex-start; gap: 14px; padding: 10px; margin-inline: -10px; border-radius: 14px; }
.c-person:hover { background: var(--bg); }
.c-avatar {
    width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.c-person-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.c-person-text strong { font-size: 16px; }
.c-role { font-size: 13px; color: var(--muted); }
.c-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: 14px; }
.s26 .c-contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.s26 .c-contact a:hover { color: var(--accent); text-decoration: underline; }

.c-section { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.s26 .c-h2 { margin: 0; font-size: 36px; }
.c-facilities { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.c-facility { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.c-facility img { width: 100%; height: 200px; object-fit: cover; }
.c-facility-text { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.s26 .c-facility .c-card-title { margin: 0; font-size: 24px; }
.c-facility p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.c-muted { color: var(--muted); font-size: 14px; }
.c-map { align-self: flex-start; margin-top: auto; height: 42px; font-size: 14px; }

.s26 .print-row { margin-top: 8px; }
.s26 .print-button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #d5dae0; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }
.s26 .print-button:hover { border-color: var(--ink); color: var(--ink); }

/* Sponsorrubriken: bort med de gamla linjerna */
.s26 .sponsors-title::before, .s26 .sponsors-title::after { content: none; display: none; }

@media (max-width: 768px) {
    .c-groups { grid-template-columns: 1fr; }
    .c-card { padding: 20px; }
    .c-facilities { grid-template-columns: 1fr; }
}

@media print {
    .c-info, .c-groups, .c-facilities { display: block; }
    .c-card { border: 0; border-bottom: 1px solid #ccc; border-radius: 0; padding: 6pt 0; break-inside: avoid; }
    .c-avatar, .c-facility img, .c-map { display: none !important; }
    .c-person { padding: 2pt 0; margin: 0; }
}

/* ---------- Evenemang (/evenemang, /evenemang/{id}, EventCard) ---------- */
.s26 .ev-section { margin-top: 32px; }
.s26 .ev-h2 { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; margin: 0 0 14px; }
.s26 .ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.s26 .ev-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.s26 .ev-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(13, 17, 23, .08); color: var(--ink); }
.s26 .ev-card-media { position: relative; aspect-ratio: 16 / 9; background: var(--accent-soft); display: block; }
.s26 .ev-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s26 .ev-card-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--accent); font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.s26 .ev-card-ph b { font-size: 64px; line-height: 1; }
.s26 .ev-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.s26 .ev-when { color: var(--accent); font-size: 13px; font-weight: 700; }
.s26 .ev-card-title { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.s26 .ev-card-summary { color: var(--muted); font-size: 14px; display: block; }
.s26 .ev-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 13px; }
.s26 .ev-tag { display: inline-block; background: #eef0f3; color: var(--ink); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.s26 .ev-tag--accent { background: var(--accent-soft); color: var(--accent); }
.s26 .ev-tag--on-image { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .92); }
.s26 .ev-past { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.s26 .ev-past-row { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; color: var(--ink); text-decoration: none; }
.s26 .ev-past-row:hover { border-color: var(--ink); color: var(--ink); }
.s26 .ev-date { display: flex; flex-direction: column; align-items: center; min-width: 44px; font-family: var(--display); text-transform: uppercase; color: var(--accent); }
.s26 .ev-date b { font-size: 26px; line-height: 1; }
.s26 .ev-date small { font-size: 12px; font-weight: 700; }
.s26 .ev-past-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.s26 .ev-past-text span { color: var(--muted); font-size: 13px; }
.s26 .ev-detail { max-width: 820px; }
.s26 .ev-back { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-size: 14px; }
.s26 .ev-back:hover { color: var(--ink); }
.s26 .ev-hero { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 18px; display: block; }
.s26 .ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.s26 .ev-lead { font-size: 18px; color: var(--muted); margin: 0 0 16px; }
.s26 .ev-facts { display: grid; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 20px; }
.s26 .ev-facts > div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; }
.s26 .ev-facts dt { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.s26 .ev-facts dd { margin: 0; }
.s26 .ev-facts dd a { margin-left: 8px; }
.s26 .ev-body { margin-top: 8px; }
.s26 .ev-report { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; color: var(--ink); text-decoration: none; }
.s26 .ev-report:hover { border-color: var(--ink); color: var(--ink); }
.s26 .ev-report img { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.s26 .ev-report > span { display: flex; flex-direction: column; gap: 4px; }

@media (max-width: 768px) {
    .s26 .ev-grid { grid-template-columns: 1fr; }
    .s26 .ev-card-title { font-size: 22px; }
    .s26 .ev-report img { width: 88px; height: 64px; }
}

@media print {
    .s26 .ev-card { break-inside: avoid; }
    .s26 .ev-back { display: none; }
}

/* ---------- Prenumeration (/prenumerera, /prenumeration/…) ---------- */
.s26 .sub-page { max-width: 680px; }
.s26 .sub-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 16px; }
.s26 .sub-card > p { margin: 0; }
.s26 .sub-card--danger { border-color: #f1c9c4; }
.s26 .sub-h2 { font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; margin: 0; }
.s26 .sub-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.s26 .sub-field input { height: 46px; border: 1px solid #d5dae0; border-radius: 12px; padding: 0 14px; font: inherit; font-weight: 400; }
.s26 .sub-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.s26 .sub-fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.s26 .sub-fieldset legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.s26 .sub-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.s26 .sub-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.s26 .sub-check--small { font-size: 14px; }
.s26 .sub-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 16px; }
.s26 .sub-help { color: var(--muted); font-size: 13px; font-weight: 400; }
.s26 .sub-error { background: #fdecea; color: #9b1c12; border-radius: 12px; padding: 10px 14px; margin: 0; }
.s26 .sub-ok { background: #e7f6ec; color: #11602e; border-radius: 12px; padding: 10px 14px; }
.s26 .sub-data { display: grid; gap: 8px; margin: 0; }
.s26 .sub-data > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.s26 .sub-data dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.s26 .sub-data dd { margin: 0; }
/* Dolt fält mot botar – inte display:none (vissa botar hoppar över sådana) */
.s26 .sub-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.s26 .sub-footer-link { display: inline-block; margin-top: 4px; font-weight: 700; }
.s26 .sub-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--accent-soft); border-radius: var(--radius); padding: 18px 22px; margin-top: 28px; }
.s26 .sub-cta p { margin: 0; font-weight: 600; }

/* ---------- Lokaler (/lokaler/{id}) – bygger på ev- (evenemang) ---------- */
.s26 .vn-rent { background: var(--accent-soft); border-radius: var(--radius); padding: 22px 24px; margin: 8px 0 24px; }
.s26 .vn-rent .ev-h2 { margin-bottom: 8px; }
.s26 .vn-rent p:last-child { margin-bottom: 0; }
.s26 .vn-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.s26 .vn-room { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.s26 .vn-room-cap { color: var(--accent); font-size: 13px; font-weight: 700; }
.s26 .vn-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 32px; }
.s26 .vn-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.s26 .vn-list li { position: relative; padding-left: 26px; }
.s26 .vn-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ---------- Startsidan: evenemang, lokal, öppettider (etapp 8) ---------- */
.h-next-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; display: block; }
.h-next-title { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.s26 .h-ev-latest { display: flex; align-items: center; gap: 18px; padding: 14px 20px 14px 14px; margin-top: 16px; text-decoration: none; color: var(--ink); }
.s26 .h-ev-latest img { width: 120px; height: 80px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.h-ev-latest-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.h-ev-latest-text strong { font-size: 18px; }
.s26 .h-venue { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow: hidden; }
.s26 .h-venue img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }
.h-venue-text { padding: 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.h-venue-text .h-h2, .h-venue-text p { margin: 0; }
.s26 .h-venue:not(:has(img)) { grid-template-columns: 1fr; }
.h-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.h-info-card { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.h-info-card .h-h2, .h-info-card p { margin: 0; }

@media (max-width: 768px) {
    .s26 .h-venue { grid-template-columns: 1fr; }
    .s26 .h-venue img { min-height: 200px; max-height: 240px; }
    .s26 .h-ev-latest img { width: 88px; height: 64px; }
}

/* ---------------- Bokning av lokal (/lokaler/{id}/boka) ---------------- */
.bk-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    max-width: 720px;
}

.bk-form label {
    font-weight: 600;
    font-size: 14px;
}

.bk-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.bk-row > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bk-check {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-weight: 400 !important;
    margin-top: 6px;
}

.bk-check input {
    margin-top: 4px;
}

.bk-gdpr {
    font-size: 13px;
}

.bk-busy {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bk-busy li {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #e3e8ee;
    border-radius: 6px;
    background: #fff;
}

.bk-tag {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #fdecea;
    color: #9b1c12;
}

.bk-tag--pre {
    background: #fef3e2;
    color: #8a3c06;
}

.bk-error {
    padding: 12px 14px;
    border-radius: 6px;
    background: #fdecea;
    color: #9b1c12;
    margin: 12px 0;
}

.bk-done {
    padding: 16px;
    border-radius: 8px;
    background: #e7f6ec;
    margin-top: 16px;
}
