/* Reset + typography classes mirroring patient_app text_styles.dart.
   Class names map 1:1 to FText.* helpers. */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.4;
}

button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 24%, transparent);
  outline-offset: 2px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

svg {
  flex: 0 0 auto;
  color: currentColor;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

.hidden {
  display: none !important;
}

.dock-spacer {
  flex: 1;
}

/* ---- Typography (mirror patient_app FText) ---- */

.t-display {
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 46px;
  font-weight: 400;
  letter-spacing: -1.05px; /* -2.5% of 42 */
  color: var(--text-primary);
}

.t-title-1 {
  font-size: 26px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.572px; /* -2.2% of 26 */
}

.t-title-2 {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.36px; /* -1.8% of 20 */
}

.t-title-3 {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.192px; /* -1.2% of 16 */
}

.t-body {
  font-size: 16px;
  line-height: 23px;
  font-weight: 400;
  letter-spacing: -0.16px; /* -1% of 16 */
}

.t-callout {
  font-size: 15px;
  line-height: 21px;
  font-weight: 400;
  letter-spacing: -0.12px; /* -0.8% of 15 */
}

.t-subheadline {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: -0.07px; /* -0.5% of 14 */
}

.t-footnote {
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  letter-spacing: -0.026px; /* -0.2% of 13 */
}

.t-caption {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0;
}

.caption-up {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 1.26px; /* +12% of 10.5 */
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.56px;
  color: var(--text-primary);
}

/* ---- Color helpers ---- */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }

.tabular { font-variant-numeric: tabular-nums; }
