/* Quick sign-up page (/sign/): the form first. Layout only; components come from unbreak.css and site.css. */

/* Desktop: copy on the left, the sheet on the right. Phones: headline, sheet, Kelly, then the three paragraphs. */
.back-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,480px);grid-template-areas:"head sheet" "pars sheet" "voice sheet";grid-template-rows:auto auto 1fr;column-gap:var(--space-5);row-gap:var(--space-4);align-items:start}
/* Not .section-head: on phones site.css dissolves .join .section-head (display:contents), which would scatter the headline below the sheet. */
.back-head{grid-area:head;display:flex;flex-direction:column;gap:var(--space-3)}
.back-head>*{margin:0}
.back-pars{grid-area:pars;display:grid;gap:var(--space-3);max-width:var(--measure)}
.back-voice{grid-area:voice}
.back .sheet{grid-area:sheet}
.back-head h1{font-family:var(--font-display);font-weight:400;font-size:clamp(42px,5.6vw,72px);line-height:1.02;letter-spacing:1.5px;text-transform:uppercase}

.back-par{display:grid;gap:6px}
.back-par>*{margin:0}
.back-par .eyebrow{color:var(--text)}
.back-plan{padding-left:1.4em;display:grid;gap:6px}

/* Kelly: a second sheet of paper, smaller than the form and tilted the other way */
.back-voice{margin:0;max-width:580px;box-sizing:border-box;background:#fbf8ef;color:#3a2266;padding:24px 26px;box-shadow:5px 8px 0 rgba(58,34,102,.28);transform:rotate(-.7deg);display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px 24px;align-items:center}
.back-voice img{width:150px;height:188px;object-fit:cover;border:7px solid #fff;box-sizing:border-box;box-shadow:4px 6px 0 rgba(58,34,102,.4);transform:rotate(-2deg)}
.back-voice figcaption{display:grid;gap:10px;min-width:0}
.back-voice p{margin:0}
.back-voice .q{font-family:var(--font-display);font-size:27px;line-height:1.08;letter-spacing:.5px;text-transform:uppercase;color:#524180}
.back-voice .who{font-weight:700;font-size:15px;line-height:1.35}
.back-voice .who span{display:block;font-weight:500}
.back-voice .ctx{font-size:15px;line-height:1.45}

/* The sheet: the ask as the header, the handwritten line under it, supporters at the foot */
.back.join .sheet-kicker{font-size:34px;letter-spacing:1px;color:#524180;font-weight:400}
.back .sheet-head .hand-line{margin-top:6px;font-size:32px;color:#524180}
.back.join .sheet .ub-form{margin-top:0;padding-top:0;border-top:0}
.back-backers{margin-top:var(--space-3);padding-top:16px;border-top:2px dashed #3a2266;display:grid;gap:10px}
.back-backers-h{margin:0;font-weight:900;font-size:12px;letter-spacing:2px;text-transform:uppercase}
.back-org{justify-self:start;display:inline-flex;align-items:center;min-height:44px;font-weight:700;font-size:15px;color:#3a2266;text-underline-offset:4px}

/* Supporters ticker: one slow row, paused on hover or focus, a still grid when motion is off */
.tick{overflow:hidden}
.tick-track{display:flex;gap:10px;width:max-content;animation:back-tick 34s linear infinite}
.tick:hover .tick-track,.tick:focus-within .tick-track{animation-play-state:paused}
.tick-set{display:flex;gap:10px;list-style:none;margin:0;padding:0}
.tick-set li{flex:none;width:150px;height:60px;box-sizing:border-box;padding:8px 10px;background:#fff;display:flex;align-items:center;justify-content:center}
.tick-set img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}
@keyframes back-tick{to{transform:translateX(calc(-50% - 5px))}}
@media (prefers-reduced-motion:reduce){.tick-track,.tick-set{flex-wrap:wrap;width:auto}.tick-set[aria-hidden]{display:none}}
[data-theme="plain"] .tick-track{animation:none}
[data-theme="plain"] .tick-track,[data-theme="plain"] .tick-set{flex-wrap:wrap;width:auto}
[data-theme="plain"] .tick-set[aria-hidden]{display:none}

/* What you're backing: a hover card per action on desktop, an accordion on phones */
.back-acts{position:relative}
.back-acts .wrap{display:grid;gap:var(--space-3)}
.back-acts .hint{margin:0;color:var(--text)}
.back-actions{list-style:none;margin:var(--space-2) 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:28px 24px}
.back-actions li{position:relative}
.back-act{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:14px;width:100%}
.back-act:focus-visible{outline:3px solid var(--focus);outline-offset:6px}
.back-act .act-icon{width:104px;height:104px}
.back-act .lbl{display:flex;flex-direction:column;gap:4px;min-width:0}
.back-act .n{font-weight:900;font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--display)}
.back-act .t{font-weight:700;font-size:20px;line-height:1.25}
.back-act .chev{display:none}
.back-panel{position:absolute;left:0;bottom:calc(100% + 14px);z-index:2;width:260px;box-sizing:border-box;background:#fbf8ef;color:#3a2266;padding:14px 16px;box-shadow:4px 6px 0 #3a2266;font-size:15px;line-height:1.4;opacity:0;visibility:hidden;transition:opacity .15s}
.back-panel p{margin:0}
.back-panel .ask{display:none}
.back-actions li:nth-child(n+4) .back-panel{left:auto;right:0}
.back-actions li:hover .back-panel,.back-actions li:focus-within .back-panel,.back-actions li.is-open .back-panel{opacity:1;visibility:visible}
.back-more{justify-self:start;display:inline-flex;align-items:center;min-height:44px;font-weight:700;font-size:17px;color:var(--display);text-underline-offset:4px}

@media (max-width:900px){
  .back-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "sheet" "voice" "pars";grid-template-rows:none}
  .back.join .sheet-kicker{font-size:30px}
  .back .sheet-head .hand-line{font-size:27px}
  .back-voice{grid-template-columns:110px minmax(0,1fr);padding:20px;gap:14px 16px}
  .back-voice img{width:110px;height:138px;border-width:6px}
  .back-voice figcaption{display:contents}
  .back-voice .q{font-size:22px}
  .back-voice .who,.back-voice .ctx{grid-column:1/-1}
  .tick-set li{width:132px}

  .back-acts .hint{display:none}
  .back-actions{grid-template-columns:minmax(0,1fr);gap:14px}
  .back-actions li{border-bottom:1px solid rgba(255,255,255,.3);padding-bottom:14px}
  .back-act{flex-direction:row;align-items:center;gap:16px;min-height:68px}
  .back-act .act-icon{flex:none;width:68px;height:68px;border-width:4px}
  .back-act .lbl{flex:1;gap:2px}
  .back-act .n{font-size:11px}
  .back-act .t{font-size:19px;line-height:1.2}
  .back-act .chev{display:block;flex:none;width:24px;height:24px;color:var(--display);transition:transform .15s}
  .back-act[aria-expanded="true"] .chev{transform:rotate(180deg)}
  .back-panel,.back-actions li:nth-child(n+4) .back-panel{position:static;width:auto;background:none;color:inherit;box-shadow:none;padding:12px 0 0 84px;opacity:1;visibility:visible;display:none}
  .back-actions li.is-open .back-panel{display:grid;gap:8px}
  .back-panel .chg{font-weight:700;font-size:16px}
  .back-panel .ask{display:block}
  .back-panel .ask b{font-weight:900;color:var(--display)}
}
