/* S3 Aesthetics Demo · Scheduler. Same neutral demo brand as the Patient Hub and the Finder:
   charcoal and warm clay, Montserrat titles, Figtree text, a typeset wordmark, the demo notice on every page. */
:root {
  --primary: #23262b;
  --primary-2: #33373e;
  --rust: #b0613f;
  --sand: #f0dfcc;
  --cream: #f6f2ed;
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: 'Montserrat', 'Figtree', -apple-system, sans-serif;
  --brand-partner: #4f6f64;

  color-scheme: light;
  --bg: var(--cream);
  --surface: #ffffff;
  --surface-2: #faf7f3;
  --ink: var(--primary);
  --ink-2: #5d5a56;
  --ink-3: #8a847d;
  --on-ink: #ffffff;
  --clay: #a0573a;
  --clay-hover: #8f4d33;
  --on-clay: #ffffff;
  --line: rgba(35,38,43,.16);
  --line-soft: rgba(35,38,43,.1);
  --hover: rgba(35,38,43,.05);
  --chip-bg: var(--sand);
  --chip-ink: var(--primary);
  --focus: #b0613f;
  --ok: #047857;
  --bad: #b42318;
  --photo-bg: #ece8e3;
  --shadow: 0 1px 2px rgba(35,38,43,.06), 0 6px 18px rgba(35,38,43,.07);
  --shadow-lg: 0 18px 50px rgba(35,38,43,.22);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141517;
  --surface: #1c1e21;
  --surface-2: #24272b;
  --ink: #ece8e3;
  --ink-2: #a9a39b;
  --ink-3: #847e77;
  --on-ink: #141517;
  --clay: #d0825f;
  --clay-hover: #dc9476;
  --on-clay: #141517;
  --line: rgba(255,255,255,.16);
  --line-soft: rgba(255,255,255,.1);
  --hover: rgba(255,255,255,.05);
  --chip-bg: #3a322b;
  --chip-ink: #ece8e3;
  --focus: #d0825f;
  --ok: #34d399;
  --bad: #f87171;
  --photo-bg: #2a2d31;
  --shadow: 0 1px 3px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.28);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.45; -webkit-font-smoothing: antialiased; min-height: 100dvh; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ── Notice and header ── */
.demo-notice { background: var(--chip-bg); color: var(--chip-ink); font-size: 12.5px; font-weight: 500; letter-spacing: .02em; text-align: center; padding: 7px 16px; position: relative; z-index: 1001; }
.site-header { background: var(--primary); color: #fff; }
.hdr-inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; background: var(--sand); color: var(--primary); font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.brand-word { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.brand-word small { font-family: var(--font); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sand); }
.header-right { display: flex; align-items: center; gap: 18px; }
.hdr-link { color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; opacity: .85; }
.hdr-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 36px; height: 36px; padding: 0; margin: 0 -8px 0 0; border: none; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background .2s, color .2s; }
.theme-toggle:hover { background: rgba(255,255,255,.1); color: var(--sand); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .ic-sun, .theme-toggle .tt-label { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
@media (max-width: 640px) {
  .brand-mark { width: 32px; height: 32px; font-size: 14px; border-radius: 8px; }
  .brand-word { font-size: 19px; }
  .hdr-link { display: none; }
}

/* ── Page ── */
.page { max-width: 1180px; margin: 0 auto; padding: 36px 24px 72px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 38px); font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; }
.lede { margin: 0 0 24px; color: var(--ink-2); font-size: 16px; max-width: 60ch; }

.controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 0 0 28px; }
.search { flex: 1 1 280px; max-width: 420px; position: relative; }
.search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 15px; }
.search input::placeholder { color: var(--ink-3); }
.search svg { position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

.section { margin: 0 0 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.section-head h2 { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.section-head .count { color: var(--ink-3); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 767px) { .grid { grid-template-columns: 1fr; } }
@media (min-width: 1100px) { .grid.providers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── Cards ── */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card.hidden { display: none; }
.card-photo { aspect-ratio: 3 / 2; background: var(--photo-bg); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-top { display: flex; gap: 14px; align-items: flex-start; }
.portrait { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--photo-bg); flex-shrink: 0; }
.card-title { font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin: 0; line-height: 1.25; }
.card-sub { color: var(--ink-2); font-size: 14px; margin: 2px 0 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.open-now { color: var(--ok); font-weight: 600; }
.closed-now { color: var(--ink-3); font-weight: 500; }
.partner-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-partner); }
.times-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; border-radius: 10px; border: 1px solid transparent; background: var(--chip-bg); color: var(--chip-ink); cursor: pointer; text-align: left; line-height: 1.15; transition: background .15s, color .15s, transform .1s; }
.tchip b { font-weight: 600; font-size: 14px; }
.tchip small { font-size: 11.5px; color: var(--ink-2); }
.tchip:hover { background: var(--clay); color: var(--on-clay); }
.tchip:hover small { color: var(--on-clay); opacity: .85; }
.tchip:active { transform: translateY(1px); }
.more { align-self: flex-start; margin-top: 2px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; }
.more:hover { background: var(--hover); }
.no-times { color: var(--ink-3); font-size: 14px; }
.empty { padding: 28px; text-align: center; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; }

footer.site-foot { max-width: 1180px; margin: 0 auto; padding: 0 24px 40px; color: var(--ink-3); font-size: 13px; }
