/* The form pages (hackathon, Local Art and its thank-you page; design-community gate 2) on the support forms' layout
   (support.css: .sp-top, .sp-head, .sp-tool, .fm-go). Here: the form's top rule and the pieces these forms add. */
.sp-tool > form { border-top: 1px solid var(--ink); padding-top: 28px; }

.fm-fields { display: grid; row-gap: 32px; }
.fm-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--g); }
/* Two fields side by side share their rows (label, hint, well, error), so the wells line up when one has a hint or an error. */
.fm-pair > .ds-field { grid-row: span 4; grid-template-rows: subgrid; }
.fm-pair > .ds-field > label { grid-row: 1; }
.fm-pair > .ds-field > .ds-hint { grid-row: 2; }
.fm-pair > .ds-field > .ds-ctl { grid-row: 3; }
.fm-pair > .ds-field > .ds-err { grid-row: 4; }
.fm-pair-hint { grid-column: 1 / -1; margin-top: 10px; }
.fm-page .hidden { display: none; }
.fm-trap { position: absolute; left: -9999px; }

.fm-go { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.fm-aside { font-size: var(--t-body-s); line-height: 1.5; color: var(--ink-2); }
.fm-aside a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sp-tool form > .ds-msg.fm-base { margin: 0 0 32px; }

/* The quality check's list (today's partial, sent by the server) inside a warning; hidden while it is empty. */
.fm-chef:has(#chef_suggestions:empty) { display: none; }
.fm-chef label { display: block; font-weight: 650; }
.fm-chef p { margin-top: 6px; }

.sp-head .fm-another { margin-top: 28px; }

/* With a picture (body.fm-pictured, the design's form page): words and form in the left seven columns, the plate on the right,
   held in view while the form scrolls; under 1100 px the plate follows the form. Without it, the Claim layout above applies. */
.fm-pictured .sp-head { grid-column: 1 / span 7; grid-row: 1; position: static; }
.fm-pictured .sp-head h1 { max-width: 12em; }
.fm-pictured .sp-head .lede { max-width: 44ch; }
.fm-pictured .sp-tool { grid-column: 1 / span 7; grid-row: 2; margin-top: 48px; }
.fm-plate { grid-column: 8 / span 5; grid-row: 1 / span 2; align-self: start; position: sticky; top: 40px; margin: 0; }
.fm-plate img { display: block; width: 100%; height: auto; background: var(--well); }
.fm-plate .cap { margin-top: 14px; }
@media (max-width: 1100px) {
  .fm-pictured .sp-head, .fm-pictured .sp-tool { grid-column: 1 / span 12; }
  .fm-plate { grid-column: 1 / span 12; grid-row: 3; position: static; margin-top: 64px; max-width: 720px; }
}

@media (max-width: 760px) {
  .fm-pair { grid-template-columns: 1fr; row-gap: 32px; }
  .fm-pair > .ds-field { grid-row: auto; grid-template-rows: none; }
  .fm-pair > .ds-field > * { grid-row: auto; }
  .fm-pair-hint { margin-top: -22px; }
}
