/* Herat Online School sign-up (/students): the volunteer portal's look, in Persian and right to left.
   Vazirmatn (declared in panel.css; SIL Open Font License, /assets/fonts/Vazirmatn-OFL.txt) leads here, so Persian
   digits and punctuation use it too; Switzer still carries the Latin. */
.join { --font: "Vazirmatn", "Switzer", Tahoma, system-ui, sans-serif; line-height: 1.7; }
/* Letter-spacing pulls joined Persian letters apart. */
.join h1, .join h2, .join h3, .join legend, .join .btn { letter-spacing: 0; }
.join h1 { line-height: 1.35; }
.join .step__title { line-height: 1.45; }
.join .step__intro, .join .step__prose p { text-align: start; line-height: 1.85; }
.join .step__intro p + p { margin-top: 8px; }
.join .field__label, .join .check { line-height: 1.6; }

/* Header: the school's name with the sun from its logo, over the AEA band. */
.join__head { display: grid; gap: 14px; }
.join__school { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; color: var(--on-navy-2); font-size: 15px; }
.join__school b { color: #fff; font-size: 17px; font-weight: 600; }
.join__school span[lang="en"] { font-family: "Switzer", sans-serif; font-size: 13px; letter-spacing: .02em; }
.join__sun { width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 30%, #fff1c4 0%, var(--gold) 55%, var(--gold-deep) 100%); box-shadow: 0 0 0 6px rgba(254,217,112,.12); }

/* Right-to-left fixes for rules written for the English pages. */
.join .hp { left: auto; right: 0; clip-path: inset(50%); }
.join .is-wizard .wizard__nav [data-next], .join .is-wizard .wizard__nav [data-send] { margin-left: 0; margin-right: auto; }
.join .checks { margin: 2px 0 4px; }
.join .ltr { direction: ltr; text-align: right; font-family: "Switzer", "Helvetica Neue", Arial, sans-serif; }
.join .ltr::placeholder { text-align: right; }
.join input[type="date"].ltr { text-align: right; }
.req { color: var(--red); font-weight: 400; }

/* A radio group laid out like a field. */
.join .form fieldset.choice { margin: 0 0 18px; min-width: 0; }
.join .form fieldset.choice legend { font-size: 15px; font-weight: 500; margin-bottom: 8px; }

.rules h3 { font-size: 17px; margin: 22px 0 6px; }
.rules p:first-child { color: var(--ink); }

.note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--blue-bg); color: var(--ink); font-size: 15px; }
.note .ico { width: 22px; height: 22px; margin-top: 3px; color: var(--navy-soft); }
.note b { font-weight: 600; }
.note p { color: var(--ink-2); margin-top: 4px; line-height: 1.8; }
.note--next { background: var(--ground); }

.join .field input[type="file"] { padding: 10px 12px; cursor: pointer; }
.join .field input[type="file"]::file-selector-button { font: 500 15px var(--font); margin-inline-end: 12px; padding: 8px 14px; border: 0; border-radius: 10px;
  background: var(--navy); color: #fff; cursor: pointer; }

/* Status page after the form and the identity check */
.signed { display: grid; gap: 16px; max-width: 720px; }
.signed .state h2 { margin-bottom: 10px; }
.signed .state p { line-height: 1.85; }
.code { display: grid; gap: 6px; }
.code__label { font-size: 15px; color: var(--ink-3); }
.code__value { font: 600 clamp(30px, 3.4vw, 40px)/1.1 "Switzer", sans-serif; letter-spacing: .14em; color: var(--navy); direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.code__hint { font-size: 15px; color: var(--ink-2); }
.tg { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.tg p { flex: 1 1 260px; color: var(--ink-2); }
.tg .btn { direction: ltr; font-family: "Switzer", sans-serif; }

@media (max-width: 640px) {
  .join .is-wizard .wizard__nav { flex-wrap: wrap; }
  .join .is-wizard .wizard__nav [data-send] { width: 100%; margin: 0; }
}
