/* Optional production width override. Stock Zensical remains the default. */

.layout-width-toggle {
  align-items: center;
  border-radius: 0.4rem;
  color: var(--md-default-fg-color--light);
  cursor: pointer;
  display: none;
  flex: 0 0 auto;
  font-size: 0.64rem;
  gap: 0.25rem;
  line-height: 1;
  margin-inline: 0.2rem 0.4rem;
  outline-color: var(--md-accent-fg-color);
  outline-offset: 0.1rem;
  padding: 0.35rem 0.45rem;
  white-space: nowrap;
}

.layout-width-toggle:hover {
  background-color: var(--md-default-fg-color--lightest);
  color: var(--md-default-fg-color);
}

.layout-width-toggle[aria-pressed="true"] {
  background-color: var(--md-accent-fg-color--transparent);
  color: var(--md-accent-fg-color);
}

.layout-width-toggle svg {
  fill: none;
  height: 0.9rem;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 0.9rem;
}

@media screen and (min-width: 60em) {
  .layout-width-toggle {
    display: inline-flex;
  }

  .md-header__title {
    margin-inline-start: 10.5rem;
  }

  .md-header__source {
    flex: 0 0 0.6rem;
    width: 0.6rem;
  }

  html[data-layout-width="wide"] .md-grid {
    max-width: calc(100% - 0.5rem);
  }
}

@media print {
  .layout-width-toggle {
    display: none !important;
  }
}
