:root {
    --navy: #0b1220;
    --navy-soft: #263247;
    --slate: #5b6573;
    --teal-dark: #087f71;
    --mint: #22c7a9;
    --warm-white: #f7f5f0;
    --border: #dfe2df;
}

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

html {
    scroll-behavior: smooth;
    /* Sikkerhedsnet: intet indhold må skabe vandret scroll. */
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--warm-white);
    color: var(--navy);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.inline-form { display: inline; margin: 0; }
.inline-form button { background: none; border: 0; cursor: pointer; font: inherit; }
.admin-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 2rem; }
textarea { display: block; width: min(100%, 36rem); min-height: 7rem; margin: .5rem 0 1rem; }

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 3px;
}

.shell {
    width: min(100% - 2.5rem, 76rem);
    margin-inline: auto;
}

.button {
    min-height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .8rem 1.15rem;
    border: 1px solid transparent;
    border-radius: .75rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--navy);
    color: white;
}

.button-primary:hover {
    background: var(--navy-soft);
    color: white;
}

.button-secondary {
    border-color: rgba(11, 18, 32, .18);
    background: rgba(255, 255, 255, .5);
    color: var(--navy);
}

.button-secondary:hover {
    border-color: var(--navy);
}

.button-mint {
    background: var(--mint);
    color: var(--navy);
}

.button-mint:hover {
    background: #48d5bd;
}

#blazor-error-ui {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1000;
    display: none;
    padding: 1rem 3rem 1rem 1rem;
    border-radius: .75rem;
    background: #9f2d2d;
    color: white;
    box-shadow: 0 .7rem 2rem rgba(11, 18, 32, .2);
}

#blazor-error-ui a {
    color: white;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: .75rem;
    right: 1rem;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }
}

@media (max-width: 540px) {
    .shell {
        width: min(100% - 1.5rem, 76rem);
    }
}
