:root {
    --liv-red: #e30613;
    --liv-red-dark: #a6000a;
    --liv-black: #050505;
    --liv-yellow: #ffe500;
    --ink: #171717;
    --muted: #5d6268;
    --line: #dadde2;
    --paper: #ffffff;
    --soft: #f4f7f8;
    --focus: #127c90;
}

.signup-body {
    background: #f2f2f2;
}

.signup-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.signup-shell {
    width: min(1040px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
}

.invite {
    display: flex;
    flex-direction: column;
    min-height: 690px;
    padding: clamp(28px, 5vw, 58px);
    color: #ffffff;
    background: var(--liv-red);
}

.brand-mark {
    margin-bottom: auto;
}

.brand-mark img {
    max-width: 260px;
    height: auto;
    display: block;
    background: #ffffff;
    border-radius: 4px;
    padding: 10px 12px;
}

.brand-mark strong {
    display: inline-block;
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
}

.eyebrow {
    width: fit-content;
    margin: 48px 0 18px;
    padding: 8px 11px;
    color: var(--liv-black);
    background: var(--liv-yellow);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.invite h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(42px, 6.6vw, 72px);
    line-height: 0.96;
    letter-spacing: 0;
}

.intro {
    max-width: 560px;
    margin: 24px 0 0;
    font-size: 20px;
    line-height: 1.42;
}

.invite-points {
    display: grid;
    gap: 10px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    font-weight: 700;
}

.invite-points li {
    position: relative;
    padding-left: 24px;
}

.invite-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 10px;
    height: 10px;
    background: var(--liv-yellow);
}

.signup-form {
    display: grid;
    align-content: center;
    gap: 17px;
    padding: clamp(24px, 4.4vw, 48px);
}

.form-heading h2 {
    margin: 0 0 4px;
    font-size: 31px;
    line-height: 1.08;
}

.form-heading p {
    margin: 0;
    color: var(--muted);
}

.signup-form label,
.signup-form summary {
    font-weight: 800;
}

.signup-form input {
    min-height: 52px;
    border: 2px solid #d5d5d5;
    border-radius: 4px;
}

.signup-form input:focus {
    border-color: var(--liv-red);
    outline: 3px solid rgba(227, 6, 19, 0.16);
}

.more-channels {
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 13px 15px;
    background: #fafafa;
}

.more-channels summary {
    cursor: pointer;
    color: var(--liv-red-dark);
}

.more-grid {
    display: grid;
    gap: 13px;
    margin-top: 14px;
}

.signup-form button {
    min-height: 56px;
    border-radius: 4px;
    font-size: 19px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: var(--liv-red-dark);
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.panel {
    width: min(760px, 100%);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(22px, 5vw, 44px);
    box-shadow: 0 18px 44px rgba(21, 32, 43, 0.12);
}

.brand {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
}

.brand img {
    max-width: 220px;
    height: auto;
}

.logo-text {
    color: var(--liv-red);
    font-size: 26px;
    font-weight: 800;
}

.brand p,
.lead {
    margin: 0;
    color: var(--muted);
}

h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 6vw, 46px);
    line-height: 1.06;
}

.form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.grid {
    display: grid;
    gap: 16px;
}

.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

label,
legend {
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 48px;
    margin-top: 7px;
    border: 1px solid #bfc6ce;
    border-radius: 6px;
    padding: 11px 13px;
    font: inherit;
    background: #ffffff;
}

input:focus {
    border-color: var(--focus);
    outline: 3px solid rgba(18, 124, 144, 0.18);
}

fieldset {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

legend {
    padding: 0 6px;
}

.social-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.check {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    font-weight: 600;
}

.check input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
    accent-color: var(--liv-red);
}

.check.small {
    min-width: 78px;
    align-items: center;
    padding-bottom: 14px;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border: 0;
    border-radius: 6px;
    padding: 13px 20px;
    color: #ffffff;
    background: var(--liv-red);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.button:hover {
    background: var(--liv-red-dark);
}

.secondary {
    color: var(--ink);
    background: #eef1f4;
}

.secondary:hover {
    background: #dde3e8;
}

.danger {
    width: 100%;
    color: #8a1010;
    background: #fff0f0;
    border: 1px solid #ffc6c6;
}

.danger:hover {
    color: #ffffff;
    background: #8a1010;
}

.danger-form {
    margin-top: 18px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.success p,
.notice {
    color: var(--muted);
}

.notice {
    border-left: 4px solid var(--liv-red);
    padding: 12px 14px;
    background: #fff7f7;
}

.errors {
    color: #8a1010;
}

.list-page {
    align-items: flex-start;
}

.people-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.embed-list-body {
    min-height: auto;
    background: transparent;
}

.embed-list-page {
    width: 100%;
}

.embed-list {
    width: 100%;
}

.embed-list .people-list {
    margin-top: 0;
}

.person-card {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.person-card h2 {
    margin: 0;
    font-size: 20px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border-radius: 6px;
    padding: 8px 11px;
    color: var(--ink);
    background: #eef1f4;
    font-weight: 700;
    text-decoration: none;
}

.social-links a:hover {
    background: #dde3e8;
}

code {
    border-radius: 4px;
    padding: 2px 5px;
    background: #eef1f4;
}

.liv-campaign-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: url('https://lakareivarlden.se/wp-content/uploads/2025/04/fredagsgavan.jpeg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.campaign-logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: auto;
}

.campaign-wrap {
    width: 100%;
}

.campaign-card {
    max-width: 450px;
    width: 90%;
    background: rgba(255, 255, 255, 0.7);
    margin: 6rem auto 2rem auto;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.campaign-headline {
    font-family: 'Anton', sans-serif;
    font-size: 2.35rem;
    line-height: 1.05;
    background-color: #1d1a55;
    color: white;
    padding: 0.5rem 1rem;
    margin: 0 auto 1rem auto;
    display: inline-block;
    text-transform: uppercase;
}

.campaign-description {
    font-size: 1rem;
    margin: 0 0 1.25rem;
}

.campaign-card input[type="email"],
.campaign-card input:not([type]) {
    padding: 0.5rem;
    font-size: 1rem;
    width: 100%;
    max-width: 250px;
    border-radius: 1rem;
    border: 1px solid #ccc;
    margin: 0 auto 0.5rem auto;
    display: block;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    background: #fff;
}

.campaign-card input:focus {
    border-color: #006aa5;
    outline: 3px solid rgba(0, 106, 165, 0.15);
}

.campaign-more {
    max-width: 250px;
    margin: 0.15rem auto 0.7rem;
    text-align: center;
}

.campaign-more summary {
    color: #1d1a55;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.campaign-more input {
    margin-top: 0.5rem !important;
}

.campaign-check {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    max-width: 300px;
    margin: 0.45rem auto;
    text-align: left;
    font-size: 0.78rem;
    line-height: 1.25;
}

.campaign-check input {
    flex: 0 0 auto;
    width: 15px;
    min-height: 15px;
    margin: 0.1rem 0 0;
    accent-color: #E9511C;
}

.campaign-check span {
    display: block;
}

.campaign-check a {
    color: #000;
    text-decoration: underline;
}

.campaign-btn {
    display: block;
    background-color: #E9511C;
    color: white;
    border: none;
    padding: 0.65rem;
    margin: 0.75rem auto 0.5rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    max-width: 250px;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}

.campaign-error {
    display: none;
    max-width: 300px;
    margin: 0.55rem auto 0;
    color: #b00020;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

.campaign-btn:hover {
    background-color: #006aa5;
}

.campaign-privacy {
    font-size: 0.60rem;
    margin-top: 1.2rem;
    opacity: 0.68;
}

.setup-results {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.setup-results h2 {
    margin: 12px 0 2px;
    font-size: 22px;
}

.setup-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(90px, 0.5fr) minmax(0, 1.2fr);
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 13px;
}

.debug-json {
    max-height: 420px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #f7f8fa;
    text-align: left;
    white-space: pre-wrap;
}

@media (max-width: 640px) {
    .page {
        align-items: stretch;
        padding: 0;
    }

    .panel {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .two,
    .social-row {
        grid-template-columns: 1fr;
    }

    .check.small {
        padding-bottom: 0;
    }

    .actions,
    .actions .button {
        width: 100%;
    }
}

@media (max-width: 820px) {
    .signup-page {
        padding: 0;
        place-items: stretch;
    }

    .signup-shell {
        grid-template-columns: 1fr;
        border-radius: 0;
        box-shadow: none;
    }

    .invite {
        min-height: auto;
        padding: 24px 22px 30px;
    }

    .brand-mark {
        margin-bottom: 0;
    }

    .brand-mark img {
        max-width: 210px;
    }

    .eyebrow {
        margin-top: 34px;
    }

    .invite h1 {
        font-size: 43px;
    }

    .intro {
        font-size: 18px;
    }

    .invite-points {
        display: none;
    }

    .signup-form {
        padding: 26px 22px 34px;
    }
}

@media (max-width: 520px) {
    .campaign-card {
        padding: 1.5rem;
    }

    .campaign-headline {
        font-size: 2rem;
    }
}
