/* Local font hosting to avoid external font providers. */
@font-face {
    font-family: 'Outfit';
    src: local('Outfit Regular'), local('Outfit-Regular'), url('/fonts/outfit/Outfit-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: local('Outfit Medium'), local('Outfit-Medium'), url('/fonts/outfit/Outfit-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: local('Outfit SemiBold'), local('Outfit-SemiBold'), url('/fonts/outfit/Outfit-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Outfit';
    src: local('Outfit Bold'), local('Outfit-Bold'), url('/fonts/outfit/Outfit-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== Custom Properties ===== */
:root {
    --color-primary: #3A38B6;
    --color-primary-dark: #201E87;
    --color-primary-light: #5348D1;
    --color-success: #2E7D32;
    --color-error: #C62828;

    --surface-page: #F4F8FF;
    --surface-card: #E9E9FE;
    --surface-white: #FFFFFF;
    --surface-border: #D8DAE8;
    --surface-1: var(--surface-page);
    --surface-2: var(--surface-card);
    --surface-3: var(--surface-border);
    --surface-tint-start: #F7F5FF;
    --surface-tint-end: #F2F8FF;
    --surface-soft-highlight: #EEF0FF;
    --accent-yellow-soft: #FFF5CC;
    --accent-yellow-border: #F2E3A3;
    --text-1: #000000;
    --text-2: #7F7F7F;

    --font-heading: 'Outfit', Arial, Helvetica, sans-serif;
    --font-body: 'Outfit', Arial, Helvetica, sans-serif;

    --radius-card: 20px;
    --radius-btn: 10px;
    --radius-round: 300px;
    --page-gutter: 16px;
}

/* ===== Base ===== */
html {
    font-size: 100%;
    background: #F4F8FF !important;
}

body {
    font-family: var(--font-body);
    color: var(--text-1);
    background: #F4F8FF !important;
    line-height: 1.5;
    margin: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(58, 56, 182, 0.055) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.site-shell {
    min-height: 100dvh;
    background: #F4F8FF !important;
}

.site-shell > main {
    background: #F4F8FF !important;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.25;
}

*:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* ===== Petition Header (Image + Overlap Card) ===== */
.petition-header {
    position: relative;
}

.petition-header__img {
    display: block;
    width: 100%;
    height: 253px;
    object-fit: cover;
}

.petition-header__card {
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin: -70px auto 0;
    background: #F4F8FF;
    border: none;
    border-radius: var(--radius-card);
    padding: 20px 16px;
    text-align: center;
}

.petition-header__title {
    font-size: 1.55rem;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.25;
    letter-spacing: 0.04em;
    margin: 0 0 10px;
    color: var(--text-1);
}

.petition-header__title span { 
    font-weight: bold;
}

.petition-header__subtitle {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-1);
    margin: 0;
}

/* ===== Signature CTA Block ===== */
.signature-cta {
    max-width: 420px;
    margin: 0 auto;
    padding: 0 var(--page-gutter) 0;
    text-align: center;
}

.signature-cta--button-only {
    margin-bottom: 6px;
}

.signature-cta--button-only + .activity-feed {
    margin-top: 8px;
}

.signature-cta--compact {
    max-width: none;
    padding: 0;
}

.signature-cta--compact .signature-cta__count {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.signature-cta--compact .signature-cta__bar {
    margin-bottom: 0;
}

.signature-cta__count {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-1);
    margin: 0 0 8px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.signature-cta__count--pop {
    animation: cta-count-glow 1.2s ease;
}

.signature-cta__number {
    display: inline-block;
    transform-origin: center;
    font-weight: 700;
    font-size: 1.65rem;
    color: var(--color-primary-dark);
}

.signature-cta__delta {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    color: #1f6b3b;
    background: rgba(34, 113, 34, 0.14);
    border: 1px solid rgba(34, 113, 34, 0.32);
    animation: cta-delta-in 0.35s cubic-bezier(.16,1,.3,1);
}

.signature-cta__number--pop {
    animation: cta-pop 0.72s cubic-bezier(.16,1,.3,1);
}

@keyframes cta-pop {
    0%   { transform: scale(1); }
    36%  { transform: scale(1.34); }
    70%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes cta-count-glow {
    0% { text-shadow: 0 0 0 rgba(83,72,209,0); }
    35% { text-shadow: 0 0 18px rgba(83,72,209,0.28); }
    100% { text-shadow: 0 0 0 rgba(83,72,209,0); }
}

@keyframes cta-delta-in {
    0% { transform: translateY(-4px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.signature-cta__bar {
    position: relative;
    width: 100%;
    height: 28px;
    background: rgba(58, 56, 182, 0.1);
    border: none;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 16px;
    box-sizing: border-box;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.18), inset 0 1px 3px rgba(58, 56, 182, 0.2);
    isolation: isolate;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.signature-cta__bar-fill {
    position: relative;
    height: 100%;
    background: linear-gradient(90deg, #2d2bb0 0%, #6c5ce7 50%, #2d2bb0 100%);
    background-size: 200% 100%;
    overflow: hidden;
    z-index: 2;
    animation: cta-bar-flow 3.2s linear infinite;
    box-shadow: 0 3px 14px rgba(83, 72, 209, 0.5);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: width, opacity;
}

.signature-cta__bar-fill::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.signature-cta__bar-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.32) 45%, transparent 70%);
    transform: translate3d(-110%, 0, 0);
    animation: cta-bar-shimmer 2.2s ease-in-out infinite;
    z-index: 2;
    will-change: transform;
}

.signature-cta__bar-fill--ready {
    transition: width 0.72s cubic-bezier(.22, 1, .36, 1);
}

.signature-cta__bar-fill--pulse {
    animation: cta-bar-flow 3.2s linear infinite, cta-bar-pulse 0.55s cubic-bezier(.16, 1, .3, 1);
}

@keyframes cta-bar-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes cta-bar-shimmer {
    0% { transform: translate3d(-110%, 0, 0); }
    100% { transform: translate3d(110%, 0, 0); }
}

@keyframes cta-bar-pulse {
    0%   { opacity: 1; }
    45%  { opacity: 0.92; }
    100% { opacity: 1; }
}

/* Safari/WebKit can flicker when width transitions combine with filter/shimmer animations. */
@supports (-webkit-touch-callout: none) {
    .signature-cta__bar-fill {
        animation: none;
    }

    .signature-cta__bar-fill::after {
        display: none;
    }

    .signature-cta__bar-fill--pulse {
        animation: cta-bar-pulse 0.45s ease-out;
    }
}

.signature-cta__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-btn);
    background: var(--color-primary);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.signature-cta__btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(58,56,182,.3);
}

.signature-cta__btn:active {
    transform: translateY(0);
}

/* ===== Siste aktivitet ===== */
.activity-feed {
    max-width: 420px;
    margin: 16px auto 0;
    padding: 0 var(--page-gutter);
}

.customer-benefit-chart {
    max-width: 420px;
    margin: 14px auto 0;
    padding: 0 var(--page-gutter);
}

.customer-benefit-chart__sign-btn {
    margin-top: 14px;
}

.petition-section-cta {
    max-width: 420px;
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    box-sizing: border-box;
}

.activity-feed__card {
    background: #E9E9FE;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-btn);
    padding: 8px;
}

.activity-feed__card .btn-primary{
    margin-top: 10px;
}

.activity-feed__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 8px;
    padding: 0 2px;
}

.activity-feed__live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1f6b3b;
}

.activity-feed__live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22a355;
    box-shadow: 0 0 0 0 rgba(34, 163, 85, 0.5);
    animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 163, 85, 0.5); }
    70%  { box-shadow: 0 0 0 6px rgba(34, 163, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 163, 85, 0); }
}


.activity-feed__title {
    font-size: 1.75rem;
    line-height: 1.25;
    color: var(--color-primary-dark);
    margin: 0 0 8px;
    padding: 0 2px;
}

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

.activity-feed__item {
    background: var(--surface-white);
    border-radius: var(--radius-btn);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: box-shadow 0.15s ease, transform 0.12s ease;
}

.activity-feed__item:hover {
    box-shadow: 0 2px 10px rgba(58, 56, 182, 0.1);
    transform: translateY(-1px);
}

.activity-feed__list--skeleton .activity-feed__item {
    pointer-events: none;
}

.activity-feed__item--skeleton {
    min-height: 52px;
}

.activity-feed__skel {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 999px;
    background: #e6ebf6;
}

.activity-feed__skel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.78) 45%, transparent 100%);
    transform: translateX(-130%);
    animation: activity-skeleton-shimmer 1.05s linear infinite;
}

.activity-feed__skel--name {
    width: 44%;
    height: 17px;
}

.activity-feed__skel--time {
    width: 24%;
    min-width: 86px;
    height: 13px;
}

@keyframes activity-skeleton-shimmer {
    100% { transform: translateX(130%); }
}

.activity-feed__name {
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-1);
}

.activity-feed__loc-sep {
    color: var(--text-2);
    font-weight: 400;
}

.activity-feed__loc {
    font-size: 0.95em;
    font-weight: 400;
    color: var(--text-2);
}

.activity-feed__time {
    font-size: 0.9rem;
    line-height: 1.25;
    color: var(--text-2);
    white-space: nowrap;
}

.activity-feed__time-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.activity-feed__new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #1f6b3b;
    background: rgba(34, 113, 34, 0.14);
    border: 1px solid rgba(34, 113, 34, 0.32);
}

.activity-feed__item--new {
    animation: activity-new-item 2.2s ease;
}

@keyframes activity-new-item {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 113, 34, 0.26);
        background: #eaf8ea;
    }
    35% {
        box-shadow: 0 0 0 6px rgba(34, 113, 34, 0.12);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 113, 34, 0);
        background: var(--surface-white);
    }
}

.activity-feed__empty {
    text-align: center;
    color: var(--text-2);
    font-style: italic;
    margin: 10px 0;
}

.activity-feed__toggle {
    margin-top: 8px;
    margin-left: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-primary-dark);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.12em;
    cursor: pointer;
}

.activity-feed__toggle:hover {
    color: var(--color-primary);
}

.activity-feed__sign-btn {
    margin-top: 10px;
}

.activity-feed__chart {
    background: var(--surface-white);
    border-radius: var(--radius-btn);
    border: 1px solid var(--surface-border);
    margin-top: 0;
    padding: 10px;
}

.activity-feed__chart-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.25;
    color: var(--color-primary-dark);
}

.activity-feed__chart-text {
    color: var(--text-1);
    text-align: left;
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.45;
}

.activity-feed__bars {
    margin: 1.75rem 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.activity-feed__bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-height: 175px;
    width: 58px;
}

.activity-feed__bar-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-1);
}

.activity-feed__bar {
    position: relative;
    overflow: hidden;
    width: 28px;
    border-radius: 6px 6px 3px 3px;
    background: linear-gradient(180deg, #33a13f 0%, #227122 68%, #1b5e1b 100%);
    display: block;
    min-height: 52px;
    border: 1px solid rgba(15, 65, 20, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        inset 0 -2px 3px rgba(17, 73, 17, 0.25),
        0 5px 10px rgba(15, 70, 22, 0.18);
    transform-origin: bottom;
    animation: bar-grow 0.55s cubic-bezier(.22, 1, .36, 1) both;
}

.activity-feed__bar::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 38%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0.75;
    pointer-events: none;
}

.activity-feed__bar-item:nth-child(1) .activity-feed__bar { animation-delay: 0.05s; }
.activity-feed__bar-item:nth-child(2) .activity-feed__bar { animation-delay: 0.15s; }
.activity-feed__bar-item:nth-child(3) .activity-feed__bar { animation-delay: 0.25s; }
.activity-feed__bar-item:nth-child(4) .activity-feed__bar { animation-delay: 0.35s; }
.activity-feed__bar-item:nth-child(5) .activity-feed__bar { animation-delay: 0.45s; }

@keyframes bar-grow {
    from { transform: scaleY(0); opacity: 0; }
    to   { transform: scaleY(1); opacity: 1; }
}

.activity-feed__bar--unknown {
    background: repeating-linear-gradient(
        -45deg,
        #c0392b 0px,
        #c0392b 4px,
        #e57a73 4px,
        #e57a73 8px
    );
    min-height: 0;
    opacity: 0.7;
}

@media (min-width: 900px) {
    .activity-feed__bars {
        gap: 4px;
    }
}

.activity-feed__bar-year {
    font-size: 0.75rem;
    color: var(--text-2);
}

.activity-feed__chart-total {
    margin: 1rem 0 0;
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--text-1);
    text-align: center;
}

.activity-feed__chart-total strong {
    font-size: 1.6rem;
    color: #227122;
    font-weight: 700;
}

/* ===== Hvorfor er kundeutbytteordningen god? ===== */
.value-cards {
    max-width: 420px;
    margin: 12px auto 0;
    padding: 0 var(--page-gutter);
}

.value-cards__card {
    background: var(--surface-white);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-btn);
    padding: 8px;
}

.value-cards__title {
    font-size: 1.75rem;
    text-align: center;
    line-height: 1.25;
    color: var(--color-primary-dark);
    margin: 0 0 8px;
    padding: 0 2px;
    font-weight: 600;
}

.value-cards__intro {
    margin: 0 0 12px;
    padding: 0 2px;
    font-size: 0.98rem;
    line-height: 1.45;
    color: var(--text-2);
}

.value-cards__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.value-card {
    background: #F4F8FF;
    border-radius: var(--radius-btn);
    border-left: 4px solid transparent;
    box-sizing: border-box;
    padding: 18px;
}

.value-cards__grid .value-card:nth-child(1) {
    border-left-color: #bfc4ff;
}

.value-cards__grid .value-card:nth-child(2) {
    border-left-color: #ffe3a3;
}

.value-cards__grid .value-card:nth-child(3) {
    border-left-color: #bde8cc;
}

.value-card__title {
    margin: 0 0 10px;
    text-align: left;
    font-weight: 600;
    font-size: 1.115rem;
    line-height: 1.35;
    color: var(--text-1);
    letter-spacing: -0.01em;
}

.value-card__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-1);
}

.value-card__text + .value-card__text {
    margin-top: 0.7rem;
}

.value-card__more {
    margin-top: 0.7rem;
}

.value-card__details {
    margin-top: 0.9rem;
}

.value-card__details > summary {
    list-style: none;
}

.value-card__details > summary::-webkit-details-marker {
    display: none;
}

.value-card__link {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
    margin-left: auto;
    color: var(--color-primary-dark);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
}

.value-card__link-text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
}

.value-card__link-text--less {
    display: none;
}

.value-card__link-label {
    display: inline-block;
    width: 8px;
    height: 10px;
    line-height: 0;
}

.value-card__arrow {
    display: block;
    width: 8px;
    height: 10px;
}

.value-card__arrow--up {
    transform: rotate(180deg);
}

.value-card__link-label--less {
    display: none;
}

.value-card__details[open] > .value-card__link {
    display: none;
}

.value-card__link:hover,
.value-card__close:hover {
    color: var(--color-primary);
}

.value-card__close {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
    margin-left: auto;
    margin-top: 8px;
    color: var(--color-primary-dark);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

/* ===== Stortingsflertall (statisk oversikt) ===== */
.majority-preview {
    max-width: 420px;
    margin: 16px auto 0;
    padding: 0 var(--page-gutter);
}

.majority-preview__card {
    background: linear-gradient(180deg, var(--surface-white) 0%, var(--surface-page) 100%);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-btn);
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    text-align: center;
}

.majority-preview__heading {
    margin: 0 0 8px;
    padding: 6px 10px;
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--color-primary-dark);
    background: var(--accent-yellow-soft);
    border: 1px solid var(--accent-yellow-border);
    border-radius: 8px;
}

.majority-preview__rainbow-wrap {
    background: linear-gradient(180deg, #edf0f5 0%, #f7f9ff 100%);
    border: 1px solid var(--accent-yellow-border);
    border-radius: var(--radius-btn);
    padding: 10px;
    margin-bottom: 8px;
}

.majority-rainbow-graphic__svg {
    width: 100%;
    display: block;
    max-height: 300px;
}

.majority-rainbow-graphic__dot {
    opacity: 0.95;
}

.majority-rainbow-graphic__needle {
    transition: x2 0.55s cubic-bezier(.22,1,.36,1), y2 0.55s cubic-bezier(.22,1,.36,1), stroke 0.4s ease;
}

.majority-rainbow-graphic__needle-dot {
    transition: cx 0.55s cubic-bezier(.22,1,.36,1), cy 0.55s cubic-bezier(.22,1,.36,1), fill 0.4s ease;
}



/* ===== Storting Majority Page ===== */
.majority-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.majority-page__nav {
    margin-bottom: 1.25rem;
}

.majority-page__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.majority-page__back-link:hover {
    opacity: 0.7;
}

.majority-page__header {
    text-align: center;
}

.majority-page__header h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.4rem, 4vw, 2rem);
}

.majority-page__header p {
    margin: 0 0 1.5rem;
    color: var(--text-2);
}

.majority-card {
    background: var(--surface-white);
    border-radius: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.majority-semicircle-wrap {
    background: var(--surface-1);
    border-radius: 0.75rem;
    padding: 0.4rem;
}

.majority-semicircle {
    width: 100%;
    display: block;
    max-height: 400px;
}

.majority-seat-dot {
    transition: fill 0.25s ease;
}

.majority-bar-wrap {
    position: relative;
    margin: 0.25rem 0 0.25rem;
    padding-bottom: 1.4rem;
}

.majority-bar {
    display: flex;
    height: 1.5rem;
    border-radius: var(--radius-round);
    overflow: hidden;
    background: var(--surface-2);
}

.majority-bar__seg {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: white;
    transition: width 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
}

.majority-bar__seg--for     { background: #22a355; }
.majority-bar__seg--usikker { background: #f5c542; color: #5a4a00; }
.majority-bar__seg--mot     { background: #d43d3d; }

.majority-bar__threshold-wrap {
    position: absolute;
    top: 0;
    left: 50.3%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.majority-bar__threshold-line {
    width: 2px;
    height: 1.5rem;
    background: var(--color-primary-dark);
    opacity: 0.7;
}

.majority-bar__threshold-label {
    font-size: 0.7rem;
    color: var(--text-2);
    white-space: nowrap;
    margin-top: 0.15rem;
}

.majority-bar__legend {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 0.35rem;
    font-size: 0.78rem;
}

.majority-bar__swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 0.2rem;
}

.majority-bar__swatch--for     { background: #22a355; }
.majority-bar__swatch--usikker { background: #f5c542; }
.majority-bar__swatch--mot     { background: #d43d3d; }

.majority-bar__leg--for     { color: #1a7d40; }
.majority-bar__leg--usikker { color: #b38f20; }
.majority-bar__leg--mot     { color: #a82e2e; }

.majority-status {
    text-align: center;
    width: 100%;
    margin: 0.55rem 0 0.2rem;
    font-size: 0.95rem;
    color: #d43d3d;
    font-weight: 600;
}

.majority-celebration {
    text-align: center;
    margin: 0.75rem 0 0;
    padding: 0.6rem 1rem;
    border-left: 3px solid #22a355;
    background: #f0faf3;
    border-radius: 0.4rem;
    animation: celebration-fade 0.4s ease;
}

.majority-celebration__icon {
    display: none;
}

.majority-celebration__text {
    margin: 0;
    font-size: 0.95rem;
    color: #1a7d40;
}

@keyframes celebration-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.majority-zones {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.majority-zone {
    border-radius: 0.75rem;
    padding: 1rem;
    background: var(--surface-white);
    box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    border-top: 4px solid var(--surface-3);
    min-height: 120px;
    transition: box-shadow 0.2s, transform 0.15s;
}

.majority-zone--for     { border-top-color: #22a355; }
.majority-zone--usikker { border-top-color: #f5c542; }
.majority-zone--mot     { border-top-color: #d43d3d; }

.majority-zone--dragover {
    box-shadow: 0 6px 16px rgba(58,56,182,.16), 0 2px 4px rgba(0,0,0,.08);
    transform: scale(1.02);
}

.majority-zone__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.majority-zone__indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.majority-zone__indicator--for     { background: #22a355; }
.majority-zone__indicator--usikker { background: #f5c542; }
.majority-zone__indicator--mot     { background: #d43d3d; }

.majority-zone__title {
    margin: 0;
    font-size: 1rem;
    flex: 1;
}

.majority-zone__count {
    font-size: 0.85rem;
    color: var(--text-2);
    white-space: nowrap;
}

.majority-zone__parties {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.majority-zone__party {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--surface-1);
    border: 1px solid var(--surface-3);
    border-radius: 2rem;
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    transition: box-shadow 0.2s, transform 0.15s;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    appearance: none;
}

.majority-zone__party:hover {
    box-shadow: 0 1px 4px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.08);
    transform: translateY(-1px);
}

.majority-zone__party:active {
    cursor: grabbing;
}

.majority-zone__party--dragging {
    opacity: 0.3;
}

.majority-zone__party--locked {
    cursor: default;
    opacity: 1;
    border: 2px solid #22a355;
    background: #eef9f1;
}

.majority-zone__party--locked:hover {
    transform: none;
    box-shadow: 0 0 0 2px rgba(34, 163, 85, 0.14);
}

.majority-zone__party--locked:active {
    cursor: default;
}

.majority-zone__lock-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    margin-right: 0.25rem;
    padding: 0.14rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #1b7c40;
    background: rgba(34, 163, 85, 0.14);
    border: 1px solid rgba(34, 163, 85, 0.35);
}

.majority-zone__lock-icon {
    position: relative;
    top: 1px;
    width: 0.62rem;
    height: 0.5rem;
    border: 1.7px solid #1b7c40;
    border-radius: 2px;
    box-sizing: border-box;
    margin-right: 0.24rem;
}

.majority-zone__lock-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -0.45rem;
    width: 0.46rem;
    height: 0.35rem;
    border: 1.7px solid #1b7c40;
    border-bottom: 0;
    border-radius: 0.36rem 0.36rem 0 0;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.majority-zone__party--ghost {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.9;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    width: auto;
    max-width: 220px;
}

.majority-zone__logo {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.majority-zone__pname {
    font-weight: 600;
    font-size: 0.88rem;
    flex: 1;
}

.majority-zone__pseats {
    font-size: 0.8rem;
    color: var(--text-2);
    white-space: nowrap;
}

.majority-sign {
    text-align: center;
    margin-top: 2rem;
}

.majority-sign__heading {
    font-size: 1.5rem;
    margin: 0 0 0.4rem;
}

.majority-sign__intro {
    color: var(--text-2);
    margin: 0 0 1.25rem;
}

.signature-inline-panel {
    margin-top: 0.75rem;
    text-align: left;
}

.signature-form-skeleton {
    background: var(--surface-card);
    border-radius: var(--radius-btn);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.signature-form-skeleton__line {
    display: block;
    border-radius: 6px;
    background: linear-gradient(90deg, #ececf4 0%, #f6f6fb 45%, #ececf4 100%);
    background-size: 240px 100%;
    animation: signature-skeleton-shimmer 1.1s linear infinite;
}

.signature-form-skeleton__line--label { height: 10px; width: 38%; }
.signature-form-skeleton__line--input { height: 42px; width: 100%; }
.signature-form-skeleton__line--textarea { height: 76px; width: 100%; }
.signature-form-skeleton__line--button { height: 48px; width: 100%; margin-top: 0.35rem; }
.signature-form-skeleton__line--title { height: 18px; width: 56%; margin: 0 auto 0.2rem; }
.signature-form-skeleton__line--text { height: 13px; width: 86%; margin: 0 auto; }
.signature-form-skeleton__line--wide { width: 94%; }
.signature-form-skeleton__line--link { height: 12px; width: 58%; margin: 0.1rem auto 0; }
.signature-form-skeleton__line--icon { width: 40px; height: 40px; border-radius: 999px; margin: 0 auto 0.4rem; }
.signature-form-skeleton__line--button-secondary { height: 40px; }

.has-signed .signature-cta__pending-button {
    visibility: hidden;
    pointer-events: none;
}

@keyframes signature-skeleton-shimmer {
    0% { background-position: -240px 0; }
    100% { background-position: 240px 0; }
}

/* ===== Campaign Overlay (iOS Bottom Sheet) ===== */
.campaign-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    animation: overlay-fade-in 0.2s ease;
}

@keyframes overlay-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.campaign-overlay__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(0, 0, 0, .45);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.campaign-overlay__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, .18);
    animation: overlay-slide-up 0.3s cubic-bezier(.22,1,.36,1);
    -webkit-overflow-scrolling: touch;
}

@keyframes overlay-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* Drag handle */
.campaign-overlay__card::before {
    content: '';
    display: block;
    width: 2.5rem;
    height: 0.25rem;
    background: var(--surface-border);
    border-radius: var(--radius-round);
    margin: 0.75rem auto 0;
}

.campaign-overlay__header {
    background: var(--surface-white);
    color: var(--text-1);
    padding: 1.1rem 1rem 0.9rem;
    position: relative;
    border-bottom: 1px solid var(--surface-border);
}

.campaign-overlay__close {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text-1);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.campaign-overlay__close:hover {
    background: var(--surface-border);
}

.campaign-overlay__form-body {
    padding: 1.25rem 1.5rem 2rem;
}

/* ===== Signature Form ===== */
.signature-form-section--form {
    /* Reserve space while form is displayed to reduce layout shifts on load. */
    min-height: clamp(24rem, 40vh, 30rem);
}

.signature-form-section--submitted {
    min-height: 0;
}

.signature-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 0.85rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.88rem;
    color: var(--text-2);
}

.required {
    color: var(--color-error);
}

.form-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--surface-border);
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(58,56,182,0.12);
    outline: none;
}

.form-input.valid.modified {
    border-color: var(--color-success);
}

.form-input.invalid {
    border-color: var(--color-error);
}

.form-input--textarea {
    resize: vertical;
    min-height: 3rem;
}

.form-error {
    color: var(--color-error);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.form-error--general {
    text-align: center;
    margin-top: 0.5rem;
}

.form-hint {
    color: var(--text-2);
    font-size: 0.75rem;
    margin-top: 0.3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Toggle */
.form-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.25rem 0 0.75rem;
}

.form-toggle-row__label {
    font-size: 0.75rem;
    color: var(--text-1);
}

.form-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.2rem 0 0.7rem;
}

.form-checkbox {
    margin-top: 0.15rem;
    width: 1rem;
    height: 1rem;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.form-checkbox-row__label {
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--text-1);
}

.form-checkbox-row__required {
    margin-left: 0.2rem;
    font-weight: 600;
}

.form-checkbox-row__label a {
    color: var(--color-primary);
}

.form-required-note {
    margin: 0 0 0.75rem;
    font-size: 0.68rem;
    line-height: 1.3;
    color: rgba(127, 127, 127, 0.8);
}

.toggle-switch {
    position: relative;
    width: 2.75rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-switch__track {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--surface-border);
    border-radius: var(--radius-round);
    transition: background 0.2s;
}

.toggle-switch__track::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: calc(1.5rem - 4px);
    height: calc(1.5rem - 4px);
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.toggle-switch input:checked + .toggle-switch__track {
    background: var(--color-primary);
}

.toggle-switch input:checked + .toggle-switch__track::after {
    transform: translateX(1.25rem);
}

.form-terms {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-2);
    margin: 0.25rem 0 0.5rem;
}

.form-terms a {
    color: var(--color-primary);
    text-decoration: underline;
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-btn);
    background: var(--color-primary);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.form-submit:hover:not(:disabled) {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-submit__spinner {
    width: 1.1rem;
    height: 1.1rem;
    border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success state */
.signature-success {
    text-align: center;
    background: var(--surface-card);
    border-radius: var(--radius-btn);
    padding: 1.25rem 0.9rem;
}

@media (max-width: 640px) {
    .signature-form-section--form {
        min-height: clamp(20rem, 46vh, 25rem);
    }
}

.signature-success__icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--color-success);
    margin: 0 auto 0.5rem;
}

.signature-success__heading {
    font-size: 1.15rem;
    margin: 0 0 0.35rem;
}

.signature-success__intro {
    margin: 0 0 0.55rem;
}

.signature-success__count-line {
    margin: 0 0 0.9rem;
}

.signature-success__count-skeleton-wrap {
    margin: 0 0 0.9rem;
}

.signature-success__count-skeleton-line {
    display: block;
    width: 92%;
    height: 14px;
    margin: 0 auto;
}

.signature-success__text {
    color: var(--text-2);
    margin: 0 0 0.9rem;
    font-size: 0.88rem;
}

.signature-success__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    justify-content: center;
}

.signature-success__actions + .signature-success__actions {
    margin-top: 0.65rem;
}

.signature-success__actions .btn-primary,
.signature-success__actions .btn-outline {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.signature-success__share-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    border: none;
    border-radius: var(--radius-btn);
    background: transparent;
    color: var(--text-1);
    cursor: pointer;
}

.signature-success__share-icon:hover {
    background: var(--surface-page);
}

.signature-success__share-icon svg {
    width: 20px;
    height: 20px;
}

.signature-success__legal {
    margin: 0.75rem 0 0;
    text-align: center;
}

/* ===== Share Buttons (success state) ===== */
.signature-success__share-heading {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0 0 0.55rem;
    text-align: center;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid currentColor;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}

.share-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.share-btn--facebook { color: #1877F2; }
.share-btn--facebook:hover { background: #1877F2; color: white; }

.share-btn--x { color: #1a1a1a; }
.share-btn--x:hover { background: #1a1a1a; color: white; }

.share-btn--linkedin { color: #0A66C2; }
.share-btn--linkedin:hover { background: #0A66C2; color: white; }

.signature-success__legal a {
    color: var(--color-primary-dark);
    font-size: 0.92rem;
}

.btn-primary {
    display: inline-flex;
    width: 100%;
    padding: 14px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 10px;
    background: #3A38B6;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 0.8;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(58, 56, 182, 0.22), 0 1px 3px rgba(58, 56, 182, 0.14);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 56, 182, 0.3), 0 2px 6px rgba(58, 56, 182, 0.18);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(58, 56, 182, 0.2);
}
.btn-primary--full { width: 100%; }

.btn-outline {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-btn);
    background: transparent;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-outline--full { width: 100%; }

.link-primary {
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.link-primary:hover {
    color: var(--color-primary-dark);
}

.link-primary:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
    border-radius: 2px;
}

.terms-page {
    max-width: 840px;
    margin: 16px auto 0;
    padding: 0 var(--page-gutter) 24px;
}

.terms-page__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0 0 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.terms-page__back-link:hover {
    text-decoration: underline;
}

.terms-page__card {
    background: linear-gradient(180deg, var(--surface-white) 0%, var(--surface-page) 100%);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-card);
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}

.terms-page h1 {
    margin: 0 0 1rem;
    color: var(--color-primary-dark);
}

.terms-page h2 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.2rem;
    color: var(--color-primary-dark);
}

.terms-page p,
.terms-page li {
    line-height: 1.55;
}

.terms-page ul {
    margin: 0.25rem 0 0.75rem;
    padding-left: 1.2rem;
}

.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin: 2rem 0 0.5rem;
    text-align: center;
    padding: 0 0.75rem;
}

.site-footer__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
    color: var(--text-2);
    font-size: 0.78rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.site-footer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    line-height: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    padding: 0 0.35rem;
    appearance: none;
}

/* ===== Footer Share Icons ===== */
.site-footer__share-group {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.site-footer__share-label {
    color: var(--text-2);
    font-size: 0.78rem;
    padding: 0 0.3rem 0 0.35rem;
}

.site-footer__share-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-2);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-footer__share-icon:hover {
    background: var(--color-primary);
    color: white;
}

.site-footer__share-icon svg {
    width: 13px;
    height: 13px;
}

/* ===== Video Modal ===== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: overlay-fade-in 0.2s ease;
}

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(0, 0, 0, .7);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.video-modal__card {
    position: relative;
    z-index: 1;
    width: 90vw;
    max-width: 720px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    animation: overlay-slide-up 0.3s cubic-bezier(.22,1,.36,1);
}

.video-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal__player {
    display: block;
    width: 100%;
    max-height: 80vh;
}

/* ===== Cookie Settings ===== */
.cookie-settings {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 1300;
    width: min(360px, calc(100vw - 24px));
}

.cookie-settings--blocking {
    inset: 0;
    right: 0;
    bottom: 0;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-settings__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(2px);
}

.cookie-settings__card {
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
    padding: 20px;
}

.cookie-settings--blocking .cookie-settings__card {
    width: min(420px, calc(100vw - 2rem));
}

.cookie-settings__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    color: var(--text-2);
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.cookie-settings__title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-1);
}

.cookie-settings__text {
    margin: 0;
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-settings__details {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: clip;
}

.cookie-settings__details > summary {
    list-style: none;
}
.cookie-settings__details > summary::-webkit-details-marker {
    display: none;
}

.cookie-settings__details-trigger {
    display: block;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    cursor: pointer;
    user-select: none;
}

.cookie-settings__details-trigger:hover {
    background: var(--surface-card);
}

.cookie-settings__details-content {
    padding: 0 14px 12px;
    font-size: 0.82rem;
    color: var(--text-2);
    line-height: 1.45;
}

.cookie-settings__details-content p {
    margin: 8px 0 2px;
}

.cookie-settings__details-content ul {
    margin: 0;
    padding-left: 1.2rem;
}

.cookie-settings__details-content li {
    margin-bottom: 2px;
}

.cookie-settings__details-content code {
    font-size: 0.8rem;
    background: var(--surface-card);
    padding: 1px 4px;
    border-radius: 3px;
}

.cookie-settings__actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.cookie-settings__btn {
    flex: 1;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text-1);
    border-radius: 8px;
    padding: 8px 12px;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.cookie-settings__btn--primary {
    background: var(--surface-card);
    border-color: var(--line);
    color: var(--text-1);
}

.cookie-settings__btn--primary:hover,
.cookie-settings__btn--secondary:hover {
    background: var(--surface-card);
}

.cookie-settings__btn--ghost {
    color: var(--text-2);
}

.cookie-settings__btn--secondary {
    background: #fff;
    border-color: var(--line);
    color: var(--text-1);
}

.cookie-settings__privacy-link {
    margin: 12px 0 0;
    font-size: 0.8rem;
    color: var(--text-2);
    text-align: center;
}

.cookie-settings__privacy-link a {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

body.site-shell--blocked main,
body.site-shell--blocked .site-footer {
    pointer-events: none;
    user-select: none;
}

/* Desktop: center the sheet as a dialog */
@media (min-width: 601px) {
    .campaign-overlay {
        justify-content: center;
        align-items: center;
        padding: 2rem;
    }

    .campaign-overlay__card {
        max-width: 480px;
        max-height: 90vh;
        border-radius: var(--radius-card);
    }

    .campaign-overlay__card::before {
        display: none;
    }
}

/* Wider content on desktop (~2x mobile width) */
@media (min-width: 900px) {
    .petition-header__img {
        height: 290px;
        object-position: center 35%;
    }

    .petition-header__title {
        font-size: 2.5rem;
    }

    .petition-header__card,
    .signature-cta,
    .activity-feed,
    .customer-benefit-chart,
    .value-cards,
    .majority-preview,
    .customer-comments,
    .faq-section {
        max-width: 840px;
    }

    .value-cards__grid {
        grid-template-columns: 1fr;
    }

}

/* ===== Responsive ===== */
@media (max-width: 700px) {
    .majority-zones {
        grid-template-columns: 1fr;
    }

    .majority-page {
        padding: 1.25rem 1rem 2rem;
    }

    .majority-card {
        padding: 0.75rem;
    }

    .majority-bar__legend {
        gap: 0.75rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 600px) {
    .petition-header__card {
        margin-left: 16px;
        margin-right: 16px;
    }

    .signature-cta {
        padding: 0 16px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== TheCase (collapsible) ===== */
.the-case {
    max-width: 420px;
    margin: 24px auto 0;
    padding: 0 var(--page-gutter);
}

.the-case__card {
    background: var(--surface-white);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-btn);
    padding: 10px;
    box-sizing: border-box;
}

/* ===== FAQ Accordion ===== */
.faq-section {
    max-width: 420px;
    margin: 32px auto 0;
    padding: 0 var(--page-gutter);
}

.faq-section__card {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-btn);
    padding: 10px;
    box-sizing: border-box;
}

.faq-section__title {
    margin-bottom: 12px;
}

.supporting-banks {
    max-width: 840px;
    margin: 24px auto 0;
    padding: 0 var(--page-gutter) 48px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.supporting-banks__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px;
}

.supporting-banks__heading {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.55rem;
    line-height: 25px;
    font-weight: 400;
    color: var(--text-1);
}

.supporting-banks__logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    width: 100%;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 16px;
    box-sizing: border-box;
}

.supporting-banks__logo-card {
    background: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.supporting-banks__logo-card svg,
.supporting-banks__logo-img {
    width: 100%;
    height: auto;
}

.supporting-banks__logo-slice {
    width: 200%;
    max-width: none;
}

.supporting-banks__logo-slice--left {
    transform: translateX(0);
}

.supporting-banks__logo-slice--right {
    transform: translateX(-50%);
}

.supporting-banks__logo-card--placeholder {
    border-style: dashed;
    color: #7f7f7f;
    font-weight: 600;
}

.customer-comments {
    max-width: 420px;
    margin: 24px auto 0;
    padding: 0 var(--page-gutter);
}

.customer-comments__card {
    background: var(--surface-white);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-btn);
    padding: 10px;
    box-sizing: border-box;
}

.customer-comments__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.customer-comments__sign-btn {
    margin-top: 12px;
}

.customer-comments__item {
    background: #F4F8FF;
    border-radius: 18px;
    padding: 16px;
}

.customer-comments__text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    color: var(--text-1);
    white-space: pre-wrap;
}

.customer-comments__name {
    margin: 10px 0 0;
    font-size: 0.95rem;
    line-height: 1.2;
    color: var(--text-1);
}

.customer-comments__empty {
    background: #F4F8FF;
    border-radius: 18px;
    padding: 16px;
    color: var(--text-2);
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .supporting-banks__logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
    }

    .supporting-banks__logo-card {
        min-height: 56px;
        padding: 6px;
    }

    .customer-comments__list {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 900px) {
    .customer-comments {
        max-width: 840px;
    }

    .the-case {
        max-width: 840px;
    }

    .faq-section {
        max-width: 840px;
    }

    .petition-section-cta {
        max-width: 840px;
    }
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--surface-white);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-btn);
    overflow: clip;
}

.faq-item > summary {
    list-style: none;
}
.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-item__trigger {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    text-align: left;
}

.faq-item__trigger > span {
    min-width: 0;
    flex: 1 1 auto;
}

.faq-item__trigger:hover {
    background: var(--surface-card);
}

.faq-item__chevron {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-primary);
    transition: transform 0.2s ease;
}

details.faq-item[open] .faq-item__chevron {
    transform: rotate(180deg);
}

.faq-item__content {
    overflow: hidden;
    padding: 10px;
}

.faq-item__content p {
    padding: 0 18px 18px;
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.45;
    color: var(--text-1);
}

/* ===== Blazor Error Boundary ===== */
.blazor-error-boundary {
    background: var(--color-error);
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "Det har oppstatt en feil.";
}

.titleHeader {
    position: relative;
    display: inline-block;
    margin: 0 0 14px;
    padding: 0 0 10px;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 1.12rem + 0.8vw, 1.72rem);
    font-style: normal;
    font-weight: 600;
    line-height: 1.24;
    letter-spacing: -0.014em;
    text-wrap: balance;
}

.titleHeader::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 116px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #7a6bf4 100%);
}

.mainText {
    color: var(--text-1);
    text-align: left;
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.45;
}

.accordionHeader {
    color: var(--text-1);
    font-family: var(--font-body);
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.3;
}

.smallInfotext{
    color: var(--text-2);
    text-align: center;
    padding: 5px 0 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
}
