/* ==========================================================================
   By Solana — live font preview for WAPF personalisation (2026-10-14)
   Markup is injected by assets/js/font-preview.js:
     .bys-fp > .bys-fp__head (> .bys-fp__lab (> .bys-fp__lab-t + .bys-fp__note) + .bys-fp__font)
             + .bys-fp__stage > .bys-fp__text
   @font-face rules are printed inline by inc/font-preview.php (only for files that exist).
   ========================================================================== */
.bys-fp{
  --bys-fp-size:clamp(2rem,6.2vw,2.75rem);
  margin-top:12px;border:1px solid var(--line);background:var(--cream);
  padding:12px 16px 16px;position:relative;
}
.bys-fp__head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:6px}
.bys-fp__lab{font-size:.6rem;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);font-weight:500;flex:1 1 auto;min-width:0;line-height:1.4}
/* 2026-11-18: disclaimer after "Voorbeeld" — same colour, lighter, normal case. */
.bys-fp__note{text-transform:none;letter-spacing:.01em;font-size:.68rem;font-weight:400;opacity:.85}
.bys-fp__note:empty{display:none}
.bys-fp__note::before{content:"\00B7";display:inline-block;margin:0 .45em 0 .5em;font-weight:500}
.bys-fp__font{font-size:.72rem;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60%;flex:0 0 auto}
.bys-fp__stage{
  display:flex;align-items:center;justify-content:center;
  min-height:calc(var(--bys-fp-size) * 1.9);overflow:hidden;
}
.bys-fp__text{
  display:block;max-width:100%;text-align:center;color:var(--ink);
  font-family:var(--font-head);font-size:var(--bys-fp-size);line-height:1.25;
  white-space:pre-line;overflow-wrap:anywhere;
  padding:.1em .15em; /* room for script swashes */
  transition:opacity .2s var(--ease);
}
.bys-fp.is-empty .bys-fp__text{color:var(--muted);opacity:.75}
.bys-fp.is-nofont .bys-fp__text{font-style:italic}
.bys-fp.is-swapping .bys-fp__text{opacity:.35}
@media (max-width:520px){
  .bys-fp{padding:10px 12px 12px}
  .bys-fp{--bys-fp-size:clamp(1.75rem,9vw,2.4rem)}
  .bys-fp__head{gap:10px}
  .bys-fp__note{font-size:.64rem}
}

/* Font option swatches rendered in their own font (only when the font file exists: .bys-fp-opt). */
.bys-addons .wapf-swatch--text.bys-fp-opt{font-size:1.02rem;line-height:1.15;min-height:44px;padding:8px 14px;letter-spacing:0}
.bys-addons .wapf-field-input label.bys-fp-opt{font-size:1.02rem}
@media (max-width:520px){.bys-addons .wapf-swatch--text.bys-fp-opt{font-size:.98rem;padding:8px 12px}}
