/* Scoped to .uc-root, never to html/body — plugin output must not restyle the host theme. */

.uc-root {
  font-family: var(--uc-font-sans);
  font-size: var(--uc-text-body);
  line-height: var(--uc-leading-body);
  font-weight: var(--uc-weight-regular);
  color: var(--uc-color-text);
  background-color: var(--uc-color-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.uc-root *,
.uc-root *::before,
.uc-root *::after {
  box-sizing: border-box;
}

.uc-root :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, fieldset) {
  margin: 0;
}

.uc-root :where(fieldset) {
  padding: 0;
  border: 0;
}

.uc-root :where(h1, h2, h3, h4, h5, h6) {
  font-weight: var(--uc-weight-bold);
  line-height: var(--uc-leading-title);
  text-wrap: balance;
}

.uc-root :where(h1) {
  font-size: var(--uc-text-display-sm);
  line-height: var(--uc-leading-display-sm);
  letter-spacing: var(--uc-tracking-display-sm);
}

.uc-root :where(h2) {
  font-size: var(--uc-text-title-lg);
  line-height: var(--uc-leading-title-lg);
  letter-spacing: var(--uc-tracking-title-lg);
}

.uc-root :where(h3) {
  font-size: var(--uc-text-title);
  line-height: var(--uc-leading-title);
  letter-spacing: var(--uc-tracking-title);
  font-weight: var(--uc-weight-semibold);
}

.uc-root :where(h4) {
  font-size: var(--uc-text-title-sm);
  line-height: var(--uc-leading-title-sm);
  letter-spacing: var(--uc-tracking-title-sm);
  font-weight: var(--uc-weight-semibold);
}

.uc-root :where(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.uc-root :where(img, picture, svg, video) {
  display: block;
  max-width: 100%;
}

.uc-root :where(img, video) {
  height: auto;
}

.uc-root :where(a) {
  color: var(--uc-color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--uc-duration-instant) var(--uc-ease);
}

.uc-root :where(a:hover) {
  color: var(--uc-color-accent-hover);
}

.uc-root :where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
  margin: 0;
}

.uc-root :where(button) {
  background: none;
  border: 0;
  padding: 0;
}

.uc-root :where(:focus-visible) {
  outline: 2px solid var(--uc-color-focus);
  outline-offset: 2px;
  border-radius: var(--uc-radius-sm);
}

.uc-root :where(code, pre, kbd, samp) {
  font-family: var(--uc-font-mono);
  font-size: var(--uc-text-data);
}

.uc-root :where(table) {
  border-collapse: collapse;
  width: 100%;
}

.uc-root :where(hr) {
  height: var(--uc-border-width);
  border: 0;
  margin: 0;
  background-color: var(--uc-color-border);
}

.uc-root :where(::selection) {
  background-color: var(--uc-color-surface-accent);
  color: var(--uc-color-text);
}

.uc-container {
  width: 100%;
  max-width: var(--uc-content-max);
  margin-inline: auto;
  padding-inline: var(--uc-space-24);
}

.uc-stack {
  display: flex;
  flex-direction: column;
  gap: var(--uc-element-gap);
}

.uc-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--uc-space-12);
}

.uc-grid {
  display: grid;
  gap: var(--uc-space-24);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.uc-measure {
  max-width: var(--uc-measure);
}

.uc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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