@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --brand: #d04b3d;
    --brand-dark: #a83328;
    --brand-light: #e8756a;
    --brand-muted: #f5e8e6;
    --black: #1a1a1a;
    --gray-900: #2d2d2d;
    --gray-700: #555;
    --gray-500: #888;
    --gray-200: #e8e8e8;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(26, 26, 26, 0.08);
    --shadow-lg: 0 12px 40px rgba(26, 26, 26, 0.12);
    --radius: 8px;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }

.container {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}

/* Header & Nav */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--black);
    text-decoration: none;
    min-width: 0;
}

.brand:hover { color: var(--black); }

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 0.02em;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--gray-700);
    line-height: 1.3;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-links a {
    display: block;
    padding: 0.5rem 0.85rem;
    color: var(--gray-900);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--brand-muted);
    color: var(--brand);
}

.nav-links .btn-nav {
    background: var(--brand);
    color: var(--white) !important;
    margin-left: 0.25rem;
}

.nav-links .btn-nav:hover {
    background: var(--brand-dark);
    color: var(--white) !important;
}

.nav-logout-form {
    display: contents;
}

.nav-link-button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}

.nav-link-button:hover {
    background: var(--brand-muted);
    color: var(--brand);
}

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 1.25rem;
}

.manage-nav {
    background: var(--brand-dark);
    padding: 0.5rem 0;
}

.manage-nav .container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.manage-nav a {
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius);
}

.manage-nav a:hover,
.manage-nav a.active {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

/* Hero */
.hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: var(--black);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.55;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168,51,40,0.85) 0%, rgba(26,26,26,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding: 4rem 0;
    max-width: 700px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}

.btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--brand);
}

.btn-secondary {
    background: var(--white);
    color: var(--brand);
    border-color: var(--brand);
}

.btn-secondary:hover {
    background: var(--brand-muted);
}

.btn-danger {
    background: #c0392b;
    color: var(--white);
    border-color: #c0392b;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--brand-muted);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header p {
    color: var(--gray-700);
    max-width: 600px;
    margin: 0.5rem auto 0;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
}

.section-header-row h2 {
    margin: 0;
}

.home-news-empty {
    text-align: center;
    color: var(--gray-700);
}

.home-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.home-news-featured {
    height: 100%;
}

.home-news-featured:hover {
    transform: none;
}

.home-news-featured-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-200);
}

.home-news-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-news-featured:hover .home-news-featured-image img {
    transform: scale(1.03);
}

.home-news-featured .card-title {
    font-size: 1.6rem;
}

.home-news-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-news-side-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-news-side-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.home-news-side-image {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: calc(var(--radius) - 2px);
    overflow: hidden;
    background: var(--gray-200);
}

.home-news-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-news-side-body {
    min-width: 0;
}

.home-news-side-title {
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.3;
    margin: 0.35rem 0;
}

.home-news-side-title a {
    color: var(--black);
}

.home-news-side-title a:hover {
    color: var(--brand);
}

.home-news-side-excerpt {
    margin: 0;
    color: var(--gray-700);
    font-size: 0.85rem;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .home-news-grid {
        grid-template-columns: 1fr;
    }

    .home-news-featured .card-title {
        font-size: 1.35rem;
    }
}

@media (max-width: 540px) {
    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-news-side-item {
        grid-template-columns: 1fr;
    }

    .home-news-side-image {
        aspect-ratio: 16 / 9;
    }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    background: var(--gray-200);
}

.card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-title a { color: var(--black); }
.card-title a:hover { color: var(--brand); }

.card-excerpt {
    color: var(--gray-700);
    font-size: 0.9rem;
    flex: 1;
}

.card-footer {
    padding: 0 1.25rem 1.25rem;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    background: var(--brand-muted);
    color: var(--brand);
}

.badge-members {
    background: var(--black);
    color: var(--white);
}

/* Page hero (subpagina's) */
.page-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--black);
    overflow: hidden;
}

.page-hero .hero-bg {
    opacity: 0.42;
}

.hero-overlay-page {
    background: linear-gradient(
        155deg,
        rgba(168, 51, 40, 0.9) 0%,
        rgba(45, 45, 45, 0.65) 42%,
        rgba(26, 26, 26, 0.88) 100%
    );
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.25rem;
    background: linear-gradient(to bottom, transparent 0%, var(--white) 90%);
    z-index: 2;
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding: 3.75rem 0 4.25rem;
    max-width: 42rem;
}

.page-hero-inner h1 {
    color: var(--white);
    margin-bottom: 0.65rem;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.28);
}

.page-hero-subtitle {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

.page-hero-accent {
    width: 3rem;
    height: 2px;
    margin: 1.25rem auto 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    border-radius: 1px;
}

@media (min-width: 1024px) and (hover: hover) {
    .page-hero .hero-bg {
        background-attachment: fixed;
    }
}

.page-content {
    padding: 2rem 0 3rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(208,75,61,0.15);
}

textarea.form-control { min-height: 120px; resize: vertical; }

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 1.25rem 0 1.5rem;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.2rem;
    accent-color: var(--brand);
}

.form-check-label {
    display: block;
    font-weight: 400;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--gray-700);
}

.form-check-label a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-row-name {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr) minmax(0, 1.35fr);
}

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

.form-row .form-group {
    margin-bottom: 0;
}

.form-row + .form-group,
.form-row + .form-row,
.form-row-name + .form-group {
    margin-top: 0;
}

.auth-form .form-row,
.auth-form .form-row-name {
    margin-bottom: 1.25rem;
}

.form-error {
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* Auth */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--brand-muted);
}

.auth-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: min(100%, 480px);
}

.auth-card-wide {
    width: min(100%, 560px);
}

.auth-form .btn-block {
    width: 100%;
    margin-top: 0.25rem;
}

.auth-card h1 {
    text-align: center;
    color: var(--brand);
    margin-bottom: 0.5rem;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--gray-700);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Article */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content img { border-radius: var(--radius); margin: 1.5rem 0; }

.article-meta {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.prose h2, .prose h3 { margin-top: 2rem; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}
.prose figure {
    margin: 1.5rem 0;
}
.prose figcaption {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-align: center;
}
.prose iframe {
    max-width: 100%;
    border: 0;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    aspect-ratio: 16 / 9;
    width: 100%;
    min-height: 280px;
}

.legal-text .legal-meta {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.legal-text h2 {
    font-size: 1.15rem;
}

/* Event detail */
.event-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.event-sidebar {
    background: var(--brand-muted);
    padding: 1.5rem;
    border-radius: var(--radius);
    position: sticky;
    top: 100px;
}

.event-sidebar dl {
    margin: 0;
}

.event-sidebar dt {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-top: 1rem;
}

.event-sidebar dt:first-child { margin-top: 0; }

.event-sidebar dd {
    margin: 0.15rem 0 0;
    font-size: 1rem;
}

/* Board cards */
.board-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem;
}

.board-grid .board-card {
    flex: 0 1 calc((100% - 3.5rem) / 3);
    max-width: calc((100% - 3.5rem) / 3);
}

@media (max-width: 900px) {
    .board-grid .board-card {
        flex-basis: calc((100% - 1.75rem) / 2);
        max-width: calc((100% - 1.75rem) / 2);
    }
}

@media (max-width: 560px) {
    .board-grid .board-card {
        flex-basis: 100%;
        max-width: 100%;
    }
}

.board-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.board-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.board-card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
}

.board-card-body {
    padding: 0 1.5rem 1.75rem;
    text-align: center;
}

.board-card-photo-wrap {
    padding: 2rem 1.5rem 1rem;
}

.board-card-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 4px solid var(--brand-muted);
    background: var(--gray-200);
}

.board-card-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, var(--brand-muted), #f0e4e2);
    color: var(--brand);
    border: 4px solid var(--brand-muted);
}

.board-card-photo-placeholder svg {
    width: 3.5rem;
    height: 3.5rem;
    opacity: 0.85;
}

.board-card-photo-initials {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.board-year-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.board-year-label {
    font-weight: 600;
    color: var(--gray-700);
}

.board-year-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.board-year-link {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
}

.board-year-link.active,
.board-year-link:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--white);
}

.board-year-current {
    text-align: center;
    color: var(--gray-700);
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

.board-term-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.board-term-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    background: var(--white);
    font-weight: 600;
}

.board-term-tab.active,
.board-term-tab:hover {
    background: var(--brand-muted);
    border-color: var(--brand);
    color: var(--brand-dark);
}

.board-term-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--brand);
    color: var(--white);
    font-size: 0.75rem;
}

.board-term-create {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.board-term-create-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.board-term-create-row .form-control {
    max-width: 160px;
}

.board-term-delete {
    margin-top: 1rem;
}

.board-card-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    color: var(--black);
}

.board-card-role {
    color: var(--brand);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.board-card-bio {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin: 0;
    line-height: 1.55;
}

/* Content layout */
.content-narrow {
    max-width: 800px;
}

.content-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.content-box-intro {
    text-align: center;
    font-size: 1.05rem;
    color: var(--gray-700);
    border-left: 4px solid var(--brand);
}

.content-box-intro p { margin: 0; }

.content-box-muted {
    background: var(--brand-muted);
    box-shadow: none;
}

.content-box-cta {
    text-align: center;
}

.content-box-cta h2 { margin-bottom: 0.75rem; }

.content-box-danger {
    border: 1px solid #f5c6cb;
    background: #fffafa;
}

.page-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2.5rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-700);
}

.empty-state-icon {
    width: 80px;
    opacity: 0.35;
    margin: 0 auto 1rem;
}

.form-hint {
    display: block;
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-top: 0.35rem;
}

.settings-mail-list {
    margin: 1rem 0 1.25rem;
    padding-left: 1.25rem;
    color: var(--gray-700);
}

.settings-mail-list li {
    margin-bottom: 0.35rem;
}

.maintenance-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-muted);
    margin: 0;
}

.maintenance-page {
    max-width: 32rem;
    margin: 2rem;
    padding: 2.5rem 2rem;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.maintenance-logo {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto 1.5rem;
}

.maintenance-page h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.maintenance-message {
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.maintenance-hint {
    font-size: 0.9rem;
    margin: 0;
}

.field-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    margin-left: 0.35rem;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-600);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: help;
    vertical-align: middle;
}

/* Manage panels */
.manage-toolbar {
    margin-bottom: 1.5rem;
}

.admin-filter-form {
    margin-bottom: 0;
}

.admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.admin-filter-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.table-actions {
    white-space: nowrap;
}

.table-actions form {
    margin-right: 0.35rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.member-meta {
    margin: 1.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.member-meta dt {
    font-weight: 600;
    margin-top: 0.75rem;
}

.member-meta dd {
    margin: 0.25rem 0 0;
    color: var(--gray-700);
}

.admin-danger-zone {
    margin-top: 1.5rem;
    border: 1px solid #f5c2c7;
    background: #fff8f8;
}

.admin-danger-zone h3 {
    margin-top: 0;
}

.mail-template-editor {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
}

.pagination-meta {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.75rem;
}

.pagination .disabled {
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--gray-200);
    color: var(--gray-400);
    border-radius: var(--radius-sm);
}

.manage-panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
}

.manage-panel-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
    color: var(--black);
}

.manage-panel-desc {
    color: var(--gray-700);
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
}

.manage-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.manage-board-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.manage-board-preview {
    background: var(--brand-muted);
    padding: 1rem;
    pointer-events: none;
}

.manage-board-preview .board-card {
    box-shadow: none;
    max-width: 280px;
    margin: 0 auto;
}

.manage-board-form {
    padding: 1.25rem;
    border-top: 1px solid var(--gray-200);
}

.manage-board-actions {
    margin-top: 0.75rem;
}

.manage-board-delete {
    padding: 0 1.25rem 1.25rem;
}

/* Bootstrap pagination override */
.pagination .page-link {
    color: var(--brand);
    border-color: var(--gray-200);
    border-radius: var(--radius) !important;
    margin: 0 0.15rem;
}

.pagination .page-item.active .page-link {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--white);
}

.pagination .page-link:hover {
    background: var(--brand-muted);
    color: var(--brand-dark);
}

.pagination .page-item.disabled .page-link {
    color: var(--gray-500);
}

/* Table */
.table-wrapper { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

th {
    background: var(--brand-muted);
    font-weight: 600;
    font-size: 0.85rem;
}

tr:hover td { background: rgba(245,232,230,0.3); }

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.pagination .active span {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}

/* View toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.view-toggle a {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--gray-900);
}

.view-toggle a.active {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}

#calendar { background: var(--white); padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Footer */
.site-footer {
    background: var(--black);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-grid h4 {
    color: var(--white);
    font-family: var(--font-display);
    margin-bottom: 1rem;
}

.footer-grid a {
    color: rgba(255,255,255,0.7);
    display: block;
    padding: 0.2rem 0;
    font-size: 0.9rem;
}

.footer-grid a:hover { color: var(--brand-light); }

.footer-brand .footer-tagline {
    font-size: 0.9rem;
    margin: 0 0 1rem;
    color: rgba(255,255,255,0.7);
}

.footer-brand .footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer-brand .footer-social-link:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--brand-light);
    color: var(--white);
}

.footer-brand .footer-social-link svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    flex-shrink: 0;
}

.footer-brand .footer-social-link svg circle:last-child {
    fill: currentColor;
    stroke: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--black);
    color: var(--white);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: var(--max-width);
    margin: 0 auto;
    width: min(100% - 2rem, var(--max-width));
}

.cookie-inner p {
    margin: 0;
    font-size: 0.9rem;
    flex: 1;
    min-width: 200px;
}

.cookie-inner a { color: var(--brand-light); }

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card .number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--brand);
    font-weight: 700;
}

.stat-card .label {
    font-size: 0.85rem;
    color: var(--gray-700);
}

.log-stats-grid {
    margin-top: 1rem;
}

.log-context {
    font-size: 0.85rem;
    color: var(--gray-700);
    max-width: 280px;
}

.status-pending { color: #856404; }
.status-approved { color: #155724; }
.status-blocked { color: #721c24; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Photo albums */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

.album-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.album-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.album-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.album-card-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--gray-200);
    overflow: hidden;
}

.album-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.album-card-lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 26, 0.55);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.album-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.album-card-body h3 {
    margin-bottom: 0.35rem;
    font-size: 1.35rem;
}

.album-card-meta {
    margin: 0;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.album-card-locked .album-card-body h3 {
    color: var(--gray-700);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.photo-gallery-item {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-description {
    margin-bottom: 2rem;
}

.album-members-only {
    text-align: center;
}

.album-members-only h2 {
    margin-bottom: 0.75rem;
}

.admin-album-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius);
}

.album-dropzone {
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: var(--brand-muted);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.album-dropzone:hover,
.album-dropzone.is-dragover {
    border-color: var(--brand);
    background: #f9ebe9;
}

.album-dropzone.is-uploading {
    opacity: 0.65;
    pointer-events: none;
}

.album-dropzone-text {
    margin: 0;
    color: var(--gray-700);
}

.album-dropzone-link {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
}

.album-upload-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.album-upload-status.is-success {
    background: #d4edda;
    color: #155724;
}

.album-upload-status.is-error {
    background: #f8d7da;
    color: #721c24;
}

.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.admin-photo-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 0.75rem;
}

.admin-photo-thumb-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0.75rem;
    cursor: grab;
}

.admin-photo-thumb-wrap img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.admin-photo-cover-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--brand);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.admin-photo-caption-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.admin-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-photo-bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.admin-photo-select-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

.admin-photo-select {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.admin-photo-item.is-selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand-light);
}

.site-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 0.5rem 0;
    }

    .nav-links.open { display: flex; }

    .nav-links a { width: 100%; text-align: center; }

    .brand-tagline { display: none; }

    .hero { min-height: 320px; }

    .page-hero { min-height: 240px; }

    .page-hero-inner { padding: 2.75rem 0 3.25rem; }

    .page-hero-subtitle { font-size: 0.85rem; letter-spacing: 0.05em; }

    .event-detail-grid { grid-template-columns: 1fr; }

    .event-sidebar { position: static; }

    .auth-card { padding: 1.5rem; }

    .form-row-name,
    .form-row-compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .brand-name { font-size: 1.1rem; }
    .brand-logo { width: 42px; height: 42px; }
}
