/* Clubdossier signature: the clubhouse noticeboard.
 * 1. Year strip  .cd-year   : 12 month tabs, a pennant over the current month from --now (1-12).
 * 2. Month block .cd-month  : task list per month; the current month (aria-current="date") gets a yellow edge.
 * 3. Pinned note .cd-note   : paper card with a drawing pin, slight tilt, for "this month" and feature notes.
 * 4. Pictogram tile .cd-picto (icons/clubdossier/sprite.svg, white on club red).
 * 5. Hero with photo .cd-hero (<img>, brand-deep scrim, noticeboard card on the right).
 * Load after css/kit.css. Set --now on .cd-year (server side: current month number).
 */
.zs-nav a:hover, .zs-nav a[aria-current] { border-bottom-color: var(--zs-highlight); }  /* red on wood fails 3:1, yellow passes */

/* ---------- Pictogram tile ---------- */
.cd-picto { --picto-bg: var(--zs-picto); display: inline-grid; place-items: center; flex: none; width: 3rem; height: 3rem; background: var(--picto-bg); color: #fff; border-radius: 8px; }
.cd-picto svg { width: 80%; height: 80%; }
.cd-picto--sm { width: 2.1rem; height: 2.1rem; border-radius: 6px; }
.cd-picto--lg { width: 4.25rem; height: 4.25rem; border-radius: 10px; }
.cd-picto--wood { --picto-bg: var(--zs-brand); }
.cd-picto--green { --picto-bg: var(--cd-note-green); }

/* ---------- Pinned note ---------- */
.cd-note { position: relative; background: var(--cd-note); border: 1px solid var(--zs-line); border-radius: 2px; padding: 1.5rem 1.25rem 1.15rem; box-shadow: 0 2px 0 rgb(58 42 32 / .12), 0 10px 18px -12px rgb(58 42 32 / .5); color: var(--zs-ink); }
.cd-note::before { content: ""; position: absolute; top: -.55rem; left: 50%; width: 1.05rem; height: 1.05rem; margin-left: -.525rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e0584f 0 22%, var(--cd-pin) 24%); box-shadow: 0 2px 2px rgb(0 0 0 / .35); }
.cd-note--yellow { background: var(--cd-note-yellow); border-color: #e4c85a; }
.cd-note--tilt-l { transform: rotate(-1.2deg); }
.cd-note--tilt-r { transform: rotate(1deg); }
.cd-note h2, .cd-note h3 { font-size: 1.2rem; color: var(--zs-brand-text, var(--zs-brand)); margin-bottom: .5rem; }
.cd-note p { color: var(--zs-muted); margin-bottom: .6em; }
.cd-note--yellow p { color: var(--zs-ink); }
.cd-board { display: grid; gap: 1.6rem 1.2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding-top: .6rem; }
.cd-note__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.cd-note__list li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .6rem; align-items: baseline; font-size: .97rem; padding-bottom: .5rem; border-bottom: 1px dashed var(--zs-line); }
.cd-note__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.cd-note__list b { font-weight: 700; color: var(--zs-accent); font-variant-numeric: tabular-nums; }

/* ---------- Year strip with month tabs ---------- */
.cd-year { --now: 1; position: sticky; top: 0; z-index: 5; background: var(--zs-bg); border-bottom: 1px solid var(--zs-line); padding: 1.15rem 0 .5rem; }
.cd-year ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; }
.cd-year a { display: block; text-align: center; text-decoration: none; padding: .5rem 0 .45rem; font-weight: 700; font-size: .92rem; color: var(--zs-brand-text, var(--zs-brand)); background: var(--zs-surface-alt); border-radius: 6px 6px 0 0; border-bottom: 3px solid var(--zs-line); }
.cd-year a:hover { background: var(--zs-brand); color: var(--zs-on-brand); border-bottom-color: var(--zs-brand); }
.cd-year a[aria-current] { background: var(--zs-highlight); color: var(--zs-highlight-ink); border-bottom-color: var(--zs-accent); }
.cd-year a:focus-visible { outline: 3px solid var(--zs-accent); outline-offset: 2px; }
/* pennant: sits on the strip above the current month, position only from --now */
.cd-year ol::before { content: ""; position: absolute; top: -.95rem; left: calc((var(--now) - 1) * 100% / 12 + 100% / 24 - .5rem); width: 1rem; height: .8rem; background: var(--zs-accent); clip-path: polygon(0 0, 100% 0, 50% 100%); pointer-events: none; }
@media (max-width: 40rem) {
  .cd-year ol { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 4px; }
  .cd-year ol::before { display: none; }          /* two rows: the highlighted tab alone marks the month */
  .cd-year a { border-radius: 6px; }
}

/* ---------- Month blocks and task rows ---------- */
.cd-month { scroll-margin-top: 6.5rem; padding: 1.6rem 0 1.2rem; border-bottom: 1px solid var(--zs-line); }
.cd-month > h2 { display: flex; align-items: baseline; gap: .75rem; font-size: 1.6rem; margin-bottom: .8rem; }
.cd-month[aria-current] { border-left: 6px solid var(--zs-highlight); padding-left: 1rem; margin-left: -1.15rem; }
.cd-month[aria-current] > h2::after { content: "nu aan de beurt"; font: 700 .85rem/1 var(--zs-font-body); background: var(--zs-highlight); color: var(--zs-highlight-ink); padding: .3rem .55rem; border-radius: 3px; }
.cd-tasks { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .98rem; }
.cd-tasks th { text-align: left; font-size: .85rem; color: var(--zs-muted); font-weight: 700; padding: .35rem .6rem; border-bottom: 2px solid var(--zs-brand); }
.cd-tasks td { padding: .65rem .6rem; border-bottom: 1px solid var(--zs-line); vertical-align: top; }
.cd-tasks th:first-child, .cd-tasks td:first-child { width: 3.5rem; }
.cd-tasks th:nth-child(3), .cd-tasks td:nth-child(3) { width: 11rem; }
.cd-tasks th:nth-child(4), .cd-tasks td:nth-child(4) { width: 10rem; }
.cd-tasks strong { display: block; color: var(--zs-ink); }
.cd-tasks small { color: var(--zs-muted); }
.cd-role { display: inline-block; font-size: .8rem; font-weight: 700; background: var(--zs-surface-alt); color: var(--zs-brand-text, var(--zs-brand)); border-radius: 3px; padding: .15rem .5rem; white-space: nowrap; }
@media (max-width: 40rem) {
  .cd-tasks thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cd-tasks, .cd-tasks tbody, .cd-tasks tr, .cd-tasks td { display: block; }
  .cd-tasks tr { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .1rem .5rem; padding: .7rem 0; border-bottom: 1px solid var(--zs-line); }
  .cd-tasks td { border: 0; padding: 0; width: auto !important; }
  .cd-tasks td:first-child { grid-row: span 3; }
}

/* ---------- Hero with photo (<img>) ---------- */
.cd-hero { position: relative; isolation: isolate; background: var(--zs-brand-deep); color: var(--zs-on-brand); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem); overflow: hidden; }
.cd-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--cd-hero-focus, center); }
.cd-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(42 29 21 / .94) 0%, rgb(42 29 21 / .84) 48%, rgb(42 29 21 / .5) 100%); }
.cd-hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .cd-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 4rem; } }
.cd-hero h1 { color: #fff; font-size: clamp(2.2rem, 2.8vw + 1.3rem, 3.6rem); margin-bottom: .45em; }
.cd-hero__lead { font-size: 1.18rem; max-width: 34rem; color: var(--zs-on-brand); }
.cd-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.cd-hero .zs-btn--ghost { color: #fff; }
.cd-hero__fine { font-size: .92rem; opacity: .9; margin-top: 1rem; }
.cd-hero__credit { position: absolute; right: .75rem; bottom: .5rem; font-size: .72rem; color: #fff; opacity: .75; }
.cd-hero .cd-note { max-width: 26rem; justify-self: center; }
@media print { .cd-year { position: static; } .cd-note, .cd-picto { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .cd-note--tilt-l, .cd-note--tilt-r { transform: none; } }

/* ================= Dark mode (rule 8) =================
 * Tokens in themes/clubdossier.css. The yellow note and the pennant-yellow tab stay light in both modes,
 * so their text keeps the fixed dark-wood ink.
 */
.cd-note--yellow, .cd-note--yellow p, .cd-note--yellow h2, .cd-note--yellow h3 { color: #2b2118; }
.cd-note--yellow .cd-note__list b { color: #8f1d17; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cd-note { box-shadow: 0 2px 0 rgb(0 0 0 / .3), 0 10px 18px -12px rgb(0 0 0 / .7); }
  :root:not([data-theme="light"]) .cd-year a:hover { background: var(--zs-brand); color: var(--zs-on-brand); }
}
