/* UB Hotel guest and staff tools. Tokens copied from ubhotelandconferencecentre.com so the
   tools read as part of the hotel's own site: warm stone ground, black bands, champagne gold,
   Cormorant Garamond for display, DM Sans for text. One deliberate light theme, like the site. */
:root {
  --black: #0F0F0E; --black-soft: #1A1A18;
  --white: #FAFAF7; --white-warm: #F5F3EE;
  --gold: #C9A96E; --gold-bright: #D4B87A; --gold-pale: #F2EBD9; --gold-deep: #9A7D42;
  --stone: #E8E4DC; --stone-warm: #DDD8CE;
  --ink: #1C1C1A; --ink-2: #4A4842; --muted: #6B6860; --faint: #9A968C;
  --line: rgba(154, 125, 66, 0.22); --line-strong: rgba(28, 28, 26, 0.16);
  --ok: #3F6B4A; --ok-soft: #E3EDE3; --warn: #8A5A12; --warn-soft: #F6EBD5; --bad: #9B3B32; --bad-soft: #F5E2DE;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 6px; --r-lg: 12px; --pill: 999px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--white-warm); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { color: var(--gold-deep); font-style: italic; }
a { color: var(--gold-deep); }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 32px 48px; }
.narrow { max-width: 640px; margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }

/* Top bar, matching the site's black navigation */
.bar { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px); }
.bar-in { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); }
.brand { color: inherit; text-decoration: none; }
.wordmark { display: flex; flex-direction: column; font-family: var(--serif); font-size: 1.35rem; letter-spacing: .14em; line-height: 1; }
.wordmark small { font-size: .62rem; letter-spacing: .18em; color: var(--gold); margin-top: 5px; font-family: var(--serif); font-style: italic; }
.who { font-size: .82rem; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; color: rgba(250,250,247,.75); letter-spacing: .04em; }
.who button { background: transparent; color: var(--gold); border: 1px solid var(--gold); padding: 6px 14px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.foot { color: var(--muted); font-size: .78rem; letter-spacing: .04em; border-top: 1px solid var(--line); padding-block: 22px 40px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }

label { display: flex; flex-direction: column; gap: 6px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
input, select, textarea { font: 15px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--white-warm); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 12px 13px; width: 100%; }
textarea { min-height: 76px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { flex-direction: row; align-items: flex-start; gap: 12px; text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 400; color: var(--ink); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--black); }
.hint { font-size: .8rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }

button, .btn { font: 500 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; border-radius: var(--pill); padding: 14px 22px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s var(--ease), color .2s var(--ease); }
button:hover, .btn:hover { background: var(--ink); color: var(--white); }
button.primary, .btn.primary { background: var(--black); color: var(--white); border-color: var(--black); }
button.primary:hover, .btn.primary:hover { background: var(--black-soft); }
button.gold, .btn.gold { background: var(--gold); border-color: var(--gold); color: var(--black); }
button.gold:hover, .btn.gold:hover { background: var(--gold-bright); color: var(--black); }
button.big { width: 100%; padding: 17px; font-size: .82rem; }
button:disabled { opacity: .5; cursor: progress; }
button.link { background: none; border: 0; padding: 0; color: var(--gold-deep); letter-spacing: .12em; }
.arrow::before { content: "→"; letter-spacing: 0; font-size: 1rem; }

/* Conference delegate page */
.hero { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.hero-top { background: var(--black); color: var(--white); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.hero-top h1 { color: var(--white); }
.rate { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.rate b { font-family: var(--serif); font-weight: 500; font-size: 2.6rem; font-variant-numeric: lining-nums tabular-nums; }
.perks { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 24px; }
.chip { font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--pill); background: var(--gold-pale); color: var(--gold-deep); white-space: nowrap; border: 1px solid transparent; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.plain { background: transparent; border-color: var(--line-strong); color: var(--muted); }
.chip.dark { background: var(--black); color: var(--gold); }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 18px; border-radius: var(--r); background: var(--gold-pale); font-variant-numeric: tabular-nums; gap: 12px; }
.total b { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.why { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.why div { font-size: .88rem; color: var(--muted); }
.why strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.15rem; font-weight: 500; margin-bottom: 2px; }
.confirm { text-align: center; align-items: center; }
.ref { font-family: var(--serif); font-size: 2.4rem; letter-spacing: .12em; color: var(--ink); font-variant-numeric: lining-nums; }

/* Staff desk */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { border: 0; border-radius: 0; padding: 14px 16px; color: var(--muted); border-bottom: 2px solid transparent; background: none; white-space: nowrap; }
.tabs button:hover { background: none; color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.desk { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 880px) { .desk { grid-template-columns: 1fr; } }
.events { display: flex; flex-direction: column; gap: 10px; }
.ev { text-align: left; width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 16px; border-radius: var(--r-lg); border-color: var(--line); background: var(--white); text-transform: none; letter-spacing: 0; font: 400 .92rem/1.4 var(--sans); }
.ev:hover { background: var(--white); color: var(--ink); border-color: var(--gold); }
.ev[aria-current="true"] { border-color: var(--black); box-shadow: inset 3px 0 0 var(--gold); }
.ev .name { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.meter { height: 4px; border-radius: 2px; background: var(--stone); overflow: hidden; display: block; }
.meter i { display: block; height: 100%; background: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { border-top: 1px solid var(--line-strong); padding: 12px 2px 4px; }
.stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.8rem; font-variant-numeric: lining-nums tabular-nums; line-height: 1.1; }
.stat span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.linkbox { display: flex; gap: 8px; flex-wrap: wrap; }
.linkbox input { flex: 1 1 240px; font-size: .86rem; }
.qr { display: inline-block; background: #fff; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
th { font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--white-warm); }
tr:last-child td { border-bottom: 0; }
td select { padding: 6px 8px; width: auto; font-size: .82rem; }
td button { padding: 8px 12px; font-size: .68rem; }
details summary { cursor: pointer; font-family: var(--serif); font-size: 1.2rem; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.search { max-width: 340px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--black); color: var(--white); padding: 12px 20px; border-radius: var(--pill); font-size: .86rem; z-index: 40; max-width: calc(100% - 32px); border: 1px solid var(--gold); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: up .25s var(--ease); } @keyframes up { from { opacity: 0; transform: translate(-50%, 8px); } } }

[hidden] { display: none !important; }

/* ---------- Stay calendar ---------- */
.cal { position: absolute; z-index: 30; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(760px, calc(100vw - 24px)); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(15,15,14,.22); padding: 18px 20px 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cal-hint { margin: 0; font-size: .8rem; color: var(--muted); text-align: center; }
.cal-nav { width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 1.4rem; line-height: 1; letter-spacing: 0; border-color: var(--line-strong); }
.cal-nav:disabled { opacity: .25; cursor: default; }
.cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 6px; }
.cal-month h3 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .14em; font-size: 1.05rem; text-align: center; margin: 4px 0 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.cal-wd { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); text-align: center; padding-bottom: 6px; }
.cal-day { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 50px; border-radius: 0; position: relative; }
.cal-day .n { font-family: var(--serif); font-size: 1.15rem; line-height: 1; font-variant-numeric: lining-nums; color: var(--ink); }
.cal-day .p { font-size: .6rem; color: var(--gold-deep); font-variant-numeric: tabular-nums; letter-spacing: .02em; min-height: .8em; }
.cal-day:hover:not(.off):not(.start):not(.end):not(.preview):not(.mid) { background: var(--gold-pale); }
.cal-day:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.cal-day.today .n { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.cal-day.off { cursor: default; }
.cal-day.off .n { color: var(--faint); }
.cal-day.off .p { color: var(--faint); }
.cal-day.sold .n { text-decoration: line-through; }
.cal-day.mid { background: var(--stone); }
.cal-day.start, .cal-day.end, .cal-day.preview { background: var(--black); }
.cal-day.start .n, .cal-day.end .n, .cal-day.preview .n { color: var(--white); }
.cal-day.start .p, .cal-day.end .p, .cal-day.preview .p { color: var(--gold-bright); }
.cal-day.start { border-radius: 25px 0 0 25px; }
.cal-day.end, .cal-day.preview { border-radius: 0 25px 25px 0; }
.cal-day.start:not(:has(~ .mid)):not(:has(~ .end)):not(:has(~ .preview)) { border-radius: 25px; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.cal-sum { display: flex; flex-direction: column; font-size: .86rem; }
.cal-sum b { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; }
.cal-sum span { color: var(--muted); }
.cal-actions { display: flex; align-items: center; gap: 16px; }
@media (max-width: 720px) {
  .cal { position: fixed; left: 0; right: 0; bottom: 0; top: auto; transform: none; width: 100%; border-radius: 18px 18px 0 0; padding: 16px max(14px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); max-height: 92vh; overflow-y: auto; }
  .cal-day { height: 48px; }
  .cal-actions { width: 100%; justify-content: space-between; }
  .cal-actions .primary { flex: 1; }
}
