/*
 * Redesigned email-entry step (SOUTHVILLE-1104 / FE4).
 *
 * LAYOUT ONLY. Colours, type, radii, the input field and the button all come from the
 * FE1 design system (SOUTHVILLE-1101): this file adds no component styling of its own —
 * it composes the shared header, .nd-field and .nd-button with the brand tokens, matching
 * the mockup through those shared styles rather than the mockup's ad-hoc pixel values.
 * Everything is scoped under `.new-design`; the legacy registration pages are untouched.
 */

/* Page column (the shared header renders above this). */
.new-design .nd-email {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--space-2) var(--space-6);
}

/* Top nav: "all programmes" back on the left, "more information" on the right. Both are
   quiet links that warm to the brand colour on hover, as in the mockup. */
.new-design .nd-email__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  padding: var(--space-2) 0 0;
}
.new-design .nd-email__navlink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.new-design .nd-email__navlink .nd-icon { width: 16px; height: 16px; }
@media (hover: hover) {
  .new-design .nd-email__navlink:hover {
    background-color: var(--brand-primary);
    color: var(--brand-primary-ink);
  }
}

/* Intro — centred programme title + the (admin-editable) registration text. */
.new-design .nd-email__intro {
  max-width: 40rem;
  margin: 0 auto;
  padding: var(--space-4) 0 0;
  text-align: center;
}
.new-design .nd-email__title {
  margin: 0 0 var(--space-1);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}
.new-design .nd-email__subtitle {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.new-design .nd-email__subtitle p { margin: 0 0 var(--space-1); }
.new-design .nd-email__subtitle p:last-child { margin-bottom: 0; }

/* Form panel — a narrow centred column: the field then the full-width CTA. */
.new-design .nd-email__panel {
  max-width: 28rem;
  margin: 0 auto;
  padding: var(--space-3) 0 0;
}
.new-design .nd-email__submit { width: 100%; }

/* Visually-hidden label — the placeholder is the visible cue, and the label keeps the
   input properly named for assistive tech (AC 4). Local to this screen so it needn't
   depend on a shared utility that isn't on this branch yet. */
.new-design .nd-email__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
