/* Torah Umesorah house style - Institutional register with Product mechanics for the form.
   Rules applied (marketing brief + torah-umesorah-design skill, Sep 11 2026):
   navy anchor, bright blue as the ONE accent (current step badge, hero phrase, hairlines, focus),
   one type family (Raleway: light caps for titles, regular for body), navy header bars with white
   letterspaced caps for section headers, hairline rule under every title, no bare-white sections
   (near-white ground + white cards), small things contained in outlined pills, left-aligned.
   Sep 16 2026: swapped the header for the marketing-supplied convention banner image, page titles
   to bold sentence case, and the stepper for a full-bleed band with connected number badges;
   everything else stays on the house style above pending the rest of the theme comp. */
:root { color-scheme: light;
  /* Nov 10 2026: 2026 "Fingerprints" palette, taken from the conference artwork (deep green, fingerprint teal, sage, cream).
     The token names stay (navy, accent...) so nothing that uses them breaks. */
  --navy: #345A54;            /* anchor: the artwork's green */
  --navy-2: #0D2828;          /* hover / pressed: the banner's deep green */
  --accent: #3E8479;          /* the single accent: the fingerprint teal, darkened for contrast */
  --pale: #D3DCD7;            /* tints, hairlines, pattern: the fingerprint sage */
  --ground: #F6F7F0;          /* page ground: the artwork's cream */
  --tint: #FBFBF7;            /* soft panel fill on white cards */
  --ink: #16201E;             /* near-black green for body copy */
  --ink-soft: #4F5C58;        /* ~6.5:1 on ground */
  --line: #D9E0DB;            /* card hairlines */
  --line-strong: #7E8D88;     /* ~3.4:1 on ground: dividers that carry meaning */
  --field-border: #84928D;    /* ~3:1 on white: input affordance */
  --error: #B3261E;
  --error-bg: #FDECEA;
  --ok: #1E7A4A;
  --radius: 12px;
  --font: "Raleway", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* legacy aliases so nothing that still says maroon/gold breaks */
  --maroon: var(--navy); --maroon-2: var(--navy); --gold: var(--pale); --paper: var(--ground);
}
* { box-sizing: border-box; }
html { font-variant-numeric: lining-nums; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.5 var(--font); overflow-x: hidden; }
a { color: var(--navy); text-underline-offset: .15em; }
a:hover { color: var(--navy-2); }
strong { font-weight: 700; }
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---- header: navy texture background, two logos side by side ---- */
.site-header { background: var(--navy) url('/img/brand/header-bg-navy-texture.jpg') center / cover no-repeat; border-bottom: 1px solid var(--accent); padding: 1.65rem 0; }
.header-row { display: flex; justify-content: center; }
.brand { display: inline-flex; align-items: center; gap: 2.5rem; }
.brand-logo { display: block; width: auto; }
.brand-logo-tu { height: 5.2rem; }
.brand-logo-fingerprint { height: 6rem; }
main.wrap { padding-top: 1.75rem; padding-bottom: 3rem; }

/* ---- footer: navy band, book mark on open ground; column matches the form's width so the two edges line up ---- */
.site-footer { background: var(--navy); color: #fff; padding: 1.5rem 0 1.75rem; font-size: .88rem; margin-top: 2rem; }
.site-footer .wrap { max-width: 46rem; display: grid; grid-template-columns: 1fr auto; gap: .5rem 2rem; align-items: center; }
.site-footer a { color: #fff; }
.site-footer .foot-mark { grid-row: 1 / span 2; width: 4.5rem; height: auto; display: block; justify-self: end; }
.site-footer .foot-mark img { width: 100%; height: auto; display: block; }

/* ---- titles: bold navy, sentence case (2026 convention theme) ---- */
h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.5rem); line-height: 1.15; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--navy); margin: 0 0 1.5rem; padding-bottom: 0; border-bottom: 0; }
h1 .accent { color: var(--accent); font-weight: 800; }
.regform h1, .doc h1 { margin: 0 0 1.5rem; }
.finalstep { margin: 0 0 .35rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; }
/* section headers: solid navy bar, white letterspaced caps */
.bar, .doc h2, .admin h2:not(.card-title), .card-title, legend:not(.plain) { display: block; background: var(--navy); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: .45rem .8rem; border-radius: 6px; line-height: 1.3; }
.doc h2, .admin h2:not(.card-title) { margin: 2rem 0 .75rem; }
.doc h2 .opt { color: var(--pale); font-weight: 600; letter-spacing: .1em; }
.doc { max-width: 44rem; }
.doc .lede, .home-lede { font-size: 1.05rem; color: var(--ink-soft); }
.home-lede { margin: 0 0 1.25rem; }
.doc .fine { font-size: .85rem; color: var(--ink-soft); margin-top: 2rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.card-title { margin: 0 0 .75rem; display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.card-title .edit { font-size: .75rem; font-weight: 600; color: #fff; letter-spacing: .06em; }
.card-title + .card-title { margin-top: 1rem; }
.sub-title { margin: 1.1rem 0 .4rem; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); padding-bottom: .3rem; border-bottom: 1px solid var(--pale); }
.eyebrow { margin: 0 0 .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

/* ---- home: vertical split hero (copy left, navy patterned field right) ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(12rem, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 1.5rem; }
.hero-copy { padding: 1.75rem 1.75rem 1.5rem; }
.hero-copy h1 { border-bottom: 0; padding-bottom: 0; margin: 0 0 .75rem; font-size: clamp(2rem, 1.2rem + 3.6vw, 3.4rem); line-height: .98; letter-spacing: .05em; }
.hero-copy h1 sup { font-size: .42em; vertical-align: top; position: relative; top: .35em; letter-spacing: .02em; font-weight: 400; }
.hero-copy h1 .accent { display: inline-block; position: relative; font-weight: 700; letter-spacing: .02em; }
/* the one gesture: a chunky offset shadow behind the accent word (institutional register) */
.hero-copy h1 .accent::before { content: attr(data-word); position: absolute; left: .09em; top: .09em; color: var(--navy); z-index: -1; }
.hero-copy h1 .accent { z-index: 1; }
.hero-rule { width: 6rem; height: 1px; background: var(--accent); border: 0; margin: 0 0 1rem; }
.hero-lede { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.hero-field { background: var(--navy) url('/img/brand/tu-book-pattern.svg') center / 7.5rem auto repeat; min-height: 12rem; border-left: 1px solid var(--accent); }
/* the thank-you page (the Convention is over, Nov 2026; views/thanks.ejs): the same hero, the approved paragraphs under the rule */
.hero-copy .eyebrow sup { text-transform: none; font-size: .8em; line-height: 0; letter-spacing: .04em; }
.hero-text p { margin: 0 0 .85rem; font-size: 1.05rem; max-width: 36em; }
.hero-text p:last-child { margin-bottom: 0; }
.hero-text .hero-fine { margin-top: 1.25rem; color: var(--ink-soft); font-size: .95rem; }
.hero-fine a { white-space: nowrap; }   /* the phone number and the address never break at their hyphens */
.hero-thanks .eyebrow { text-wrap: balance; }   /* the Convention's long name in two even lines, no word left alone */
.home-grant { margin: 0 0 1.5rem; padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--pale); border-left: 4px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0; }
.home-grant p { margin: 0 0 .45rem; }
.home-grant p:last-child { margin-bottom: 0; }
.home-grant-title { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); padding-bottom: .35rem; margin-bottom: .6rem !important; border-bottom: 1px solid var(--pale); }
.home-grant-foot { font-size: .9rem; color: var(--ink-soft); padding-top: .2rem; }
.home-grant-foot a { font-weight: 700; }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.door { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-decoration: none; color: inherit; }
.door:hover { border-color: var(--navy); }
.door h2 { margin: 0 0 .75rem; font-size: 1.15rem; font-weight: 800; letter-spacing: .02em; color: var(--navy); padding-bottom: .5rem; border-bottom: 1px solid var(--pale); }
.door p { margin: 0 0 1.25rem; color: var(--ink-soft); flex: 1 1 auto; }
/* Both cards' buttons sit on the same baseline (bottom of the card), left-aligned with the text (David, Sep 3). */
.door .cta { display: inline-block; align-self: flex-start; margin-top: auto; background: var(--navy); color: #fff; padding: .7rem 1.4rem; border-radius: 999px; font-weight: 700; }
.door:hover .cta { background: var(--navy-2); }
.door.door-soon .cta { background: #fff; color: var(--ink-soft); border: 1px solid var(--line-strong); }
.ratesheet-link { margin: 1.5rem 0 0; color: var(--ink-soft); }

/* ---- stepper band: full-bleed pale blue strip under the header, connected number badges; current = the accent ---- */
.stepper-wrap { background: var(--ground); margin: -1.75rem 0 1.5rem; padding: 1.75rem 0; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.stepper { display: flex; list-style: none; padding: 0; margin: 0 auto; max-width: 46rem; }
.stepper li { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 .5rem; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); font-weight: 700; }
.stepper li:not(:last-child)::after { content: ''; position: absolute; z-index: 0; top: 1.15rem; left: 50%; width: 100%; height: 1px; background: var(--pale); }
.stepper li::before { content: attr(data-n); position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; margin-bottom: .5rem; border-radius: 8px; border: 2px solid var(--pale); background: #fff; color: var(--navy); font-size: 1rem; font-weight: 800; letter-spacing: 0; text-transform: none; }
.stepper li.done::before { background: var(--navy); border-color: var(--navy); color: #fff; }
.stepper li.current::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper li.tentative { opacity: .7; }
.stepper a { color: inherit; text-decoration: none; }
.stepper a:hover { text-decoration: underline; }
.reqnote { max-width: 46rem; margin: -.75rem auto 1rem; font-size: .85rem; color: var(--ink-soft); }
/* ---- registration form: white cards on the ground ---- */
.regform { max-width: 46rem; margin-left: auto; margin-right: auto; }
.regform h3 { margin: 1rem 0 .4rem; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: .6rem 1.25rem 1.25rem; margin: 0 0 1.25rem; min-width: 0; }
fieldset > legend { margin-left: -.25rem; }
fieldset.sub { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: .9rem 0 0; margin: .9rem 0 0; background: transparent; }
fieldset.sub legend, legend.plain { background: none; color: var(--navy); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 0; margin: 0 0 .35rem; float: left; width: 100%; border-radius: 0; }
fieldset.sub > *:not(legend) { clear: both; }   /* every child clears the floated legend, even when the first one is hidden */
legend .opt { font-weight: 600; color: var(--pale); letter-spacing: .08em; }
fieldset.sub legend .opt { color: var(--ink-soft); text-transform: none; letter-spacing: 0; font-size: .85rem; }
.regform label { display: block; margin: .7rem 0; font-size: .95rem; color: var(--ink); font-weight: 600; }
.regform label .opt { font-weight: 400; }
.regform input[type=text], .regform input[type=email], .regform input[type=tel], .regform input[type=url], .regform input[type=number], .regform input[type=date], .regform input[type=password], .regform input:not([type]), .regform select, .regform textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .6rem .7rem; font: inherit; font-weight: 400; color: var(--ink); border: 1px solid var(--field-border); border-radius: 8px; background: #fff; }
.regform input:focus, .regform select:focus, .regform textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); box-shadow: none; }
.btn:focus-visible, .btn-outline:focus-visible, .btn-link:focus-visible, .btn-sm:focus-visible, .door:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.regform label.radio, .regform label.check { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink); margin: .5rem 0; font-weight: 400; }
.regform label.radio.radio-divided { border-top: 1px solid var(--line); padding-top: .75rem; margin-top: .75rem; }
.regform label.radio input, .regform label.check input { margin-top: .2rem; flex: none; width: 1.25rem; height: 1.25rem; accent-color: var(--navy); }
.regform .consent span { font-size: .85rem; color: var(--ink-soft); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 1rem; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0 1rem; }
/* A row of fields: the boxes line up even when one field's name wraps onto two lines (David, Nov 9 2026: the babysitting Age box sat
   lower than the name and gender boxes). Each label.field (the form's step pages) spans four rows of its grid - name, box, help,
   error - and shares them with the fields beside it (subgrid); a short name sits just above its box. Without subgrid: as before. */
.grid2 > label.field, .grid3 > label.field { display: grid; grid-template-rows: subgrid; grid-row: span 4; align-content: start; }
.regform label.field > .field-name { display: block; align-self: end; }
.regform .field-help { display: block; font-size: .85rem; font-weight: 400; color: var(--ink-soft); margin-top: .25rem; }
.checks { margin: .75rem 0; }
.checks-label { display: block; font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: .25rem; }
.checks .check { margin: .2rem 0; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: .85em; }
.hint { font-size: .88rem; color: var(--ink-soft); margin: .25rem 0 .75rem; }
#occupancyNote.over { color: var(--error); font-weight: 600; }
/* contained notes: white panel, hairline outline, navy bar */
.price-note, .note { font-size: .95rem; margin: .5rem 0 .9rem; padding: .7rem .9rem; background: var(--tint); border: 1px solid var(--pale); border-left: 4px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0; }
.note { margin: 1rem 0; }
small { display: block; font-size: .85rem; color: var(--error); }
small:empty { display: none; }
small.ok { color: var(--ok); } small.bad { color: var(--error); }
/* Error state - selectors carry .regform so they outrank the base input/label rules above. Only the field with the problem is red
   (phone check, Nov 9 2026): a box is red when its own label.field is, not every box in a red section (the optional "Requested
   tablemates" turned red with the seating choice); a row of choice cards is red when its own .choices is .invalid. form.js takes the
   red off as soon as the field is fixed. */
.regform label.has-error, .regform .has-error > label:not(.field), .regform .has-error .checks-label, .has-error { color: var(--error); }
.regform fieldset.has-error > legend { background: var(--error); }
.regform fieldset.sub.has-error > legend { background: none; color: var(--error); }
.regform label.has-error input, .regform label.has-error select, .regform label.has-error textarea { border: 2px solid var(--error); background: var(--error-bg); }
.has-error > small { font-weight: 600; margin-top: .25rem; }
.regform label .hint, .regform label .opt, .regform .checks-label .opt { font-weight: 400; }
.regform label.check { flex-wrap: wrap; }
.regform label.check > span, .regform label.radio > span { flex: 1 1 0; min-width: 0; }
.regform label.check > small { flex-basis: 100%; margin-left: 1.85rem; }

/* ---- "booking on behalf of" reminder ---- */
.onbehalf { margin: 0 0 1rem; padding: .7rem .9rem; background: var(--tint); border: 1px solid var(--pale); border-left: 4px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0; font-size: .92rem; }

/* ---- testers' fill bar (preview mode only) ---- */
.testfill { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; background: rgba(255, 255, 255, .8); border: 0; border-radius: var(--radius); padding: .5rem .75rem; margin: 0 0 1rem; font-size: .88rem; }
.testfill-label { font-weight: 800; color: var(--navy); letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.testfill .btn-sm { padding: .3rem .7rem; font-size: .85rem; text-decoration: none; }
.testfill-restart { border-color: var(--error); color: var(--error); }
.testfill-restart:hover { background: var(--error); color: #fff; }

/* ---- highlighted panels: first-time grant, text updates (never pre-selected) ---- */
.regform fieldset.sms-panel, .regform fieldset.grant-panel { border: 1px solid var(--pale); background: var(--tint); }
.grant-panel label.radio, .sms-panel label.radio { padding: .55rem .7rem; border-radius: 10px; border: 1px solid transparent; }
.grant-panel label.radio:has(input:checked), .sms-panel label.radio:has(input:checked) { background: #fff; border-color: var(--navy); }
.sms-benefit { margin: .25rem 0 .75rem; font-weight: 500; }

/* ---- room comparison (step 3) - read-only reference table ---- */
.compare-intro { margin-top: 1rem; }
.roomcompare { margin: .25rem 0 .5rem; }
table.compare { min-width: 0; }
table.compare tbody tr.selected { background: var(--tint); box-shadow: inset 4px 0 0 var(--navy); }
table.compare tbody tr.na { color: var(--ink-soft); cursor: not-allowed; }
table.compare tbody tr.na strong { color: var(--ink-soft); }
table.compare tbody tr.na td.num { text-decoration: line-through; text-decoration-color: var(--line-strong); }
/* the column for the chosen dates is emphasised by weight; the selected row carries the background;
   the one cell where they meet (the price this person pays) is filled solid - "you are here" */
table.compare th.hi { background: var(--navy-2); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .3em; }
table.compare td.num.hi { color: var(--navy); font-weight: 800; }
table.compare tbody tr.selected td.num.hi { background: var(--navy); color: #fff; border-radius: 8px; }
table.compare td.num.dim { color: var(--line-strong); font-weight: 400; }
table.compare .reason:not(:empty) { margin-top: .25rem; color: var(--error); font-weight: 600; }
.pill-chosen { display: none; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--navy); border-radius: 999px; padding: .12rem .6rem; margin: 0 .5rem .25rem 0; vertical-align: middle; }
table.compare tbody tr.selected .pill-chosen { display: inline-block; }

/* ---- room photos & layout popup ---- */
.room-photos { margin-top: .5rem; padding: .3rem .7rem; font-size: .85rem; }
.campus { margin: 1.25rem 0 .5rem; }
.campus img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.campus figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .35rem; }
.room-dialog { border: 0; border-radius: var(--radius); padding: 0; max-width: min(56rem, 94vw); width: 100%; box-shadow: 0 20px 60px rgba(18, 59, 106, .35); color: var(--ink); background: #fff; }
.room-dialog::backdrop { background: rgba(18, 59, 106, .55); }
.room-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--navy); color: #fff; margin: 0; }
.room-dialog-head h2 { margin: 0; font-size: 1rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.room-dialog-head .btn-sm { background: #fff; color: var(--navy); border-color: #fff; }
.room-dialog-body { padding: 1rem 1.25rem 1.25rem; max-height: 80vh; overflow: auto; }
.room-dialog-meta { margin: 0 0 .25rem; color: var(--ink-soft); font-weight: 600; }
.room-dialog-desc { margin: 0 0 .75rem; }
.room-dialog-pricelist { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem .6rem; font-size: .92rem; }
.room-dialog-pricelist li { border: 1px solid var(--line-strong); border-radius: 999px; padding: .2rem .7rem; }
.room-dialog-images figure { margin: 0; }
.room-dialog-main img { width: 100%; height: auto; max-height: 60vh; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: block; }
.room-dialog-main figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .3rem; }
.room-dialog-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.room-dialog-thumbs button { padding: 0; border: 2px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; width: 6.5rem; height: 4.5rem; overflow: hidden; }
.room-dialog-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-dialog-thumbs button[aria-current="true"] { border-color: var(--navy); }
.room-dialog-thumbs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- school type-ahead suggestions ---- */
label.has-suggest { position: relative; }
.suggest { position: absolute; left: 0; right: 0; z-index: 30; margin-top: -.15rem; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 12px 30px rgba(18, 59, 106, .18); max-height: 18rem; overflow-y: auto; padding: .25rem; }
.suggest-item { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: .5rem .65rem; font: inherit; color: var(--ink); cursor: pointer; }
.suggest-item:hover, .suggest-item.active { background: var(--tint); }
.suggest-name { display: block; font-weight: 600; }
.suggest-where { display: block; font-size: .88rem; color: var(--ink-soft); }

/* ---- payment "working" overlay ---- */
.pay-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(18, 59, 106, .6); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.pay-overlay-card { background: #fff; border-radius: var(--radius); padding: 1.5rem 1.75rem; max-width: 26rem; width: 100%; box-shadow: 0 20px 60px rgba(18, 59, 106, .35); text-align: center; }
.pay-overlay-card h2 { margin: .75rem 0 .75rem; color: var(--navy); font-size: 1rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pay-spinner { width: 3rem; height: 3rem; margin: 0 auto; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--navy); animation: pay-spin 1s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
.pay-steps { list-style: none; padding: 0; margin: 0 0 1rem; text-align: left; display: grid; gap: .35rem; }
.pay-steps li { position: relative; padding-left: 1.7rem; color: var(--line-strong); }
.pay-steps li::before { content: ''; position: absolute; left: 0; top: .3em; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--line-strong); }
.pay-steps li.active { color: var(--ink); font-weight: 600; }
.pay-steps li.active::before { border-color: var(--navy); border-top-color: transparent; animation: pay-spin .9s linear infinite; }
.pay-steps li.done { color: var(--ink-soft); }
.pay-steps li.done::before { border-color: var(--ok); background: var(--ok); }
.pay-steps li.done::after { content: ''; position: absolute; left: .3rem; top: .45em; width: .35rem; height: .6rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pay-wait { margin: 0; font-size: .92rem; }
.pay-slow { margin-top: .5rem; }
@media (prefers-reduced-motion: reduce) { .pay-spinner, .pay-steps li.active::before { animation: none; } }

/* ---- rate sheet reached from the form ---- */
.backbar { position: sticky; top: 0; z-index: 5; background: var(--ground); border-bottom: 1px solid var(--line); padding: .6rem 0; margin: -1.75rem 0 1rem; display: flex; gap: .75rem; align-items: baseline; flex-wrap: wrap; }
.backbar a { font-weight: 700; text-decoration: none; }
.alert { background: var(--error-bg); color: #7A1A14; border: 1px solid #F1B8B3; border-radius: var(--radius); padding: .75rem 1rem; margin: 0 0 1rem; }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.5rem 0; }
.actions .btn { margin-left: auto; }
.btn { display: inline-block; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: .75rem 1.6rem; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--navy-2); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-sm { background: #fff; color: var(--navy); border: 1px solid var(--navy); border-radius: 999px; padding: .4rem .9rem; font: inherit; font-weight: 700; cursor: pointer; }
.btn-sm:hover { background: var(--navy); color: #fff; }
.btn-link { color: var(--navy); text-decoration: none; font-weight: 700; }
button.btn-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }   /* "Change the first card" (two cards, Oct 23 2026) */
.btn-outline { display: inline-block; border: 1px solid var(--navy); color: var(--navy); border-radius: 999px; padding: .55rem 1.1rem; text-decoration: none; font: inherit; font-weight: 700; background: #fff; cursor: pointer; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.child { border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .75rem; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; }
.card h3 { margin: .25rem 0 .4rem; color: var(--navy); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card p { margin: .3rem 0 .8rem; font-size: .95rem; }
table.order { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.order td { padding: .45rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.order td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
table.order tr.discount td { color: var(--ok); }
table.order tr.total td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--navy); font-size: 1.05rem; }
.coupon { margin-top: 1rem; }
.coupon .inline { display: flex; gap: .5rem; margin-top: .25rem; }
.coupon .inline input { margin: 0; }
ul.terms { padding-left: 1.2rem; font-size: .9rem; color: var(--ink-soft); }
ul.terms li { margin-bottom: .4rem; }
[hidden] { display: none !important; }

/* ---- payment ---- */
.pay-card .due { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--accent); }
.pay-card .due span { font-weight: 700; color: var(--ink-soft); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.pay-card .due strong { font-size: 1.9rem; font-weight: 300; color: var(--navy); font-variant-numeric: tabular-nums lining-nums; }
.pay-card .secure { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); margin: .5rem 0 1rem; }
.pay-card .secure svg { flex: none; margin-top: .2rem; color: var(--ok); }
.hosted { min-height: 3rem; }

/* ---- rate sheet ---- */
.rates { max-width: 60rem; }
.rules { padding-left: 1.2rem; }
.rules li { margin-bottom: .35rem; }
.tablewrap { overflow-x: auto; margin: 1rem 0; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.rates-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; min-width: 38rem; }
table.rates-table th { background: var(--navy); color: #fff; text-align: left; padding: .65rem .85rem; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
table.rates-table th:not(:first-child) { text-align: right; }
table.rates-table td { padding: .75rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rates-table tr:last-child td { border-bottom: 0; }
table.rates-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; font-weight: 600; }
table.rates-table.small { font-size: .85rem; }
table.rates-table tr.total td { font-weight: 800; border-top: 2px solid var(--navy); }
.room-desc { font-size: .85rem; color: var(--ink-soft); margin-top: .2rem; max-width: 34rem; }
.precon-cards { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .75rem; }
.precon-cards li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.precon-cards .precon-opt { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; margin-bottom: .2rem; }
.precon-cards strong { font-size: 1.4rem; font-weight: 300; color: var(--navy); }

/* ---- the SOLD OUT pill (rate sheet, step 3) ---- */
.pill-sold { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; padding: .1em .6em; border-radius: 999px; background: var(--error-bg); color: var(--error); margin-left: .3rem; }

/* ---- small screens ---- */
@media (max-width: 40rem) {
  .site-header { padding: 1.2rem 0; }
  .brand { gap: 1.4rem; }
  .brand-logo-tu { height: 2.4rem; }
  .brand-logo-fingerprint { height: 2.8rem; }
  main.wrap { padding-top: 1.1rem; }
  .stepper-wrap { margin-top: -1.1rem; }
  .hero { grid-template-columns: 1fr; }
  .hero-field { min-height: 4.5rem; border-left: 0; border-top: 1px solid var(--accent); order: -1; background-size: 7rem auto; }
  .hero-copy { padding: 1.25rem 1.1rem 1.1rem; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer .foot-mark { grid-row: auto; justify-self: start; width: 3.5rem; margin-top: .5rem; }
  .stepper li:not(.current) { display: none; }
  .stepper li.current::after { content: " · step " attr(data-n) " of " attr(data-total); position: static; width: auto; height: auto; background: none; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; text-transform: none; }
  fieldset { padding: .5rem .9rem 1rem; }
  .actions { flex-wrap: wrap; }
  .actions .btn { width: 100%; margin-left: 0; text-align: center; order: -1; }
  .summary-grid .pay-card { order: -1; }   /* amount + reassurance first, order details second */
  /* rate table becomes stacked cards */
  .tablewrap { border: 0; background: transparent; }
  table.rates-table.cards-on-mobile { min-width: 0; background: transparent; }
  table.rates-table.cards-on-mobile thead { display: none; }
  table.rates-table.cards-on-mobile, table.rates-table.cards-on-mobile tbody, table.rates-table.cards-on-mobile tr, table.rates-table.cards-on-mobile td { display: block; width: 100%; }
  table.rates-table.cards-on-mobile tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; padding: .25rem .75rem .5rem; background: #fff; }
  table.rates-table.cards-on-mobile td { border: 0; padding: .4rem 0; }
  table.rates-table.cards-on-mobile td.room { border-bottom: 1px solid var(--line); padding-bottom: .6rem; margin-bottom: .25rem; }
  table.rates-table.cards-on-mobile td.num { display: flex; justify-content: space-between; padding: .3rem 0; }
  table.rates-table.cards-on-mobile td.num::before { content: attr(data-label); font-weight: 400; color: var(--ink-soft); }
  table.compare.cards-on-mobile td.num.dim { display: none; }   /* once dates are chosen, show only that stay's price */
  table.compare.cards-on-mobile tbody tr.selected { border-color: var(--navy); box-shadow: inset 4px 0 0 var(--navy); }
  .backbar { margin-top: -1.1rem; }
}

@media print {
  .site-header, .site-footer, .noprint, .stepper { display: none !important; }
  body { background: #fff; }
  .card { border: 0; padding: 0; }
}

/* (CONV26's Chinuch Expo, Exhibitor FAQ and one-on-one consultations styles are not in this app - Nov 9 2026.) */

/* ---- the President's Conference header (Nov 9 2026): the top band of last year's artwork (David approved last year's look for the
   first version; its lower part prints last year's dates, so it is cropped off) over a pale strip with the TU logo and this year's
   name, dates and place. The rest of the page keeps the TU house style above. ---- */
/* Nov 10 2026: the 2026 "Fingerprints" banner (no dates on it) replaces last year's artwork. The marketing file is 2000 x 423;
   conference-header-2026.webp is that file with its own edge colour carried 1000 px further out on each side (4000 x 423), so a
   wide screen shows no seam. It is shown centred at the banner's height; a narrow screen crops the plain dark sides. */
.site-header.pres-header { background: var(--ground); border-bottom: 0; padding: 0; }
.pres-banner { display: block; height: clamp(8rem, 21.15vw, 16rem); background: url('/img/pres/conference-header-2026.webp') center / auto 100% no-repeat, linear-gradient(90deg, #143230, #0B1F1F); }
/* The footer is one row on the green band: the white TU logo with this year's name, dates and place on the left, and the
   office phone, email and links stacked on the right (they drop under the name on a phone). */
.site-footer .pres-meta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.1rem; }
.foot-links { list-style: none; margin: 0; padding: 0; text-align: right; line-height: 1.35; }
.foot-links li { margin: 0; }
.site-footer .foot-links a { display: inline; padding: 0; }
@media (max-width: 600px) { .foot-links { grid-column: 1 / -1; text-align: left; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.22); } .site-footer .pres-meta { grid-template-columns: auto minmax(0, 1fr); } }
.pres-logo { height: 3.1rem; width: auto; display: block; flex: none; }
.pres-title { border-left: 1px solid rgba(255,255,255,.35); padding-left: 1.1rem; color: #fff; line-height: 1.35; }
.pres-title strong { display: block; font-size: 1.1rem; font-weight: 700; color: #fff; }
.pres-title span { display: block; font-size: .9rem; color: var(--pale); }
@media (max-width: 520px) { .pres-logo { height: 2.4rem; } .pres-title { padding-left: .8rem; } .pres-title strong { font-size: 1rem; } .pres-title span { font-size: .82rem; } }

/* ---- the form's choice cards (Codex's form: registration type, who is attending, room, extend your stay) ---- */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .7rem; margin: .4rem 0 .2rem; }
.choices.rooms { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.choice { position: relative; display: block; background: #fff; border: 1px solid var(--field-border); border-radius: 10px; padding: .85rem 1rem .85rem 2.6rem; cursor: pointer; font-weight: 400; margin: 0; }
.choice input { position: absolute; left: 1rem; top: 1.05rem; margin: 0; width: 1.05rem; height: 1.05rem; accent-color: var(--navy); }
.choice:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy) inset; background: var(--tint); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice-title { display: block; font-weight: 700; color: var(--navy); }
.choice-desc { display: block; font-size: .9rem; color: var(--ink-soft); margin-top: .2rem; }
.choice-price { display: block; margin-top: .45rem; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.choice-price small { font-size: .8rem; font-weight: 500; color: var(--ink-soft); }
.choices.invalid .choice { border-color: var(--error); }   /* only the row of choices with the problem (Nov 9 2026) */
.estimate { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1.2rem 0; }
.estimate h2 { margin: 0 0 .5rem; }
.estimate .est-total { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin: .2rem 0; }
.estimate ul { list-style: none; margin: .4rem 0 0; padding: 0; font-size: .92rem; }
.estimate li { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border-bottom: 1px solid var(--line); }
.estimate li:last-child { border-bottom: 0; }
/* The running total on the right, in view while you scroll (David, Nov 9 2026: "Yes, let's add the floating to the right. I liked
   it."; Codex's .form-layout and .summary-card). Steps 1 and 2 only: their template wraps the questions in .form-questions, and
   .form-layout holds the questions, the total (partials/estimate.ejs) and the buttons, in that order. On a computer the page widens
   to 68rem (the questions' own 46rem + the 2rem gap + the 17.5rem card + the page's 2.5rem side padding), so on a wide screen the
   questions keep the width they have without the card: the questions on the left, the total on the right, the buttons under the
   questions. Narrower than 60rem (a phone, a tablet upright) it is one column as before: the questions, the total, the buttons;
   nothing sticks. At 60rem the questions column is 38rem, which still fits three boxes in a row (name, address). */
@media (min-width: 60rem) {
  main.wrap:has(> .regform[data-estimate]) { max-width: 68rem; }
  .regform[data-estimate] { max-width: none; }
  .reqnote:has(+ .regform[data-estimate]) { max-width: none; }   /* "Fields are required..." lines up with the wider form */
  .form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; grid-template-rows: auto 1fr; grid-template-areas: "questions total" "actions total"; column-gap: 2rem; align-items: start; }
  .form-layout > .form-questions { grid-area: questions; }
  .form-layout > .actions { grid-area: actions; margin-top: .25rem; }   /* 1.5rem under the last question, as before */
  /* Starts level with the white top of the first question (its navy legend sits half above it), stays 1.5rem from the top of the
     window while you scroll, and stops at the end of the form; a total taller than the window scrolls inside. */
  .form-layout > .estimate { grid-area: total; position: sticky; top: 1.5rem; margin: 1rem 0 0; max-height: calc(100vh - 3rem); overflow-y: auto; }
}
.field-label { margin: .9rem 0 .2rem; font-weight: 600; color: var(--ink); }
.regform .lede { font-size: 1.05rem; color: var(--ink-soft); margin: -1rem 0 1.25rem; }

/* ---- Phones (phone check and guest walk-through, Nov 9 2026: "good on a phone"). This app's own rules, kept together here. ---- */
/* No zoom on an iPhone: Safari zooms into a box whose text is under 16px when it is tapped, and the boxes took .95rem (15.2px) from
   their label. Every touch screen, and any narrow window, gets 16px: the step pages, the review's code box, the payment page's billing
   boxes. (The card number boxes are the processor's own, 16px already.) */
@media (pointer: coarse), (max-width: 40rem) {
  .regform input[type=text], .regform input[type=email], .regform input[type=tel], .regform input[type=url], .regform input[type=number], .regform input[type=date], .regform input[type=password], .regform input:not([type]), .regform select, .regform textarea { font-size: 16px; }
}
/* A field the page goes to after a refused Continue (form.js) stops a little below the top of the screen. */
.regform fieldset, .regform label.field, .regform [data-show-if], .regform label.check, .coupon { scroll-margin-top: 1rem; }
/* The choice cards sat about 34px apart: each card is a label and took the form labels' .7rem margin above and below as well as the
   row's gap. "/ adult" on the price's line (it is a <small>, which this sheet makes a line of its own for error messages). */
.regform .choice { margin: 0; }
.choice .choice-price small { display: inline; margin: 0; font-weight: 500; }
/* The phone's step bar shows the current step alone, with "Step 1 of 3" on its own line under it, so no "·" in front. */
@media (max-width: 40rem) { .stepper li.current::after { content: "Step " attr(data-n) " of " attr(data-total); } }
/* Review & pay's "Edit" links: a bigger tap target (44px), a little larger, without making the navy bar taller. */
.card-title .edit { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .6rem; margin: -.85rem -.55rem -.85rem .5rem; font-size: .85rem; text-decoration: underline; text-underline-offset: .2em; }
/* The footer's links easier to tap; a phone number or an email address never breaks at its hyphen. */
.site-footer a { display: inline-block; padding: .3rem 0; }
a[href^="tel:"], a[href^="mailto:"] { white-space: nowrap; }
/* A row with one box (the cell phone, since the home phone went) keeps half the row on a tablet or a computer. */
@media (min-width: 40rem) { .grid2:has(> :only-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* The thank-you page: "Register another person" stays on one line, beside "Print this page" or under it. */
.done-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.done-actions .btn-link { white-space: nowrap; }
/* "Processing your payment" on a phone held sideways was cut off: the dark layer scrolls and the box is never taller than the screen. */
.pay-overlay { overflow-y: auto; }
.pay-overlay-card { margin: auto; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; }
@media (max-height: 32rem) {
  .pay-overlay-card { padding: 1rem 1.25rem; }
  .pay-spinner { width: 2rem; height: 2rem; border-width: 3px; }
  .pay-overlay-card h2 { margin: .5rem 0; }
  .pay-steps { gap: .15rem; margin-bottom: .6rem; }
}
/* A phone held sideways: the header picture is capped (its top band, centred, on its own green and with its wave carried across, as
   on a wide screen), the name strip and the step bar are slimmer, so the first question shows under them. */
@media (max-height: 30rem) and (orientation: landscape) {
  .pres-banner { height: 5rem; }
  main.wrap { padding-top: 1rem; }
  .stepper-wrap { margin-top: -1rem; margin-bottom: 1rem; padding: .6rem 0; }
  .stepper li { font-size: .72rem; }
  .stepper li::before { width: 1.8rem; height: 1.8rem; margin-bottom: .25rem; font-size: .85rem; }
  .stepper li:not(:last-child)::after { top: .9rem; }
}
/* The review's code box: its message right under the box, easy to see; the page opens at the box after a code is tried (#code). */
.coupon-msg { margin: .5rem 0 0; padding: .55rem .75rem; border-radius: 8px; font-size: .95rem; font-weight: 600; }
.coupon-msg.ok { color: var(--ok); background: #E8F5EE; border: 1px solid #A9D8BE; }
.coupon-msg.bad { color: var(--error); background: var(--error-bg); border: 1px solid #F1B8B3; }
.code-hint { margin: 0 0 1rem; }
/* "Did you mean ...@gmail.com?" under an email box (form.js): the address is a button that fixes it. */
.email-suggest { display: block; margin-top: .3rem; font-size: .92rem; font-weight: 400; color: var(--ink); }
.email-suggest button { background: none; border: 0; padding: .35rem .1rem; font: inherit; font-weight: 700; color: var(--navy); text-decoration: underline; cursor: pointer; overflow-wrap: anywhere; text-align: left; }
/* "We kept your answers." after Back from the payment page (routes/register.js restoreWaiting). */
.kept-note { margin: 0 0 1.5rem; }
/* Henny's welcome at the top of the form while registration is by approval (step1.ejs; David, Nov 13 2026): three paragraphs in one box. */
.welcome { margin: 0 0 1.5rem; }
.welcome p { margin: 0 0 .6rem; }
.welcome p:last-child { margin-bottom: 0; }
