@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --ncd-paper: #ffffff;
    --ncd-ink: #3a1f3d;          /* deep purple — primary text */
    --ncd-ink-soft: #5b4860;     /* softened purple */
    --ncd-muted: #8a7790;        /* muted purple */
    --ncd-orange: #f36a2e;       /* brand orange */
    --ncd-orange-deep: #e15a22;
    --ncd-peach: #efe7df;        /* warm light surface */
    --ncd-peach-soft: #f7f1ea;
    --ncd-cream: #f5f1e8;        /* page cream */
    --ncd-cream-soft: #faf6ef;
    --ncd-lilac: #f0d7f2;
    --ncd-mist: #e8dee8;
}

.ncd-theme {
    font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    color: var(--ncd-ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ncd-theme .ncd-serif {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-style: normal;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.ncd-theme .ncd-serif--italic {
    font-style: italic;
}

/* Footer sits on the dark purple background — its base text/icons are white.
   Two-class specificity beats the .ncd-theme base colour so inherited text
   (headings, contact details, icons via currentColor) renders white. */
.ncd-theme.ncd-footer {
    color: #ffffff;
}

.ncd-theme .ncd-display {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.ncd-theme .ncd-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ncd-muted);
}

.ncd-theme .ncd-eyebrow--accent {
    color: var(--ncd-orange);
}

.ncd-theme .ncd-serif--upright {
    font-style: normal;
    font-weight: 400;
}

.ncd-theme .ncd-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ncd-theme .ncd-pill:hover {
    transform: translateY(-1px);
}

.ncd-theme .ncd-pill--ink {
    background: var(--ncd-ink);
    color: #fff;
}

.ncd-theme .ncd-pill--orange {
    background: var(--ncd-orange);
    color: #fff;
}

.ncd-theme .ncd-pill__arrow {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ncd-theme .ncd-pill--ink .ncd-pill__arrow {
    background: var(--ncd-orange);
    color: #fff;
}

.ncd-theme .ncd-pill--orange .ncd-pill__arrow {
    background: var(--ncd-ink);
    color: #fff;
}

.ncd-theme .ncd-pill__arrow--soft {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #fff;
}

.ncd-theme .ncd-card-peach {
    background: var(--ncd-peach);
    border-radius: 1.25rem;
}

.ncd-theme .ncd-card-cream {
    background: var(--ncd-cream-soft);
    border-radius: 1.25rem;
}

.ncd-theme .ncd-section-peach {
    background: linear-gradient(180deg, #fdeee2 0%, #fbe4d6 100%);
}

.ncd-theme .ncd-section-heading {
    isolation: isolate;
}

.ncd-theme .ncd-events-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ncd-ink-soft);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.ncd-theme .ncd-events-chip:hover {
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--ncd-ink);
}

.ncd-theme .ncd-events-chip.is-active {
    background: var(--ncd-ink);
    border-color: var(--ncd-ink);
    color: #fff;
}

.ncd-theme .ncd-events-search {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    min-width: 240px;
}

.ncd-theme .ncd-events-search:focus-within {
    border-color: var(--ncd-orange);
}

.ncd-theme .ncd-events-search input {
    flex: 1;
    min-width: 0;
}

.ncd-theme .ncd-events-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E")
        no-repeat right 0.875rem center / 10px 6px;
    border-radius: 9999px;
    padding: 0.5rem 2.25rem 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ncd-ink);
    cursor: pointer;
    min-width: 200px;
    outline: none;
    box-shadow: none;
}

.ncd-theme .ncd-events-select:focus,
.ncd-theme .ncd-events-select:focus-visible,
.ncd-theme .ncd-events-select:active {
    outline: none;
    box-shadow: none;
    border-color: var(--ncd-orange);
}

@media (max-width: 640px) {
    .ncd-theme .ncd-events-select {
        min-width: 0;
        width: 100%;
        flex: 1;
    }
    .ncd-theme .ncd-events-search {
        min-width: 0;
        width: 100%;
    }
    .ncd-theme .ncd-view-toggle {
        width: 100%;
    }
    .ncd-theme .ncd-view-toggle__btn {
        flex: 1;
        justify-content: center;
    }
}

/* ── Members-only event accent ─────────────────────────────────── */

.ncd-theme .ncd-event-members {
    border-left: 4px solid var(--ncd-orange);
}

/* ── View toggle (Lijst / Kalender) ────────────────────────────── */

.ncd-theme .ncd-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ncd-theme .ncd-view-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ncd-ink-soft);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ncd-theme .ncd-view-toggle__btn:hover {
    color: var(--ncd-ink);
    border-color: rgba(0, 0, 0, 0.18);
}

.ncd-theme .ncd-view-toggle__btn.is-active {
    background: var(--ncd-ink);
    border-color: var(--ncd-ink);
    color: #fff;
}

/* ── Calendar grid ────────────────────────────────────────────── */

.ncd-theme .ncd-cal-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    color: var(--ncd-ink);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.ncd-theme .ncd-cal-nav:hover {
    background: var(--ncd-peach-soft);
    border-color: var(--ncd-orange);
    color: var(--ncd-orange-deep);
}

.ncd-theme .ncd-cal-today {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ncd-ink-soft);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ncd-theme .ncd-cal-today:hover {
    color: var(--ncd-ink);
    border-color: rgba(0, 0, 0, 0.18);
}

.ncd-theme .ncd-cal-today.is-active {
    background: var(--ncd-ink);
    border-color: var(--ncd-ink);
    color: #fff;
}

.ncd-theme .ncd-cal-cell {
    position: relative;
    min-height: 120px;
    padding: 0.5rem 0.5rem 0.625rem;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}

.ncd-theme .ncd-cal-cell:nth-child(7n) {
    border-right: 0;
}

.ncd-theme .ncd-cal-cell--muted {
    background: #fafafa;
}

.ncd-theme .ncd-cal-cell--today {
    background: var(--ncd-peach-soft);
}

.ncd-theme .ncd-cal-cell--today > div:first-child > span:first-child {
    color: var(--ncd-orange-deep);
}

.ncd-theme .ncd-cal-chip {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.04);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--ncd-ink);
    text-decoration: none;
    line-height: 1.25;
    transition: background 0.15s ease;
}

.ncd-theme .ncd-cal-chip:hover {
    background: rgba(0, 0, 0, 0.08);
}

.ncd-theme .ncd-cal-chip--more {
    background: transparent;
    color: var(--ncd-orange);
    font-weight: 600;
    cursor: default;
}

.ncd-theme .ncd-cal-chip__dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 9999px;
}

.ncd-theme .ncd-cal-chip__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .ncd-theme .ncd-cal-cell {
        min-height: 56px;
        padding: 0.25rem 0.25rem 0.375rem;
    }
    .ncd-theme .ncd-cal-chip {
        padding: 0.125rem 0.25rem;
        font-size: 0.625rem;
    }
    .ncd-theme .ncd-cal-nav,
    .ncd-theme .ncd-cal-today {
        font-size: 0.8125rem;
    }
    .ncd-theme .ncd-cal-today {
        padding: 0.4rem 0.875rem;
    }
}

.ncd-theme .ncd-posts-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.ncd-theme .ncd-posts-sort__select {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E")
        no-repeat right 0 center / 10px 6px;
    padding: 0 1rem 0 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ncd-ink);
    cursor: pointer;
    line-height: 1.25;
}

.ncd-theme .ncd-posts-sort__select:focus {
    outline: none;
    color: var(--ncd-orange);
}

.ncd-theme .ncd-section-heading__glow {
    position: absolute;
    left: -180px;
    top: 50%;
    width: 540px;
    height: 540px;
    transform: translateY(-50%);
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(255, 107, 61, 0.22), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.ncd-theme .ncd-divider-soft {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@keyframes ncd-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes ncd-marquee-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.ncd-theme .ncd-marquee-track {
    animation: ncd-marquee 80s linear infinite;
}

.ncd-theme .ncd-marquee-track--reverse {
    animation: ncd-marquee-reverse 90s linear infinite;
}

.ncd-theme .ncd-marquee:hover .ncd-marquee-track,
.ncd-theme .ncd-marquee:hover .ncd-marquee-track--reverse {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .ncd-theme .ncd-marquee-track,
    .ncd-theme .ncd-marquee-track--reverse {
        animation: none;
    }
}

.ncd-theme .ncd-portrait {
    border-radius: 1.5rem;
    overflow: hidden;
    background: #1a1a1a;
}

.ncd-theme .ncd-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ncd-theme .ncd-perspective {
    perspective: 1400px;
}

.ncd-theme .ncd-perspective__inner {
    transform: rotateX(8deg);
    transform-origin: center top;
}

/* Bracelet carousel — 4 visible slides, subtle inside-curve from per-slide tilt */
.ncd-bracelet {
    position: relative;
    width: 100%;
    padding: 32px 0 40px;
    overflow: hidden;
}

.ncd-bracelet__swiper {
    overflow: visible;
}

.ncd-bracelet__slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ncd-bracelet__card {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
}

.ncd-bracelet__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Rich-text (WYSIWYG) field output — restores paragraph spacing, lists,
   links and inline formatting that Tailwind's preflight strips. */
.ncd-rich > :first-child {
    margin-top: 0;
}

.ncd-rich > :last-child {
    margin-bottom: 0;
}

.ncd-rich p {
    margin: 0 0 0.75em;
}

.ncd-rich a {
    color: #f36a2e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ncd-rich strong,
.ncd-rich b {
    font-weight: 600;
}

.ncd-rich em,
.ncd-rich i {
    font-style: italic;
}

.ncd-rich ul,
.ncd-rich ol {
    margin: 0 0 0.75em;
    padding-left: 1.25em;
}

.ncd-rich ul {
    list-style: disc;
}

.ncd-rich ol {
    list-style: decimal;
}

.ncd-rich li {
    margin: 0.25em 0;
}

.ncd-rich h1,
.ncd-rich h2,
.ncd-rich h3,
.ncd-rich h4 {
    font-weight: 600;
    margin: 0 0 0.5em;
}

.ncd-rich blockquote {
    margin: 0 0 0.75em;
    padding-left: 1em;
    border-left: 3px solid rgba(58, 31, 61, 0.2);
    font-style: italic;
}

/* Newsletter form (Sparkle Forms, embedded) restyled to the NCD footer look.
   Embedded mode is themed entirely through these CSS custom properties. */
.ncd-newsletter {
    --sf-input-bg: rgba(255, 255, 255, 0.05);
    --sf-input-border: rgba(255, 255, 255, 0.2);
    --sf-input-text: #ffffff;
    --sf-label: #ffffff;
    --sf-accent: #f36a2e;
    --sf-btn-bg: #6c3e6d;
    --sf-btn-text: #ffffff;
    --sf-btn-radius: 0.375rem;
}

/* Labels are conveyed via the placeholder here; keep them for screen readers only. */
.ncd-newsletter .sf-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ncd-newsletter .sf-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ncd-newsletter .sf-input:focus {
    outline: none;
    border-color: #f36a2e;
}

.ncd-newsletter form {
    padding: 0;
}

.ncd-newsletter .sf-form-grid {
    gap: 0.75rem !important;
}

.ncd-newsletter .pt-6 {
    padding-top: 0.75rem;
}

/* Submit button: full-width purple bar with text left, arrow right. */
.ncd-newsletter .sf-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
}

.ncd-newsletter .sf-btn::after {
    content: "→";
    font-size: 1.1rem;
    line-height: 1;
}

.ncd-newsletter .sf-btn:hover {
    --sf-btn-bg: #593359;
}

/* Page intro component — rotating badge text + container-aligned copy. */
@keyframes ncd-badge-spin-kf {
    to { transform: rotate(360deg); }
}

.ncd-badge-spin {
    animation: ncd-badge-spin-kf 18s linear infinite;
    transform-origin: center;
}

@media (prefers-reduced-motion: reduce) {
    .ncd-badge-spin { animation: none; }
}

/* From lg up, align the copy's left edge with the centered 1216px container. */
@media (min-width: 1024px) {
    .ncd-theme .ncd-intro-copy {
        padding-left: max(2rem, calc((100vw - 1216px) / 2 + 2rem));
    }
}
