/* ---------- Design tokens ---------- */
:root {
  --navy: #1B2A4A;
  --navy-dark: #121d34;
  --navy-light: #2c4270;
  --gold: #E0A138;
  --gold-light: #f3c877;
  --cream: #FAF6EF;
  --cream-dark: #f0e9db;
  --ink: #232323;
  --muted: #6b7280;
  --line: #e7e1d3;
  --green: #3f7d5c;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 20px 50px rgba(27, 42, 74, 0.16);
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.muted { color: var(--muted); }
.icon { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy-dark); box-shadow: 0 6px 16px rgba(224, 161, 56, 0.35); }
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-invert { background: var(--navy-dark); color: #fff; }
.btn-invert:hover { background: var(--navy); }
.btn-sm { padding: 0.6em 1.2em; font-size: 0.85rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy); }
.brand-text small { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.06em; }
.brand-text.light strong { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { font-weight: 500; font-size: 0.95rem; color: var(--navy); position: relative; padding: 0.3em 0; }
.main-nav a.active, .main-nav a:hover { color: var(--gold); }
.main-nav a.nav-cta {
  background: var(--navy); color: #fff; padding: 0.55em 1.3em; border-radius: 999px;
}
.main-nav a.nav-cta:hover { background: var(--navy-light); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 5.5rem 0 6rem;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; }
.hero-pattern { position: absolute; inset: 0; opacity: 0.5; z-index: 1; pointer-events: none; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem;
  color: var(--gold-light); font-weight: 600; margin-bottom: 1em;
}
.hero h1 { color: #fff; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

.page-header {
  background: var(--navy);
  color: #fff;
  padding: 3.5rem 0 3rem;
}
.page-header h1 { color: #fff; }
.hero-sub-dark { color: rgba(255,255,255,0.8); max-width: 620px; font-size: 1.05rem; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-alt { background: var(--cream-dark); }
.section-head { max-width: 640px; margin-bottom: 1rem; }
.lead { font-size: 1.1rem; color: var(--ink); max-width: 720px; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.prose p { color: #3a3a3a; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(27,42,74,0.05);
}
.highlight-card { background: linear-gradient(135deg, #fff, var(--cream-dark)); border: 1px solid var(--line); }
.highlight-card.wide { text-align: center; padding: 3rem; }

.facilities-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.facility-card {
  background: #fff; border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow); text-align: left;
}
.facility-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--navy);
}
.facility-icon .icon { margin: 0; width: 22px; height: 22px; }

.club-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.club-list li { display: flex; align-items: center; gap: 0.6em; padding: 0.5em 0; border-bottom: 1px dashed var(--line); }
.club-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.link-arrow { font-weight: 600; color: var(--navy); }
.link-arrow:hover { color: var(--gold); }

.cta-band { background: var(--cream-dark); }
.cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }

/* ---------- Schedule / agenda ---------- */
.schedule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.schedule-card { position: relative; }
.badge {
  display: inline-block; background: var(--navy); color: #fff; font-size: 0.75rem;
  font-weight: 600; padding: 0.3em 0.9em; border-radius: 999px; margin-bottom: 0.8em;
}
.badge-gold { background: var(--gold); color: var(--navy-dark); }
.time-list { list-style: none; padding: 0; margin: 0.8em 0; }
.time-list li { display: flex; align-items: center; padding: 0.3em 0; color: #3a3a3a; font-size: 0.95rem; }
.card-contact { border-top: 1px solid var(--line); margin-top: 1em; padding-top: 1em; font-size: 0.9rem; }
.card-contact p { display: flex; align-items: center; margin: 0.3em 0; color: var(--muted); }

/* ---------- Tabs (cursussen) ---------- */
.tabs { display: flex; gap: 0.6rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.tab-btn {
  background: #fff; border: 1px solid var(--line); padding: 0.7em 1.6em; border-radius: 999px;
  font-weight: 600; cursor: pointer; color: var(--navy); font-size: 0.95rem;
}
.tab-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.course-card dl { margin: 1em 0; }
.course-card dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 0.7em; }
.course-card dd { margin: 0.15em 0 0; }
.price { font-weight: 700; color: var(--green); font-size: 1.05rem; }
.info-box { background: var(--cream-dark); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; }
.contact-line { margin: 0; }
.resource-list { padding-left: 1.2em; }

/* ---------- Location ---------- */
.address-card h3 { display: flex; align-items: center; }
.address { font-size: 1.05rem; font-weight: 600; }
.note { font-style: italic; color: var(--muted); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ---------- Results ---------- */
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.result-card {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; color: var(--navy); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.result-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.result-card.disabled { color: var(--muted); cursor: default; }
.result-card .arrow { color: var(--gold); font-size: 1.2rem; }
.result-card .soon { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; flex-direction: column; padding: 0.8em 0; border-bottom: 1px dashed var(--line); }
.contact-list a { color: var(--navy); font-size: 0.9rem; }
.form-card h2 { margin-bottom: 1rem; }
.stacked-form { display: flex; flex-direction: column; gap: 1.1rem; }
.stacked-form label { display: flex; flex-direction: column; gap: 0.4em; font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.stacked-form input, .stacked-form textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 0.7em 0.9em;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream);
}
.stacked-form input:focus, .stacked-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.alert { padding: 1em 1.2em; border-radius: var(--radius-sm); margin-bottom: 1rem; font-weight: 500; }
.alert-success { background: #e4f3ea; color: var(--green); border: 1px solid #bfe3cd; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8em; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer p { margin: 0.3em 0; font-size: 0.92rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
}
.admin-link { opacity: 0.6; }
.admin-link:hover { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
  .schedule-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); flex-direction: column; align-items: stretch;
    padding: 1rem 1.5rem 1.5rem; border-bottom: 1px solid var(--line);
    display: none; gap: 0.2rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.7em 0; }
  .main-nav a.nav-cta { text-align: center; margin-top: 0.5em; }
  .facilities-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 4rem; }
}

/* ---------- Photos ---------- */
.hero-slideshow { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-photo.is-active { opacity: 0.3; }
@media (prefers-reduced-motion: reduce) {
  .hero-photo { transition: none; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, rgba(18,29,52,0.94) 0%, rgba(18,29,52,0.72) 55%, rgba(18,29,52,0.45) 100%);
  pointer-events: none;
}
.hero-pattern { z-index: 2; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.photo-item { margin: 0; }
.photo-item-wide { grid-column: span 2; }
.photo-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-open img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-item-wide .photo-open img { aspect-ratio: 8 / 3; }
.photo-open:hover img,
.photo-open:focus-visible img { transform: scale(1.04); }
.photo-open:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.photo-tag {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  background: rgba(18, 29, 52, 0.85);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3em 0.75em;
  border-radius: 999px;
}
.photo-item figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.6rem;
  text-align: left;
}

/* A single photo used as a page illustration */
.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0;
}
.photo-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-frame figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.7rem 1rem;
  background: var(--white);
}

/* ---------- Lightbox ---------- */
body.no-scroll { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 16, 28, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; max-width: 1100px; width: 100%; }
.lightbox-figure img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox-figure figcaption {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  border-radius: 50%;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.12); }

.lightbox-nav {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-nav[hidden] { display: none; }
.lightbox-prev { margin-right: 1rem; }
.lightbox-next { margin-left: 1rem; }
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lightbox-count {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  .lightbox { padding: 1rem 0.5rem; }
  .lightbox-nav {
    position: absolute;
    bottom: 1.25rem;
    margin: 0;
    background: rgba(255, 255, 255, 0.16);
  }
  .lightbox-prev { left: 1.25rem; }
  .lightbox-next { right: 1.25rem; }
  .lightbox-figure figcaption { padding: 0 3.5rem; }
}

@media (max-width: 860px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-item-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-item-wide { grid-column: span 1; }
  .photo-item-wide .photo-open img { aspect-ratio: 4 / 3; }
}

.photo-more { margin-top: 1.75rem; }
.photo-more .link-arrow { font-weight: 600; }

/* ---------- Week grid & calendar ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.spaced { margin-top: 3rem; }
.grid-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.room-grid, .cal-grid {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.room-grid th, .cal-grid th {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 0.6rem;
  text-align: left;
}
.room-grid td, .cal-grid td {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  padding: 0.7rem 0.6rem;
  vertical-align: top;
}
.room-grid th[scope="row"] {
  background: var(--cream-dark);
  color: var(--navy);
  width: 6.5rem;
  border-top: 1px solid var(--line);
  border-left: none;
}
.room-grid td.empty { background: repeating-linear-gradient(135deg, transparent, transparent 7px, rgba(27,42,74,0.035) 7px, rgba(27,42,74,0.035) 14px); }
.room-entry {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0.25rem 0;
}
.room-entry + .room-entry { border-top: 1px dashed var(--line); }

.cal-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.cal-head h2 { margin: 0; }
.cal-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cal-grid td { height: 6.5rem; width: 14.28%; }
.cal-grid td.outside { background: var(--cream); color: var(--muted); }
.cal-grid td.today { background: rgba(224, 161, 56, 0.12); }
.cal-grid td.today .cal-daynum { background: var(--gold); color: var(--navy); border-radius: 999px; padding: 0 0.45em; }
.cal-daynum { display: inline-block; font-weight: 700; font-size: 0.85rem; color: var(--navy); margin-bottom: 0.35rem; }
.cal-event {
  display: block;
  font-size: 0.75rem;
  line-height: 1.35;
  background: var(--cream-dark);
  border-left: 3px solid var(--green);
  border-radius: 4px;
  padding: 0.2rem 0.35rem;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-time { font-weight: 700; color: var(--navy); margin-right: 0.3em; }

.cal-upcoming { list-style: none; padding: 0; margin: 1rem 0 0; }
.cal-upcoming li {
  display: grid;
  grid-template-columns: 3.5rem 3.5rem 1fr auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.cal-up-date { font-weight: 700; color: var(--navy); }
.cal-up-time { color: var(--muted); }
.cal-up-title { font-weight: 500; }
.cal-up-loc { color: var(--muted); font-size: 0.85rem; text-align: right; }

@media (max-width: 640px) {
  .cal-upcoming li { grid-template-columns: 3.2rem 3.2rem 1fr; }
  .cal-up-loc { grid-column: 1 / -1; text-align: left; }
}

/* ---------- News ---------- */
.container.narrow { max-width: 760px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-thumb { display: block; }
.news-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.35rem; }
.news-date {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 600; margin: 0;
}
.news-body h3 { margin: 0 0 0.25rem; }
.news-body h3 a { color: var(--navy); }
.news-body h3 a:hover { color: var(--gold); }
.news-body p { margin: 0 0 0.5rem; color: #3a3a3a; }
.news-body .link-arrow { margin-top: auto; }

/* Compact list used on the homepage */
.news-latest { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.news-latest article { border-left: 3px solid var(--gold); padding-left: 1rem; }
.news-latest h3 { font-size: 1.05rem; margin: 0.2rem 0 0.4rem; }
.news-latest h3 a { color: var(--navy); }
.news-latest h3 a:hover { color: var(--gold); }
.news-latest p { font-size: 0.95rem; color: #3a3a3a; }

/* News archive (posts from the old site) */
.archive-note { font-size: 0.9rem; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 1rem; margin-bottom: 2rem; }
.archive-year { margin: 2.5rem 0 0.75rem; }
.archive-list { list-style: none; padding: 0; margin: 0; }
.archive-list li { display: flex; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.archive-list .news-date { flex: 0 0 7.5rem; padding-top: 0.2rem; }
.archive-list a { color: var(--navy); }
.archive-list a:hover { color: var(--gold); }
@media (max-width: 560px) {
  .archive-list li { flex-direction: column; gap: 0.1rem; }
  .archive-list .news-date { flex: none; }
}

/* ---------- Berichten en pagina's uit blokken ---------- */
/* Overgenomen van damclubapeldoorn.nl, zodat beide sites een bericht hetzelfde
   tonen. De waarden voor maat en plaats staan in includes/html_filter.php. */

/* Een eigen afbeelding op een nieuwskaartje (vaak een flyer): niet bijsnijden,
   anders valt de tekst erop weg. */
.news-thumb-eigen { background: var(--cream-dark); }
.news-thumb-eigen img { aspect-ratio: 16 / 9; object-fit: contain; }

.article h2 { font-size: 1.5rem; margin: 2rem 0 0.8rem; }
.article h3 { font-size: 1.2rem; margin: 1.6rem 0 0.6rem; }
.article h4 { font-size: 1.05rem; margin: 1.4rem 0 0.5rem; }
.article p { margin: 0 0 1em; line-height: 1.7; }
.article a:not(.btn) { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 2px; }
.article a:not(.btn):hover { color: var(--gold); }
.article img { max-width: 100%; height: auto; border-radius: var(--radius-sm); display: block; margin: 1.2rem auto; }
.article blockquote { margin: 1.5rem 0; padding: 0.8rem 1.4rem; border-left: 4px solid var(--gold); background: var(--cream-dark); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.article table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: 0.93rem; }
.article th, .article td { padding: 0.5em 0.8em; border-bottom: 1px solid var(--line); text-align: left; }

.check-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.check-list li { position: relative; padding: 0.45em 0 0.45em 1.8em; border-bottom: 1px dashed var(--line); color: #3a3a3a; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.95em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
}

.embed-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: #fff; border: 1px solid var(--line);
}
.embed-frame iframe { display: block; width: 100%; border: 0; }

/* auto: een afbeelding met een maat maar zonder plaats staat in het midden, net als in de bewerker. */
.post-figure { margin: 2rem auto; }
.post-figure img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 auto; }
.post-figure > a { display: block; }
.post-figure figcaption { margin-top: 0.7em; font-size: 0.88rem; color: var(--muted); text-align: center; }
.post-quote {
  margin: 2rem 0; padding: 1.2rem 1.6rem; border-left: 4px solid var(--gold);
  background: var(--cream-dark); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: #3a3a3a;
}
.table-wrap { overflow-x: auto; margin: 1.8rem 0; }
.post-table { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
.post-table th, .post-table td { padding: 0.6em 0.9em; border-bottom: 1px solid var(--line); text-align: left; }
.post-table th { background: var(--cream-dark); font-family: var(--font-head); color: var(--navy); }
.post-audio { width: 100%; max-width: 420px; margin: 1.5rem 0; height: 40px; }
.post-embed { margin: 2rem 0; }

/* Tekst met opmaak uit de bewerker. Quill zet uitlijning in een klasse, dus
   zonder deze regels staat gecentreerde tekst gewoon links. */
.article .ql-align-center { text-align: center; }
.article .ql-align-right { text-align: right; }
.article .ql-align-justify { text-align: justify; }
.article ul:not(.check-list), .article ol:not(.check-list) { padding-left: 1.4em; margin: 1.2rem 0; }
.article ul li, .article ol li { margin: 0.3em 0; color: #3a3a3a; }
.article pre { background: var(--cream-dark); padding: 1rem 1.2rem; border-radius: var(--radius-sm); overflow-x: auto; font-size: 0.9rem; }

/* Maat en plaats: een deel van de tekstkolom, geen pixels, zodat het op een
   telefoon net zo uitkomt als op een groot scherm. */
img[data-grootte="klein"],  figure[data-grootte="klein"]  { width: 33%; }
img[data-grootte="middel"], figure[data-grootte="middel"] { width: 50%; }
img[data-grootte="groot"],  figure[data-grootte="groot"]  { width: 75%; }
img[data-grootte="vol"],    figure[data-grootte="vol"]    { width: 100%; }
figure[data-grootte] img { width: 100%; }

img[data-plaats="midden"], figure[data-plaats="midden"] { margin-left: auto; margin-right: auto; }
img[data-plaats="links"],  figure[data-plaats="links"]  { margin-left: 0; margin-right: auto; }
img[data-plaats="rechts"], figure[data-plaats="rechts"] { margin-left: auto; margin-right: 0; }
img[data-plaats="tekst-links"],  figure[data-plaats="tekst-links"]  { float: left;  margin: 0.4rem 1.6rem 1rem 0; }
img[data-plaats="tekst-rechts"], figure[data-plaats="tekst-rechts"] { float: right; margin: 0.4rem 0 1rem 1.6rem; }
/* Tekst ernaast zonder gekozen maat: dan niet de hele breedte, anders past er niets naast. */
img[data-plaats^="tekst-"]:not([data-grootte]),
figure[data-plaats^="tekst-"]:not([data-grootte]) { width: 40%; }

.rich-blok::after, .article::after { content: ""; display: table; clear: both; }

/* Op een telefoon is naast elkaar te krap: dan de afbeelding erboven, iets breder. */
@media (max-width: 600px) {
  img[data-plaats^="tekst-"], figure[data-plaats^="tekst-"] { float: none; margin: 1.2rem auto; }
  img[data-grootte="klein"],  figure[data-grootte="klein"],
  img[data-grootte="middel"], figure[data-grootte="middel"],
  img[data-plaats^="tekst-"]:not([data-grootte]),
  figure[data-plaats^="tekst-"]:not([data-grootte]) { width: 70%; }
}

/* Een nieuwe afbeelding begint onder een eerdere zwevende afbeelding. */
.post-figure, .rich-blok img { clear: both; }
.rich-blok:has(img[data-plaats^="tekst-"]) { clear: both; }
.beeld-met-tekst { clear: both; }
/* De figuur heeft zelf al marge; de afbeelding erin niet nog eens. */
.post-figure img { margin-top: 0; margin-bottom: 0; }

.post-video video {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); background: #000; box-shadow: var(--shadow);
}
/* Een iframe heeft geen eigen verhouding; het kader houdt hem 16:9 op elke breedte. */
.video-kader {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow);
}
.video-kader.staand { aspect-ratio: 9 / 16; max-width: 22rem; margin: 0 auto; }
.video-kader iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-geluid .post-audio { display: block; margin: 0; }
.post-geluid figcaption { text-align: left; max-width: 420px; }

.uitklap {
  clear: both; margin: 1.5rem 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.uitklap > summary {
  cursor: pointer; list-style: none; padding: 0.9rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 600; color: var(--navy);
}
.uitklap > summary::-webkit-details-marker { display: none; }
.uitklap > summary::after {
  content: ""; flex: none; width: 0.55rem; height: 0.55rem; margin-top: -0.25rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s;
}
.uitklap[open] > summary::after { transform: rotate(-135deg); margin-top: 0.25rem; }
.uitklap > summary:hover { color: var(--gold); }
.uitklap > summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: var(--radius-sm); }
.uitklap-inhoud { padding: 1rem 1.1rem 1.1rem; border-top: 1px solid var(--line); }
.uitklap-inhoud > :last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .uitklap > summary::after { transition: none; } }

/* Alleen te zien voor wie is ingelogd; moet opvallen, zodat niemand denkt dat het al openbaar is. */
.concept-melding {
  background: #fdf3ec; border: 1px solid #f0d2bf; color: #7a3d1c;
  border-radius: var(--radius-sm); padding: 0.8rem 1rem; margin: 0 0 1.5rem; font-size: 0.92rem;
}

/* ---------- Contactformulier ---------- */
.alert-error { background: #fdeceb; color: #a33; border: 1px solid #f3c9c6; }
.input-som { max-width: 7rem; }
/* Het lokveld voor spamscripts: buiten beeld, maar niet display:none, want
   dat herkennen slimmere scripts. */
.veld-verborgen { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Samenvatting op een nieuwskaartje: lijsten en vet blijven staan. */
.news-excerpt { color: #3a3a3a; font-size: 0.95rem; margin: 0 0 0.5rem; }
.news-excerpt p { margin: 0 0 0.5em; }
.news-excerpt ul, .news-excerpt ol { margin: 0 0 0.5em; padding-left: 1.2em; }
.news-excerpt li { margin: 0 0 0.15em; }
.news-excerpt > :last-child { margin-bottom: 0; }
