/* Public Care Portal demos: compact product typography inspired by the ROX reference.
   Keep this layer separate so native component synchronization preserves the styling. */
@font-face {
  font-family: 'Inter';
  src: url('assets/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-family-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --authored-font: var(--font-family-ui);
  --page-title: 1.125rem;
  --section-title: .9375rem;
  --body-size: .8125rem;
  --compact-body-size: var(--body-size);
  --reading-size: var(--body-size);
  --description-size: var(--body-size);
  --meta-size: .75rem;
  --body-leading: 1.5;
  --meta-leading: 1.5;
  --heading-leading: 1.35;
  --reading-leading: 1.6;
  --heading-weight: 500;
  --emphasis-weight: 500;
  --label-weight: 400;
  --button-weight: 400;
  --action-font-size: var(--body-size);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { font-weight: 400; letter-spacing: 0; }
h1, h2 { letter-spacing: -.015em; text-align: start; }
button, input, select, textarea { font-family: var(--font-family-ui); }
.is-embedded #demo-patient-name {
  font-size: var(--section-title);
  font-weight: var(--heading-weight);
}
.patient-tab { font-weight: 400; }
.patient-tab[aria-selected="true"], .nav button.active { font-weight: 500; }
.demo-mode-label, .demo-sample-label, .is-embedded .demo-motion-toggle {
  font-size: var(--meta-size);
  line-height: var(--meta-leading);
}
.table, .record-table, .clinical-metric, .record-plot, .reaction-trend-plot,
.group-trend, .chart-labels, .record-timestamp {
  font-variant-numeric: tabular-nums;
}
.care-experiment-counts strong { font-size: var(--page-title); font-weight: 500; }

/* Preserve readable, non-zooming controls on touch-size full demos. */
@media (max-width: 600px) {
  .field input, .field textarea, .field select,
  input.filter, select.filter { font-size: 1rem; }
}
