/* Revision 5 — category banners, compact navigation and readable article layouts.
   Load after site.css, revision3.css and revision4.css. */

:root {
  --r5-soft-line: #c7dce7;
  --r5-focus: #176f98;
  --r5-menu-surface: #f8fcfe;
}

.publication-tags .pub-tag,
.publication-tags .scope-tag,
.selected-paper .eyebrow {
  text-transform: none;
  letter-spacing: .01em;
}

/* Native category accordions. The open state belongs to the markup. */
.treatment-groups {
  display: grid;
  gap: 16px;
}
.treatment-group {
  --category-tint: #e0eff7;
  --category-wash: #f0f8fc;
  --category-accent: #2c657f;
  border: 1px solid #c9dfe9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 13px #164a6605;
  overflow: clip;
}
details.treatment-group {
  scroll-margin-top: calc(var(--sticky-header-height, 88px) + var(--treatment-jump-height, 72px) + 16px);
}
.treatment-group:nth-child(8n + 2) {
  --category-tint: #e0efeb;
  --category-wash: #f2f9f6;
  --category-accent: #356c62;
}
.treatment-group:nth-child(8n + 3) {
  --category-tint: #e7edf7;
  --category-wash: #f5f8fc;
  --category-accent: #466384;
}
.treatment-group:nth-child(8n + 4) {
  --category-tint: #f0ede4;
  --category-wash: #faf8f1;
  --category-accent: #746749;
}
.treatment-group:nth-child(8n + 5) {
  --category-tint: #e7eee3;
  --category-wash: #f5f9f1;
  --category-accent: #526e54;
}
.treatment-group:nth-child(8n + 6) {
  --category-tint: #ede8f2;
  --category-wash: #faf7fc;
  --category-accent: #70617e;
}
.treatment-group:nth-child(8n + 7) {
  --category-tint: #dfedf0;
  --category-wash: #f1f8f9;
  --category-accent: #356b76;
}
.treatment-group:nth-child(8n + 8) {
  --category-tint: #f1e9e5;
  --category-wash: #fbf7f3;
  --category-accent: #806453;
}
.category-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto 42px;
  align-items: center;
  gap: 20px;
  min-height: 108px;
  padding: 19px 24px;
  list-style: none;
  cursor: pointer;
  border: 0;
  background: linear-gradient(105deg, var(--category-tint), var(--category-wash));
  overflow: hidden;
  transition: background-color .2s, box-shadow .2s;
}
.category-banner::-webkit-details-marker { display: none; }
.category-banner::marker { content: ""; }
.category-banner:focus-visible {
  outline: 3px solid var(--r5-focus);
  outline-offset: -4px;
}
.category-banner:hover { box-shadow: inset 0 0 0 1px #6296ad35; }
.category-banner > .category-heading {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-right: clamp(60px, 9vw, 165px);
}
.category-symbol {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid #ffffffd4;
  border-radius: 17px;
  background: #ffffffa6;
  color: var(--category-accent);
  box-shadow: 0 3px 10px #244f6b05;
}
.category-symbol svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.35;
  color: inherit;
}
.category-banner h2,
.category-banner h3 {
  margin: 0 0 6px;
  color: #173e57;
  font-size: clamp(21px, 1.65vw, 28px);
  line-height: 1.22;
  letter-spacing: -.035em;
}
.category-banner p {
  max-width: 82ch;
  margin: 0;
  color: #425d6c;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -.01em;
}
.category-banner > .category-backdrop {
  position: absolute;
  z-index: 0;
  inset-block: 0;
  right: 112px;
  width: clamp(150px, 19vw, 300px);
  flex: none;
  overflow: hidden;
  pointer-events: none;
  opacity: .3;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 78%, transparent);
}
.category-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(.7);
  mix-blend-mode: multiply;
}
.category-backdrop > svg {
  width: 100%;
  height: 100%;
  padding: 16px 24px;
  color: var(--category-accent);
  stroke-width: .8;
  opacity: .65;
}
.category-count {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 11px;
  border: 1px solid #ffffffb8;
  border-radius: 100px;
  background: #ffffffad;
  color: #3a5c6d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.category-toggle {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #7a9aab44;
  border-radius: 50%;
  background: #ffffffa8;
  color: #24516a;
  transition: background-color .2s, border-color .2s;
}
.category-toggle svg {
  width: 19px;
  height: 19px;
  transform: rotate(90deg);
  transition: transform .22s ease;
}
.treatment-group[open] > .category-banner {
  border-bottom: 1px solid #c7dce680;
}
.treatment-group[open] > .category-banner .category-toggle {
  background: #fff;
  border-color: #8bb2c4;
}
.treatment-group[open] > .category-banner .category-toggle svg {
  transform: rotate(-90deg);
}
details.treatment-group:not([open]) > .treatment-cards { display: none; }
.treatment-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}
.treatment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  min-height: 62px;
  padding: 15px 17px;
  border: 1px solid #dbe7ed;
  border-radius: 11px;
  background: #fbfdfe;
  color: #24465b;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -.018em;
}
.treatment-card > span { flex: 1; min-width: 0; }
.treatment-card > svg { width: 18px; height: 18px; color: #50798d; }
.treatment-card:hover {
  text-decoration: none;
  transform: none;
  background: #eff7fa;
  border-color: #a2c2d1;
  box-shadow: none;
}
.treatment-card:focus-visible {
  outline: 3px solid var(--r5-focus);
  outline-offset: 2px;
}
.treatment-groups--home { gap: 14px; }

/* The archive's quick navigation follows the smart header without covering it. */
.treatment-jump-bar {
  position: sticky;
  top: var(--sticky-header-offset, 0px);
  z-index: 24;
  padding-block: 13px;
  margin-bottom: 26px;
  border-block: 1px solid #c7dce9;
  background: #f4fafff5;
  box-shadow: 0 7px 18px #163d5807;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: top .25s cubic-bezier(.2, .7, .3, 1);
}
.treatment-jump-bar > .wrap { min-width: 0; }
.treatment-jump-bar .category-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
}
.treatment-jump-bar .category-jump a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #c7dce8;
  border-radius: 10px;
  background: #fff;
  color: #2d536c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}
.treatment-jump-bar .category-jump a svg { width: 19px; height: 19px; }
.treatment-jump-bar .category-jump a:hover,
.treatment-jump-bar .category-jump a[aria-current] {
  background: #e3f1f7;
  border-color: #93bdcf;
  color: #123f5c;
  text-decoration: none;
}
.category-jump-mobile { display: none; }

/* One deliberate two-panel desktop menu. */
.desktop-nav { gap: 22px; }
.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex-shrink: 0;
}
.header-tools .languages,
.header-tools .site-search-trigger { margin: 0; }
.desktop-nav > a.nav-direct,
.desktop-nav .nav-top > a {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}
.nav-group-treatments .nav-submenu {
  top: calc(100% - 1px);
  width: min(1060px, calc(100vw - 64px));
  max-height: min(74svh, 660px);
  padding: 0;
  border: 1px solid #bdd4e1;
  border-radius: 0 0 20px 20px;
  background: var(--r5-menu-surface);
  box-shadow: 0 23px 45px #123d6026;
  overflow: hidden;
}
.treatment-mega {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-width: 0;
}
.mega-category-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-height: min(74svh, 660px);
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #a6c6d5 transparent;
  border-right: 1px solid #c8dce7;
  background: #edf5f9;
}
.mega-category-tabs button[data-mega-category] {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 49px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #33566c;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
}
.mega-category-tabs button[data-mega-category] > span { min-width: 0; }
.mega-category-tabs button[data-mega-category] > svg:first-child {
  width: 25px;
  height: 25px;
  color: #40738a;
}
.mega-category-tabs button[data-mega-category] > span + svg {
  width: 14px;
  height: 14px;
  color: #6d90a0;
}
.mega-category-tabs .submenu-icon {
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.mega-category-tabs .submenu-icon svg { width: 25px; height: 25px; }
.mega-category-tabs button[data-mega-category]:hover {
  background: #e1eef5;
}
.mega-category-tabs button[data-mega-category][aria-selected="true"],
.mega-category-tabs button[data-mega-category][aria-pressed="true"],
.mega-category-tabs button[data-mega-category].is-active {
  border-color: #abcbdc;
  background: #fff;
  color: #0e4564;
  box-shadow: 0 2px 7px #1b50670a;
}
.mega-category-tabs button[data-mega-category]:focus-visible {
  outline: 3px solid var(--r5-focus);
  outline-offset: -2px;
}
.mega-treatment-panels {
  min-width: 0;
  max-height: min(74svh, 660px);
  padding: 27px 30px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #a6c6d5 transparent;
}
.mega-treatment-panel,
.mega-treatment-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0 23px;
}
.mega-treatment-panel[hidden] { display: none !important; }
.mega-treatment-panel > h2,
.mega-treatment-panel > h3,
.mega-treatment-panel > p,
.mega-treatment-panel > .mega-panel-heading,
.mega-treatment-panel > .mega-treatment-links,
.mega-treatment-panel > .mega-all {
  grid-column: 1 / -1;
}
.mega-treatment-panel h2,
.mega-treatment-panel h3 {
  margin: 0 0 11px;
  color: #173e58;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.mega-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}
.mega-panel-heading h2 { min-width: 0; margin: 0; }
.desktop-nav .mega-panel-heading .text-link {
  flex-shrink: 0;
  max-width: 125px;
  margin-top: 4px;
  padding: 0;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
}
.mega-treatment-panel > p,
.mega-panel-heading p {
  margin: 0 0 17px;
  color: #526b7a;
  font-size: 13px;
  line-height: 1.65;
}
.desktop-nav .mega-treatment-panel > a,
.desktop-nav .mega-treatment-links > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  min-height: 50px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #dae6ed;
  border-radius: 0;
  background: transparent;
  color: #234b64;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
}
.mega-treatment-panel > a > span,
.mega-treatment-links > a > span { min-width: 0; }
.mega-treatment-panel > a > svg,
.mega-treatment-links > a > svg {
  width: 17px;
  height: 17px;
  color: #678a9b;
}
.desktop-nav .mega-treatment-panel > a:hover,
.desktop-nav .mega-treatment-links > a:hover {
  color: #0a658a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.desktop-nav .mega-treatment-panel > .mega-all,
.desktop-nav .mega-treatment-panels > .mega-all {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin-top: 17px;
  padding: 10px 0;
  border-bottom: 0;
  color: #1c5874;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
  white-space: normal;
}
.mega-treatment-panels > .mega-all > svg { width: 18px; height: 18px; }

/* Plain mobile navigation and a portrait-led doctor card. */
.drawer-nav {
  display: grid;
  gap: 0;
  padding: 12px 24px 0;
}
.drawer-nav > a.drawer-link {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 15px 0;
  border-bottom: 1px solid #c9dfe9;
  color: #20475f;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.025em;
}
.drawer-nav > a.drawer-link:hover {
  padding-left: 0;
  color: #0b668e;
  text-decoration: none;
}
.drawer-nav > a.drawer-link[aria-current="page"] { color: #06668d; }
.drawer-nav .drawer-link > span:not(.drawer-icon) { min-width: 0; }
.drawer-nav .drawer-link > .drawer-icon {
  width: 39px;
  height: 39px;
  border: 1px solid #cce0e9;
  border-radius: 11px;
  background: #e1eff6;
  color: #316a84;
}
.drawer-nav .drawer-link .drawer-icon svg { width: 23px; height: 23px; }
.drawer-nav .drawer-link > svg:last-child { width: 18px; height: 18px; color: #7a9eae; }
.drawer-doctor {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 26px 24px 0;
  padding: 15px;
  border: 1px solid #c9dfe8;
  border-radius: 17px;
  background: linear-gradient(135deg, #f7fcfe, #e1eff5);
  color: #244c65;
}
.drawer-doctor img {
  width: 76px;
  height: 95px;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 12px;
  background: #d5e9f3;
}
.drawer-doctor > div { min-width: 0; }
.drawer-doctor > div > span {
  display: block;
  margin-top: 4px;
  color: #4a6678;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}
.drawer-doctor > div > p {
  margin: 9px 0 0;
  color: #2d5f74;
  font-size: 12px;
  line-height: 1.6;
}
.drawer-doctor h2,
.drawer-doctor h3,
.drawer-doctor strong {
  display: block;
  margin: 0 0 7px;
  color: #163f5b;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.drawer-doctor p {
  margin: 0 0 6px;
  color: #4a6678;
  font-size: 12px;
  line-height: 1.65;
}
.drawer-doctor small {
  display: block;
  color: #4a6678;
  font-size: 11px;
  line-height: 1.6;
}
.drawer-doctor > p:last-child,
.drawer-doctor .drawer-doctor-tagline,
.drawer-doctor .drawer-slogan {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #c9dce6;
  font-size: 12px;
  line-height: 1.65;
}
.drawer-languages { padding: 24px 24px 30px; }

/* Keep the photo and contents list in the same sticky profile column. */
@media (min-width: 901px) {
  .profile-layout > aside {
    position: sticky;
    top: calc(var(--sticky-header-offset, 0px) + 20px);
    align-self: start;
    max-height: calc(100vh - var(--sticky-header-offset, 0px) - 40px);
    max-height: calc(100svh - var(--sticky-header-offset, 0px) - 40px);
    padding-inline-end: 6px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #a3c3d2 transparent;
  }
  .profile-layout > aside .profile-portrait,
  .profile-layout > aside .cv-toc,
  .profile-layout > aside .aside-box {
    position: static;
  }
}

/* Content uses the space released by the removed process explorer. */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: start;
  gap: 32px;
}
.article-content,
.article-content .article-section {
  width: 100%;
  max-width: none;
  min-width: 0;
}
.article-content p,
.article-section p,
.article-content .article-points li {
  font-size: 17px;
  line-height: 1.85;
}
.article-section h2 {
  font-size: clamp(27px, 2.1vw, 34px);
  line-height: 1.3;
  margin-top: 26px;
}
.article-content > .article-section:first-child h2 { margin-top: 0; }
.article-aside {
  position: sticky;
  top: calc(var(--sticky-header-offset, 0px) + 20px);
  max-height: calc(100vh - var(--sticky-header-offset, 0px) - 40px);
  max-height: calc(100svh - var(--sticky-header-offset, 0px) - 40px);
  padding-inline-end: 5px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #a3c3d2 transparent;
}
.article-aside > .aside-box:first-child { margin-top: 0; }
.article-aside .aside-box { padding: 25px; }
.article-toc a { padding-block: 10px; font-size: 14px; line-height: 1.65; }
.article-sources a { overflow-wrap: anywhere; }
.article-content .article-health-note > p { font-size: 14px; line-height: 1.8; }

/* Compact footer with native, closed-by-default category accordions. */
.footer {
  background: radial-gradient(ellipse at 93% 0, #1b716536, transparent 54%),
    linear-gradient(115deg, #082f45, #073d4b);
  color: #e5f1f4;
  border-top: 3px solid #85d5bc;
  padding-top: 42px;
}
.footer-main {
  grid-template-columns: minmax(230px, 1.1fr) minmax(250px, 1fr) auto;
  align-items: start;
  gap: 32px;
  padding-bottom: 28px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 23px;
  padding-left: 25px;
  border-left-color: #8cafbb40;
  font-size: 14px;
  line-height: 1.65;
}
.footer-nav a { white-space: normal; }
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  font-size: 13px;
}
.footer-social a {
  min-height: 41px;
  padding: 8px 12px;
  border-color: #a5ccce45;
  background: #ffffff04;
}
.footer-treatments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 5px 30px;
  padding: 17px 0 25px;
  border-top: 1px solid #8aafb93d;
}
.footer-treatments details {
  min-width: 0;
  border-bottom: 1px solid #8aafb934;
}
.footer-treatments summary {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 74px;
  padding: 17px 0;
  color: #c9eee3;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -.012em;
  cursor: pointer;
  list-style: none;
}
.footer-treatments summary::marker { content: ""; }
.footer-treatments summary::-webkit-details-marker { display: none; }
.footer-treatments summary > svg:first-child {
  width: 23px;
  height: 23px;
  color: #a4d8ce;
  stroke-width: 1.35;
}
.footer-treatments summary > span { flex: 1; min-width: 0; }
.footer-treatments summary > svg:last-child {
  width: 24px;
  height: 24px;
  padding: 5px;
  border: 1px solid #8eb9bb55;
  border-radius: 50%;
  color: #c9eee3;
  transform: rotate(90deg);
  transition: transform .2s, background-color .2s;
}
.footer-treatments details[open] summary > svg:last-child {
  transform: rotate(-90deg);
  background: #8fc9ba16;
}
.footer-treatments summary:hover { color: #fff; }
.footer-treatments summary:focus-visible { outline-color: #a9e8d3; outline-offset: 3px; }
.footer-treatments ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0 0 18px 34px;
  list-style: none;
}
.footer-treatments details:not([open]) > ul { display: none; }
.footer-treatments li { font-size: 12px; line-height: 1.65; }
.footer-treatments li a { padding-block: 5px; color: #d8e8ed; }
.footer-meta { margin-top: 0; padding-top: 21px; border-color: #8aafb93d; }

/* Anatomy stays still. Contain the complete portrait on small screens. */
.hero .anatomy-motion {
  animation: none !important;
  transform: none;
  will-change: auto;
}

@media (max-width: 1200px) {
  .desktop-nav { gap: 14px; }
  .desktop-nav > a.nav-direct,
  .desktop-nav .nav-top > a { font-size: 14px; }
  .category-banner { grid-template-columns: 56px minmax(0, 1fr) auto 40px; gap: 16px; padding-inline: 21px; }
  .category-symbol { width: 56px; height: 56px; border-radius: 15px; }
  .category-symbol svg { width: 33px; height: 33px; }
  .category-toggle { width: 40px; height: 40px; }
  .category-banner > .category-heading { padding-right: 65px; }
  .category-banner > .category-backdrop { width: 180px; right: 100px; opacity: .24; }
  .treatment-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .treatment-jump-bar .category-jump a { font-size: 11px; padding-inline: 10px; }
  .treatment-mega { grid-template-columns: 270px minmax(0, 1fr); }
  .mega-treatment-panels { padding: 23px 25px; }
  .mega-treatment-panel, .mega-treatment-links { column-gap: 18px; }
  .footer-main { gap: 24px; grid-template-columns: minmax(210px, 1.1fr) minmax(230px, 1fr) auto; }
  .footer-nav { padding-left: 20px; column-gap: 18px; font-size: 13px; }
  .footer-social { max-width: 160px; }
  .footer-treatments { column-gap: 24px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .header-inner { gap: 12px; }
  .desktop-nav { gap: 12px; }
  .desktop-nav .nav-top > a { max-width: 170px; white-space: normal; line-height: 1.35; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .article-aside .aside-box { padding: 22px; }
}
@media (max-width: 900px) {
  .header-tools { gap: 10px; }
  .category-banner { grid-template-columns: 50px minmax(0, 1fr) auto 38px; gap: 14px; min-height: 104px; }
  .category-symbol { width: 50px; height: 50px; border-radius: 14px; }
  .category-symbol svg { width: 30px; height: 30px; }
  .category-banner > .category-heading { padding-right: 25px; }
  .category-banner > .category-backdrop { width: 160px; right: 85px; opacity: .18; }
  .category-banner h2, .category-banner h3 { font-size: 22px; }
  .category-banner p { font-size: 13px; }
  .category-toggle { width: 38px; height: 38px; }
  .treatment-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .treatment-jump-bar { padding-block: 12px; }
  .treatment-jump-bar .category-jump { display: none; }
  .category-jump-mobile { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 15px; font-size: 13px; font-weight: 700; line-height: 1.45; color: #294f66; }
  .category-jump-mobile > span { display: block; min-width: 0; }
  .category-jump-mobile label { font: inherit; color: inherit; }
  .category-jump-mobile select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 46px;
    margin: 0;
    padding: 10px 35px 10px 13px;
    border: 1px solid #afcddc;
    border-radius: 10px;
    background-color: #fff;
    color: #254c63;
    font-size: 16px;
    font-weight: 550;
    line-height: 1.4;
  }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .article-aside,
  .profile-layout > aside {
    position: static;
    max-height: none;
    padding-inline-end: 0;
    overflow: visible;
  }
  .article-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .article-aside > .aside-box { margin: 0; }
  .article-aside > .article-toc { grid-column: 1 / -1; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 25px; }
  .footer-social { grid-column: 1 / -1; max-width: none; justify-content: flex-start; }
  .footer-treatments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .treatment-groups, .treatment-groups--home { gap: 12px; }
  .treatment-group { border-radius: 15px; }
  .category-banner {
    grid-template-columns: 43px minmax(0, 1fr) 33px;
    gap: 8px 12px;
    align-items: start;
    min-height: 120px;
    padding: 17px 16px;
  }
  .category-symbol { grid-column: 1; grid-row: 1; width: 43px; height: 43px; border-radius: 12px; }
  .category-symbol svg { width: 27px; height: 27px; }
  .category-banner > .category-heading { grid-column: 2; grid-row: 1; padding: 0; }
  .category-banner h2, .category-banner h3 { font-size: 19px; line-height: 1.25; margin-bottom: 6px; }
  .category-banner p { font-size: 12px; line-height: 1.65; }
  .category-banner > .category-backdrop { right: 22px; width: 150px; opacity: .13; }
  .category-count {
    display: inline-flex;
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    color: #476775;
    font-size: 11px;
    line-height: 1.4;
  }
  .category-toggle { grid-column: 3; grid-row: 1; width: 33px; height: 33px; margin-top: 2px; }
  .category-toggle svg { width: 17px; height: 17px; }
  .treatment-cards { padding: 12px; gap: 8px; }
  .treatment-card { min-height: 58px; padding: 13px 14px; font-size: 14px; border-radius: 10px; gap: 12px; }
  .treatment-jump-bar { margin-bottom: 20px; padding-block: 10px; }
  .category-jump-mobile { grid-template-columns: minmax(0, 1fr); gap: 6px; font-size: 12px; }
  .category-jump-mobile label { font-size: 12px; }
  .category-jump-mobile select { min-height: 44px; font-size: 16px; }
  .article-layout { gap: 28px; }
  .article-content p, .article-section p, .article-content .article-points li { font-size: 16px; line-height: 1.85; }
  .article-section h2 { font-size: 26px; line-height: 1.3; }
  .article-aside { display: block; }
  .article-aside > .aside-box { margin-top: 17px; padding: 21px; }
  .article-aside > .aside-box:first-child { margin-top: 0; }
  .article-content .article-health-note > p { font-size: 13px; }
  .footer { padding-top: 32px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 23px; padding-bottom: 25px; }
  .footer-nav { border-left: 0; padding-left: 0; gap: 10px 22px; font-size: 13px; }
  .footer-social { grid-column: auto; gap: 10px; font-size: 13px; }
  .footer-treatments { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 7px 0 22px; }
  .footer-treatments summary { min-height: 64px; padding: 17px 0; font-size: 14px; gap: 12px; }
  .footer-treatments ul { padding: 0 0 18px 35px; gap: 2px; }
  .footer-treatments li a { padding-block: 6px; }
  .footer-meta { padding-top: 20px; }
  .hero .hero-inner { height: clamp(390px, 57svh, 460px); }
  .hero .hero-copy { top: 100px; width: 46%; max-width: 218px; padding: 0; }
  .hero .hero-visual {
    right: -5px;
    bottom: 0;
    width: 66%;
    max-width: 410px;
    height: calc(100% - 98px);
  }
  .hero .hero-visual .portrait-orbit {
    left: 0;
    top: 10px;
    bottom: auto;
    width: 89%;
    max-width: none;
    height: auto;
    max-height: calc(100% - 18px);
    aspect-ratio: 640 / 650;
    border-radius: 46% 46% 17% 17%;
    overflow: visible;
    background: linear-gradient(135deg, #f8fdffa6, #c3e3f47a);
  }
  .hero .hero-visual .portrait-orbit img {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    padding: 7px 5px 10px;
    object-fit: contain;
    object-position: center center;
    transform: none;
  }
  .hero .anatomy-motion {
    right: -9%;
    top: -1%;
    width: 47%;
    height: 95%;
    opacity: .8;
  }
  .hero .anatomy-motion .digestive { object-fit: contain; object-position: center; }
  .hero .hero-actions { max-width: 176px; }
}
@media (max-width: 600px) {
  .treatment-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .header .header-inner { gap: 8px; min-width: 0; }
  .header .brand { gap: 8px; min-width: 0; }
  .header .monogram { font-size: 33px; padding-right: 6px; }
  .header .brand-name { font-size: 10px; }
  .header .brand-name strong { font-size: 13px; white-space: nowrap; }
  .header-tools { min-width: 0; gap: 9px; }
  .header-tools .languages { margin: 0; gap: 6px; font-size: 10px; }
  .header .menu-button { width: 44px; height: 44px; flex-shrink: 0; }
}
@media (max-width: 760px) and (max-height: 720px) {
  .hero .hero-inner { height: 390px; }
  .hero .hero-copy { top: 92px; }
  .hero .hero-visual { height: calc(100% - 90px); }
}
@media (max-width: 350px) {
  .category-banner { grid-template-columns: 36px minmax(0, 1fr) 30px; gap: 8px 10px; padding: 16px 13px; }
  .category-symbol { width: 36px; height: 36px; border-radius: 10px; }
  .category-symbol svg { width: 24px; height: 24px; }
  .category-toggle { width: 30px; height: 30px; }
  .category-banner h2, .category-banner h3 { font-size: 18px; }
  .category-banner p { font-size: 12px; }
  .drawer-nav { padding-inline: 20px; }
  .drawer-nav > a.drawer-link { grid-template-columns: 35px minmax(0, 1fr) 16px; gap: 11px; font-size: 16px; }
  .drawer-nav .drawer-link > .drawer-icon { width: 35px; height: 35px; }
  .drawer-doctor { margin-inline: 20px; padding: 14px; grid-template-columns: 68px minmax(0, 1fr); gap: 12px; }
  .drawer-doctor img { width: 68px; height: 93px; }
  .drawer-doctor h2, .drawer-doctor h3, .drawer-doctor strong { font-size: 15px; }
  .hero .hero-copy { top: 92px; width: 47%; }
  .hero .hero-visual { right: -8px; width: 65%; }
  .hero .hero-actions { max-width: 148px; }
}
@media (prefers-reduced-motion: reduce) {
  .treatment-jump-bar,
  .category-banner,
  .category-toggle,
  .category-toggle svg,
  .treatment-card,
  .footer-treatments summary > svg:last-child { transition: none; }
}
@media print {
  .treatment-jump-bar, .nav-submenu, .drawer-doctor { display: none !important; }
  .article-layout, .profile-layout { display: block; }
  .article-aside, .profile-layout > aside { position: static; max-height: none; overflow: visible; }
  .treatment-group { break-inside: avoid; box-shadow: none; }
  .category-backdrop { display: none; }
}

