/* 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;
  --navy: #123B6A;            /* anchor */
  --navy-2: #0D2C50;          /* hover / pressed */
  --accent: #0092FF;          /* the single accent */
  --pale: #A8C4E0;            /* tints, hairlines, pattern */
  --ground: #E9EFF4;          /* page ground */
  --tint: #F3F7FB;            /* soft panel fill on white cards */
  --ink: #14213A;             /* near-black navy for body copy */
  --ink-soft: #4A5A70;        /* 6.5:1 on ground */
  --line: #CFDBE7;            /* card hairlines */
  --line-strong: #7B8FA8;     /* 3.4:1 on ground: dividers that carry meaning */
  --field-border: #8AA0B8;    /* 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); }
/* Exhibitor FAQ (Oct 8 2026): a link under the Expo stepper, and the FAQ page itself. */
.faq-link { max-width: 46rem; margin: -.75rem auto 1rem; font-size: .9rem; font-weight: 600; }
.faq h2 { font-size: 1.1rem; margin: 1.75rem 0 .5rem; color: var(--navy); }
.faq table.order { margin: .5rem 0 1rem; }

/* ---- 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; }
.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. */
.regform label.has-error, .regform .has-error > label, .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 .has-error input, .regform .has-error select, .regform .has-error textarea, .has-error input, .has-error select, .has-error textarea { border: 2px solid var(--error); background: var(--error-bg); }
.has-error > small, .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); }

/* ---- expo ---- */
.booth-option span strong { color: var(--ink); }
.booth-option.soldout .desc, .booth-option.soldout strong { opacity: .55; }
.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; }
}

/* Expo booth map (step 2): shown inline, tap to open full size */
.booth-map { margin: .75rem 0 0; }
.booth-map img { display: block; width: 100%; height: auto; border: 1px solid #CFDBE7; border-radius: 8px; background: #fff; }
.booth-map figcaption { margin-top: .35rem; }

/* ---- one-on-one consultations (Oct 29 2026): one alphabetical list of white cards on the ground, a navy top edge, the areas as
   outlined pills under the name, the open times as navy-outlined buttons by day; the consultant's page puts the same card beside
   the ticks as the preview ---- */
.consult .eyebrow { margin-bottom: .35rem; }
.consult h1 { margin-bottom: .75rem; }
.consult-intro { max-width: 46rem; margin-bottom: 1.25rem; }
.consult-intro .hero-rule { margin: 0 0 1rem; }
.consult-intro .lede { font-size: 1.05rem; color: var(--ink-soft); margin: 0 0 1rem; }
.consult-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.consult-facts li { background: #fff; border: 1px solid var(--pale); border-radius: 1rem; padding: .3rem .85rem; font-size: .9rem; }
.consult-facts strong { color: var(--navy); }
.consult-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; align-items: start; margin: 1.25rem 0 0; }
.consult-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 1.05rem 1.2rem 1.15rem; }
.consult-name { margin: 0; font-size: 1.2rem; line-height: 1.25; font-weight: 800; color: var(--navy); }
.consult-line { margin: .2rem 0 0; font-size: .95rem; color: var(--ink-soft); }
.consult-areas { list-style: none; padding: 0; margin: .65rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.consult-areas:empty { display: none; }
.consult-areas li { font-size: .8rem; font-weight: 700; color: var(--navy); background: var(--tint); border: 1px solid var(--pale); border-radius: 999px; padding: .15rem .65rem; }
.consult-times { margin-top: .85rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.consult-day { margin: .75rem 0 .4rem; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.consult-day:first-child { margin-top: 0; }
.consult-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); gap: .4rem; }   /* even columns: 3 across on a phone */
.consult-slot { display: block; padding: .55rem .4rem; text-align: center; border: 1px solid var(--navy); border-radius: 8px; background: #fff; color: var(--navy); font-weight: 700; font-size: .92rem; line-height: 1.2; text-decoration: none; font-variant-numeric: tabular-nums lining-nums; }
a.consult-slot:hover { background: var(--navy); color: #fff; }
.consult-none { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.consult-ask { margin-top: .65rem; }
.consult-foot { margin-top: 1.5rem; }
/* the chosen consultant and time, above the form */
.consult-picked { display: flex; flex-direction: column; gap: .15rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0; padding: .85rem 1.1rem; margin: 0 0 1.25rem; }
.consult-picked-label { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.consult-picked-name { font-size: 1.15rem; color: var(--navy); }
.consult-picked-line { color: var(--ink-soft); font-size: .95rem; }
.consult-picked-when { margin-top: .3rem; font-weight: 700; color: var(--ink); }
/* a consultant's own page: the ticks beside the preview (the preview first on a phone) */
.consult-own { max-width: 60rem; }
.consult-own .lede { color: var(--ink-soft); max-width: 46rem; }
.consult-own-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.consult-own-preview { position: sticky; top: 1rem; }
.consult-own-preview .consult-picked-label { display: block; margin: 0 0 .5rem; }
.consult-own label.check.is-off { color: var(--ink-soft); }
.consult-own .actions { margin-top: 0; }
/* their times (Oct 30 2026): a grid of small tiles by day, open ones tickable (ticked: struck through, "taking away"), booked ones
   shaded and fixed; then the two ranges, the day on its own line so a phone keeps From and To side by side */
.consult-own-day { margin: .9rem 0 .4rem; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.consult-own-times > legend + .consult-own-day, .consult-own-times > .note + .consult-own-day { margin-top: .4rem; }
.consult-own-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.6rem, 1fr)); gap: .4rem; }
.regform .consult-own-time, .consult-own-time { display: flex; flex-direction: column; align-items: center; gap: .1rem; margin: 0; padding: .45rem .35rem .4rem; border: 1px solid var(--navy); border-radius: 8px; background: #fff; color: var(--navy); font-weight: 400; text-align: center; line-height: 1.2; font-variant-numeric: tabular-nums lining-nums; }
.consult-own-time b { font-size: .92rem; white-space: nowrap; }
.consult-own-time small { font-size: .75rem; color: var(--ink-soft); white-space: nowrap; }
.regform label.consult-own-time, label.consult-own-time { display: grid; grid-template-columns: auto 1fr; column-gap: .4rem; align-items: center; justify-items: start; text-align: left; padding-left: .5rem; cursor: pointer; }
label.consult-own-time input { grid-row: 1 / span 2; width: 1rem; height: 1rem; margin: 0; accent-color: var(--error); }
.consult-own-time .st-take { display: none; }
.consult-own-time input:checked ~ b { text-decoration: line-through; color: var(--error); }
.consult-own-time input:checked ~ small .st-open { display: none; }
.consult-own-time input:checked ~ small .st-take { display: inline; color: var(--error); }
label.consult-own-time:has(input:checked) { border-color: var(--error); background: var(--error-bg); }
.consult-own-time.is-booked { border-color: var(--line); background: var(--tint); color: var(--ink-soft); cursor: default; }
.consult-own-booked-note { margin-top: .6rem; }
.consult-own-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .75rem; }
.consult-own-range .day { grid-column: 1 / -1; }
.regform .consult-own-range label { margin: 0; }
.consult-own-kept { margin: 0; }
.consult-own-kept + .consult-own-kept { margin-top: .4rem; }
[data-times-count].is-over { color: var(--error); font-weight: 700; }
@media (max-width: 40rem) {
  .consult-list { grid-template-columns: 1fr; }
  .consult-card { padding: .95rem 1rem 1.05rem; }
  .consult-own-grid { grid-template-columns: 1fr; }
  .consult-own-preview { position: static; order: -1; }
}
