/* ==========================================================
   Gigga – stylesheet
   Mood of the customer's start page image: sunset over the Swedish
   archipelago. Calm sand background, deep forest green as brand colour,
   warm sunset accents, dusk blue for the organiser view.
   Rounded Nunito font. Mobile first: bottom navigation on phones,
   top navigation on desktop.
   ========================================================== */

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(../fonts/nunito-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url(../fonts/nunito-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Brand & accent palette (taken from the start page image) */
    --forest: #2f4d48;          /* brand green: buttons, logo */
    --forest-dark: #223a36;
    --forest-soft: #e4ece8;
    --dusk: #46637c;            /* evening water: organiser view */
    --dusk-dark: #324c63;
    --dusk-soft: #e4ebf1;
    --rose: #c4775f;            /* sky blush */
    --rose-dark: #974c38;
    --rose-soft: #f7e6de;
    --gold: #e6ad57;            /* sun */
    --gold-dark: #85601a;
    --gold-soft: #fbf0da;
    --amber: #d4874a;           /* sunset */
    --amber-dark: #93561f;
    --amber-soft: #faebdc;
    --sage: #6f9583;            /* lichen, grass */
    --sage-dark: #3d6555;
    --sage-soft: #e2ece6;
    --lilac: #9b84c6;           /* dusk haze: playful accent (customer's mock-ups) */
    --lilac-dark: #5d4688;
    --lilac-soft: #efe8f8;

    /* Role accent (musician by default) */
    --c-accent: var(--forest);
    --c-accent-dark: var(--forest-dark);
    --c-accent-2: var(--amber);
    --c-accent-soft: var(--forest-soft);

    /* Surfaces & text */
    --c-bg: #f7f2ea;
    --c-surface: #fffdf9;
    --c-border: #ebe2d5;
    --c-text: #24302d;
    --c-muted: #6c716c;
    --c-star: #dd9f3c;

    --c-success: var(--sage-dark);
    --c-success-bg: var(--sage-soft);
    --c-error: #b0402d;
    --c-error-bg: #f9e6e0;
    --c-info: var(--dusk-dark);
    --c-info-bg: var(--dusk-soft);
    --c-warn: var(--gold-dark);
    --c-warn-bg: var(--gold-soft);

    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 1px 3px rgba(50, 45, 35, .05), 0 8px 24px rgba(50, 45, 35, .06);
    --shadow-hover: 0 2px 6px rgba(50, 45, 35, .07), 0 14px 32px rgba(50, 45, 35, .10);
    --nav-h: 66px;
    --font: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Organiser view: dusk blue + sage instead of forest green + sunset */
body.role-arranger {
    --c-accent: var(--dusk);
    --c-accent-dark: var(--dusk-dark);
    --c-accent-2: var(--sage);
    --c-accent-soft: var(--dusk-soft);
    --c-bg: #e9eff5;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--c-text);
    /* Soft colour clouds: sunset peach, dusk lilac, lichen green */
    background:
        radial-gradient(circle at 0 0, #f9dcc2 0, transparent 460px),
        radial-gradient(circle at 100% 0, #eadff7 0, transparent 440px),
        radial-gradient(circle at 100% 70%, #fbe7da 0, transparent 380px),
        radial-gradient(circle at 0 100%, #dfece5 0, transparent 420px),
        var(--c-bg);
    background-repeat: no-repeat;
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
/* Organiser view: cool evening colours (water, dusk sky) instead of the warm sand – so the active view is obvious */
body.role-arranger {
    background:
        radial-gradient(circle at 0 0, #cddcea 0, transparent 460px),
        radial-gradient(circle at 100% 0, #e0d8f3 0, transparent 440px),
        radial-gradient(circle at 100% 70%, #d6e4ee 0, transparent 380px),
        radial-gradient(circle at 0 100%, #dce9e4 0, transparent 420px),
        var(--c-bg);
    background-repeat: no-repeat;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
a { color: var(--c-accent); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--c-accent-dark); }
img { max-width: 100%; }

.icon { flex-shrink: 0; vertical-align: -4px; }
[hidden] { display: none !important; }   /* also for elements with their own display, e.g. .btn */

.muted { color: var(--c-muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.strong { font-weight: 800; }
.nowrap { white-space: nowrap; }
.meta { color: var(--c-muted); display: flex; align-items: center; gap: 4px; }
.meta .icon { width: 16px; height: 16px; color: var(--rose); }

/* ---------- Layout ---------- */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

.stack { display: flex; flex-direction: column; gap: 16px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

.layout-2col { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) {
    .layout-2col { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
/* Side column that comes first when the columns are stacked (phones, tablets) */
@media (max-width: 899px) {
    .layout-2col > .mobile-first { order: -1; }
}

section { margin-bottom: 28px; }
.card section, .stack > section, .layout-2col > section { margin-bottom: 0; }
.container > .card + .card { margin-top: 16px; }
.container > .card + form { margin-top: 12px; }

.page-title { margin: 4px 0 16px; }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 8px 0 14px;
}
.section-head h1, .section-head h2 { margin: 0; }

/* Headline with a small coloured squiggle underneath */
.section-title { position: relative; padding-bottom: 10px; }
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 6px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--gold), var(--rose));
}
.center .section-title::after, .section-title.center::after { left: calc(50% - 22px); }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--c-muted);
    font-size: .9rem;
    font-weight: 600;
}

/* ---------- Brand logo (coloured via mask: forest green as on the start page image) ---------- */

.logo-mask {
    display: inline-block;
    background: linear-gradient(135deg, #2f4d48 0%, #3b5f57 100%);
    -webkit-mask: var(--logo) center / contain no-repeat;
    mask: var(--logo) center / contain no-repeat;
}
.logo-icon { --logo: url(../img/logo-icon.png); width: 36px; height: 36px; }
.logo-word { --logo: url(../img/logo-wordmark.png); width: 66px; height: 23px; }
.logo-full { --logo: url(../img/logo.png); width: 120px; height: 146px; }

/* ---------- Top bar & navigation ---------- */

/* No backdrop-filter here on mobile: it would make the top bar the containing block
   of the fixed bottom navigation (see desktop media query below). */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Logged in: a strip in the colours of the active view (artist: green → sunset, organiser: dusk blue → lilac) */
body.logged-in .topbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--forest), var(--sage) 45%, var(--amber));
}
body.role-arranger .topbar::before { background: linear-gradient(90deg, var(--dusk-dark), var(--dusk) 45%, var(--lilac)); }
body.logged-in .topbar-inner { padding-top: 13px; }

.brand { display: flex; align-items: center; gap: 6px; text-decoration: none; }

.topbar-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.role-switch {
    display: flex;
    border-radius: 999px;
    padding: 3px;
    background: #f0e9df;
}
.role-switch button {
    border: 0;
    background: none;
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--c-muted);
}
.role-switch button:hover { color: var(--c-text); background: rgba(255, 255, 255, .75); }
.role-switch button.active[value="musician"] { background: var(--forest); color: #fff; }
.role-switch button.active[value="arranger"] { background: var(--dusk); color: #fff; }

.lang-switch { display: flex; gap: 2px; font-size: .8rem; font-weight: 700; }
.lang-switch a { color: var(--c-muted); text-decoration: none; padding: 2px 6px; border-radius: 6px; }
.lang-switch a.active { color: var(--c-text); background: var(--gold-soft); }

/* Log out: icon only on mobile, icon + text on desktop */
.logout-form button {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    color: var(--c-muted);
    padding: 6px;
    border-radius: 999px;
    cursor: pointer;
}
.logout-form button:hover { background: #f4ede3; color: var(--c-text); }
.logout-form .icon { width: 18px; height: 18px; }
.logout-form span { display: none; }

/* Mobile: fixed bottom navigation */
.mainnav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    background: rgba(255, 253, 249, .95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -6px 20px rgba(50, 45, 35, .05);
}
.mainnav a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--c-muted);
    text-decoration: none;
}
.mainnav a.active { color: var(--c-accent); font-weight: 800; }
.mainnav a.active::before {
    content: "";
    position: absolute;
    top: 0;
    width: 28px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: var(--c-accent);
}
.mainnav .icon { width: 22px; height: 22px; }
.mainnav .nav-badge { position: absolute; top: 7px; left: calc(50% + 6px); }

.nav-badge {
    display: inline-block;
    min-width: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--amber);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

@media (max-width: 420px) {
    .brand .logo-word { display: none; }
}

/* Desktop: navigation inside the top bar */
@media (min-width: 900px) {
    body { padding-bottom: 0; }
    .topbar {
        background: rgba(255, 253, 249, .88);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
    .mainnav {
        position: static;
        height: auto;
        padding: 0;
        display: flex;
        gap: 2px;
        border: 0;
        background: none;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    .mainnav a {
        flex-direction: row;
        gap: 6px;
        font-size: .92rem;
        padding: 8px 14px;
        border-radius: 999px;
    }
    .mainnav a:hover { background: #f4ede3; color: var(--c-text); }
    .mainnav a.active { background: var(--c-accent-soft); color: var(--c-accent-dark); }
    .mainnav a.active::before { display: none; }
    .mainnav .icon { width: 18px; height: 18px; }
    .mainnav .nav-badge { position: static; }
    .logout-form button { padding: 6px 10px; }
    .logout-form span { display: inline; }
}

.site-footer {
    text-align: center;
    color: var(--c-muted);
    font-size: .85rem;
    padding: 8px 16px 28px;
}
.site-footer .logo-icon { width: 28px; height: 28px; opacity: .8; }
.site-footer p { margin: 4px 0 0; }
.heart { color: var(--amber); }
.footer-links { display: flex; justify-content: center; gap: 18px; margin-top: 10px; font-weight: 700; }
.footer-links a { color: var(--c-muted); }
.footer-links a:hover { color: var(--c-accent); }

/* ---------- Cards ---------- */

.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}
@media (min-width: 600px) {
    .card { padding: 22px; }
}

.card-link { display: block; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card-link:hover { color: inherit; border-color: #dccfbd; box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card-title { margin: 0 0 2px; font-size: 1.08rem; }
.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--c-border);
}

.empty-state { text-align: center; color: var(--c-muted); padding: 36px 16px; }
.empty-state::before { content: "🎵"; display: block; font-size: 2rem; margin-bottom: 8px; }
.empty-state h1 { color: var(--c-text); }

/* A link that makes its whole card clickable; buttons inside the card lie above it */
.stretched-link { color: inherit; text-decoration: none; }
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.stretched-link:hover { color: var(--c-accent); }

/* Picture of an act; without a photo a coloured tile with the category icon */
.act-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.act-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tone-fg);
    background:
        radial-gradient(circle at 80% 15%, rgba(255, 255, 255, .7) 0, transparent 45%),
        radial-gradient(circle at 10% 100%, var(--lilac-soft) 0, transparent 55%),
        var(--tone-bg);
}
.act-photo-empty .icon { width: 42%; height: 42%; max-width: 110px; max-height: 110px; stroke-width: 1.2; opacity: .85; }

/* Artist card: picture on top, heart in the corner */
.artist-card { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.artist-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.artist-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f0e9df; }
.artist-card-media .fav-form, .artist-card-media > .fav-btn { position: absolute; top: 10px; right: 10px; z-index: 2; }
.artist-card-flag { position: absolute; left: 10px; top: 10px; }
.artist-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 12px 16px 14px; }
.artist-card-body .card-title { margin: 0; }
.artist-card .meta { margin: 0; }
.artist-card .card-foot { margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
/* Phones: two small cards side by side */
@media (max-width: 599px) {
    .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .artist-card-body { gap: 5px; padding: 10px 11px 12px; }
    .artist-card .card-title { font-size: .95rem; }
    .artist-card-instruments { display: none; }
    .artist-card .card-foot { gap: 4px; }
    .artist-card-media .fav-form, .artist-card-media > .fav-btn { top: 6px; right: 6px; }
}

/* Coloured tag pills (category + genres) */
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 800;
    background: var(--tag-bg, var(--rose-soft));
    color: var(--tag-fg, var(--rose-dark));
}
.tag:nth-child(3n+2) { --tag-bg: var(--lilac-soft); --tag-fg: var(--lilac-dark); }
.tag:nth-child(3n) { --tag-bg: var(--sage-soft); --tag-fg: var(--sage-dark); }
.tag.tag-main { --tag-bg: var(--amber-soft); --tag-fg: var(--amber-dark); }

/* Heart: save as favourite */
.fav-form { margin: 0; }
.fav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 253, 249, .92);
    color: var(--rose-dark);
    box-shadow: 0 4px 12px -4px rgba(50, 45, 35, .35);
    cursor: pointer;
    font: inherit;
    transition: transform .15s;
}
.fav-btn:hover { transform: scale(1.08); color: var(--rose-dark); }
.fav-btn .icon { width: 20px; height: 20px; }
.fav-btn.is-active .icon { fill: var(--rose); stroke: var(--rose-dark); }
.fav-btn-text { width: auto; height: auto; padding: 7px 12px; border-radius: 999px; box-shadow: none; background: none; font-weight: 700; font-size: .9rem; text-decoration: none; }
.fav-btn-text:hover { transform: none; background: var(--rose-soft); }

/* Link-like button (share) */
.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--c-text);
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
}
.link-btn:hover { background: #f0e9df; }

/* Search result row: picture, details, price & button */
.act-row { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 12px; transition: box-shadow .2s; }
.act-row:hover { box-shadow: var(--shadow-hover); }
.act-row-media { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: #f0e9df; }
.act-row-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.act-row-main .card-title { margin: 0; }
.act-row .meta, .artist-card .meta { align-items: flex-start; }
.act-row .meta .icon, .artist-card .meta .icon { margin-top: 2px; }
.act-row .meta { margin: 0; }
.act-row-side { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 10px; border-top: 1px dashed var(--c-border); }
.act-row-side .fav-form, .act-row-side > .fav-btn { position: relative; z-index: 2; order: 9; margin-left: auto; }
.act-row-btn { pointer-events: none; }
@media (max-width: 479px) {
    .act-row-btn { display: none; }   /* the whole card is the link */
}
@media (min-width: 640px) {
    .act-row { grid-template-columns: 170px minmax(0, 1fr) auto; padding: 14px; }
    .act-row-media { aspect-ratio: 4 / 3; }
    .act-row-side {
        grid-column: auto;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: flex-end;
        justify-content: center;
        min-width: 170px;   /* same divider position for "★ 4,5 · 1 spelning" and "… 12 spelningar" */
        padding: 0 0 0 14px;
        border-top: 0;
        border-left: 1px dashed var(--c-border);
        text-align: right;
    }
    .act-row-side .fav-form, .act-row-side > .fav-btn { order: -1; margin-left: 0; }
}

/* Gig card */
.gig-card { display: flex; gap: 14px; align-items: center; }
.gig-card-main { flex: 1; min-width: 0; }
.gig-card-main p { margin: 0; }
.gig-card-main .tags { margin-top: 5px; }
.gig-card-side { text-align: right; white-space: nowrap; color: var(--sage-dark); }

.date-block {
    flex-shrink: 0;
    width: 58px;
    padding: 7px 0;
    text-align: center;
    border-radius: 16px;
    background: var(--forest-soft);
    color: var(--forest-dark);
    line-height: 1.1;
}
.date-day { display: block; font-size: 1.45rem; font-weight: 800; }
.date-month { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.date-block-small { width: 48px; }
.date-block-small .date-day { font-size: 1.15rem; }

/* Profile header */
.profile-head {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
    background:
        radial-gradient(circle at 100% 0, var(--lilac-soft) 0, transparent 240px),
        radial-gradient(circle at 70% 130%, var(--gold-soft) 0, transparent 220px),
        radial-gradient(circle at 0 100%, var(--c-accent-soft) 0, transparent 260px),
        var(--c-surface);
}
.profile-head-main { flex: 1; min-width: 200px; }
.profile-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.profile-head-actions p { flex-basis: 100%; margin: 0; }

/* Button that folds open a small list of links (musician page: "Skicka meddelande" → which act) */
.menu-dropdown { position: relative; }
.menu-dropdown > summary { list-style: none; }
.menu-dropdown > summary::-webkit-details-marker { display: none; }
.menu-dropdown-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    right: 0;
    min-width: 240px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.menu-dropdown-panel p { margin: 2px 6px 6px; }
.menu-dropdown-panel a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: var(--radius-sm);
    color: var(--c-text);
    font-weight: 700;
    text-decoration: none;
}
.menu-dropdown-panel a:hover { background: var(--c-accent-soft); color: var(--c-accent-dark); }
@media (max-width: 599px) {
    .menu-dropdown-panel { left: 0; right: auto; }
}
.profile-head-main h1 { margin-bottom: 4px; }
.profile-head-main p { margin-bottom: 4px; }
.profile-head-small h1 { font-size: 1.35rem; }
.price-tag {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
    font-weight: 800;
    font-size: .9rem;
}

/* Detail list */
.details { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 16px 0; }
.details dt { color: var(--c-muted); display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.details dt .icon { color: var(--rose); }
.details dd { margin: 0; font-weight: 600; }
@media (max-width: 480px) {
    .details { grid-template-columns: 1fr; gap: 2px; }
    .details dd { margin-bottom: 8px; }
}

/* ---------- Lists ---------- */

.list { display: flex; flex-direction: column; }
.list.card { padding: 4px 18px; }

.list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--c-border);
    color: inherit;
    text-decoration: none;
}
.list-item:last-child { border-bottom: 0; }
a.list-item { transition: background .15s; }
a.list-item:hover { color: inherit; background: linear-gradient(90deg, transparent, #f7efe4 20%, #f7efe4 80%, transparent); }
.list-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-item-main > * { overflow: hidden; text-overflow: ellipsis; }
.list-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.list-item.is-past { opacity: .6; }
.list-item.is-unread strong { color: var(--c-accent); }

.menu-list { display: flex; flex-direction: column; padding: 4px 18px; }
.menu-list > a, .menu-list > span {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-border);
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}
.menu-list > :last-child { border-bottom: 0; }
.menu-list > a > .icon:first-child,
.menu-list > span > .icon:first-child {
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 11px;
    background: var(--c-accent-soft);
    color: var(--c-accent);
}
.menu-list > a:nth-child(5n+2) > .icon:first-child { background: var(--rose-soft); color: var(--rose-dark); }
.menu-list > a:nth-child(5n+3) > .icon:first-child { background: var(--sage-soft); color: var(--sage-dark); }
.menu-list > a:nth-child(5n+4) > .icon:first-child { background: var(--gold-soft); color: var(--gold-dark); }
.menu-list > a:nth-child(5n+5) > .icon:first-child { background: var(--amber-soft); color: var(--amber-dark); }
.menu-list > a > .icon:last-child { margin-left: auto; color: var(--c-muted); }
.menu-list > a:hover { color: var(--c-accent); }

/* ---------- Avatars (initials get a friendly colour from the name) ---------- */

.avatar { flex-shrink: 0; border-radius: 50%; object-fit: cover; background: var(--forest-soft); }
.avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--forest-dark);
}
.avatar-initials.tone-1 { background: var(--forest-soft); color: var(--forest-dark); }
.avatar-initials.tone-2 { background: var(--rose-soft); color: var(--rose-dark); }
.avatar-initials.tone-3 { background: var(--sage-soft); color: var(--sage-dark); }
.avatar-initials.tone-4 { background: var(--gold-soft); color: var(--gold-dark); }
.avatar-initials.tone-5 { background: var(--amber-soft); color: var(--amber-dark); }
.avatar-initials.tone-6 { background: var(--dusk-soft); color: var(--dusk-dark); }
.avatar-sm { width: 28px; height: 28px; font-size: .7rem; }
.avatar-md { width: 46px; height: 46px; font-size: .9rem; }
.avatar-lg { width: 62px; height: 62px; font-size: 1.15rem; }
.avatar-xl { width: 100px; height: 100px; font-size: 1.7rem; box-shadow: 0 0 0 5px #fff, 0 6px 18px rgba(50, 45, 35, .12); }

/* Coloured tones for date blocks, chips and value cards */
.tone-1 { --tone-bg: var(--forest-soft); --tone-fg: var(--forest-dark); }
.tone-2 { --tone-bg: var(--rose-soft); --tone-fg: var(--rose-dark); }
.tone-3 { --tone-bg: var(--sage-soft); --tone-fg: var(--sage-dark); }
.tone-4 { --tone-bg: var(--gold-soft); --tone-fg: var(--gold-dark); }
.tone-5 { --tone-bg: var(--amber-soft); --tone-fg: var(--amber-dark); }
.tone-6 { --tone-bg: var(--dusk-soft); --tone-fg: var(--dusk-dark); }
.tone-7 { --tone-bg: var(--lilac-soft); --tone-fg: var(--lilac-dark); }
.date-block[class*="tone-"] { background: var(--tone-bg); color: var(--tone-fg); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--c-accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 16px -8px var(--c-accent);
    transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { color: #fff; background: var(--c-accent-dark); transform: translateY(-1px); box-shadow: 0 10px 22px -10px var(--c-accent); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-ghost {
    background: var(--c-surface);
    color: var(--c-accent-dark);
    box-shadow: inset 0 0 0 2px var(--c-accent-soft);
}
.btn-ghost:hover { background: var(--c-accent-soft); color: var(--c-accent-dark); box-shadow: inset 0 0 0 2px var(--c-accent-soft); }
.btn-small { padding: 7px 14px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-danger { color: var(--c-error); box-shadow: inset 0 0 0 2px #f0d3ca; }
.btn-danger:hover { background: var(--c-error-bg); color: var(--c-error); box-shadow: inset 0 0 0 2px #f0d3ca; }
.btn-musician { background: var(--forest); box-shadow: 0 6px 16px -8px var(--forest); }
.btn-musician:hover { background: var(--forest-dark); }
.btn-arranger { background: var(--dusk); box-shadow: 0 6px 16px -8px var(--dusk); }
.btn-arranger:hover { background: var(--dusk-dark); }
.btn-light { background: #fffdf9; color: var(--c-accent-dark); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35); }
.btn-light:hover { background: #fff; color: var(--c-accent-dark); }
/* Transparent button with a white outline, for dark or photo backgrounds */
.btn-outline-light { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.btn-row.center { justify-content: center; }
.btn-row form { margin: 0; }

/* ---------- Forms ---------- */

.form > * + * { margin-top: 14px; }
.form-row { display: flex; flex-direction: column; gap: 4px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }

label { font-weight: 700; font-size: .9rem; }

input:not([type=checkbox]):not([type=radio]), select, textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e4dacd;
    border-radius: var(--radius-sm);
    background: #fffdfa;
    font: inherit;
    color: inherit;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 4px var(--c-accent-soft);
    background: #fff;
}
textarea { resize: vertical; }

fieldset { border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0; min-width: 0; }
fieldset[disabled] { opacity: .5; }
legend { font-weight: 800; padding: 0 6px; }

.check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--c-accent); }

.hint { color: var(--c-muted); font-size: .82rem; margin: 0; }
.field-error { color: var(--c-error); font-size: .85rem; font-weight: 600; margin: 0; }

.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form > * + * { margin-top: 0; }
.inline-form .form-row { flex: 1; min-width: 160px; }

.filter-form {
    margin-bottom: 14px;
    background:
        radial-gradient(circle at 100% 0, var(--gold-soft) 0, transparent 200px),
        var(--c-surface);
}

.avatar-edit { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.avatar-edit .form-row { flex: 1; min-width: 200px; }

/* Role choice on registration */
.role-choice { display: flex; flex-direction: column; gap: 10px; }
.role-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 2px solid var(--c-border);
    border-radius: 16px;
    cursor: pointer;
    font-weight: 500;
    transition: border-color .15s, background .15s;
}
.role-option input { margin-top: 4px; width: 18px; height: 18px; }
.role-option span { display: flex; flex-direction: column; }
.role-option-musician input { accent-color: var(--forest); }
.role-option-arranger input { accent-color: var(--dusk); }
.role-option-musician:has(input:checked) { border-color: var(--forest); background: var(--forest-soft); }
.role-option-arranger:has(input:checked) { border-color: var(--dusk); background: var(--dusk-soft); }

/* Location picker (kommuner grouped by län) */
.location-picker { border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); max-height: 420px; overflow-y: auto; }
.location-picker details { border-bottom: 1px solid var(--c-border); }
.location-picker details:last-child { border-bottom: 0; }
.location-picker summary {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: .9rem;
}
.location-picker details[open] summary { background: #f7f0e6; }
.region-count { color: var(--c-muted); font-weight: 500; }
.region-count.has-selection {
    color: #fff;
    background: var(--c-accent);
    padding: 0 8px;
    border-radius: 999px;
    font-weight: 800;
}
.region-all { padding: 8px 14px 0; font-size: .85rem; color: var(--c-muted); }
.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 6px 12px;
    padding: 8px 14px 12px;
}
.check-grid .check { font-size: .9rem; }

/* Instrument picker: chips grouped by family */
.instrument-picker { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.instrument-family-name {
    display: block;
    margin-bottom: 5px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--c-muted);
}

/* Members of an act: name + instrument per row */
.member-rows { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 10px; }
.member-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
@media (max-width: 520px) {
    .member-row { grid-template-columns: minmax(0, 1fr) auto; padding-bottom: 8px; border-bottom: 1px dashed var(--c-border); }
    .member-row input, .member-row select { grid-column: 1; }
    .member-row button { grid-column: 2; grid-row: 1 / span 2; }
}

/* Star rating input */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.1rem; line-height: 1; color: #e4dacd; cursor: pointer; transition: transform .1s; }
.star-input label:hover { transform: scale(1.15); }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: var(--c-star); }
.star-input input:focus-visible + label { outline: 2px solid var(--c-accent); border-radius: 4px; }

/* ---------- Chips, badges, tabs ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border: 1.5px solid var(--c-border);
    border-radius: 999px;
    background: var(--c-surface);
    color: var(--c-text);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.chip[class*="tone-"] { background: var(--tone-bg); border-color: transparent; color: var(--tone-fg); }
a.chip:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(50, 45, 35, .4); color: var(--c-text); }
a.chip[class*="tone-"]:hover { color: var(--tone-fg); }
.chips-small { margin-bottom: 0; }
.chips-small .chip { padding: 3px 11px; font-size: .8rem; background: #f5eee4; border-color: transparent; }

/* Checkbox chips (genres) */
.chips-check { margin-bottom: 0; }
.chips-check .chip { padding: 0; border: 0; background: none; font-weight: 500; cursor: pointer; }
.chips-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips-check span {
    display: inline-block;
    padding: 6px 14px;
    border: 1.5px solid var(--c-border);
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 700;
    background: #fffdfa;
}
.chips-check input:checked + span {
    background: var(--c-accent);
    border-color: transparent;
    color: #fff;
}
.chips-check input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    background: #f0e9df;
    color: var(--c-muted);
    white-space: nowrap;
}
.badge-pending, .badge-offered { background: var(--gold-soft); color: var(--gold-dark); }
.badge-accepted, .badge-paid, .badge-gig_open { background: var(--sage-soft); color: var(--sage-dark); }
.badge-completed { background: var(--dusk-soft); color: var(--dusk-dark); }
.badge-declined, .badge-cancelled, .badge-gig_cancelled { background: var(--c-error-bg); color: var(--c-error); }
.badge-turn { background: var(--amber); color: #fff; }
.badge-role-musician { background: var(--forest-soft); color: var(--forest-dark); }
.badge-role-arranger { background: var(--dusk-soft); color: var(--dusk-dark); }

.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
}
.tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f0e9df;
    color: var(--c-muted);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.tabs a:hover { color: var(--c-text); }
.tabs a.active { background: var(--c-accent); color: #fff; }
.tabs a.active .nav-badge { background: #fff; color: var(--amber-dark); }

/* ---------- Alerts ---------- */

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-weight: 600; }
.alert-success { background: var(--c-success-bg); color: var(--c-success); }
.alert-error { background: var(--c-error-bg); color: var(--c-error); }
.alert-info { background: var(--gold-soft); color: #6f4f12; }

/* ---------- Ratings (stars only) ---------- */

/* "★ 4,8 · 12 spelningar" – the two parts wrap as a whole on narrow cards */
.rating { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; color: var(--c-star); font-weight: 800; }
.rating > span { white-space: nowrap; }
.rating-gigs { color: var(--c-muted); font-weight: 600; }
.rating > span + .rating-gigs::before { content: "·"; margin-right: 6px; }
.rating-none {
    color: var(--sage-dark);
    background: var(--sage-soft);
    padding: 1px 9px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .75rem;
}

.review { padding: 12px 0; border-bottom: 1px dashed var(--c-border); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.review p { margin: 0; }

/* ---------- Media embeds ---------- */

.media-item + .media-item { margin-top: 16px; }
.embed { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: #f0e9df; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-video { aspect-ratio: 16 / 9; }
.embed-audio { height: 152px; }

/* Click-to-load placeholder (nothing is sent to YouTube & co. before the click) */
.embed.is-pending { display: flex; }
.embed-audio.is-pending { height: auto; min-height: 152px; }
.embed-consent {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    text-align: center;
    font-size: .85rem;
    color: var(--c-muted);
    background: linear-gradient(135deg, #f9ead9, #e6ecef);
}
.embed-consent p { margin: 0; max-width: 440px; }
.embed-provider { font-weight: 800; color: var(--c-text); }

/* ---------- Booking & chat ---------- */

.booking-party { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.booking-party h1 { margin: 0; font-size: 1.35rem; }
.booking-party h1 a { color: inherit; }
.booking-party .badge { margin-left: auto; }

.next-step {
    border: 0;
    background:
        radial-gradient(circle at 100% 0, var(--gold-soft) 0, transparent 220px),
        linear-gradient(135deg, #fffdf9, #fbf4ea);
    box-shadow: var(--shadow), inset 4px 0 0 var(--amber);
}

.chat { display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-head h2 { margin: 0; }
.chat-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 800;
    color: var(--sage-dark);
    background: var(--sage-soft);
    padding: 2px 10px;
    border-radius: 999px;
}
.chat-live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sage);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(111, 149, 131, .5); }
    70% { box-shadow: 0 0 0 7px rgba(111, 149, 131, 0); }
    100% { box-shadow: 0 0 0 0 rgba(111, 149, 131, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .chat-live::before { animation: none; }
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 60vh;
    min-height: 200px;
    overflow-y: auto;
    padding: 14px 4px;
    margin: 10px 0 0;
    border-radius: 16px;
    background: #f9f4ec;
}
.chat-empty { margin: auto; color: var(--c-muted); font-size: .875rem; }
.bubble { max-width: 85%; padding: 9px 14px; border-radius: 18px; animation: pop .2s ease-out; }
.bubble p { margin: 0; }
.bubble-mine {
    align-self: flex-end;
    background: var(--c-accent);
    color: #fff;
    border-bottom-right-radius: 6px;
}
.bubble-theirs {
    align-self: flex-start;
    background: #fffdf9;
    border: 1px solid var(--c-border);
    border-bottom-left-radius: 6px;
}
.bubble-time { display: block; font-size: .7rem; opacity: .75; margin-top: 2px; text-align: right; }
.bubble-tick { margin-left: 4px; font-weight: 800; }
.bubble-mine.is-read .bubble-tick::after { content: "✓"; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .bubble { animation: none; }
}

.chat-banner {
    margin: 10px 0 0;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--gold-soft);
    color: #6f4f12;
    font-size: .875rem;
    font-weight: 700;
}
.chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: end;
    padding-top: 12px;
}
.chat-form textarea { border-radius: 16px; }
.chat-hint { display: none; margin: 4px 0 0; }
@media (pointer: fine) {
    .chat-hint { display: block; }
}
.chat-error { margin: 6px 0 0; }

/* ---------- Calendar ---------- */

.cal { margin-bottom: 12px; max-width: 360px; }
.cal-title { font-weight: 800; margin-bottom: 6px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-wd { font-size: .7rem; font-weight: 700; color: var(--c-muted); text-align: center; }
.cal-day {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
}
button.cal-day, a.cal-day { cursor: pointer; transition: transform .1s; text-decoration: none; }
button.cal-day:hover, a.cal-day:hover { transform: scale(1.08); box-shadow: 0 0 0 2px var(--c-accent); }
a.cal-day:hover { color: var(--sage-dark); }
.cal-free { background: var(--sage-soft); color: var(--sage-dark); }
.cal-blocked { background: #f1e9e2; color: var(--c-muted); text-decoration: line-through; }
.cal-booked { background: var(--c-accent); color: #fff; }
.cal-past { opacity: .35; }
.cal-today { box-shadow: inset 0 0 0 2px var(--amber); }
.cal-nav { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.cal-form .grid { gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* Public view: booked and blocked days both just show as busy */
.cal-public .cal-booked { background: #f1e9e2; color: var(--c-muted); text-decoration: line-through; }

.cal-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--c-muted); }
.cal-key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-left: 8px; }
.cal-key:first-child { margin-left: 0; }
.cal-key.cal-busy { background: #f1e9e2; }
.cal-pick { margin: 6px 0 0; }

/* ---------- Musician profile & artist acts ---------- */

.person-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.person-head-main { flex: 1; min-width: 160px; }
.person-head-main h2, .person-head-main p { margin: 0; }
.badge-main, .badge-count { background: var(--sage-soft); color: var(--sage-dark); }
.person-card .hint { margin-bottom: 6px; }

.act-list { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.act-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--c-border);
    border-radius: 16px;
    background: #fffdfa;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.act-item:hover { color: inherit; border-color: #dccfbd; box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.act-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.act-item-edit { margin-top: 2px; color: var(--c-accent); font-weight: 700; }
.empty-note {
    margin: 14px 0;
    padding: 14px;
    border: 1.5px dashed var(--c-border);
    border-radius: 16px;
    color: var(--c-muted);
    text-align: center;
}

/* Act page (customer's mock-up review5): gallery | name & facts | booking box */
.act-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.act-topbar-actions { display: flex; align-items: center; gap: 4px; }
.act-hero { display: grid; gap: 18px; margin-bottom: 18px; }
.act-gallery-main {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.act-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.act-gallery-main.act-photo-empty .icon { width: 30%; height: 30%; max-width: 140px; max-height: 140px; }
.act-gallery-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.act-gallery-thumbs button { padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; opacity: .7; transition: opacity .15s; }
.act-gallery-thumbs button.is-active, .act-gallery-thumbs button:hover { opacity: 1; box-shadow: 0 0 0 3px var(--c-accent-soft); }
.act-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.act-intro { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.act-intro h1 { margin: 0; font-size: 2rem; font-weight: 800; }
.act-intro p { margin: 0; }
.act-subtitle { font-size: 1.1rem; color: var(--c-muted); font-weight: 600; }
.act-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.badge-new { background: var(--sage-soft); color: var(--sage-dark); }
.act-places { flex-wrap: wrap; gap: 6px 16px; }
.act-places span { display: inline-flex; align-items: center; gap: 4px; }
.chips-icon { margin: 0; gap: 6px; }
.chips-icon .chip { padding: 5px 12px; font-size: .85rem; background: var(--c-surface); }
.chips-icon .chip .icon { width: 16px; height: 16px; color: var(--amber); }
.chips-occasion .chip { background: var(--lilac-soft); border-color: transparent; color: var(--lilac-dark); text-decoration: none; }
.chips-occasion .chip .icon { color: var(--lilac); }
.act-book {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: start;
    background:
        radial-gradient(circle at 100% 0, var(--gold-soft) 0, transparent 200px),
        radial-gradient(circle at 0 100%, var(--lilac-soft) 0, transparent 220px),
        var(--c-surface);
}
.act-book .hint { margin: 0 0 4px; }
.act-price { margin: 0; font-size: 1.6rem; font-weight: 800; }
.act-book .btn { padding: 12px 16px; font-size: .95rem; white-space: nowrap; }
.act-book .btn .icon:last-child:not(:first-child) { margin-left: auto; }
.act-body h2 { display: flex; align-items: center; gap: 8px; }
.act-body h2 > .icon { color: var(--amber); }
.act-travels { margin: 10px 0 0; }
/* "Tar uppdrag i" with many places: one row per län, partly chosen län fold open to their kommuner */
.place-regions { display: flex; flex-direction: column; gap: 6px; }
.place-region { border-radius: var(--radius-sm); background: #f5eee4; }
.place-region > summary, div.place-region { display: flex; align-items: center; gap: 8px; padding: 7px 12px; }
.place-region > summary { cursor: pointer; list-style: none; border-radius: var(--radius-sm); }
.place-region > summary::-webkit-details-marker { display: none; }
.place-region > summary::after { content: "▾"; margin-left: 4px; color: var(--c-muted); transition: transform .15s; }
.place-region[open] > summary::after { transform: rotate(180deg); }
.place-region > summary:hover { background: #efe6d9; }
.place-region-name { font-size: .9rem; font-weight: 700; }
.place-region-count { margin-left: auto; color: var(--c-muted); font-size: .8rem; }
.place-region .chips { padding: 2px 12px 10px; gap: 6px; }
.place-region .chips-small .chip { background: var(--c-surface); }
/* "Visa hela repertoaren": the link disappears when the rest of the list is open */
.more-list > summary { display: inline-block; cursor: pointer; color: var(--c-accent); font-weight: 700; list-style: none; }
.more-list > summary::-webkit-details-marker { display: none; }
.more-list > summary:hover { text-decoration: underline; }
.more-list[open] > summary { display: none; }
.checklist + .more-list[open] { margin-top: -12px; }
.cal-nav-small { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-nav-small h2 { margin: 0 0 8px; }
.cal-nav-small a { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: #f0e9df; color: var(--c-text); text-decoration: none; font-size: 1.2rem; font-weight: 800; }
@media (min-width: 700px) {
    .act-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .act-book { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
    .act-hero { grid-template-columns: minmax(0, 4.6fr) minmax(0, 5fr) minmax(0, 4fr); }
    .act-book { grid-column: auto; }
    .act-intro h1 { font-size: 2.3rem; }
}

/* Music & video: grid of click-to-load players, optional tabs */
.media-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.media-item + .media-item { margin-top: 0; }
.media-title { margin: 6px 0 0; font-size: .875rem; font-weight: 700; }
.embed-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--c-accent);
    color: #fff;
}
.embed-play .icon { fill: currentColor; width: 20px; height: 20px; margin-left: 2px; }
.tabs-small { margin-bottom: 12px; }
.tabs button {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 0;
    border-radius: 999px;
    background: #f0e9df;
    color: var(--c-muted);
    font: inherit;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
}
.tabs button.active { background: var(--c-accent); color: #fff; }

/* Photos of an act in the edit form */
.photo-edit-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); margin: 12px 0; }
.photo-edit { margin: 0; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm); overflow: hidden; background: #fffdfa; }
.photo-edit img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-edit figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; }
.photo-edit form { margin: 0; }

.member-list { list-style: none; padding: 0; margin: 12px 0 0; }
.member-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dashed var(--c-border);
    font-size: .9rem;
}
.member-list li:last-child { border-bottom: 0; }

/* ---------- Statistics ---------- */

.stats { margin-bottom: 8px; }
.stat { display: flex; flex-direction: column; gap: 2px; border: 0; background: var(--tone-bg, var(--c-surface)); }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--tone-fg, var(--c-text)); }
.stat-label { color: var(--c-muted); font-size: .85rem; font-weight: 600; }

/* ---------- Landing page ---------- */

/* Guests on the start page: the top bar lies transparently over the hero picture */
body.page-landing .topbar {
    position: absolute;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: 0;
}
body.page-landing .lang-switch a { color: var(--forest-dark); }
body.page-landing .lang-switch a.active { background: rgba(255, 253, 249, .6); }
@media (min-width: 900px) {
    body.page-landing .topbar { -webkit-backdrop-filter: none; backdrop-filter: none; }
    body.page-landing .mainnav a { color: var(--forest-dark); }
    body.page-landing .mainnav a:hover,
    body.page-landing .mainnav a.active { background: rgba(255, 253, 249, .55); color: var(--forest-dark); }
}

/* Hero: full-width picture (sunset over the archipelago), logo on the sky, slogan and buttons on the rock.
   Picture: assets/img/hero-scene.svg – index.php uses assets/img/hero-photo.jpg instead when that file exists. */
.landing-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: clamp(560px, calc(100vh - var(--nav-h)), 920px);
    min-height: clamp(560px, calc(100svh - var(--nav-h) - env(safe-area-inset-bottom)), 920px);
    padding: 78px 20px 30px;
    text-align: center;
    color: #fff;
    /* Phones: the musician in the middle, as in the mock-up */
    background: #e3c6a3 url(../img/hero-scene.svg) 66% 42% / cover no-repeat;
}
.landing-hero::before {
    /* Light sky behind the logo, darker rock behind the white text */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg,
        rgba(247, 242, 234, .3) 0%, rgba(247, 242, 234, 0) 24%,
        rgba(17, 22, 21, 0) 50%, rgba(17, 22, 21, .45) 76%, rgba(17, 22, 21, .68) 100%);
}
.landing-hero .alert { width: 100%; max-width: 520px; text-align: left; margin: -8px 0 0; }
.landing-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; }
.landing-logo { width: 200px; height: 70px; }
.landing-tagline {
    margin: 0 -.38em 0 0;              /* letter-spacing adds space after the last letter */
    color: var(--forest-dark);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .38em;
}
.landing-text { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 600px; }
.landing-text h1 { margin: 0 0 6px; font-size: 1.9rem; font-weight: 600; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.landing-text p { margin: 0 0 22px; max-width: 22em; font-size: 1.02rem; opacity: .94; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.landing-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }
.landing-actions .btn { padding: 13px 22px; }
.landing-text .landing-free { margin: 22px 0 0; font-size: .85rem; opacity: .92; }
.landing-free a { color: #fff; }
/* Wide screens: text on the left (aligned with the page content), the musician on the right */
@media (min-width: 900px) {
    .landing-hero {
        align-items: flex-start;
        min-height: clamp(580px, 88vh, 820px);
        padding: 104px max(32px, calc((100% - 1100px) / 2 + 16px)) 60px;
        text-align: left;
        background-position: 27% 40%;
    }
    .landing-hero .alert { margin: -24px 0 0; }
    .landing-brand { align-items: flex-start; }
    .landing-logo { width: 240px; height: 84px; }
    .landing-tagline { font-size: .88rem; margin-left: 4px; }
    .landing-text { align-items: flex-start; max-width: 600px; }
    .landing-text h1 { font-size: 3rem; }
    .landing-text p { font-size: 1.18rem; }
    .landing-actions { flex-direction: row; max-width: none; }
    .landing-actions .btn { min-width: 200px; }
}

/* Below the hero */
.landing-intro { max-width: 720px; margin: 12px auto 26px; text-align: center; }
.landing-intro h2 { font-size: 1.6rem; margin-bottom: 10px; }
.lead { font-size: 1.12rem; color: var(--c-muted); max-width: 560px; margin: 0 auto 16px; }
.highlight {
    background: linear-gradient(transparent 60%, rgba(230, 173, 87, .5) 60%, rgba(230, 173, 87, .5) 92%, transparent 92%);
    padding: 0 4px;
    white-space: nowrap;
}
@media (min-width: 900px) {
    .landing-intro h2 { font-size: 2rem; }
}

/* Start page for logged-in users: picture with headline and a large search bar.
   Picture: the evening illustration, or assets/img/hero-artists.jpg / hero-gigs.jpg (--hero-image, see search_hero.php) */
.search-hero {
    position: relative;
    margin-bottom: 30px;
    padding: 26px 18px 18px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(20, 30, 28, .25) 0%, rgba(20, 30, 28, .55) 55%, rgba(20, 30, 28, .8) 100%),
        #b9a58c var(--hero-image, url(../img/hero-scene.svg)) 62% 40% / cover no-repeat;
    color: #fff;
    box-shadow: 0 18px 36px -22px rgba(20, 30, 28, .7);
}
.search-hero-artists {
    background:
        linear-gradient(180deg, rgba(28, 40, 54, .3) 0%, rgba(28, 40, 54, .55) 55%, rgba(28, 40, 54, .82) 100%),
        #b9a58c var(--hero-image, url(../img/hero-scene.svg)) 62% 40% / cover no-repeat;
}
.search-hero-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.search-hero-hello { margin: 0 0 4px; font-weight: 700; opacity: .92; }
.search-hero h1 { margin: 0 0 6px; font-size: 1.75rem; font-weight: 800; text-shadow: 0 2px 14px rgba(0, 0, 0, .3); }
.search-hero-lead { margin: 0; opacity: .94; font-weight: 600; }

/* The search bar: fields side by side on wide screens, below each other on phones */
.hero-search {
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 253, 249, .97);
    color: var(--c-text);
    box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .5);
}
.hero-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 14px;
    background: #f8f2ea;
    font-weight: 700;
    cursor: text;
}
.hero-field > .icon { color: var(--c-accent); }
.hero-field-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hero-field-label { font-size: .78rem; font-weight: 800; }
.hero-field input:not([type=checkbox]), .hero-field select {
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: .9rem;
    color: var(--c-muted);
    box-shadow: none;
}
.hero-field input:focus, .hero-field select:focus { box-shadow: none; background: transparent; }
.hero-field:focus-within { box-shadow: 0 0 0 3px var(--c-accent-soft); }
.hero-search-btn { padding: 14px 22px; }
@media (min-width: 640px) {
    .hero-search { grid-template-columns: 1fr 1fr; }
    .hero-field-wide { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
    .search-hero { padding: 40px 34px 30px; }
    .search-hero h1 { font-size: 2.4rem; }
    .search-hero-head { margin: 0 0 30px; max-width: none; }
    .hero-search { grid-template-columns: 1.5fr 1fr 1fr 1fr auto; }
    .hero-field-wide { grid-column: auto; }
}

/* Picture tiles for categories and gig types: a swipeable row on phones, one row on wide screens */
.tiles {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 112px;
    gap: 12px;
    overflow-x: auto;
    margin: 0 -16px;
    padding: 4px 16px 12px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}
.tiles > * { scroll-snap-align: start; }
@media (min-width: 1000px) {
    .tiles { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); overflow: visible; margin: 0; padding: 0; }
}
.tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 16px;
    background: var(--c-surface);
    box-shadow: var(--shadow);
    color: var(--c-text);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); color: var(--c-text); }
.tile-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    color: var(--tone-fg, var(--c-muted));
    background:
        radial-gradient(circle at 85% 10%, rgba(255, 255, 255, .75) 0, transparent 45%),
        var(--tone-bg, #f0e9df) center / cover no-repeat;
}
.tile.has-photo .tile-media { background-color: #e9e0d4; }
.tile-media .icon { width: 44px; height: 44px; stroke-width: 1.4; }
.tile-label {
    padding: 8px 10px 10px;
    font-size: .85rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    background: var(--tone-bg, transparent);
    color: var(--tone-fg, var(--c-text));
}
.tile-all .tile-media { background: #f5eee4; }
.tile-all .tile-label { color: var(--c-muted); }

/* Search: filters on the left, results on the right */
.search-layout { display: grid; gap: 16px; align-items: start; }
.filter-panel { padding: 0; }
.filter-panel > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}
.filter-panel > summary::-webkit-details-marker { display: none; }
.filter-panel > summary::after { content: "▾"; margin-left: auto; color: var(--c-muted); }
.filter-panel[open] > summary::after { content: "▴"; }
.filter-panel form { padding: 0 18px 18px; }
.filter-head { display: none; align-items: baseline; justify-content: space-between; }
.filter-head h2 { margin: 0; font-size: 1.1rem; }
.filter-head a { font-size: .85rem; font-weight: 700; }
.chips-quick { margin-top: 6px; }
.chips-quick .chip { text-decoration: none; }
.chips-quick .chip.is-active { background: var(--c-accent); color: #fff; }
.range-value { font-weight: 800; color: var(--c-accent); }
input[type=range] { width: 100%; padding: 0; accent-color: var(--c-accent); border: 0; background: none; box-shadow: none; }
.range-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--c-muted); }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.results-head h2 { margin: 0; font-size: 1.2rem; }
.results-head h2 .muted { font-size: .9rem; font-weight: 600; }
.sort-select { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sort-select select { width: auto; padding: 7px 12px; font-size: .9rem; }
@media (min-width: 900px) {
    .search-layout { grid-template-columns: 280px minmax(0, 1fr); }
    .filter-panel > summary { display: none; }
    .filter-panel form { padding: 18px; }
    .filter-head { display: flex; }
}

.role-card { position: relative; overflow: hidden; border-top: 0; }
.role-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, var(--forest), var(--amber));
}
.role-card-arranger::before { background: linear-gradient(90deg, var(--dusk), var(--sage)); }
.role-card h2 { display: flex; align-items: center; gap: 10px; }
.role-card-musician h2 { color: var(--forest-dark); }
.role-card-arranger h2 { color: var(--dusk-dark); }
.role-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--forest-soft);
    color: var(--forest);
}
.role-icon .icon { width: 22px; height: 22px; }
.role-card-arranger .role-icon { background: var(--dusk-soft); color: var(--dusk); }
.role-card .btn-row { margin-bottom: 0; }

.checklist { list-style: none; padding: 0; margin: 0 0 12px; }
.checklist li { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-weight: 600; }
.checklist .icon { color: var(--amber); }
.role-card-arranger .checklist .icon { color: var(--sage); }

.marketplace-note {
    position: relative;
    text-align: center;
    padding: 22px 24px;
    border-radius: 28px;
    color: #fff;
    font-size: 1.1rem;
    background:
        url(../img/notes-deco.svg) right -20px bottom -30px / 180px no-repeat,
        url(../img/notes-deco.svg) left -30px top -40px / 140px no-repeat,
        radial-gradient(ellipse at 75% 130%, rgba(230, 173, 87, .6) 0, transparent 60%),
        linear-gradient(135deg, var(--forest) 0%, #1e2e2b 100%);
    box-shadow: 0 16px 30px -20px var(--forest);
}
@media (max-width: 700px) {
    .marketplace-note {
        background:
            radial-gradient(ellipse at 75% 130%, rgba(230, 173, 87, .6) 0, transparent 60%),
            linear-gradient(135deg, var(--forest) 0%, #1e2e2b 100%);
        font-size: 1rem;
    }
}

/* "Free during the launch" note (start page, sign-up, Om oss) */
.free-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 560px;
    margin: 4px auto 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 253, 249, .8);
    border: 1px dashed var(--sage);
    font-size: .9rem;
    text-align: left;
}
.free-badge {
    display: inline-block;
    flex-shrink: 0;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--sage);
    color: #fff;
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .02em;
    vertical-align: middle;
}
.free-note .free-badge { margin-top: 1px; }
.pricing-card { border: 2px solid var(--sage-soft); scroll-margin-top: 90px; }
.pricing-card .section-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.value-card .value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
    border-radius: 16px;
    background: var(--tone-bg);
    color: var(--tone-fg);
}
.value-card .icon { width: 26px; height: 26px; }
.value-card h3 { margin-bottom: 4px; }

/* ---------- Text pages (Om oss, Integritetspolicy) ---------- */

.content-page { max-width: 880px; margin: 0 auto; }
.content-page > section, .content-page > .card { margin-bottom: 20px; }

/* Text that still has to be filled in, e.g. [Företagsnamn] */
.placeholder {
    background: var(--gold-soft);
    color: #6f4f12;
    border: 1px dashed var(--gold);
    border-radius: 6px;
    padding: 0 6px;
    font-weight: 700;
}

.about-hero { display: flex; align-items: center; gap: 28px; padding: 8px 0 16px; }
.about-hero h1 { font-size: 2.2rem; margin-bottom: 6px; }
.about-hero .lead { margin: 0; }
.about-logo { width: 110px; height: 134px; flex-shrink: 0; filter: drop-shadow(0 10px 18px rgba(47, 77, 72, .18)); }
@media (max-width: 600px) {
    .about-hero { flex-direction: column; text-align: center; }
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 6px 0 6px 44px; font-weight: 600; }
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 3px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    background: var(--forest);
}
.role-card-arranger .steps li::before { background: var(--dusk); }

.cta-band { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cta-band .btn-row { margin-bottom: 0; }

.jump-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -6px 0 16px; }

/* Plain-language version (lättläst): bigger text, more air */
.easy-read {
    font-size: 1.12rem;
    line-height: 1.75;
    border: 2px solid var(--sage-soft);
    background:
        radial-gradient(circle at 100% 0, var(--sage-soft) 0, transparent 260px),
        var(--c-surface);
}
.easy-read h2 { margin: 10px 0 4px; font-size: 1.5rem; }
.easy-read h3 { font-size: 1.2rem; margin: 26px 0 6px; }
.easy-read ul { padding-left: 24px; margin: 0 0 .75em; }
.easy-read li { margin-bottom: 4px; }
.easy-badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 999px;
    background: var(--sage);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
}
.easy-more { margin-top: 26px; font-weight: 700; }

/* Full legal text */
.legal h2 { font-size: 1.45rem; }
.legal h3 { margin: 26px 0 8px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: .92rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--c-border); }
.legal-table th { background: #f7f0e6; font-weight: 800; }
.legal code { background: #f0e9df; padding: 1px 6px; border-radius: 6px; }

/* ---------- Auth ---------- */

.auth-box {
    max-width: 440px;
    margin: 16px auto;
    background:
        radial-gradient(circle at 100% 0, var(--amber-soft) 0, transparent 220px),
        radial-gradient(circle at 0 100%, var(--forest-soft) 0, transparent 220px),
        var(--c-surface);
}
.auth-box-wide { max-width: 580px; }
.auth-logo { display: block; margin: 0 auto 12px; }
.auth-logo.logo-full { width: 90px; height: 110px; }
.auth-box h1 { text-align: center; }
