/* Standalone shell for the shared application form (/apply/apply.css).
   apply.css was written to sit inside the WordPress theme; this file supplies
   the little it relied on (base reset, fonts via site.css) and puts the form
   in the same ink hero and slate footer as the landing page. */

.apply-page { background: var(--white); }
.idt-apply { font-size: 17px; }

/* Ink hero instead of the theme's grey one */
.idt-apply .shell-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: var(--white);
  padding: clamp(28px, 4vw, 44px) 0 clamp(48px, 6vw, 80px);
}
.idt-apply .shell-hero .wrap, .idt-apply .dates .wrap { max-width: 880px; }
.idt-apply .shell-hero .hero-art { width: min(720px, 80vw); right: max(-220px, -24vw); top: 50%; transform: translateY(-50%); }
.idt-apply .shell-hero h1 { color: var(--white); font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -.014em; max-width: 16ch; }
.idt-apply .shell-hero .lead { color: var(--white); font-weight: 300; font-size: clamp(18px, 1.6vw, 21px); max-width: 46ch; margin-top: 20px; }
.idt-apply .shell-hero .label { color: var(--white); }

.idt-apply .back {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--white); font-size: 16px; text-decoration: underline; text-underline-offset: 4px;
  margin-bottom: clamp(28px, 5vw, 56px);
}
.idt-apply .back::before { content: ""; width: 9px; height: 9px; border-left: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(45deg); margin-left: 3px; }
.idt-apply .back:hover { text-decoration-thickness: 2px; }
.idt-apply .shell-hero :focus-visible, .idt-apply .dates :focus-visible { outline-color: var(--yellow); box-shadow: none; }

/* Same label as the landing page: the short yellow rule sits before the words */
.idt-apply .label { display: flex; align-items: center; gap: 14px; letter-spacing: .16em; }
.idt-apply .label::before { width: 36px; margin: 0; flex: none; }

/* The key dates band joins the hero on ink */
.idt-apply .dates { background: var(--ink); border-top: 1px solid var(--line-dark); padding: 28px 0 36px; }

/* The form reads as a document on white */
.idt-apply form { padding-top: 8px; }
/* Without Bootstrap a legend sits on the fieldset's top edge; float it back into the padding. */
.idt-apply legend { float: left; margin-bottom: 12px; }
.idt-apply legend + * { clear: left; }
.idt-apply legend h2 { font-size: clamp(28px, 3.4vw, 36px); }
.idt-apply .btn { font-family: var(--text); }
.idt-apply input[type=file] { font: inherit; max-width: 100%; }
.idt-apply .done h2 { font-size: clamp(34px, 4.4vw, 44px); }
/* apply.css's `.field > label` (block, bold) outranks `.choice` for the consent
   and full-time checkboxes: give them back the checkbox-row layout. */
.idt-apply .field > label.choice { display: flex; font-weight: 400; margin-bottom: 0; }

@media (max-width: 640px) {
  .idt-apply .shell-hero .hero-art { width: 240px; right: -80px; top: -60px; transform: none; opacity: 1; }
  .idt-apply .submit-row .btn { width: 100%; }
}
