:root {
  --maroon: #5C1A2E;
  --maroon-2: #7A2337;
  --gold: #C9A15E;
  --paper: #FBF8F5;
  --ink: #2B2125;
  --ink-soft: #6B5A60;
  --line: #E7DCD6;
  --line-strong: #8F7F84;     /* 3.6:1 on cream: stepper dots, dividers that carry meaning */
  --field-border: #9C8C87;    /* 3:1 on white: input affordance */
  --error: #A32638;
  --ok: #2E6E4E;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--maroon-2); }
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---- header / footer ---- */
.site-header { background: var(--maroon); color: #fff; padding: 1.1rem 0; border-bottom: 4px solid var(--gold); }
.brand { display: flex; flex-direction: column; gap: .1rem; color: #fff; text-decoration: none; }
.brand-org { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.brand-name { font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.brand-dates { font-size: .9rem; opacity: .9; }
main.wrap { padding-top: 1.75rem; padding-bottom: 3rem; }
.site-footer { border-top: 1px solid var(--line); padding: 1rem 0; font-size: .85rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ---- type scale ---- */
h1 { font-size: clamp(1.5rem, 1rem + 2.5vw, 2rem); line-height: 1.2; }
.regform h1, .doc h1 { color: var(--maroon); margin: 0 0 1rem; }
.doc h2 { font-size: 1.25rem; margin: 2rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--maroon-2); }
.doc h2:first-of-type { border-top: 0; padding-top: 0; }
.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: .25rem 0 .4rem; color: var(--maroon); font-size: 1rem; display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.card-title .edit { font-size: .82rem; font-weight: 500; }
.card-title + .card-title { margin-top: 1rem; }
.sub-title { margin: 1rem 0 .4rem; font-size: 1rem; color: var(--maroon-2); }
.finalstep { margin: 0 0 .25rem; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }

/* ---- home ---- */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.door { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; text-decoration: none; color: inherit; }
.door:hover { border-color: var(--maroon-2); }
.door h2 { margin: 0 0 .5rem; color: var(--maroon); }
.door p { margin: 0 0 1rem; color: var(--ink-soft); }
.door .cta { display: inline-block; background: var(--maroon-2); color: #fff; padding: .55rem 1rem; border-radius: 6px; font-weight: 600; }
.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 ---- */
.stepper { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.stepper li { position: relative; padding-left: 1.1rem; }
.stepper li::before { content: ''; position: absolute; left: 0; top: .35em; width: .55rem; height: .55rem; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; }
.stepper li.done::before { background: var(--gold); border-color: var(--gold); }
.stepper li.current { color: var(--maroon); font-weight: 700; }
.stepper li.current::before { background: var(--maroon); border-color: var(--maroon); }
.stepper li.tentative { opacity: .7; }
.stepper a { color: inherit; text-decoration: none; }
.stepper a:hover { text-decoration: underline; }
.reqnote { margin: -.5rem 0 1rem; font-size: .85rem; color: var(--ink-soft); }

/* ---- registration form ---- */
.regform { max-width: 46rem; }
.regform h3 { margin: 1rem 0 .4rem; font-size: 1rem; color: var(--maroon-2); }
fieldset { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 1rem 1.25rem 1.25rem; margin: 0 0 1.25rem; min-width: 0; }
fieldset.sub { border: 0; border-top: 1px dashed var(--line); border-radius: 0; padding: .75rem 0 0; margin: .75rem 0 0; }
fieldset.sub legend { font-size: .92rem; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: .25rem; float: left; width: 100%; }
fieldset.sub > *:not(legend) { clear: both; }   /* every child clears the floated legend, even when the first one is hidden */
legend { font-weight: 700; color: var(--maroon); padding: 0 .4rem; }
legend .opt { font-weight: 400; }
.regform label { display: block; margin: .6rem 0; font-size: .95rem; color: var(--ink); font-weight: 500; }
.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: .25rem; padding: .55rem .65rem; font: inherit; font-weight: 400; color: var(--ink); border: 1px solid var(--field-border); border-radius: 6px; background: #fff; }
.regform input:focus, .regform select:focus, .regform textarea:focus { outline: 2px solid var(--maroon-2); outline-offset: 2px; border-color: var(--maroon-2); box-shadow: 0 0 0 4px rgba(201, 161, 94, .35); }
.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(--maroon-2); 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 input, .regform label.check input { margin-top: .2rem; flex: none; width: 1.25rem; height: 1.25rem; accent-color: var(--maroon-2); }
.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: 500; 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; }
.price-note { font-size: .95rem; margin: .25rem 0 .75rem; padding: .6rem .8rem; background: #FBF3E4; border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; }
.note { background: #FBF3E4; border-left: 3px solid var(--gold); padding: .75rem 1rem; border-radius: 0 8px 8px 0; 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, .regform fieldset.has-error > legend, .has-error { 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: #FFF7F8; }
.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; }

/* ---- text-updates opt-in panel (never pre-selected; made hard to miss) ---- */
.regform fieldset.sms-panel { border: 2px solid var(--gold); background: #FFFBF3; }
.sms-panel legend { color: var(--maroon); }
.sms-benefit { margin: .25rem 0 .75rem; font-weight: 500; }
.sms-panel label.radio { padding: .5rem .6rem; border-radius: 8px; }
.sms-panel label.radio:has(input:checked) { background: #F6EEDF; }

/* ---- room comparison (step 3) ---- */
.compare-intro { margin-top: 1rem; }
.roomcompare { margin: .25rem 0 .5rem; }
table.compare { min-width: 0; }
table.compare tbody tr { cursor: pointer; }
table.compare tbody tr:hover { background: #FBF3E4; }
table.compare tbody tr.selected { background: #F6EEDF; box-shadow: inset 4px 0 0 var(--maroon); }
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 only; the selected row carries the background;
   the one cell where they meet (the price this person pays) gets the pill. */
table.compare th.hi { background: var(--maroon-2); }
table.compare td.num.hi { color: var(--maroon); font-weight: 700; }
table.compare tbody tr.selected td.num.hi span, table.compare tbody tr.selected td.num.hi { background: var(--maroon); color: #fff; border-radius: 6px; }
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; }
table.compare tbody tr:focus-visible { outline: 2px solid var(--maroon-2); outline-offset: -2px; }

/* ---- 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: 10px; border: 1px solid var(--line); }
.campus figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .35rem; }
.room-dialog { border: 0; border-radius: 12px; padding: 0; max-width: min(56rem, 94vw); width: 100%; box-shadow: 0 20px 60px rgba(43, 33, 37, .35); color: var(--ink); background: #fff; }
.room-dialog::backdrop { background: rgba(43, 33, 37, .55); }
.room-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--maroon); color: #fff; margin: 0; }
.room-dialog-head h2 { margin: 0; font-size: 1.15rem; color: #fff; }
.room-dialog-head .btn-sm { background: #fff; color: var(--maroon); 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 .9rem; font-size: .92rem; }
.room-dialog-pricelist li { background: #FBF3E4; border-radius: 6px; padding: .25rem .6rem; }
.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(--maroon); }
.room-dialog-thumbs button:focus-visible { outline: 2px solid var(--maroon-2); outline-offset: 2px; }

/* ---- rate sheet reached from the form ---- */
.backbar { position: sticky; top: 0; z-index: 5; background: var(--paper); 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: #F6E2E5; color: #7A1E2E; border-radius: 8px; 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(--maroon-2); color: #fff; border: 0; border-radius: 6px; padding: .7rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--maroon); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-sm { background: #fff; color: var(--maroon-2); border: 2px solid var(--maroon-2); border-radius: 6px; padding: .45rem .9rem; font: inherit; font-weight: 600; cursor: pointer; }
.btn-sm:hover { background: var(--maroon-2); color: #fff; }
.btn-link { color: var(--maroon-2); text-decoration: none; font-weight: 600; }
.btn-outline { display: inline-block; border: 2px solid var(--maroon-2); color: var(--maroon-2); border-radius: 6px; padding: .5rem 1rem; text-decoration: none; font: inherit; font-weight: 600; background: #fff; cursor: pointer; }
.btn-outline:hover { background: var(--maroon-2); color: #fff; }
.child { border-top: 1px dashed 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: 10px; padding: 1rem 1.25rem; }
.card h3 { margin: .25rem 0 .4rem; color: var(--maroon); font-size: 1rem; }
.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; }
table.order tr.discount td { color: var(--ok); }
table.order tr.total td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--maroon); }
.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: 2px solid var(--maroon); }
.pay-card .due span { font-weight: 600; color: var(--ink-soft); }
.pay-card .due strong { font-size: 1.6rem; color: var(--maroon); font-variant-numeric: tabular-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; }
table.rates-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; min-width: 38rem; }
table.rates-table th { background: var(--maroon); color: #fff; text-align: left; padding: .6rem .75rem; font-weight: 600; }
table.rates-table th:not(:first-child) { text-align: right; }
table.rates-table td { padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rates-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.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: 10px; padding: .9rem 1rem; }
.precon-cards .precon-opt { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--maroon-2); font-weight: 700; margin-bottom: .2rem; }
.precon-cards strong { font-size: 1.25rem; color: var(--maroon); }

/* ---- 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: .7rem; font-weight: 700; letter-spacing: .05em; padding: .1em .55em; border-radius: 99px; background: #F6E2E5; color: var(--error); margin-left: .3rem; }

/* ---- small screens ---- */
@media (max-width: 40rem) {
  .site-header { padding: .7rem 0; }
  .brand-name { font-size: 1.05rem; }
  .brand-dates { font-size: .82rem; }
  main.wrap { padding-top: 1.1rem; }
  .stepper { gap: .25rem; }
  .stepper li:not(.current) { display: none; }
  .stepper li.current::after { content: " · step " attr(data-n) " of " attr(data-total); font-weight: 400; color: var(--ink-soft); }
  fieldset { padding: .85rem .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 */
  table.rates-table.cards-on-mobile { min-width: 0; }
  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: 10px; 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(--maroon); box-shadow: inset 4px 0 0 var(--maroon); }
  .backbar { margin-top: -1.1rem; }
}

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