/* The questions after joining. Built from the site's own tokens and controls
   (assets/new/new.css): the soft rows of Join Us, the tick of the filter menu, the kit's button. */
:root[data-theme="dark"] { color-scheme: dark; }
/* what is put away stays away, whatever display its own rule gives it (the words, the email box, the questions) */
[hidden] { display: none !important; }

/* after joining, the column starts at the top (the script holds the mark where it was): under the mark,
   first "You're on the list." and its line, then the questions alone, 32 under the mark */
.hero.asking { justify-content: flex-start; }
/* Confirmation headings receive focus for announcements, without a control's focus ring. */
#headline[tabindex="-1"]:focus { outline: none; }
.hero .survey { margin-top: -32px; }   /* 32 under the mark (its 28 less 32, and the hero's 36) */
/* beside the painting the question starts near the mark and the row with "1 of 4", Skip and Continue
   lines up with the painting's lower edge (the script sets the height), so there is room between the two */
.hero.asking { padding-bottom: 24px; }
.hero.asking .survey { display: flex; flex-direction: column; }
.survey .q { flex: 1; }
.survey .acts { margin-top: auto; padding-top: 24px; }

/* on the list: the page's thank-you (three lines, 76) stands where the email row (32) was. It gives the
   difference back, so the box keeps its height and the page above does not shift */
body.on-list .joined { margin-bottom: -44px; }
.survey { position: relative; }
.survey .q { position: relative; display: flex; flex-direction: column; outline: none; }
/* leaving the questions: a quiet ×, on the mark's line at the column's right edge (the mark sits 32 above
   the questions and is 40 tall); where the mark is put away (a short window, a phone) it sits beside the
   question's first line instead, and the question keeps clear of it */
.survey .quiet.close { position: absolute; top: -66px; right: -8px; width: 28px; height: 28px; padding: 0; justify-content: center; }
.survey .close svg { width: 14px; height: 14px; }
@media (max-height: 880px) { .survey .quiet.close { top: 0; } .survey .qbody h2 { padding-right: 28px; } }
.survey .q.locked { pointer-events: none; }
.survey .ask { display: flex; flex-direction: column; gap: 6px; }   /* 6 between the question and "Select all that apply" */
/* the question and its answers: one height for all (--q-min, the tallest, set by the script), so the
   button under them never moves */
.survey .qbody { display: flex; flex-direction: column; gap: 24px; min-height: var(--q-min, 0px); }   /* 24 between the question and its answers */
.survey .opts { display: flex; flex-direction: column; gap: 6px; }   /* one answer to a row (Yes above No) */
.survey .opt { position: relative; display: flex; align-items: center; width: 100%; min-height: 36px; margin: 0; padding: 8px 36px 8px 14px; border: 0; border-radius: 10px; background: var(--fill); color: var(--ink); font-family: inherit; font-size: var(--t14); font-weight: 400; line-height: var(--l20); letter-spacing: -.25px; text-align: left; cursor: pointer; transition: background-color .15s; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .survey .opt:hover { background: var(--fill-2); } }
.survey .opt:active, .survey .opt.on { background: var(--fill-3); }
.survey .opt:focus-visible, .survey .quiet:focus-visible { outline: 2px solid var(--button-ring); outline-offset: 2px; }
.survey .answer-text { box-sizing: border-box; display: block; width: 100%; min-height: 160px; margin: 0; padding: 14px; border: 0; border-radius: 10px; background: var(--fill); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; resize: vertical; }
.survey .answer-text:focus-visible { outline: 2px solid var(--button-ring); outline-offset: 2px; }
/* an answer is one line where the column allows; one that must wrap (a narrow phone) wraps evenly */
.survey .opt span { text-wrap: balance; }
.survey .opt .tick { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; opacity: 0; transition: opacity .15s; }
.survey .opt.on .tick { opacity: 1; }
/* one row under the answers: where you are on the left ("2 of 4"), Skip and the
   button on the right */
.survey .acts { display: flex; align-items: center; gap: 4px; }
.survey .acts .grow { flex: 1; }
.survey .count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.survey .quiet { position: relative; display: inline-flex; align-items: center; height: 32px; margin: 0; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-family: inherit; font-size: var(--t14); font-weight: 470; line-height: var(--l20); cursor: pointer; transition: color .15s; -webkit-tap-highlight-color: transparent; }
.survey .quiet::before { content: ""; position: absolute; inset: -6px 0; }
.survey .quiet:hover { color: var(--ink); }

/* the stacked layout (the site's own test): taller rows and buttons for a finger */
@media (max-width: 559px), (max-width: 899px) and (min-height: 501px), (orientation: portrait) and (max-width: 1100px) {
  .hero .survey { margin-top: 0; }
  .survey .quiet.close { top: 0; height: 32px; }
  .survey .qbody h2 { padding-right: 28px; }
  /* the phone's email row is 40 tall, so the thank-you gives back 36 here */
  body.on-list .joined { margin-bottom: -36px; }
  /* a short phone: the painting and the footer give way while the questions show (the script decides) */
  body.sv-tight .art-slot, body.sv-tight #site-foot { display: none; }
  .survey .opt { min-height: 44px; }
  .survey .acts .button, .survey .acts .skip { height: 40px; }
  /* the painting gives the questions its room, and takes it back, in one move (a square painting
     narrows with its height) */
  body.sv-moving .art-slot { transition: height .5s var(--ease), width .5s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  .survey .opt, .survey .opt .tick, .survey .quiet { transition: none; }
  body.sv-moving .art-slot { transition: none; }
}
