/* Guest booking pages. Ledger steps on paper; the order summary is a dusk card. */

.bhdr { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--hdr); padding-inline: var(--m); border-bottom: 1px solid var(--rule); }
.bhdr__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 400 1.22rem/1 var(--f-display); letter-spacing: -.015em; white-space: nowrap; }
.bhdr__brand img { width: 36px; height: 36px; }
.bhdr__help { font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding: 4px 0; white-space: nowrap; }
.bhdr__help:hover { border-color: var(--accent); }
.show-sm { display: none; }

.bk { padding: clamp(28px, 4vw, 56px) var(--m) clamp(56px, 7vw, 104px); max-width: 1320px; margin: 0 auto; }
.bk__intro { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 52px); }
.bk__intro .cap { margin-bottom: 14px; }
.bk__title { font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5.6rem); margin-bottom: 18px; }
.bk__grid > * { min-width: 0; }
.bk__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: clamp(32px, 5vw, 80px); align-items: start; }

/* ---------- steps (ledger) ---------- */
.steps { border-top: 1px solid var(--rule-strong); }
.step { border-bottom: 1px solid var(--rule); }
.step__head { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 6px 18px; padding: 22px 0; }
.step__title { display: flex; align-items: baseline; gap: 14px; font: 600 1.06rem/1.2 var(--f-text); font-variant-caps: all-small-caps; font-feature-settings: "smcp", "c2sc"; letter-spacing: .09em; }
.step__no { font-family: var(--f-display); font-style: italic; font-weight: 400; font-variant-caps: normal; font-feature-settings: normal; letter-spacing: 0; font-size: 1.7rem; line-height: 1; color: var(--accent); min-width: 1.4em; }
.step__sum { color: var(--ink); font-size: 1rem; min-width: 0; overflow-wrap: anywhere; }
.step__edit { display: none; font-size: .95rem; }
.step__body { padding: 0 0 30px; display: none; }
.step.is-active .step__body { display: block; animation: rise .45s var(--ease-out); }
.step.is-done .step__edit { display: inline; }
.step.is-locked .step__title, .step--ghost .step__title { color: var(--muted); }
.step.is-locked .step__no, .step--ghost .step__no { color: color-mix(in srgb, var(--accent) 45%, var(--paper)); }
.step--ghost { border-bottom: 0; }
.step__actions { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; margin-top: 26px; }
.step__actions--final .small { max-width: 26em; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- products ---------- */
.products { display: grid; gap: 12px; }
.product { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; padding: 20px 22px; border: 1px solid var(--rule-strong); border-radius: var(--r-lg); cursor: pointer; background: color-mix(in srgb, #fff 35%, var(--paper)); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.product:hover { border-color: color-mix(in srgb, var(--ink) 55%, transparent); }
.product input { width: 20px; height: 20px; margin: 6px 0 0; accent-color: var(--forest); }
.product__name { font: 360 clamp(1.35rem, 1.1rem + .7vw, 1.75rem)/1.1 var(--f-display); letter-spacing: -.02em; }
.product__name em { font-style: italic; color: var(--accent); }
.product__meta { grid-column: 2; color: var(--soft); font-size: .98rem; margin-top: 4px; }
.product__tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: .88rem; font-weight: 600; color: var(--ok); }
.product__tags span::before { content: "✓ "; }
.product__price { grid-column: 3; grid-row: 1 / 3; text-align: right; }
.product__price strong { display: block; font: 380 1.6rem/1 var(--f-display); letter-spacing: -.02em; }
.product__price span { font-size: .86rem; color: var(--soft); }
.product:has(input:checked) { border-color: var(--forest); background: var(--mist); box-shadow: inset 0 0 0 1px var(--forest); }
.product:has(input:focus-visible) { box-shadow: inset 0 0 0 1px var(--forest), var(--focus); }

.itin { margin-top: 20px; border-top: 1px solid var(--rule); padding-top: 14px; }
.itin summary { cursor: pointer; font-weight: 600; width: fit-content; }
.itin p { margin-top: 10px; font: 350 1.08rem/1.5 var(--f-display); color: var(--soft); max-width: 38em; }

/* ---------- calendar ---------- */
.cal__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal__month { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.8rem); text-align: center; }
.cal__nav { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule-strong); background: transparent; cursor: pointer; }
.cal__nav svg { width: 20px; height: 20px; }
.cal__nav:disabled { opacity: .3; cursor: not-allowed; }
.cal__nav:not(:disabled):hover { border-color: var(--accent); }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__dow { margin-bottom: 4px; }
.cal__dow span { text-align: center; font: 600 .78rem/1 var(--f-text); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.cal__row { display: contents; }
.cal__cell { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 4px; min-height: 72px; padding: 8px 9px; border: 1px solid var(--rule); border-radius: 6px; background: color-mix(in srgb, #fff 40%, var(--paper)); text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; }
.cal__cell:hover:not([aria-disabled="true"]) { border-color: var(--forest); }
.cal__cell[aria-disabled="true"] { cursor: default; background: transparent; border-color: transparent; }
.cal__cell--pad { visibility: hidden; }
.cal__d { font: 500 1.08rem/1 var(--f-display); font-variant-numeric: lining-nums; }
.cal__s { font-size: .8rem; line-height: 1.15; font-weight: 600; color: var(--ok); }
.cal__s--filling { color: var(--warn); }
.cal__s--none { color: var(--muted); font-weight: 500; }
.cal__cell[aria-disabled="true"] .cal__d { color: var(--muted); }
.cal__cell.is-today .cal__d { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.cal__cell[aria-selected="true"] { background: var(--forest); border-color: var(--forest); color: var(--dusk-ink); }
.cal__cell[aria-selected="true"] .cal__s { color: var(--sun); }
.cal__bar2 { display: block; width: 100%; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.cal__bar2 i { display: block; height: 100%; background: var(--ok); border-radius: 2px; }
.cal__s--filling + .cal__bar2 i, .cal__bar2.is-filling i { background: var(--warn); }
.cal__cell[aria-selected="true"] .cal__bar2 { background: rgba(238,230,210,.2); }
.cal__cell[aria-selected="true"] .cal__bar2 i { background: var(--sun); }
.cal__legend { margin-top: 12px; }
.cal.is-loading .cal__grid { opacity: .5; }

.day { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.day__title { font: 600 .95rem/1.3 var(--f-text); font-variant-caps: all-small-caps; letter-spacing: .09em; color: var(--soft); margin-bottom: 10px; }
.day__list { display: grid; gap: 10px; }
.slot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--rule-strong); border-radius: 8px; }
.slot__name { font: 380 1.25rem/1.15 var(--f-display); }
.slot__time { color: var(--soft); font-size: .95rem; }
.slot__left { font-weight: 600; font-size: .95rem; color: var(--ok); }
.slot__left--filling { color: var(--warn); }
.slot__left--none { color: var(--muted); }
.slot.is-chosen { border-color: var(--forest); background: var(--mist); box-shadow: inset 0 0 0 1px var(--forest); }
.slot .btn { grid-row: 1 / 4; grid-column: 2; }

/* ---------- party ---------- */
.party { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.stepper > div:first-child { display: grid; gap: 2px; }
.stepper__ctl { display: flex; align-items: center; gap: 6px; }
.stepper__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--rule-strong); background: transparent; font: 400 1.5rem/1 var(--f-text); cursor: pointer; }
.stepper__btn:hover:not(:disabled) { border-color: var(--forest); background: var(--mist); }
.stepper__btn:disabled { opacity: .35; cursor: not-allowed; }
.stepper__val { min-width: 2.2ch; text-align: center; font: 400 1.7rem/1 var(--f-display); }
.party__note { margin-top: 12px; }

/* ---------- pickup ---------- */
.choice { display: grid; gap: 10px; }
.choice__row { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--rule-strong); border-radius: 8px; cursor: pointer; }
.choice__row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--forest); }
.choice__row > span { display: grid; gap: 3px; }
.choice__row:has(input:checked) { border-color: var(--forest); background: var(--mist); box-shadow: inset 0 0 0 1px var(--forest); }
.pickup__hotel { padding: 4px 0 10px 4px; }
.field__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.field__pair .field + .field { margin-top: 0; }
.field__pair--phone { grid-template-columns: 1.5fr 1fr; }
.field + .field__pair { margin-top: 18px; }
.field__pair + .field { margin-top: 18px; }

/* ---------- policy + consent ---------- */
.policy { margin-top: 28px; padding: 18px 20px; background: var(--paper-2); border-radius: 8px; }
.policy__list { margin: 10px 0; display: grid; gap: 6px; }
.policy__list li { position: relative; padding-left: 18px; font-size: .97rem; }
.policy__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.consent { margin-top: 24px; }
#submitErr, #dateErr, #partyErr { margin-top: 18px; }

/* ---------- summary (dusk card) ---------- */
.sum { position: sticky; top: 24px; }
.sum__card { background: var(--forest); color: var(--dusk-ink); border-radius: 14px; padding: 26px 26px 22px; box-shadow: 0 30px 60px -40px rgba(15, 34, 25, .8); --rule: var(--dusk-rule); }
.sum__title { font-size: 1.5rem; margin-bottom: 14px; }
.sum__list { display: grid; }
.sum__list > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--dusk-rule); font-size: .97rem; }
.sum__list dt { color: var(--dusk-soft); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.sum__list dd { overflow-wrap: anywhere; }
.sum__list .is-empty { color: rgba(238,230,210,.45); }
.sum__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 16px; border-top: 1px solid rgba(238,230,210,.42); }
.sum__total .cap { color: var(--dusk-soft); font-size: 1rem; }
.sum__amount { font: 360 2.4rem/1 var(--f-display); letter-spacing: -.02em; color: var(--sun); }
.sum__line { color: var(--dusk-soft); text-align: right; margin-top: 4px; }
.sum__fine { margin-top: 16px; font-size: .84rem; color: var(--dusk-soft); }
.sum__hold { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px 0 16px; padding: 10px 14px; border-radius: 8px; background: rgba(232, 169, 58, .14); color: var(--sun); font-weight: 600; }
.sum__hold .num { font: 500 1.35rem/1 var(--f-display); }

.dock { display: none; }

.bfoot { padding: 28px var(--m) 36px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .9rem; color: var(--soft); }

/* ---------- pay page ---------- */
.pay__hold { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 999px; background: var(--forest); color: var(--dusk-ink); font-weight: 600; margin-bottom: 24px; }
.pay__hold .num { font: 500 1.3rem/1 var(--f-display); color: var(--sun); }
.pay__hold.is-low { background: var(--bad); }
.pay__hold.is-low .num { color: #fff; }
.tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; padding: 5px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--rule); margin-bottom: 24px; }
.tab { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 8px; border: 0; background: transparent; font-weight: 600; cursor: pointer; }
.tab svg { width: 22px; height: 22px; }
.tab[aria-selected="true"] { background: var(--paper); box-shadow: 0 1px 0 var(--rule-strong), 0 6px 14px -10px rgba(0,0,0,.35); }
.panel { padding-top: 4px; }
.card__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.card__row .field + .field { margin-top: 0; }
.secure { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: .92rem; color: var(--soft); }
.secure svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ok); }
.testcards { display: block; margin-top: 16px; }
.testcards code { font: 600 .92em/1 ui-monospace, Consolas, monospace; background: color-mix(in srgb, #fff 50%, transparent); padding: 1px 4px; border-radius: 3px; white-space: nowrap; }
.pp { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: 28px; align-items: start; }
.pp__qr { position: relative; background: #fff; border-radius: 12px; padding: 14px; border: 1px solid var(--rule); }
.pp__qr img { width: 100%; height: auto; aspect-ratio: 1; }
.pp__qr.is-expired img { opacity: .15; filter: grayscale(1); }
.pp__label { margin-top: 8px; text-align: center; font: 700 .74rem/1.2 var(--f-text); letter-spacing: .1em; text-transform: uppercase; color: var(--bad); }
.pp__info { display: grid; gap: 14px; }
.pp__amount { font: 360 2.2rem/1 var(--f-display); letter-spacing: -.02em; }
.pp__status { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.pp__status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.pp__simulate { border-style: dashed; }
.paid { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 10px; background: var(--ok-bg); color: #183d20; font-weight: 600; margin-top: 18px; }
.paid svg { width: 28px; height: 28px; flex: none; }

/* ---------- confirmation / manage ---------- */
.conf__ref { display: inline-grid; gap: 4px; padding: 14px 20px; border-radius: 10px; border: 1px dashed var(--rule-strong); margin: 4px 0 26px; }
.conf__ref strong { font: 400 clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem)/1 var(--f-display); letter-spacing: .02em; font-variant-numeric: lining-nums; }
.ledger { border-top: 1px solid var(--rule-strong); }
.ledger > div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ledger dt { font: 600 .9rem/1.4 var(--f-text); font-variant-caps: all-small-caps; letter-spacing: .09em; color: var(--soft); }
.ledger dd { overflow-wrap: anywhere; }
.block { margin-top: clamp(32px, 4vw, 48px); }
.block > .cap { display: block; margin-bottom: 12px; }
.bring { display: grid; gap: 10px; }
.bring li { position: relative; padding-left: 26px; font: 350 1.1rem/1.45 var(--f-display); }
.bring li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.copy { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.copy .input { flex: 1 1 260px; font-size: .9rem; font-family: ui-monospace, Consolas, monospace; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.status--confirmed { background: var(--ok-bg); color: var(--ok); }
.status--held { background: var(--warn-bg); color: var(--warn); }
.status--cancelled, .status--expired { background: var(--bad-bg); color: var(--bad); }
.actions-box { padding: 20px 22px; border: 1px solid var(--rule-strong); border-radius: 10px; }
.actions-box + .actions-box { margin-top: 16px; }
.actions-box h3 { font: 380 1.35rem/1.15 var(--f-display); margin-bottom: 8px; }
.actions-box .btn { margin-top: 14px; }
.confirm-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.confirm-row .btn { margin-top: 0; }
.prose { max-width: 40em; display: grid; gap: 16px; font: 350 1.12rem/1.55 var(--f-display); }

/* ---------- phones ---------- */
@media (max-width: 899px) {
  .bk__grid { grid-template-columns: minmax(0, 1fr); }
  .bk { padding-bottom: 40px; }
  body.has-dock { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .sum { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 70; padding: 0 10px; max-height: calc(100svh - 140px); overflow: auto; display: none; }
  .sum.is-open { display: block; animation: rise .3s var(--ease-out); }
  .sum__card { border-radius: 14px 14px 10px 10px; box-shadow: 0 -20px 40px -20px rgba(0,0,0,.45); }
  .sum--inline { position: static; display: block; padding: 0; margin-top: 28px; max-height: none; }
  .dock { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; background: var(--forest); color: var(--dusk-ink); box-shadow: 0 -1px 0 rgba(0,0,0,.2), 0 -12px 24px -18px rgba(0,0,0,.4); }
  .dock__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--m) max(10px, env(safe-area-inset-bottom)); min-height: 64px; }
  .dock__txt { display: grid; gap: 1px; min-width: 0; }
  .dock__lbl { font-size: .8rem; color: var(--dusk-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock__total { font: 380 1.45rem/1.1 var(--f-display); color: var(--sun); }
  .dock__btn { color: var(--dusk-ink); border-color: rgba(238,230,210,.4); flex: none; }
  .step__head { grid-template-columns: 1fr auto; }
  .step__sum { grid-column: 1 / -1; grid-row: 2; padding-left: calc(1.4em * 1.7 + 14px); }
  .step__edit { grid-column: 2; grid-row: 1; }
  .product { grid-template-columns: 24px minmax(0, 1fr); padding: 16px; }
  .product__price { grid-column: 2; grid-row: auto; text-align: left; display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
  .product__price strong { display: inline; font-size: 1.35rem; }
  .cal__dow, .cal__grid { gap: 3px; }
  .cal__cell { min-height: 58px; padding: 6px 5px; border-radius: 5px; }
  .cal__d { font-size: 1rem; }
  .cal__s { font-size: .7rem; }
  .field__pair, .field__pair--phone, .card__row { grid-template-columns: 1fr; gap: 18px; }
  .pp { grid-template-columns: 1fr; }
  .pp__qr { max-width: 280px; }
  .ledger > div { grid-template-columns: 1fr; gap: 2px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .bhdr__brand { font-size: 1.05rem; }
  .bhdr__brand img { width: 32px; height: 32px; }
}
@media (max-width: 380px) {
  .cal__s { font-size: .64rem; letter-spacing: -.01em; }
}
@media print {
  .demo, .dock, .bhdr__help, .bfoot { display: none; }
  .grain::after { display: none; }
}

/* round 2 fixes */
.field { align-content: start; }
.sum__ref { color: var(--dusk-soft); margin: -6px 0 10px; font-size: .9rem; letter-spacing: .02em; }

/* error pages */
.errp { min-height: 55vh; }
.errp .cap { margin-bottom: 12px; }
.errp__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* calendar labels: count + unit, bigger and clearer (review round) */
.cal__s { display: flex; align-items: baseline; gap: 3px; flex-wrap: wrap; }
.cal__n { font: 700 1rem/1 var(--f-text); }
.cal__u { font-weight: 600; }
.cal__bar2 { height: 5px; border-radius: 3px; }
@media (max-width: 899px) {
  .cal__cell { min-height: 80px; padding: 6px 5px 7px; gap: 3px; }
  .cal__d { font-size: .9rem; }
  .cal__s { display: grid; gap: 1px; font-size: .875rem; line-height: 1.1; }
  .cal__n { font-size: 1.1rem; }
  .cal__u, .cal__s--none { font-size: .875rem; }
  .cal__s--none { font-weight: 600; }
  .cal__bar2 { height: 5px; }
}
@media (max-width: 380px) { .cal__s { font-size: .875rem; } .cal__u { font-size: .875rem; } }

/* ---------- Thai and Chinese (round 7) ---------- */
.bhdr { gap: 10px 16px; }
.bhdr__brand { min-width: 0; }
.bhdr .lang + .bhdr__help { margin-left: 4px; }
/* small-caps step titles and the weekday row are set for English: plain, a little larger, no tracking */
html:lang(th) .step__title, html:lang(zh) .step__title { font-size: 1.04rem; font-weight: 600; }
html:lang(th) .step__no, html:lang(zh) .step__no { font-family: "Fraunces", Georgia, serif; }
html:lang(th) .cal__dow span, html:lang(zh) .cal__dow span { font-size: .82rem; }
html:lang(th) .day__title, html:lang(zh) .day__title { font-size: .95rem; }
html:lang(th) .demo__tag, html:lang(zh) .demo__tag { font-size: .8rem; padding: 4px 8px 3px; }
html:lang(th) .itin p, html:lang(th) .product__meta, html:lang(th) .hint, html:lang(th) .small { line-height: 1.6; }
html:lang(th) .product__name, html:lang(th) .slot__name { line-height: 1.35; }
html:lang(zh) .product__name, html:lang(zh) .slot__name { font-weight: 400; line-height: 1.3; }
html:lang(th) .bk__title { font-size: clamp(2.2rem, 1rem + 3.8vw, 4.4rem); }
html:lang(zh) .bk__title { font-size: clamp(2.2rem, 1rem + 3.8vw, 4.6rem); }
/* calendar cells: a Thai or Chinese status word may need two short lines */
html:lang(th) .cal__s, html:lang(zh) .cal__s { line-height: 1.25; }
html:lang(th) .cal__s--none, html:lang(zh) .cal__s--none { overflow-wrap: anywhere; }
@media (max-width: 899px) {
  html:lang(th) .cal__s, html:lang(th) .cal__u, html:lang(th) .cal__s--none { font-size: .78rem; }
  html:lang(zh) .cal__s, html:lang(zh) .cal__u, html:lang(zh) .cal__s--none { font-size: .8rem; }
  html:lang(th) .dock__lbl, html:lang(zh) .dock__lbl { font-size: .82rem; }
}
@media (max-width: 720px) {
  .bhdr .bhdr__help { font-size: .9rem; }
}
/* phones: brand, language menu and Help share 350px; drop the globe and keep a clear gap */
@media (max-width: 440px) {
  .bhdr { gap: 8px; }
  .bhdr__brand { font-size: 1rem; gap: 8px; }
  .bhdr .lang { margin-left: auto; padding-left: 6px; }
  .bhdr .lang__ic { display: none; }
  .bhdr .lang + .bhdr__help { margin-left: 0; }
}
