body {
  margin: 0;
  background: #f0f4f8;
  color: #163040;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.brand-gradient { background: linear-gradient(135deg, #0a5c8e 0%, #2e8b57 100%); }
.container-narrow { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
.card { background: #fff; border: 1px solid #dbe5ee; border-radius: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: 6px; padding: .62rem .95rem; font-weight: 700; transition: .15s ease; }
.btn-primary { background: #0a5c8e; color: #fff; }
.btn-primary:hover { background: #084d76; }
.btn-accent { background: #e67e22; color: #fff; }
.btn-accent:hover { background: #c96b19; }
.btn-muted { background: #e7eef5; color: #0a5c8e; }
.field { width: 100%; border: 1px solid #c8d6e3; border-radius: 6px; padding: .72rem .8rem; background: #fff; }
.label { display: block; font-size: .88rem; font-weight: 700; color: #32566d; margin-bottom: .35rem; }
.prose-medical :is(h1,h2,h3) { color: #0a5c8e; font-weight: 800; margin: 1.4rem 0 .75rem; }
.prose-medical h1 { font-size: 2rem; }
.prose-medical h2 { font-size: 1.45rem; }
.prose-medical p, .prose-medical li { line-height: 1.8; color: #2d4657; }
.prose-medical a { color: #0a5c8e; text-decoration: underline; }
.prose-medical img { border-radius: 8px; margin: 1rem 0; max-width: 100%; }
.prose-medical blockquote { border-left: 4px solid #2e8b57; background: #f6faf8; padding: .8rem 1rem; border-radius: 6px; }
.prose-medical table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose-medical th, .prose-medical td { border: 1px solid #d8e4ee; padding: .65rem; text-align: left; }
.video-wrap { position: relative; padding-top: 56.25%; margin: 1rem 0; border-radius: 8px; overflow: hidden; background: #092d44; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dropdown:hover .dropdown-menu { display: block; }
.user-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1rem; }
.article-layout { display: grid; grid-template-columns: 290px 1fr; gap: 1.2rem; }

/* Local utility classes used by the templates. This replaces the Tailwind CDN for production. */
.hidden { display: none !important; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-full { top: 100%; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-40 { z-index: 40; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.content-start { align-content: start; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid-cols-\[1fr_130px\] { grid-template-columns: 1fr 130px; }
.h-9 { height: 2.25rem; }
.h-16 { height: 4rem; }
.h-full { height: 100%; }
.w-9 { width: 2.25rem; }
.w-56 { width: 14rem; }
.w-64 { width: 16rem; }
.w-fit { width: fit-content; }
.w-full { width: 100%; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.min-h-28 { min-height: 7rem; }
.min-h-44 { min-height: 11rem; }
.min-h-\[420px\] { min-height: 420px; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.object-cover { object-fit: cover; }
.cursor-pointer { cursor: pointer; }

.p-2 { padding: .5rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-3 { padding-bottom: .75rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.my-2 { margin-top: .5rem; margin-bottom: .5rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

.rounded { border-radius: .25rem; }
.rounded-md { border-radius: .375rem; }
.rounded-lg { border-radius: .5rem; }
.border { border: 1px solid #dbe5ee; }
.border-b { border-bottom: 1px solid #dbe5ee; }
.border-t { border-top: 1px solid #dbe5ee; }
.border-slate-200 { border-color: #e2e8f0; }
.border-red-200 { border-color: #fecaca; }
.border-amber-200 { border-color: #fde68a; }
.border-blue-700 { border-color: #1d4ed8; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(15 23 42 / .12), 0 4px 6px -4px rgb(15 23 42 / .12); }

.bg-white { background-color: #fff; }
.bg-\[\#0A5C8E\] { background-color: #0A5C8E; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-200 { background-color: #e2e8f0; }
.bg-red-50 { background-color: #fef2f2; }
.bg-amber-50 { background-color: #fffbeb; }
.text-white { color: #fff; }
.text-\[\#0A5C8E\] { color: #0A5C8E; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-slate-950 { color: #020617; }
.text-blue-50 { color: #eff6ff; }
.text-blue-100 { color: #dbeafe; }
.text-red-700 { color: #b91c1c; }
.text-amber-700 { color: #b45309; }
.hover\:text-\[\#0A5C8E\]:hover { color: #0A5C8E; }
.hover\:text-white:hover { color: #fff; }
.hover\:bg-slate-100:hover { background-color: #f1f5f9; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-normal { font-weight: 400; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.leading-7 { line-height: 1.75rem; }
.leading-8 { line-height: 2rem; }
.leading-tight { line-height: 1.15; }
.capitalize { text-transform: capitalize; }

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  margin-right: .35rem;
  border: 1px solid #dbe5ee;
  border-radius: 6px;
  background: #fff;
  color: #0a5c8e;
}
.pagination .active span,
.pagination span.current {
  background: #0a5c8e;
  color: #fff;
}

.EasyMDEContainer .CodeMirror {
  border-color: #c8d6e3;
  border-radius: 0 0 6px 6px;
  color: #163040;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.EasyMDEContainer .editor-toolbar {
  border-color: #c8d6e3;
  border-radius: 6px 6px 0 0;
}
.EasyMDEContainer .editor-toolbar button {
  color: #0a5c8e !important;
}
.EasyMDEContainer .editor-preview,
.EasyMDEContainer .editor-preview-side {
  background: #fff;
}
@media (max-width: 860px) {
  .user-layout, .article-layout { grid-template-columns: 1fr; }
  .desktop-nav { display: none; }
}
@media (min-width: 861px) {
  .mobile-nav { display: none; }
  .md\:grid { display: grid; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .md\:grid-cols-\[220px_1fr\] { grid-template-columns: 220px 1fr; }
  .md\:p-8 { padding: 2rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1.1; }
}
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-\[1fr_360px\] { grid-template-columns: 1fr 360px; }
  .lg\:grid-cols-\[70px_1fr_1fr_90px_90px_160px\] { grid-template-columns: 70px 1fr 1fr 90px 90px 160px; }
}
