/* Register your interest on the shared plates (21 Oct 2026, pending review; site wide rollout of plate-glide).
   Composition only; behaviour is components/plates. Desktop with html.plates-on; phone unchanged.
   - The form is one full screen plate (Camille: "this should be one full page"): the page's header space moves inside
     it and the form sits centred in the room below the nav.
   - Closing: the gum sketch is the closing plate, one screen, the drawing filling it below the nav (never under it) from its foot; it glides over the
     form and the footer follows. */
@media(min-width:721px) and (prefers-reduced-motion:no-preference) {
 html.plates-on .register-page .utility-page { padding-top:0; }
 html.plates-on .register-page .register-layout { display:flex; flex-direction:column; justify-content:center; height:auto; min-height:100svh; box-sizing:border-box; padding:var(--header-h,72px) 0 24px; }
 html.plates-on .register-page .register-main { padding-top:0; }
 html.plates-on .register-closing { padding:calc(var(--header-h,72px) + 16px) 0 0; }
 html.plates-on .register-closing img { width:100%; height:100%; margin:0; object-fit:cover; object-position:center bottom; }
}

/* Closing as a full plate (Camille 22 Oct 2026: "this footer should be full plate - not blur at the top"). Desktop: the gum
   sketch fills the whole plate from the top of the screen, under the clear nav as the hero images do (was: a chalk band of
   header height plus 16px above it, and a fade over its top 4%). The watercolour's own unfinished edges are part of the
   drawing and stay. Phone unchanged. */
@media(min-width:721px) and (prefers-reduced-motion:no-preference) {
 html.plates-on .register-closing { padding:0; }
 html.plates-on .register-closing img { -webkit-mask-image:none; mask-image:none; }
}

/* Phone: the form holds still (Camille 23 Oct 2026: "the page scrolls and can easily trigger motion whilst people need to
   actually have the page steady to fill"). Register is a task page, so on phone it scrolls as a plain page: no plate snap
   (each time the keyboard opens or closes the screen resizes and a snapping page jumps to re-snap), no snap stops on its
   sections, and fields brought into view clear the bar. The closing and footer follow as ordinary page. Phone only. */
@media (max-width:720px) {
 :root:has(.register-page main[data-plates]) { scroll-snap-type:none !important; scroll-padding-top:calc(var(--header-h,88px) + 16px) !important; }
 .register-page main[data-plates] > *, .register-page footer.site-footer { scroll-snap-align:none !important; scroll-snap-stop:normal !important; }
}

/* REG01 and REG02 (Codex desktop review, 23 Oct 2026): a task page exception, as on phone (Camille 23 Oct 2026: people
   "need to actually have the page steady to fill"). The form plate is at least one screen and grows to its content, so on a
   short desktop, with the residence list open or with an error showing, it becomes a still strip: the reader scrolls the
   whole form, Register your interest and the privacy note included, before the closing rises (the plates engine re-measures
   as the form changes height). At 1440 by 1000 and 1100 by 1000 the empty form still fits one screen, unchanged. */

/* "Your details" above the fields (Camille 23 Oct 2026, Register copy): the site's small caps heading (DESIGN.md 3.2, the
   disclaimer heading role: DM 700, 9px, .14em, caps), in bark, 24px above the first row. */
.register-page .register-form__title { margin:0 0 24px; font:700 9px/1.4 var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--bark); }

/* Phone: more air between Register your interest and the fine print (Camille 23 Oct 2026: "add in a bit more space betweeb submit
   and disclaimer text"): 24px, was 16px. Phone only. */
@media (max-width:720px) { .register-page .register-actions__submit .form-fineprint { margin-top:24px !important; } }

/* Camille27Oct2026: the complete Register form is one plate. Use a viewport budget,
   with natural overflow on genuinely short screens rather than clipping inputs or errors. */
@media(min-width:721px) and (max-height:940px) {
 html.plates-on .register-page .register-layout { height:auto; min-height:100svh; padding-top:calc(var(--header-h,112px) + 32px) !important; }
 .register-page .register-heading { margin-bottom:24px; }
 .register-page .register-intro { margin-top:16px; line-height:1.5; }
 .register-page .register-form__title { margin-bottom:18px; }
 .register-page .register-form .field { margin-bottom:12px; }
 .register-page .field textarea { height:68px; min-height:68px; }
}


/* Short desktop: preserve 48px inputs and let validation expand the whole form. */
@media(min-width:721px) and (max-height:780px) {
 html.plates-on .register-page .register-layout { padding-top:calc(var(--header-h,112px) + 16px) !important; padding-bottom:16px; }
 .register-page .register-heading { margin-bottom:16px; }
 .register-page .register-intro { margin-top:12px; }
 .register-page .register-form__title { margin-bottom:12px; }
 .register-page .register-form .field { margin-bottom:8px; }
 .register-page .field textarea { height:56px; min-height:56px; }
 .register-page .register-submit { margin-top:4px; }
 .register-page .form-fineprint { margin-top:12px; }
}
