/* Apply page · call for projects + register for an evening.
   Scoped to body.p-apply; builds on css/fot.css (tokens, type, .field, .btn, .ok). */

/* ---------- page head: the call at a glance + two doors ---------- */
body.p-apply .ap-head .callhead { gap: 22px; }
body.p-apply .ap-h1 { max-width: 15ch; }
body.p-apply .ap-big span { white-space: nowrap; }
body.p-apply .ap-lead { max-width: 44ch; }
body.p-apply .glance { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--gap); margin-top: clamp(44px, 5vw, 80px); }
body.p-apply .glance > div { display: flex; flex-direction: column; gap: 10px; padding: 18px 0 26px; border-top: 1px solid var(--fg); min-width: 0; }
body.p-apply .glance dt { font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
body.p-apply .glance dd { margin: 0; display: flex; flex-direction: column; gap: 6px; }
body.p-apply .glance b { font: 700 clamp(22px, 2vw, 30px)/1.08 var(--sans); letter-spacing: -.015em; }
body.p-apply .glance dd span { font-size: 17px; line-height: 1.45; color: var(--fg-2); }

body.p-apply .doors { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(20px, 2.4vw, 36px); }
body.p-apply .door { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 20px; padding: 22px 24px; border: 1px solid var(--fg); min-height: 112px; overflow: hidden; isolation: isolate; transition: color .35s var(--ease); }
body.p-apply .door::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateY(101%); transition: transform .45s var(--ease); z-index: -1; }
body.p-apply .door:hover::before, body.p-apply .door:focus-visible::before { transform: none; }
body.p-apply .door:hover, body.p-apply .door:focus-visible { color: var(--on-accent); }
body.p-apply .door--a { background: var(--fg); color: var(--bg); }
body.p-apply .door__k { grid-column: 1 / -1; font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
body.p-apply .door b { font: 700 clamp(24px, 2.3vw, 36px)/1 var(--sans); letter-spacing: -.02em; text-transform: uppercase; }
body.p-apply .door__a { font: 500 clamp(28px, 2.6vw, 40px)/1 var(--mono); transition: transform .45s var(--ease); }
body.p-apply .door:hover .door__a { transform: translateY(5px); }

/* ---------- sections 01–03 ---------- */
body.p-apply .ap-note { max-width: 42ch; color: var(--fg-2); }
body.p-apply .ap-list { display: flex; flex-direction: column; gap: 6px; }
body.p-apply .ap-list + .ap-list { margin-top: 18px; }
body.p-apply .ap-list .small { margin-top: 10px; }
body.p-apply .ap-wide { grid-column: 2 / 12; }
body.p-apply .ap-steps { margin-top: 24px; }
body.p-apply .ap-deadline { margin-top: clamp(40px, 5vw, 72px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; padding-top: 14px; border-top: 1px solid var(--fg); }
body.p-apply .ap-deadline .cd { font-size: clamp(28px, 3vw, 44px); }
body.p-apply .ap-sticky { align-self: start; position: sticky; top: 120px; }
body.p-apply .ap-flag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; max-width: 42ch; font-size: var(--t-small); line-height: 1.5; color: var(--fg-2); padding-top: 14px; border-top: 1px solid var(--fg-3); }
body.p-apply .ap-flag .lbl { color: var(--accent-t); }
body.p-apply .ap-callnote { margin-bottom: 26px; padding: 16px 18px; border: 1px solid var(--fg); font-size: 17px; line-height: 1.5; }
body.p-apply .ap-callnote b { display: block; }
body.p-apply .ap-callnote a { display: inline-flex; margin-top: 8px; font: 500 13px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; min-height: 32px; align-items: center; }

/* fields: hints under the labels; visible field boundaries (3:1); a clear focus */
body.p-apply .field label { flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 3px; font-size: 17px; }
body.p-apply .field .hint, body.p-apply .field .opt { font-size: var(--t-small); line-height: 1.4; }
body.p-apply .check label { font-size: var(--t-small); line-height: 1.5; display: block; }
body.p-apply .check label .hint { display: block; margin-top: 2px; }
body.p-apply .field input:not([type="checkbox"]):not([type="radio"]), body.p-apply .field select, body.p-apply .field textarea { border-bottom-color: var(--fg-3); }
body.p-apply .field input:hover, body.p-apply .field select:hover, body.p-apply .field textarea:hover { border-bottom-color: var(--fg); }
body.p-apply .field input:not([type="checkbox"]):not([type="radio"]):focus, body.p-apply .field select:focus, body.p-apply .field textarea:focus { border-bottom: 2px solid var(--accent); }
body.p-apply .field:focus-within > label { color: var(--accent-t); }
body.p-apply .field:focus-within > label .hint, body.p-apply .field:focus-within > label .opt { color: var(--fg-2); }
body.p-apply .field.is-invalid input:not([type="checkbox"]):not([type="radio"]), body.p-apply .field.is-invalid select, body.p-apply .field.is-invalid textarea { border-bottom: 2px solid var(--err); }
body.p-apply .field__err { font-size: var(--t-small); }
body.p-apply .check input { border-color: var(--fg); }
body.p-apply .check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.p-apply .form legend { align-items: baseline; gap: 12px; }
body.p-apply .form legend .small { font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--fg-2); }
body.p-apply .ap-file { font: 500 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-2); }
body.p-apply .ap-file:empty { display: none; }
body.p-apply .form__foot p { font-size: var(--t-small); line-height: 1.5; }

/* error summary (both forms) */
body.p-apply .errsum { margin-bottom: 28px; padding: 18px 20px; border: 1px solid var(--err); border-left-width: 4px; }
body.p-apply .errsum:focus { outline: 2px solid var(--accent); outline-offset: 3px; }
body.p-apply .errsum p { font: 700 17px/1.3 var(--sans); color: var(--err); }
body.p-apply .errsum ul { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
body.p-apply .errsum a { display: inline-flex; align-items: center; min-height: 32px; font-size: 17px; text-decoration: underline; text-underline-offset: 3px; }
body.p-apply .errsum a:hover { color: var(--accent-t); }

/* confirmations */
body.p-apply .ok { gap: 18px; }
body.p-apply .ok__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 6px; }

/* ---------- register for the evenings ---------- */
body.p-apply .reg .reg__head { grid-column: 1 / 6; grid-row: 1; align-self: start; }
body.p-apply .reg .reg__head .body { max-width: 40ch; }
body.p-apply .reg__know { grid-column: 1 / 6; grid-row: 2; align-self: start; display: flex; flex-direction: column; gap: 6px; margin-top: 36px; }
body.p-apply .reg__know .checks li { font-size: var(--t-small); line-height: 1.5; padding: 12px 0; }
body.p-apply .reg__know .checks li::before { content: ""; inline-size: 7px; block-size: 7px; margin-top: 8px; background: var(--accent); }
body.p-apply .reg__know .more { margin-top: 6px; align-self: flex-start; }
body.p-apply .reg__wrap { grid-column: 7 / 13; grid-row: 1 / span 3; align-self: start; display: flex; flex-direction: column; }

/* progress: the festival line, three stops (numbers beside the dots, never inside) */
body.p-apply .rprog { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 28px; padding-top: 4px; }
body.p-apply .rprog::before { content: ""; position: absolute; left: 6px; right: 6px; top: 33px; height: 2px; background: var(--fg-3); }
body.p-apply .rprog::after { content: ""; position: absolute; left: 6px; top: 33px; height: 2px; width: calc((100% - 12px) * var(--rp, 0)); background: var(--accent); transition: width .6s var(--ease); }
body.p-apply .rprog li { position: relative; z-index: 1; display: grid; grid-template-columns: auto; gap: 8px; justify-items: start; font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
body.p-apply .rprog li:nth-child(2) { justify-items: center; text-align: center; }
body.p-apply .rprog li:nth-child(3) { justify-items: end; text-align: right; }
body.p-apply .rprog__n { color: var(--fg-2); }
body.p-apply .rprog i { inline-size: 14px; block-size: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--fg-3); transition: box-shadow .3s, background .3s, transform .35s var(--ease); }
body.p-apply .rprog__t { font: 700 15px/1.2 var(--sans); letter-spacing: 0; text-transform: none; color: var(--fg); }
body.p-apply .rprog li.is-done i { box-shadow: inset 0 0 0 2px var(--accent); }
body.p-apply .rprog li.is-done .rprog__n { color: var(--accent-t); }
body.p-apply .rprog li.is-cur i { background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); transform: scale(1.15); }
body.p-apply .rprog li.is-cur .rprog__n { color: var(--accent-t); }
body.p-apply .rprog li:not(.is-cur):not(.is-done) .rprog__t { color: var(--fg-2); font-weight: 400; }

body.p-apply .rnotice { margin-bottom: 24px; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--soft); font-size: 17px; line-height: 1.45; }
body.p-apply .rnotice a { text-decoration: underline; text-underline-offset: 3px; }

/* step heads */
body.p-apply .rstep__hd { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 0 0 14px; border-bottom: 1px solid var(--fg); }
body.p-apply .rstep__q { margin: 0; font: 700 clamp(26px, 2.4vw, 34px)/1.05 var(--sans); letter-spacing: -.015em; outline: none; }
body.p-apply .rstep__q:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
body.p-apply .rstep__c { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap; }
body.p-apply .rstep__help { font-size: 17px; line-height: 1.45; }
body.p-apply .rstep__nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
body.p-apply .rback { min-height: 44px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
body.p-apply .rback:hover { color: var(--accent-t); }

/* ---- step 1: pick your evenings ---- */
body.p-apply .rpick { display: flex; flex-direction: column; gap: 26px; }
body.p-apply .rnight { display: flex; flex-direction: column; gap: 14px; }
body.p-apply .rnight + .rnight { padding-top: 26px; border-top: 1px solid var(--hair); }
body.p-apply .rnight__h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; }
body.p-apply .rnight__n { font: 700 clamp(48px, 4vw, 64px)/.85 var(--sans); letter-spacing: -.05em; color: var(--accent-t); min-inline-size: 1.25em; }
body.p-apply .rnight__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body.p-apply .rnight__d { margin: 0; font: 700 22px/1.15 var(--sans); letter-spacing: -.01em; }
body.p-apply .rnight__th { font-size: 17px; line-height: 1.35; color: var(--fg-2); }
body.p-apply .rnight__st { justify-self: end; text-align: right; color: var(--fg-2); max-width: 30ch; }

body.p-apply .ropts { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 10px; }
body.p-apply .ropts__or { align-self: center; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
/* evening 4: the screening only — the card keeps the left column, a note sits where the second option would be */
body.p-apply .ropts--one .ropts__one { grid-column: 3; align-self: center; max-width: 30ch; padding: 0 6px; font-size: 15px; line-height: 1.45; color: var(--fg-2); }
body.p-apply .ropt__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }   /* the work-in-progress chips, on their own line under the title */
/* a day: the morning at ICR New York (its own Add), then the evening (talks or the screening, one of them) */
body.p-apply .rpart { margin-top: 4px; font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
body.p-apply .rpart + .ropts { margin-top: -4px; }
body.p-apply .ropt { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; border: 1px solid var(--fg-3); cursor: pointer; min-width: 0; transition: border-color .3s, background-color .3s; }
body.p-apply .ropt:hover { border-color: var(--fg); }
body.p-apply .ropt__top { display: flex; align-items: center; gap: 10px; }
body.p-apply .ropt__pi { inline-size: 28px; block-size: 28px; color: var(--accent-t); flex: none; }
body.p-apply .ropt__k { font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }
body.p-apply .ropt__t { font: 700 clamp(20px, 1.6vw, 24px)/1.12 var(--sans); letter-spacing: -.015em; }
body.p-apply .ropt__t i { font-style: italic; }
body.p-apply .ropt__ses { display: flex; flex-direction: column; }
body.p-apply .ropt__ses li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--hair); font-size: 15px; line-height: 1.4; }
body.p-apply .ropt__ses em { font: 500 12px/1.65 var(--mono); font-style: normal; letter-spacing: .02em; color: var(--fg-2); }
body.p-apply .ropt__g { font-size: 17px; line-height: 1.45; }
body.p-apply .ropt__w { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--hair); font: 500 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-2); }
/* the toggle: Add → Going (the label carries the state); Switch when the other option of the evening is picked */
body.p-apply .ropt__b { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; margin-top: 4px; padding: 0 16px; border: 1.5px solid var(--fg); background: transparent; color: var(--fg); font: 500 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s; }
body.p-apply .ropt__b:hover { background: var(--fg); color: var(--bg); }
body.p-apply .ropt__b:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.p-apply .ropt__bi { position: relative; inline-size: 14px; block-size: 14px; flex: none; }
body.p-apply .ropt__bi::before, body.p-apply .ropt__bi::after { content: ""; position: absolute; background: currentColor; transition: transform .35s var(--ease); }
body.p-apply .ropt__bi::before { left: 0; right: 0; top: 6px; height: 2px; }
body.p-apply .ropt__bi::after { top: 0; bottom: 0; left: 6px; width: 2px; }
body.p-apply .ropt.is-other .ropt__b { border-style: dashed; }
body.p-apply .ropt.is-other .ropt__bi::before { top: 6px; height: 2px; }
body.p-apply .ropt.is-other .ropt__bi::after { transform: scaleY(0); }   /* a dash: switch, not add */
/* going: violet edge + viewfinder corners, the button filled with a check */
body.p-apply .ropt.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
body.p-apply .ropt.is-on::before, body.p-apply .ropt.is-on::after { content: ""; position: absolute; inset: -6px; pointer-events: none; color: var(--accent);
  background:
    linear-gradient(currentColor, currentColor) left top / 16px 2px no-repeat,
    linear-gradient(currentColor, currentColor) left top / 2px 16px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 16px 2px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 2px 16px no-repeat; }
body.p-apply .ropt.is-on::after { transform: scaleY(-1); }
body.p-apply .ropt.is-on .ropt__b { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
body.p-apply .ropt.is-on .ropt__bi::before { left: 1px; right: auto; top: 7px; width: 6px; height: 2px; transform: rotate(45deg); transform-origin: left center; }
body.p-apply .ropt.is-on .ropt__bi::after { left: 4px; top: 1px; bottom: auto; width: 2px; height: 13px; transform: rotate(40deg); transform-origin: bottom center; }
/* closed */
body.p-apply .rnight.is-closed .ropt { border-style: dashed; cursor: not-allowed; }
body.p-apply .rnight.is-closed .ropt:hover { border-color: var(--fg-3); }
body.p-apply .rnight.is-closed .rnight__n { color: var(--fg-2); }
body.p-apply .ropt__b:disabled { cursor: not-allowed; border-style: dashed; border-color: var(--fg-3); color: var(--fg-2); background: transparent; }
body.p-apply .ropt__b:disabled .ropt__bi { display: none; }
body.p-apply .rnight__st.is-closed { color: var(--fg); }

/* the summary bar: sticks to the bottom while the picker is on screen */
body.p-apply .rbar { position: sticky; bottom: calc(var(--edge) + 10px + env(safe-area-inset-bottom, 0px)); z-index: 6; margin-top: 4px; }
body.p-apply .rbar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 14px 14px 18px; background: var(--fg); color: var(--bg); box-shadow: 0 18px 50px rgba(0, 0, 0, .18); }
body.p-apply .rbar__t { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 180px; }
body.p-apply .rbar .lbl { color: var(--bg); }
body.p-apply .rbar__s { font: 700 17px/1.35 var(--sans); letter-spacing: -.005em; }
body.p-apply .rbar__go { background: var(--bg); color: var(--fg); flex: none; }
body.p-apply .rbar__go[aria-disabled="true"] { background: transparent; color: var(--bg); box-shadow: inset 0 0 0 1px var(--bg); }
body.p-apply .rbar__go[aria-disabled="true"]::before { content: none; }
body.p-apply .rbar__go:focus-visible { outline: 2px solid var(--bg); outline-offset: 3px; }   /* the bar is --fg: a --bg ring reads on it */
body.p-apply .rbar.has-n .rbar__in { animation: rBump .5s var(--ease); }
body.p-apply .rbar__err { display: block; font-size: 17px; }
body.p-apply .rbar__err:not(:empty) { margin-top: 8px; padding: 10px 14px; background: var(--bg); border-left: 4px solid var(--err); }
@keyframes rBump { 0% { transform: translateY(6px); } 100% { transform: none; } }

/* ---- step 2: your details ---- */
body.p-apply .rform { gap: 24px; }
body.p-apply .rticket { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; background: var(--soft); color: var(--fg); }
body.p-apply .rticket .lbl { color: var(--fg); }
body.p-apply .rticket__list { display: flex; flex-direction: column; }
body.p-apply .rticket__list li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 2px 14px; padding: 10px 0; border-top: 1px solid var(--hair); }
body.p-apply .rticket__list li:first-child { border-top: 0; }
body.p-apply .rticket__list b { font: 700 18px/1.3 var(--sans); grid-row: span 2; }
body.p-apply .rticket__list span { font-size: 17px; line-height: 1.35; }
body.p-apply .rticket__m { font-size: var(--t-small) !important; color: var(--fg-2); }
body.p-apply .rticket__m .nw { font-size: inherit !important; white-space: nowrap; }
body.p-apply .rticket__btns button { min-height: 40px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; color: var(--fg); }
body.p-apply .rticket__btns button:hover { color: var(--accent-t); }
body.p-apply .rfoot { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--fg); }
body.p-apply .rprev { color: var(--accent-t); }
body.p-apply .rsubmit { min-height: 56px; }

/* step mode (with JS): one step at a time */
body.p-apply .reg__wrap.is-steps[data-cur="1"] .rform,
body.p-apply .reg__wrap.is-steps:not([data-cur="1"]) .rpick { display: none; }
body.p-apply .reg__wrap.is-steps[data-cur="1"] .rpick, body.p-apply .reg__wrap.is-steps[data-cur="2"] .rform { animation: rIn .55s var(--ease) both; }
body.p-apply .rpick[hidden], body.p-apply .rform[hidden] { display: none !important; }
@keyframes rIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- step 3: the confirmation ---- */
body.p-apply .rok { gap: 20px; }
body.p-apply .rok__hd { align-items: center; }
body.p-apply .rok__t { outline: none; }
body.p-apply .rres { display: flex; flex-direction: column; border-top: 1px solid var(--fg); }
body.p-apply .rres__r { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 220px); align-items: start; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); outline: none; }
body.p-apply .rres__r:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.p-apply .rres__r.is-new { animation: rNew 1.6s var(--ease); }
body.p-apply .rres__n { font: 700 40px/.9 var(--sans); letter-spacing: -.05em; color: var(--accent-t); }
body.p-apply .rres__x { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
body.p-apply .rres__x b { font: 700 19px/1.25 var(--sans); }
body.p-apply .rres__w { font-size: 17px; line-height: 1.35; }
body.p-apply .rres__a { font: 500 12px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--fg-2); }
body.p-apply .rres__s { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
body.p-apply .rres__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 4px 10px; font: 500 12px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--fg); }
body.p-apply .rres__chip::before { content: ""; inline-size: 8px; block-size: 8px; background: currentColor; flex: none; }
body.p-apply .is-confirmed .rres__chip, body.p-apply .is-preview .rres__chip { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
body.p-apply .is-waitlist .rres__chip { border-style: dashed; }
body.p-apply .is-already .rres__chip { background: var(--soft); border-color: var(--fg-3); }
body.p-apply .is-closed .rres__chip { border-style: dashed; border-color: var(--fg-3); color: var(--fg-2); }
body.p-apply .is-closed .rres__n, body.p-apply .is-already .rres__n { color: var(--fg-2); }
body.p-apply .rres__note { font-size: var(--t-small); line-height: 1.45; color: var(--fg-2); }
@keyframes rNew { 0% { background: color-mix(in srgb, var(--accent) 16%, transparent); } 100% { background: transparent; } }

/* add all */
body.p-apply .rall { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
body.p-apply .rall__h { font-size: var(--t-small); line-height: 1.5; color: var(--fg-2); max-width: 52ch; }
body.p-apply .rall__k { font: 700 18px/1.2 var(--sans); }
body.p-apply .rall__l { display: flex; flex-wrap: wrap; gap: 8px; }
body.p-apply .rall__l .cal__b { min-height: 48px; border: 1px solid var(--fg); }

/* would you also like to come to… */
body.p-apply .ralso { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 18px; border: 1px solid var(--fg); }
body.p-apply .ralso__t { margin: 0; font: 700 clamp(22px, 1.9vw, 28px)/1.1 var(--sans); letter-spacing: -.015em; }
body.p-apply .ralso__h { font-size: 17px; line-height: 1.45; color: var(--fg-2); }
body.p-apply .ralso__msg { padding: 10px 14px; border-left: 4px solid var(--err); background: var(--soft); font-size: 17px; line-height: 1.45; }
body.p-apply .ralso__msg a { text-decoration: underline; text-underline-offset: 3px; }
body.p-apply .ralso__ts { min-height: 65px; }
body.p-apply .ralso__list { display: flex; flex-direction: column; }
body.p-apply .ralso__i { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--hair); }
body.p-apply .ralso__d { display: flex; flex-direction: column; gap: 2px; }
body.p-apply .ralso__d b { font: 700 19px/1.2 var(--sans); }
body.p-apply .ralso__d span { font-size: var(--t-small); line-height: 1.35; color: var(--fg-2); }
body.p-apply .ralso__bs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
body.p-apply .ralso__b { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 2px 10px; min-height: 56px; padding: 8px 14px; border: 1.5px solid var(--fg); text-align: left; color: var(--fg); transition: background-color .3s var(--ease), color .3s var(--ease); }
body.p-apply .ralso__b:hover { background: var(--fg); color: var(--bg); }
body.p-apply .ralso__b:hover .ralso__pi { color: var(--bg); }
body.p-apply .ralso__b:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.p-apply .ralso__b[aria-disabled="true"] { cursor: progress; }
body.p-apply .ralso__b.is-busy { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
body.p-apply .ralso__b.is-busy .ralso__pi { color: var(--on-accent); }
body.p-apply .ralso__pi { grid-row: span 2; inline-size: 24px; block-size: 24px; color: var(--accent-t); }
body.p-apply .ralso__bt { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
body.p-apply .ralso__f { font-size: var(--t-small); line-height: 1.3; font-style: italic; }

body.p-apply .rok__next { display: flex; flex-direction: column; border-top: 1px solid var(--fg); }
body.p-apply .rok__next li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 17px; line-height: 1.45; }
body.p-apply .rok__next li > span:first-child { font: 500 13px/1.75 var(--mono); color: var(--accent-t); }
body.p-apply .rok__next li > span:first-child::before { content: "0"; }
body.p-apply .rclosed { display: flex; flex-direction: column; gap: 14px; padding: 30px; border: 1px solid var(--fg); }

/* the right-edge route never covers the forms */
@media (min-width: 1181px) { body.p-apply .wrap { padding-right: max(var(--gut), 150px); } }

/* ---------- breakpoints ---------- */
@media (max-width: 1080px) {
  body.p-apply .ap-wide { grid-column: 1 / -1; }
  body.p-apply .ap-sticky, body.p-apply .reg .reg__head { position: static; grid-column: 1 / -1; }
  body.p-apply .reg__wrap { grid-column: 1 / -1; grid-row: auto; margin-top: 40px; }
  body.p-apply .reg__know { grid-column: 1 / -1; grid-row: auto; margin-top: 56px; }
  body.p-apply .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body.p-apply .glance { grid-template-columns: 1fr; }
  body.p-apply .glance > div { padding: 14px 0 18px; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 14px; }
  body.p-apply .glance dt { padding-top: 5px; }
  body.p-apply .glance b { font-size: 21px; }
  body.p-apply .doors { grid-template-columns: 1fr; }
  body.p-apply .door { min-height: 92px; padding: 18px; }
  body.p-apply .rnight__h { grid-template-columns: auto minmax(0, 1fr); }
  body.p-apply .rnight__st { grid-column: 1 / -1; justify-self: start; text-align: left; }
  body.p-apply .ropts { grid-template-columns: 1fr; }
  body.p-apply .ropts__or { justify-self: center; padding: 2px 0; }
  body.p-apply .ropts--one .ropts__one { grid-column: auto; padding: 0; }
  body.p-apply .ropt { padding: 16px; }
  body.p-apply .rbar__in { padding: 12px 12px 12px 14px; gap: 10px 14px; }
  body.p-apply .rbar .lbl { display: none; }
  body.p-apply .rbar__s { font-size: 16px; }
  body.p-apply .rbar__go { min-height: 48px; padding: 0 14px; gap: 10px; }
  body.p-apply .rticket { padding: 16px; }
  body.p-apply .rticket__list li { grid-template-columns: 1fr; }
  body.p-apply .rticket__list b { grid-row: auto; }
  body.p-apply .rstep__q { font-size: 26px; }
  body.p-apply .rres__r { grid-template-columns: 40px minmax(0, 1fr); }
  body.p-apply .rres__n { font-size: 32px; }
  body.p-apply .rres__s { grid-column: 2; }
  body.p-apply .ralso { padding: 18px 14px 14px; }
  body.p-apply .ralso__i { grid-template-columns: 1fr; }
  body.p-apply .ralso__bs { grid-template-columns: 1fr; }
  body.p-apply .ok { padding: 22px 18px; }
}
@media (max-width: 400px) {
  body.p-apply .glance > div { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  body.p-apply .reg__wrap.is-steps .rpick, body.p-apply .reg__wrap.is-steps .rform, body.p-apply .rbar.has-n .rbar__in, body.p-apply .rres__r.is-new { animation: none !important; }
  body.p-apply .ropt, body.p-apply .ropt__b, body.p-apply .ropt__bi::before, body.p-apply .ropt__bi::after, body.p-apply .ralso__b { transition: none; }
}

body.p-apply .status.is-closed i { background: var(--fg-3); animation: none; }

/* ---------- first screen: both doors visible (fresh-eyes fix) ----------
   Phones get the doors right under the lead (source order). At ≥1081 px the doors stack in the empty right column
   beside the H1 and lead, so [B] Register for an evening is on the first screen. */
@media (min-width: 1081px) {
  body.p-apply .ap-head .callhead { grid-column: 1 / 8; grid-row: 1; }
  body.p-apply .ap-head .doors { grid-column: 8 / 13; grid-row: 1; align-self: end; grid-template-columns: 1fr; margin-top: 0; }
}

/* landing on #register (hash links and door [B]): the spacing moves from padding to margin, so the scroll offset
   lands with "04 Register for an evening" right under the header instead of the end of the application form */
body.p-apply #register { padding-top: 0; margin-top: var(--sec); }

/* reading floor: what registrants and applicants have to read (rules, consent, notes) at 17 px; mono units at 12 px */
body.p-apply .reg__know .checks li,
body.p-apply .check label,
body.p-apply .form__foot p,
body.p-apply .ap-flag,
body.p-apply .reg__head .small { font-size: 17px; line-height: 1.5; }
body.p-apply .cd small, body.p-apply .status small { font-size: 12px; }

/* ---------- review fixes, 14 Oct ---------- */
/* headings break on balanced lines; the half-column H2s a size down so "Ten fields, one PDF" doesn't strand a word */
body.p-apply .ap-h1, body.p-apply .door b, body.p-apply .rnight__st, body.p-apply .rstep__q, body.p-apply .ralso__t { text-wrap: balance; }
body.p-apply .sh--half .h2 { font-size: clamp(38px, 4vw, 58px); text-wrap: balance; }
body.p-apply .rbar__s { text-wrap: pretty; }
/* a field you Tab to never hides under the sticky summary bar */
html:has(body.p-apply) { scroll-padding-bottom: 150px; }
/* photo consent: a short label (the checkbox's name), the explanation under it, linked by aria-describedby */
body.p-apply .check label .opt { margin-left: 8px; font-size: var(--t-small); color: var(--fg-2); }
body.p-apply .check label .field__l2 { display: block; margin-top: 2px; }
body.p-apply .field__more { margin: 8px 0 0 36px; max-width: 62ch; font-size: var(--t-small); line-height: 1.5; color: var(--fg-2); }
body.p-apply .field--photo .check label { font-weight: 700; }
body.p-apply .field--photo .check label .field__l2 { font-weight: 400; }
