/*
 * Styles for the public pages: front page, signup and confirmation.
 * Tokens only (see site.css); shared components come from site.css.
 */

.hero { display: grid; gap: var(--space-2); }

.section-title { font-size: var(--fs-h3); }

.form label, .form .check-row { margin: 0; }
.form .check-row { cursor: pointer; }
.field-pair .field { min-width: 0; }

/* The front page's Sign in card: its heading is centred over the full-width button. */
.sign-in-card h2 { text-align: center; }

.alert h2 { margin: 0 0 var(--space-1); font-size: var(--fs-body); }
.branch-notice { margin: 0; }

/*
 * Front page with a branding photo. One column on a phone (text, photo, signup, sign-in). From
 * 48em: text and signup on the left, the photo beside them, then coming events and news (when
 * there are any), the Sign in card and the text size below both across the full width.
 */
.front-split {
  display: grid;
  gap: var(--space-4);
  grid-template-areas: "text" "photo" "cta" "signin" "size";
}
.front-split > .hero { grid-area: text; }
.front-split > .front-photo { grid-area: photo; }
.front-split > .front-cta { grid-area: cta; }
.front-split > .front-signin { grid-area: signin; }
.front-split > .front-size { grid-area: size; }
.front-split > .front-content { grid-area: content; }
.front-split:has(> .front-content) { grid-template-areas: "text" "photo" "cta" "content" "signin" "size"; }
.front-photo img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.site-main:has(.front-split) { max-width: var(--max-width-wide); }

@media (min-width: 48em) {
  .front-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto auto;
    grid-template-areas: "text photo" "cta photo" "signin signin" "size size";
    column-gap: var(--space-5);
  }
  .front-split:has(> .front-content) {
    grid-template-rows: auto 1fr auto auto auto;
    grid-template-areas: "text photo" "cta photo" "content content" "signin signin" "size size";
  }
  .front-split > .front-cta { align-self: end; }
  .front-photo { align-self: start; }
}
