/* Public Emrecord information pages (/emrecord/*). These are static documents served without the
   app shell or sign-in, so they carry only the default graphite theme tokens and the auth-card look
   from styles.css instead of loading the full app stylesheet. */
:root {
  color-scheme: dark;
  --bg: #111214;
  --bg-deep: #0b0c0e;
  --card: rgb(24 25 29 / 0.88);
  --surface-hover: rgb(255 255 255 / 0.065);
  --text: #eeeeef;
  --text-secondary: #b8b8bd;
  --muted: #8b8c93;
  --border: rgb(255 255 255 / 0.075);
  --border-hover: rgb(255 255 255 / 0.13);
  --accent: #5b7cfa;
  --accent-fill-hover: color-mix(in srgb, var(--accent) 88%, var(--text));
  --accent-link: color-mix(in srgb, var(--accent) 62%, var(--text));
  --shadow-lg: 0 18px 44px rgb(0 0 0 / 0.45);
  --focus-ring: 0 0 0 2px var(--bg-deep), 0 0 0 4px color-mix(in srgb, var(--accent) 80%, var(--text));
  --radius-lg: 14px;
  --radius-sm: 8px;
  --transition-fast: 0.1s cubic-bezier(0.2, 0, 0, 1);
  --text-sm: 12px;
  --text-md: 13px;
  --text-base: 14px;
  --text-lg: 16px;
  --control-h: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-link); text-underline-offset: 2px; }
a:hover { color: var(--text); }
a:focus-visible { outline: none; border-radius: 4px; box-shadow: var(--focus-ring); }

.infoTopbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 840px);
  margin: 0 auto;
  padding: 20px 16px 0;
}

.infoBrand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.infoBrand img { width: 28px; height: 28px; display: block; }

/* Same metrics as the app's .btn.primary. */
.infoBack {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-h);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--transition-fast);
}
.infoBack:hover { background: var(--accent-fill-hover); color: #fff; }

.infoMain {
  flex: 1;
  width: min(100%, 840px);
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.infoNav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}
.infoNav a {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--text-md);
  font-weight: 500;
  text-decoration: none;
}
.infoNav a:hover { background: var(--surface-hover); color: var(--text); }
.infoNav a[aria-current="page"] { background: var(--surface-hover); color: var(--text); }

/* The auth card, widened for reading. */
.infoCard {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.infoCard h1 { margin: 0 0 8px; font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.infoCard h2 { margin: 28px 0 8px; font-size: var(--text-lg); font-weight: 600; line-height: 1.4; }
.infoCard p, .infoCard li { color: var(--text-secondary); }
.infoCard p + p { margin-top: 10px; }
.infoCard ul { margin: 8px 0 0; padding-left: 20px; }
.infoCard li + li { margin-top: 6px; }
.infoCard strong { color: var(--text); font-weight: 600; }
.infoLead { font-size: 15px; }
.infoUpdated { margin-bottom: 4px; color: var(--muted) !important; font-size: var(--text-sm); }

.infoFacts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.infoFacts dt { color: var(--muted); font-size: var(--text-md); }
.infoFacts dd { margin: 0; color: var(--text); font-size: var(--text-md); font-weight: 500; overflow-wrap: anywhere; }

.infoContact {
  display: inline-block;
  margin-top: 12px;
  font-size: 20px;
  font-weight: 600;
}

.infoFooter {
  width: min(100%, 840px);
  margin: 0 auto;
  padding: 0 16px 28px;
  color: var(--muted);
  font-size: var(--text-sm);
  text-align: center;
}

@media (max-width: 520px) {
  .infoCard { padding: 24px 18px; }
  .infoCard h1 { font-size: 21px; }
  .infoFacts { grid-template-columns: 1fr; gap: 2px; }
  .infoFacts dd + dt { margin-top: 8px; }
}
