/* ==========================================================================
   Embody Her — application, confirmation and the private purchase page.
   Loaded only by /apply/*. Colour and type come from tokens.css; if you find
   yourself typing '#', reach for a token instead.
   ========================================================================== */

/* ----------------------------------------------------------------- hero */
.apply-hero { padding-bottom: 0; }
.apply-hero__title { display: block; }
.apply-hero__title .bolt { margin-left: .16em; vertical-align: baseline; }
.apply-hero__title .bolt svg { width: .32em; height: .64em; }

/* --------------------------------------------------------------- layout */
.apply-layout {
  display: grid;
  gap: clamp(var(--space-6), 5vw, var(--space-8));
  align-items: start;
  padding-block: clamp(2rem, 5vw, var(--space-8));
}
@media (min-width: 62rem) {
  .apply-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .apply-aside { position: sticky; top: 6rem; }
}
.apply-main { min-width: 0; }
.apply-aside { min-width: 0; }
.apply-aside__title { font-size: var(--scale-step-2); }

/* ------------------------------------------------------------ the form */
/* A fieldset is the right element for a group of questions, but it is a poor
   flex container — Safari has ignored display:flex on it for years and the
   legend escapes the layout. Block plus owl margins behaves everywhere. */
.apply-block { display: block; min-inline-size: 0; margin: 0; }
.apply-block > * + * { margin-top: var(--space-5); }
.apply-block__legend {
  float: none; width: auto; padding: 0;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: var(--weight-mono-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-sun-ink);
}

.apply-pair { display: grid; gap: var(--space-4); }
@media (min-width: 34rem) {
  .apply-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.apply-q { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: var(--space-4); }
.apply-q__n {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-sun-ink);
  padding-top: .1rem;
  border-top: 1px solid var(--color-haze);
}
.apply-q textarea { resize: vertical; min-height: 7rem; line-height: 1.6; }
@media (max-width: 33.94rem) {
  .apply-q { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .apply-q__n { border-top: none; }
}

/* The validation summary renders an empty list when there is nothing wrong;
   without this the page opens with a bordered box containing no text. */
.apply-summary.validation-summary-valid { display: none; }
.apply-summary p { margin: 0; }

/* Off-screen rather than display:none — a bot that reads the computed style
   skips a hidden field, and then the honeypot catches nothing. */
.apply-hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.apply-send { align-items: flex-start; }
.note-quiet { font-size: .88rem; color: var(--color-dusk); max-width: 44ch; }

/* --------------------------------------------------------- price recap */
.apply-prices { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.apply-prices li {
  display: grid; gap: .15rem;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-haze);
}
.apply-prices li:last-child { padding-bottom: 0; border-bottom: none; }
.apply-prices__amount {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-display-black);
  font-size: var(--scale-step-3);
  line-height: 1;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}
.apply-prices__label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: var(--tracking-mono-label);
  text-transform: uppercase;
  color: var(--color-sun-ink);
}

/* -------------------------------------------------------------- steps */
.apply-steps {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--space-4);
  counter-reset: apply-step;
  font-size: .95rem;
}
/* Indent-and-absolute rather than a two-column grid. A grid here puts every
   bare text node beside <strong> into its own anonymous grid item, which lands
   in the 2rem number column and wraps the sentence one word per line. */
.apply-steps li {
  counter-increment: apply-step;
  position: relative;
  padding-left: 2.6rem;
}
.apply-steps li::before {
  content: counter(apply-step, decimal-leading-zero);
  position: absolute; left: 0; top: .3rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: var(--tracking-mono-label);
  color: var(--color-sun-ink);
}

/* ------------------------------------------------- purchase + closed */
.apply-deadline { font-size: .8rem; color: var(--color-sun-ink); letter-spacing: .04em; }
.apply-buy { margin-top: auto; }
.apply-who {
  font-family: var(--font-display);
  font-size: var(--scale-step-2);
  color: var(--color-ink);
  line-height: 1.15;
}
.apply-closed h1 { font-size: clamp(2rem, 5vw, var(--scale-step-4)); }

.apply-done__links { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
