/*
Theme Name: Ondernemersvereniging Philippine
Theme URI: https://www.ovphilippine.nl
Author: Ondernemersvereniging Philippine
Description: Custom theme for Ondernemersvereniging Philippine — homepage, over ons, onze leden, evenementen (incl. Philippine Proeft) and lid worden. Bilingual NL/EN via client-side toggle.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ovp
*/

/* ==========================================================================
   Philippine Proeft — stylesheet
   Design tokens live at the top as CSS custom properties.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  /* --- Color tokens (sampled from the brand logo) --- */
  --navy-950: #182634;
  --navy-900: #21374b;
  --navy: #2c4259;
  --navy-700: #3d5b78;
  --navy-500: #587a95;
  --peach: #f7cdb7;
  --peach-dark: #edb494;
  --peach-soft: #fbe6d9;
  --cream: #faf5ef;
  --cream-dim: #f2ebe1;
  --gold: #c8944e;
  --gold-deep: #8f6329; /* AA-contrast gold for text on light backgrounds */
  --ink: #23333f;
  --ink-soft: #526270;
  --line: rgba(35, 51, 63, 0.12);
  --line-on-navy: rgba(247, 205, 183, 0.25);

  /* --- Type --- */
  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Work Sans', 'Segoe UI', sans-serif;

  /* --- Layout --- */
  --max-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-s: 6px;
  --radius-m: 14px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

/* Bilingual server-rendered content (e.g. member descriptions): main.js sets
   <html lang="nl|en"> on language switch; these rules show/hide accordingly.
   Falls back to showing the Dutch version before JS has run. */
.lang-en { display: none; }
html[lang="en"] .lang-en { display: block; }
html[lang="en"] .lang-nl { display: none; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--navy-950);
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; max-width: 62ch; }
ul { padding: 0; margin: 0; list-style: none; }
button { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}
.section-cream { background: var(--cream); }
.section-dim { background: var(--cream-dim); }
.section-navy { background: var(--navy-950); color: var(--peach-soft); }
.section-navy h2, .section-navy h3 { color: var(--peach); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.section-head .kicker {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold-deep);
  margin-bottom: 0.6rem;
}
.section-navy .section-head .kicker { color: var(--gold); }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}
.section-head p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.section-navy .section-head p:last-child { color: rgba(251, 230, 217, 0.78); }

/* ==========================================================================
   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.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--peach);
  color: var(--navy-950);
}
.btn-primary:hover { background: var(--peach-dark); }

.btn-outline-light {
  background: transparent;
  color: var(--peach-soft);
  border-color: var(--line-on-navy);
}
.btn-outline-light:hover { border-color: var(--peach); background: rgba(247,205,183,0.08); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy-950);
  border-color: var(--line);
}
.btn-outline-dark:hover { border-color: var(--navy-950); }

.btn-ghost {
  background: transparent;
  color: var(--navy-950);
  padding: 0.6em 0.2em;
  border-radius: 0;
}
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 239, 0.88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--gutter);
  max-width: 1400px;
  margin: 0 auto;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy-950);
  min-width: 0;
  flex-shrink: 1;
}
.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 3px;
}
.brand-badge img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--peach);
  line-height: 1;
}
.brand-word {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.brand-word b { font-weight: 600; }
.brand-word span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--gold-deep);
  margin-top: 0.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--ink);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--navy-950); font-weight: 600; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); background: var(--navy-950); }

.nav-right { display: flex; align-items: center; gap: 0.9rem; }
.nav-links .nav-cta { display: none; }

.lang-switch {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--navy-950);
  color: var(--peach);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-950);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 880px) {
  .brand-word { font-size: 1.05rem; }
  .nav-right { gap: 0.6rem; }
  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--cream);
    padding: 1.5rem var(--gutter) 2rem;
    gap: 1.1rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle { display: block; }
  .nav-right .btn-primary { display: none; }
  .nav-links .nav-cta { display: block; border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 1.1rem; width: 100%; }
  .nav-links .nav-cta a { font-weight: 600; }
}

@media (max-width: 400px) {
  .nav { gap: 0.5rem; padding-left: 1rem; padding-right: 1rem; }
  .brand { gap: 0.4rem; }
  .brand-word { font-size: 1.05rem; }
  .brand-badge { width: 36px; height: 36px; }
  .lang-switch { padding: 2px; }
  .lang-switch button { padding: 0.28em 0.55em; font-size: 0.78rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy-950);
  color: var(--peach-soft);
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 9vw, 7rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--peach);
  border: 1px solid var(--line-on-navy);
  padding: 0.4em 0.9em 0.4em 0.6em;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  color: var(--cream);
  margin-bottom: 0.45em;
}
.hero h1 em {
  font-style: italic;
  color: var(--peach);
}
.hero-lede {
  font-size: 1.15rem;
  color: rgba(251, 230, 217, 0.82);
  max-width: 42ch;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.6rem;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
  border-top: 1px solid var(--line-on-navy);
  padding-top: 1.6rem;
}
.hero-fact { display: flex; gap: 0.75rem; align-items: flex-start; }
.hero-fact svg { flex-shrink: 0; margin-top: 3px; color: var(--gold); }
.hero-fact strong { display: block; color: var(--cream); font-size: 0.98rem; }
.hero-fact span { font-size: 0.88rem; color: rgba(251, 230, 217, 0.7); }

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg { width: 100%; height: auto; max-width: 460px; }
.hero-rays {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}
.hero-art > svg:not(.hero-rays) {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   About / intro
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
.about-figure {
  position: relative;
  background: var(--navy-950);
  border-radius: var(--radius-m);
  padding: clamp(2rem, 5vw, 3rem);
  color: var(--peach-soft);
  overflow: hidden;
}
.about-figure svg { width: 100%; height: auto; }
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--navy-950);
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  margin: 1.8rem 0;
  max-width: 40ch;
}
.organizer-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 2.2rem;
  padding: 1.4rem 1.6rem;
  background: var(--peach-soft);
  border-radius: var(--radius-m);
}
.organizer-card svg { flex-shrink: 0; margin-top: 3px; color: var(--gold-deep); }
.organizer-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.organizer-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0; }

/* ==========================================================================
   Program timeline
   ========================================================================== */
.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-on-navy);
}
.timeline-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line-on-navy);
}
.timeline-time {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--peach);
  padding-top: 0.1rem;
  line-height: 1;
}
.timeline-body h3 {
  color: var(--cream);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}
.timeline-body p { color: rgba(251, 230, 217, 0.75); margin-bottom: 0; }
.timeline-tag {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--navy-950);
  background: var(--peach);
  padding: 0.22em 0.7em;
  border-radius: 999px;
  font-weight: 600;
}

/* ==========================================================================
   Ticket "save the date" & notify cards
   ========================================================================== */
.tickets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* Ticket-stub card */
.order-slip {
  background: var(--cream);
  border: 1.5px dashed rgba(35, 51, 63, 0.28);
  border-radius: var(--radius-m);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  position: relative;
}
.order-slip::before,
.order-slip::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--cream);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
.order-slip::before { left: -14px; }
.order-slip::after { right: -14px; }
.order-slip h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.order-slip > p { color: var(--ink-soft); font-size: 0.92rem; }

.order-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 1rem;
}
.date-display {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--navy-950);
  margin: 1rem 0 0.3rem;
}
.slip-cta { margin-top: 1.4rem; }
.order-slip form { margin-top: 1.3rem; }
.field {
  margin-bottom: 0.9rem;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy-950);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.65em 0.8em;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--line);
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 5.5em; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-950); }
.form-status {
  font-size: 0.85rem;
  margin-top: 0.8rem;
  min-height: 1.2em;
}
.form-status.success { color: #2f6b4f; }
.form-status.error { color: #a4402c; }

/* ==========================================================================
   Practical / location + FAQ
   ========================================================================== */
.practical-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1.2rem;
}
.info-card h3 { font-size: 1.1rem; margin-bottom: 0.7rem; }
.info-list li {
  display: flex;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.info-list li:first-child { border-top: none; }
.info-list svg { flex-shrink: 0; margin-top: 3px; color: var(--gold); }

.faq-item {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--navy-950);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 0.8rem; color: var(--ink-soft); font-size: 0.95rem; }

/* ==========================================================================
   Page header (mini hero for interior pages)
   ========================================================================== */
.page-header {
  background: var(--navy-950);
  color: var(--peach-soft);
  padding: clamp(2.75rem, 6vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(251, 230, 217, 0.65);
  margin-bottom: 1.4rem;
}
.breadcrumb a { text-decoration: none; color: rgba(251, 230, 217, 0.85); }
.breadcrumb a:hover { color: var(--peach); }
.page-header .kicker {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.page-header h1 {
  color: var(--cream);
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  max-width: 24ch;
}
.page-header p {
  color: rgba(251, 230, 217, 0.8);
  font-size: 1.08rem;
  max-width: 52ch;
  margin-bottom: 0;
}
.page-header-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.page-header-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,38,52,0.88), rgba(24,38,52,0.82));
  z-index: -1;
}

/* ==========================================================================
   Feature grid ("wat we doen")
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(1.6rem, 3vw, 2.1rem);
}
.feature-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--peach-soft);
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0; }

/* ==========================================================================
   Event / featured cards
   ========================================================================== */
.event-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--navy-950);
  border-radius: var(--radius-m);
  padding: clamp(2rem, 5vw, 3.2rem);
  color: var(--peach-soft);
}
.event-feature .tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--navy-950);
  background: var(--peach);
  padding: 0.3em 0.8em;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 1rem;
}
.event-feature h2, .event-feature h3 { color: var(--cream); }
.event-feature .date { color: var(--gold); font-family: var(--font-display); font-style: italic; font-size: 1.1rem; margin-bottom: 0.6rem; display: block; }
.event-feature p { color: rgba(251, 230, 217, 0.8); }
.event-feature-art {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  background: linear-gradient(135deg, rgba(247,205,183,0.14), rgba(247,205,183,0.03));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.event-feature-art svg { width: 100%; max-width: 220px; height: auto; }
.event-feature-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-feature-art .event-feature-icon {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 64px;
  max-width: 64px;
  background: var(--navy-950);
  border-radius: 999px;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.event-list { display: grid; gap: 1.5rem; margin-top: 1rem; }
.event-more-card {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-m);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
}
.event-more-card h3 { font-size: 1.2rem; }
.event-more-card p { color: var(--ink-soft); margin: 0 auto 1.2rem; }

/* Event highlight cards */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1.8rem;
}
.highlight-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.5rem 1.7rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
a.highlight-card:hover {
  border-color: var(--navy-950);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(24,38,52,0.08);
}
.highlight-card .date {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-deep);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.highlight-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.highlight-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0; }

/* Year calendar table */
.calendar-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
  max-width: 65ch;
}
.calendar-table-wrap { overflow-x: auto; }
.calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.calendar-table th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-950);
  padding: 0.7rem 1rem;
  border-bottom: 2px solid var(--navy-950);
  white-space: nowrap;
}
.calendar-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.calendar-table tr:nth-child(odd) td { background: var(--cream-dim); }
.calendar-table td:first-child { white-space: nowrap; font-weight: 600; color: var(--navy-950); }

@media (max-width: 920px) {
  .highlight-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Articles
   ========================================================================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.article-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.article-card:hover {
  border-color: var(--navy-950);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(24,38,52,0.1);
}
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-card-body { padding: 1.5rem 1.7rem; }
.article-card .category-pill {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--gold-deep);
  background: var(--peach-soft);
  padding: 0.25em 0.7em;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.article-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.article-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.article-card .read-more { font-size: 0.85rem; font-weight: 600; color: var(--gold-deep); }

.article-body {
  max-width: 68ch;
  margin: 0 auto;
}
.article-body .pull-quote { max-width: none; }

/* Generic styling for normal WordPress block content (single.php) */
.article-body h2 { font-size: 1.5rem; margin-top: 2rem; }
.article-body h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.article-body p { margin-bottom: 1.2rem; }
.article-body img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  margin-bottom: 0.5rem;
}
.article-body figure { margin: 0 0 1.5rem; }
.article-body figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.5rem; }
.article-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--peach);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy-950);
}
.article-body blockquote p { margin-bottom: 0; }
.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.2rem; }
.article-body a { color: var(--gold-deep); text-decoration: underline; }
.article-single-thumb {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-m);
  margin-bottom: 2rem;
}
.article-photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  margin: 0 auto 2.5rem;
  max-width: 68ch;
}
.article-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-m);
}
.article-photo-grid .photo-stack { display: grid; gap: 1rem; }
.article-photo-inline {
  max-width: 68ch;
  margin: 2rem auto;
  border-radius: var(--radius-m);
  overflow: hidden;
}
.article-photo-inline img { width: 100%; display: block; }
.qa-list { margin-top: 2.5rem; }
.qa-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.qa-item:last-child { border-bottom: 1px solid var(--line); }
.qa-item .q {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy-950);
  margin-bottom: 0.6rem;
}
.qa-item .a {
  color: var(--ink-soft);
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--peach);
}

@media (max-width: 780px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-photo-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Member directory
   ========================================================================== */
.member-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--cream-dim);
  border-radius: var(--radius-s);
  padding: 0.8rem 1.1rem;
  margin-bottom: 2.2rem;
  max-width: 60ch;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}
.filter-pill {
  padding: 0.5em 1.1em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter-pill:hover { border-color: var(--navy-950); }
.filter-pill[aria-pressed="true"] {
  background: var(--navy-950);
  color: var(--peach);
  border-color: var(--navy-950);
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.member-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.5rem 1.7rem;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
a.member-card:hover {
  border-color: var(--navy-950);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(24,38,52,0.08);
}
.member-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--peach-soft);
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}
.member-card .category-pill {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--gold-deep);
  background: var(--peach-soft);
  padding: 0.25em 0.7em;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 0.7rem;
  margin-left: 0.5rem;
}
.member-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.member-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0; }
.member-card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-deep);
}

/* ==========================================================================
   Board & steps grids
   ========================================================================== */
.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 1.8rem;
}
.board-card {
  text-align: center;
  padding: 1.6rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-m);
}
.board-card .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--peach-soft);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.9rem;
}
.board-card strong { display: block; font-size: 0.95rem; }
.board-card span { font-size: 0.8rem; color: var(--ink-soft); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.6rem;
}
.step-card { padding-right: 1rem; }
.step-card .step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 0.4rem;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: var(--navy-950);
  border-radius: var(--radius-m);
  padding: clamp(2.2rem, 5vw, 3.4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-banner h2 { color: var(--cream); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.3rem; }
.cta-banner p { color: rgba(251, 230, 217, 0.8); margin-bottom: 0; }
.cta-banner-text { max-width: 40ch; }

@media (max-width: 920px) {
  .feature-grid { grid-template-columns: 1fr; }
  .event-feature { grid-template-columns: 1fr; }
  .event-feature-art { order: -1; max-width: 220px; margin: 0 auto; }
  .member-grid { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: rgba(251, 230, 217, 0.75);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-on-navy);
}
.footer-brand .brand-word { color: var(--cream); }
.footer-brand p { margin-top: 1rem; font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 {
  color: var(--cream);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.footer-col li { padding: 0.3rem 0; font-size: 0.92rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--peach); }
.footer-brand .lang-switch { border-color: var(--line-on-navy); }
.footer-brand .lang-switch button { color: rgba(251, 230, 217, 0.75); }
.footer-brand .lang-switch button[aria-pressed="true"] { background: var(--peach); color: var(--navy-950); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.82rem;
}
.footer-bottom .brand-badge { border-color: var(--line-on-navy); }

/* ==========================================================================
   Utility
   ========================================================================== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.center { text-align: center; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; margin: 0 auto; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .tickets-grid { grid-template-columns: 1fr; }
  .practical-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 5rem 1fr; }
}
