.med-detail-page {
  --med-blue: #0072da;
  --med-light-blue: #41a4ff;
  --med-orange: #ff6a18;
  --med-ink: #2d3748;
  --med-muted: #5f6b7a;
  --med-border: #dce8f3;
  color: var(--med-ink);
  background: #fff;
  font-family: Georgia, serif;
}

.med-detail-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 24px;
  background:
    radial-gradient(circle at 88% 18%, rgba(65, 164, 255, 0.24), transparent 28%),
    linear-gradient(135deg, #eef7ff 0%, #fff 62%);
}

.med-detail-hero::after {
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 300px;
  height: 300px;
  border: 58px solid rgba(255, 106, 24, 0.12);
  border-radius: 50%;
  content: "";
}

.med-detail-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.med-detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--med-muted);
  font-family: "Maven Pro", sans-serif;
  font-size: 0.95rem;
}

.med-detail-breadcrumb a {
  color: var(--med-blue);
  text-decoration: none;
}

.med-detail-eyebrow {
  margin: 0 0 12px;
  color: var(--med-orange);
  font-family: "Maven Pro", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.med-detail-title {
  max-width: 900px;
  margin: 0;
  color: var(--med-blue);
  font-family: "Maven Pro", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.med-detail-tagline {
  max-width: 780px;
  margin: 28px 0 0;
  color: var(--med-ink);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.45;
}

.med-detail-body {
  padding: 76px 0 90px;
}

.med-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: start;
}

.med-detail-content {
  min-width: 0;
}

.med-detail-content > p,
.med-detail-section > p {
  margin: 0 0 20px;
  color: var(--med-muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

.med-detail-section {
  padding-top: 54px;
  scroll-margin-top: 120px;
}

.med-detail-section:first-child {
  padding-top: 0;
}

.med-detail-section h2 {
  margin: 0 0 20px;
  color: var(--med-blue);
  font-family: "Maven Pro", sans-serif;
  font-size: clamp(1.9rem, 3.3vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
}

.med-detail-section h3 {
  margin: 0 0 12px;
  color: var(--med-ink);
  font-family: "Maven Pro", sans-serif;
  font-size: 1.25rem;
  line-height: 1.3;
}

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

.med-detail-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--med-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 114, 218, 0.08);
}

.med-detail-card::before {
  display: block;
  width: 44px;
  height: 5px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: var(--med-orange);
  content: "";
}

.med-detail-card p {
  margin: 0;
  color: var(--med-muted);
  line-height: 1.7;
}

.med-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.med-detail-list li {
  position: relative;
  padding: 16px 18px 16px 46px;
  border: 1px solid var(--med-border);
  border-radius: 12px;
  background: #f8fbff;
  color: var(--med-ink);
  line-height: 1.5;
}

.med-detail-list li::before {
  position: absolute;
  top: 17px;
  left: 18px;
  color: var(--med-orange);
  content: "◆";
  font-size: 0.82rem;
}

.med-detail-sidebar {
  position: sticky;
  top: 110px;
  padding: 28px;
  border: 1px solid var(--med-border);
  border-radius: 18px;
  background: #f8fbff;
}

.med-detail-sidebar h2 {
  margin: 0 0 16px;
  color: var(--med-blue);
  font-family: "Maven Pro", sans-serif;
  font-size: 1.15rem;
}

.med-detail-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.med-detail-sidebar li + li {
  margin-top: 10px;
}

.med-detail-sidebar a {
  color: var(--med-ink);
  font-family: "Maven Pro", sans-serif;
  line-height: 1.35;
  text-decoration: none;
}

.med-detail-sidebar a:hover,
.med-detail-sidebar a:focus-visible {
  color: var(--med-orange);
}

.med-detail-related,
.med-detail-cta {
  margin-top: 58px;
  padding: 34px;
  border-radius: 20px;
}

.med-detail-related {
  border: 1px solid var(--med-border);
  background: #f8fbff;
}

.med-detail-related h2,
.med-detail-cta h2 {
  margin: 0 0 14px;
  font-family: "Maven Pro", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.med-detail-related h2 {
  color: var(--med-blue);
}

.med-detail-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.med-detail-related-links a {
  padding: 11px 16px;
  border: 1px solid var(--med-light-blue);
  border-radius: 999px;
  color: var(--med-blue);
  font-family: "Maven Pro", sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.med-detail-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--med-blue), #0057a7);
}

.med-detail-cta h2 {
  color: #fff;
}

.med-detail-cta p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.med-detail-button,
.medcomms-summary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 8px;
  font-family: "Maven Pro", sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.med-detail-button {
  color: var(--med-blue);
  background: #fff;
}

.medcomms-summary-link {
  margin-top: 28px;
  color: #fff;
  background: #0072da;
}

.med-detail-button:hover,
.med-detail-button:focus-visible,
.medcomms-summary-link:hover,
.medcomms-summary-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 65, 124, 0.22);
}

.medcomms-summary-action {
  width: 100%;
  text-align: center;
}

@media (max-width: 900px) {
  .med-detail-layout {
    grid-template-columns: 1fr;
  }

  .med-detail-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 640px) {
  .med-detail-hero {
    padding: 52px 20px 64px;
  }

  .med-detail-container {
    width: min(100% - 28px, 1120px);
  }

  .med-detail-body {
    padding: 54px 0 70px;
  }

  .med-detail-grid,
  .med-detail-list {
    grid-template-columns: 1fr;
  }

  .med-detail-card,
  .med-detail-related,
  .med-detail-cta {
    padding: 24px;
  }
}
