/* Booking site layout. Colours, type, buttons, inputs, slots and the switch come from
   /field.css (Gary's Field design system); this file only arranges them. */

[hidden] { display: none !important; }
button { font: inherit; }

/* ---------- Page frame ---------- */
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 40px 56px 36px; }
.wordmark { font-size: 30px; }
.role { font-size: 15px; color: var(--text-2); margin-top: 6px; }
.top-actions { display: flex; gap: 4px; align-items: center; }
.wrap { padding: 0 56px 72px; }

/* ---------- Booking page: photo left, booking right ---------- */
.b-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); column-gap: 64px; padding: 0 56px 72px 0; }
.b-photo { margin: 0; }
.b-photo .photo { height: 640px; object-position: 47% 50%; }
.b-main { min-width: 0; }
.lede { color: var(--text-2); margin-top: 16px; max-width: 540px; }
#app { margin-top: 40px; }

/* ---------- Picker: calendar and times ---------- */
.pick { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); column-gap: 36px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 36px; height: 36px; border-radius: var(--radius-btn); border: 1px solid var(--field); background: transparent;
  color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color var(--dur) var(--ease); }
.cal-nav button:hover { border-color: var(--text); }
.cal-nav button[disabled] { opacity: .35; cursor: default; }
.cal-nav svg { stroke: currentColor; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dow { font-size: 13px; font-weight: 600; color: var(--text-2); text-align: center; padding-bottom: 6px; }
.cal-grid .day { width: auto; height: 44px; font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: background-color var(--dur) var(--ease); }
.cal-grid .day.blank { visibility: hidden; }
.cal-note { margin-top: 24px; font-size: 15px; line-height: 1.55; color: var(--text-2); max-width: 330px; }
.cal-note strong { color: var(--text); font-weight: 600; }

.times-head { font-size: 20px; margin: 6px 0 16px; }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 440px; overflow-y: auto; padding: 2px; }
.slot { font-size: 16px; transition: border-color var(--dur) var(--ease); }
.tz { margin-top: 24px; }

.select-wrap { position: relative; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; }
.select-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.6px solid var(--text); border-bottom: 1.6px solid var(--text); transform: rotate(45deg); pointer-events: none; }

/* ---------- Form step ---------- */
.summary { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--rule); }
.summary .when { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; }
.form { display: grid; gap: 18px; max-width: 560px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Messages ---------- */
.notice { padding: 12px 16px; font-size: 16px; max-width: 64ch; }
.notice-error { background: var(--alert-wash); color: var(--alert); }
.notice-ok { background: var(--wash); color: var(--text); }
.gap-below { margin-bottom: 20px; }
.gap-above { margin-top: 20px; }
.empty { display: grid; gap: 6px; padding: 8px 0; }
.empty strong { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }

/* The one strong block on a screen: confirmation, meeting summary, status panel. */
.band-block { padding: 32px 32px 34px; display: grid; gap: 14px; max-width: 640px; }
.band-block h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; }
.band-block a { color: var(--band-text); }
.band-block .when { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }

/* ---------- Manage page ---------- */
.m-main { max-width: 760px; }
.m-main h1 { margin-bottom: 32px; }
.details { margin: 28px 0; display: grid; max-width: 640px; }
.details > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
.details dt { color: var(--text-2); }
.details dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.confirm { display: grid; gap: 16px; max-width: 640px; }

/* ---------- Private page ---------- */
.t-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; column-gap: 96px; padding: 16px 56px 72px; }
.t-main h1 { font-size: clamp(48px, 6vw, 72px); }
.t-main h2 { margin-top: 44px; padding-bottom: 4px; }
.bookings { list-style: none; margin: 0; padding: 0; }
.booking { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; column-gap: 28px; align-items: start; padding: 22px 0; }
.booking-when b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.booking-when span { display: block; color: var(--text-2); font-variant-numeric: tabular-nums; margin-top: 2px; }
.booking-who b { font-weight: 600; }
.booking-who .org { color: var(--text-2); }
.booking-who .meta { font-size: 15px; color: var(--text-2); overflow-wrap: anywhere; }
.booking.first { padding-top: 18px; padding-bottom: 28px; }
.booking.first .booking-when b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.booking.first .booking-when span { font-size: 22px; font-weight: 600; color: var(--text); margin-top: 6px; }
.booking.first .booking-who > b { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.booking.closed { color: var(--text-2); }
.booking.closed .booking-when b { font-size: 20px; color: var(--text-2); }
.state { font-size: 14px; font-weight: 600; white-space: nowrap; }
.state-pending { color: var(--text-2); }

.status { padding: 28px 28px 30px; }
.status-line { display: flex; align-items: center; gap: 12px; }
.status-line i { width: 12px; height: 12px; background: var(--accent); display: block; flex: none; }
.status-line.paused i { background: var(--band-text-2); }
.status-line b { font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: -0.03em; line-height: 1; }
.switch-row { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 16px; }
.status .hint { color: var(--band-text-2); }
.linkbox { margin-top: 26px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--band-text) 20%, transparent); }
.linkbox .lbl { font-size: 14px; color: var(--band-text-2); }
.linkbox .url { font-size: 17px; font-weight: 600; margin: 2px 0 14px; overflow-wrap: anywhere; }
.btn-wash { height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius-btn); background: var(--wash); color: var(--text);
  font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  transition: background-color var(--dur) var(--ease); }
.btn-wash:hover { background: var(--wash-hover); }
.btn-wash svg { stroke: currentColor; }
.status .btn-text { color: var(--band-text); }
.health { margin-top: 28px; font-size: 15px; }
.signin { display: grid; gap: 18px; max-width: 560px; margin-top: 32px; }

.fade { animation: fade var(--dur) var(--ease) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Narrow screens ---------- */
@media (max-width: 1100px) {
  .b-grid { grid-template-columns: minmax(0, 1fr); padding: 0 56px 72px; }
  .b-photo { order: 2; margin-top: 48px; }
  .b-photo .photo { height: 360px; }
  .t-grid { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
}
@media (max-width: 760px) {
  .top { padding: 24px 16px 24px; }
  .wordmark { font-size: 24px; }
  .b-grid, .wrap, .t-grid { padding-left: 16px; padding-right: 16px; }
  .b-photo .photo { height: 240px; }
  h1 { font-size: 40px; }
  .pick { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .times { max-height: none; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .band-block { padding: 24px 20px 26px; }
  .band-block h2 { font-size: 30px; }
  .booking { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .booking-when { grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; }
  .booking.first .booking-when b { font-size: 30px; }
  .booking.first .booking-when span { margin-top: 0; }
  .details > div { flex-direction: column; gap: 2px; }
  .details dd { text-align: left; }
}
