/* ════════════════════════════════════════════════════════════════════════════
   AGENDA-FEITEN (Tom 06-12-2026) — "Wanneer" en "Waar" bovenaan een activiteit.
   Markup: Views/Site/Templates/_shared/_AgendaFeiten.cshtml. Keuze a/b/c in
   Agenda > Settings. Geladen via _Styles van beauty1 en business1.

   Kleuren komen uit de template: beauty1 heeft --bty-accent/--bty-atext,
   business1 --base-color. De ronding NIET hier: de klassen eindigen op "-card",
   dus de centrale regel in _SiteLayout geeft ze de kaart-ronding van de klant.
   Hieronder staat alleen een terugval voor een site zonder die regel.
   ══════════════════════════════════════════════════════════════════════════ */
.wf-af {
    --af-acc: var(--bty-accent, var(--base-color, #888));
    --af-ink: var(--bty-atext, var(--base-color, #555));
    --af-line: var(--bty-line, color-mix(in srgb, var(--dark-gray, #232323) 13%, transparent));
    --af-text: var(--dark-gray, #232323);
    --af-soft: var(--medium-gray, #717171);
    container-type: inline-size;
    margin: 0 0 clamp(28px, 3.4vw, 40px);
    max-width: 860px;
}
.wf-af-card, .wf-af-mini-card { border-radius: var(--wf-radius-card, 14px); }

/* Labels en waarden, gelijk voor alle drie */
.wf-af-l { display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; line-height: 1.8; color: var(--af-ink); }
.wf-af-w { display: block; font-size: 16.5px; line-height: 1.5; color: var(--af-text); }
.wf-af-w small { font-size: inherit; color: var(--af-soft); }
.wf-af-w a { color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--af-ink) 45%, transparent); transition: color .3s ease, border-color .3s ease; }
.wf-af-w a:hover { color: var(--af-ink); border-bottom-color: var(--af-ink); }
.wf-af-sep { margin: 0 .45em; color: color-mix(in srgb, var(--af-soft) 55%, transparent); }
.wf-af i { color: var(--af-ink); font-size: 18px; line-height: 1; }

/* ── a: één kaart, twee vakken met een haarlijn ertussen ─────────────────── */
.wf-af.-a .wf-af-card { display: grid; grid-template-columns: auto minmax(0, 1fr); border: 1px solid var(--af-line); }
.wf-af.-a.-solo .wf-af-card { grid-template-columns: minmax(0, 1fr); }
.wf-af-vak { display: flex; gap: 16px; align-items: flex-start; min-width: 0; padding: 22px 28px; }
.wf-af.-a .wf-af-vak + .wf-af-vak { border-left: 1px solid var(--af-line); }
.wf-af-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--af-acc) 22%, transparent); }

/* ── c: twee zachte kaartjes ─────────────────────────────────────────────── */
.wf-af.-c .wf-af-rij2 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
.wf-af.-c.-solo .wf-af-rij2 { grid-template-columns: minmax(0, 1fr); }
.wf-af.-c .wf-af-vak { background: color-mix(in srgb, var(--af-acc) 9%, transparent); border: 1px solid color-mix(in srgb, var(--af-acc) 30%, transparent); }
.wf-af.-c .wf-af-ico { width: auto; height: auto; background: none; padding-top: 4px; }
.wf-af.-c .wf-af-ico i { font-size: 21px; }

/* Op een breed vlak blijven datum en tijd op één regel (niet bij een reeks dagen: die is te lang). */
@container (min-width: 640px) {
    .wf-af.-a:not(.-lang) .wf-af-vak:first-child .wf-af-w,
    .wf-af.-c:not(.-lang) .wf-af-vak:first-child .wf-af-w { white-space: nowrap; }
}

/* ── b: kaart met datumblok ──────────────────────────────────────────────── */
.wf-af.-b .wf-af-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); border: 1px solid var(--af-line); overflow: hidden; }
.wf-af-dag { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 18px 10px; text-align: center; background: color-mix(in srgb, var(--af-acc) 18%, transparent); }
.wf-af-dag .m { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--af-ink); }
.wf-af-dag .d { font-size: 46px; font-weight: 300; line-height: 1.05; color: var(--af-text); }
.wf-af-dag .w { font-size: 12.5px; color: var(--af-soft); }
.wf-af-rijen { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.wf-af-rij { display: flex; gap: 14px; align-items: center; padding: 18px 28px; min-width: 0; }
.wf-af-rij + .wf-af-rij { border-top: 1px solid var(--af-line); }
.wf-af.-b .wf-af-rij .wf-af-l { display: inline; margin-right: 12px; }
.wf-af.-b .wf-af-rij .wf-af-w { display: inline; }

/* ── smal (telefoon, smalle kolom) ───────────────────────────────────────── */
@container (max-width: 560px) {
    .wf-af.-a .wf-af-card { grid-template-columns: minmax(0, 1fr); }
    .wf-af.-a .wf-af-vak + .wf-af-vak { border-left: 0; border-top: 1px solid var(--af-line); }
    .wf-af-vak { padding: 18px 20px; }
    .wf-af-w { font-size: 15.5px; }
    .wf-af.-c .wf-af-rij2 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .wf-af.-b .wf-af-card { grid-template-columns: 88px minmax(0, 1fr); }
    .wf-af-dag .d { font-size: 36px; }
    .wf-af-rij { padding: 14px 16px; align-items: flex-start; }
    .wf-af-rij > i { margin-top: 5px; }
    .wf-af.-b .wf-af-rij .wf-af-l { display: block; margin: 0; }
    .wf-af.-b .wf-af-rij .wf-af-w { display: block; }
}

/* ── donker ──────────────────────────────────────────────────────────────── */
[data-bs-theme="dark"] .wf-af { --af-line: rgba(255, 255, 255, .14); --af-text: #f2f0ec; --af-soft: rgba(255, 255, 255, .62); }
