:root {
  --pathology-navy: #2d3d54;
  --pathology-blue: #008ed6;
  --pathology-red: #ed1c24;
  --bone-tint: #fbecdc;
  --soft-tint: #f5b7b5;
}

.pathology-page {
  color: #111;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
}

.pathology-main {
  width: min(100% - 48px, 1280px);
  min-height: calc(100vh - 173px);
  margin: 0 auto;
  padding: 16px 24px 42px;
  background: linear-gradient(to bottom, #fff 0, #fff 27%, var(--page-tint) 100%);
}

.pathology-osseux {
  --page-tint: var(--bone-tint);
}

.pathology-mous,
.pathology-general {
  --page-tint: var(--soft-tint);
}

.pathology-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #657081;
  font-size: 0.84rem;
  font-style: italic;
}

.back-link {
  color: var(--pathology-navy);
  font-style: normal;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pathology-main h1 {
  max-width: 1100px;
  margin: 9px auto 29px;
  color: var(--pathology-navy);
  font-size: clamp(1.65rem, 3.1vw, 2.45rem);
  line-height: 1.04;
  text-align: center;
  text-transform: uppercase;
}

.pathology-layout {
  display: block;
}

.pathology-layout.has-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 35%);
  gap: clamp(24px, 4vw, 58px);
  align-items: start;
}

.pathology-content {
  min-width: 0;
  font-size: clamp(0.96rem, 1.18vw, 1.08rem);
  line-height: 1.38;
}

.ppt-line {
  margin: 0 0 0.42rem;
  overflow-wrap: anywhere;
}

.ppt-spacer {
  height: 0.55rem;
}

.section-heading {
  margin-top: 1.35rem;
  margin-bottom: 0.55rem;
  color: #111;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.urgent-line {
  color: var(--pathology-red);
  font-weight: 800;
}

.bullet-line {
  padding-left: 1.2rem;
  text-indent: -1.05rem;
}

.ppt-bullet {
  position: relative;
  padding-left: 1.35rem;
}

.ppt-bullet::before {
  position: absolute;
  left: 0.2rem;
  width: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.ppt-bullet-solid::before {
  content: "•";
}

.ppt-bullet-open::before {
  content: "◦";
}

.ppt-bullet-square::before {
  content: "▪";
}

.ppt-bullet-dash::before {
  content: "–";
}

.ppt-bullet-null::before {
  content: "Ø";
}

.ppt-bullet-v::before {
  content: "∨";
}

.ppt-bullet-level-2 {
  margin-left: 1.15rem;
}

.ppt-bullet-level-3 {
  margin-left: 2.3rem;
}

.source-line {
  margin-bottom: 0.18rem;
  font-size: 0.82em;
  font-style: italic;
}

.source-heading {
  margin-top: 6.9rem;
}

.billing-line {
  margin-top: 6.9rem;
  margin-bottom: 0.5rem;
  color: var(--pathology-navy);
  font-size: 0.9em;
}

.billing-line + .source-heading {
  margin-top: 0;
}

.canal-heading {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ppt-line a {
  color: var(--pathology-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.ppt-color-0070c0 {
  color: #0070c0;
}

.ppt-color-0563c1 {
  color: #0563c1;
}

.ppt-color-548235 {
  color: #548235;
}

.ppt-color-7030a0 {
  color: #7030a0;
}

.ppt-color-c00000 {
  color: #c00000;
}

.ppt-color-ff0000 {
  color: #f00;
}

.pathology-media {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 18px;
}

.pathology-figure {
  display: grid;
  place-items: center;
  max-width: 100%;
  margin: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(45, 61, 84, 0.18);
}

.pathology-figure img {
  display: block;
  width: 100%;
  max-height: 580px;
  object-fit: contain;
}

.pathology-updated {
  margin: 2rem 0 0;
  color: #657081;
  font-size: 0.9rem;
  font-style: italic;
}

.page-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(45, 61, 84, 0.25);
}

.page-pagination a {
  color: var(--pathology-navy);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.page-pagination a:last-child {
  text-align: right;
}

.page-pagination a:hover,
.page-pagination a:focus-visible {
  color: #087e9b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .pathology-main {
    min-height: calc(100vh - 187px);
  }

  .pathology-layout.has-media {
    grid-template-columns: 1fr;
  }

  .pathology-media {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 620px) {
  .pathology-main {
    width: 100%;
    padding: 14px 18px 34px;
  }

  .pathology-meta {
    align-items: flex-start;
    font-size: 0.77rem;
  }

  .pathology-main h1 {
    margin-bottom: 22px;
    font-size: clamp(1.45rem, 7.5vw, 2rem);
  }

  .pathology-content {
    font-size: 0.98rem;
  }

  .pathology-media {
    grid-template-columns: 1fr;
  }

  .page-pagination {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-pagination a:last-child {
    text-align: left;
  }
}
