/* Style screen — approved artist scroller + Artist Info (Vince 2026-10-09) */
#s-style .as-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 16px 4px; flex-shrink: 0;
}
#s-style .as-head h1.screen-title { margin: 0; font-size: 1.3rem; }
.as-mode { display: flex; background: rgba(43,42,40,0.07); border-radius: 12px; padding: 3px; flex-shrink: 0; }
.as-mode button {
  border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 600;
  color: var(--soft); min-height: 44px; padding: 0 12px; border-radius: 10px;
}
.as-mode button.on { background: #FFFCFA; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
#s-style .as-hint { margin: 2px 2px 6px; font-size: 16px; color: var(--soft); line-height: 1.35; flex-shrink: 0; }
#s-style .as-hint b { font-weight: 700; color: var(--ink); }
.as-scroll {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 0 14px 28px; scroll-snap-type: y proximity; scroll-padding-top: 150px; position: relative;
}
/* Vince 2026-10-23: the last row must scroll fully clear of the floating "Not sure? Suggest a style" pill
   (pill 52px tall, 14px above the tab bar; the screen already reserves the tab bar). Grouped + Accordion. Header unchanged. */
#s-style .as-scroll { padding-bottom: calc(52px + 14px + 28px); scroll-padding-bottom: calc(52px + 14px + 28px); }
.as-scroll.accordion { scroll-snap-type: none; }
.as-scroll::-webkit-scrollbar { width: 0; }
.as-school { margin-top: 10px; }
.as-school:first-child { margin-top: 0; }
.as-school-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 2px; min-height: 40px;
  background: linear-gradient(var(--bg) 78%, rgba(243,238,230,0));
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft);
  width: 100%; border: 0; font-family: inherit; text-align: left;
}
/* dates 14px → 18px (Vince 2026-10-23 7:10 PM: only if no school header wraps; measured one line at 320/360/390/430/1280) */
.as-school-dates { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 18px; }
.as-scroll.accordion .as-school-head {
  position: static; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  min-height: 52px; padding: 12px 12px; margin-bottom: 8px; color: var(--ink);
}
.as-scroll.accordion .as-school-head::after {
  content: ""; width: 8px; height: 8px; margin: 0 4px 4px 10px; flex-shrink: 0;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg); transition: transform .15s ease;
}
.as-scroll.accordion .as-school.collapsed .as-school-head::after { transform: rotate(-45deg); margin-bottom: 0; }
.as-scroll.accordion .as-school-head .as-school-name { flex: 1; }
.as-scroll.accordion .as-school.collapsed .as-school-body { display: none; }

.as-card {
  position: relative; display: block; width: 100%;
  background: #FFFCFA; border: 1px solid rgba(43,42,40,0.14); border-radius: 14px;
  padding: 10px; margin: 0 0 12px; text-align: left; font: inherit; color: inherit;
  scroll-snap-align: start;
}
.as-card:active { border-color: var(--ink); }
.as-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.as-thumb { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #e5ddd2; }
.as-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-info {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(243,238,230,0.94); color: var(--ink);
  font-family: var(--sans); font-size: 21px; font-weight: 700; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2); display: grid; place-items: center;
}
.as-meta { padding: 2px 4px 10px; }
.as-name { margin: 0; font-size: 21px; font-weight: 600; line-height: 1.2; }
/* 2026-10-23 senior rule: card, Suggest and Artist Info text >= 18px (was 14–17px) */
.as-period { margin: 4px 0 6px; font-size: 18px; color: var(--soft); }
.as-blurb { margin: 0; font-size: 18px; line-height: 1.35; }
/* Sargent school pointer (Vince 2026-10-24, DRAFT wording): one line, 18px, 48px tap target; opens the info page at the note */
.as-note-link {
  display: block; margin: 4px 0 0; padding: 0; min-height: 48px; border: 0; background: none;
  font: inherit; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--ink); text-align: left;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.as-note-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

/* Artist Info sheet */
.artist-sheet {
  position: absolute; inset: 0; z-index: 45; background: var(--bg);
  display: flex; flex-direction: column;
}
.artist-sheet[hidden] { display: none; }
.phone.has-booth .artist-sheet { top: 36px; }
.artist-sheet .sh-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 10px; flex-shrink: 0; }
.artist-sheet .sh-top h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; }
.artist-sheet .sh-close {
  width: 48px; height: 48px; flex-shrink: 0; border: 0; border-radius: 50%;
  background: rgba(43,42,40,0.08); color: var(--ink); font-size: 26px; line-height: 1;
}
.artist-sheet .sh-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px 20px; }
.sh-hero-wrap { width: 100%; height: 300px; border-radius: 14px; background: #e8e0d4; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sh-hero-wrap img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.sh-hero-wrap img.wide { width: 100%; }
.sh-license {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 18px; text-align: center; background: #3b3129; color: #efe7da;
  border: 2px solid #a67c52; border-radius: 14px; box-shadow: inset 0 0 0 4px #3b3129, inset 0 0 0 5px #a67c52;
}
.sh-license .lab { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #c99a66; margin-bottom: 4px; }
.sh-license .ln { font-size: 14px; line-height: 1.35; }
.sh-caption { margin: 8px 0 14px; font-size: 18px; line-height: 1.35; color: var(--soft); }
/* Sargent school explainer on the info page (Vince 2026-10-24, DRAFT wording) */
.sh-note { margin: 0 0 16px; padding: 12px 14px; font-size: 18px; line-height: 1.45; color: var(--ink);
  background: rgba(43,42,40,0.05); border-left: 4px solid var(--line); border-radius: 0 10px 10px 0; }
.sh-sec { margin: 0 0 16px; }
.sh-h { margin: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--soft); line-height: 1.3; }
.sh-p { margin: 0; font-size: 18px; line-height: 1.45; color: var(--ink); }
.artist-sheet .sh-foot { flex-shrink: 0; padding: 10px 16px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.artist-sheet .sh-use {
  /* Vince 2026-10-11: same primary button tokens as .btn-primary */
  width: 100%;
  min-height: var(--btn-primary-min-height);
  padding: var(--btn-primary-padding);
  border: 0;
  border-radius: var(--btn-primary-radius);
  background: var(--cta);
  color: var(--cta-text);
  font: inherit;
  font-size: var(--btn-primary-font-size);
  font-weight: var(--btn-primary-font-weight);
  letter-spacing: var(--btn-primary-letter-spacing);
  line-height: 1.2;
}

/* Creating: style not paintable yet (driven by artist-config.js paintableArtists) */
.creating-almost { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 8px 28px 0; text-align: center; }
.creating-almost[hidden] { display: none; }
.creating-almost p { margin: 0; font-size: 20px; line-height: 1.45; color: var(--ink); max-width: 320px; }
.creating-almost .btn-primary { max-width: 300px; /* size from --btn-primary-* (was 18px/56px) */ }
#s-creating.almost-ready .spinner,
#s-creating.almost-ready .create-track,
#s-creating.almost-ready #wait-cards,
#s-creating.almost-ready #wait-dots,
#s-creating.almost-ready .wait-note,
#s-creating.almost-ready #creating-title,
#s-creating.almost-ready #creating-live-error,
#s-creating.almost-ready #creating-retry-slot { display: none !important; }

/* ——— Suggest a style (LOCKED 2026-10-15 00:10 CT; design explore/2026-10-11-suggest-style rev 3) ——— */
/* Inline copy of the card .as-info button (cards unchanged), scaled to the hint line */
#s-style .as-info-inline {
  display: inline-grid; place-items: center; vertical-align: middle; position: relative; top: -2px; margin: 0 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(243,238,230,0.94); color: var(--ink);
  font-family: var(--sans); font-size: 14px; font-weight: 700; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
#s-style .sg {
  background: #FFFCFA; border: 1px solid rgba(43,42,40,0.14); border-radius: 16px;
  margin: 4px 0 6px; padding: 14px 14px 6px; overflow: hidden; scroll-snap-align: start;
  transition: opacity .25s ease, max-height .3s ease, margin .3s ease, padding .3s ease, box-shadow .4s ease;
  max-height: none; /* was 640px + overflow:hidden: two suggestions at 390 run ~700px+, clipping the 2nd "Paint in this style" (2026-11-02) */
}
#s-style .sg[hidden] { display: none; }
#s-style .sg.gone { opacity: 0; max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
#s-style .sg.flash { box-shadow: 0 0 0 3px rgba(184,131,74,0.55); }
#s-style .sg-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
#s-style button.sg-top { width: calc(100% + 28px); margin: -14px -14px 0; padding: 14px 14px 10px; min-height: 48px;
  background: none; border: 0; border-radius: 16px 16px 0 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
#s-style button.sg-top:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
#s-style .sg-text { flex: 1; min-width: 0; }
#s-style .sg-caret { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  background: rgba(43,42,40,0.07); color: var(--ink); }
#s-style .sg-caret svg { width: 22px; height: 22px; transition: transform .2s ease; }
#s-style .sg.collapsed .sg-caret svg { transform: rotate(-90deg); }
#s-style .sg.collapsed .sg-item { display: none; }
#s-style .sg.collapsed { padding-bottom: 0; }
#s-style .sg.collapsed button.sg-top { padding-bottom: 14px; border-radius: 16px; }
#s-style .sg-photo { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #e5ddd2; }
#s-style .sg-title { display: block; font-size: 20px; font-weight: 700; line-height: 1.2; }
#s-style .sg-sub { display: block; font-size: 16px; color: var(--soft); line-height: 1.3; margin-top: 2px; }
#s-style .ex-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border: 1.5px dashed var(--ochre); border-radius: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8A5E2E; vertical-align: 2px; }
#s-style .sg-item { border-top: 1px solid var(--line); padding: 12px 0; }
#s-style .sg-row { display: flex; gap: 12px; align-items: flex-start; }
#s-style .sg-col { min-width: 0; }
#s-style .sg-thumb { width: 88px; height: 88px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #e5ddd2; }
#s-style .sg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
#s-style .sg-name { font-size: 21px; font-weight: 600; line-height: 1.2; margin: 0; }
#s-style .sg-school { font-size: 18px; color: var(--soft); margin: 2px 0 4px; }
#s-style .sg-reason { font-size: 18px; line-height: 1.4; color: var(--ink); margin: 0; }
/* = app primary button standard (2026-10-11), full width like the sheet's "Use this style" */
#s-style .sg-go {
  margin-top: 10px; width: 100%; min-height: var(--btn-primary-min-height); padding: var(--btn-primary-padding);
  border: 0; border-radius: var(--btn-primary-radius); background: var(--cta); color: var(--cta-text); font: inherit; line-height: 1.2;
  font-size: var(--btn-primary-font-size); font-weight: var(--btn-primary-font-weight); letter-spacing: var(--btn-primary-letter-spacing); cursor: pointer;
}
#s-style .sh { background: linear-gradient(90deg, #ece5da 0%, #f6f1ea 50%, #ece5da 100%); background-size: 200% 100%;
  animation: sg-shimmer 1.6s ease-in-out infinite; border-radius: 8px; }
@keyframes sg-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { #s-style .sh { animation: none; } }
#s-style .sh-line { height: 16px; margin: 6px 0; }
#s-style .sh-btn { height: 52px; border-radius: 14px; margin-top: 10px; }
#s-style .sg.loading { min-height: 509px; }
/* "Not sure? Suggest a style" — only once the ready card has scrolled away */
#s-style .sg-again {
  position: absolute; left: 50%; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 12px); z-index: 4;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink);
  background: #FFFCFA; color: var(--ink); font: inherit; font-size: 18px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(43,42,40,0.18); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
#s-style .sg-again.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
#s-style .sg-again .q { color: var(--soft); font-weight: 600; }
/* 320px: keep the Suggest button "Paint in this style" on one line (same 20px/700 label, slimmer side padding; was sized for "Paint like Winslow Homer") */
@media (max-width: 359px) { #s-style .sg-go { padding-left: 8px; padding-right: 8px; } }
/* 2e (Oct 29 phone walk): the floating "Suggest a style" pill sat centred over the artist sample thumbnails (left column).
   It now hugs the right edge, clear of the thumbnails. */
#s-style .sg-again { left: auto; right: 12px; transform: translate(0, 12px); padding: 0 16px; }
#s-style .sg-again.show { transform: translate(0, 0); }
@media (max-width: 340px) { #s-style .sg-again .q { display: none; } }
/* QL-20: full artist names stay on one line on style cards (no-break spaces); shrink slightly on 320px if needed */
#s-style .as-name { overflow-wrap: normal; word-break: normal; }
@media (max-width: 340px) { #s-style .as-name { letter-spacing: -0.01em; } }
