/* Use an installed Desdemona font or the licensed webfont supplied by the site owner. */
@font-face {
    font-family: "Desdemona";
    src: local("Desdemona"), url("fonts/Desdemona.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===========================================================================
   Versalproduction AB - Mediaportal
   Stilmall - ljust, rent, professionellt designspråk
   Steamhouse AB
   =========================================================================== */

:root {
    --bg:            #ffffff;
    --bg-soft:       #f5f6f8;
    --surface:       #ffffff;
    --border:        #e3e6ec;
    --border-strong: #cdd2dc;

    --ink:           #1a1d24;   /* primär text */
    --ink-soft:      #5b6270;   /* sekundär text */
    --ink-faint:     #9aa1b0;   /* svag text */

    --brand:         #1f3a5f;   /* djup marinblå - stabil, proffsig */
    --brand-light:   #2e557f;   /* ljusare marinblå - hover/länkar */
    --accent:        #c7a05a;   /* dämpad guld/mässing - premium accent */
    --danger:        #b43b3b;
    --ok:            #2f8f5b;

    --radius:        10px;
    --radius-sm:     7px;
    --shadow:        0 1px 2px rgba(20,30,50,.04), 0 8px 24px rgba(20,30,50,.06);
    --shadow-soft:   0 1px 2px rgba(20,30,50,.04);

    --maxw:          1080px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Barlow Condensed", "Inter", sans-serif;

    /* Broadcast/vinter-toner för heron */
    --night:    #0b1b2e;   /* djup natt-marin */
    --night-2:  #10243d;   /* något ljusare */
    --ice:      #7fb2e6;   /* kall is-blå accent */
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: var(--brand-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Rubriker i displayfont - stram, atletisk, passar sport/broadcast */
h1, h2, h3, .section-title, .hero h1 {
    font-family: var(--font-display);
    font-weight: 600;
}

/* --- Topplist / header ------------------------------------------------- */
.site-header {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-header .inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* --- Logotyp ----------------------------------------------------------- */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo svg { display: block; }
.logo .wordmark {
    font-family: "Desdemona", serif;
    font-weight: 400;
    font-synthesis: none;
    letter-spacing: .035em;
    /* Keep the complete text line no taller than the 30px logo icon. */
    font-size: 30px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--brand);
    -webkit-text-stroke: 1.2px currentColor;
    paint-order: stroke fill;
}
.logo .wordmark .thin {
    font-weight: 400;
    color: inherit;
}
.logo svg { flex-shrink: 0; }
@media (max-width: 640px) {
    .site-header .inner { flex-wrap: wrap; }
    .site-nav { flex-wrap: wrap; }
}
@media (max-width: 380px) {
    .logo { gap: 8px; }
    .logo .wordmark { letter-spacing: 0; font-size: 30px; }
}

/* --- Navigering i header ---------------------------------------------- */
.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}
.site-nav .who { color: var(--ink-soft); }
.site-nav .who strong { color: var(--ink); font-weight: 600; }
.badge {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
}
.badge.user { background: var(--ink-faint); }

/* --- Knappar ----------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
    line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-light); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-accent { background: var(--accent); color: #2a2213; }
.btn-accent:hover { filter: brightness(1.05); }
.btn-danger { background: transparent; color: var(--danger); border-color: #e4c3c3; }
.btn-danger:hover { background: #fbf0f0; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* --- Layout / innehåll ------------------------------------------------- */
main {
    flex: 1 0 auto;
    width: 100%;
}
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 32px 24px 56px;
}
.container-narrow {
    max-width: 440px;
    margin: 0 auto;
    padding: 48px 24px;
}

/* --- Kort / ytor ------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 22px 24px;
}
.card + .card { margin-top: 16px; }

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -.01em;
}
.section-sub { color: var(--ink-soft); margin: 0 0 24px; }

/* --- Rubrikrad med åtgärd till höger ---------------------------------- */
.row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.row-head h1, .row-head h2 { margin: 0; }

/* --- Formulär ---------------------------------------------------------- */
label.field { display: block; margin-bottom: 16px; }
label.field > span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
}
input[type=text], input[type=password], input[type=email],
textarea, select {
    width: 100%;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px rgba(46,85,127,.12);
}
textarea { resize: vertical; min-height: 84px; }
input[type=file] {
    width: 100%;
    font: inherit;
    font-size: 14px;
    padding: 8px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
}

/* --- Meddelanden ------------------------------------------------------- */
.alert {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid;
}
.alert-error { background: #fbf0f0; border-color: #e4c3c3; color: var(--danger); }
.alert-ok    { background: #eef7f1; border-color: #bfe0cc; color: var(--ok); }
.alert-info  { background: #eef2f7; border-color: #cdd9e6; color: var(--brand); }

/* --- Listor: mappar / tävlingar / filer -------------------------------- */
.list { display: grid; gap: 14px; }

.folder-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: box-shadow .15s, border-color .15s;
}
.folder-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.folder-card .meta h3 { margin: 0 0 2px; font-size: 17px; }
.folder-card .meta p  { margin: 0; color: var(--ink-soft); font-size: 14px; }
.folder-card .count {
    font-size: 13px; color: var(--ink-faint);
    white-space: nowrap;
}

.comp-block {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.comp-block + .comp-block { margin-top: 18px; }
.comp-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}
.comp-head h3 { margin: 0 0 4px; font-size: 18px; }
.comp-head p  { margin: 0; color: var(--ink-soft); font-size: 14px; white-space: pre-line; }
.comp-body { padding: 18px 22px; }

/* --- Hopfällbar tävling (accordion) ----------------------------------- */
.comp-accordion {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: box-shadow .15s, border-color .15s;
}
.comp-accordion + .comp-accordion { margin-top: 12px; }
.comp-accordion[open] { box-shadow: var(--shadow); border-color: var(--border-strong); }

/* Klickbar rubrikrad */
.comp-accordion summary {
    list-style: none;                 /* ta bort webbläsarens default-triangel */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    user-select: none;
}
.comp-accordion summary::-webkit-details-marker { display: none; }
.comp-accordion summary:hover { background: var(--bg-soft); }
.comp-accordion summary:focus-visible {
    outline: 2px solid var(--brand-light); outline-offset: -2px;
}

/* Egen pil som roterar när tävlingen fälls ut */
.comp-caret {
    flex: none;
    width: 10px; height: 10px;
    border-right: 2px solid var(--ink-soft);
    border-bottom: 2px solid var(--ink-soft);
    transform: rotate(-45deg);        /* pekar höger (stängt) */
    transition: transform .18s ease;
    margin-left: 2px;
}
.comp-accordion[open] .comp-caret { transform: rotate(45deg); } /* pekar nedåt */

.comp-titles { flex: 1 1 auto; min-width: 0; }
.comp-title {
    display: block;
    font-family: var(--font-display); font-weight: 600;
    font-size: 19px; color: var(--ink); line-height: 1.2;
}
.comp-desc {
    display: block;
    color: var(--ink-soft); font-size: 14px; margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.comp-filecount {
    flex: none;
    font-size: 13px; color: var(--ink-faint);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 12px;
    white-space: nowrap;
}

/* Utfällt innehåll */
.comp-panel {
    padding: 4px 22px 18px;
    border-top: 1px solid var(--border);
}

/* --- Fil-rader --------------------------------------------------------- */
.file-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}
.file-item:first-child { border-top: none; }
.file-icon {
    flex: none;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; letter-spacing: .03em;
    color: #fff;
}
.file-icon.pdf { background: #b43b3b; }
.file-icon.mp4 { background: var(--brand); }
.file-main { flex: 1 1 auto; min-width: 0; }
.file-main h4 { margin: 0 0 2px; font-size: 15px; }
.file-main .desc { margin: 0 0 8px; color: var(--ink-soft); font-size: 14px; white-space: pre-line; }
.file-main .sub  { color: var(--ink-faint); font-size: 12px; }
.file-actions { flex: none; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

/* Inbäddad video */
.video-wrap {
    margin-top: 10px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
    max-width: 640px;
}
.video-wrap video { width: 100%; display: block; }

/* --- Tabell (användarhantering) --------------------------------------- */
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
table.data th, table.data td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
}
table.data th {
    font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
    color: var(--ink-faint); font-weight: 600;
}
table.data tr:last-child td { border-bottom: none; }

/* --- Inline-formulär (radera-knappar m.m.) ---------------------------- */
.inline-form { display: inline; }

/* --- Behörighetsvy (admin) -------------------------------------------- */
.access-folder {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    margin-bottom: 14px;
    overflow: hidden;
}
.access-row {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
}
.access-row input[type=checkbox] {
    width: 18px; height: 18px; margin-top: 2px; flex: none; cursor: pointer;
    accent-color: var(--brand);
}
.access-row input[type=checkbox]:disabled { cursor: default; opacity: .6; }
.access-row-folder { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.access-main { display: flex; flex-direction: column; }
.access-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.access-row-folder .access-name { font-family: var(--font-display); font-size: 17px; }
.access-hint { font-size: 13px; color: var(--ink-faint); margin-top: 1px; }
.access-comps { padding: 6px 20px 10px 44px; }
.access-row-comp { padding: 9px 0; }
.access-row-comp:not(:last-child) { border-bottom: 1px solid var(--border); }
.access-empty { color: var(--ink-faint); font-size: 13px; margin: 8px 0; padding-left: 0; }

/* --- Footer ------------------------------------------------------------ */
.site-footer {
    flex: none;
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink-faint);
    font-size: 13px;
}
.site-footer .inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* --- Hero (förstasidan) ------------------------------------------------ */
/* Mörk, filmisk sektion. Biathlon = vinter, fart, precision.
   Bakgrunden är ett foto (hero.jpg) med mörka gradient-lager över:
   tyngre till vänster där texten står, lättare till höger där
   skytten/bergen syns, och mörkare i botten för stats-raden. */
.hero {
    position: relative;
    overflow: hidden;
    background-color: var(--night);   /* fallback innan bilden laddat */
    background-image:
        /* vänster-till-höger ton: skyddar textens läsbarhet */
        linear-gradient(90deg, rgba(8,18,32,.92) 0%, rgba(8,18,32,.78) 34%, rgba(8,18,32,.32) 62%, rgba(8,18,32,.12) 100%),
        /* botten-ton mot stats-raden */
        linear-gradient(180deg, rgba(8,18,32,.35) 0%, rgba(8,18,32,0) 30%, rgba(8,18,32,.55) 100%),
        /* fotot */
        url("hero.jpg");
    background-size: cover, cover, cover;
    background-position: center, center, center 28%;
    background-repeat: no-repeat;
    color: #eaf1f8;
    border-bottom: 1px solid #0a1826;
}
.hero .inner {
    position: relative;
    z-index: 1;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 104px 24px 92px;
}
.hero .eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--font-display);
    font-size: 15px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--ice); font-weight: 600; margin: 0 0 22px;
}
.hero .eyebrow::before {
    content: ""; width: 26px; height: 2px; background: var(--ice); opacity: .8;
}
.hero h1 {
    font-size: 68px; line-height: .98; margin: 0 0 22px;
    letter-spacing: .005em; max-width: 15ch; color: #fff;
    font-weight: 700;
}
.hero p.lead {
    font-size: 19px; line-height: 1.55; color: #b9c9db;
    max-width: 56ch; margin: 0 0 36px;
}
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .btn-ghost {
    color: #eaf1f8; border-color: rgba(234,241,248,.28); background: transparent;
}
.hero .btn-ghost:hover { background: rgba(234,241,248,.08); }

/* Signatursiffror längst ned i heron - visar biathlon-specialiteten.
   Tunna skiljelinjer skapas av 1px gap + tunn bakgrund bakom cellerna. */
.hero-stats {
    position: relative; z-index: 1;
    max-width: calc(var(--maxw) - 48px);
    margin: -36px auto 0;          /* lyfts upp så raden överlappar heron snyggt */
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: rgba(127,178,230,.18);
    border: 1px solid rgba(127,178,230,.18);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(5,12,22,.45);
}
.hero-stats .stat {
    background: #0c1d33;
    padding: 22px 24px;
}
.hero-stats .num {
    font-family: var(--font-display);
    font-size: 34px; font-weight: 700; color: #fff; line-height: 1;
    letter-spacing: .01em;
}
.hero-stats .num .unit { font-size: 17px; color: var(--ice); margin-left: 3px; }
.hero-stats .lbl {
    margin-top: 7px; font-size: 13px; color: #9fb2c6; line-height: 1.35;
}
.hero-wrap-stats { background: #0a1826; padding: 0 0 48px; }

/* --- Sektionsrubrik med liten kicker (ej versal-eyebrow) -------------- */
.block-head { max-width: 62ch; margin: 0 0 34px; }
.block-head .kicker {
    font-family: var(--font-display);
    font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent); font-weight: 600; margin: 0 0 10px;
}
.block-head h2 { font-size: 34px; line-height: 1.05; margin: 0 0 12px; letter-spacing: .01em; }
.block-head p { font-size: 17px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* Info/feature-kolumner på förstasidan */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 8px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.feature {
    background: var(--surface);
    padding: 28px 26px 30px;
}
.feature h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: .01em; }
.feature p  { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.feature .ic {
    width: 44px; height: 44px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--brand); border: none;
    color: #fff;
}

/* --- Disciplinrad (biathlon-specialitet) ------------------------------ */
.disciplines {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px;
}
.disc-chip {
    display: inline-flex; align-items: baseline; gap: 10px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 9px 18px 9px 16px;
    background: var(--surface);
    font-size: 15px; color: var(--ink);
}
.disc-chip b { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.disc-chip span { color: var(--ink-faint); font-size: 13px; }
.disc-chip .dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
    align-self: center;
}

/* --- Bred "så funkar det"-remsa över mörk yta ------------------------- */
/* "The portal"-banner med bakgrundsfoto (band.jpg = skidspåret).
   Mörk ton tyngre till vänster där texten står, lättare till höger
   där skidorna/snön syns. */
.band {
    position: relative;
    background-color: var(--night);   /* fallback */
    background-image:
        linear-gradient(90deg, rgba(8,18,32,.94) 0%, rgba(8,18,32,.84) 38%, rgba(8,18,32,.45) 70%, rgba(8,18,32,.2) 100%),
        url("band.jpg");
    background-size: cover, cover;
    background-position: center, center right;
    background-repeat: no-repeat;
    color: #eaf1f8;
}
.band .inner { max-width: var(--maxw); margin: 0 auto; padding: 60px 24px; }
.band .block-head h2 { color: #fff; }
.band .block-head .kicker { color: var(--ice); }
.band .block-head p { color: #b9c9db; }
.band-steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 8px;
}
.band-step h4 {
    font-family: var(--font-display); font-weight: 600;
    font-size: 19px; margin: 0 0 7px; color: #fff;
    display: flex; align-items: center; gap: 11px;
}
.band-step h4 .n {
    font-size: 14px; color: var(--night);
    background: var(--ice); width: 26px; height: 26px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.band-step p { margin: 0; color: #a9bace; font-size: 15px; line-height: 1.55; }

/* Kontaktsektion */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 14px; display: flex; gap: 12px; align-items: flex-start; }
.contact-list .k { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
.contact-list .v { font-size: 16px; color: var(--ink); font-weight: 500; }

/* --- Responsivt -------------------------------------------------------- */
@media (max-width: 920px) {
    .hero h1 { font-size: 52px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .band-steps { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 760px) {
    .hero h1 { font-size: 40px; }
    .hero .inner { padding: 64px 20px 44px; }
    .hero .eyebrow { font-size: 13px; }
    .hero p.lead { font-size: 17px; }
    .block-head h2 { font-size: 27px; }
    .features { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 28px; }
    .site-nav { gap: 10px; font-size: 13px; }
    .file-item { flex-wrap: wrap; }
    .file-actions { flex-direction: row; align-items: center; }
}
@media (max-width: 480px) {
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .hero-stats .num { font-size: 27px; }
}

/* --- Tillgänglighet: respektera reducerad rörelse --------------------- */
@media (prefers-reduced-motion: reduce) {
    .hero-art * { animation: none !important; }
}

/* Season and production metadata */
.metadata-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 18px; }
.material-filter { margin-bottom:28px; }
.event-metadata { margin:0 0 20px; color:var(--ink-soft); font-size:14px; }
@media (max-width:640px) { .metadata-grid { grid-template-columns:1fr; } }

/* Member page: same gradient tones as the front page. */
.member-hero {
    aspect-ratio: 2048 / 656;
    display: flex;
    align-items: center;
    background-position: center;
    background-image:
        linear-gradient(90deg, rgba(8,18,32,.92) 0%, rgba(8,18,32,.78) 34%, rgba(8,18,32,.32) 62%, rgba(8,18,32,.12) 100%),
        linear-gradient(180deg, rgba(8,18,32,.35) 0%, rgba(8,18,32,0) 30%, rgba(8,18,32,.55) 100%),
        url("mediahero.jpg");
}
.member-band {
    background-image:
        linear-gradient(90deg, rgba(8,18,32,.94) 0%, rgba(8,18,32,.84) 38%, rgba(8,18,32,.45) 70%, rgba(8,18,32,.2) 100%),
        url("footer.jpg");
    width: 100%;
    height: clamp(280px, 24vw, 480px);
    border-radius: 0;
    margin: auto 0 0;
    flex-shrink: 0;
    background-position: center;
}
.member-hero .inner { width: 100%; padding: 64px 24px; }
.member-results { margin-top: 28px; }
@media (max-width:640px) {
    .member-hero { aspect-ratio: auto; min-height: 420px; }
    .member-hero .inner { padding: 48px 20px; }
    .member-band { height: 280px; }
}

/* Filter panel anchored inside the lower edge of the member hero. */
.member-hero { flex-direction: column; justify-content: space-between; align-items: stretch; }
.member-hero .member-intro { padding: 48px 24px 28px; }
.member-filter-wrap { width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px 24px; }
.hero-filter { margin:0; padding:22px; background:rgba(255,255,255,.96); color:var(--ink); }
.portal-dropdowns { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; }
.hero-filter .field { min-width:0; }
.hero-filter select, .hero-filter input[type="search"] { width:100%; min-height:44px; border:1px solid var(--border-strong); border-radius:var(--radius-sm); padding:9px 10px; font:inherit; background:#fff; color:var(--ink); }
.hero-filter select:disabled { background:var(--bg-soft); color:var(--ink-faint); }
.portal-search-actions { display:flex; gap:12px; align-items:flex-end; }
.portal-search-actions .field { flex:1; margin:0; }
.hero-filter .filter-note { margin:12px 0 0; color:var(--ink-soft); font-size:13px; }
.hero-filter .btn-ghost { color:var(--brand); border-color:var(--border-strong); }
.season-divider { margin:30px 0 18px; padding:0 0 12px; border-bottom:2px solid var(--border-strong); color:var(--brand); font-size:28px; }
@media (max-width:900px) { .portal-dropdowns { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) {
    .member-filter-wrap { padding:0 20px 20px; }
    .member-hero .member-intro { padding:40px 20px 24px; }
    .portal-dropdowns { grid-template-columns:1fr; }
    .portal-search-actions { flex-wrap:wrap; }
    .portal-search-actions .field { flex-basis:100%; }
}

/* Partner sign-in popup. Native dialog traps focus and supports Escape. */
.login-dialog { width:min(440px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); overflow:auto; padding:36px; border:1px solid var(--border); border-radius:16px; background:var(--surface); color:var(--ink); box-shadow:0 24px 90px rgba(0,0,0,.35); }
.login-dialog::backdrop { background:rgba(8,18,32,.7); backdrop-filter:blur(5px); }
.login-close { position:absolute; right:14px; top:10px; border:0; background:transparent; font-size:30px; color:var(--ink-soft); cursor:pointer; line-height:1; padding:6px; }
.login-dialog .section-title { margin:0 0 8px; }
.login-dialog .kicker { color:var(--brand); margin:0 0 8px; }
.login-invitation { text-align:center; color:var(--ink-soft); font-size:13px; margin:18px 0 0; }
body.login-open { overflow:hidden; }
@media (max-width:480px) { .login-dialog { padding:30px 24px; } }
