/*
 * The guest site's shell (the hand-off's GUEST §1): one responsive site, the
 * phone boards (390) as the base, tablet (834) and desktop (1440) from there.
 */

.guest { min-height: 100vh; display: flex; flex-direction: column; }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ground); }
.site-header-in { display: flex; align-items: center; gap: var(--sp-24); height: var(--header-h-phone);
  padding: 0 var(--sp-16); max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: var(--sp-10); text-decoration: none; min-height: var(--target-min); }
.brand-mark { width: 21px; height: 28px; color: var(--teal); }
.brand-north { font-weight: 700; font-size: 20px; line-height: 24px; color: var(--cream); }
.brand-spaces { font-weight: 500; font-size: 20px; line-height: 24px; color: var(--mint); }
.site-nav { display: none; gap: var(--sp-8); }
.site-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--sp-14);
  border-radius: var(--radius-pill); color: var(--body); text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: var(--cream); }
.site-nav a[aria-current="page"] { background: var(--raised); color: var(--mint); font-weight: 600; }
.account-circle { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: var(--raised); border: 1px solid var(--line-strong);
  color: var(--cream); font-weight: 600; font-size: 15px; text-decoration: none; }
.account-circle:hover { color: var(--cream); border-color: var(--edge); }
.sign-in-link { margin-left: auto; display: inline-flex; align-items: center; min-height: var(--target-min); font-weight: 600; }

/* --- Page --- */
.guest-main { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: var(--sp-8) var(--sp-16) calc(var(--tabbar-h) + var(--sp-32)); }
.guest-main.has-summary { padding-bottom: calc(var(--tabbar-h) + 96px); }
.page-messages { margin-bottom: var(--sp-16); }

/* --- Phone tab bar (pinned, square, night band) --- */
.tab-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: var(--tabbar-h); background: var(--band);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.tab-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); text-decoration: none; font-size: 12px; line-height: 16px; }
.tab-bar a .icon { color: currentColor; }
.tab-bar a[aria-current="page"] { color: var(--mint); font-weight: 600; }

/* --- Summary bar (pinned bottom on the steps; the form's end without script) --- */
.summary-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; background: var(--band); border-top: 1px solid var(--line); }
.summary-bar-in { max-width: 1440px; margin: 0 auto; padding: var(--sp-12) var(--sp-16) var(--sp-20);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-16); }
.summary-fact { display: flex; flex-direction: column; min-width: 0; }
.summary-value { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--cream); }
.summary-hint { font-size: 13px; line-height: 18px; color: var(--muted); }
.has-summary .tab-bar { display: none; }
.summary-bar .btn { white-space: nowrap; flex: none; }

/* --- Step header (checkout pages) --- */
.step-header { display: flex; flex-direction: column; gap: var(--sp-12); padding: var(--sp-8) var(--sp-16) var(--sp-16);
  border-bottom: 1px solid var(--line); max-width: 1440px; margin: 0 auto; width: 100%; }
.step-header-top { display: flex; align-items: center; gap: var(--sp-8); }
.back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  color: var(--cream); border-radius: 50%; }
.back .icon { color: currentColor; }
.step-name { font-size: 13px; line-height: 18px; color: var(--muted); }
.step-room { font-size: 17px; line-height: 22px; font-weight: 700; color: var(--cream); }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.progress span { height: 4px; border-radius: 2px; background: var(--line-strong); }
.progress span.done { background: var(--teal); }

@media (max-width: 959px) {
  /* Checkout steps use the step header instead (GUEST §1). */
  .step-page .site-header { display: none; }
}

@media (min-width: 960px) {
  .site-header { border-bottom: 1px solid var(--line); }
  .site-header-in { height: var(--header-h-desktop); padding: 0 var(--sp-40); }
  .brand-mark { width: 24px; height: 32px; }
  .site-nav { display: flex; }
  .tab-bar { display: none; }
  .guest-main { padding: var(--sp-32) 80px 64px; }
  .guest-main.has-summary { padding-bottom: 120px; }
}
