/**
 * Armature demo controls.
 * Version: 0.2.347
 */

body.armature-theme .armature-demo-controls {
  --armature-demo-canvas: #202124;
  --armature-demo-nav: #333333;
  --armature-demo-nav-soft: #555555;
  --armature-demo-panel: #fcfcfc;
  --armature-demo-surface: #d1d2d4;
  --armature-demo-surface-alt: #e6f2ef;
  --armature-demo-text: #fcfcfc;
  --armature-demo-muted: #d1d2d4;
  --armature-demo-border: #555555;
  --armature-demo-accent: #13a89e;
  --armature-demo-accent-strong: #0b746e;
  --armature-demo-radius: 6px;

  position: sticky;
  top: 0;
  z-index: 1000;
  display: block;
  background: var(--armature-demo-canvas);
  color: var(--armature-demo-text);
  border: 0;
  border-bottom: 3px solid var(--armature-demo-accent);
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.12);
  font-family: Inter, var(--armature-font-body, system-ui, sans-serif);
}

body.admin-bar.armature-theme .armature-demo-controls {
  top: 32px;
}

body.armature-theme .armature-demo-controls__summary {
  display: none;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.01em;
}

body.armature-theme .armature-demo-controls__body {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1.25rem;
  min-height: 74px;
  padding: 0.62rem max(1rem, var(--armature-shell-gutter, 50px));
  font-size: 0.82rem;
  line-height: 1.2;
}

body.armature-theme .armature-demo-controls__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem 0.7rem;
  min-width: 0;
  text-align: left;
}

body.armature-theme .armature-demo-controls__logo {
  display: block;
  flex: 0 0 auto;
  width: clamp(11rem, 15vw, 13rem);
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}

body.armature-theme .armature-demo-controls__badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--armature-demo-accent);
  border-radius: var(--armature-demo-radius);
  background: rgba(19, 168, 158, 0.14);
  color: var(--armature-demo-panel);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.25rem 0.42rem;
  text-transform: uppercase;
}

body.armature-theme .armature-demo-controls__intro {
  flex-basis: 100%;
  color: var(--armature-demo-muted);
  font-size: 0.76rem;
}

body.armature-theme .armature-demo-controls__fields {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 0;
}

body.armature-theme .armature-demo-controls__field {
  display: grid;
  gap: 0.18rem;
}

body.armature-theme .armature-demo-controls__field-label {
  color: var(--armature-demo-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
}

body.armature-theme .armature-demo-controls__select {
  width: clamp(8.2rem, 12vw, 11.2rem);
  min-height: 2rem;
  appearance: none;
  border: 1px solid var(--armature-demo-border);
  border-radius: var(--armature-demo-radius);
  background-color: var(--armature-demo-nav);
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 0.82rem) 50%,
    calc(100% - 0.58rem) 50%;
  background-size: 0.25rem 0.25rem, 0.25rem 0.25rem;
  background-repeat: no-repeat;
  color: var(--armature-demo-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1;
  padding: 0.42rem 1.3rem 0.42rem 0.62rem;
}

body.armature-theme .armature-demo-controls__select:hover,
body.armature-theme .armature-demo-controls__select:focus-visible {
  background-color: var(--armature-demo-nav-soft);
  border-color: var(--armature-demo-accent);
  box-shadow: 0 0 0 1px var(--armature-demo-accent);
  outline: 0;
}

body.armature-theme .armature-demo-controls__select option {
  background: var(--armature-demo-nav);
  color: var(--armature-demo-text);
}

body.armature-theme .armature-demo-controls__reset {
  appearance: none;
  align-self: end;
  min-height: 2rem;
  border: 1px solid var(--armature-demo-border);
  border-radius: var(--armature-demo-radius);
  background: var(--armature-demo-nav);
  color: var(--armature-demo-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1;
  padding: 0.42rem 0.72rem;
  text-decoration: none;
  white-space: nowrap;
}

body.armature-theme .armature-demo-controls__reset:hover,
body.armature-theme .armature-demo-controls__reset:focus-visible {
  background: var(--armature-demo-accent-strong);
  border-color: var(--armature-demo-accent);
  color: #ffffff;
  outline: 0;
}

@media (max-width: 1200px) {
  body.armature-theme .armature-demo-controls__body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.armature-theme .armature-demo-controls__fields {
    justify-content: flex-start;
  }

  body.armature-theme .armature-demo-controls__select {
    width: min(14rem, 30vw);
  }
}

@media (max-width: 782px) {
  body.admin-bar.armature-theme .armature-demo-controls {
    top: 46px;
  }
}

@media (max-width: 780px) {
  body.armature-theme .armature-demo-controls__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--armature-demo-canvas);
    border-bottom: 2px solid var(--armature-demo-accent);
    color: var(--armature-demo-text);
  }

  body.armature-theme .armature-demo-controls__summary::after {
    content: '▾';
    color: var(--armature-demo-accent);
    font-size: 0.8em;
  }

  body.armature-theme .armature-demo-controls[open] .armature-demo-controls__summary::after {
    content: '▴';
  }

  body.armature-theme .armature-demo-controls:not([open]) .armature-demo-controls__body {
    display: none;
  }

  body.armature-theme .armature-demo-controls__body {
    padding: 0.85rem 1rem 1rem;
  }

  body.armature-theme .armature-demo-controls__logo {
    width: 11rem;
  }

  body.armature-theme .armature-demo-controls__fields {
    align-items: stretch;
    flex-direction: column;
  }

  body.armature-theme .armature-demo-controls__select,
  body.armature-theme .armature-demo-controls__reset {
    width: 100%;
  }
}
