/* Round 18 additions: eligibility checklist (registration and before the application), application checks. Loads after portal-2.css. */

.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Eligibility checklist: a bold panel with a running count, one card per rule, and a link to the full guidelines. */
.elig { position: relative; display: grid; gap: 14px; margin: 8px 0 4px; padding: 22px 22px 20px; border-radius: 20px; border: 1px solid var(--brand-200); background: linear-gradient(160deg, var(--brand-50), color-mix(in srgb, var(--brand-50) 35%, var(--surface)) 60%); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 10px 30px -18px color-mix(in srgb, var(--brand) 60%, transparent); overflow: hidden; }
.elig::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #7c3aed)); }
.elig.is-done { border-color: color-mix(in srgb, var(--good) 45%, var(--line-2)); background: linear-gradient(160deg, color-mix(in srgb, var(--good) 9%, var(--surface)), var(--surface) 65%); }
.elig.is-done::before { background: var(--good); }
.elig-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.elig-badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; box-shadow: 0 6px 16px -8px var(--brand); transition: background-color 0.25s var(--ease-out), transform 0.3s var(--ease-spring); }
.elig.is-done .elig-badge { background: var(--good); transform: rotate(-6deg) scale(1.04); }
.elig-ht h3 { margin: 2px 0 4px; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
.elig-ht p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 58ch; }
.elig-eyebrow { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-700); }
.elig.is-done .elig-eyebrow { color: var(--good); }
.elig-count { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); white-space: nowrap; padding: 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.elig-count b { color: var(--ink); font-weight: 500; }
.elig-meter { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); overflow: hidden; }
.elig-meter span { display: block; height: 100%; background: var(--brand); border-radius: inherit; transition: width 0.35s var(--ease-out); }
.elig.is-done .elig-meter span { background: var(--good); }
.elig-list { display: grid; gap: 8px; }
.elig-list .f { margin: 0; }
.elig .consent { margin: 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); transition: border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out); }
.elig .consent:hover { border-color: var(--line-3); }
.elig .consent:has(input:checked) { border-color: color-mix(in srgb, var(--good) 50%, var(--line-2)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 10%, transparent); }
.elig .consent:has(input[aria-invalid="true"]) { border-color: var(--crit); }
.elig .consent b { font-size: 15px; }
.elig .err.on { margin: 6px 4px 0; }
.cd-list { display: grid; gap: 4px; margin-top: 8px; }
.cd-list > span { position: relative; padding-left: 16px; }
.cd-list > span::before { content: ""; position: absolute; left: 3px; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.elig-link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--brand-700); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 3px; }
.elig-link:hover { text-decoration-color: currentColor; }
.elig-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.elig.gate { margin-top: 0; }
@media (max-width: 600px) {
  .elig { padding: 18px 16px 16px; }
  .elig-h { grid-template-columns: auto minmax(0, 1fr); }
  .elig-count { grid-column: 1 / -1; justify-self: start; }
  .elig-foot .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .elig-badge, .elig-meter span, .elig .consent { transition: none; } .elig.is-done .elig-badge { transform: none; } }

/* Application: long-answer minimums, the revenue stop, and the links group. */
.count .count-min { color: var(--ink-3); }
.count.is-short { color: var(--warn); }
.count.is-short .count-min { color: var(--warn); font-weight: 500; }
.stopbox { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--crit) 40%, var(--line-2)); background: color-mix(in srgb, var(--crit) 7%, var(--surface)); color: var(--ink); font-size: 14px; }
.stopbox svg { color: var(--crit); margin-top: 2px; }
.stopbox p { margin: 0; }
.stopbox b { color: var(--crit); }
.f.is-follow { padding-left: 14px; border-left: 2px solid var(--brand-200); }
.links-head { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.links-head .help { margin-top: 2px; }
.links-head.is-needed .help { color: var(--warn); }
.f.is-link { margin-top: 0; }
.rev-flag { display: block; margin-top: 4px; font-size: 12.5px; color: var(--crit); }

/* Home page image (round 19): replaces the QTIC poster when staff upload one in Content → Page text. */
.poster.has-img { margin: 0; background: var(--sunk); }
.poster.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.poster.has-img.is-natural { aspect-ratio: auto; }
.poster.has-img.is-natural img { position: static; height: auto; }
.himg-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: start; }
.himg-prev { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--sunk); }
.himg-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.himg-prev.is-natural { aspect-ratio: auto; }
.himg-prev.is-natural img { height: auto; }
.himg-prev.is-off img { opacity: 0.45; filter: grayscale(0.6); }
.himg-poster { display: grid; place-items: center; border: 0; background: radial-gradient(120% 90% at 50% 110%, #5b8cf5 0%, #2f6bed 45%, #1a46ae 100%); color: #fff; }
.himg-poster span { font-weight: 700; font-size: 48px; letter-spacing: -0.02em; }
#home-img .dz { min-height: 132px; }
@media (max-width: 640px) { .himg-grid { grid-template-columns: 1fr; } .himg-prev { max-width: 220px; } }

/* Judge review checklist (round 20): time on the entry, read to the end, files downloaded, comments on 1s. */
.rv { border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; background: color-mix(in srgb, var(--brand-50) 60%, var(--surface)); }
.rv.is-done { background: color-mix(in srgb, var(--good) 7%, var(--surface)); border-color: color-mix(in srgb, var(--good) 35%, var(--line-2)); }
.rv-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: baseline; margin-bottom: 8px; }
.rv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rv-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; }
.rv-list li b { font-weight: 500; }
.rv-list .sub { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.rv-ic { display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--line-3); color: #fff; }
.rv-list li.is-ok .rv-ic { background: var(--good); border-color: var(--good); }
.rv-list li.is-ok b { color: var(--ink-2); }
.rv-meter { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: var(--line); overflow: hidden; max-width: 220px; }
.rv-meter span { display: block; height: 100%; background: var(--brand); transition: width 0.9s linear; }
.rv-list li.is-ok .rv-meter span { background: var(--good); }
.rv-end { height: 1px; }
.cnote.is-needed { border-color: var(--warn); background: var(--warn-soft); }
#submit-score:disabled { opacity: 0.55; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .rv-meter span { transition: none; } }
