/* BE Bookings concept mockups. Static, for discussion only.
   Brand tokens from the be-brand skill (visual-identity.md). */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap");
@font-face { font-family: "Gotham"; font-weight: 300; src: local("Gotham Light"), url("../assets/brand/fonts/Gotham-Light.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Gotham"; font-weight: 400; src: local("Gotham Book"), url("../assets/brand/fonts/Gotham-Book.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Gotham"; font-weight: 500; src: local("Gotham Medium"), url("../assets/brand/fonts/Gotham-Medium.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Gotham"; font-weight: 700; src: local("Gotham Bold"), url("../assets/brand/fonts/Gotham-Bold.otf") format("opentype"); font-display: swap; }

:root {
  --turq: #00AED6;
  --turq-deep: #007A96;      /* text-safe turquoise on white */
  --turq-wash: #E6F7FB;
  --reserve: #8DC8E8;
  --sand: #D4BB97;
  --sand-wash: #F6F0E6;
  --sand-deep: #8A6D40;      /* text-safe sand on white (borders and text) */
  --coral: #F69378;
  --coral-deep: #C4553A;
  --coral-wash: #FDEDE8;
  --turq-ink: #005a70;       /* chip text on the washes */
  --sand-ink: #5e4520;
  --coral-ink: #8f3620;
  --grey: #8D9096;
  --logo-grey: #646569;
  --line: #E4E2DD;
  --ink: #000;
  --paper: #fff;
  --font: "Gotham", "Montserrat", "Proxima Nova", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-weight: 400; font-size: 15px; line-height: 1.5;
}
a { color: var(--turq-deep); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- page chrome ---------- */
.top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  padding: 18px 32px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--paper); z-index: 5;
}
.mark {
  width: 46px; height: 46px; background: var(--turq); color: #fff; flex: none;
  display: grid; place-items: center; font-weight: 500; font-size: 20px; letter-spacing: .04em;
}
.top h1 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; font-size: 13px; }
.top nav a { text-decoration: none; color: var(--ink); padding: 4px 0; border-bottom: 2px solid transparent; }
.top nav a[aria-current] { border-color: var(--turq); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px 96px; }
.intro { max-width: 70ch; padding: 44px 0 8px; }
.intro h2 { font-weight: 300; font-size: 34px; line-height: 1.2; margin: 0 0 14px; }
.intro p { margin: 0 0 10px; }
.note { font-size: 13px; color: var(--logo-grey); }

.group { padding-top: 56px; }
.group > h3 {
  margin: 0 0 4px; font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}
.group > p { margin: 0 0 26px; max-width: 72ch; color: var(--logo-grey); }

.shots { display: flex; flex-wrap: wrap; gap: 40px 36px; align-items: flex-start; }
.shot { width: 320px; }
.shot.wide { width: 100%; }
.shot figcaption { margin-top: 14px; font-size: 13px; }
.shot figcaption b { display: block; font-weight: 500; font-size: 14px; margin-bottom: 4px; }
.shot figcaption ul { margin: 6px 0 0; padding-left: 18px; color: var(--logo-grey); }
.shot figcaption li { margin-bottom: 2px; }
figure { margin: 0; }

/* ---------- device frames ---------- */
.phone {
  width: 320px; border: 1px solid #000; border-radius: 30px; overflow: hidden; background: #fff;
  font-size: 13px; line-height: 1.4;
}
.phone .status { height: 26px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; font-size: 11px; font-weight: 500; }
.phone .screen { min-height: 610px; display: flex; flex-direction: column; }
.phone .body { padding: 14px 18px 18px; flex: 1; }
.tabbar { display: flex; border-top: 1px solid var(--line); }
.tabbar span { flex: 1; text-align: center; padding: 11px 0 13px; font-size: 11px; color: var(--logo-grey); }
.tabbar span.on { color: var(--ink); font-weight: 500; box-shadow: inset 0 3px 0 var(--turq-deep); }

.desk { border: 1px solid #000; border-radius: 10px; overflow: hidden; background: #fff; font-size: 12.5px; line-height: 1.4; }
.desk .bar { display: flex; align-items: center; gap: 18px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.desk .bar .mark { width: 30px; height: 30px; font-size: 13px; }
.desk .bar .tabs { display: flex; gap: 18px; }
.desk .bar .tabs span { padding: 4px 0; color: var(--logo-grey); }
.desk .bar .tabs span.on { color: var(--ink); font-weight: 500; box-shadow: inset 0 -2px 0 var(--turq); }
.desk .bar .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.desk .pane { display: grid; }
.scroll-x { overflow-x: auto; }

/* ---------- shared pieces ---------- */
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--turq-deep); }
.h { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin: 18px 0 8px; }
.big { font-weight: 300; font-size: 24px; line-height: 1.15; margin: 2px 0 0; }
.muted { color: var(--logo-grey); }
.small { font-size: 11.5px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

.btn {
  display: block; width: 100%; text-align: center; padding: 12px 14px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font: inherit; font-weight: 500; letter-spacing: .04em; border-radius: 2px;
}
.btn.ghost { background: #fff; color: var(--ink); }
.btn.sm { display: inline-block; width: auto; padding: 6px 12px; font-size: 12px; }
.btn + .btn { margin-top: 8px; }
.row > .btn + .btn, .tools .btn + .btn { margin-top: 0; }

.chip { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 500; border: 1px solid var(--line); white-space: nowrap; }
.chip.go { background: var(--turq-wash); border-color: var(--turq-deep); color: var(--turq-ink); }
.chip.watch { background: var(--sand-wash); border-color: var(--sand-deep); color: var(--sand-ink); }
.chip.hold { background: var(--coral-wash); border-color: var(--coral-deep); color: var(--coral-ink); }
/* .sym adds the status symbol, so meaning never rests on colour alone */
.chip.sym.go::before { content: "\2713\00a0"; }
.chip.sym.watch::before { content: "~\00a0"; }
.chip.sym.hold::before { content: "\2715\00a0"; }
.chip.solid { background: var(--ink); color: #fff; border-color: var(--ink); }

.card { border: 1px solid var(--line); border-radius: 4px; padding: 12px; }
.card + .card { margin-top: 8px; }
.card.sel { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--turq); }
.photo { height: 96px; border-radius: 3px; background: linear-gradient(180deg, #9fd9ea 0 46%, #d9efe9 46% 62%, var(--sand-wash) 62%); }
.photo.sea { background: linear-gradient(180deg, #bfe6f2 0 30%, var(--turq) 30% 78%, #7fd3e6 78%); }
.photo.court { background: linear-gradient(135deg, #c7775a 0 60%, #7fae8e 60%); }
.photo.spa { background: linear-gradient(180deg, var(--sand-wash), var(--sand)); }
/* A real photograph using the placeholder class keeps its own height. */
img.photo, figure.photo { height: auto; background: none; }
img.photo { display: block; width: 100%; object-fit: cover; }

.list > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.list > div:last-child { border-bottom: 0; }
.total { font-weight: 500; }

.field { border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px; margin-top: 6px; display: flex; justify-content: space-between; gap: 10px; }
.field span:last-child { text-align: right; }
.field span:first-child { color: var(--logo-grey); }

.banner { padding: 10px 12px; border-left: 3px solid var(--turq-deep); background: var(--turq-wash); border-radius: 0 3px 3px 0; }
.banner.watch { border-color: var(--sand-deep); background: var(--sand-wash); }
.banner.hold { border-color: var(--coral-deep); background: var(--coral-wash); }
.banner.plain { border-color: var(--logo-grey); background: #F4F3F0; }

/* conditions strip: one cell per hour. One encoding everywhere:
   turquoise + check = good, sand + tilde = caution, coral + cross = not safe,
   grey and empty = no lessons (too light or after dark).
   Numbers and symbols are black on every colour; borders use the dark variants. */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; }
.strip i { display: block; height: 26px; border-radius: 2px; background: var(--line); color: var(--ink); font-style: normal; font-size: 11px; font-weight: 500; text-align: center; line-height: 26px; white-space: nowrap; overflow: hidden; }
.strip i.g { background: var(--turq); color: var(--ink); box-shadow: inset 0 0 0 1px var(--turq-deep); }
.strip i.w { background: var(--sand); box-shadow: inset 0 0 0 1px var(--sand-deep); }
.strip i.x { background: var(--coral); box-shadow: inset 0 0 0 1px var(--coral-deep); }
.strip i.c { background: var(--line); }   /* calm: neutral, not a status colour */
.strip i.g::before { content: "\2713"; }
.strip i.w::before { content: "~"; font-weight: 700; font-family: system-ui, "Segoe UI", sans-serif; }
.legend i.w::before, .chip.sym.watch::before { font-weight: 700; font-family: system-ui, "Segoe UI", sans-serif; }   /* system tilde: in Gotham "~11" reads as minus 11 */
.strip i.x::before { content: "\2715"; }
.strip i.g:not(:empty)::before, .strip i.w:not(:empty)::before, .strip i.x:not(:empty)::before { margin-right: 2px; }
.strip.thin i { height: 14px; line-height: 14px; font-size: 9px; }
.hours { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; font-size: 11px; color: var(--logo-grey); text-align: center; margin-top: 3px; }

/* tables */
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--logo-grey); padding: 8px 10px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* staff day board */
.board { display: grid; grid-template-columns: 150px repeat(12, minmax(62px, 1fr)); min-width: 940px; }
.board > div { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 46px; padding: 4px; position: relative; }
.board .lane { font-weight: 500; padding: 8px 10px; background: #fff; }
.board .lane small { display: block; font-weight: 400; color: var(--logo-grey); }
.board .hd { min-height: 0; padding: 6px 4px; font-size: 11px; color: var(--logo-grey); text-align: center; }
.bk { border-radius: 3px; padding: 4px 6px; font-size: 11px; line-height: 1.25; height: 100%; border: 1px solid var(--turq-deep); background: var(--turq-wash); }
.bk b { display: block; font-weight: 500; }
.bk.paid { }
.bk.due { border-color: var(--coral-deep); background: var(--coral-wash); }
.bk.incl { border-color: var(--sand-deep); background: var(--sand-wash); }
.bk.included { border: 1px solid var(--logo-grey); background: #fff; }   /* stay inclusion: neutral, not "attention" */
.bk.open { border: 1px dashed var(--grey); background: #fff; color: var(--logo-grey); }
.bk.blocked { border-color: var(--line); background: repeating-linear-gradient(135deg, #fff 0 6px, #f1f0ec 6px 12px); color: var(--logo-grey); }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s12 { grid-column: span 12; }

.cols { display: grid; gap: 0; }
.side { border-left: 1px solid var(--line); padding: 14px 16px; }
.pad { padding: 14px 16px; }
.kpi { font-weight: 300; font-size: 26px; line-height: 1.1; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: var(--logo-grey); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
/* the one status legend for every hourly strip: <i class="g"></i> etc. */
.legend i.g, .legend i.w, .legend i.x, .legend i.n { width: 18px; height: 14px; font-style: normal; font-size: 9px; font-weight: 500; line-height: 14px; text-align: center; color: var(--ink); vertical-align: -2px; }
.legend i.g { background: var(--turq); box-shadow: inset 0 0 0 1px var(--turq-deep); }
.legend i.w { background: var(--sand); box-shadow: inset 0 0 0 1px var(--sand-deep); }
.legend i.x { background: var(--coral); box-shadow: inset 0 0 0 1px var(--coral-deep); }
.legend i.n { background: var(--line); }
.legend i.g::before { content: "\2713"; } .legend i.w::before { content: "~"; } .legend i.x::before { content: "\2715"; }
.legend.status { color: var(--ink); }

/* smaller shared pieces added with guest screens 18-20 */
.card.off { background: #F4F3F0; border-style: dashed; }          /* taken or unavailable: full-contrast text, no fading */
.meter { height: 10px; border-radius: 2px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--turq); box-shadow: inset 0 0 0 1px var(--turq-deep); }
.scroller { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.scroller > * { flex: none; }
.scroll-cue { display: flex; align-items: center; justify-content: center; min-width: 26px; color: var(--logo-grey); font-size: 16px; }
.yn { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; font-size: 11px; }
.yn span { padding: 3px 9px; }
.yn span.on { background: var(--ink); color: #fff; font-weight: 500; }
.qa { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 12px; }
.sigbox { height: 64px; border: 1px dashed var(--logo-grey); border-radius: 3px; display: flex; align-items: flex-end; padding: 6px 8px; color: var(--logo-grey); font-size: 11px; }
.ext::after { content: " \2197"; }

/* map */
.map { position: relative; }
.map img { display: block; width: 100%; height: auto; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.pin.me { background: var(--turq-deep); border-color: #fff; color: #fff; }
.pin.on { background: var(--ink); color: #fff; }

@media (max-width: 720px) {
  .top { padding: 14px 16px; } .wrap { padding: 0 16px 64px; }
  .intro h2 { font-size: 26px; }
  .shot { width: 100%; } .phone { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Desk screens stack on narrow windows. */
@media (max-width: 720px) {
  .desk .pane { grid-template-columns: 1fr !important; }
  .desk .pane > .side { border-left: 0; border-top: 1px solid var(--line); }
  .desk .bar, .desk .bar .tabs, .desk .bar .right { flex-wrap: wrap; }
}
