/*
 * KUNST UI — keskne kujundussüsteem
 * See fail on ühine tõeallikas kogu kunst.braks.ee kohandatud kasutajaliidesele.
 * Pluginate CSS kasutab allolevaid muutujaid ega defineeri samu baassuurusi uuesti.
 */
:root,
.kunst-platform-page{
  --kunst-ui-font: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --kunst-ui-text-size: 13px;
  --kunst-ui-heading-size: 16px;
  --kunst-ui-line-height: 1.45;
  --kunst-catalog-text-size: 14px;
  --kunst-content-text-size: 18px;

  --kunst-ui-green: #315f41;
  --kunst-ui-green-soft: #edf4ee;
  --kunst-ui-border: #dfe6df;
  --kunst-ui-text: #243028;
  --kunst-ui-muted: #66706a;

  --kunst-ui-input-height: 44px;
  --kunst-ui-radius: 8px;
  --kunst-ui-gap-xs: .2rem;
  --kunst-ui-gap-sm: .55rem;
  --kunst-ui-gap-md: 1rem;
}

/* Ühine vormitüpograafia. Konkreetne plugin võib muuta paigutust, mitte baas-suurusi. */
.kunst-platform-page .acf-form,
.kunst-platform-page .kunst-ui-form,
.kunst-platform-page .kunst-account-form{
  font-family:var(--kunst-ui-font);
  font-size:var(--kunst-ui-text-size);
  line-height:var(--kunst-ui-line-height);
}

.kunst-platform-page .acf-form input,
.kunst-platform-page .acf-form textarea,
.kunst-platform-page .acf-form select,
.kunst-platform-page .acf-form button:not(.mce-btn),
.kunst-platform-page .acf-form label,
.kunst-platform-page .acf-form .description{
  font-family:var(--kunst-ui-font);
  font-size:var(--kunst-ui-text-size);
}

.kunst-platform-page .acf-form .acf-field > .acf-label > label,
.kunst-platform-page .kunst-ui-section-title{
  font-size:var(--kunst-ui-heading-size);
  line-height:1.35;
}


/* Shared spacing and touch targets, kept out of editorial content. */
:root,.kunst-platform-page{--kunst-space-xs:8px;--kunst-space-sm:12px;--kunst-space-md:20px;--kunst-space-lg:24px}
.kunst-platform-page :is(.kunst-page-content,.kk-lesson-content) > :is(section,.kunst-ui-section){margin-block:var(--kunst-space-md)}
@media(max-width:650px){
 .kunst-platform-page :is(.button,.kunst-search-open,.kf-pagination a,.kunst-filter-chip button,.kunst-filter-chip a,.kunst-search-close){min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center}
 .kunst-platform-page :is(input[type="checkbox"],input[type="radio"]){min-width:18px;min-height:18px}
 .kunst-platform-page :is(.kunst-search-option,.acf-checkbox-list label,.acf-radio-list label){min-height:44px;box-sizing:border-box;align-items:center}
}

/* The author edit action follows the lesson creator-row treatment. */
.kunst-material-creator .kk-edit-link,.kunst-worksheet-creator .kk-edit-link{color:inherit;font-size:.82em;text-decoration:underline;text-underline-offset:2px;}
.kunst-material-creator .kk-creator-separator,.kunst-worksheet-creator .kk-creator-separator{margin-inline:.3em;color:#8b978f;}
