:root {
  --text: #1f2937;
  --muted: #667085;
  --background: #f8fafc;
  --surface: #ffffff;
  --border: #d9e1e8;
  --accent: #7a1f3d;
  --accent-dark: #56162b;
  --accent-soft: #f8eef2;
  --warning-soft: #fff8e7;
  --warning-border: #e8d59b;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.65;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-link {
  margin-left: 20px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.nav-link:hover {
  color: var(--accent);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.hero,
.article-header {
  max-width: 800px;
  padding: 36px 0 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 18px;
  font-size: 1.75rem;
  line-height: 1.2;
}

h3 {
  margin-top: 0;
  line-height: 1.3;
}

.subtitle {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.18rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.card {
  display: block;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card-link {
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}

.card-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.card-action {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 800;
}

.coming-soon {
  display: inline-block;
  margin-top: 18px;
  padding: 4px 9px;
  color: var(--muted);
  background: var(--background);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 18px;
  color: white;
  background: var(--accent);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.button:hover {
  background: var(--accent-dark);
}

.article-content {
  max-width: 860px;
}

.article-content section {
  margin: 58px 0;
}

.article-content p,
.article-content li {
  font-size: 1.02rem;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--accent-dark);
}

.clinical-alert,
.clinical-pearl,
.summary-box,
.formula-box {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: 12px;
}

.clinical-alert {
  background: var(--warning-soft);
  border: 1px solid var(--warning-border);
}

.clinical-pearl {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
}

.summary-box,
.formula-box {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.formula-box {
  text-align: center;
  font-size: 1.08rem;
}

.table-wrapper {
  width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}

th {
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
}

td {
  background: var(--surface);
  font-size: 0.98rem;
}

th:nth-child(1),
td:nth-child(1) {
  width: 25%;
}

th:nth-child(2),
td:nth-child(2) {
  width: 31%;
}

th:nth-child(3),
td:nth-child(3) {
  width: 44%;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:nth-child(even) td {
  background: #fbfcfe;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.two-column > div {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.reference-list li {
  margin-bottom: 12px;
}

.article-disclaimer {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.article-disclaimer p {
  margin-bottom: 0;
  color: var(--muted);
}

footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  nav {
    align-items: flex-start;
    gap: 16px;
  }

  .nav-link {
    margin-left: 12px;
  }

  main {
    padding: 30px 16px 60px;
  }

  .hero,
  .article-header {
    padding-top: 24px;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .article-meta {
    flex-direction: column;
    gap: 4px;
  }

  table {
    min-width: 700px;
  }

  th,
  td {
    padding: 14px;
  }
}
