:host {
  --md-ref-typeface-brand: "Roboto";
  --md-ref-typeface-plain: system-ui;
}

.theme-material {
  font-family: Roboto, system-ui;
}

/* Callouts */
.theme-material[part=widget-callout] {
  position: relative;
  padding: 1rem 1.5rem 1rem 2rem;
  margin: 1rem 0;
  color: var(--md-sys-color-error);
  border: solid 1px var(--md-sys-color-error);
  border-color: var(--md-sys-color-error-container);
  border-left: solid 3px var(--md-sys-color-error);
  border-radius: 0.25rem;
}
.theme-material[part=widget-callout] > :first-child {
  margin-top: 0;
}
.theme-material[part=widget-callout] > :last-child {
  margin-bottom: 0;
}
.theme-material[part=widget-callout]::before {
  position: absolute;
  top: calc(50% - 0.8rem);
  left: calc(-0.8rem - 2px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  clip-path: circle(50% at 50% 50%);
  color: var(--md-sys-color-on-error);
  content: "";
}
.theme-material[part=widget-callout].callout--warning::before {
  content: "!";
  background-color: var(--md-sys-color-error);
}

.theme-material.object {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5em 0;
  padding: 2em 1em;
  margin: 0;
  font-weight: 300;
  border: none;
  border-radius: 1rem;
  transition-timing-function: ease-in-out;
  transition-duration: 250ms;
  --md-sys-color-shadow: var(--md-sys-color-inverse-on-surface);
  --md-elevation-level: 0;
}
.theme-material.object legend {
  width: 100%;
  font-size: 1.5em;
  border-bottom: 1px solid var(--md-sys-color-inverse-on-surface);
}
.theme-material.object .object__description {
  margin: 0 0 1rem 0;
  opacity: 0.75;
}
.theme-material.object:hover {
  --md-elevation-level: 4;
}

.theme-material.widget-range {
  display: flex;
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  /* place-items: center; */
  gap: 8px;
  place-items: flex-start;
  width: 100%;
  font-family: Roboto, system-ui;
  color: var(--md-sys-color-on-background, #000);
}

md-slider {
  width: 100%;
  /* --md-slider-focus-handle-color: red; */
  --md-slider-active-track-color: var(--md-sys-color-primary);
  --md-slider-inactive-track-color: var(--md-sys-on-surface);
}

.theme-material.widget-submit {
  display: flex;
  justify-content: center;
  margin: var(--sl-spacing-2x-large) 0;
  font-size: 4em;
}
