/* Clinical collection desk — one scrub teal, linen paper, phone first */

:root {
  --ink: oklch(0.25 0.03 230);
  --ink-soft: oklch(0.42 0.025 230);
  --linen: oklch(0.975 0.01 230);
  --surface: oklch(0.995 0.004 230);
  --rule: oklch(0.88 0.012 230);
  --navy: oklch(0.3 0.045 236);
  --scrub: oklch(0.44 0.055 198);
  --scrub-ink: oklch(0.99 0.01 198);
  --warn-ink: oklch(0.4 0.08 55);
  --warn-paper: oklch(0.96 0.03 80);
  --focus: oklch(0.5 0.08 198);
  --touch: 52px;
  --page: 70rem;
  --type: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --dock-h: 4.1rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--type);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--dock-h) + var(--safe-b));
}

::selection {
  background: oklch(0.44 0.055 198 / 0.2);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

a { color: var(--navy); }
a:hover { color: var(--scrub); }
img, svg { display: block; max-width: 100%; height: auto; }
button, input {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 80;
  background: var(--surface);
  color: var(--navy);
  padding: 0.5rem 0.75rem;
  font-weight: 650;
  text-decoration: none;
}
.skip:focus { top: 0.5rem; }

.mast {
  display: flex;
  align-items: center;
  padding: calc(0.55rem + var(--safe-t)) 1rem 0.55rem;
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  text-decoration: none;
  color: var(--ink);
}
.wordmark b {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.wordmark span {
  font-size: 0.7rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.quiet-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.cube {
  flex: 1;
  position: relative;
  overflow: hidden;
  perspective: 1200px;
}
.face {
  position: absolute;
  inset: 0;
  overflow: auto;
  background: var(--linen);
  opacity: 0;
  pointer-events: none;
  transform: translateX(18%) rotateY(-8deg);
  transform-origin: center;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.face.on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.cube[data-dir="left"] .face:not(.on) { transform: translateX(-18%) rotateY(8deg); }
.face-pad {
  width: min(100% - 1.6rem, 36rem);
  margin: 0 auto;
  padding: 1.1rem 0 1.4rem;
}
.face-pad > h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 6vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 16ch;
}
.lede {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 40ch;
}

.hero-photo {
  margin: 0 0 1rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: oklch(0.9 0.02 230);
}
.hero-photo.tight { aspect-ratio: 16 / 8; }
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roster { display: grid; gap: 0.55rem; }
.office {
  background: var(--surface);
  border: 1px solid var(--rule);
}
.office[open] { border-color: var(--ink); }

.office-front {
  width: 100%;
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: var(--touch);
  padding: 0.7rem;
  text-align: left;
  cursor: pointer;
}
.office-copy { min-width: 0; }
.office-front h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.office-front .place, .office-front .panel {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.office-front .panel {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: var(--ink);
}

.pin-card {
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--surface);
}
.pin-card svg { width: 2.35rem; height: 2.35rem; fill: currentColor; }
.pin-card em {
  position: absolute;
  top: 0.42rem;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.pin-card.ga { color: oklch(0.38 0.08 250); }
.pin-card.fl { color: oklch(0.42 0.07 198); }
.pin-card.se { color: oklch(0.36 0.03 80); }
.pin-card.ot { color: var(--navy); }

.map {
  width: 100%;
  height: 9.5rem;
  border: 0;
  background: var(--linen);
}
.pin-note {
  margin: 0.55rem 0 0.7rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.office-body {
  display: none;
  padding: 0 0.7rem 0.85rem;
}
.office[open] .office-body { display: block; }
.office-body ul {
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
}
.office-body li {
  padding-left: 0.9rem;
  position: relative;
  color: var(--ink-soft);
}
.office-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.4rem;
  height: 1px;
  background: var(--ink);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.actions.col { flex-direction: column; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: var(--touch);
  padding: 0.55rem 1rem;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}
@media (min-width: 520px) {
  .btn { width: auto; min-width: 12rem; }
}
.btn:active { transform: translateY(1px); }
.btn-go {
  background: var(--scrub);
  border-color: var(--scrub);
  color: var(--scrub-ink);
}
.btn-ghost { background: var(--surface); }
.btn-ghost:hover { background: var(--linen); }
input {
  border: 1px solid var(--ink);
  background: var(--surface);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--ink);
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.8rem 1fr;
  gap: 0.65rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}
.steps li::before {
  content: counter(step);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--scrub);
}
.steps h2 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  letter-spacing: -0.015em;
}
.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.steps .note {
  margin-top: 0.45rem;
  padding: 0.5rem 0.6rem;
  background: var(--warn-paper);
  color: var(--warn-ink);
  font-size: 0.88rem;
  font-weight: 550;
}
.step-photo {
  margin: 0.65rem 0 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.step-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facts { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.facts li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.facts strong { display: block; font-size: 0.98rem; margin-bottom: 0.15rem; }
.facts p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.faq {
  margin-top: 1.4rem;
  border-top: 1px solid var(--ink);
  padding-top: 0.75rem;
}
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  min-height: var(--touch);
  display: flex;
  align-items: center;
  font-weight: 650;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .body { padding: 0 0 0.9rem; color: var(--ink-soft); }
.faq .stack, .stack { display: grid; gap: 0.3rem; margin-top: 0.5rem; }

.row-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--touch);
  width: 100%;
  padding: 0 0.1rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  cursor: pointer;
  font-weight: 550;
}
.row-btn span { color: var(--ink-soft); font-size: 0.8rem; }

.legal-line { margin: 1.2rem 0 0.5rem; color: var(--ink-soft); font-size: 0.85rem; }
.mini-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; font-size: 0.85rem; }
.mini-nav a { color: var(--ink); text-decoration: none; font-weight: 550; }

.legal { padding: 1.5rem 0 4rem; max-width: 42rem; }
.legal h1 {
  margin: 0.3rem 0 0.9rem;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  letter-spacing: -0.03em;
}
.legal h2 { margin: 1.4rem 0 0.4rem; font-size: 1.05rem; }
.legal p, .legal li { color: var(--ink-soft); }

.dialog-back {
  position: fixed;
  inset: 0;
  background: oklch(0.25 0.03 230 / 0.45);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease);
}
.dialog-back.open { opacity: 1; pointer-events: auto; }

.dialog {
  position: fixed;
  z-index: 61;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-height: min(92dvh, 40rem);
  overflow: auto;
  background: var(--surface);
  padding: 1.1rem 1.1rem calc(1.2rem + var(--safe-b));
  opacity: 0;
  pointer-events: none;
  transform: translateY(1.2rem);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.dialog.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
@media (min-width: 640px) {
  .dialog {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: min(28rem, calc(100% - 1.6rem));
    transform: translate(-50%, -44%);
    border: 1px solid var(--ink);
    max-height: 90vh;
  }
  .dialog.open { transform: translate(-50%, -50%); }
}
.dialog h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.dialog p { margin: 0 0 0.7rem; color: var(--ink-soft); }
.dialog .warn {
  background: var(--warn-paper);
  color: var(--warn-ink);
  padding: 0.55rem 0.65rem;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.dialog-actions .btn { width: 100%; min-width: 0; }

.chat-log {
  min-height: 8rem;
  max-height: 14rem;
  overflow: auto;
  display: grid;
  gap: 0.45rem;
  margin: 0.6rem 0 0.8rem;
}
.bubble { max-width: 92%; padding: 0.45rem 0.6rem; font-size: 0.92rem; }
.bubble.bot { background: var(--linen); }
.bubble.user {
  justify-self: end;
  background: var(--navy);
  color: oklch(0.97 0.01 230);
}
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem; }
.chat-form input, .field input {
  min-height: var(--touch);
  padding: 0 0.7rem;
  width: 100%;
}
.field { display: grid; gap: 0.28rem; margin: 0 0 0.7rem; font-size: 0.88rem; font-weight: 650; }
.consent {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
}
.consent input { margin-top: 0.2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--scrub); }
.sms-status {
  margin: 0 0 0.8rem;
  padding: 0.5rem 0.6rem;
  background: var(--linen);
  font-size: 0.9rem;
  font-weight: 550;
}
.sms-status[data-kind="error"] { background: var(--warn-paper); color: var(--warn-ink); }
.chat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  padding: 0.28rem 0.4rem calc(0.28rem + var(--safe-b));
  gap: 0.2rem;
}
.dock button {
  min-height: 2.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.dock button.on {
  color: var(--scrub-ink);
  background: var(--scrub);
}

@media (prefers-reduced-motion: reduce) {
  .face { transform: none !important; transition: none; }
}
