/* Innsamleren. Palette taken from the hero: a fjord village at dusk, windows lit. */
@font-face {
    font-family: "Bricolage Grotesque";
    src: url("bricolage.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --fjord: #0b2140;      /* night sky, header, footer */
    --fjord-2: #163a61;    /* near mountains */
    --ink: #0e2238;
    --muted: #586a7e;
    --line: #d3ddea;
    --snow: #eef3f9;       /* page background */
    --paper: #ffffff;
    --lamp: #ffd35c;       /* lit windows: the one accent */
    --lamp-dark: #f2bd2c;
    --pine: #17705a;       /* progress, success */
    --barn: #b7432f;       /* red timber houses: errors, delete */
    --vipps: #ff5b24;
    --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--snow); color: var(--ink); font: 1rem/1.6 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }
a { color: var(--fjord-2); text-underline-offset: .15em; }
a:hover { color: var(--fjord); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.12; color: var(--fjord); }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 750; margin: 0 0 .6rem; }
h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 .7rem; }
.card > h2:first-child, form.card > h2 { margin-top: 0; }
h3 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
:focus-visible { outline: 3px solid var(--lamp-dark); outline-offset: 2px; }

/* ---------- header ---------- */
.site-header {
    background: var(--fjord); color: #fff;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .6rem 1.5rem; padding: .85rem max(clamp(1rem, 4vw, 2rem), calc(50% - 560px + 2rem));
}
.site-title { font-family: var(--display); font-weight: 800; letter-spacing: .16em; font-size: 1.05rem; }
.site-title a, .footer-brand a { color: inherit; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.2rem; }
.site-nav a { color: #dbe6f3; text-decoration: none; font-size: .95rem; padding: .25rem 0; }
.site-nav a:hover { color: #fff; text-decoration: underline; }
.site-nav .nav-cta { background: var(--lamp); color: var(--fjord); font-weight: 700; padding: .45rem 1rem; border-radius: 99px; }
.site-nav .nav-cta:hover { background: #ffe08a; color: var(--fjord); text-decoration: none; }

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem) 3.5rem; }
.flash-wrap { padding-top: 1rem; padding-bottom: 0; }
.narrow { max-width: 460px; margin: 1rem auto 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.page-head .btn { margin-top: 0; }

.site-footer { background: var(--fjord); color: #b9c8db; font-size: .9rem; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer-brand { font-family: var(--display); font-weight: 800; letter-spacing: .16em; color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; }
.site-footer a { color: #dbe6f3; }
.site-footer p { margin: 0; }

/* ---------- hero ---------- */
.hero {
    position: relative; isolation: isolate;
    min-height: clamp(460px, 68vh, 640px);
    background: var(--fjord) center bottom / cover no-repeat;
    color: #fff;
}
/* Keeps the headline readable on any photo dropped in as assets/hero.jpg */
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse 60% 55% at 22% 30%, rgba(11, 33, 64, .75) 0%, rgba(11, 33, 64, 0) 100%),
        linear-gradient(180deg, rgba(11, 33, 64, .92) 0%, rgba(11, 33, 64, .5) 45%, rgba(11, 33, 64, 0) 72%);
}
.hero-inner { max-width: 1120px; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem) 14rem; }
.hero h1 {
    color: #fff; font-weight: 800; letter-spacing: -.035em; line-height: .98;
    font-size: clamp(2.5rem, 7.2vw, 5rem); max-width: 11ch; margin: 0 0 1.1rem;
}
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34rem; margin: 0 0 1.6rem; color: #e3ecf7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.5rem; }
.hero-actions .btn { margin-top: 0; }
.hero-link { color: #fff; font-weight: 600; }
.hero-link:hover { color: var(--lamp); }

/* ---------- three steps ---------- */
.steps { margin: -4.5rem 0 2.5rem; position: relative; }
.steps ol {
    list-style: none; margin: 0; padding: 0; counter-reset: step;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--paper); border-radius: 18px; box-shadow: 0 18px 40px -22px rgba(11, 33, 64, .55);
}
.steps li { counter-increment: step; padding: 1.4rem 1.5rem 1.5rem; color: var(--muted); font-size: .95rem; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; }
.steps li::before {
    content: counter(step); display: block; font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1;
    color: var(--fjord); margin-bottom: .5rem;
}
.steps strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1.1rem; margin-bottom: .15rem; }

.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1.1rem; scroll-margin-top: 1rem; }
.empty { background: var(--paper); border: 2px dashed var(--line); border-radius: 16px; padding: 2.5rem 1.5rem; text-align: center; }
.empty p { margin: 0; font-size: 1.1rem; }

/* ---------- campaign cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.camp-card {
    background: var(--paper); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
    text-decoration: none; color: inherit; border: 1px solid var(--line);
    transition: transform .15s ease, box-shadow .15s ease;
}
.camp-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(11, 33, 64, .6); color: inherit; }
@media (prefers-reduced-motion: reduce) { .camp-card { transition: none; } .camp-card:hover { transform: none; } }
/* 1200 x 630: the size campaign images are made in, so they fit without cropping */
.camp-card .thumb { aspect-ratio: 1200 / 630; background: #c9d6e6 center / cover no-repeat; }
.camp-card .body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.camp-card .excerpt { color: var(--muted); font-size: .93rem; margin: 0; flex: 1; }
.progress { height: 8px; background: #dfe7f1; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; min-width: 8px; background: var(--pine); border-radius: 99px; }
.raised { font-family: var(--display); font-weight: 750; font-size: 1.15rem; color: var(--fjord); }
.raised small { font-family: var(--body); font-weight: 400; font-size: .85rem; color: var(--muted); }

/* ---------- campaign page ---------- */
.campaign { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 2.5rem; align-items: start; }
/* The cover keeps the image's own shape, so nothing is ever cut off */
.campaign .cover { border-radius: 16px; width: 100%; height: auto; background: #c9d6e6; margin-bottom: 1.4rem; }
.campaign h1 + .share { margin-top: 1rem; }
.campaign .byline { color: var(--muted); margin: 0 0 1.2rem; }
.share { margin: 0 0 1.4rem; }
.share label { margin: 0; }
.share-row { display: flex; gap: .5rem; max-width: 440px; margin-top: .3rem; }
.share-row input { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--fjord); background: #fff; }
.share-row .btn { margin: 0; white-space: nowrap; }
.campaign .text a, .public-note a { overflow-wrap: anywhere; font-weight: 600; }
.campaign .text { white-space: pre-line; overflow-wrap: anywhere; font-size: 1.05rem; max-width: 68ch; }
.donate-box {
    position: sticky; top: 1rem; background: var(--paper); border-radius: 18px; padding: 1.5rem;
    border-top: 6px solid var(--lamp); box-shadow: 0 18px 40px -26px rgba(11, 33, 64, .6); scroll-margin-top: 1rem;
}
.donate-box .total { font-family: var(--display); font-size: 2.3rem; font-weight: 800; line-height: 1; color: var(--fjord); letter-spacing: -.03em; }
.donate-box .total-sub { color: var(--muted); margin: .3rem 0 .8rem; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: .4rem 0 .2rem; }
.amounts label { margin: 0; position: relative; }
.amounts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.amounts span { display: block; text-align: center; padding: .6rem .1rem; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 700; font-size: .92rem; background: #fff; white-space: nowrap; }
.amounts input:checked + span { border-color: var(--fjord); background: var(--fjord); color: #fff; }
.amounts input:focus-visible + span { outline: 3px solid var(--lamp-dark); outline-offset: 2px; }
.methods { display: grid; gap: .5rem; margin: 1.1rem 0 .4rem; }
.methods .btn { margin-top: 0; }
.field-error { color: var(--barn); font-weight: 600; font-size: .9rem; margin: .35rem 0 0; }
.donor-list { list-style: none; padding: 0; margin: 0; }
.donor-list li { display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.donor-list li:last-child { border-bottom: 0; }
.donor-list .who { font-weight: 700; }
.donor-list .sum { font-family: var(--display); font-weight: 750; color: var(--fjord); font-variant-numeric: tabular-nums; }
.donor-list .when { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; }
.donor-list p { grid-column: 1 / -1; margin: .3rem 0 0; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: .92rem; margin: .9rem 0 0; }
label.check { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], input[type=number], input[type=file], select, textarea {
    display: block; width: 100%; margin-top: .3rem; padding: .7rem .8rem;
    border: 1.5px solid #bccadb; border-radius: 10px; background: #fff; color: var(--ink); font: inherit;
}
textarea { min-height: 220px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--lamp-dark); outline-offset: 0; border-color: var(--fjord); }
.hint { font-weight: 400; color: var(--muted); font-size: .86rem; margin: .35rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
.search { display: flex; gap: .5rem; margin-bottom: 1rem; max-width: 520px; }
.search input { margin: 0; }
.search .btn { margin: 0; }

.btn {
    display: inline-block; border: 0; border-radius: 99px; padding: .75rem 1.4rem; margin-top: 1rem;
    background: var(--fjord); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.3;
}
.btn:hover { background: var(--fjord-2); color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-light-on-dark { background: var(--lamp); color: var(--fjord); font-size: 1.05rem; padding: .9rem 1.7rem; }
.btn-light-on-dark:hover { background: #ffe08a; color: var(--fjord); }
.btn-vipps { background: var(--vipps); }
.btn-vipps:hover { background: #e04a17; }
.btn-light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #bccadb; }
.btn-light:hover { background: var(--snow); color: var(--ink); }
.btn-danger { background: var(--barn); }
.btn-danger:hover { background: #8f2f22; }
.btn-sm { padding: .35rem .8rem; font-size: .85rem; margin-top: 0; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.inline { display: inline; }

.flash { padding: .85rem 1.1rem; border-radius: 12px; margin-bottom: 1rem; border: 1.5px solid; font-weight: 500; }
.flash-ok { background: #e3f3ee; border-color: #9fd0c1; color: #0c4a3b; }
.flash-info { background: #fff6d9; border-color: #f0d37a; color: #5c4400; }
.flash-error { background: #fbe7e3; border-color: #e5a69b; color: #7d2417; }

.notice { background: #fff6d9; border-left: 6px solid var(--lamp-dark); border-radius: 12px; padding: .9rem 1.1rem; margin: 0 0 1.25rem; color: #4a3800; max-width: 760px; }
.notice a { color: inherit; font-weight: 600; }

.rate-card { max-width: 620px; margin-bottom: 1rem; }
.rate-row { display: flex; align-items: flex-end; gap: .75rem; }
.rate-row label { margin: 0; flex: 0 1 220px; }
.rate-row .btn { margin: 0; }
.pager { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-top: 1.1rem; }
.pager a, .pager span { min-width: 2.3rem; text-align: center; padding: .4rem .7rem; border-radius: 99px; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink); }
.pager a { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.pager a.on { background: var(--fjord); color: #fff; box-shadow: none; }
.public-note { background: var(--paper); border-left: 6px solid var(--fjord); border-radius: 12px; padding: .9rem 1.2rem; margin: 0 0 1.25rem; }
.public-note p { margin: .2rem 0 0; }
.about { max-width: 760px; margin: 1rem auto 0; }
.about .lead { font-size: 1.15rem; color: var(--ink); }
.about li { margin-bottom: .45rem; }
.about .never { list-style: none; padding: 0; margin: 0; }
.about .never li { background: var(--snow); border-left: 6px solid var(--barn); border-radius: 10px; padding: .8rem 1rem; margin-bottom: .6rem; }
.fineprint { color: var(--muted); font-size: .9rem; margin: 1.5rem 0 0; }

.badge { display: inline-block; padding: .14rem .6rem; border-radius: 99px; font-size: .78rem; font-weight: 700; background: #dfe7f1; color: var(--ink); white-space: nowrap; }
.badge-active, .badge-paid { background: #d3ede5; color: #0c4a3b; }
.badge-pending, .badge-paused, .badge-needs_info { background: #fff0bf; color: #5c4400; }
.badge-rejected, .badge-failed, .badge-refunded { background: #fadcd6; color: #7d2417; }

/* ---------- tables and admin ---------- */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #e6edf6; font-size: .82rem; font-weight: 700; color: var(--fjord-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td .actions { flex-wrap: nowrap; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; }
.stat b { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1.15; color: var(--fjord); letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .86rem; }
.admin-nav, .filters { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; }
.admin-nav a, .filters a { padding: .4rem .95rem; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 600; }
.filters a { font-size: .84rem; padding: .3rem .8rem; }
.admin-nav a.on, .filters a.on { background: var(--fjord); box-shadow: none; color: #fff; }
.move-card { border: 2px solid var(--lamp-dark); margin-bottom: 1.5rem; max-width: 620px; }

/* ---------- give to several campaigns ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: 1.1rem; }
.section-head .section-title { margin: 0; }
.section-head .btn { margin: 0; }
.give { max-width: 760px; margin: 0 auto; }
.give-total label { margin-top: 0; font-size: 1.05rem; }
.give-total .amounts button {
    font: inherit; font-weight: 700; font-size: .92rem; padding: .6rem .1rem; border: 1.5px solid var(--line); border-radius: 10px;
    background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap;
}
.give-total .amounts button.on { border-color: var(--fjord); background: var(--fjord); color: #fff; }
.kr-field { position: relative; }
.kr-field input { padding-right: 2.6rem; }
.kr-field span { position: absolute; right: .9rem; top: 50%; transform: translateY(-40%); color: var(--muted); font-weight: 600; pointer-events: none; }
.give-total .kr-field input { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--fjord); }
.give-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 1.6rem 0 .7rem; }
.give-head h2 { margin: 0; }
.give-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.give-row {
    display: grid; grid-template-columns: minmax(0, 1fr) 8.2rem; align-items: center; gap: .8rem;
    background: var(--paper); border: 1.5px solid var(--fjord); border-radius: 14px; padding: .7rem .9rem;
}
.give-row.off { border-color: var(--line); background: #f7f9fc; }
.give-row.off .give-thumb, .give-row.off .give-title { opacity: .55; }
.give-pick { display: flex; align-items: center; gap: .75rem; margin: 0; cursor: pointer; min-width: 0; }
.give-pick input { width: 1.25rem; height: 1.25rem; flex: none; accent-color: var(--fjord); }
.give-thumb { flex: none; width: 76px; aspect-ratio: 1200 / 630; border-radius: 8px; background: #c9d6e6 center / cover no-repeat; }
.give-title { flex: 1; min-width: 0; font-family: var(--display); font-weight: 700; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.give-title small { display: block; font-family: var(--body); font-weight: 400; font-size: .82rem; color: var(--muted); margin-top: .1rem; }
.give-amount input { margin: 0; text-align: right; font-weight: 700; }
.give-even { margin: .7rem 0 0; min-height: 1.9rem; }
.give-pay { margin-top: 1rem; border-top: 6px solid var(--lamp); }
.give-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.give-sum span { color: var(--muted); }
.give-sum strong { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--fjord); letter-spacing: -.03em; }
.receipt { list-style: none; padding: 0; margin: 1rem 0; text-align: left; }
.receipt li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.receipt li:last-child { border-bottom: 0; }
.receipt span { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- phones first: everything below 820px ---------- */
.nav-toggle { display: none; }
.sticky-give { display: none; }
.rate-row .btn { white-space: nowrap; }
label.check span { flex: 1; }

@media (max-width: 820px) {
    /* header: wordmark and a menu button on one row, links in a panel */
    .site-header { padding-top: .7rem; padding-bottom: .7rem; }
    .nav-toggle {
        display: inline-flex; align-items: center; gap: .55rem; background: none; border: 1.5px solid rgba(255, 255, 255, .35);
        color: #fff; font: inherit; font-weight: 700; font-size: .95rem; padding: .45rem .9rem; border-radius: 99px; cursor: pointer;
    }
    .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 16px; height: 2px; background: #fff; border-radius: 2px; }
    .nav-toggle .bars { position: relative; }
    .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle .bars::before { top: -5px; }
    .nav-toggle .bars::after { top: 5px; }
    html:not(.js) .nav-toggle { display: none; }
    .js .site-nav { display: none; }
    .js .site-header.open .site-nav { display: flex; }
    .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: .4rem 0 .3rem; }
    .site-nav a { padding: .8rem .2rem; font-size: 1.05rem; border-top: 1px solid rgba(255, 255, 255, .12); }
    .site-nav .nav-cta { margin-top: .7rem; padding: .8rem 1rem; text-align: center; border-top: 0; }

    .wrap { padding-top: 1.4rem; padding-bottom: 2.5rem; }
    .card { padding: 1.15rem; }
    .form-grid { grid-template-columns: 1fr; }
    .page-head .btn { width: 100%; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: .9rem; }
    .site-footer a { display: inline-block; padding: .3rem 0; }

    /* the three steps and the second hero link take a lot of room on a phone: leave them out */
    .steps, .hero-link { display: none; }
    .hero { min-height: 0; }
    .hero-inner { padding-bottom: 10.5rem; }
    .section-head .btn { width: 100%; }
    /* phones: title gets the full width; the amount sits on its own line underneath */
    .give-row { grid-template-columns: minmax(0, 1fr); gap: .6rem; padding: .8rem .85rem; }
    .give-pick { align-items: flex-start; }
    .give-pick input { margin-top: .15rem; }
    .give-thumb { width: 64px; }
    .give-title { font-size: 1.02rem; }
    .give-amount input { font-size: 1.15rem; padding-top: .6rem; padding-bottom: .6rem; }
    .give-head .actions { width: 100%; }
    .give-sum strong { font-size: 1.7rem; }
    .hero::before { background: linear-gradient(180deg, rgba(11, 33, 64, .95) 0%, rgba(11, 33, 64, .8) 50%, rgba(11, 33, 64, 0) 78%); }
    .hero-actions .btn { width: 100%; }
    .grid { grid-template-columns: 1fr; gap: 1.1rem; }

    /* campaign page: the give form comes right after the title, not after the whole story */
    .campaign { grid-template-columns: 1fr; gap: 0; }
    .campaign > article { display: contents; }
    .campaign .cover { order: 1; margin-bottom: 1rem; border-radius: 12px; }
    .campaign h1 { order: 2; }
    .campaign .byline { order: 3; margin-bottom: .4rem; }
    .campaign .donate-box { order: 4; position: static; margin: 1rem 0 1.6rem; padding: 1.2rem; }
    .campaign .share { order: 5; }
    .campaign .text { order: 6; }
    .campaign > article > h2 { order: 7; }
    .campaign .donor-list, .campaign > article > p.muted { order: 8; }
    .share-row { max-width: none; }
    .methods .btn { padding: .95rem 1rem; font-size: 1.05rem; }
    .sticky-give:not([hidden]) {
        display: block; position: fixed; left: .8rem; right: .8rem; bottom: .8rem; z-index: 20; text-align: center;
        background: var(--vipps); color: #fff; font-weight: 800; font-size: 1.05rem; text-decoration: none;
        padding: .95rem 1rem; border-radius: 99px; box-shadow: 0 10px 24px -8px rgba(11, 33, 64, .7);
    }
    body:has(.sticky-give) .site-footer { padding-bottom: 4.5rem; }

    /* wide admin tables scroll sideways instead of squeezing */
    .table-wrap:not(.cards-on-mobile) table { min-width: 640px; }
    td .actions { flex-wrap: wrap; }
    .rate-row { flex-wrap: wrap; }
    .rate-row label { flex: 1 1 100%; }
    .stats { grid-template-columns: 1fr 1fr; gap: .7rem; }
    .stat b { font-size: 1.3rem; }

    /* Min side: one card per campaign */
    .cards-on-mobile { background: none; border: 0; overflow: visible; }
    .cards-on-mobile table, .cards-on-mobile tbody, .cards-on-mobile tr, .cards-on-mobile td { display: block; width: 100%; }
    .cards-on-mobile tr.head { display: none; }
    .cards-on-mobile tr { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; margin-bottom: .9rem; }
    .cards-on-mobile td { border: 0; padding: .32rem 0; text-align: left; }
    .cards-on-mobile td[data-label] { display: flex; justify-content: flex-end; align-items: baseline; gap: .45rem; text-align: right; }
    .cards-on-mobile td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .88rem; text-align: left; flex: none; margin-right: auto; }
    .cards-on-mobile td.main { font-family: var(--display); font-weight: 700; font-size: 1.1rem; padding-bottom: .5rem; }
    .cards-on-mobile td.main .small { font-family: var(--body); font-weight: 400; }
    .cards-on-mobile td.act { padding-top: .7rem; }
    .cards-on-mobile td.act .btn { display: block; padding: .6rem 1rem; font-size: .95rem; }
    .cards-on-mobile td br { display: none; }
    .cards-on-mobile td.main br { display: inline; }
    .cards-on-mobile td.main .small { margin-left: 0; }
}
