:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #e0e0e0;
  --link: #2563eb;
  --link-hover: #1d4ed8;
  --emergency-bg: #c0392b;
  --emergency-text: #ffffff;
  --emergency-link: #ffd6d6;
  --emergency-link-hover: #ffffff;
  --radius: 12px;
  --radius-inner: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --surface: #1e1e1e;
    --text: #e8e8e8;
    --text-muted: #999;
    --border: #333;
    --link: #60a5fa;
    --link-hover: #93c5fd;
    --emergency-bg: #7f1d1d;
    --emergency-text: #fef2f2;
    --emergency-link: #fca5a5;
    --emergency-link-hover: #fef2f2;
  }
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1 { font-size: 2rem; font-weight: 700; }

section > h2 { font-size: 1.2rem; font-weight: 700; }
section > h3 { font-size: 1rem; font-weight: 600; }

a             { color: var(--link); text-decoration: none; }
a:hover       { color: var(--link-hover); text-decoration: underline; }

ul            { list-style: disc; }

section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Schedule cards */
.schedule-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
}

.schedule-item .label  { font-size: 0.875rem; color: var(--text-muted); }
.schedule-item .time   { font-size: 0.95rem; font-weight: 600; text-align: right; }
.schedule-item .detail { font-size: 0.8rem; color: var(--text-muted); grid-column: 1 / -1; }

.schedule-note { font-size: 0.8rem; color: var(--text-muted); }

/* Tag pill */
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 7px;
  border-radius: 99px;
}

/* Emergency section */
section.emergency {
  background: var(--emergency-bg);
  border-color: transparent;
  color: var(--emergency-text);
}

section.emergency > h2     { font-size: 1.3rem; }
section.emergency a        { color: var(--emergency-link); font-weight: 600; }
section.emergency a:hover  { color: var(--emergency-link-hover); }

.clinic .hours { font-size: 0.85rem; opacity: 0.85; }
