/* /clinics, for clinics and pharmacies (website/src/clinics/build-clinics.mjs), loaded after styles.css, blog.css and
   medicines.css. The card and the report's first page are paper on the stage in both appearances (medicines.css's
   paper tokens), the card drawn as it prints; then the clinic code set big where the page says how patients get it. */

.clinic-inline-code { font-weight: 600; letter-spacing: 0.04em; color: var(--ink); white-space: nowrap; }
.clinic-link { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* The stage: the card and the report side by side, the card the larger; one above the other on a phone. */
.clinic-papers { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); overflow: visible; padding: clamp(24px, 4vw, 48px); }
.clinic-paper { display: grid; justify-items: center; gap: 16px; margin: 0; }
.clinic-paper figcaption { max-width: 26em; font-size: var(--text-small); line-height: 1.45; color: var(--ink-2); text-align: center; }
.clinic-card { width: 100%; max-width: 520px; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper); box-shadow: var(--paper-shadow); }
.clinic-card-svg { width: 100%; height: auto; }
.clinic-card-svg text { font-family: Helvetica, Arial, sans-serif; }
.clinic-report { display: block; width: 100%; max-width: 340px; border-radius: var(--radius-xs); overflow: hidden; background: var(--paper); box-shadow: var(--paper-shadow); transition: transform 0.25s var(--ease-out); }
.clinic-report:hover { transform: translateY(-4px); }
.clinic-report img { width: 100%; height: auto; }

/* The code, as a patient types it. */
.clinic-code { display: grid; justify-items: start; gap: 12px; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.prose .clinic-code-line { font: 600 var(--text-lead)/1.3 var(--text); color: var(--ink); }
.prose .clinic-code-value { margin: 0; font: 700 56px/1 var(--num); letter-spacing: 0.06em; color: var(--accent); user-select: all; -webkit-user-select: all; }
.prose .clinic-code-value + .btn { margin-top: 4px; }
.prose .clinic-actions { margin-top: 24px; }

/* Buttons in the reading column keep their own colours, not a link's. */
.prose a.btn { color: var(--on-accent); text-decoration: none; }
.prose a.btn-quiet { color: var(--ink); }
.prose .btn .icon { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .clinic-papers { grid-template-columns: minmax(0, 1fr); }
  .clinic-report { max-width: 300px; }
}
@media (max-width: 520px) {
  .clinic-papers { padding: 20px 16px; }
  .prose .clinic-code-value { font-size: 44px; }
  .clinic-code { padding: 20px; }
}
