/* Round 17 additions: drop zones, foldable registrant page, judge nudges, Luma check-ins. Loads after portal.css. */

/* Drop zones (upload fields), after hairlineui.com/ui/drop-zone: one quiet panel, a ring icon, a title and a hint.
   The real file input covers the panel, so clicking anywhere browses and keyboard focus shows a ring. */
.drop { border: 0; padding: 0; gap: 10px; }
.drop.is-needed { background: none; }
.drop.is-needed .dz { border-color: var(--warn); background: var(--warn-soft); }
.dz { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 152px; padding: 20px; border: 1px solid var(--line-2); border-radius: 18px; background: color-mix(in srgb, var(--sunk) 70%, var(--surface)); text-align: center; transition: border-color 0.18s var(--ease-out), background-color 0.18s var(--ease-out); }
.dz-in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.dz:hover { border-color: var(--line-3); }
.dz:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.dz-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); transition: color 0.2s, border-color 0.2s, transform 0.25s var(--ease-spring); pointer-events: none; }
.dz-t { font-size: 14px; font-weight: 500; color: var(--ink); pointer-events: none; }
.dz-h { font-size: 12.5px; color: var(--ink-3); max-width: 46ch; pointer-events: none; }
.dz-h u { color: var(--ink-2); text-decoration-color: var(--line-3); text-underline-offset: 2px; }
.dz-over { display: none; }
.dz-touch { display: none; }
@media (hover: none) { .dz-desk { display: none; } .dz-touch { display: inline; } }
body.is-dragging-files .dz:not(.is-off) { border-style: dashed; border-color: var(--brand-200); }
.dz.is-over { border-style: solid !important; border-color: var(--brand) !important; background: var(--brand-50); }
.dz.is-over .dz-ic { color: var(--brand); border-color: var(--brand-200); transform: translateY(-2px) scale(1.06); }
.dz.is-over .dz-idle { display: none; }
.dz.is-over .dz-over { display: inline; color: var(--brand-700); }
.dz.is-off { opacity: 0.6; min-height: 0; padding: 16px; }
.dz.is-off .dz-in { cursor: default; }
.dz.is-off .dz-ic { color: var(--good); }
.dz.is-off .dz-t { font-weight: 400; color: var(--ink-2); font-size: 13.5px; }
.drop-files { display: grid; gap: 0; border-top: 1px solid var(--line); }
.drop-files .file { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 10px 4px; min-height: 44px; position: relative; }
.file.is-busy { opacity: 1; }
.file.is-busy .up-pct { font-variant-numeric: tabular-nums; font-family: var(--f-mono); font-size: 12px; }
.up-bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: var(--p, 0%); background: var(--brand); transition: width 0.2s linear; }
.up-err:empty { display: none; }
.dz-err { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; color: var(--crit); font-size: 13.5px; padding: 10px 4px 0; }
.dz-err svg { margin-top: 2px; }
.dz-err p { margin: 0 0 2px; }
.dz-err .ibtn { width: 26px; height: 26px; color: var(--crit); font-size: 17px; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .dz, .dz-ic, .up-bar { transition: none; } .dz.is-over .dz-ic { transform: none; } }

/* Registrant page: every section folds; one bar to fold or unfold them all */
.psec-bar { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: -12px; }
.person .card.psec > .stack { gap: 16px; }
.psec-r { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
details.ans-fold { padding-top: 0; gap: 0; border-top: 1px solid var(--line); }
details.ans-fold:first-of-type { border-top: 0; }
details.ans-fold > summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; align-items: center; }
details.ans-fold > summary::-webkit-details-marker { display: none; }
details.ans-fold > summary h3::before { content: "▸"; display: inline-block; width: 18px; color: var(--ink-3); font-size: 0.8em; transition: transform 0.18s var(--ease-out); }
details.ans-fold[open] > summary h3::before { transform: rotate(90deg); }
details.ans-fold > .ans-body { display: grid; gap: 18px; padding-bottom: 20px; }
@media (max-width: 640px) { .psec-bar { justify-content: flex-start; margin-bottom: 0; } }
.linked-date { margin: 0; font-weight: 500; font-size: 15px; } .linked-date .sub { font-size: 13px; }
.jnudge { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.jnudge .link svg { vertical-align: -2px; margin-right: 3px; }
.steps-sm { margin: 0; padding-left: 20px; font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }
.jstat { flex-wrap: wrap; row-gap: 4px; }
td details.more { border-top: 0; padding-top: 0; }
