body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  color: #1f2933;
  background: #f7f9fc;
}
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
header, footer {
  background: #ffffff;
  border-bottom: 1px solid #d9e2ec;
}
header {
  padding: 1rem;
  text-align: center;
}
header p {
  max-width: 760px;
  margin: 0.35rem auto 0;
}
footer {
  border-top: 1px solid #d9e2ec;
  border-bottom: none;
  padding: 1rem;
  text-align: center;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.9rem;
}

footer nav a {
  margin-right: 0;
}
section {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.about-medrec-details {
  background: #ffffff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.about-medrec-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #2f4858;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.about-medrec-details summary::-webkit-details-marker {
  display: none;
}

.about-medrec-details summary::before {
  content: "▸";
  font-size: 0.8em;
  line-height: 1;
}

.about-medrec-details[open] summary::before {
  content: "▾";
}

.about-medrec-details p,
.about-medrec-details ol {
  margin: 0.75rem 0 0;
  color: #334e68;
}

.about-medrec-details li {
  margin-bottom: 0.45rem;
}

h1 {
  margin: 0;
  font-size: 1.8rem;
}
h2 {
  margin-top: 0;
}
dl dt {
  font-weight: 700;
  margin-top: 0.8rem;
}
dl dd {
  margin: 0.3rem 0 0.6rem;
}

.evidence-card h2 {
  margin-bottom: 0.5rem;
}

.key-takeaway {
  background: #eef6ff;
  border: 1px solid #bcccdc;
  border-left: 4px solid #486581;
  border-radius: 6px;
  padding: 0.75rem;
  margin: 0.75rem 0;
}

.key-takeaway h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.key-takeaway p {
  margin: 0;
}

.format-example-table-wrapper,
.demo-comparison-table-wrapper {
  margin: 0.75rem 0 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.format-example-table,
.demo-comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #ffffff;
}

.format-example-table caption,
.demo-comparison-table caption {
  caption-side: top;
  color: #52606d;
  font-weight: 700;
  padding: 0.35rem 0 0.6rem;
  text-align: left;
}

.format-example-table th,
.format-example-table td,
.demo-comparison-table th,
.demo-comparison-table td {
  border: 1px solid #d9e2ec;
  padding: 0.7rem;
  text-align: left;
  vertical-align: top;
}

.format-example-table thead th,
.demo-comparison-table thead th {
  background: #eef6ff;
  color: #102a43;
}

.format-example-table tbody th {
  color: #102a43;
  font-weight: 700;
  width: 22%;
}

.format-example-table pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: anywhere;
  font-family: inherit;
  line-height: 1.45;
}

.demo-change-chip {
  display: inline-block;
  border: 1px solid #bcccdc;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: #f7f9fc;
  color: #334e68;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
}

.demo-change-chip.added {
  background: #e3f9e5;
  border-color: #a3d9a5;
  color: #0b6b2b;
}

.demo-change-chip.removed {
  background: #ffe8e8;
  border-color: #f7b2b2;
  color: #9b1c1c;
}

.demo-change-chip.changed {
  background: #fffbea;
  border-color: #f7d070;
  color: #7c5e10;
}

.demo-change-chip.unchanged {
  background: #e6f6ff;
  border-color: #9ed7f5;
  color: #075985;
}

.demo-change-chip.caution {
  background: #f5f0ff;
  border-color: #c4b5fd;
  color: #5b21b6;
}

.format-note {
  background: #f7f9fc;
  border: 1px solid #d9e2ec;
  border-left: 4px solid #486581;
  border-radius: 6px;
  padding: 0.75rem;
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0 0;
}

.cta-links a {
  display: inline-block;
  margin-right: 0;
}

.primary-cta {
  background: #1d4ed8;
  border: 1px solid #1e40af;
  border-radius: 6px;
  color: #ffffff;
  font-weight: 700;
  padding: 0.6rem 0.9rem;
  text-decoration: none;
}

.primary-cta:visited {
  color: #ffffff;
}


.tool-cta {
  max-width: 860px;
  margin: 1rem auto;
  text-align: center;
  background: #ffffff;
  border: 1px solid #bcccdc;
  border-radius: 10px;
  padding: 1rem;
}

.tool-cta h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.tool-cta p {
  max-width: 720px;
  margin: 0 auto 0.75rem;
}

.tool-cta-button {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  border: 1px solid #486581;
  text-decoration: none;
  font-weight: 700;
}

.tool-cta-button:focus,
.tool-cta-button:hover {
  text-decoration: underline;
}
