/* Module-scoped styles: Cover step, Review/done step, wizard nav, and every
 * responsive media query (incl. rules for Details-step selectors from
 * styles.css - split by line count only, see that file's header). */

.push__crop {
  max-height: 420px;
  overflow: hidden;
  background: var(--bg);
  border-radius: var(--r-md);
}

.push__crop-img {
  display: block;
  max-width: 100%;
}

.push__crop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.push__cover-done {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.push__cover-frame {
  aspect-ratio: 3 / 2;
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.push__cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.push__cover-info {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.push__review {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--s-5);
  align-items: start;
}

.push__facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--s-2) var(--s-4);
  margin: 0;
  font-size: var(--fs-sm);
}

.push__facts dt {
  color: var(--text-muted);
}

.push__facts dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.push__content-preview {
  white-space: pre-wrap;
}

.push__done {
  align-items: center;
  text-align: center;
  padding: var(--s-10) var(--s-5);
}

.push__done-icon {
  color: var(--success);
}

.push__nav-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
}

.push__nav-row--end {
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .push__review {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Below tablet width there isn't room for a form + sidebar side by side, so
     the picker becomes a collapsible drawer above the form (order-first: a
     first-time user sees it right away; it collapses once they've picked). */
  .push__details {
    grid-template-columns: minmax(0, 1fr);
  }

  .push__picker {
    order: -1;
    padding: var(--s-4);
  }

  .push__picker-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-3);
    width: 100%;
    padding: 0;
    background: none;
    border: 0;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }

  .push__picker-toggle:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
  }

  .push__picker-toggle-label {
    flex: none;
  }

  .push__picker-summary {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--fs-sm);
    font-weight: 400;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
  }

  .push__picker-chevron {
    flex: none;
    display: inline-flex;
    color: var(--text-muted);
  }

  .push__picker-body {
    display: none;
    flex-direction: column;
    gap: var(--s-4);
  }

  .push__picker--open .push__picker-body {
    display: flex;
  }

  .push__source-list {
    max-height: 280px;
  }
}

@media (max-width: 640px) {
  .push__step-label {
    display: none;
  }

  .push__step-btn {
    justify-content: center;
  }

  .push__step--current .push__step-label {
    display: inline;
  }

  .push__steps {
    flex-wrap: nowrap;
  }

  .push__step {
    min-width: 0;
  }

  .push__step--current {
    flex: 2 1 0;
  }

  .push__panel {
    padding: var(--s-4);
  }
}
