/* Existing clinic typography and copper/ivory palette; scoped to new content. */
.cellvian-section-tabs {background:#fff;border-bottom:1px solid #e4ddd4;}
.cellvian-section-tabs__inner {display:grid;grid-template-columns:repeat(5,minmax(max-content,1fr));max-width:1200px;margin:auto;overflow-x:auto;scrollbar-width:thin;}
.cellvian-section-tabs a {display:flex;justify-content:center;align-items:center;min-height:60px;padding:14px 20px;color:#57493a;text-decoration:none;font-weight:600;border-bottom:2px solid transparent;white-space:nowrap;}
.cellvian-section-tabs a[aria-current=page] {color:#765037;border-bottom-color:#a16e47;background:#f8f5f0;}
.cellvian-section-tabs a:hover {background:#f8f5f0;}
.cellvian-section-tabs a:focus-visible,.cellvian-detail-page .ps-button:focus-visible {outline:2px solid #886348;outline-offset:-4px;}
.cv-program__tags a {display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:7px 19px;border:1px solid currentColor;border-radius:100px;color:inherit;text-decoration:none;font:inherit;}
.cv-program__tags a:hover {background:#ffffff70;}
.cellvian-detail-page {--ps-copper:#a0714c;}
.cellvian-detail-page .ps-hero__copy .ps-button--solid {color:#fff;cursor:pointer;font:inherit;font-weight:600;}
.cellvian-detail-page > .subpage-category-header .subpage-category-header__mast {min-height:0;padding-top:76px;}
.cellvian-detail-page > .subpage-category-header .subpage-category-header__inner {width:min(calc(100% - 80px),1160px);min-height:0;padding:16px 0 24px;}
.cellvian-detail-page > .subpage-category-header .subpage-category-header__heading {margin-top:16px;}
.cellvian-detail-page > .subpage-category-header .subpage-category-header__title {font-size:30px;line-height:1.25;}
.cellvian-detail-page > .subpage-category-header .subpage-category-header__eyebrow {margin-bottom:8px;}
.cellvian-detail-page .cellvian-section-tabs__inner {max-width:1160px;}
.cellvian-detail-page .cellvian-section-tabs a {min-height:54px;padding-block:12px;}
.cellvian-detail-hero {padding:42px 0 52px;color:#fffaf3;background:var(--header-brown,#493727);}
.cellvian-detail-hero > .ps-container,.cellvian-detail-body > .ps-container {width:min(calc(100% - 80px),1160px);}
.cellvian-hero-category {margin:0 0 28px;color:#e3c8a4;font-size:.75rem;font-weight:600;letter-spacing:.12em;line-height:1.6;}
.cellvian-hero-layout {display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:center;gap:72px;}
.cellvian-hero-copy h1 {margin:0 0 16px;font-size:1.25rem;font-weight:600;line-height:1.5;letter-spacing:-.03em;color:#e6d9c9;}
.cellvian-hero-message {margin:0;font-size:clamp(2.4rem,3.6vw,3.5rem);font-weight:650;line-height:1.28;letter-spacing:-.055em;word-break:keep-all;text-wrap:balance;}
.cellvian-hero-actions {display:flex;align-items:center;gap:28px;margin-top:30px;}
.cellvian-detail-hero .ps-button--solid {border-color:#fffaf3;color:#493727;background:#fffaf3;box-shadow:none;font:inherit;font-weight:650;cursor:pointer;}
.cellvian-detail-hero .ps-button--solid:hover {background:#eadbc7;border-color:#eadbc7;}
.cellvian-guide-link {display:inline-flex;align-items:center;min-height:44px;color:#fffaf3;font-size:.9rem;text-decoration:underline;text-underline-offset:6px;text-decoration-color:#a9957b;}
.cellvian-guide-link:hover {text-decoration-color:#fffaf3;}
.cellvian-detail-hero .ps-button:focus-visible,.cellvian-guide-link:focus-visible {outline:2px solid #e3c8a4;outline-offset:5px;}
.cellvian-hero-summary {padding-left:36px;border-left:1px solid #ffffff30;}
.cellvian-hero-overview {margin:0 0 26px;max-width:28em;font-size:1rem;line-height:1.85;color:#eee4d8;word-break:keep-all;}
.cellvian-detail-visual {min-width:0;margin:0;}
.cellvian-detail-page .cellvian-detail-visual img {display:block;width:100%;height:auto;max-height:none;aspect-ratio:4/3;object-fit:contain;filter:none;}
.cellvian-detail-page .cellvian-detail-visual .cellvian-image-caption {position:static;transform:none;display:block;margin:10px 0 0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;color:#756b63;font:inherit;font-size:.75rem;line-height:1.6;letter-spacing:0;text-align:right;}
.cellvian-detail-body {padding:52px 0 56px;background:#fff;scroll-margin-top:90px;}
.cellvian-detail-body .ps-heading {max-width:none;margin:0;text-align:left;}
.cellvian-detail-body .ps-heading h2 {margin:12px 0 0;font-size:clamp(1.6rem,2.5vw,2.2rem);line-height:1.4;}
.cellvian-focus-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0;margin:0;list-style:none;border-block:1px solid #ffffff30;}
.cellvian-focus-list li {display:flex;align-items:center;padding:15px 12px;font-size:.95rem;font-weight:600;color:#fffaf3;word-break:keep-all;line-height:1.6;}
.cellvian-focus-list li:nth-child(odd) {padding-left:0;border-right:1px solid #ffffff20;}
.cellvian-focus-list li:nth-child(n+3) {border-top:1px solid #ffffff20;}
.cellvian-content-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:52px;align-items:start;margin-top:28px;}
.cellvian-detail-copy {min-width:0;line-height:1.85;color:#655a4e;}
.cellvian-detail-copy h3 {margin:0 0 18px;font-size:1.25rem;line-height:1.6;color:#352c23;}
.cellvian-detail-copy > p,.cellvian-detail-copy > .cellvian-related-care {margin:24px 0 0;}
.cellvian-concerns {padding-left:22px;margin:0;}
.cellvian-concerns li {margin-bottom:10px;}
.cellvian-related-care,.cellvian-treatment-note {padding-top:28px;padding-bottom:28px;border-top:1px solid #e4ddd4;}
.cellvian-related-care p {margin:12px 0 0;}
.cellvian-source-notice {margin:28px 0 0;padding-top:20px;border-top:1px solid #e4ddd4;font-size:.9rem;line-height:1.8;color:#756b63;}
.cellvian-treatment-note {background:#f8f5f0;line-height:1.8;}
.cellvian-treatment-note h2 {font-size:2rem;color:#352c23;}
.cellvian-treatment-note p:last-child {max-width:850px;margin-bottom:0;}
.cellvian-hairloss-content .ps-page--hairloss {padding-top:0;}
.cellvian-hairloss-content .ps-hero__copy h2 {font-size:clamp(2rem,4vw,3.8rem);line-height:1.25;word-break:keep-all;}
.cellvian-hairloss-content .ps-hero__copy h2 span {display:block;}
@media(min-width:1101px){
 /* Keep migrated consultation actions clear of the existing fixed quick menu. */
 .cellvian-detail-page .ps-consult__inner {padding-right:120px;box-sizing:border-box;}
}
@media(min-width:769px) and (max-width:1399px){
 /* The existing right rail needs its own space on narrower desktop screens. */
 .cellvian-detail-hero > .ps-container,
 .cellvian-detail-body > .ps-container,
 .cellvian-detail-page > .subpage-category-header .subpage-category-header__inner,
 .cellvian-detail-page .cellvian-section-tabs__inner {width:calc(100% - 200px);margin-left:40px;margin-right:160px;}
}
@media(min-width:769px) and (max-width:1100px){
 .cellvian-hero-layout {gap:32px;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);}
 .cellvian-hero-summary {padding-left:24px;}
 .cellvian-content-layout {gap:28px;}
 .cellvian-detail-page > .subpage-category-header .subpage-category-header__mast {padding-top:62px;}
}
@media(max-width:768px){
 .cellvian-section-tabs__inner {grid-template-columns:repeat(5,minmax(max-content,1fr));}
 .cellvian-section-tabs a {padding:12px 18px;min-height:50px;font-size:.9rem;}
 .cellvian-detail-page > .subpage-category-header .subpage-category-header__mast {padding-top:62px;}
 .cellvian-detail-page > .subpage-category-header .subpage-category-header__inner {width:calc(100% - 40px);padding:12px 0 18px;}
 .cellvian-detail-page > .subpage-category-header .subpage-category-header__heading {margin-top:14px;}
 .cellvian-detail-page > .subpage-category-header .subpage-category-header__title {font-size:26px;}
 .cellvian-detail-page .cellvian-section-tabs a {min-height:48px;padding:10px 16px;}
 .cellvian-detail-hero {padding:28px 0 32px;}
 .cellvian-detail-hero > .ps-container,.cellvian-detail-body > .ps-container {width:calc(100% - 40px);}
 .cellvian-hero-category {margin-bottom:20px;font-size:.67rem;}
 .cellvian-hero-layout {grid-template-columns:1fr;gap:28px;}
 .cellvian-hero-copy h1 {margin-bottom:12px;font-size:1rem;}
 .cellvian-hero-message {font-size:clamp(1.9rem,8.5vw,2.4rem);line-height:1.32;}
 .cellvian-hero-actions {margin-top:22px;gap:24px;}
 .cellvian-hero-summary {padding-left:0;border-left:0;}
 .cellvian-hero-overview {margin-bottom:20px;font-size:.94rem;line-height:1.8;}
 .cellvian-detail-page .cellvian-detail-visual .cellvian-image-caption {font-size:.7rem;}
 .cellvian-detail-body {padding:36px 0 40px;}
 .cellvian-content-layout {grid-template-columns:1fr;gap:28px;margin-top:22px;}
 .cellvian-focus-list li {padding-block:12px;font-size:.9rem;}
 .cellvian-treatment-note {padding-top:26px;padding-bottom:26px;}
}

/* UI audit 20261016: scoped to the legacy Cellvian pages. */
/* The right rail disappears at 768px. Reserve its space only while it exists. */
.cellvian-detail-page .ps-container {width:min(calc(100% - 80px),1160px);}
@media(min-width:769px) {
 .cellvian-detail-page .ps-container {width:min(calc(100% - 200px),1160px);margin-left:max(40px,calc((100% - 1160px)/2));margin-right:auto;}
 .cellvian-detail-page .ps-consult__inner {padding-right:0;}
}
@media(max-width:768px) {
 .cellvian-detail-page .ps-container {width:calc(100% - 40px);margin-inline:auto;}
}
@media(min-width:769px) and (max-width:1000px) {
 .cellvian-hero-layout,.cellvian-content-layout {grid-template-columns:1fr;gap:28px;}
 .cellvian-hero-summary {border-left:0;padding-left:0;}
 .cellvian-detail-page .ps-consult__inner {grid-template-columns:1fr;}
}
.cellvian-detail-page .ps-consult__inner > div:last-child {display:flex;flex-wrap:wrap;align-items:center;gap:12px;}
.cellvian-detail-page .ps-consult__inner > div:last-child .ps-button {margin:0;}
@media(max-width:640px) {
 .cellvian-detail-page .ps-consult__inner > div:last-child {align-items:stretch;flex-direction:column;}
}
/* Integrated hairloss content shares the scale and rhythm of its parent page. */
.cellvian-hairloss-content .ps-section {padding-block:clamp(56px,6vw,80px);}
.cellvian-hairloss-content .ps-heading {max-width:880px;margin-bottom:32px;}
.cellvian-hairloss-content .ps-heading h2 {font-size:clamp(28px,3vw,42px);line-height:1.3;letter-spacing:-.035em;word-break:keep-all;overflow-wrap:break-word;}
.cellvian-hairloss-content .ps-heading__body {margin-top:20px;line-height:1.8;}
.cellvian-hairloss-content .ps-hero {min-height:0;padding-block:64px;}
.cellvian-hairloss-content .ps-hero__layout {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;}
.cellvian-hairloss-content .ps-hero__visual {min-height:0;}
.cellvian-hairloss-content .ps-hero__visual img {width:100%;max-height:440px;}
.cellvian-hairloss-content .ps-copy-card {min-height:0;padding:28px;}
.cellvian-hairloss-content .ps-copy-card__number {margin-bottom:22px;color:#886348;}
.cellvian-hairloss-content .ps-process__copy h3 {font-size:22px;line-height:1.45;}
.cellvian-hairloss-content .ps-consult h2 {font-size:clamp(28px,3vw,40px);line-height:1.4;}
/* Replace the negative-margin circle with a small decorative research label.
   No new anatomical illustration or treatment claim is introduced. */
.cellvian-hairloss-content .ps-mechanism__center {display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;width:auto;height:auto;margin:0 0 24px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;}
.cellvian-hairloss-content .ps-mechanism__center svg {flex:none;width:28px;height:28px;margin:0;color:#886348;}
.cellvian-hairloss-content .ps-mechanism__center strong,.cellvian-hairloss-content .ps-mechanism__center span {margin:0;font-size:11px;line-height:1.6;letter-spacing:.08em;color:#655a4e;}
.cellvian-hairloss-content .ps-mechanism .ps-copy-grid {padding-top:0;gap:24px;overflow:visible;border:0;border-radius:0;background:none;}
.cellvian-hairloss-content .ps-mechanism .ps-copy-card {border-top:1px solid #bba58f;background:none;padding:24px 0 0;}
.cellvian-hairloss-content .ps-mechanism .ps-copy-card:hover {transform:none;}
.cellvian-hairloss-content .ps-comparison {scrollbar-width:auto;scrollbar-color:#9b9187 #eee8e1;}
.cellvian-hairloss-content .ps-comparison:focus-visible {outline:2px solid #ead3bc;outline-offset:5px;}
@media(max-width:1000px) {
 .cellvian-hairloss-content .ps-hero__layout {grid-template-columns:1fr;gap:32px;}
 .cellvian-hairloss-content .ps-hero__visual {max-width:440px;width:100%;margin-inline:auto;}
}
@media(max-width:768px) {
 .cellvian-hairloss-content .ps-hero {padding-block:44px;}
 .cellvian-hairloss-content .ps-mechanism .ps-copy-grid {grid-template-columns:1fr;gap:24px;}
 .cellvian-hairloss-content .ps-mechanism__center {justify-content:flex-start;gap:8px;}
 .cellvian-hairloss-content .ps-mechanism__center strong,.cellvian-hairloss-content .ps-mechanism__center span {font-size:10px;letter-spacing:.04em;}
 .cellvian-hairloss-content .ps-copy-card {padding:24px;}
}
/* Existing links remain unchanged; keyboard users get an explicit focus cue. */
.cellvian-prp-page :is(a,button):focus-visible,.cellvian-detail-page :is(a,button):focus-visible {outline:2px solid currentColor;outline-offset:4px;}
.cellvian-prp-page .cellvian-section-tabs a:focus-visible,.cellvian-detail-page .cellvian-section-tabs a:focus-visible {outline-offset:-4px;}
/* The clinic landing page also keeps its copy clear of the fixed right rail. */
@media(min-width:769px) and (max-width:1199px) {
 .cellvian-prp-page .cellvian-prp-shell {width:calc(100% - 200px);margin-left:40px;margin-right:auto;}
 .cellvian-prp-page .cv-section-heading {flex-wrap:wrap;}
 .cellvian-prp-page .cv-section-heading > p {flex-basis:100%;max-width:none;}
 .cellvian-prp-page .cv-reasons {grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 0;}
 .cellvian-prp-page .cv-reasons article:nth-child(3) {padding-left:0;border-left:0;}
 .cellvian-prp-page .cv-reasons article:nth-child(2) {padding-right:0;}
 .cellvian-prp-page .cellvian-prp-global__frame {width:calc(100% - 144px);margin-left:24px;margin-right:120px;padding-inline:24px;}
}
