/* ============================================================
   Apply — adult form + youth form shared layout
   Form primitives (.fs, .field, .choice, .consent, .actions,
   .repeater, .conditional, .row) live in form.css.
   Pagehead lives in base.css.
   ============================================================ */

/* ---------- Layout: sidebar + form ---------- */
.apply-wrap {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--black);
  border-bottom: 1px solid var(--border-gold);
}
@media (min-width: 1024px) {
  .apply-wrap { grid-template-columns: 240px 1fr; }
}

/* ---------- Section nav ---------- */
.apply-nav {
  background: var(--charcoal);
  border-bottom: 1px solid var(--border-gold);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 1024px) {
  .apply-nav {
    border-bottom: none;
    border-right: 1px solid var(--border-gold);
    position: sticky;
    top: 56px;
    align-self: start;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    overflow-x: hidden;
  }
}

.apply-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
@media (min-width: 1024px) {
  .apply-nav__list { display: block; padding: 20px 0; }
}

.apply-nav__list li { flex-shrink: 0; }

.apply-nav__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  border-left: 2px solid transparent;
  white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
@media (min-width: 1024px) {
  .apply-nav__list a { padding: 12px 24px; white-space: normal; }
}

.apply-nav__n {
  color: var(--gold);
  font-weight: 700;
}

.apply-nav__list a:hover { color: var(--white); background: var(--olive-2); }

.apply-nav__list a.is-active {
  color: var(--white);
  border-left-color: var(--blue);
}

/* ---------- Form column ---------- */
.apply-form {
  padding: 40px var(--pad-x) var(--pad-y);
  max-width: 900px;
  width: 100%;
}
@media (min-width: 1024px) {
  .apply-form { padding: 56px 64px var(--pad-y); }
}

/* ---------- Assessment list ---------- */
.assess {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.assess__item {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}
.assess__item:last-child { border-bottom: none; padding-bottom: 0; }

.assess__head {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 12px;
}
.assess__n {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 24px;
}
.assess__q {
  font-size: 13px;
  line-height: 1.55;
  color: var(--white);
  margin: 0;
  max-width: 68ch;
}

/* ============================================================
   Recruitment Details — collapsible band
   Sits between pagehead and apply-wrap.
   ============================================================ */
.rd-wrap {
  background: var(--charcoal);
  border-bottom: 1px solid var(--border-gold);
}

.rd-wrap__summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px var(--pad-x);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  line-height: 1;
  background: var(--charcoal);
  transition: background 150ms ease;
  user-select: none;
}
.rd-wrap__summary::-webkit-details-marker { display: none; }
.rd-wrap__summary:hover { background: var(--olive-1); }
.rd-wrap__summary:focus-visible {
  outline: 1px solid var(--blue);
  outline-offset: -1px;
}

.rd-wrap__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.rd-wrap__hint {
  font-size: 9px;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.22em;
  display: none;
}
@media (min-width: 640px) {
  .rd-wrap__hint { display: inline; }
}

.rd-wrap__icon {
  margin-left: auto;
  width: 12px;
  height: 12px;
  position: relative;
  flex-shrink: 0;
}
.rd-wrap__icon::before,
.rd-wrap__icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 150ms ease;
}
.rd-wrap__icon::before { left: 0; right: 0; top: 5px; height: 2px; }
.rd-wrap__icon::after  { top: 0; bottom: 0; left: 5px; width: 2px; }
.rd-wrap[open] .rd-wrap__icon::after { transform: scaleY(0); }

.rd-wrap__body {
  padding: 32px var(--pad-x) 40px;
  background: var(--black);
}
@media (min-width: 768px) {
  .rd-wrap__body { padding: 40px var(--pad-x) 48px; }
}

.rd { max-width: 900px; }

.rd__p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--white);
  margin: 0 0 14px;
  max-width: 68ch;
}
.rd__p strong { color: var(--gold); font-weight: 600; }