/* tokens.css */
/*
  Design tokens — read off the live mimamusic.nl template.css (fetched 2026-08-29)
  and the screenshots. SINGLE THEME BY INTENT: an all-black Joomla site on the
  Gavick GK5 "Theatre" template. No light/dark variants; every colour is painted
  explicitly so the page holds on any host ground.

  Whether to keep the black look / the display fonts is an OPEN OWNER DECISION
  (spec §15). Nothing here pre-empts that — change a token, the whole site follows.
*/
:root {
  --bg: #000000;
  --ink: #989898;              /* real site body copy: body { color: #989898 } */
  --ink-dim: #7e7e7e;
  --accent: #cb4752;           /* real template red — links + red headings */
  --accent-soft: #cb4752;
  --title-red: #cb4752;        /* linked section titles + links */
  --title-dim: #9a9a9a;        /* sub-page titles — live is #333 (invisible on black); lifted for legibility (spec D4) */
  --divider: #333333;          /* the two horizontal rules (real site: #1c1c1c) */
  --rule: #333333;

  --nav-top: #595959;
  --nav-bot: #3a3a3a;
  --nav-ink: #e8e8e8;

  --menu-bg: #ffffff;
  --menu-ink: #333333;
  --menu-hover: #ececec;

  --container: 1200px;         /* GK5 .container max-width, centred (margin: 0 auto) */
  --pad: 15px;
  --measure: 1170px;

  --font-script: "Henny Penny", "Comic Sans MS", cursive;        /* logo wordmark */
  --font-title: "Gabriela", Georgia, "Times New Roman", serif;   /* section titles */
  --font-body: Arial, Helvetica, "Helvetica Neue", sans-serif;   /* content text (real site body {}) */
}

/* base.css */
/* Reset-ish, document defaults, and a few accessibility helpers. */

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;                 /* real site: body { font-size: 14px; line-height: 20px } */
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }
a:hover { color: #e05a64; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.clearfix::after { content: ""; display: block; clear: both; }

/* visually hidden but available to screen readers / SEO */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* skip link — first focusable element, revealed on focus */
.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 200;
  background: #fff; color: #000;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: top 120ms ease;
}
.skip-link:focus { top: 8px; }

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

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .nav, .skip-link, .site-footer { display: none; }
  .site-header { padding: 0 0 12px; }
  .wordmark { color: #000; }
  a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; word-break: break-all; }
  .page { padding: 0; max-width: none; }
}

/* layout.css */
/* Page frame: header, the centred content column, footer.
   Everything aligns to the 1200px container's left inner edge (spec D5). */

.site-header {
  max-width: var(--container);
  margin: 0 auto;
  padding: 30px var(--pad) 16px;
  background: var(--bg);
}

.wordmark {
  display: inline-block;
  /* font + size come from :root vars base.njk writes from the owner's Pages CMS
     choice ("Logo-lettertype"); the fallbacks here are the original look. */
  font-family: var(--font-script);
  font-weight: var(--wordmark-weight, 400);
  font-size: clamp(38px, 6vw, var(--wordmark-size, 60px));
  line-height: 1;
  color: #ffffff;
  text-decoration: none;
  margin: 0;
  /* live site renders this as text, not an image */
}
.wordmark:hover { color: #ffffff; }

/* content column — no min-height on <main>: the live site lets the footer sit
   directly under the content (short pages just have black below it), so we do too */
.page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 78px var(--pad) 69px;   /* pad-bottom = live #content { padding-bottom: 69px } */
}
.art + .art { margin-top: 62px; }

.site-footer { border-top: 1px solid var(--divider); }   /* full-width divider rule #2 */
.foot-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 49px var(--pad) 40px;   /* pad-top = live .footer-wrapper-inner { padding-top: 49px } */
}
.badge-img { display: block; width: 84px; height: 84px; }
.copyright { margin: 16px 0 0; font-size: 12px; color: #8f8f8f; }   /* home page only, below the badge */

@media (max-width: 760px) {
  .page { padding-top: 52px; }
}

/* nav.css */
/* Primary navigation — grey gradient mega-menu bar (matches the live template).
   Desktop and mobile both show the bar; it wraps on narrow screens. Dropdowns
   (Koren, Workshop/les) open on hover / keyboard focus, CSS only. On touch, the
   parent link goes to its landing page, which lists the same children. */

.nav { border-top: 1px solid var(--divider); background: var(--bg); }   /* full-width divider rule #1 */
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  background: linear-gradient(var(--nav-top), var(--nav-bot));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.menu > li { position: relative; }

.nav-link {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  border-right: 1px solid rgba(0, 0, 0, 0.32);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nav-ink);
  text-decoration: none;
  padding: 15px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 120ms linear, color 120ms linear;
}
.menu > li:first-child .nav-link { border-left: 0; }
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.is-current > .nav-link {
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
  color: #fff;
}

.caret {
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.85;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  min-width: 250px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--menu-bg);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}
.submenu li { list-style: none; }
.has-sub:hover .submenu,
.has-sub:focus-within .submenu { display: block; }
.submenu a {
  display: block;
  padding: 15px 22px;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--menu-ink);
  text-decoration: none;
}
.submenu a:hover { background: var(--menu-hover); }
.submenu .arch { color: #8a8a8a; font-weight: 400; }

@media (max-width: 760px) {
  .nav-link { padding: 13px 13px; font-size: 10.5px; letter-spacing: 0.08em; }
}

/* content.css */
/* Section titles, body prose, and the photo layouts (home band, section band,
   stacks/pairs, floated side/portrait images, teasers). Values match the live
   template.css + the prototype's resolved layout (spec D2–D16). */

.page-title {
  /* live: bare <h*> -> h1..h6 { font-family:'Gabriela',serif; font-weight:400; line-height:1.5 } */
  font: 400 20px/1.5 "Gabriela", Georgia, "Times New Roman", serif;
  margin: 0 0 26px;
  text-wrap: balance;
}
.page-title.is-red { color: var(--title-red); }    /* linked category-landing titles */
.page-title.is-dim { color: var(--title-dim); }    /* sub-page titles (live #333, lifted for legibility — spec D4) */
.page-title a { color: inherit; text-decoration: none; }   /* an "Onderdeel" heading may link to a sub-page */
.page-title a:hover { text-decoration: underline; }

/* Arrangeren keeps the live site's inline heading quirk (spec D15 — flagged for
   the owner to confirm or normalise). Kept in CSS, not inline front matter, so
   the CMS can't touch it. */
.p-arrangeren .page-title { color: #ff0000; font-size: 14pt; }

.prose { max-width: var(--measure); }
.prose.is-narrow { max-width: 50%; }               /* Dwarsfluit "fluitist": text beside the floated photo */
.prose p { margin: 0 0 20px; }                     /* live: p { margin:0; padding:0 0 20px } */
.prose strong { font-weight: 700; color: var(--accent); }   /* live: .item_introtext strong { color:#cb4752 } */
.prose ul { margin: 0 0 1.15em; padding-left: 1.1em; }
.prose li { margin: 0.1em 0; }
.t-red { color: var(--accent-soft); }
.t-red-strong { color: var(--accent-soft); font-weight: 700; }
.addr span { display: block; }

.pending {
  color: #6f6f6f;
  font-size: 12px;
  font-style: italic;
  border-left: 2px solid #333;
  padding-left: 12px;
  margin: 0 0 1.15em;
}

/* ---------- baked photos: one <picture> per figure via {% image %} ---------- */
.ph {
  overflow: hidden;
  padding: 0;
  border: 1px solid #1c1c1c;
  background: #111;
}
.ph :is(img, picture) { display: block; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.contain { background: #f2f2f2; }
.ph.contain img { object-fit: contain; }

.ph-portrait { float: right; width: 244px; height: 264px; margin: 2px 0 16px 44px; }
.ph-side { float: right; width: 300px; height: 244px; margin: 2px 0 16px 44px; }
.ph-logo { width: 170px; height: 82px; margin-top: 20px; border: 0; }

.photo-stack { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.photo-stack .ph { width: min(400px, 100%); height: 208px; }
.photo-pair { display: flex; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.photo-pair .ph { flex: 0 1 212px; height: 152px; }

/* ---------- homepage: original Joomla 3-column category layout, lightly tuned ---------- */
#page-home .home-cols { display: flex; flex-wrap: wrap; justify-content: space-between; }
#page-home .home-col { flex: 0 0 auto; }
#page-home .home-col > .page-title:first-child { margin: 0 0 14px; }
#page-home .home-col p { margin: 0 0 16px; min-height: 80px; }
#page-home .home-figure { height: 240px; }
#page-home .hc-dir p, #page-home .hc-dir .home-figure { width: 270px; max-width: 100%; }
#page-home .hc-ond p, #page-home .hc-ond .home-figure { width: 427px; max-width: 100%; }   /* native 16:9, uncropped */
#page-home .hc-dwf p, #page-home .hc-dwf .home-figure { width: 270px; max-width: 100%; }
#page-home .hc-ond .home-figure img { object-fit: contain; }
#page-home .hc-dwf .home-figure img { object-position: center top; }   /* keep the face */

@media (max-width: 1040px) {
  #page-home .home-cols { flex-direction: column; flex-wrap: nowrap; }
  #page-home .home-col { margin-bottom: 34px; }
  #page-home .home-col p { min-height: 0; }
  #page-home .hc-dir p, #page-home .hc-ond p, #page-home .hc-dwf p,
  #page-home .hc-dir .home-figure, #page-home .hc-ond .home-figure, #page-home .hc-dwf .home-figure {
    width: 100%; max-width: 440px;
  }
  #page-home .home-figure { height: auto; }
  #page-home .hc-dir .home-figure, #page-home .hc-dwf .home-figure { aspect-ratio: 9 / 8; }
  #page-home .hc-ond .home-figure { aspect-ratio: 16 / 9; }
}

/* ---------- shared section-landing photo row (Koren, Onderwijs) ----------
   flex-grow ∝ each photo's aspect ratio (set inline), aspect-ratio locked ->
   equal heights, native proportions, whole row spans the menu-bar width. */
.photo-band { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin: 24px 0 4px; width: 100%; }
.photo-band .band-photo { min-width: 0; padding: 0; border: 0; background: none; }
.photo-band .band-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 620px) {
  .photo-band .band-photo { flex: 1 1 calc(50% - 5px) !important; }
}

/* ---------- section-landing teasers: full-width stacked blocks ---------- */
.teaser-grid { display: flex; flex-direction: column; gap: 54px; margin-top: 54px; }
.teaser { min-width: 0; }
.teaser-title { font: 400 20px/1.5 "Gabriela", Georgia, serif; color: var(--title-red); margin: 0 0 12px; }
.teaser-title a { color: inherit; text-decoration: none; }
.teaser-title a:hover { text-decoration: underline; }
.teaser p { margin: 0 0 20px; }
.teaser-img { width: 100%; max-width: 380px; margin-top: 14px; aspect-ratio: 275 / 183; border: 0; }

@media (max-width: 760px) {
  .ph-portrait, .ph-side { float: none; width: 100%; max-width: 280px; margin: 0 0 16px; }
  .prose.is-narrow { max-width: none; }
}

/* agenda.css */
/* Agenda page: heading + intro + the "Aankomende optredens" list, generated by
   the agendaList shortcode from _data/agenda.yaml. Single column, held to the
   normal text measure. (The old JEvents-style month grid was removed — the list
   is the whole agenda now.) */
.agenda-layout { margin-top: 4px; max-width: var(--measure); }
.agenda-layout .page-title { margin-bottom: 16px; }
.agenda-layout .prose { margin-bottom: 22px; }

.cal-empty { margin: 0; overflow-wrap: break-word; }

.cal-upcoming { list-style: none; margin: 0; padding: 0; }
.cal-upcoming li {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--divider);
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: normal;
}
.cal-upcoming li:last-child { border-bottom: 0; }
.cal-upcoming time { display: block; color: var(--accent); font-weight: 700; }
.cal-up-title { display: block; }
.cal-loc { display: block; color: var(--ink-dim); font-size: 0.92em; }
/* location carries a valid "Link" from the CMS -> clickable, but stays subdued */
.cal-loc a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cal-loc a:hover { color: var(--accent); }
