/* StreamLinePro Component Library - base tipografica e accessibilita. */

html {
  font-family: var(--font-primary);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-primary);
}

.sl-type-page-title {
  margin: 0;
  font-size: var(--sl-font-page-title);
  font-weight: 700;
  line-height: var(--sl-line-page-title);
}

.sl-type-topbar-title {
  margin: 0;
  font-size: var(--sl-font-topbar-title);
  font-weight: 700;
  line-height: var(--sl-line-topbar-title);
}

.sl-type-section-title {
  margin: 0;
  font-size: var(--sl-font-section-title);
  font-weight: 700;
  line-height: var(--sl-line-section-title);
}

.sl-type-card-title {
  margin: 0;
  font-size: var(--sl-font-card-title);
  font-weight: 700;
  line-height: var(--sl-line-card-title);
}

.sl-type-body {
  font-size: var(--sl-font-body);
  font-weight: 400;
  line-height: var(--sl-line-body);
}

.sl-type-secondary {
  font-size: var(--sl-font-secondary);
  font-weight: 400;
  line-height: var(--sl-line-secondary);
}

.sl-type-caption {
  font-size: var(--sl-font-caption);
  font-weight: 600;
  line-height: var(--sl-line-caption);
}

.sl-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:where(
  .sl-btn,
  .sl-tab,
  .sl-nav-item,
  .sl-dropdown__item,
  .sl-modal__close,
  .sl-check input,
  .sl-switch input
):focus-visible {
  outline: 2px solid var(--sl-area-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--sl-area-accent-glow);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: .01ms;
    animation-iteration-count: 1;
    transition-duration: .01ms;
  }
}
