

/* Equal card rows keep content readable without fixed text heights. */
body:not(.wl) #navbar.nav-reference.shared-nav .nav-primary > li > a,
body:not(.wl) #navbar.nav-reference.shared-nav .nav-guide > summary { border-bottom:2px solid transparent !important; border-radius:0; }
body:not(.wl) #navbar.nav-reference.shared-nav .nav-primary > li > a.medical-nav-current,
body:not(.wl) #navbar.nav-reference.shared-nav .nav-guide.medical-nav-current-group > summary,
body:not(.wl) #navbar.nav-reference.shared-nav .nav-guide-menu a.medical-nav-current { border-bottom:2px solid var(--nav-accent,#145e7a) !important; box-shadow:none !important; text-decoration:none !important; color:var(--nav-accent,#145e7a) !important; }
body:not(.wl) #navbar.nav-reference.shared-nav .nav-primary a.medical-nav-current::after { content:none !important; }
body #main .journey-heading { max-width:760px; margin:0 auto 28px; text-align:center; }
body #main .journey-heading > p { margin:12px auto 0; }
body #main .journey-cases { display:grid; gap:28px; }
body #main .journey-case { border:1px solid #d3e2e8; border-radius:20px; padding:28px; background:#fff; }
body #main .journey-case-header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
body #main .journey-country { display:flex; align-items:center; gap:8px; margin:0 0 8px; color:#15627a; font-size:14px; font-weight:600; }
body #main .journey-country img { width:32px; height:26px; object-fit:contain; }
body #main .journey-case-header h2 { margin:0; font-size:clamp(21px,2vw,27px); line-height:1.35; }
body #main .journey-art { width:180px; height:100px; object-fit:contain; flex:0 0 180px; }
body #main .journey-steps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:0; margin:0; list-style:none; }
body #main .journey-steps > li { display:grid; grid-template-columns:32px minmax(0,1fr); gap:8px 12px; align-content:start; background:#f7fafc; border:1px solid #e0eaf0; border-radius:14px; padding:20px; }
body #main .journey-step-number { grid-column:1; grid-row:1/3; display:grid; place-items:center; align-self:start; width:32px; height:32px; border-radius:50%; color:#fff; background:#15627a; font-size:14px; font-weight:700; }
body #main .journey-steps h3 { grid-column:2; margin:0 !important; font-size:16px !important; line-height:1.45; }
body #main .journey-steps p { grid-column:2; margin:0 !important; font-size:15px !important; line-height:1.7; color:#526b77; }
body #main .journey-notice { margin:24px 0 0; max-width:100ch; font-size:14px; line-height:1.7; color:#526b77; }
body #main .journey-contact { text-align:center; }
body #main .journey-contact p { margin:14px auto 24px; max-width:65ch; }
@media(max-width:700px) {
 body #main .journey-case { padding:20px; }
 body #main .journey-case-header { align-items:flex-start; gap:12px; }
 body #main .journey-art { width:90px; height:70px; flex-basis:90px; }
 body #main .journey-steps { grid-template-columns:1fr; }
 body #main .journey-steps > li { padding:16px; }
}
body #main :is(.doctor-avatar img,.rail-card-avatar)[src*="/cutouts-"] { object-fit:contain; object-position:center top; }
body #main .medical-journey .rd-head:has(> p) { display:flex; flex-direction:column; align-items:center; text-align:center; }
body #main .medical-journey .rd-head:has(> p) > p { text-align:center; margin:0 auto !important; max-width:72ch !important; }
body #main .provider-hospital-card .hospital-name { font-size:18px !important; line-height:1.4 !important; }
body #main .provider-hospital-card .hospital-name.identity-hospital-name { flex-direction:column; align-items:flex-start; gap:10px; }
body #main .provider-hospital-card .identity-hospital-text { overflow-wrap:normal; word-break:normal; width:100%; }
body #main .provider-hospital-card .identity-hospital-logo { flex:0 0 30px; width:76px; height:30px; object-position:left center; }
body #main .medical-country-chooser { margin:20px 0; width:100%; max-width:600px; }
body #main .medical-country-header + .medical-country-chooser ~ .visa-caption { text-align:start !important; }
.country-map-icon { width:34px; height:28px; flex:0 0 34px; object-fit:contain; }
.medical-country-dropdown .medical-dropdown-option,.medical-select-value:has(.country-map-icon) { display:flex; align-items:center; gap:12px; }
body #main .visa-documents-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; }
body #main .visa-document-heading { display:flex; align-items:center; gap:14px; min-height:56px; margin-bottom:20px; }
body #main .visa-document-heading img { width:56px; height:56px; flex:0 0 56px; object-fit:contain; }
body #main .visa-document-heading h3 { font-size:18px !important; line-height:1.4; margin:0 !important; }
body #main .visa-documents-card > h2 { font-size:clamp(24px,2.3vw,30px) !important; line-height:1.35; }
body #main .visa-documents-grid ul { padding:0; margin:0; }
body #main .visa-documents-grid li .icon { width:16px; height:16px; flex:0 0 16px; }
@media(max-width:640px) {
 body #main .visa-documents-grid { grid-template-columns:1fr; }
 body #main .visa-documents-card { padding:24px !important; }
}
/* Descriptions belong below their section headings; controls can remain alongside. */
body #main .rd-head:has(> p) { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:12px 20px; }
body #main .rd-head:has(> p) > p { grid-column:1/-1; grid-row:2; width:100%; max-width:85ch !important; margin:0 !important; text-align:start; }
body #main .rd-head:has(> p) > :first-child { grid-column:1; grid-row:1; }
body #main .section-header:has(> p) { display:block; }
body #main .section-header > p { margin-top:12px; }
body #main .info-panel > .info-panel-actions { margin-top:auto; padding-top:18px; border-top:1px solid #d5e2e7; display:flex; align-items:center; }
body #main .info-panel > .info-panel-actions > a { margin:0; }
body:not(.wl) #main .info-panel > :is(.medical-visible-info,.major-preview) { border:0; margin-bottom:18px; padding-bottom:0; }
body #main .faq-workspace { max-width:100%; }
body:not(.wl) #main .faq-toolbar.directory-toolbar-slim { grid-template-columns:minmax(0,3fr) minmax(220px,2fr); max-width:1000px !important; margin-bottom:24px; }
body:not(.wl) #main .faq-toolbar.directory-toolbar-slim > :is(.filter-bar,.medical-treatment-specialty) { grid-column:auto !important; }
body #main .faq-toolbar #faqFilter { font:inherit; font-size:16px; width:100%; }
body #main .faq-category-group { padding:0; margin:0 0 32px; }
body #main .faq-workspace :is(.rd-faq-group,.rd-qa) { opacity:1 !important; transform:none !important; transition:none !important; }
body #main .faq-group-title { font-size:clamp(20px,2vw,24px); line-height:1.4; margin:0 0 14px; color:var(--rd-navy,#153849); }
body #main .faq-workspace .rd-qa { margin:0 0 10px; }
body #main .faq-workspace .rd-qa summary { padding:18px 22px; font-size:16px; line-height:1.5; gap:18px; }
body #main .faq-workspace .rd-qa .faq-answer { max-width:90ch; margin:0; padding:0 22px 20px; line-height:1.75; font-size:15px; }
body #main .faq-workspace > .rd-faq-help { max-width:650px; margin-top:24px; }
body #main :is(.treatment-cards-grid,.wl-cards,.medical-blog-grid) { align-items:stretch; grid-auto-rows:1fr; }
body #main :is(.treatment-cards-grid,.wl-cards,.medical-blog-grid) > :is(.treatment-card,.wl-card,.medical-blog-card) { align-self:stretch; height:100%; min-width:0; box-sizing:border-box; display:flex; flex-direction:column; }
body #main :is(.two-col-grid,.rd-dodont,.rd-cardgrid,.rd-guide-grid,.rail-grid,.doctors-grid,.hospitals-grid,.treatments-grid,.review-platform-grid,.wl-progs,.wl-trads,.rd-brand-cards) { align-items:stretch; }
body #main :is(.rd-guide-grid,.doctors-grid,.hospitals-grid,.treatments-grid,.wl-progs,.wl-trads) { grid-auto-rows:1fr; }
body #main :is(.two-col-grid,.rd-dodont,.rd-cardgrid,.rd-guide-grid,.rail-grid,.doctors-grid,.hospitals-grid,.treatments-grid,.review-platform-grid,.wl-progs,.wl-trads,.rd-brand-cards) > :is(.info-panel,.rd-dd,.rd-card,.rd-lift,.rail-card,.doctor-card,.hospital-card,.treatment-card,.review-platform-card,.rd-brand-card,.wl-prog,.wl-trad) { height:100%; min-width:0; box-sizing:border-box; align-self:stretch; }
body #main :is(.info-panel,.rd-card,.rail-card,.doctor-card,.hospital-card,.treatment-card,.rd-brand-card) { display:flex; flex-direction:column; }
body #main :is(.info-panel,.rd-brand-card) > a:last-child,
body #main .rd-card > .more,
body #main :is(.rail-card,.doctor-card,.hospital-card,.treatment-card) > :last-child { margin-top:auto; }
body #main .medical-useful-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
body #main .medical-useful-links .rd-brand-card { padding:20px; text-align:start; gap:10px; }
body #main .medical-useful-links .rd-brand-card :is(h3,p,span) { margin:0; }
body #main .medical-useful-links .massvaa-care-badge { margin:0; width:36px; height:36px; }
body #main .medical-useful-links .rd-brand-card h3 { font-size:18px; }
body #main .medical-useful-links .rd-brand-card p { font-size:14px; line-height:1.6; }
body #main .medical-useful-links .rd-brand-card span { margin-top:auto; padding-top:8px; }
body #main .two-col-grid > .info-panel { padding:clamp(20px,2.2vw,32px); }
body #main .two-col-grid > .info-panel > h3 { margin-bottom:12px; }
body #main .two-col-grid > .info-panel > p { margin-bottom:14px; }
body #main .two-col-grid > .info-panel > a:last-child { align-self:flex-start; }
body #main .two-col-grid > .reveal:has(> h4) { display:flex; flex-direction:column; height:100%; }
.billing-paper-icon { margin-bottom:16px; height:96px; }
.billing-paper-icon img { width:96px; height:96px; object-fit:contain; }
body #main .international-benefits .rd-lead { max-width:800px; margin-bottom:24px; }
body #main .international-benefit-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
body #main .international-benefit-grid .rd-card { padding:24px; }
body #main .international-benefit-grid .rd-card .more { padding-top:16px; }
.billing-review-points { margin:0; padding:8px 0 8px 24px; color:var(--rd-muted,#526b77); line-height:1.7; }
.billing-review-points li + li { margin-top:12px; }
body #main #doctorRail { align-items:stretch; gap:16px; }
body #main #doctorRail .rd-doc { display:flex; flex-direction:column; flex:0 0 250px; width:250px; height:auto; }
body #main #doctorRail .rd-doc-img { height:150px; flex-shrink:0; }
body #main #doctorRail .rd-doc-img img { object-fit:contain; object-position:center top; }
body #main #doctorRail .rd-doc-body { display:flex; flex-direction:column; flex:1; padding:16px; }
body #main #doctorRail .rd-doc-name { position:static; text-shadow:none; }
body #main #doctorRail .rd-doc-name b { font-size:18px; line-height:1.4; }
body #main #doctorRail .rd-doc-name small { font-size:11px; line-height:1.5; }
body #main #doctorRail .rd-doc-body > p { font-size:12px; line-height:1.5; margin:8px 0; }
body #main #doctorRail .provider-experience { margin:8px 0 12px; font-size:12px; }
body #main #doctorRail .rd-doc-body > span { margin-top:auto; font-size:13px; }
body #main #doctorsContainer .doctor-card { padding:20px; gap:8px; }
body #main #doctorsContainer .doctor-avatar { width:76px; height:76px; margin-bottom:6px; flex-shrink:0; }
body #main #doctorsContainer .doctor-name { font-size:19px; margin-bottom:0 !important; }
body #main #doctorsContainer .provider-doctor-summary { display:none; }
body #main #doctorsContainer .provider-experience { margin:6px 0 8px; }
body #main #doctorsContainer .doctor-card > div:last-child { margin-top:auto; padding-top:8px; }
body:not(.wl) #main #doctorRail .rd-doc { width:250px !important; flex:0 0 250px !important; }
body:not(.wl) #main #doctorRail .rd-doc-img { height:140px !important; }
body:not(.wl) #main #doctorRail .rd-doc-name { min-height:72px; }
body:not(.wl) #main #doctorRail .rd-doc-body > p { min-height:36px; }
body:not(.wl) #main .medical-useful-links.massvaa-care-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; border:0; border-radius:0; background:transparent; overflow:visible; }
body:not(.wl) #main .medical-useful-links.massvaa-care-links .rd-brand-card { display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:18px !important; border:1px solid #d5e2e7; border-radius:16px; background:#fff; }
body:not(.wl) #main .medical-useful-links.massvaa-care-links .rd-brand-card::after { content:none; }
body:not(.wl) #main .medical-useful-links.massvaa-care-links .rd-brand-card .ic { width:36px !important; height:36px !important; margin:0; }
body:not(.wl) #main .medical-useful-links.massvaa-care-links .rd-brand-card h3 { font-size:17px !important; }
body:not(.wl) #main .medical-useful-links.massvaa-care-links .medical-visible-info { min-width:0; margin:0; padding:0; }
body:not(.wl) #main .medical-useful-links.massvaa-care-links .medical-visible-info p { margin:0; font-size:13px; }
body:not(.wl) #main .medical-useful-links.massvaa-care-links .rd-brand-card > span { display:inline-flex !important; }
@media(max-width:900px) {
 body:not(.wl) #main .medical-useful-links.massvaa-care-links { grid-template-columns:1fr; }
 body:not(.wl) #main .medical-useful-links.massvaa-care-links .rd-brand-card { display:grid; grid-template-columns:36px minmax(0,1fr); gap:4px 12px; }
 body:not(.wl) #main .medical-useful-links.massvaa-care-links .rd-brand-card .ic { grid-column:1; grid-row:1/4; align-self:start; }
 body:not(.wl) #main .medical-useful-links.massvaa-care-links .rd-brand-card > :is(h3,section,p,span) { grid-column:2; grid-row:auto; }
 body:not(.wl) #main .medical-useful-links.massvaa-care-links .rd-brand-card > span { margin-top:6px; padding:0; }
 body #main .medical-useful-links { grid-template-columns:1fr; }
 body #main .medical-useful-links .rd-brand-card { display:grid; grid-template-columns:36px minmax(0,1fr) auto; gap:6px 14px; }
 body #main .medical-useful-links .rd-brand-card .ic { grid-row:1/3; }
 body #main .medical-useful-links .rd-brand-card p { grid-column:2; }
 body #main .medical-useful-links .rd-brand-card span { grid-column:3; grid-row:1/3; align-self:center; padding:0; }
}
@media(max-width:640px) {
 body:not(.wl) #main .faq-toolbar.directory-toolbar-slim { grid-template-columns:minmax(0,1fr); gap:8px; }
 body #main .faq-workspace .rd-qa summary { padding:16px; }
 body #main .faq-workspace .rd-qa .faq-answer { padding:0 16px 16px; }
 body #main .rd-head:has(> p) { grid-template-columns:minmax(0,1fr); }
 body #main .rd-head:has(> p) > p { grid-column:1; }
 body #main :is(.treatment-cards-grid,.wl-cards,.medical-blog-grid) { grid-auto-rows:auto; }
 body #main :is(.rd-guide-grid,.doctors-grid,.hospitals-grid,.treatments-grid,.wl-progs,.wl-trads) { grid-auto-rows:auto; }
 body #main .international-benefit-grid { grid-template-columns:1fr; }
 body #main #doctorRail .rd-doc { flex-basis:230px; width:230px; }
 body #main #doctorRail .rd-doc-img { height:130px; }
 body #main .medical-useful-links .rd-brand-card { padding:16px; }
}
@media(max-width:768px) {
 body #main #doctorsContainer .doctor-card { grid-template-rows:auto auto 1fr auto; gap:6px 14px; }
 body #main #doctorsContainer .doctor-avatar { grid-row:1/4; margin:0; }
 body #main #doctorsContainer .doctor-name { grid-row:1; }
 body #main #doctorsContainer .doctor-spec-pill { grid-row:2; }
 body #main #doctorsContainer .provider-experience { grid-row:3; align-self:start; margin:4px 0 6px; }
 body #main #doctorsContainer .doctor-card > div:last-child { grid-row:4; align-self:end; padding-top:6px; }
}

/* Medical audit fixes, 28 October 2026. Wellness is intentionally excluded. */
body:not(.wl) #main .medical-query-toolbar { grid-template-columns:minmax(0,2fr) minmax(220px,1fr); gap:10px 16px; align-items:end; }
body:not(.wl) #main .medical-query-toolbar .filter-bar { display:grid !important; grid-template-columns:minmax(0,1fr); justify-content:stretch; align-items:stretch; min-width:0; width:100%; }
body:not(.wl) #main .medical-query-toolbar .search-page-form { width:100%; max-width:none; box-sizing:border-box; margin:0; }
body:not(.wl) #main .medical-query-toolbar .search-page-form input { width:0; min-width:0; flex:1 1 0; }
body:not(.wl) #main .medical-query-toolbar label { font-size:14px; }
body:not(.wl) #main a:is([href*="t.me/"],[href*="telegram.me/"],[data-track="telegram_contact"]) { background:#e6f3fb !important; color:#075579 !important; border:1px solid #b2d5e9; }
body:not(.wl) #main a:is([href*="t.me/"],[href*="telegram.me/"],[data-track="telegram_contact"]) :is(span,.icon) { color:inherit !important; }
body:not(.wl) #main a:is([href*="t.me/"],[href*="telegram.me/"]):hover { background:#d5eaf7 !important; }
body:not(.wl) #main :is(.visa-caption,.rd-est-note,.rd-est-disclaimer,.rd-safe p,.rd-office p,.rd-office-legal,.rd-drop-hint,.medical-result-status,.medical-supporting-copy) { font-size:14px !important; line-height:1.65; }
body:not(.wl)[data-medical-page="accommodation-guide"] #main .medical-paper-scene { height:140px !important; max-width:400px; margin:16px 0 20px !important; box-shadow:none !important; }
body:not(.wl) #main .medical-guide-hub { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
body:not(.wl) #main .medical-guide-hub article { display:flex; flex-direction:column; padding:22px; border:1px solid #d5e2e7; border-radius:18px; background:#fff; }
body:not(.wl) #main .medical-guide-hub h2 { font-size:20px; line-height:1.35; margin:0 0 12px; }
body:not(.wl) #main .medical-guide-hub p { margin:0 0 20px; }
body:not(.wl) #main .medical-guide-hub a { margin-top:auto; align-self:flex-start; }
body:not(.wl) #main .provider-evidence .patient-enquiry-choice { gap:12px; }
body:not(.wl) #main #doctorRail .rd-doc-img img { width:100%; height:100%; object-fit:contain; }
body:not(.wl) #main #doctorsContainer .doctor-avatar { width:96px; height:96px; }
@media(max-width:900px) { body:not(.wl) #main .medical-guide-hub { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) {
 body:not(.wl) #main .medical-query-toolbar { grid-template-columns:minmax(0,1fr); }
 body:not(.wl) #main .medical-guide-hub { grid-template-columns:minmax(0,1fr); }
 body:not(.wl) #main #doctorsContainer .doctor-avatar { width:76px; height:76px; }
 body:not(.wl)[data-medical-page="accommodation-guide"] #main .medical-paper-scene { max-width:100%; height:120px !important; }
}

/* Consistent insets, compact actions and a visible Medical section switch. */
body:not(.wl) #main .medical-more { box-sizing:border-box; }
body:not(.wl) #main .medical-more > summary { padding:13px 16px; gap:12px; }
body:not(.wl) #main .medical-more-body { padding:0 16px 16px; }
body:not(.wl) #main .medical-more > :is(.medical-procedure-extra,.rd-procs) { box-sizing:border-box; padding:0 16px 12px; margin:0; }
body:not(.wl) #main .medical-procedure-extra .rd-proc { gap:16px; line-height:1.55; padding:12px 0; min-width:0; }
body:not(.wl) #main .medical-procedure-extra .rd-proc:last-child { border-bottom:0; }
body:not(.wl) #main .medical-procedure-extra .rd-proc::after { align-self:center; }
body:not(.wl) #main .medical-task-links { width:calc(100% - 32px) !important; max-width:1232px; margin-inline:auto !important; box-sizing:border-box; }
body:not(.wl) #main .medical-task-extra { padding:8px 16px 16px; margin:0; gap:12px; box-sizing:border-box; }
body:not(.wl) #main .medical-task-extra > a { min-width:0; box-sizing:border-box; padding:14px 10px; }
body:not(.wl) #main :is(.rd-btn,.rd-btn-line,.btn-primary,.btn-secondary,.btn-outline,.btn-outline-teal) { min-height:38px !important; padding:8px 14px !important; font-size:13px !important; line-height:1.4; border-radius:11px; box-sizing:border-box; }
body:not(.wl) #main .rd-panel-actions { flex-wrap:wrap; gap:10px; }
body:not(.wl) #main .rd-panel-actions a { width:auto !important; flex:0 1 auto; }
body:not(.wl) #main .rd-hero-actions { display:flex !important; flex-wrap:wrap; gap:10px; }
body:not(.wl) #main .rd-hero-actions > a { width:auto !important; flex:0 1 auto; }
body:not(.wl) #navbar .medical-nav-identity { display:contents; }
body:not(.wl) #navbar.nav-reference.shared-nav .medical-mode-switch { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); width:148px !important; padding:2px !important; border-radius:11px !important; gap:2px; }
body:not(.wl) #navbar.nav-reference.shared-nav .medical-mode-switch > :is(span,a) { display:flex !important; align-items:center; justify-content:center; min-height:30px !important; margin:0; padding:5px 8px !important; font-size:11px !important; font-weight:600; line-height:1.25; white-space:normal; text-align:center; text-decoration:none; border-radius:8px !important; color:var(--nav-ink) !important; }
body:not(.wl) #navbar.nav-reference.shared-nav .medical-mode-switch > .is-on { background:var(--nav-accent) !important; color:#fff !important; }
body:not(.wl) #navbar .medical-mode-switch > a:hover { background:#dceaf0; }
body:not(.wl) #navbar .medical-mode-switch > a:focus-visible { outline:2px solid var(--nav-accent); outline-offset:2px; }
@media(max-width:1200px) {
 body:not(.wl) #navbar.nav-reference.shared-nav .nav-links { inset-inline:12px !important; top:calc(100% + 8px) !important; border:1px solid var(--nav-border) !important; border-radius:16px !important; padding:14px 16px 18px !important; max-height:calc(100dvh - var(--nav-h,84px) - 20px); box-sizing:border-box; }
 body:not(.wl) #navbar.nav-reference.shared-nav .nav-support { display:flex !important; flex-wrap:wrap; gap:10px; padding-top:12px; border-top:1px solid var(--nav-border); }
 body:not(.wl) #navbar.nav-reference.shared-nav .nav-support > li { display:flex !important; align-items:center; flex-wrap:wrap; gap:8px; min-width:0; max-width:100%; }
 body:not(.wl) #navbar.nav-reference.shared-nav .nav-support > li > :is(a,.contact-action-row) { width:auto !important; box-sizing:border-box; }
 body:not(.wl) #navbar.nav-reference.shared-nav .nav-support a:not(.rd-switch) { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:38px !important; padding:8px 12px !important; font-size:12px !important; line-height:1.35; border-radius:10px; }
 body:not(.wl) #navbar.nav-reference.shared-nav .nav-support .nav-cta { padding:8px 12px !important; color:#fff !important; }
}
@media(max-width:768px) {
 body:not(.wl) #navbar.nav-reference.shared-nav .nav-inner { height:86px !important; }
 body:not(.wl) #navbar .medical-nav-identity { display:flex; flex-direction:column; align-items:flex-start; gap:2px; min-width:0; flex:0 0 auto; max-width:calc(100% - 132px); }
 body:not(.wl) #navbar.nav-reference.shared-nav .nav-brand-mode .medical-mode-switch { width:148px !important; min-height:29px !important; max-width:100%; }
 body:not(.wl) #navbar.nav-reference.shared-nav .medical-mode-switch > :is(span,a) { min-height:24px !important; padding:3px 7px !important; font-size:10.5px !important; }
 body:not(.wl) #navbar.nav-reference.shared-nav .nav-actions { margin-inline-start:auto !important; }
 body:not(.wl) #navbar.nav-reference.shared-nav .lang-switch-current { display:none !important; }
 body:not(.wl) #navbar.nav-reference.shared-nav .lang-switch > summary { width:32px; min-width:32px; padding:6px 0 !important; justify-content:center; gap:2px; }
 body:not(.wl) #navbar.nav-reference.shared-nav .lang-switch > summary > .icon:first-of-type { display:inline-block !important; width:15px; height:15px; }
 body:not(.wl) #navbar.nav-reference.shared-nav .lang-switch > summary > .icon:last-of-type { width:9px; height:9px; }
 body:not(.wl) #main :is(.rd-btn,.rd-btn-line,.btn-primary,.btn-secondary,.btn-outline,.btn-outline-teal) { min-height:40px !important; padding:8px 12px !important; }
}

/* Mobile section selection lives in the opened menu; desktop stays unchanged. */
body:not(.wl) #navbar .medical-mobile-section-switch[hidden] { display:none !important; }
body:not(.wl) #navbar .mode-option-icon { display:none !important; }
@media(max-width:768px) {
 body:not(.wl) #navbar.nav-reference.shared-nav .nav-inner { height:64px !important; }
 body:not(.wl) #navbar .medical-nav-identity { display:contents; }
 body:not(.wl) #navbar .medical-mobile-section-switch { margin:0 0 12px; }
 body:not(.wl) #navbar .medical-mobile-section-switch > summary { display:flex; align-items:center; justify-content:space-between; min-height:42px; padding:10px 12px; box-sizing:border-box; border:1px solid var(--nav-border); border-radius:10px; background:var(--nav-soft); color:var(--nav-ink); font-size:13px; font-weight:600; list-style:none; cursor:pointer; }
 body:not(.wl) #navbar .medical-mobile-section-switch > summary::-webkit-details-marker { display:none; }
 body:not(.wl) #navbar .medical-mobile-section-switch > summary::after { content:'▾'; margin-inline-start:12px; }
 body:not(.wl) #navbar .medical-mobile-section-switch[open] > summary::after { content:'▴'; }
 body:not(.wl) #navbar .medical-mobile-section-options { padding:0; }
 body:not(.wl) #navbar.nav-reference.shared-nav .medical-mobile-section-options .medical-mode-switch { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)); width:100% !important; max-width:none; padding:3px !important; gap:4px; border-radius:12px !important; background:linear-gradient(100deg,#edf5f8,#edf3e8) !important; }
 body:not(.wl) #navbar.nav-reference.shared-nav .medical-mobile-section-options .medical-mode-switch > :is(span,a) { justify-content:center; gap:8px; width:100%; min-height:40px !important; padding:9px 10px !important; font-size:13px !important; box-sizing:border-box; }
 body:not(.wl) #navbar.nav-reference.shared-nav .medical-mobile-section-options .medical-mode-switch > a { color:#3b5e43 !important; background:#e5efdf; }
 body:not(.wl) #navbar.nav-reference.shared-nav .medical-mobile-section-options .medical-mode-switch > a:hover { background:#d5e6cb; }
 body:not(.wl) #navbar.nav-reference.shared-nav .medical-mobile-section-options .mode-option-icon { display:inline-block !important; flex:0 0 18px; width:18px !important; height:18px !important; margin:0; fill:currentColor; object-fit:contain; }
}

/* Contact actions: compact controls instead of oversized full-width cards. */
body:not(.wl) #main .rd-contact-hero > .rd-wrap > p:not(.contact-direct-details) { margin-bottom:0 !important; }
body:not(.wl) #main .rd-contact-hero .rd-quick { display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)); max-width:720px; gap:8px; margin-top:16px; }
body:not(.wl) #main .rd-contact-hero .rd-quick-card { display:flex !important; flex-direction:row !important; align-items:center; justify-content:center; gap:8px; width:auto !important; min-width:0 !important; min-height:44px; height:auto; flex:none !important; padding:9px 12px !important; text-align:start; border-radius:10px; box-sizing:border-box; font-size:13px; line-height:1.4; }
body:not(.wl) #main .rd-contact-hero .rd-quick-card > span { display:block; min-width:0; }
body:not(.wl) #main .rd-contact-hero .rd-quick-card b { font-size:13px; line-height:1.4; }
body:not(.wl) #main .rd-contact-hero .rd-quick-card small { display:none; }
body:not(.wl) #main .rd-contact-hero .rd-quick-card .icon { display:inline-block; box-sizing:content-box !important; flex:0 0 18px; width:18px !important; height:18px !important; padding:0 !important; margin:0; border:0; border-radius:0; background:transparent !important; color:#145e7a; fill:currentColor; }
body:not(.wl) #main .rd-contact-hero .rd-quick-card.is-wa:not(.telegram-link) .icon { color:#073b1e; }
body:not(.wl) #main .rd-contact-hero .contact-direct-details { display:flex; flex-wrap:wrap; gap:4px 18px; margin:10px 0 0 !important; padding:0; font-size:13px !important; line-height:1.6; }
body:not(.wl) #main .contact-direct-details a { color:#48606b !important; text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
body:not(.wl) #main .rd-contact-main .patient-enquiry-choice { gap:8px; margin-bottom:12px; }
body:not(.wl) #main .rd-contact-main .patient-enquiry-choice > a { width:auto !important; flex:0 1 auto; min-height:36px !important; padding:7px 11px !important; font-size:12px !important; line-height:1.4; }
body:not(.wl) #main .rd-contact-main .patient-fee-note { margin-block:12px; }
body:not(.wl) #main .rd-contact-main .rd-stepnav button { min-height:40px !important; padding:8px 14px !important; font-size:13px; }
@media(max-width:600px) {
 body:not(.wl) #main .rd-contact-hero .rd-quick { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body:not(.wl) #main .rd-contact-hero .rd-quick-card { padding:8px 10px !important; }
 body:not(.wl) #main .rd-contact-hero .contact-direct-details { gap:3px 12px; }
}

/* Phone density: readable rows and bounded artwork, with desktop left intact. */
@media(max-width:768px) {
 body:not(.wl).medical-refined #main > section:not(.rd-hero):not(.medical-compact-hero):not(.rd-hospital-strip):not(.hospital-logo-strip) { padding-block:20px !important; }
 body:not(.wl) #main .medical-compact-hero { padding-top:calc(var(--nav-h,64px) + 18px) !important; padding-bottom:18px !important; }
 body:not(.wl) #main :is(.rd-head,.section-header) { margin-bottom:16px !important; gap:8px; }
 body:not(.wl) #main .rd-section > :is(.rd-wrap,.section-inner) > .rd-h2 { margin-bottom:14px !important; }
 body:not(.wl) #main :is(.rd-cardgrid,.rd-guide-grid,.doctors-grid,.hospitals-grid,.treatment-cards-grid,.medical-stage-grid,.medical-guide-hub,.journey-cases) { gap:12px !important; }
 body:not(.wl) #main :is(.rd-card,.rd-dd,.medical-stage,.medical-topic-card,.medical-guide-hub article,.journey-case,.two-col-grid > .info-panel) { padding:14px !important; min-height:0; border-radius:14px !important; }
 body:not(.wl) #main :is(.rd-card,.rd-dd,.medical-stage,.medical-guide-hub article) > p:last-child { margin-bottom:0; }
 body:not(.wl) #main .cost-guide-list { display:grid; grid-template-columns:minmax(0,1fr) !important; gap:0 !important; border:1px solid #d5e2e7; border-radius:12px; background:#fff; overflow:hidden; }
 body:not(.wl) #main .cost-guide-list > a { display:grid; grid-template-columns:minmax(0,1fr) max-content; align-items:center; column-gap:12px; min-height:48px; padding:10px 12px !important; margin:0; border:0; border-bottom:1px solid #e1e9ed; border-radius:0; background:transparent; box-shadow:none; transform:none; box-sizing:border-box; }
 body:not(.wl) #main .cost-guide-list > a:last-child { border-bottom:0; }
 body:not(.wl) #main .cost-guide-list > a > b { min-width:0; margin:0; font-size:14px; line-height:1.45; }
 body:not(.wl) #main .cost-guide-meta { display:contents; }
 body:not(.wl) #main .cost-guide-price { color:#145e7a; font-size:13px; line-height:1.5; white-space:nowrap; text-align:end; }
 body:not(.wl) #main .cost-guide-specialty { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
 body:not(.wl) #main .cost-guide-list > a:focus-visible { outline:2px solid #145e7a; outline-offset:-3px; }
 body:not(.wl) #main #doctorsContainer .doctor-card { grid-template-columns:64px minmax(0,1fr); padding:14px !important; gap:5px 12px; }
 body:not(.wl) #main #doctorsContainer .doctor-avatar { width:64px; height:64px; }
 body:not(.wl) #main #doctorsContainer .doctor-name { font-size:18px; }
 body:not(.wl) #main .hospital-card-img { height:128px !important; min-height:0; }
 body:not(.wl) #main .hospital-card-body { padding:14px !important; }
 body:not(.wl) #main .treatment-card { padding:12px !important; }
 body:not(.wl) #main .treatment-card .medical-treatment-paper { height:110px !important; min-height:0; margin-bottom:8px; }
 body:not(.wl) #main .treatment-card .treatment-card-body { padding:0 !important; }
 body:not(.wl) #main .treatment-card .treatment-card-name { min-height:0; margin-bottom:6px !important; }
 body:not(.wl) #main .treatment-card :is(.treatment-card-price,.treatment-card-tag) { min-height:0; margin-block:6px !important; }
 body:not(.wl) #main .treatment-card .medical-card-excerpt { -webkit-line-clamp:2; }
 body:not(.wl) #main .medical-task-links { gap:10px; padding-block:18px 8px; }
 body:not(.wl) #main .medical-task-links a { min-height:108px !important; height:auto; padding:10px !important; gap:6px; }
 body:not(.wl) #main .medical-task-links .medical-task-sticker { width:64px !important; height:64px !important; }
 body:not(.wl) #main .medical-task-extra { gap:10px; padding:6px 12px 12px; }
 body:not(.wl) #main .medical-more > summary { padding:11px 14px; }
 body:not(.wl) #main .medical-more-body { padding:0 14px 14px; }
 body:not(.wl) #main .rd-qa summary { padding:13px 14px !important; }
 body:not(.wl) #main .rd-qa .faq-answer { padding:0 14px 14px !important; }
 body:not(.wl).medical-home #main .rd-step { grid-template-columns:64px minmax(0,1fr); gap:8px 12px; padding:14px !important; }
 body:not(.wl).medical-home #main .rd-step-dot.medical-paper-holder,
 body:not(.wl).medical-home #main .rd-step-dot .medical-care-paper { width:64px !important; height:72px !important; }
 body:not(.wl) #main .medical-treatment-hero .medical-profile-paper { width:136px !important; height:136px !important; }
 body:not(.wl) #main .medical-guide-support > div { gap:12px !important; }
 body:not(.wl) #main .medical-guide-support > div > div { padding:14px !important; }
}
@media(max-width:600px) {
 body:not(.wl) #main .treatment-cards-grid .treatment-card { display:grid; grid-template-columns:76px minmax(0,1fr); align-items:start; gap:12px; }
 body:not(.wl) #main .treatment-cards-grid .treatment-card .medical-treatment-paper { width:76px !important; height:88px !important; margin:0; }
 body:not(.wl) #main .treatment-cards-grid .treatment-card-body { margin:0 !important; min-width:0; }
 body:not(.wl) #main .treatment-cards-grid .treatment-card-name { font-size:16px !important; line-height:1.35; }
 body:not(.wl) #main .treatment-cards-grid .treatment-card-price b { font-size:14px; line-height:1.4; }
 body:not(.wl) #main .treatment-cards-grid .treatment-card-links a { min-height:32px; display:inline-flex; align-items:center; font-size:13px !important; }
}

/* Country discovery and a text-width active state in the phone navigation. */
body:not(.wl) #main .country-search-form { display:flex; align-items:stretch; gap:8px; margin:0 0 8px; max-width:700px; }
body:not(.wl) #main .country-search-input { display:flex; align-items:center; gap:8px; flex:1; min-width:0; padding:0 12px; background:#fff; border:1px solid #cbdde5; border-radius:10px; }
body:not(.wl) #main .country-search-input .icon { flex:0 0 18px; width:18px; height:18px; fill:currentColor; color:#526e7d; }
body:not(.wl) #main .country-search-input input { width:100%; min-width:0; min-height:42px; border:0; background:transparent; padding:8px 0; color:#153849; font:inherit; font-size:14px; }
body:not(.wl) #main .country-search-form button { min-height:44px !important; flex-shrink:0; }
body:not(.wl) #main .country-search-status { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:32px; margin-bottom:10px; color:#526e7d; font-size:13px; }
body:not(.wl) #main .country-search-status a { display:inline-flex; align-items:center; min-height:32px; color:#145e7a; text-underline-offset:3px; }
body:not(.wl) #main :is(.country-guide-grid > [hidden],.country-search-empty[hidden],#countrySearchClear[hidden]) { display:none !important; }
body:not(.wl) #main .country-search-empty { padding:16px; background:#f5f9fb; border:1px solid #d5e2e7; border-radius:12px; }
@media(max-width:768px) {
 body:not(.wl) #navbar.nav-reference.shared-nav .nav-primary > li > a.medical-nav-current,
 body:not(.wl) #navbar.nav-reference.shared-nav .nav-guide-menu a.medical-nav-current,
 body:not(.wl) #navbar.nav-reference.shared-nav .nav-guide.medical-nav-current-group > summary { border-bottom-color:transparent !important; text-decoration:none !important; }
 body:not(.wl) #navbar.nav-reference.shared-nav .nav-primary a.medical-nav-current > .medical-nav-label,
 body:not(.wl) #navbar.nav-reference.shared-nav .nav-guide.medical-nav-current-group > summary > .medical-nav-label { text-decoration:underline; text-decoration-color:var(--nav-accent); text-decoration-thickness:2px; text-underline-offset:7px; }
 body:not(.wl) #main .country-search-form { margin-top:0; }
}
/* Phone-only density pass: expandable supporting copy, original desktop layout. */
@media (max-width:768px) {
 body:not(.wl) .medical-phone-disclosure { min-width:0; }
 body:not(.wl) .medical-phone-disclosure > summary { cursor:pointer; min-height:44px; display:flex; align-items:center; gap:12px; font-weight:600; line-height:1.5; list-style:none; }
 body:not(.wl) .medical-phone-disclosure > summary::-webkit-details-marker { display:none; }
 body:not(.wl) .medical-phone-disclosure > summary::after { content:'+'; margin-inline-start:auto; flex-shrink:0; }
 body:not(.wl) .medical-phone-disclosure[open] > summary::after { content:'−'; }
 body:not(.wl) .medical-phone-disclosure > summary:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
 body:not(.wl) footer .footer-col { margin:0; padding-block:0; }
 body:not(.wl) footer .footer-col-title[hidden],body:not(.wl) footer .footer-assurance strong[hidden] { display:none !important; }
 body:not(.wl) footer .medical-phone-footer-links { border-bottom:1px solid #ffffff30; }
 body:not(.wl) footer .medical-phone-footer-links > summary { padding-block:7px; font-size:14px; }
 body:not(.wl) footer .medical-phone-footer-links .footer-links { margin:0 0 12px; }
 body:not(.wl) footer .footer-inner { gap:12px; padding-block:20px; }
 body:not(.wl) footer .footer-assurance { gap:8px 12px; padding-block:12px; }
 body:not(.wl) footer .footer-assurance-item { align-items:start; }
 body:not(.wl) footer .medical-phone-assurance > summary { font-size:12px; }
 body:not(.wl) footer .footer-brand-desc { margin-block:10px; }
 body:not(.wl) footer .footer-bottom { padding-block:16px; }
 body:not(.wl) #main .patient-fee-note:has(.medical-phone-fee) { padding:8px 14px; }
 body:not(.wl) #main .patient-fee-note > strong[hidden] { display:none !important; }
 body:not(.wl) #main .medical-phone-fee > summary { font-size:14px; }
 body:not(.wl)[data-medical-page='contact'] #main .rd-contact-aside { margin-top:12px; }
 body:not(.wl)[data-medical-page='contact'] #main .rd-contact-aside .medical-more { margin-block:8px; }
 body:not(.wl)[data-medical-page='contact'] #main .rd-contact-aside .medical-more:not([open]) > :not(summary) { display:none !important; }
 body:not(.wl)[data-medical-page='doctor'] #main .page-hero { padding-block:20px !important; }
 body:not(.wl)[data-medical-page='doctor'] #main .profile-hero-grid { grid-template-columns:minmax(0,1fr) 92px !important; gap:12px !important; align-items:start; }
 body:not(.wl)[data-medical-page='doctor'] #main .profile-hero-copy { grid-column:1; grid-row:1; gap:6px !important; }
 body:not(.wl)[data-medical-page='doctor'] #main .profile-hero-picture { grid-column:2 !important; grid-row:1 !important; align-self:start; width:92px !important; max-width:92px !important; min-height:0 !important; max-height:130px !important; }
 body:not(.wl)[data-medical-page='doctor'] #main .profile-hero-picture :is(img,svg.doctor-cutout-art) { width:92px !important; height:120px !important; max-height:120px !important; object-fit:contain; }
 body:not(.wl)[data-medical-page='doctor'] #main .hero-title { font-size:24px !important; line-height:1.2; }
 body:not(.wl)[data-medical-page='doctor'] #main .profile-hero-copy > p { font-size:14px !important; margin-bottom:4px !important; }
 body:not(.wl)[data-medical-page='doctor'] #main .profile-hero-copy > div { gap:6px !important; }
 body:not(.wl)[data-medical-page='treatment'] #main .page-hero { padding-block:20px !important; }
 body:not(.wl)[data-medical-page='treatment'] #main .profile-hero-grid { gap:12px !important; }
 body:not(.wl)[data-medical-page='treatment'] #main .profile-hero-copy { gap:8px !important; }
 body:not(.wl)[data-medical-page='treatment'] #main .profile-hero-copy > p { font-size:14px !important; margin-block:0 !important; }
 body:not(.wl)[data-medical-page='treatment'] #main .profile-hero-picture { width:100px !important; height:82px !important; max-height:82px !important; }
 body:not(.wl)[data-medical-page='treatment'] #main .price-band { margin-block:0; padding:12px; }
 body:not(.wl)[data-medical-page='treatment'] #main .price-band-note { font-size:12px; line-height:1.5; margin-block:8px; }
 body:not(.wl)[data-medical-page='treatment'] #main .price-band-value { font-size:20px; }
 body:not(.wl)[data-medical-page='doctor'] #main .medical-profile-cta,body:not(.wl)[data-medical-page='treatment'] #main .medical-profile-cta { width:auto !important; align-self:start; min-height:44px; padding:10px 14px; margin-top:8px !important; font-size:13px; }
}

@media(max-width:768px){
body:not(.wl) #main .rd-contact-aside .medical-visible-info { padding:0; margin-block:8px; }
body:not(.wl) #main .medical-visible-info-title[hidden] { display:none!important; }
body:not(.wl) #main .medical-phone-contact-info { border:1px solid #d5e2e7; border-radius:12px; padding:0 14px; }
body:not(.wl) #main .medical-phone-contact-info > summary { font-size:14px; padding-block:8px; }
body:not(.wl) #main .medical-phone-contact-info:not([open]) > :not(summary) { display:none!important; }
}

@media(max-width:768px){
body:not(.wl)[data-medical-page='doctor'] #main .profile-hero-aligned .doctor-avatar-box.profile-hero-picture { height:120px!important; min-height:0!important; display:flex!important; align-items:start!important; }
body:not(.wl)[data-medical-page='doctor'] #main .profile-hero-copy :is(h1,p) { text-align:start!important; }
body:not(.wl)[data-medical-page='doctor'] #main .profile-hero-copy > div { justify-content:flex-start!important; }
body:not(.wl)[data-medical-page='treatment'] #main .price-band .price-band-note { font-size:14px!important; line-height:1.5!important; }
body:not(.wl) footer .footer-assurance { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
body:not(.wl) footer .footer-contact { gap:8px; margin-block:12px; }
}

@media(max-width:768px){
body:not(.wl) footer .footer-countries { gap:6px 12px; padding-block:12px; }
body:not(.wl) footer .footer-countries a { padding:6px 0; border:0; border-radius:0; min-height:32px; display:inline-flex; align-items:center; text-decoration:underline; text-underline-offset:3px; }
body:not(.wl) footer .footer-contact .icon { width:20px; height:20px; flex:0 0 20px; }
}

/* Keep contact icons and labels on the same baseline on phones. */
@media(max-width:768px){
 body:not(.wl) footer .footer-contact { grid-template-columns:minmax(0,1fr); gap:2px; }
 body:not(.wl) footer .footer-contact > li { grid-column:1; display:grid; grid-template-columns:20px minmax(0,1fr); align-items:center; column-gap:10px; }
 body:not(.wl) footer .footer-contact > li > .icon { margin:0; align-self:center; width:20px; height:20px; }
 body:not(.wl) footer .footer-contact > li > a { min-height:44px; width:fit-content; max-width:100%; display:inline-flex; align-items:center; line-height:1.5; }
}

/* Keep profile content below the fixed header and make key phone controls easier to tap. */
@media (max-width:768px) {
 body:not(.wl)[data-medical-page='treatment'] #main .page-hero,
 body:not(.wl)[data-medical-page='doctor'] #main .page-hero { padding-top:calc(var(--nav-h, 65px) + 16px) !important; }
 body:not(.wl) #main .rd-contact-main .rd-stepnav button { min-height:44px !important; }
 body:not(.wl) #main .contact-direct-details a,
 body:not(.wl) #main .rail-head-link,
 body:not(.wl) #main .medical-quote-action a { min-height:44px; display:inline-flex; align-items:center; }
}

@media (max-width:768px) {
 body:not(.wl) #main :is(.rail-card-title a,.related-pages-all,.rd-est-more,.medical-hero-trust a,.price-band a:not(.medical-profile-cta)) { display:inline-flex; align-items:center; min-height:32px; }
}
