/* Anonymous /stand pages (Figma "Pilot 1.0 Sørlandssenteret"); loaded only via StandLayout. */

.stand-shell {
    --stand-navy: #002855;
    --stand-navy-dark: #001e40;
    --stand-heading: #002954;
    --stand-text: #001e40;
    --stand-subtle: #525150;
    --stand-tinted: #f6f8fc;
    --stand-chip: #dfeaff;
    --stand-input-border: #7f93aa;
    --stand-alert: #cc2b22;
    --stand-pink: #fc99d2;
    --stand-success-bg: #e2f4ef;
    --stand-success-text: #00594c;
    --stand-gutter: 24px;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--stand-tinted);
    color: var(--stand-text);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 24px;
}

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

.stand-shell a {
    color: inherit;
}

.stand-shell :is(button, a, input, textarea):focus-visible {
    outline: 2px solid var(--stand-pink);
    outline-offset: 2px;
}

/* FocusOnNavigate focuses the h1 on every load for screen readers; it is not interactive, so it never draws a ring. */
.stand-shell h1[tabindex="-1"]:focus {
    outline: none;
}

.stand-shell fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.stand-shell fieldset.stand-form-section {
    margin-top: 64px;
}

.stand-shell legend {
    padding: 0;
}

.stand-shell :is(button:not(:disabled), a[href], label) {
    cursor: pointer;
}

.stand-shell :is(button:not(:disabled), a.stand-button):active {
    transform: scale(0.98);
}

.stand-container {
    width: 100%;
    max-width: calc(1192px + 2 * var(--stand-gutter));
    margin: 0 auto;
    padding: 0 var(--stand-gutter);
}

.stand-main {
    flex: 1 0 auto;
}

/* Footer */

.stand-footer {
    flex: 0 0 auto;
    padding: 20px 0;
    background: var(--stand-navy-dark);
    color: #fff;
}

.stand-footer-brand {
    display: block;
    width: 40px;
    height: 40px;
}

/* Header */

/* Anchor jumps and focus scrolling land below the sticky header. */
html:has(.stand-shell) {
    scroll-padding-top: 78px;
}

/* app.css's body { overflow-x: hidden } makes body a scroll container that never scrolls, which disables sticky; clip doesn't. */
html:has(.stand-shell) body {
    overflow-x: clip;
    overflow-y: visible;
}

.stand-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
}

.stand-topbar-inner {
    height: 78px;
    display: flex;
    align-items: center;
}

.stand-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font: 500 18px/28px var(--font-ui);
    text-decoration: none;
}

.stand-brand-name {
    color: var(--stand-heading);
}

.stand-brand-divider {
    width: 1px;
    height: 20px;
    background: var(--stand-subtle);
}

.stand-brand-sub {
    color: var(--stand-subtle);
}

/* Gradient band + pink stripe under the header; the landing page makes it a hero. */

.stand-band {
    background: linear-gradient(180deg, #002855 0%, #0058bb 100%);
    border-bottom: 8px solid var(--stand-pink);
    min-height: 52px;
}

.stand-hero {
    min-height: 264px;
    display: flex;
    align-items: center;
    padding: 32px 0;
}

.stand-hero-eyebrow {
    margin: 0 0 8px;
    font: 500 18px/28px var(--font-ui);
    color: var(--stand-pink);
}

.stand-hero-title {
    margin: 0;
    font: 400 40px/48px var(--font-display);
    color: #fff;
}

/* Page headings */

.stand-page-head {
    padding-top: 64px;
}

.stand-centre-title {
    margin: 0 0 16px;
    font: 400 64px/72px var(--font-display);
    color: var(--stand-navy);
    overflow-wrap: anywhere;
}

.stand-section-title {
    margin: 0;
    font: 700 28px/32px var(--font-ui);
    color: var(--stand-navy);
}

.stand-lead {
    margin: 8px 0 0;
    font-style: italic;
    color: var(--stand-text);
}

.stand-subheading {
    margin: 0;
    font: 700 20px/28px var(--font-ui);
    color: #000;
}

.stand-hint {
    margin: 4px 0 0;
    font: italic 300 14px/24px var(--font-ui);
    color: #000;
}

.stand-divider {
    border: 0;
    border-top: 1px solid #7a7a7a;
    margin: 72px 0;
}

/* Resource cards */

.stand-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 367px));
    gap: 23px 29px;
    margin-top: 56px;
    padding: 0;
    list-style: none;
}

.stand-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 346px;
    border: 1px solid #000;
    background: var(--stand-tinted);
    text-decoration: none;
}

.stand-card-image {
    height: auto;
    display: block;
    width: 100%;
    aspect-ratio: 367 / 174.5;
    object-fit: cover;
    background: var(--stand-chip);
}

.stand-card-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 367 / 174.5;
    background: var(--stand-chip);
    color: var(--stand-navy);
}

.stand-card-body {
    padding: 23px 18px 24px;
}

.stand-card-location {
    margin: 0;
    font: 400 16px/19px var(--font-ui);
    color: var(--stand-subtle);
    text-transform: uppercase;
}

.stand-card-title {
    margin: 9px 0 20px;
    font: 700 24px/32px var(--font-ui);
    color: var(--stand-navy);
}

.stand-card:hover .stand-card-title {
    text-decoration: underline;
}

.stand-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stand-chip {
    display: inline-flex;
    align-items: center;
    min-width: 65px;
    height: 24px;
    padding: 0 12px 0 16px;
    border-radius: 32px;
    background: var(--stand-chip);
    font: 400 12px/1 var(--font-ui);
    color: var(--stand-navy);
    justify-content: center;
}

.stand-empty {
    margin-top: 32px;
}

/* Form */

.stand-form {
    max-width: 1011px;
    scroll-margin-top: 24px;
}

.stand-form-section {
    margin-top: 64px;
}

.stand-form-section > .stand-subheading + p {
    margin: 0;
    font-size: 14px;
}

.stand-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 335px));
    gap: 30px 65px;
    margin-top: 30px;
}

.stand-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 30px;
}

.stand-field-row .stand-field {
    margin-top: 0;
}

.stand-field.is-wide {
    max-width: 731px;
}

.stand-field.is-narrow {
    max-width: 335px;
}

.stand-label {
    display: inline-flex;
    gap: 4px;
    font: 500 16px/20px var(--font-ui);
    color: var(--stand-text);
}

.stand-required {
    color: var(--stand-alert);
}

.stand-input,
.stand-textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--stand-input-border);
    border-radius: 0;
    background: #fff;
    font: 400 16px/22px var(--font-ui);
    color: var(--stand-text);
}

.stand-phone {
    display: flex;
    gap: 8px;
}

.stand-phone-country {
    flex: none;
    width: auto;
}

select.stand-input {
    appearance: none;
    padding-right: 48px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M16.59 8.29492L12 12.8749L7.41 8.29492L6 9.70492L12 15.7049L18 9.70492L16.59 8.29492Z' fill='black'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 24px 24px;
}

.stand-select {
    max-width: 590px;
}

.stand-textarea {
    min-height: 160px;
    resize: vertical;
}

.stand-input::placeholder,
.stand-textarea::placeholder {
    color: var(--stand-text);
    opacity: 0.5;
}

.stand-input[aria-invalid="true"],
.stand-textarea[aria-invalid="true"] {
    border-color: var(--stand-alert);
}

input.stand-input:read-only {
    background: var(--stand-tinted);
}

.stand-field-error {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--stand-alert);
}

.stand-field-hint {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--stand-subtle);
}

.stand-suggestions {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--stand-input-border);
    border-top: 0;
    background: #fff;
}

.stand-suggestions button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: 0;
    background: none;
    font: inherit;
    text-align: left;
    color: var(--stand-text);
}

.stand-suggestions button:hover {
    background: var(--stand-chip);
}

.stand-suggestion-meta {
    display: block;
    font-size: 14px;
    color: var(--stand-subtle);
}

/* Checkboxes: drawn boxes with Material "check"; native input kept for semantics and focus. */

.stand-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 271px));
    gap: 32px 0;
    max-width: 813px;
    margin-top: 16px;
}

.stand-form-section > .stand-options {
    margin-top: 20px;
}

.stand-field.is-promote > .stand-options {
    row-gap: 45px;
}

.stand-form-section > .stand-subheading + p + .stand-field.is-promote {
    margin-top: 63px;
}

.stand-field.is-promote + .stand-field-row {
    margin-top: 60px;
}

/* Ends where the concept description below ends. */
.stand-field.is-promote > .stand-field {
    max-width: 731px;
}

.stand-options.is-two {
    grid-template-columns: repeat(2, minmax(0, 266px));
}

.stand-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    font: 400 16px/20px var(--font-ui);
    color: var(--stand-text);
}

.stand-check input {
    position: absolute;
    opacity: 0;
    width: 24px;
    height: 24px;
    margin: 0;
}

.stand-check-box {
    position: relative;
    flex: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--stand-navy);
    background: #fff;
    color: #fff;
}

.stand-check-box .material-symbols-outlined {
    position: absolute;
    inset: 0;
    font-size: 20px;
    visibility: hidden;
}

.stand-check input:checked + .stand-check-box {
    background: var(--stand-navy);
}

.stand-check input:checked + .stand-check-box .material-symbols-outlined {
    visibility: visible;
}

.stand-check input:focus-visible + .stand-check-box {
    outline: 2px solid var(--stand-pink);
    outline-offset: 2px;
}

.stand-check input:disabled + .stand-check-box {
    border-color: #bfc9d4;
}

.stand-check input:disabled ~ .stand-check-label {
    color: var(--stand-subtle);
}

.stand-check-label {
    padding-top: 2px;
}

.stand-consent {
    max-width: 806px;
    margin-top: 48px;
}

.stand-consent .stand-check {
    margin-top: 16px;
}

.stand-consent-note {
    margin: 24px 0 0 34px;
    font-size: 14px;
    line-height: 24px;
}

/* Period calendar */

.stand-calendar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 473px));
    gap: 65px;
    margin-top: 32px;
}

.stand-month-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 47px;
}

.stand-month-title {
    margin: 0;
    font: 700 20px/28px var(--font-ui);
    color: var(--stand-heading);
}

.stand-month-nav {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    color: var(--stand-navy);
}

.stand-month-nav:disabled {
    color: #bfc9d4;
}

.stand-month-nav.is-hidden {
    visibility: hidden;
}

.stand-month-nav-mobile {
    display: none;
}

.stand-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 18px 10px;
}

.stand-weekday {
    font: 400 20px/24px var(--font-ui);
    text-align: center;
    color: #000;
}

.stand-day {
    height: 57px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: #fff;
    font: 400 20px/24px var(--font-ui);
    color: #000;
}

.stand-day:disabled {
    background: none;
    color: var(--stand-subtle);
}

.stand-day.is-in-range {
    background: var(--stand-chip);
}

.stand-day.is-selected {
    background: var(--stand-navy-dark);
    color: #fff;
}

.stand-day:not(:disabled):not(.is-selected):hover {
    border-color: var(--stand-navy);
}

.stand-period-summary {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 38px 0 0 4px;
    font-size: 14px;
}

.stand-period-summary::before {
    content: "";
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--stand-navy-dark);
}

/* Attachments */

.stand-attach {
    margin-top: 24px;
}

.stand-attach-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    font: 400 16px/24px var(--font-ui);
    color: var(--stand-text);
}

.stand-attach-trigger .material-symbols-outlined {
    font-size: 20px;
    color: #840b55;
}

.stand-attach-trigger input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.stand-attach-trigger:focus-within {
    outline: 2px solid var(--stand-pink);
    outline-offset: 2px;
}

.stand-attach-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.stand-attach-item {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 335px;
    padding: 8px 12px;
    background: var(--stand-chip);
    font-size: 14px;
}

.stand-attach-item button {
    border: 0;
    background: none;
    color: var(--stand-navy);
    padding: 0;
    display: grid;
}

/* Buttons */

.stand-actions {
    display: flex;
    justify-content: center;
    max-width: 806px;
    margin: 64px 0 0;
}

.stand-shell .stand-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 56px;
    padding: 8px 24px;
    border: 2px solid #fff;
    background: var(--stand-navy);
    font: 400 20px/1 var(--font-ui);
    color: #fff;
    text-decoration: none;
}

.stand-shell .stand-button:hover:not(:disabled) {
    background: #284baf;
}

.stand-shell .stand-button:disabled {
    background: #bfc9d4;
}

.stand-form-error {
    max-width: 806px;
    margin: 24px 0 0;
    padding: 16px;
    border-left: 4px solid var(--stand-alert);
    background: #fff;
    color: var(--stand-alert);
}

.stand-recaptcha-note {
    max-width: 806px;
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 18px;
    color: var(--stand-subtle);
}

/* Notices */

.stand-notice {
    max-width: 806px;
    margin-top: 32px;
    padding: 24px;
    background: #effaff;
    color: var(--stand-text);
}

.stand-success {
    display: grid;
    grid-template-columns: 43px minmax(0, 755px);
    column-gap: 20px;
    margin-top: 56px;
    padding: 42px 58px 64px;
    background: var(--stand-success-bg);
}

/* Desktop puts the icon in its own column; mobile lays the head out as one row. */
.stand-success-head {
    display: contents;
}

.stand-success > p {
    grid-column: 2;
}

.stand-success-icon {
    font-size: 43px;
    color: var(--stand-success-text);
    font-variation-settings: "FILL" 1;
}

.stand-success-title {
    margin: 4px 0 16px;
    font: 700 20px/28px var(--font-ui);
    color: var(--stand-success-text);
}

.stand-success p {
    margin: 0 0 28px;
    font-size: 18px;
    line-height: 28px;
    color: #000;
}

.stand-success p:last-child {
    margin-bottom: 0;
}

/* Resource detail */

.stand-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    color: var(--stand-subtle);
}

.stand-breadcrumb a {
    text-decoration: none;
}

.stand-breadcrumb [aria-current="page"] {
    color: var(--stand-navy);
    text-decoration: underline;
}

.stand-breadcrumb .material-symbols-outlined {
    font-size: 12px;
}

.stand-detail-location {
    margin: 48px 0 0;
    font: 400 16px/19px var(--font-ui);
    color: var(--stand-subtle);
    text-transform: uppercase;
}

.stand-detail-title {
    margin: 0;
    padding: 24px 0;
    font: 400 40px/48px var(--font-display);
    color: var(--stand-navy);
}

.stand-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1013px) 186px;
    gap: 48px;
    align-items: start;
}

.stand-gallery-stage {
    position: relative;
}

.stand-gallery-main {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--stand-chip);
}

.stand-gallery-main img {
    height: auto;
    display: block;
    width: 100%;
    aspect-ratio: 1013 / 602;
    object-fit: cover;
}

.stand-gallery-counter {
    position: absolute;
    right: 32px;
    bottom: 32px;
    padding: 6px 16px;
    background: #2b2b2b;
    font: 400 18px/28px var(--font-ui);
    color: #fff;
}

.stand-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    color: #000;
}

.stand-shell .stand-gallery-arrow:not(:disabled):active {
    transform: translateY(-50%) scale(0.95);
}

.stand-gallery-arrow.is-prev {
    left: -48px;
}

.stand-gallery-arrow.is-next {
    right: -48px;
}

.stand-gallery-caption {
    margin: 16px 0 0;
}

.stand-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 23px;
    margin: 19px 0 0;
    padding: 0;
    list-style: none;
}

.stand-gallery-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 2px solid transparent;
    background: none;
}

.stand-gallery-thumb.is-active {
    border-color: var(--stand-navy);
}

.stand-gallery-thumb img {
    height: auto;
    display: block;
    width: 100%;
    aspect-ratio: 186 / 120;
    object-fit: cover;
}

.stand-gallery-all {
    display: block;
    margin-top: 23px;
    padding: 0;
    border: 0;
    background: none;
    font: 400 18px/28px var(--font-ui);
    color: #000;
    text-decoration: underline;
    text-align: center;
    width: 100%;
}

.stand-detail-info {
    margin-top: 48px;
    max-width: 806px;
}

.stand-detail-description {
    margin: 16px 0 0;
    white-space: pre-line;
}

.stand-detail-facilities {
    margin-top: 48px;
}

.stand-detail-facilities .stand-chips {
    margin-top: 16px;
}

.stand-request-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin: 48px 0 0;
    padding: 48px 64px;
    background: #dfe2f0;
}

.stand-request-banner-title {
    margin: 0;
    font: 700 20px/28px var(--font-ui);
    color: var(--stand-navy);
}

.stand-request-banner-text {
    margin: 16px 0 24px;
}

.stand-request-banner-plane {
    flex: 0 0 auto;
    width: 300px;
    height: auto;
}

.stand-other-title {
    margin: 0;
    font: 700 20px/28px var(--font-ui);
    color: #000;
}

.stand-other .stand-card-grid {
    margin-top: 24px;
}

.stand-section-end {
    padding-bottom: 72px;
}

/* Mobile only: sticks to the screen bottom until its own place in the page (above the form) scrolls into view. */
.stand-sticky-cta {
    display: none;
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin: 48px calc(-1 * var(--stand-gutter)) 0;
    padding: 32px var(--stand-gutter) 40px;
    background: #dfe2f0;
    text-align: center;
}

.stand-sticky-cta-title {
    margin: 0;
    font: 700 22px/28px var(--font-ui);
    color: var(--stand-navy);
}

.stand-sticky-cta-text {
    margin: 12px auto 0;
    max-width: 320px;
}

.stand-shell .stand-sticky-cta-button {
    min-height: 48px;
    margin-top: 20px;
    padding: 8px 28px;
    font-size: 16px;
}

/* Tablet */

@media (max-width: 1100px) {
    .stand-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stand-gallery {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .stand-gallery-arrow.is-prev {
        left: 8px;
    }

    .stand-gallery-arrow.is-next {
        right: 8px;
    }

    .stand-gallery-arrow {
        background: rgba(255, 255, 255, 0.85);
    }

    .stand-gallery-thumbs {
        flex-direction: row;
        overflow-x: auto;
        margin-top: 0;
        gap: 12px;
    }

    .stand-gallery-thumbs li {
        flex: 0 0 140px;
    }

    .stand-gallery-all {
        text-align: left;
        margin-top: 0;
    }

    .stand-calendar {
        grid-template-columns: minmax(0, 473px);
        gap: 40px;
    }
}

/* Mobile (Figma "Pilot 1.0 Sørlandssenteret_mobil", 414 wide) */

@media (max-width: 640px) {
    .stand-shell {
        --stand-gutter: 22px;
    }

    /* Body text drops to 14px; inputs stay 16px, or iOS Safari zooms the page on focus. */
    .stand-shell:not(.is-admin) {
        font-size: 14px;
        line-height: 20px;
    }

    .stand-shell:not(.is-admin) :is(.stand-label, .stand-check, .stand-attach-trigger, .stand-gallery-all, .stand-card-location, .stand-detail-location) {
        font-size: 14px;
        line-height: 20px;
    }

    html:has(.stand-shell) {
        scroll-padding-top: 72px;
    }

    .stand-topbar-inner {
        height: 72px;
    }

    .stand-band.stand-hero {
        min-height: 200px;
    }

    .stand-hero-title {
        font-size: 28px;
        line-height: 36px;
    }

    .stand-band:not(.stand-hero) {
        min-height: 44px;
    }

    .stand-page-head {
        padding-top: 40px;
    }

    .stand-centre-title {
        font-size: 40px;
        line-height: 48px;
    }

    .stand-section-title {
        font-size: 24px;
    }

    .stand-card-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        margin-top: 32px;
    }

    .stand-divider {
        margin: 48px 0;
    }

    .stand-field-row,
    .stand-options,
    .stand-options.is-two {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .stand-field.is-promote > .stand-options {
        row-gap: 16px;
    }

    .stand-form-section > .stand-subheading + p + .stand-field.is-promote {
        margin-top: 30px;
    }

    .stand-field.is-promote + .stand-field-row {
        margin-top: 30px;
    }

    .stand-field-row {
        gap: 24px;
    }

    .stand-month-head {
        margin-bottom: 24px;
    }

    .stand-month-secondary {
        display: none;
    }

    .stand-month-nav-mobile {
        display: grid;
    }

    .stand-month-nav.is-hidden:last-child {
        display: none;
    }

    .stand-month-grid {
        gap: 8px 6px;
    }

    .stand-weekday,
    .stand-day {
        font-size: 16px;
    }

    .stand-day {
        height: 44px;
    }

    .stand-actions {
        justify-content: stretch;
    }

    .stand-actions .stand-button {
        width: 100%;
    }

    .stand-sticky-cta {
        display: block;
    }

    /* At the page end the banner meets the page bottom, as in the design. */
    .stand-section-end > .stand-sticky-cta:last-child,
    .stand-other-wrap > .stand-sticky-cta:last-child {
        margin-bottom: -72px;
    }

    .stand-request-banner {
        display: none;
    }

    .stand-success {
        display: block;
        margin: 32px calc(-1 * var(--stand-gutter)) 0;
        padding: 52px 48px 72px;
    }

    .stand-success-head {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-bottom: 24px;
        white-space: nowrap;
    }

    .stand-success-icon {
        flex: none;
        font-size: 36px;
    }

    .stand-success-title {
        margin: 0;
    }

    .stand-detail-location {
        margin-top: 32px;
    }

    .stand-detail-title {
        font-size: 32px;
        line-height: 40px;
        padding: 8px 0 24px;
    }

    .stand-gallery-main img {
        aspect-ratio: 355 / 300;
    }

    .stand-lead br {
        display: none;
    }

    .stand-gallery-counter {
        right: 12px;
        bottom: 12px;
        font-size: 14px;
        padding: 2px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stand-shell :is(button, a):active {
        transform: none;
    }
}

/* "Mine henvendelser" under /stand/{slug}/admin (Figma p6FkugYLOVlTcb8ugy162Y); loaded via StandAdminLayout. */

.stand-admin-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
    font-size: 12px;
    line-height: 16px;
}

.stand-admin-nav-link {
    text-decoration: none;
}

.stand-admin-nav-link:hover {
    text-decoration: underline;
}

.stand-admin-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.stand-admin-user .material-symbols-outlined {
    font-size: 24px;
}

.stand-shell .stand-admin-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    min-height: 44px;
    padding: 0 20px;
    background: var(--stand-chip);
    font-size: 14px;
    text-decoration: none;
}

.stand-admin-menu {
    display: none;
    position: relative;
    margin-left: auto;
}

.stand-admin-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--stand-chip);
    font-size: 14px;
    list-style: none;
    cursor: pointer;
}

.stand-admin-menu-toggle::-webkit-details-marker {
    display: none;
}

.stand-admin-menu-toggle .material-symbols-outlined {
    font-size: 18px;
}

.stand-admin-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-width: 240px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(0 30 64 / 16%);
    font-size: 14px;
}

.stand-band.is-admin {
    min-height: 52px;
}

.stand-admin-page {
    padding-top: 56px;
    padding-bottom: 96px;
}

.stand-admin-head {
    margin-bottom: 56px;
}

.stand-admin-title {
    margin: 0;
    font: 700 28px/36px var(--font-ui);
    color: #000;
}

.stand-admin-lead {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 18px;
    color: #000;
}

.stand-admin-loading,
.stand-admin-empty {
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--stand-subtle);
}

.stand-shell .stand-admin-link-button {
    border: 0;
    background: none;
    padding: 0;
    color: var(--stand-navy);
    font: inherit;
    font-size: 14px;
    text-decoration: underline;
}

.stand-form-error .stand-admin-link-button {
    margin-left: 12px;
}

.stand-admin-section {
    max-width: 1000px;
    margin-top: 72px;
}

.stand-admin-section:first-of-type {
    margin-top: 0;
}

.stand-admin-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.stand-admin-section-title {
    margin: 0;
    font: 700 20px/28px var(--font-ui);
    color: #000;
}

/* Case list: a table of whole-row links on desktop, cards on mobile. */

.stand-case-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.stand-case-header,
.stand-case-row {
    display: grid;
    grid-template-columns: 27% 28% minmax(0, 1fr) 150px 24px;
    align-items: center;
    column-gap: 16px;
    padding: 0 32px 0 34px;
}

.stand-case-header {
    padding-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
    color: #000;
}

.stand-case-header .is-status {
    text-align: right;
}

.stand-shell .stand-case-row {
    min-height: 68px;
    background: #fff;
    border: 1px solid #e3e8ef;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.stand-shell .stand-case-row:hover {
    border-color: var(--stand-input-border);
}

.stand-case-location,
.stand-case-period-label {
    display: none;
}

.stand-case-ref {
    color: var(--stand-navy);
    text-decoration: underline;
}

.stand-case-actor {
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.stand-case-status {
    text-align: right;
}

.stand-case-period {
    white-space: nowrap;
}

.stand-case-chevron {
    font-size: 24px;
}

.stand-case-row.is-struck :is(.stand-case-actor, .stand-case-period) {
    text-decoration: line-through;
}

.stand-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    white-space: nowrap;
}

.stand-tag.is-new {
    background: #d6f2ff;
    color: var(--stand-heading);
}

.stand-tag.is-awaiting {
    background: #fee491;
    color: #6a3a00;
}

.stand-tag.is-approved {
    background: #bfe9b1;
    color: var(--stand-success-text);
}

.stand-tag.is-rejected {
    background: #f8c8c6;
    color: #651315;
}

.stand-tag.is-closed {
    background: #dfe4f3;
    color: var(--stand-heading);
}

.stand-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stand-shell .stand-filter-pill {
    min-width: 108px;
    min-height: 40px;
    padding: 0 20px;
    border: 0;
    border-radius: 20px;
    background: var(--stand-chip);
    color: var(--stand-navy-dark);
    font: 400 14px/1 var(--font-ui);
}

.stand-shell .stand-filter-pill.is-selected {
    background: var(--stand-navy);
    color: #fff;
}

/* Case page */

.stand-case-head {
    margin-top: 40px;
}

.stand-case-title {
    margin: 20px 0 0;
    font: 700 28px/36px var(--font-ui);
    color: #000;
}

.stand-case-section {
    max-width: 861px;
    margin-top: 56px;
}

/* Lines up with the status box content, as in the design; the dividers stay full width. */
.stand-case-section.is-indented {
    padding-inline: 40px;
}

.stand-case-section-title {
    margin: 0 0 24px;
    font: 700 24px/32px var(--font-ui);
    color: #000;
}

.stand-case-subheading {
    margin: 0 0 16px;
    font: 700 16px/24px var(--font-ui);
    color: #000;
}

.stand-case-divider {
    max-width: 861px;
    margin: 48px 0 0;
    border: 0;
    border-top: 1px solid #7a7a7a;
}

.stand-status-box {
    padding: 36px 40px 40px;
    background: #fff;
}

.stand-status-box .stand-case-subheading {
    margin-bottom: 12px;
}

.stand-status-lines {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 29px;
}

.stand-status-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 34px;
    margin-top: 28px;
}

.stand-shell .stand-admin-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 141px;
    min-height: 44px;
    padding: 12px 16px;
    border: 1px solid transparent;
    font: 400 16px/20px var(--font-ui);
    text-decoration: none;
}

.stand-shell .stand-admin-button:disabled {
    opacity: 0.5;
}

.stand-shell .stand-admin-button.is-primary {
    background: var(--stand-navy);
    color: #fff;
}

.stand-shell .stand-admin-button.is-danger {
    background: #840b55;
    color: #fff;
}

.stand-shell .stand-admin-button.is-secondary {
    background: var(--stand-chip);
    color: var(--stand-navy-dark);
}

.stand-facts {
    display: grid;
    grid-template-columns: 182px minmax(0, 1fr);
    gap: 16px 0;
    margin: 0;
    font-size: 14px;
    line-height: 20px;
}

.stand-facts dt {
    padding-right: 16px;
}

.stand-facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.stand-facts .is-gap {
    margin-top: 35px;
}

.stand-facts-line {
    display: block;
}

.stand-facts-line + .stand-facts-line {
    margin-top: 8px;
}

.stand-facts-multiline {
    white-space: pre-line;
}

.stand-file-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stand-shell .stand-file-tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 335px;
    max-width: 100%;
    min-height: 48px;
    padding: 0 16px;
    background: var(--stand-chip);
    color: var(--stand-text);
    text-decoration: none;
}

.stand-file-name {
    font-size: 12px;
    line-height: normal;
    overflow-wrap: anywhere;
}

.stand-shell .stand-file-tile:focus-visible {
    outline: 2px solid var(--stand-pink);
    outline-offset: 2px;
}

.stand-health-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    border-radius: 50%;
    vertical-align: -2px;
    background: #bfc9d4;
}

.stand-health-dot.is-very-good,
.stand-health-dot.is-good {
    background: #2b6e3f;
}

.stand-health-dot.is-satisfactory {
    background: #e2b100;
}

.stand-health-dot.is-weak,
.stand-health-dot.is-not-satisfactory {
    background: #c62828;
}

.stand-case-section > .stand-hint {
    margin-top: 16px;
}

.stand-case-section .stand-hint a.is-underlined {
    color: var(--stand-navy);
    text-decoration: underline;
}

.stand-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgb(0 30 64 / 45%);
}

.stand-dialog {
    width: min(564px, 100%);
    padding: 36px 40px;
    background: #fff;
}

.stand-dialog p {
    margin: 0;
    font-size: 14px;
}

.stand-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    margin-top: 24px;
}

@media (max-width: 860px) {
    .stand-admin-nav {
        display: none;
    }

    .stand-admin-menu {
        display: block;
    }
}

@media (max-width: 640px) {
    .stand-band.is-admin {
        min-height: 32px;
    }

    .stand-admin-page {
        padding-top: 40px;
    }

    .stand-admin-head {
        margin-bottom: 32px;
    }

    .stand-admin-section {
        margin-top: 48px;
    }

    .stand-case-header {
        display: none;
    }

    .stand-case-table {
        gap: 0;
        margin-left: calc(-1 * var(--stand-gutter));
        margin-right: calc(-1 * var(--stand-gutter));
    }

    .stand-shell .stand-case-row {
        grid-template-columns: minmax(0, 1fr) 24px;
        grid-template-areas:
            "location location"
            "ref ref"
            "period period"
            "status chevron";
        row-gap: 6px;
        padding: 20px var(--stand-gutter);
        border-width: 0 0 1px;
        font-size: 11px;
    }

    .stand-case-location {
        display: block;
        grid-area: location;
        text-transform: uppercase;
    }

    .stand-case-ref {
        grid-area: ref;
        color: inherit;
        text-decoration: none;
    }

    .stand-case-actor {
        display: none;
    }

    .stand-shell .stand-filter-pill {
        min-width: 0;
        min-height: 32px;
        padding: 0 14px;
    }

    .stand-case-period {
        grid-area: period;
        white-space: normal;
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    .stand-case-period-label {
        display: inline;
    }

    .stand-case-status {
        grid-area: status;
        margin-top: 12px;
        text-align: left;
    }

    .stand-case-chevron {
        grid-area: chevron;
        align-self: end;
    }

    .stand-status-box {
        padding: 36px 22px;
    }

    .stand-case-section.is-indented {
        padding-inline: 22px;
    }

    .stand-status-actions {
        gap: 16px;
    }

    .stand-facts {
        grid-template-columns: minmax(0, 164px) minmax(0, 1fr);
    }

    /* Long values (concept description, attachments) go full width under their label, as in the mobile design. */
    .stand-facts .is-stacked {
        grid-column: 1 / -1;
    }

    .stand-facts dd.is-stacked {
        margin-top: -6px;
    }

    .stand-shell .stand-file-tile {
        width: 100%;
    }

    .stand-dialog {
        padding: 28px 22px;
    }
}
