/* fhirserver.org — main stylesheet */

:root {
  --bg: #08111f;
  --bg2: #0d1727;
  --panel: rgba(255,255,255,.055);
  --panel-strong: rgba(255,255,255,.085);
  --line: rgba(255,255,255,.11);
  --text: #f5f7fb;
  --muted: #aebbd0;
  --teal: #33d0c6;
  --cyan: #6ed8ff;
  --blue: #6b8cff;
  --green: #8ae66e;
  --warn: #ffd166;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0,0,0,.28);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 6%, rgba(107,140,255,.18), transparent 26%),
    radial-gradient(circle at 12% 20%, rgba(51,208,198,.12), transparent 28%),
    linear-gradient(180deg, #07101d 0%, #0a1424 50%, #08111f 100%);
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  background: rgba(7,16,29,.74);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 800; letter-spacing: -.02em;
}
.mark {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  color: #041117; font-weight: 900; font-size: 14px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 8px 28px rgba(51,208,198,.25);
}
.brand small { color: var(--muted); font-weight: 600; }
nav ul {
  display: flex; align-items: center; gap: 22px;
  list-style: none; margin: 0; padding: 0;
  font-size: 14px; color: #d8e1ee;
}
nav a { text-decoration: none; }
nav a:hover { color: var(--cyan); }

.hero-pills {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vbc-taxonomy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: system-ui, -apple-system, sans-serif;
}

.pill-group-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4a5568;
  margin-bottom: 0.5rem;
}

.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}


/* ---------------------------------------------------------
   Expertise
--------------------------------------------------------- */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.expertise-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border, #dfe5ec);
  border-radius: 18px;
  background: var(--card, #ffffff);
}

.expertise-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  margin-bottom: 18px;

  border-radius: 10px;

  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;

  color: #0d6efd;
  background: rgba(13, 110, 253, 0.08);
}

.expertise-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.expertise-description {
  margin: 0 0 20px;
  color: var(--text-muted, #667085);
  line-height: 1.65;
}

.expertise-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}



/* Tablet / mobile */

@media (max-width: 820px) {

  .expertise-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {

  .expertise-card {
    padding: 22px;
  }


}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px;
  border-radius: 12px; text-decoration: none; font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(110,216,255,.55); }
.btn.primary {
  color: #041117; border: 0;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 36px rgba(51,208,198,.18);
}

.hero { padding: 112px 0 78px; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 58px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: #c7f8f4; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 11px; border-radius: 999px;
  border: 1px solid rgba(51,208,198,.26); background: rgba(51,208,198,.08);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 6px rgba(51,208,198,.09); }
h1 {
  margin: 22px 0 22px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: .98; letter-spacing: -.055em;
}
.gradient-text {
  background: linear-gradient(90deg, var(--teal), var(--cyan) 48%, #b5c4ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 20px; color: #c9d3e3; max-width: 770px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 28px; font-size: 13px; color: #8fa1bb; }

.terminal {
  border: 1px solid var(--line); border-radius: 20px;
  background: rgba(3,9,17,.72); box-shadow: var(--shadow); overflow: hidden;
}
.terminal-head {
  height: 46px; display: flex; align-items: center; gap: 7px; padding: 0 16px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.035);
}
.terminal-head span { width: 9px; height: 9px; border-radius: 50%; background: #30445e; }
.terminal-body {
  padding: 22px; font-family: "JetBrains Mono", monospace; font-size: 13px; color: #c9d3e3;
}
.terminal-body .cmd { color: var(--cyan); }
.terminal-body .ok { color: var(--green); }
.terminal-body .key { color: #c5b7ff; }
.terminal-body .dim { color: #6f829d; }
.terminal-body code { white-space: pre-wrap; }

section { padding: 82px 0; }
/* ---------------------------------------------------------
   Section dividers
--------------------------------------------------------- */
main > section:not(.hero) {
  position: relative;
}

main > section:not(.hero)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(520px, 42vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(110,216,255,.20) 20%,
    rgba(255,255,255,.16) 50%,
    rgba(110,216,255,.20) 80%,
    transparent
  );
}

@media (max-width: 560px) {
  main > section:not(.hero)::before {
    width: 64vw;
  }
}

.section-head { max-width: 760px; margin-bottom: 34px; }
.kicker {
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal);
}
h2 { margin: 10px 0 12px; font-size: clamp(32px, 4vw, 50px); letter-spacing: -.035em; line-height: 1.06; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 18px 60px rgba(0,0,0,.12);
}
.card h3 { margin: 12px 0 10px; font-size: 20px; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); }
.icon {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(51,208,198,.08); border: 1px solid rgba(51,208,198,.20);
  color: var(--teal); font-weight: 900;
}

.standards {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  color: #cfdaea;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.pill:hover {
  background: rgba(255,255,255,.065);
  border-color: rgba(110,216,255,.28);
}

.flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  counter-reset: step;
}
.flow .step {
  position: relative; padding: 22px; border-radius: 18px; border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}
.flow .step::before {
  counter-increment: step; content: counter(step);
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px;
  background: rgba(107,140,255,.15); color: #cdd6ff; font-weight: 800; margin-bottom: 16px;
}
.flow h4 { margin: 0 0 8px; }
.flow p { margin: 0; color: var(--muted); font-size: 14px; }

.endpoint {
  display: grid; grid-template-columns: 180px 1fr auto; gap: 16px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.endpoint:last-child { border-bottom: 0; }
.endpoint strong { font-size: 15px; }
.endpoint code {
  font-family: "JetBrains Mono", monospace; font-size: 12px; color: #c7d7ed;
  overflow-wrap: anywhere;
}
.endpoint a { font-size: 13px; text-decoration: none; color: var(--cyan); }

.repo-banner {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  padding: 34px; border-radius: 26px;
  border: 1px solid rgba(110,216,255,.22);
  background:
    linear-gradient(135deg, rgba(51,208,198,.10), rgba(107,140,255,.10)),
    rgba(255,255,255,.035);
}
.repo-banner h3 { margin: 0 0 8px; font-size: 28px; }
.repo-banner p { margin: 0; color: var(--muted); max-width: 760px; }

.dataset {
  display: flex; justify-content: space-between; gap: 20px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.dataset:last-child { border-bottom: 0; }
.dataset h4 { margin: 0 0 6px; }
.dataset p { margin: 0; color: var(--muted); font-size: 14px; }
.metric { white-space: nowrap; color: var(--teal); font-weight: 800; font-size: 14px; }

.about {
  display: grid; grid-template-columns: .86fr 1.14fr; gap: 26px; align-items: start;
}
.profile {
  min-height: 100%; padding: 28px;
  background: linear-gradient(145deg, rgba(51,208,198,.09), rgba(107,140,255,.08));
}
.profile .monogram {
  width: 76px; height: 76px; display: grid; place-items: center; border-radius: 20px;
  background: linear-gradient(135deg, var(--teal), var(--cyan)); color: #031016;
  font-weight: 900; font-size: 27px; margin-bottom: 22px;
}
.profile h3 { font-size: 25px; margin: 0 0 4px; }
.profile .title { color: #c7d5e7; }
.profile .links { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.profile .links a { font-size: 13px; }

.expertise-list { display: grid; gap: 12px; margin-top: 16px; }
.expertise-item {
  padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.expertise-item strong { display: block; margin-bottom: 3px; }
.expertise-item span { color: var(--muted); font-size: 14px; }


.standards-strip {
  padding: 0 0 34px;
}
.standards-panel {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.standards-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.logo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.logo-link {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.logo-link:hover {
  transform: translateY(-2px);
  border-color: rgba(110,216,255,.45);
  background: rgba(255,255,255,.045);
}
.logo-link img {
  display: block;
  max-width: 160px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.logo-fallback {
  display: none; /* shown as inline-flex by the <img> onerror handler */
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #e9f1fb;
  text-align: center;
}
.logo-fallback .accent { color: var(--teal); }
.logo-note {
  margin-top: 10px;
  color: #8091a8;
  font-size: 11px;
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.architecture-card {
  min-height: 190px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}
.architecture-card .tag {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(107,140,255,.11);
  border: 1px solid rgba(107,140,255,.22);
  color: #cbd4ff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.architecture-card h3 { margin: 14px 0 8px; font-size: 18px; }
.architecture-card p { margin: 0; color: var(--muted); font-size: 14px; }

.callout {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 3px solid var(--warn);
  border-radius: 0 14px 14px 0;
  background: rgba(255,209,102,.055);
  color: #d8e1ee;
}
.callout strong { color: #ffe29a; }

.cta {
  text-align: center; padding: 54px 28px; border-radius: 28px;
  border: 1px solid rgba(51,208,198,.22);
  background:
    radial-gradient(circle at 50% 0, rgba(51,208,198,.16), transparent 55%),
    rgba(255,255,255,.035);
}
.cta h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.cta p { color: var(--muted); max-width: 700px; margin: 0 auto 24px; }

footer { padding: 34px 0 44px; color: #7f91aa; font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

@media (max-width: 900px) {
  nav ul { display: none; }
  .hero-grid, .about, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .standards-panel { grid-template-columns: 1fr; }
  .architecture-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 78px; }
  .repo-banner { grid-template-columns: 1fr; }
  .endpoint { grid-template-columns: 1fr; gap: 5px; }
  .endpoint a { justify-self: start; }
}
@media (max-width: 560px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }
  .hero { padding-top: 60px; }
  .flow { grid-template-columns: 1fr; }
  .logo-row { grid-template-columns: 1fr; }
  .architecture-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .brand small { display: none; }
}

/* ---------- Utilities (moved from inline style attributes; !important preserves inline-style precedence) ---------- */
.mt-18 { margin-top: 18px !important; }
.mt-14 { margin-top: 14px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-18 { margin-bottom: 18px !important; }
.no-shadow { box-shadow: none !important; }
.text-muted { color: var(--muted) !important; }
.justify-center { justify-content: center !important; }
.max-w-760 { max-width: 760px !important; }

