.label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-block: 1rem;
}

.label--radio {
  font-weight: 400;
}

.input {
  font-size: 1rem;
  border: 1px solid var(--color-border-dim);
  border-radius: 0.25rem;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
  max-width: 100%;
  background: white;
  resize: vertical;
}

.invalid {
  display: none;
}

/* Show invalid message when adjacent to invalid input or wrapper containing invalid input */
:is(:invalid, :has(:invalid))+ :is(.inputs__invalid, .invalid) {
  display: block;
}

input:disabled,
textarea:disabled {
  background: var(--color-bg);
}

.loading {
  animation: pulsate 1s infinite alternate;
}

@keyframes pulsate {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.5;
  }
}

.form {
  --group-margin: 1.5rem;
  margin-block: 1.5rem;
}

.inputs {
  --display: grid;
  display: var(--display);
  margin-block: var(--group-margin, 0);
  margin-inline: var(--margin-inline, 0);
  gap: var(--elem-margin, 1rem);
  align-items: center;
  grid-template-columns: max-content 1fr;
  width: 100%;
  border: none;
  padding: 0;
}

.form__details {
  margin-block: var(--group-margin, 0);
}

.form__summary {
  text-align: var(--elem-align);
}

.form__buttons {
  margin-block: var(--group-margin, 0);
  text-align: var(--elem-align);
}

.form__message {
  margin-block: var(--group-margin, 0);
}

.inputs--vertical {
  --display: block;
  --label-margin: 1rem 0.75rem;
  --hint-margin: .25rem;
}

.inputs--strong-labels {
  --label-weight: 700;
}

.inputs__label {
  display: block;
  font-size: 1rem;
  font-weight: var(--label-weight, 400);
  width: 100%;
  padding: 0;
  margin-block: var(--label-margin);
}

.inputs__label:first-child {
  margin-block-start: 0;
}

.inputs__input {
  margin: 0;
  width: 100%;
  margin-inline: auto;
  display: block;
}

.inputs__radios {
  border: none;
  padding: 0;
  margin: 0;
}

.inlined-input {
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  width: 100%;
  flex-wrap: wrap;
  max-width: 100%;
}

.inlined-input__input {
  flex: 1 1 15ch;
  width: unset;
  max-width: 100%;
}

/* Layer 3: Positioning within .inputs context */
.inputs__hint {
  grid-column: -2;
  margin-block: var(--hint-margin, -.75rem) 0;
}

.inputs__invalid {
  display: none;
  grid-column: -2;
  margin-block: var(--hint-margin, -.75rem) 0;
}

.details-form {
  margin-block: 1rem;
}

.details-form__summary {
  cursor: pointer;
  text-transform: uppercase;
}

.details-form__form {
  margin-block: 1.5rem;
}

.details-form-toggler:has(.details-form[open]) {
  --dft-hide-display: none;
  --dft-show-display: contents;
}

.details-form-toggler__hide {
  display: var(--dft-hide-display, contents);
}

.details-form-toggler__show {
  display: var(--dft-show-display, none);
}

.inputs__input--standalone {
  margin-block-start: 1rem;
}

.inputs__checkbox {
  grid-column: 1 / -1;
}

.details-form__buttons {
  margin-block: 1.5rem;
}

.input-file {
  font-size: inherit;
  font-family: inherit;
  margin-block: 1.5em;
}

.ssg:has([name=ssg][value=hugo]:checked) {
  --show-hugo: block;
}

.ssg:has([name=ssg][value=jekyll]:checked) {
  --show-jekyll: block;
}

.ssg:has([name=ssg][value=astro]:checked) {
  --show-astro: block;
}

.ssg:has([name=ssg][value=gatsby]:checked) {
  --show-gatsby: block;
}

.ssg:has([name=ssg][value=nextjs]:checked) {
  --show-nextjs: block;
}

.ssg:has([name=ssg][value=nuxt]:checked) {
  --show-nuxt: block;
}

.ssg:has([name=ssg][value=node]:checked) {
  --show-node: block;
}

.ssg:has([name=ssg][value=container]:checked) {
  --show-container: block;
}

.ssg:has([name=ssg][value=static]:checked) {
  --show-static: block;
}

.ssg:has([name=ssg][value=zola]:checked) {
  --show-zola: block;
}

.ssg__zola {
  display: var(--show-zola, none);
}

.ssg__selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
}

.ssg__card {
  --ssg-bg: white;
  --ssg-border: var(--color-border-dim);
}

.ssg__card:hover {
  --ssg-shadow: var(--shadow);
}

.ssg__card:has(:checked) {
  --ssg-border: var(--color-primary);
  --ssg-bg: hsla(221, 61%, 96%, 1);
  --ssg-outline: 1px solid var(--ssg-border);
}

.ssg__card:has(:focus-visible) {
  --ssg-outline: 2px solid var(--color-primary);
  --ssg-outline-offset: 2px;
}

.ssg__card {
  cursor: pointer;
  position: relative;
  height: 80px;
  padding: 0.75rem;
  border-radius: 0.375rem;
  transition: 0.2s ease;
  transition-property: box-shadow;
  background: var(--ssg-bg);
  border: 1px solid var(--ssg-border);
  outline: var(--ssg-outline);
  outline-offset: var(--ssg-outline-offset);
  box-shadow: var(--ssg-shadow);
}

.ssg__logo {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  display: block;
}

.ssg__card-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ssg__hugo {
  display: var(--show-hugo, none);
}

.ssg__jekyll {
  display: var(--show-jekyll, none);
}

.ssg__astro {
  display: var(--show-astro, none);
}

.ssg__gatsby {
  display: var(--show-gatsby, none);
}

.ssg__nextjs {
  display: var(--show-nextjs, none);
}

.ssg__nuxt {
  display: var(--show-nuxt, none);
}

.ssg__node {
  display: var(--show-node, none);
}

.ssg__container {
  display: var(--show-container, none);
}

.ssg__static {
  display: var(--show-static, none);
}

.wz-entry__label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-block: var(--elem-margin);
}

.wz-entry__input {
  width: 100%;
  margin-block: var(--elem-margin);
  display: block;
}

.wz-entry {
  --elem-margin: 1rem;
}

.wz-entry__advanced {
  --group-margin: var(--elem-margin);
}

.wz-continue-btn {
  min-width: 12rem;
  margin-inline: var(--btn-margin, 0);
  display: var(--continue-btn-display, block);
  margin-block-start: calc(2 * var(--elem-margin, 1rem));
}

.wz-card {
  --legend-weight: 700;
  --padding: 2rem;
  --elem-margin: 1rem;
  --elem-align: center;
  --button-min-width: 12rem;
  --btn-margin: auto;
}

.wz-card {
  border: 1px solid var(--text-muted, rgba(7, 44, 90, 0.75));
  background: rgba(255, 255, 255, 0.50);
  padding-inline: var(--padding);
}

.wz-card::before {
  content: '';
  display: block;
  margin-bottom: var(--padding);
}

.wz-card::after {
  content: '';
  display: block;
  margin-top: var(--padding);
}

.wz-repository__ssh {
  display: var(--show-ssh, none);
}

.wz-repository__https {
  display: var(--show-https, none);
}

.wz-repository__https-auth {
  display: var(--show-https-auth, none);
}

.wz-repository__public-only {
  display: var(--continue-private-disabled, block);
}

.wz-repository:has([name=https-auth]:checked) {
  --show-https-auth: contents;
  --continue-private-disabled: none;
  --show-upgrade: block;
}

.wz-repository:has([name=scheme][value=ssh]:checked) {
  --show-ssh: contents;
  --continue-private-disabled: none;
  --show-upgrade: contents;
}

.wz-repository:has([name=scheme][value=https]:checked) {
  --show-https: contents;
}

.wz-inputs {
  max-width: 25rem;
  margin-block: var(--elem-margin);
  --margin-inline: auto;
}

.wz-card__status {
  background: var(--color-secondary);
  margin-inline: calc(-1 * var(--padding));
  padding: var(--padding);
}

.wz-log__heading {
  font-weight: 700;
}

.wz-log[open] .wz-log__heading {
  margin-bottom: 1rem;
}

.wz-log-container {
  display: flex;
  flex-direction: column-reverse;
  /* gap: 2rem; */
}

.wz-log__log:empty::before {
  content: '(no logs)';
  font-style: italic;
}

.wz-link-btns {
  display: flex;
  justify-content: space-between;
  margin-block: 1rem 2rem;
}

.wz-link-btn {
  background: none;
  color: inherit;
  font-size: inherit;
  border: none;
  border-radius: 0;
  padding: 0;
  font-weight: 400;
  text-decoration: underline;
}

.wz-link-btns--skip-only {
  justify-content: end;
}

.wz-card__upgrade {
  display: var(--show-upgrade, none);
  text-align: center;
}

.wz-heading {
  font-size: 1rem;
  text-align: center;
  font-weight: 700;
  margin-block: 1.5rem;
}