/* ── Адаптер профилей: BlockGuard ──────────────────────────
   Ядро осей — design-profiles.css. Стили страниц лежат инлайн
   в <style> каждой из трёх, геометрия задана литералами,
   поэтому профиль перекрывает её у списка ключевых элементов.

   :where() держит специфичность нулевой — точечные правила
   страниц продолжают побеждать там, где скругление осмысленно
   (индикатор live, круглые значки).

   По карте обликов монитору курсов подходит «Табло»: заходят
   за одним числом, и оно должно читаться с расстояния. */

:root:root[data-profile] body {
  font-family: var(--pf-font);
}

:root:root[data-profile] :where(
  .card, .hcard, .tab, .ctl, .chartwrap, .events,
  input, select, textarea, button
) {
  border-radius: var(--pf-radius);
}

/* Курс и уровни — шрифт чисел из профиля. В «Табло» это
   геометрический Unbounded, в «Штабе» — моноширинный. */
:root:root[data-profile] :where(.big, .cross, .tnum) {
  font-family: var(--pf-font-num);
  font-variant-numeric: tabular-nums;
}

/* Плотные профили гасят тени карточек. */
:root:root[data-profile="pult"] :where(.card, .hcard),
:root:root[data-profile="shtab"] :where(.card, .hcard),
:root:root[data-profile="kartoteka"] :where(.card, .hcard),
:root:root[data-profile="bumaga"] :where(.card, .hcard),
:root:root[data-profile="tseh"] :where(.card, .hcard) {
  box-shadow: none;
}
