/* Purposeful image navigation, using CAMBIO's existing visual identity. */
#website .treatment-explore { position:relative; margin:0 0 20px; }
#website .treatment-explore-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:0 0 18px; }
#website .treatment-explore-heading h2 { font-size:1.35rem; margin:0 0 6px; }
#website .treatment-explore-heading p { margin:0; font-size:.9375rem; }
#website .treatment-explore-heading>.text-link { flex-shrink:0; font-size:.875rem; }
#website .treatment-gallery { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:18px; overflow:visible; padding:8px 4px 34px; }
#website .treatment-card { display:flex; flex-direction:column; min-width:0; background:#faf7fe; border:1px solid #e4d7ef; border-radius:24px; overflow:hidden; text-decoration:none; color:var(--ink); box-shadow:0 12px 30px #39205b09; transition:box-shadow .2s,border-color .2s; }
#website .treatment-gallery>.treatment-card { transform:translateY(var(--treatment-arc,0)); }
#website .treatment-gallery>.treatment-card:nth-child(2),#website .treatment-gallery>.treatment-card:nth-child(4) { --treatment-arc:10px; background:#f3f7ff; }
#website .treatment-gallery>.treatment-card:nth-child(3) { --treatment-arc:18px; }
#website .treatment-card:hover { border-color:#a77bc4; box-shadow:0 16px 36px #39205b17; }
#website .treatment-card:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
#website .treatment-card-photo { display:block; aspect-ratio:1; margin:5px 5px 0; border-radius:19px; overflow:hidden; background:#fff; }
#website .treatment-card-photo img { display:block; width:100%; height:100%; object-fit:contain; }
#website .treatment-card-copy { display:flex; flex-direction:column; flex:1; gap:14px; padding:18px 16px; }
#website .treatment-card-title { display:block; font-size:1rem; font-weight:700; line-height:1.4; letter-spacing:-.02em; }
#website .treatment-card-action { display:block; margin-top:auto; color:var(--brand); font-size:.875rem; font-weight:700; text-decoration:underline; text-underline-offset:4px; }
#website .treatment-explore>.rail-controls { justify-content:flex-end; margin:4px 0 8px; }
#website .treatment-explore>.rail-controls[hidden] { display:none; }
#website .treatment-gallery-hint { display:none; }

/* Full information stays within the same document as the appointment form. */
#website .treatment-navigation { display:flex; align-items:center; flex-wrap:wrap; gap:14px 24px; }
#website .treatment-navigation .treatment-return { padding:11px 20px; }
#website .treatment-return-note { padding:14px 18px; border:1px solid #e5d7f0; border-radius:16px; background:#f7f1fc; font-size:.9375rem; }
#website .treatment-detail-hero { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(240px,.8fr); align-items:center; gap:50px; margin:32px 0 44px; }
#website .treatment-detail-hero .page-heading { margin:0; text-align:left; }
#website .treatment-detail-hero .page-heading .eyebrow { justify-content:flex-start; }
#website .treatment-detail-hero .page-heading h1 { font-size:clamp(2rem,3.6vw,3.2rem); }
#website .treatment-detail-hero figure { margin:0; }
#website .treatment-detail-hero img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; border-radius:28px; background:#fff; }
#website .premium-card-photo.treatment-illustration { height:auto; aspect-ratio:1; background:#fff; }
#website .premium-card-photo.treatment-illustration img { width:100%; height:100%; object-fit:contain; filter:none; }
#website .treatment-detail-hero figcaption { margin:8px 0 0; color:var(--muted); font-size:.8125rem; text-align:right; }
#website .treatment-detail-sections { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
#website .treatment-detail-sections>section { padding:28px; background:#faf7fe; border:1px solid #e5d8ef; border-radius:24px; }
#website .treatment-detail-sections>section:nth-child(2) { background:#f3f7ff; border-color:#dfe8f6; }
#website .treatment-detail-sections h2,#website .treatment-material h2,#website .treatment-form-action h2 { margin:0 0 14px; font-size:1.3rem; line-height:1.3; }
#website .treatment-detail-sections p { margin:0; }
#website .treatment-detail-sections ul { padding-left:20px; margin:0; color:var(--muted); }
#website .treatment-detail-sections li { margin:8px 0; }
#website .treatment-material,#website .treatment-form-action { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px; border:1px solid #dfd1ec; border-radius:24px; margin-top:28px; }
#website .treatment-material p,#website .treatment-form-action p { margin:0; }
#website .treatment-material .button,#website .treatment-form-action .button { flex-shrink:0; max-width:100%; }
#website .treatment-form-action { background:linear-gradient(130deg,#f4ebfc,#edf4ff); margin-top:38px; }
#website .treatment-sources { margin:22px 0; font-size:.875rem; }
#website .treatment-sources summary { cursor:pointer; min-height:44px; padding-block:10px; color:var(--brand); }
#website .treatment-sources a { color:var(--brand); overflow-wrap:anywhere; }
#website .treatment-directory { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
#website .treatment-directory .treatment-card-title { font-size:1.25rem; }
#website .treatment-directory .treatment-card-copy { padding:22px; }
#website .treatment-card-description { font-size:1rem; line-height:1.7; color:var(--muted); }
#website .appointment-reading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:17px 18px; margin:0 0 26px; border:1px solid #e5d8ef; border-radius:16px; background:#f7f2fc; }
#website .appointment-reading p { margin:0; font-size:.9375rem; line-height:1.6; }
#website .appointment-reading .button { flex-shrink:0; min-height:44px; padding:10px 16px; font-size:.9375rem; }
body[data-view="public"] #modal .consultation-sheet .sheet-actions { display:flex; flex-direction:column; gap:12px; }
body[data-view="public"] #modal .consultation-sheet .sheet-actions>a { text-align:center; }

@media(max-width:1000px) {
 #website .treatment-gallery { display:flex; overflow-x:auto; gap:16px; padding:8px 5px 16px; scroll-padding-inline:5px; }
 #website .treatment-gallery>.treatment-card { flex:0 0 245px; transform:none; scroll-snap-align:start; }
 #website .treatment-gallery-hint { display:block; font-size:.875rem; color:var(--muted); margin:0; }
 #website .treatment-directory { grid-template-columns:repeat(2,minmax(0,1fr)); }
 #website .treatment-detail-sections { grid-template-columns:1fr; gap:16px; }
 #website .treatment-detail-hero { gap:28px; }
 #website .treatment-material,#website .treatment-form-action { align-items:flex-start; flex-direction:column; }
}
@media(max-width:600px) {
 #website .treatment-explore { margin:0 0 24px; }
 #website .treatment-explore-heading { align-items:flex-start; flex-direction:column; gap:6px; }
 #website .treatment-explore-heading h2 { font-size:1.25rem; }
 #website .treatment-explore-heading>.text-link { min-height:44px; display:inline-flex; align-items:center; }
 #website .treatment-gallery { margin-inline:-10px; padding-inline:10px; scroll-padding-inline:10px; gap:14px; }
 #website .treatment-gallery>.treatment-card { flex-basis:78%; }
 #website .treatment-card-copy { padding:18px; }
 #website .treatment-card-title { font-size:1.125rem; }
 #website .treatment-detail-hero { grid-template-columns:1fr; gap:24px; margin:24px 0 28px; }
 #website .treatment-detail-sections>section { padding:23px; }
 #website .treatment-directory { grid-template-columns:1fr; }
 #website .treatment-material,#website .treatment-form-action { padding:23px; }
 #website .treatment-navigation .button { width:100%; }
 #website .appointment-reading { flex-wrap:wrap; padding:16px; gap:12px; }
 #website .appointment-reading .button { min-width:130px; }
}
@media(prefers-reduced-motion:reduce) { #website .treatment-card { transition:none; } }

#website .treatment-material .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }

/* Shared practice information, on-page documents and public sharing. */
#website .treatment-card-main { display:flex; flex-direction:column; flex:1; color:inherit; text-decoration:none; }
#website .treatment-card-main:focus-visible { outline:3px solid var(--blue); outline-offset:-5px; border-radius:24px; }
#website .treatment-gallery .treatment-card { position:relative; }
#website .treatment-card>.practice-share { margin:0 16px 16px; }
.practice-full-text { max-width:850px; margin:0 0 24px; }
.practice-full-text p { font-size:1.0625rem; line-height:1.85; color:#5d5268; margin:0; }
.practice-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:24px 0; }
.practice-facts>section { min-width:0; padding:22px; background:#f8f3fc; border:1px solid #e5d8ef; border-radius:22px; }
.practice-facts>section:nth-child(even) { background:#f3f6fd; }
.practice-facts h2,.practice-facts h3 { margin:0 0 10px; font-size:1.125rem; line-height:1.4; }
.practice-facts p { margin:0; color:#5d5268; font-size:1rem; line-height:1.75; }
.course-detail-section { margin:32px 0; }
.course-detail-section>h2 { font-size:1.5rem; line-height:1.3; }
.course-fees { border:1px solid #dfd1ec; border-radius:20px; background:#fcfaff; overflow:hidden; }
.course-fees>div { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px 20px; padding:18px 22px; }
.course-fees>div+div { border-top:1px solid #e7ddee; }
.course-fees dt { font-size:1rem; }
.course-fees dd { margin:0; font-size:1.125rem; font-weight:700; color:#622588; }
.course-date-note { font-size:1rem; color:#5d5268; }
.practice-share { margin:18px 0; min-width:0; }
.practice-share-toggle { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:9px 18px; border:1px solid #cdb9e0; border-radius:25px; background:#fff; color:#6e21a1; font:inherit; font-size:1rem; font-weight:600; }
.practice-share-panel { margin-top:12px; padding:16px; background:#f6f0fc; border:1px solid #dfd1ec; border-radius:16px; min-width:0; }
.practice-share-panel>p { margin:0 0 12px; font-size:1rem; }
.practice-share-panel label { display:block; font-size:.875rem; color:#61516d; margin-top:14px; }
.practice-share-panel input { display:block; width:100%; min-width:0; font:inherit; font-size:.875rem; padding:10px; margin-top:6px; border:1px solid #d8c7e4; border-radius:9px; background:#fff; color:#4a355b; }
.practice-share-actions,.practice-document-actions,.practice-action-buttons { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-start; }
.practice-share-actions .button,.practice-document-actions .button { font-size:.9375rem; padding:10px 16px; min-height:44px; text-align:center; white-space:normal; }
.practice-share-status { color:#465f4a; margin:10px 0 0!important; font-size:.875rem!important; }
.practice-share-status:empty { display:none; }
.practice-documents { margin:28px 0; }
.practice-documents>h3 { font-size:1.25rem; margin:0 0 16px; }
.practice-document { border:1px solid #dfd1ec; border-radius:20px; padding:22px; background:#fcfaff; margin:14px 0; min-width:0; scroll-margin-top:180px; }
.practice-document h4 { font-size:1rem; line-height:1.5; margin:0 0 12px; }
.practice-document .pdf-pending { font-size:.9375rem; color:#6d5e78; margin:0 0 16px; }
.practice-document .button:disabled { opacity:1; color:#796d82; border-color:#e3dbe9; background:#f2edf6; cursor:default; box-shadow:none; }
.practice-document-actions>.practice-share { margin:0; }
.practice-document-actions>.practice-share:has(.practice-share-panel:not([hidden])) { flex-basis:100%; }
.practice-pdf summary { padding:12px 0; color:#6e21a1; font-size:1rem; cursor:pointer; min-height:44px; }
.practice-pdf iframe { display:block; width:100%; height:min(70vh,720px); min-height:360px; border:1px solid #ddd1e7; border-radius:12px; background:#fff; }
.practice-pdf p { font-size:.875rem; color:#6d5e78; }
.pdf-preview { min-width:0; margin:8px 0 18px; }
.pdf-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 12px; }
.pdf-toolbar>.button { padding:9px 14px; min-height:44px; font-size:.875rem; }
.pdf-toolbar label { display:flex; align-items:center; gap:8px; font-size:.875rem; }
.pdf-toolbar select { min-width:95px; min-height:44px; padding:8px 24px 8px 10px; border:1px solid #cdb9e0; border-radius:12px; color:#54246e; background-color:#fff; font:inherit; }
.pdf-page-frame { width:100%; max-height:min(76vh,950px); overflow:auto; border:1px solid #ded4e6; border-radius:12px; background:#ece8f0; overscroll-behavior:contain; }
.pdf-page-frame:focus-visible { outline:3px solid #376bb3; outline-offset:3px; }
.pdf-page-image { display:block; width:100%; height:auto; max-width:100%; margin:0 auto; }
.pdf-zoomed .pdf-page-image { width:1200px; max-width:none; }
.pdf-page-status { margin:8px 0; }
.practice-form-options { display:grid; gap:12px; margin:24px 0; }
.practice-option { display:flex; align-items:center; gap:16px; border:1px solid #ddd0e8; border-radius:18px; padding:14px; width:100%; text-align:left; color:#3c294c; background:#faf7fe; }
.practice-option:hover { border-color:#9c6bc2; background:#f3eafa; }
.practice-option img { width:70px; height:70px; flex-shrink:0; object-fit:contain; border-radius:14px; background:#fff; }
.practice-option strong { display:block; font-size:1rem; line-height:1.4; }
.practice-option span>span { display:block; font-size:.875rem; color:#74518d; margin-top:6px; }
.practice-related { padding-top:20px; margin-top:24px; border-top:1px solid #e7dded; }
.practice-related h3 { font-size:1rem; margin:0 0 14px; }
body[data-view="public"] #modal:has(.consultation-sheet) { max-width:760px; width:calc(100% - 28px); }
body[data-view="public"] #modal .consultation-sheet .consultation-sheet-symbol { max-width:190px; margin:0 auto 22px; }
body[data-view="public"] #modal .consultation-sheet .practice-full-text p { font-size:1rem; line-height:1.8; }
body[data-view="public"] #modal .consultation-sheet .sheet-actions { margin-top:24px; }
.patient-fields .patient-wide-field { grid-column:1/-1; }
@media(max-width:600px) {
 .practice-facts { grid-template-columns:1fr; }
 .practice-facts>section { padding:18px; }
 .pdf-toolbar { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .pdf-toolbar>.button { padding:9px 10px; }
 .pdf-toolbar label { grid-row:1; grid-column:1/-1; gap:8px; }
 .pdf-toolbar select { flex:1; width:auto; }
 .pdf-toolbar [data-pdf-zoom] { grid-column:1/-1; }
 .practice-document { padding:17px; }
 .practice-full-text p { font-size:1rem; line-height:1.8; }
 .practice-option { gap:12px; padding:12px; }
 .practice-option img { width:52px; height:52px; }
 .practice-action-buttons { width:100%; }
 .practice-action-buttons>.button { width:100%; }
 #website .treatment-card>.practice-share { margin-inline:18px; }
 .practice-share-actions { flex-direction:column; }
 .practice-share-actions .button { width:100%; }
 .patient-fields { grid-template-columns:1fr; }
 .practice-pdf iframe { min-height:300px; }
}
