/* SST Events */

/* Grid */
.sst-events-grid {
    display: grid;
    gap: 40px 32px;
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

.sst-events-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Card (editorial — ingen border, transparent baggrund) */
.sst-event-card {
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* Featured image */
.sst-event-image {
    display: block;
    position: relative;
    aspect-ratio: 4 / 5;
    width: 100%;
    background: #f3f4f6;
    overflow: hidden;
    margin-bottom: 20px;
}

.sst-event-image img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.sst-event-card:hover .sst-event-image img {
    transform: scale(1.04);
}

/* Body */
.sst-event-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Kategori (eyebrow over titel) */
.sst-event-meta {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #ba6f6e;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Title */
.sst-event-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 24px !important;
    font-weight: 600;
    color: #2a1f1f;
    margin: 0 0 12px 0 !important;
    line-height: 1.3 !important;
}

.sst-event-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sst-event-title a:hover {
    color: #ba6f6e;
}

/* Excerpt */
.sst-event-excerpt {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

/* Footer (dato + CTA) */
.sst-event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.sst-event-date {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #ba6f6e;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.4;
}

/* CTA — tekst-link med pil; kun "Se mere" er understreget */
.sst-event-cta {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #ba6f6e !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.sst-event-cta > span {
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.sst-event-cta:hover {
    color: #9a5856 !important;
}

/* No events */
.sst-events-none {
    font-family: 'Nunito Sans', sans-serif;
    color: #6b7280;
    text-align: center;
    padding: 40px 0;
}

/* Archive wrapper */
.sst-events-archive {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* Filter chips */
.sst-events-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.sst-filter-chip {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #ba6f6e;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.sst-filter-chip:hover {
    border-color: #ba6f6e;
    color: #ba6f6e;
}

.sst-filter-chip.is-active {
    background: #ba6f6e;
    border-color: #ba6f6e;
    color: #fff;
}

/* Måneds-grid (archive) */
.sst-months-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sst-month-card {
    background: #fff;
    border: 1px solid #f0e8e8;
    border-radius: 12px;
    padding: 32px 28px 24px;
    display: flex;
    flex-direction: column;
}

.sst-month-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 26px !important;
    font-weight: 400;
    font-style: italic;
    color: #ba6f6e;
    margin: 0 0 24px 0 !important;
    line-height: 1.2 !important;
}

.sst-month-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sst-month-event {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f5eded;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.sst-month-event:last-child {
    border-bottom: none;
}

.sst-month-event:hover {
    background: #faf5f5;
}

.sst-month-event-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 36px;
    line-height: 1.1;
}

.sst-month-event-day {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.sst-month-event-mon {
    font-size: 10px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sst-month-event-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sst-month-event-title {
    font-size: 15px;
    font-weight: 600;
    color: #2a1f1f;
    line-height: 1.3;
}

.sst-month-event-time {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
}

/* Single template */
.sst-single-event {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2a1f1f;
}

.sst-single-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #ba6f6e;
    text-decoration: none;
    margin-bottom: 32px;
}

.sst-single-back:hover {
    color: #9a5856;
}

.sst-single-header {
    margin-bottom: 32px;
}

.sst-single-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #ba6f6e;
    background: #f7eded;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.4;
    margin-bottom: 16px;
}

.sst-single-date-badge svg {
    flex-shrink: 0;
}

.sst-single-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px 0;
    color: #2a1f1f;
}

.sst-single-thumbnail {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
}

.sst-single-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 400px;
}

/* Details grid + kommende-datoer chips
   Let defensiv reset på descendants (margin/padding) for at undgå at temaer
   tilføjer vertical rhythm mellem label og value i card'et. Ikke !important
   nødvendig her — specifikke regler længere nede overtager via specificitet. */
.sst-single-details,
.sst-single-details *,
.sst-single-upcoming,
.sst-single-upcoming * {
    box-sizing: border-box;
}

.sst-single-details * {
    margin: 0;
}

/* Details card */
.sst-single-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    background: #faf5f5;
    border: 1px solid #f0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.sst-single-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 180px;
}

.sst-single-detail-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    line-height: 1.4;
}

.sst-single-detail-value {
    font-size: 15px;
    font-weight: 600;
    color: #2a1f1f;
    line-height: 1.4;
}

/* Kommende datoer */
.sst-single-upcoming {
    margin-bottom: 32px;
}

.sst-single-upcoming-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.4;
}

.sst-single-upcoming-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sst-single-upcoming-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #2a1f1f;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
    line-height: 1.4;
}

.sst-single-upcoming-link:hover {
    border-color: #ba6f6e;
    color: #ba6f6e;
}

.sst-single-upcoming-link svg {
    color: #ba6f6e;
    flex-shrink: 0;
}

/* Content */
.sst-single-content {
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
}

.sst-single-content p {
    margin: 0 0 16px 0;
}

/* Tilmelding / signup form */
.sst-signup {
    margin-top: 40px;
    padding: 32px;
    background: #faf5f5;
    border: 1px solid #f0e0e0;
    border-radius: 12px;
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

/* Nuker tema-injected margin på form-descendants; spacing styres af flex gap.
   !important bibeholdes her fordi mange temaer bruger !important på fx
   form label { margin-bottom: X } og form input { margin: X }. */
.sst-signup .sst-signup-form,
.sst-signup .sst-signup-form * {
    margin: 0 !important;
}

/* Skjulte inputs må ikke tvinges synlige via brede form input { display: block } regler */
.sst-signup input[type="hidden"] {
    display: none !important;
}

.sst-signup-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.sst-signup-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    color: #2a1f1f;
    line-height: 1.2;
}

.sst-signup-status {
    font-size: 11px;
    font-weight: 700;
    color: #ba6f6e;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.4;
}

.sst-signup-status.is-full {
    color: #b91c1c;
}

.sst-signup-flash {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.sst-signup-success {
    background: #f0f7ed;
    border: 1px solid #c5dbb6;
    color: #3f6028;
}

.sst-signup-error {
    background: #fbeaea;
    border: 1px solid #e9c2c1;
    color: #8a2a2a;
}

.sst-signup-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Honeypot — fjernes visuelt */
.sst-signup-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sst-signup-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sst-signup-form label,
.sst-signup-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    line-height: 1.4;
}

.sst-signup-field-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    line-height: 1.4;
}

.sst-signup-form input[type="text"],
.sst-signup-form input[type="email"],
.sst-signup-form input[type="tel"],
.sst-signup-form input[type="number"],
.sst-signup-form textarea {
    font-family: inherit;
    font-size: 15px;
    color: #2a1f1f;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    line-height: 1.5;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Fjern browser-spinners på number input så det matcher øvrige felter */
.sst-signup-form input[type="number"]::-webkit-outer-spin-button,
.sst-signup-form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sst-signup-form input:focus,
.sst-signup-form textarea:focus {
    outline: none;
    border-color: #ba6f6e;
    box-shadow: 0 0 0 3px rgba(186, 111, 110, 0.15);
}

.sst-signup-form textarea {
    resize: vertical;
    min-height: 80px;
}

.sst-signup-submit {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    background: #ba6f6e;
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    cursor: pointer;
    transition: background 0.15s ease;
    align-self: flex-start;
    margin-top: 6px;
    line-height: 1;
}

.sst-signup-submit:hover {
    background: #9a5856;
}

.sst-signup-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(186, 111, 110, 0.3);
}

/* Afmeld-bekræftelse */
.sst-signup-cancel-intro {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 20px 0;
}

.sst-signup-cancel-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sst-signup-submit-danger {
    background: #b91c1c;
}

.sst-signup-submit-danger:hover {
    background: #991717;
}

.sst-signup-submit-danger:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.25);
}

.sst-signup .sst-signup-cancel-back {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sst-signup .sst-signup-cancel-back:hover {
    color: #2a1f1f;
}

/* Responsive */
@media (max-width: 900px) {
    .sst-events-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sst-months-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sst-single-title {
        font-size: 28px;
    }

    .sst-single-details {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .sst-events-grid-3 {
        grid-template-columns: 1fr;
    }

    .sst-events-grid {
        gap: 48px;
    }

    .sst-months-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sst-month-card {
        padding: 24px 20px 20px;
    }
}

@media (max-width: 600px) {
    .sst-signup {
        padding: 24px 20px;
    }

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

@media (max-width: 480px) {
    .sst-single-details {
        grid-template-columns: 1fr;
    }
}
