/* Edit profile on one page (2026-11-08, Shawn: "Simplify my profile page") and the editor's phone fixes from the
   walk at 390 wide. builder.html loads it after app.css. */

/* one column, no steps rail */
.build-layout.one-col { display: block; max-width: 760px; }
.one-col .panel-head { margin-bottom: 1rem; }
.one-col .panel-head h1 { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.15; margin: 0; }
.one-page > .sub-h:first-child { margin-top: 0; }
.one-page .one-h { font-family: var(--font-display); font-size: 1.15rem; margin: 1.8rem 0 .4rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem; }
.one-page .one-h .saved-mark { font-family: var(--font); }

/* open dates: one row that opens the calendar */
.dates-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .75rem 1rem; margin: .2rem 0 .4rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); text-decoration: none; }
.dates-row:hover { border-color: var(--ink-3); }
.dates-row b { display: block; font-size: .95rem; }
.dates-row .hint { display: block; color: var(--ink-3); font-size: .85rem; }
.dates-go { font-size: 1.6rem; line-height: 1; color: var(--ink-3); }

/* the one More */
.one-page .extras.more { margin-top: 2rem; }
.one-page .extras.more > summary { min-height: 52px; font-size: 1.02rem; }
.one-page .extras.more .one-h { margin-top: 2.2rem; }

/* each field says Saved on its own */
.saved-mark { margin-left: .5rem; font-family: var(--font); font-size: .78rem; font-weight: 600; color: var(--ok); animation: saved-in .2s ease-out; }
@keyframes saved-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .saved-mark { animation: none; } }

@media (max-width: 640px) {
  /* a field under 16px makes iOS zoom the page on every tap */
  .ptile figcaption input, .rel-edit input, .rel-edit select, .rel-edit textarea, .stat-row input, .rider-add input, .rider-row input { font-size: 16px; }
  /* photo tiles: the buttons wrap instead of pushing Remove out of the tile */
  .ptile-actions { flex-wrap: wrap; row-gap: .35rem; }
  /* show cards: a long title wraps and the kind chip stays whole inside the card */
  .hl-card .card-text { min-width: 0; flex: 1 1 auto; }
  .hl-card .card-text b { overflow-wrap: anywhere; }
  .chip-sm { white-space: nowrap; }
  /* releases: the title gets the whole first row, the four buttons go under it (titles were cut to three letters) */
  .rel-card .card-text { flex: 1 1 calc(100% - 92px); }
  .rel-card .card-play { margin-left: auto; }
  /* one page: photos are a strip you swipe, so the name and genres sit near the top instead of under seven tiles */
  .one-page .photo-board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: .5rem; }
  .one-page .photo-board .ptile { scroll-snap-align: start; }
  .one-page .ptile.is-cover { grid-column: auto; }
  .one-page .ptile.is-cover img { aspect-ratio: 4 / 5; }
  .one-page .photos .dropzone { padding: .9rem 1rem; }
  /* taps: nothing under 32px on a phone (taste.py counted 189 on a full kit) */
  .builder-page .icon-btn { width: 36px; height: 36px; }
  .builder-page .card-order .icon-btn { width: 34px; height: 34px; }
  .builder-page .swatch { width: 36px; height: 36px; }
  .builder-page .chip .x { display: inline-grid; place-items: center; min-width: 32px; min-height: 32px; margin: -8px -12px -8px -6px; }
}

/* a first kit's steps: the step title is the page's h1 (2026-11-08 app walk), with the h2 look it had */
.panel-head h1.step-h { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: .3rem; }
@media (max-width: 720px) { .panel-head h1.step-h { font-size: 1.7rem; } }

/* Edit profile, calmer (CEO 2026-11-08 after #285, taste.py counted 29 pills): genre ideas are plain words, Make cover is a
   text link, the selected genres and the add rows lose the round ends. */
.one-page .suggest .chip { background: none; border-color: transparent; box-shadow: none; border-radius: 0; padding: 0 .55rem; color: var(--ink-2); font-weight: 500; }
.one-page .suggest .chip:hover { color: var(--accent); }
.one-page .chip.on { border-radius: 8px; }
.one-page .ptile-actions .btn-sm { background: none; border-color: transparent; box-shadow: none; border-radius: 0; padding: 0 .35rem; text-decoration: underline; text-underline-offset: 3px; }
.one-page .add-link { border-radius: var(--radius-sm); }
/* every real control 44px on a phone (Apple's minimum; the 36px of #285 was the first step) */
@media (max-width: 640px) {
  .one-page :is(.icon-btn, .card-order .icon-btn, .grip, .swatch) { width: 44px; height: 44px; flex: none; }
  .edit-mode .bar :is(.btn-sm, .help-btn, .brand) { display: inline-flex; align-items: center; min-height: 44px; }
  .edit-mode .bar .help-btn { min-width: 44px; justify-content: center; }
  .one-col :is(.btn, .chip, .choice, .type-card, .add-link, .priv-switch) { min-height: 44px; }
  .one-page :is(input:not([type=checkbox], [type=radio], [type=color], [type=range], [type=file]), select) { min-height: 44px; }
  .one-page .chip .x { min-width: 44px; min-height: 44px; margin: -12px -14px -12px -6px; }
  .one-col .live-text a { display: inline-flex; align-items: center; min-height: 44px; }
  /* nothing under 12px: the link cards' Followers label and the COVER tag */
  .one-page .card-followers { font-size: .8rem; text-transform: none; letter-spacing: 0; }
  .one-page .ptile .cover-tag { font-size: .78rem; }
}
