/* uniadviser 0.6.0 — global UI layer (loaded after site/home/archive/portal CSS, before Tailwind).
   Button sizes follow Material 3 / Apple HIG: default 40px, sm 32px, lg 48px; touch targets stay >= 40px on small screens.
   Icons: Font Awesome Free (local). All <i class="ua-ico"> carry aria-hidden="true"; .ua-ico--dir is mirrored in RTL. */

:root {
  --ua-section: clamp(40px, 6vw, 88px);  /* section vertical rhythm, was clamp(3.5rem, 2rem + 6vw, 8rem) */
  --ua-btn-h: 40px;
  --ua-btn-h-sm: 32px;
  --ua-btn-h-lg: 48px;
}

/* ---------- Buttons ---------- */
.ua-btn, .kou-uap-button {
  box-sizing: border-box; white-space: normal;
  min-height: var(--ua-btn-h);
  padding: 0 18px;  /* height comes from min-height (40px); was 10px block padding + 1.5px borders = 43px */
  font-size: 15px;
  line-height: 1.25;
  gap: .5rem;
}
.ua-btn--sm { min-height: var(--ua-btn-h-sm); padding: 0 12px; font-size: 14px; }
.ua-btn--lg { min-height: var(--ua-btn-h-lg); padding: 0 22px; font-size: 16px; }
.ua-btn svg { width: 18px; height: 18px; }
.kou-uap-button { display: inline-flex; align-items: center; justify-content: center; }
/* Portal submit buttons get an icon without touching plugin markup; alt text "" keeps it silent for screen readers. */
.kou-uap-button::before { content: "\f2f6" / ""; font: var(--fa-font-solid, 900 1em "Font Awesome 7 Free"); font-weight: 900; font-size: .95em; }
[dir="rtl"] .kou-uap-button::before { transform: scaleX(-1); }
.kou-uap-form--wide .kou-uap-button::before, .kou-uap-upload .kou-uap-button::before { content: "\f093" / ""; transform: none; }

.ua-chip { min-height: 36px; padding: 0 14px; font-size: 14px; }
.ua-nav a, .ua-nav__btn { min-height: 40px; }

/* Touch targets on small screens: nothing interactive below 40px. */
@media (max-width: 782px) {
  .ua-btn--sm, .ua-chip { min-height: 40px; }
}

/* ---------- Icons ---------- */
.ua-ico { font-size: .95em; line-height: 1; flex: none; }
[dir="rtl"] .ua-ico--dir, :root:dir(rtl) .ua-ico--dir { transform: scaleX(-1); }
.ua-btn .ua-ico { font-size: 1em; }
.ua-svc__n .ua-ico { color: var(--ua-amber); margin-inline-end: .35rem; font-size: 1.1em; }
.ua-step h3 .ua-ico, .ua-proofs b .ua-ico { color: var(--ua-amber); margin-inline-end: .4rem; }
.ua-step h3 .ua-ico { color: var(--ua-ink); opacity: .8; }
.ua-values .ua-ico { color: var(--ua-amber); margin-inline-end: .35rem; }
.ua-office b .ua-ico { color: var(--ua-amber); margin-inline-end: .3rem; }
.ua-footer li .ua-ico { color: var(--ua-amber); margin-inline-end: .4rem; inline-size: 1em; text-align: center; }
.ua-card__meta .ua-ico { margin-inline-end: .25rem; opacity: .8; }
.ua-card__read { display: inline-flex; align-items: center; }
.ua-tag .ua-ico { font-size: .85em; }

/* ---------- Space ---------- */
/* No doubled gap before the footer: CTA / archive / portal already end with their own section padding. */
.wp-site-blocks > footer.wp-block-template-part { margin-block-start: 0; }
.wp-site-blocks > main, .wp-site-blocks > * + * { margin-block-start: 0; }
.ua-archive { padding-block: var(--ua-s-5) var(--ua-section); }
.ua-pagehead { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 2vw, 1.75rem); }
.ua-portal-page { padding-block: var(--ua-s-5) var(--ua-section); }
/* Inner component padding must not stack on top of the section padding at a section edge. */
.ua-svc:last-child { padding-block-end: 0; border-bottom: 0; }
.ua-services__head, .ua-process__head { margin-bottom: var(--ua-s-6); }
.ua-cta { padding-top: 0; }
/* Portal auth split: no forced full-viewport height (left a tall empty band above/below the form on desktop). */
.ua-auth { min-height: min(calc(100vh - var(--ua-header-h) - 36px), 720px); }
.ua-auth__form { padding-block: clamp(1.5rem, 4vw, 3rem); }
/* Empty blocks/spacers never take room. */
.wp-block-spacer, .ua-section:empty, .ua-container:empty, .ua-section p:empty { display: none; }
