/* Foundations primitives for Blazorponents. */
.bp-breakpoints {
  display: grid;
  gap: var(--bp-breakpoints-gap, var(--bp-space-3));
  color: var(--bp-ink);
  --bp-current-breakpoint: "xs";
  --bp-breakpoint-xs: 0px;
  --bp-breakpoint-sm: 640px;
  --bp-breakpoint-md: 768px;
  --bp-breakpoint-lg: 1024px;
  --bp-breakpoint-xl: 1280px;
}

.bp-breakpoints-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bp-space-2);
  padding: var(--bp-breakpoints-indicator-padding, 0.5rem 0.75rem);
  border-radius: var(--bp-radius-md);
  border: 1px solid var(--bp-outline);
  background: var(--bp-surface-muted);
}

.bp-breakpoints-indicator-label {
  font-weight: 600;
  color: var(--bp-muted);
}

.bp-breakpoints-indicator-value {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bp-breakpoints-indicator-value:empty::after {
  content: var(--bp-current-breakpoint);
}

.bp-breakpoints-list {
  margin: 0;
  display: grid;
  gap: var(--bp-space-2);
}

.bp-breakpoints-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--bp-space-2);
  padding: 0.35rem 0.5rem;
  border-radius: var(--bp-radius-sm);
  background: var(--bp-surface);
  border: 1px solid var(--bp-outline-muted);
}

.bp-breakpoints-item-active {
  border-color: var(--bp-accent);
  background: var(--bp-surface-muted);
}

.bp-breakpoints-name {
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bp-breakpoints-range {
  margin: 0;
  color: var(--bp-muted);
  font-size: 0.9em;
}

@media (min-width: 640px) {
  .bp-breakpoints {
    --bp-current-breakpoint: "sm";
  }
}

@media (min-width: 768px) {
  .bp-breakpoints {
    --bp-current-breakpoint: "md";
  }
}

@media (min-width: 1024px) {
  .bp-breakpoints {
    --bp-current-breakpoint: "lg";
  }
}

@media (min-width: 1280px) {
  .bp-breakpoints {
    --bp-current-breakpoint: "xl";
  }
}

.bp-color-scheme {
  color-scheme: var(--bp-color-scheme, inherit);
}

.bp-color-scheme-light {
  --bp-color-scheme: light;
}

.bp-color-scheme-dark {
  --bp-color-scheme: dark;
}

.bp-color-scheme-light-dark {
  --bp-color-scheme: light dark;
}

.bp-color-scheme-only-light {
  --bp-color-scheme: only light;
}

.bp-color-scheme-only-dark {
  --bp-color-scheme: only dark;
}

.bp-contrast-mode {
  --bp-contrast-factor: 1;
}

.bp-contrast-more {
  --bp-contrast-factor: 1.15;
}

.bp-contrast-less {
  --bp-contrast-factor: 0.9;
}

.bp-contrast-filter {
  filter: contrast(var(--bp-contrast-factor));
}

.bp-css-reset,
.bp-css-reset-typography,
.bp-css-reset-forms,
.bp-css-reset-lists,
.bp-css-reset *,
.bp-css-reset-typography *,
.bp-css-reset-forms *,
.bp-css-reset-lists * {
  box-sizing: border-box;
}

.bp-css-reset,
.bp-css-reset-typography {
  margin: 0;
  padding: 0;
  font-family: var(--bp-font-body, inherit);
  color: var(--bp-ink);
  background: var(--bp-surface);
  line-height: 1.5;
}

.bp-css-reset h1,
.bp-css-reset h2,
.bp-css-reset h3,
.bp-css-reset h4,
.bp-css-reset h5,
.bp-css-reset h6,
.bp-css-reset p,
.bp-css-reset figure,
.bp-css-reset blockquote,
.bp-css-reset dl,
.bp-css-reset dd,
.bp-css-reset-typography h1,
.bp-css-reset-typography h2,
.bp-css-reset-typography h3,
.bp-css-reset-typography h4,
.bp-css-reset-typography h5,
.bp-css-reset-typography h6,
.bp-css-reset-typography p,
.bp-css-reset-typography figure,
.bp-css-reset-typography blockquote,
.bp-css-reset-typography dl,
.bp-css-reset-typography dd {
  margin: 0;
}

.bp-css-reset ul,
.bp-css-reset ol,
.bp-css-reset-lists ul,
.bp-css-reset-lists ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bp-css-reset a,
.bp-css-reset-typography a {
  color: inherit;
  text-decoration: none;
}

.bp-css-reset img,
.bp-css-reset svg,
.bp-css-reset-typography img,
.bp-css-reset-typography svg {
  display: block;
  max-width: 100%;
}

.bp-css-reset button,
.bp-css-reset input,
.bp-css-reset select,
.bp-css-reset textarea,
.bp-css-reset-forms button,
.bp-css-reset-forms input,
.bp-css-reset-forms select,
.bp-css-reset-forms textarea {
  font: inherit;
  color: inherit;
}

.bp-density-scale {
  display: contents;
}

.bp-density-compact {
  --bp-space-1: 0.2rem;
  --bp-space-2: 0.4rem;
  --bp-space-3: 0.6rem;
  --bp-space-4: 0.85rem;
  --bp-space-5: 1.25rem;
  --bp-space-6: 1.7rem;
  --bp-space-7: 2.1rem;
  --bp-space-8: 2.5rem;
  --bp-radius-sm: 6px;
  --bp-radius-md: 10px;
  --bp-radius-lg: 14px;
  --bp-btn-font-size-sm: 0.8rem;
  --bp-btn-font-size-md: 0.9rem;
  --bp-btn-font-size-lg: 1rem;
  --bp-btn-padding-sm: 0.3rem 0.6rem;
  --bp-btn-padding-md: 0.45rem 0.8rem;
  --bp-btn-padding-lg: 0.55rem 1rem;
  --bp-btn-icon-only-size-sm: 1.9rem;
  --bp-btn-icon-only-size-md: 2.3rem;
  --bp-btn-icon-only-size-lg: 2.7rem;
  --bp-btn-fab-size: 3rem;
}

.bp-density-comfortable {
  --bp-space-1: 0.3rem;
  --bp-space-2: 0.6rem;
  --bp-space-3: 0.9rem;
  --bp-space-4: 1.15rem;
  --bp-space-5: 1.7rem;
  --bp-space-6: 2.3rem;
  --bp-space-7: 2.9rem;
  --bp-space-8: 3.45rem;
  --bp-radius-sm: 10px;
  --bp-radius-md: 14px;
  --bp-radius-lg: 18px;
  --bp-btn-font-size-sm: 0.9rem;
  --bp-btn-font-size-md: 1rem;
  --bp-btn-font-size-lg: 1.15rem;
  --bp-btn-padding-sm: 0.4rem 0.8rem;
  --bp-btn-padding-md: 0.6rem 1.05rem;
  --bp-btn-padding-lg: 0.75rem 1.25rem;
  --bp-btn-icon-only-size-sm: 2.3rem;
  --bp-btn-icon-only-size-md: 2.8rem;
  --bp-btn-icon-only-size-lg: 3.3rem;
  --bp-btn-fab-size: 3.6rem;
}

.bp-elevation {
  --bp-elevation-shadow-level-0: none;
  --bp-elevation-shadow-level-1: var(--bp-shadow-1);
  --bp-elevation-shadow-level-2: var(--bp-shadow-2);
  --bp-elevation-shadow-level-3: var(--bp-shadow-3);
  background: var(--bp-elevation-bg, transparent);
  padding: var(--bp-elevation-padding, 0);
  border-radius: var(--bp-elevation-radius, 0);
  border-width: var(--bp-elevation-border-width, 1px);
  border-style: var(--bp-elevation-border-style, solid);
  border-color: var(--bp-elevation-border-color, transparent);
  box-shadow: var(--bp-elevation-shadow, var(--bp-elevation-shadow-level-1));
  transition: var(--bp-elevation-transition, box-shadow var(--bp-elevation-transition-duration, 0.2s) var(--bp-elevation-transition-ease, ease), transform var(--bp-elevation-transition-duration, 0.2s) var(--bp-elevation-transition-ease, ease));
}

.bp-elevation-0 {
  --bp-elevation-shadow: var(--bp-elevation-shadow-level-0);
}

.bp-elevation-1 {
  --bp-elevation-shadow: var(--bp-elevation-shadow-level-1);
}

.bp-elevation-2 {
  --bp-elevation-shadow: var(--bp-elevation-shadow-level-2);
}

.bp-elevation-3 {
  --bp-elevation-shadow: var(--bp-elevation-shadow-level-3);
}

.bp-elevation-bordered {
  --bp-elevation-border-color: var(--bp-outline);
}

.bp-elevation-interactive:focus-visible {
  outline: none;
}

.bp-elevation-actionable {
  cursor: pointer;
}

.bp-elevation-hover:hover,
.bp-elevation-hover:focus-visible,
.bp-elevation-hover:focus-within {
  box-shadow: var(--bp-elevation-hover-shadow, var(--bp-elevation-shadow-level-2));
}

.bp-focus-ring {
  border-radius: var(--bp-focus-ring-radius, inherit);
  outline: none;
}

.bp-focus-ring:focus-visible,
.bp-focus-ring-within:focus-within {
  box-shadow: var(--bp-focus-ring-shadow, var(--bp-focus-ring, 0 0 0 calc(var(--bp-focus-ring-width, 2px) + var(--bp-focus-ring-offset, 0px)) var(--bp-focus-ring-color, var(--bp-accent))));
}

.bp-focus-ring-inset:focus-visible,
.bp-focus-ring-inset.bp-focus-ring-within:focus-within {
  box-shadow: inset var(--bp-focus-ring-shadow, var(--bp-focus-ring, 0 0 0 calc(var(--bp-focus-ring-width, 2px) + var(--bp-focus-ring-offset, 0px)) var(--bp-focus-ring-color, var(--bp-accent))));
}

.bp-focus-ring-always {
  box-shadow: var(--bp-focus-ring-shadow, var(--bp-focus-ring, 0 0 0 calc(var(--bp-focus-ring-width, 2px) + var(--bp-focus-ring-offset, 0px)) var(--bp-focus-ring-color, var(--bp-accent))));
}

.bp-focus-ring-disabled,
.bp-focus-ring-disabled:focus-visible,
.bp-focus-ring-disabled.bp-focus-ring-within:focus-within,
.bp-focus-ring-disabled.bp-focus-ring-always {
  box-shadow: none;
}

.bp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--bp-icon-size, 1.25rem);
  height: var(--bp-icon-size, 1.25rem);
  color: var(--bp-icon-color, currentColor);
  line-height: 1;
  flex-shrink: 0;
}

.bp-icon svg {
  width: 100%;
  height: 100%;
}

.bp-icon.bp-icon-has-stroke-width svg,
.bp-icon.bp-icon-has-stroke-width svg * {
  stroke-width: var(--bp-icon-stroke-width);
}

.bp-icon.bp-icon-has-fill svg,
.bp-icon.bp-icon-has-fill svg * {
  fill: var(--bp-icon-fill);
}

.bp-icon-registry {
  display: contents;
}

.bp-motion {
  animation-name: var(--bp-motion-name, none);
  animation-duration: var(--bp-motion-duration, 220ms);
  animation-delay: var(--bp-motion-delay, 0ms);
  animation-timing-function: var(--bp-motion-ease, ease);
  animation-fill-mode: var(--bp-motion-fill, both);
  animation-iteration-count: var(--bp-motion-iterations, 1);
  animation-direction: var(--bp-motion-direction, normal);
}

.bp-motion-fade {
  --bp-motion-name: bp-motion-fade;
}

.bp-motion-slide-up {
  --bp-motion-name: bp-motion-slide-up;
}

.bp-motion-slide-down {
  --bp-motion-name: bp-motion-slide-down;
}

.bp-motion-slide-left {
  --bp-motion-name: bp-motion-slide-left;
}

.bp-motion-slide-right {
  --bp-motion-name: bp-motion-slide-right;
}

.bp-motion-scale {
  --bp-motion-name: bp-motion-scale;
}

.bp-motion-none {
  --bp-motion-name: none;
}

.bp-motion-none,
.bp-motion-inactive,
.bp-motion[data-bp-motion-active="false"] {
  animation: none;
}

@keyframes bp-motion-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bp-motion-slide-up {
  from {
    opacity: 0;
    transform: translateY(var(--bp-motion-distance, 12px));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bp-motion-slide-down {
  from {
    opacity: 0;
    transform: translateY(var(--bp-motion-distance-negative, -12px));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bp-motion-slide-left {
  from {
    opacity: 0;
    transform: translateX(var(--bp-motion-distance-negative, -12px));
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bp-motion-slide-right {
  from {
    opacity: 0;
    transform: translateX(var(--bp-motion-distance, 12px));
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bp-motion-scale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp-motion:not(.bp-motion-ignore-reduced) {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}

.bp-reduced-motion {
  --bp-motion-duration: var(--bp-motion-duration-reduced, 0ms);
  --bp-motion-distance: var(--bp-motion-distance-reduced, 0px);
  --bp-motion-distance-negative: var(--bp-motion-distance-negative-reduced, 0px);
}

@media (prefers-reduced-motion: reduce) {
  .bp-reduced-motion-respect {
    --bp-motion-duration: var(--bp-motion-duration-reduced, 0ms);
    --bp-motion-distance: var(--bp-motion-distance-reduced, 0px);
    --bp-motion-distance-negative: var(--bp-motion-distance-negative-reduced, 0px);
  }
}

.bp-reduced-motion-force *,
.bp-reduced-motion-force *::before,
.bp-reduced-motion-force *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

.bp-theme-provider {
  color: var(--bp-ink);
  background: var(--bp-surface);
}

.bp-theme-toggle {
  gap: 0.35rem;
}

.bp-theme-toggle-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.bp-theme-toggle-icon {
  display: grid;
  place-items: center;
  width: var(--bp-theme-toggle-icon-size, 1rem);
  height: var(--bp-theme-toggle-icon-size, 1rem);
}

.bp-typography {
  margin: 0;
  color: var(--bp-typography-color, var(--bp-ink));
  font-family: var(--bp-typography-font, var(--bp-font-body, inherit));
}

.bp-typography-display {
  font-size: var(--bp-typography-size, var(--bp-typography-display-size, 2.5rem));
  line-height: 1.1;
  font-weight: 700;
}

.bp-typography-headline {
  font-size: var(--bp-typography-size, var(--bp-typography-headline-size, 2rem));
  line-height: 1.2;
  font-weight: 700;
}

.bp-typography-title {
  font-size: var(--bp-typography-size, var(--bp-typography-title-size, 1.5rem));
  line-height: 1.3;
  font-weight: 600;
}

.bp-typography-subtitle {
  font-size: var(--bp-typography-size, var(--bp-typography-subtitle-size, 1.2rem));
  line-height: 1.4;
  font-weight: 600;
}

.bp-typography-body {
  font-size: var(--bp-typography-size, var(--bp-typography-body-size, 1rem));
  line-height: 1.6;
  font-weight: 400;
}

.bp-typography-bodysmall {
  font-size: var(--bp-typography-size, var(--bp-typography-body-small-size, 0.9rem));
  line-height: 1.6;
  font-weight: 400;
}

.bp-typography-caption {
  font-size: var(--bp-typography-size, var(--bp-typography-caption-size, 0.8rem));
  line-height: 1.4;
  font-weight: 500;
}

.bp-typography-overline {
  font-size: var(--bp-typography-size, var(--bp-typography-overline-size, 0.75rem));
  line-height: 1.4;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bp-typography-code {
  font-size: var(--bp-typography-size, var(--bp-typography-code-size, 0.95rem));
  line-height: 1.5;
  font-family: var(--bp-typography-font, var(--bp-font-mono, "Cascadia Mono", "Consolas", monospace));
  font-weight: 500;
}

.bp-typography-default {
  --bp-typography-color: var(--bp-ink);
}

.bp-typography-muted {
  --bp-typography-color: var(--bp-muted);
}

.bp-typography-subtle {
  --bp-typography-color: var(--bp-subtle);
}

.bp-typography-inverse {
  --bp-typography-color: var(--bp-inverse);
}

.bp-typography-accent {
  --bp-typography-color: var(--bp-accent);
}

.bp-typography-clamp {
  display: -webkit-box;
  -webkit-line-clamp: var(--bp-typography-clamp);
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-clamp: var(--bp-typography-clamp);
}

.bp-typography-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-typography-nowrap {
  white-space: nowrap;
}

.bp-typography-underline {
  text-decoration: underline;
}

.bp-typography-italic {
  font-style: italic;
}
