/* The short screens inside each builder step (Shawn 2026-11-16: "THIS IS STILL HARD TO USE ... EACH STEP HAS 3 SUB
   PAGES"). A step is two or three screens with one job each; the tabs name them and the bottom button names the next. */
.step-sub[hidden] { display: none !important; }

.sub-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .25rem; padding: .25rem; margin: 0 0 1.2rem;
    max-width: 26rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.sub-tabs button { min-height: 44px; padding: 0 .5rem; border: 0; border-radius: 8px; background: none; color: var(--ink-2);
    font: inherit; font-size: .92rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.sub-tabs button:hover { color: var(--ink); }
.sub-tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(18, 18, 18, .14); }
.sub-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* on the Photos screen the logo follows the photos (the cover is the first thing asked for) */
.step-sub .logo-row { margin: 1.1rem 0 0; }

.panel-foot .foot-next, .panel-foot .skip { white-space: nowrap; }

@media (max-width: 600px) {
  /* less air above the first field: the steps, the live line and the tabs already take three rows */
  .builder-page .build-layout:not(.one-col) { padding-top: .75rem; gap: .7rem; }
  .sub-tabs { max-width: none; margin-bottom: .85rem; }
  .panel-head h1.step-h { font-size: 1.45rem; margin-bottom: .15rem; }
  /* the Publish step's bar holds Back, the next screen and the publish button: no arrows, so all three fit on one line */
  .panel-foot .skip { padding: .7rem .65rem; }
  .panel-foot .skip .arrow, .panel-foot .skip + .foot-next .arrow { display: none; }
  /* the switch beside the line already says Private */
  .live-bar .live-more { display: none; }
  /* "Start from your link" sits under the name now: one row, so the name, the link box and "I am a" share a screen */
  .step-sub .from-link { padding: .8rem .85rem .6rem; margin: .1rem 0 1.1rem; }
  .step-sub .from-link-row { flex-direction: row; }
  .step-sub .from-link-row .btn { flex: none; padding-inline: .9rem; }
}
@media (max-width: 380px) {
  .panel-foot .next-word { display: none; }
}
