/* Compact branch switcher dock. */
.branch-dock { position:fixed; z-index:120; top:50%; left:14px; width:max-content; transform:translateY(-50%); }
.branch-dock-toggle { position:relative; display:grid; width:48px; height:48px; place-items:center; border:1px solid rgba(255,255,255,.45); border-radius:50%; color:#fff; background:linear-gradient(145deg,#0b4c38,#20895b); box-shadow:0 8px 24px rgba(14,76,53,.24); cursor:pointer; transition:transform .24s ease,box-shadow .24s ease; }
.branch-dock-toggle:hover,.branch-dock-toggle:focus-visible { transform:scale(1.06); box-shadow:0 10px 30px rgba(14,76,53,.32); }
.branch-dock-toggle::before { position:absolute; inset:-5px; border:1px solid rgba(35,137,91,.28); border-radius:inherit; content:""; animation:branch-signal 3.2s ease-out infinite; pointer-events:none; }
.branch-dock.is-open .branch-dock-toggle::before,.branch-dock-toggle:hover::before,.branch-dock-toggle:focus-visible::before { animation:none; opacity:0; }
.branch-pin { width:21px; height:21px; object-fit:contain; filter:brightness(0) invert(1); }
.branch-dock-indicator { position:absolute; top:1px; right:1px; width:10px; height:10px; border:2px solid #fff; border-radius:50%; background:#c8e578; }
.branch-dock-panel[hidden] { display:none !important; }
.branch-dock-panel { position:absolute; top:50%; left:60px; width:min(330px,calc(100vw - 92px)); padding:20px; border:1px solid rgba(211,229,216,.9); border-radius:18px; color:#173f32; background:rgba(255,255,255,.97); box-shadow:0 18px 50px rgba(12,52,37,.2); opacity:0; transform:translateY(-50%) translateX(-8px); animation:branch-panel-in .22s ease forwards; backdrop-filter:blur(14px); }
.branch-dock-panel-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.branch-dock-eyebrow { display:block; margin-bottom:5px; color:#6a8d79; font-size:9px; font-weight:800; letter-spacing:.12em; }
.branch-dock-heading { display:block; color:#153f32; font-size:18px; line-height:1.25; }
.branch-dock-close { display:grid; width:30px; height:30px; flex:none; place-items:center; border:1px solid #e0ebe2; border-radius:50%; color:#47685a; background:#f8fbf8; font-size:20px; cursor:pointer; }
.branch-dock-current { display:flex; flex-direction:column; gap:3px; margin:16px 0 10px; padding:12px 13px; border-radius:12px; background:linear-gradient(110deg,#eef7ef,#f8fbf7); }
.branch-dock-current-name { font-size:14px; font-weight:800; }
.branch-dock-current-type { color:#668073; font-size:11px; line-height:1.4; }
.branch-switcher-options { display:grid; gap:7px; }
.branch-switcher-options button { display:flex; min-width:0; align-items:center; justify-content:space-between; gap:10px; padding:11px 12px; border:1px solid #e2ebe4; border-radius:12px; color:#234b3b; background:#fff; text-align:left; cursor:pointer; transition:border-color .2s ease,background .2s ease,transform .2s ease; }
.branch-switcher-options button:hover { border-color:#a8cfb2; background:#f4faf4; transform:translateX(2px); }
.branch-switcher-options button.active { border-color:#75b28b; background:linear-gradient(100deg,rgba(231,245,231,.94),rgba(246,250,238,.96)); }
.branch-option-copy { display:grid; gap:3px; }
.branch-option-name { font-size:13px; }
.branch-option-type { color:#71867b; font-size:10px; line-height:1.35; }
.branch-option-check { color:#23774f; font-size:16px; opacity:0; }
.branch-switcher-options button.active .branch-option-check { opacity:1; }
@keyframes branch-signal { 0% { transform:scale(.86); opacity:.7; } 70%,100% { transform:scale(1.5); opacity:0; } }
@keyframes branch-panel-in { to { opacity:1; transform:translateY(-50%) translateX(0); } }
.topline { position:relative; z-index:20; }
.header { position:sticky !important; top:0 !important; z-index:90; }
@media (prefers-reduced-motion: reduce) { .branch-dock-toggle::before { animation:none; } .branch-dock-panel { animation:none; } }

/* The branch panel shows essential details and actions; the map stays at the page bottom. */
.branch-overview { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); align-items:center; gap:22px; width:min(1320px,calc(100% - 48px)); min-height:0; margin:18px auto 12px; padding:clamp(20px,3vw,34px); overflow:hidden; border:1px solid #e0e9e1; border-radius:20px; background:linear-gradient(110deg,#f2f7f1,#fff 62%); box-shadow:0 14px 42px rgba(21,67,45,.08); }
.branch-overview-copy { display:flex; min-width:0; flex-direction:column; align-items:flex-start; justify-content:center; padding:0; }
.branch-overview-kicker { color:#678376; font-size:10px; font-weight:800; letter-spacing:.12em; }
.branch-overview-title { margin:8px 0 6px; color:#153f32; font-size:clamp(23px,2.5vw,32px); line-height:1.13; letter-spacing:-.04em; }
.branch-overview-address { margin:0 0 7px; color:#283f35; font-size:15px; font-weight:750; }
.branch-overview-type { color:#24714e; font-size:13px; font-weight:750; }
.branch-overview-actions { display:grid; gap:12px; margin:0; }
.branch-overview-hours { display:flex; align-items:flex-start; gap:9px; color:#65766d; font-size:12px; line-height:1.55; }
.branch-overview-hours>span:first-child { color:#1a6e4d; font-size:20px; line-height:1; }
.branch-overview-buttons { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.branch-overview-buttons .button { display:flex; min-width:0; min-height:43px; align-items:center; justify-content:center; padding-inline:10px; font-size:12px; text-align:center; }
body.branch-homepage .hero { align-items:center; }
body.branch-homepage .hero-photo { min-height:clamp(380px,40vw,560px); overflow:hidden; border-radius:26px 52px 26px 26px; }
body.branch-homepage .hero-photo img { width:100%; height:100%; min-height:inherit; padding:0; object-fit:cover; object-position:center; }
body.branch-homepage .hero-photo-shade { background:linear-gradient(180deg,rgba(8,56,40,0) 55%,rgba(8,56,40,.34)); }
body.branch-homepage .hero h1 { max-width:620px; }

/* Specialist tiles use consistent image, text and action areas. */
.doctors-grid { align-items:stretch; grid-auto-rows:1fr; }
.doctor-card-link { height:100%; min-width:0; }
.doctors-grid .doctor-card { display:flex; height:100%; flex-direction:column; }
.doctor-card-photo { height:215px; flex:0 0 215px; overflow:hidden; background:#e9f0eb; }
.doctor-card-photo img { display:block; width:100%; height:100%; object-fit:cover; }
.doctor-card-body { display:flex; min-width:0; flex:1; flex-direction:column; padding:20px; }
.doctor-card-body h2 { min-height:2.55em; margin:6px 0 8px; line-height:1.28; }
.doctor-card-body>p { display:-webkit-box; min-height:4.8em; margin:0 0 12px; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.doctor-card-meta { align-items:flex-start; margin-top:auto; }
.doctor-card-meta>* { min-width:0; overflow-wrap:anywhere; }
.doctor-card-cta { margin-top:12px; }
.doctor-carousel-track { align-items:stretch; }
.carousel-doctor-card { display:flex; height:100%; flex-direction:column; }
.carousel-doctor-card .doctor-image { height:210px; flex:0 0 210px; overflow:hidden; }
.carousel-doctor-card .doctor-image img { display:block; width:100%; height:100%; object-fit:cover; }
.carousel-doctor-card .doctor-details { display:flex; min-width:0; flex:1; flex-direction:column; }
.carousel-doctor-card .doctor-details h3 { min-height:2.55em; }
.carousel-doctor-card .doctor-details p { margin-top:auto; }
.carousel-doctor-card .doctor-appointment { margin-top:12px; }

/* Screen 06 stays in one row; narrower screens scroll within the gallery. */
.spaces-section { overflow:hidden; }
.space-grid { display:grid; grid-auto-flow:column; grid-auto-columns:calc((100% - 64px)/5); grid-template-columns:none; gap:16px; max-width:100%; overflow-x:auto; overflow-y:hidden; padding:2px 2px 12px; overscroll-behavior-inline:contain; scroll-snap-type:x mandatory; scrollbar-width:thin; scrollbar-color:#8eb49a transparent; -webkit-overflow-scrolling:touch; }
.space-card { height:100%; scroll-snap-align:start; }
.space-card-caption { min-height:112px; flex:1 1 auto; }

/* Prevent services or doctors absent from the selected branch from showing conflicting details. */
.branch-availability-notice { width:min(900px,calc(100% - 40px)); margin:clamp(48px,8vw,100px) auto; padding:clamp(26px,5vw,58px); border:1px solid #d9e8dc; border-radius:24px; background:linear-gradient(135deg,#f1f7ef,#fff 75%); box-shadow:0 18px 48px rgba(16,67,43,.1); }
.branch-notice-kicker { color:#2b7a56; font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.branch-availability-notice h1 { max-width:680px; margin:14px 0 12px; color:#153f32; font-size:clamp(28px,4.2vw,44px); line-height:1.15; }
.branch-availability-notice p { max-width:680px; margin:0 0 22px; color:#536c60; font-size:16px; line-height:1.65; }
body.branch-content-unavailable main > :not(.branch-availability-notice) { display:none !important; }

@media (max-width:1160px) {
  .space-grid { grid-auto-columns:minmax(230px,32vw); }
}
@media (max-width:760px) {
  .branch-dock { top:auto; bottom:calc(88px + env(safe-area-inset-bottom)); left:12px; transform:none; }
  .branch-dock-toggle { width:44px; height:44px; }
  .branch-dock-panel { top:auto; bottom:56px; left:0; width:min(320px,calc(100vw - 24px)); max-height:min(70vh,520px); overflow-y:auto; transform:translateY(8px); }
  @keyframes branch-panel-in { to { opacity:1; transform:translateY(0); } }
  .branch-overview { grid-template-columns:minmax(0,1fr); gap:15px; width:calc(100% - 28px); margin:14px auto 18px; padding:20px; }
  .branch-overview-buttons { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .branch-overview-buttons .button:last-child { grid-column:1/-1; }
  .space-grid { grid-auto-columns:minmax(230px,42vw); gap:12px; }
  .doctors-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .doctor-carousel { grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-rows:auto auto; }
  .doctor-carousel-track { grid-column:1/-1; grid-row:1; min-width:0; }
  .doctor-carousel-track .carousel-doctor-card { width:min(82vw,390px); }
  .doctor-carousel .carousel-prev { grid-column:1; grid-row:2; justify-self:start; }
  .doctor-carousel .carousel-next { grid-column:2; grid-row:2; justify-self:end; }
}
@media (max-width:480px) {
  .branch-dock { bottom:calc(82px + env(safe-area-inset-bottom)); left:10px; }
  .branch-dock-panel { padding:16px; }
  @media (prefers-reduced-motion: reduce) { .branch-dock-panel { transform:none; } }
  .branch-overview-buttons { grid-template-columns:minmax(0,1fr); }
  .branch-overview-buttons .button:last-child { grid-column:auto; }
  .doctors-grid { grid-template-columns:minmax(0,1fr); }
  .doctor-card-photo { height:220px; flex-basis:220px; }
  .space-grid { grid-auto-columns:minmax(230px,82vw); }
  .branch-availability-notice { width:calc(100% - 28px); margin:42px auto; padding:24px 20px; border-radius:18px; }
  .branch-availability-notice p { font-size:14px; }
}

/* Government-funded care programme cards */
.funding-section { padding-block:clamp(48px,7vw,88px); background:linear-gradient(145deg,#f2f8f2,#fff 62%,#edf5ee); }
.funding-section .section-heading { max-width:880px; margin-inline:auto; text-align:center; }
.funding-section .section-heading p { max-width:700px; margin-inline:auto; color:#546c60; }
.program-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; max-width:1100px; margin:34px auto 0; }
.program-card { display:flex; min-width:0; min-height:230px; flex-direction:column; padding:clamp(22px,3vw,34px); border:1px solid #dce9de; border-radius:22px; color:#163f32; background:rgba(255,255,255,.88); box-shadow:0 14px 36px rgba(22,73,48,.07); text-decoration:none; transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease,background .24s ease; }
.program-card:hover,.program-card:focus-visible { transform:translateY(-4px); border-color:#a8ccb0; background:linear-gradient(135deg,rgba(227,243,229,.92),rgba(255,255,255,.97)); box-shadow:0 20px 42px rgba(22,73,48,.12); }
.program-card h3 { margin:18px 0 10px; font-size:clamp(19px,2vw,24px); line-height:1.25; }
.program-card p { color:#5b7165; line-height:1.6; }
.program-card-link { margin-top:auto; color:#176748; font-weight:800; }
.program-note { margin:34px 0; padding:clamp(22px,4vw,40px); border:1px solid #dce9de; border-radius:20px; background:linear-gradient(120deg,#f2f8f2,#fff); }
.program-note h2 { margin:0 0 12px; color:#174536; }
.program-note p { color:#4d6659; line-height:1.7; }
.programme-source { margin-top:24px; color:#64796e; font-size:13px; line-height:1.6; }
.programme-source a { color:#176748; font-weight:700; }
@media(max-width:680px) { .program-cards { grid-template-columns:minmax(0,1fr); gap:12px; margin-top:22px; } .program-card { min-height:190px; } }

/* Government-funded care programme cards */
.funding-section { padding-block:clamp(48px,7vw,88px); background:linear-gradient(145deg,#f2f8f2,#fff 62%,#edf5ee); }
.funding-section .section-heading { max-width:880px; margin-inline:auto; text-align:center; }
.funding-section .section-heading p { max-width:700px; margin-inline:auto; color:#546c60; }
.program-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; max-width:1100px; margin:34px auto 0; }
.program-card { display:flex; min-width:0; min-height:230px; flex-direction:column; padding:clamp(22px,3vw,34px); border:1px solid #dce9de; border-radius:22px; color:#163f32; background:rgba(255,255,255,.88); box-shadow:0 14px 36px rgba(22,73,48,.07); text-decoration:none; transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease,background .24s ease; }
.program-card:hover,.program-card:focus-visible { transform:translateY(-4px); border-color:#a8ccb0; background:linear-gradient(135deg,rgba(227,243,229,.92),rgba(255,255,255,.97)); box-shadow:0 20px 42px rgba(22,73,48,.12); }
.program-card h3 { margin:18px 0 10px; font-size:clamp(19px,2vw,24px); line-height:1.25; }
.program-card p { color:#5b7165; line-height:1.6; }
.program-card-link { margin-top:auto; color:#176748; font-weight:800; }
.program-note { margin:34px 0; padding:clamp(22px,4vw,40px); border:1px solid #dce9de; border-radius:20px; background:linear-gradient(120deg,#f2f8f2,#fff); }
.program-note h2 { margin:0 0 12px; color:#174536; }
.program-note p { color:#4d6659; line-height:1.7; }
.programme-source { margin-top:24px; color:#64796e; font-size:13px; line-height:1.6; }
.programme-source a { color:#176748; font-weight:700; }
@media(max-width:680px) { .program-cards { grid-template-columns:minmax(0,1fr); gap:12px; margin-top:22px; } .program-card { min-height:190px; } }

/* Branch information, clinic facts, and patient-support contacts */
.branch-information-panel,.branch-facility-panel { display:grid; gap:24px; min-width:0; }
.branch-facility-heading { max-width:850px; }
.branch-facility-heading h2 { margin:7px 0 10px; color:#153d31; font-size:clamp(25px,3vw,38px); line-height:1.15; }
.branch-facility-heading > p:last-child { color:#62756c; }
.clinic-facts-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:13px; }
.clinic-fact-card { display:grid; align-content:start; gap:7px; min-width:0; min-height:146px; padding:17px; border:1px solid #dfeae2; border-radius:18px; background:linear-gradient(145deg,#fff,#f5faf5); box-shadow:0 8px 22px rgba(20,64,44,.045); }
.clinic-fact-icon { display:grid; place-items:center; width:34px; height:34px; border-radius:11px; color:#176b4b; background:linear-gradient(135deg,#e5f1dc,#d0e9ce); font-size:19px; }
.clinic-fact-card strong { color:#174534; font-size:clamp(22px,2.1vw,30px); line-height:1.05; letter-spacing:-.03em; }
.clinic-fact-card > span:last-of-type { color:#54695f; font-size:13px; font-weight:650; line-height:1.35; }
.clinic-fact-card small { color:#75857d; font-size:11px; line-height:1.4; }
.legal-entity-card { display:grid; grid-template-columns:1fr 1.2fr; gap:6px 20px; padding:20px 22px; border:1px solid #dce9df; border-radius:18px; background:linear-gradient(110deg,#f4f9f4,#fff); }
.legal-entity-card strong { color:#176c4d; font-size:13px; }
.legal-entity-card span { color:#173e31; font-size:17px; font-weight:800; }
.legal-entity-card small { grid-column:1/-1; color:#546b60; font-size:13px; }
.legal-entity-card p { grid-column:1/-1; margin:4px 0 0; color:#586f64; font-size:14px; }
.branch-facility-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.branch-facility-columns > section,.branch-info-section,.nurse-functions { min-width:0; padding:22px; border:1px solid #e0eae3; border-radius:18px; background:#fff; }
.branch-facility-columns h3,.branch-info-section h3 { margin:0 0 13px; color:#174534; font-size:20px; line-height:1.3; }
.branch-facility-columns ul,.branch-info-section ul,.nurse-functions ul { display:grid; gap:9px; margin:0; padding-left:20px; color:#53675e; line-height:1.55; }
.branch-facility-columns ul + h3 { margin-top:23px; }
.branch-facility-columns p { color:#53675e; line-height:1.65; }
.branch-hours-card { display:flex; align-items:flex-start; gap:13px; margin-top:23px; padding:16px; border:1px solid #e0eee1; border-radius:15px; background:#f5faf3; }
.branch-hours-card > span { color:#20825a; font-size:24px; }
.branch-hours-card strong { color:#174534; }
.branch-hours-card p { margin:6px 0 0; line-height:1.55; }
.specialty-list { grid-template-columns:repeat(2,minmax(0,1fr)); list-style:none; padding:0 !important; }
.specialty-list li { padding:9px 11px; border:1px solid #e1ece3; border-radius:11px; background:#f8fbf8; font-size:13px; font-weight:650; }
.nurse-functions { padding:0; overflow:hidden; }
.nurse-functions summary { padding:18px 22px; color:#174534; font-size:17px; font-weight:800; cursor:pointer; }
.nurse-functions[open] summary { border-bottom:1px solid #e5eee7; }
.nurse-functions ul { margin:18px 22px; }
.nurse-functions > p { margin:0 22px 20px; color:#5d7167; line-height:1.6; }
.official-sources { margin-top:30px; padding:22px 24px; border:1px solid #dfeae2; border-radius:18px; background:#f8fbf8; }
.official-sources h2 { margin:0 0 8px; color:#174534; font-size:23px; }
.official-sources p { color:#64756d; }
.official-sources ul { display:grid; gap:10px; padding-left:20px; }
.official-sources a { color:#176b4b; font-weight:700; text-underline-offset:3px; }
.official-sources a:hover { color:#27885d; }
.top-support-link { display:inline-flex; align-items:center; gap:8px; min-height:38px; padding:7px 12px; border:1px solid rgba(213,232,215,.52); border-radius:999px; color:#174b37; background:linear-gradient(120deg,#f8fcf6,#eaf4e4); font-size:12px; font-weight:750; transition:transform .2s ease,box-shadow .2s ease,background .2s ease; }
.top-support-link { font-family:inherit; cursor:pointer; }
.top-support-link img { width:16px; height:16px; }
.top-support-link strong { white-space:nowrap; }
.top-support-link:hover,.top-support-link:focus-visible { transform:translateY(-1px); background:linear-gradient(120deg,#fff,#e0f0d7); box-shadow:0 7px 18px rgba(23,88,57,.14); }
.patient-support-button { display:inline-flex; align-items:center; flex-wrap:wrap; gap:7px 12px; padding:14px 20px; border-radius:14px; }
.patient-support-button { font-family:inherit; cursor:pointer; }
.support-dialog-open { overflow:hidden; }
.support-dialog-backdrop { position:fixed; z-index:1000; inset:0; display:grid; place-items:center; overflow-y:auto; padding:24px; background:rgba(13,36,28,.56); backdrop-filter:blur(8px); }
.support-dialog-backdrop[hidden] { display:none; }
.support-dialog { position:relative; width:min(880px,100%); max-height:min(90vh,900px); overflow-y:auto; padding:clamp(26px,4vw,44px); border:1px solid #e1ebe3; border-radius:28px; background:linear-gradient(140deg,#fff 0%,#f6faf6 100%); box-shadow:0 28px 90px rgba(6,34,22,.28); }
.support-dialog-close { position:absolute; top:16px; right:16px; display:grid; place-items:center; width:42px; height:42px; border:1px solid #dce8df; border-radius:50%; color:#174534; background:#fff; font-size:28px; line-height:1; cursor:pointer; transition:background .2s ease,transform .2s ease; }
.support-dialog-close:hover { transform:rotate(90deg); background:#edf6ed; }
.support-dialog-kicker { margin:0 0 9px; color:#39815c; font-size:11px; font-weight:800; letter-spacing:.14em; }
.support-dialog h2 { max-width:710px; margin:0 52px 12px 0; color:#173f31; font-size:clamp(25px,3.5vw,38px); line-height:1.15; }
.support-dialog-lead { max-width:750px; margin:0; color:#576c61; font-size:15px; line-height:1.7; }
.support-dialog-people { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:27px 0 20px; }
.support-person-card { min-width:0; overflow:hidden; border:1px solid #dce8de; border-radius:18px; background:#fff; box-shadow:0 10px 28px rgba(18,64,43,.06); }
.support-person-photo { display:grid; place-items:center; aspect-ratio:4/4.5; overflow:hidden; color:#fff; background:linear-gradient(145deg,#c9ddca,#7eb092 56%,#195e44); }
.support-person-photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 24%; }
.support-person-photo span { display:grid; place-items:center; width:72px; height:72px; border:1px solid rgba(255,255,255,.7); border-radius:50%; background:rgba(255,255,255,.16); font-size:20px; font-weight:800; }
.support-person-copy { padding:16px; }
.support-person-copy h3 { margin:0 0 7px; color:#173f31; font-size:16px; line-height:1.4; }
.support-person-copy p { margin:0; color:#61766a; font-size:13px; line-height:1.5; }
.support-dialog-note { margin:0; padding:14px 16px; border:1px solid #dceade; border-radius:14px; color:#426050; background:#f0f7ef; font-size:13px; line-height:1.55; }
@media(max-width:620px) { .support-dialog-backdrop { align-items:end; padding:10px; } .support-dialog { width:100%; max-height:calc(100dvh - 20px); padding:26px 17px 18px; border-radius:22px 22px 16px 16px; } .support-dialog-close { top:12px; right:12px; width:38px; height:38px; } .support-dialog h2 { margin-right:42px; font-size:24px; } .support-dialog-lead { font-size:14px; } .support-dialog-people { grid-template-columns:minmax(0,1fr); gap:10px; margin:20px 0 14px; } .support-person-card { display:grid; grid-template-columns:88px minmax(0,1fr); align-items:center; } .support-person-photo { aspect-ratio:1; } .support-person-photo span { width:46px; height:46px; font-size:15px; } .support-person-copy { padding:12px; } .support-person-copy h3 { font-size:14px; } .support-person-copy p { font-size:12px; } }
@media(max-width:1050px) { .clinic-facts-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) { .clinic-facts-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .clinic-fact-card { min-height:130px; padding:14px; } .branch-facility-columns { grid-template-columns:minmax(0,1fr); gap:13px; } .branch-facility-columns > section,.branch-info-section { padding:17px; } .specialty-list { grid-template-columns:minmax(0,1fr); } .legal-entity-card { grid-template-columns:minmax(0,1fr); gap:7px; padding:17px; } .legal-entity-card small,.legal-entity-card p { grid-column:auto; } .nurse-functions summary { padding:16px 17px; } .nurse-functions ul { margin:15px 17px; } .nurse-functions > p { margin:0 17px 17px; } }
@media(max-width:380px) { .clinic-facts-grid { grid-template-columns:minmax(0,1fr); } .clinic-fact-card { min-height:0; grid-template-columns:36px 1fr; align-items:center; column-gap:11px; } .clinic-fact-card strong,.clinic-fact-card > span:last-of-type,.clinic-fact-card small { grid-column:2; } .clinic-fact-icon { grid-row:1/4; } }

/* Public licenses and diagnostic equipment */
.license-documents { margin:30px 0; }
.license-documents h2 { margin:0; color:#173f30; font-size:clamp(24px,2.6vw,34px); }
.license-document-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; margin-top:17px; }
.license-document-card { display:grid; grid-template-columns:42px minmax(0,1fr); align-items:center; gap:7px 13px; min-width:0; padding:17px; border:1px solid #dce9df; border-radius:17px; color:#25473a; background:linear-gradient(135deg,#fff,#f6faf6); text-decoration:none; box-shadow:0 8px 21px rgba(20,64,44,.045); transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,background .22s ease; }
.license-document-card:hover,.license-document-card:focus-visible { transform:translateY(-2px); border-color:#a8cdae; background:linear-gradient(135deg,#fff,#f1f8ed); box-shadow:0 13px 28px rgba(20,64,44,.09); outline:none; }
.license-document-card[hidden] { display:none !important; }
.license-document-icon { display:grid; place-items:center; grid-row:span 2; width:42px; height:46px; border:1px solid #cfe2d2; border-radius:12px; color:#176a4b; background:#edf6e9; font-size:11px; font-weight:900; letter-spacing:.04em; }
.license-document-card > span:nth-child(2) { display:grid; gap:5px; min-width:0; }
.license-document-card strong { color:#183e30; font-size:15px; line-height:1.35; }
.license-document-card small { color:#61746a; font-size:12px; line-height:1.5; }
.license-open { grid-column:2; color:#176b4b; font-size:12px; font-weight:800; }
.equipment-section { display:grid; gap:14px; }
.equipment-section > h3 { margin:10px 0 0; color:#173f30; font-size:clamp(22px,2.4vw,30px); }
.equipment-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.equipment-groups > article { min-width:0; padding:19px; border:1px solid #dfeae2; border-radius:17px; background:linear-gradient(145deg,#fff,#f8fbf8); }
.equipment-groups h4 { margin:0 0 10px; color:#176b4b; font-size:16px; }
.equipment-groups ul { display:grid; gap:8px; margin:0; padding-left:19px; color:#586d62; font-size:13px; line-height:1.55; }
.equipment-note { margin:0; color:#728178; font-size:12px; line-height:1.5; }
@media(max-width:700px) { .license-document-grid,.equipment-groups { grid-template-columns:minmax(0,1fr); } .license-document-card { padding:15px; } }
.equipment-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.equipment-gallery figure { min-width:0; margin:0; overflow:hidden; border:1px solid #dfeae2; border-radius:15px; background:#f5f8f5; }
.equipment-gallery img { display:block; width:100%; aspect-ratio:1.45/1; padding:8px; object-fit:contain; background:#f5f8f5; }
.equipment-gallery figcaption { min-height:42px; padding:9px 11px; color:#50675c; background:#fff; font-size:12px; font-weight:700; line-height:1.35; }
@media(max-width:700px) { .equipment-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; } .equipment-gallery figcaption { font-size:11px; } }
@media(max-width:360px) { .equipment-gallery { grid-template-columns:minmax(0,1fr); } }


/* Patient care algorithm and branch leadership */
.care-algorithm { margin: clamp(34px,5vw,68px) 0 8px; padding: clamp(22px,4vw,42px); border: 1px solid #dce9df; border-radius: 24px; background: linear-gradient(145deg,#f8fbf8,#eef6ef); }
.care-algorithm .section-title-row { margin-bottom: 24px; }
.care-algorithm h2 { max-width: 780px; margin: 5px 0 0; color: #123f32; font-size: clamp(26px,3vw,38px); line-height: 1.15; }
.care-steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: care; }
.care-steps li { min-width: 0; padding: 18px 16px 20px; border: 1px solid #dae8dd; border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 8px 24px rgba(20,71,49,.045); }
.care-step-number { display: inline-grid; width: 36px; height: 36px; place-items: center; margin-bottom: 14px; border-radius: 12px; color: #fff; background: linear-gradient(135deg,#0e6045,#368957); font-weight: 800; font-size: 12px; }
.care-steps h3 { margin: 0 0 9px; color: #143f32; font-size: 17px; line-height: 1.3; }
.care-steps p { margin: 0 0 12px; color: #587066; font-size: 14px; line-height: 1.6; }
.care-steps a,.care-algorithm-source a { color: #176a49; font-size: 13px; font-weight: 800; text-decoration: underline; text-decoration-color: #a9cbb2; text-underline-offset: 3px; }
.care-step-links { display: grid; gap: 7px; }
.care-algorithm-source { margin: 20px 0 0; color: #657b71; font-size: 12px; }
.branch-leadership { margin: 46px 0 12px; }
.branch-leadership-heading { margin-bottom: 22px; }
.branch-leadership-heading h2 { margin: 4px 0 8px; color: #143f32; font-size: clamp(26px,3vw,38px); }
.branch-leadership-heading p:last-child { margin: 0; color: #63786e; }
.branch-leadership-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.branch-staff-card { overflow: hidden; min-width: 0; border: 1px solid #dce7de; border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(13,62,42,.06); }
.branch-staff-card img { display: block; width: 100%; height: 240px; object-fit: cover; object-position: center 28%; background: #f5f6f2; }
.branch-staff-card > div { min-height: 64px; display: flex; align-items: center; padding: 12px 14px; color: #174534; font-size: 14px; line-height: 1.4; }
.about-page-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
@media(max-width:1050px) { .care-steps { grid-template-columns:repeat(2,minmax(0,1fr)); } .branch-leadership-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:620px) { .care-algorithm { padding:21px 16px; border-radius:18px; } .care-steps { grid-template-columns:minmax(0,1fr); gap:10px; } .care-steps li { display:grid; grid-template-columns:38px minmax(0,1fr); gap:0 12px; padding:15px; } .care-step-number { grid-row:1 / span 3; margin:0; } .care-steps h3 { font-size:16px; } .care-steps p { font-size:14px; } .branch-leadership-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .branch-staff-card img { height:clamp(180px,58vw,270px); } .branch-staff-card > div { padding:10px; font-size:13px; } }
@media(max-width:360px) { .branch-leadership-grid { grid-template-columns:minmax(0,1fr); } .branch-staff-card { display:grid; grid-template-columns:115px minmax(0,1fr); align-items:center; } .branch-staff-card img { width:115px; height:135px; } }


[data-branch-equipment-link][hidden] { display:none !important; }
@media(min-width:1051px) { .branch-leadership-grid-profsoyuznaya { grid-template-columns:repeat(4,minmax(0,1fr)); } }

/* Confirmed specialist roster for the Erjanova clinical diagnostic department */
.clinical-specialist-roster { margin:48px 0 8px; padding:clamp(20px,3.5vw,36px); border:1px solid #dce9df; border-radius:24px; background:linear-gradient(140deg,#f7fbf7,#edf5ed); }
.clinical-roster-heading { margin-bottom:22px; }
.clinical-roster-heading h2 { margin:4px 0 8px; color:#143f32; font-size:clamp(25px,3vw,36px); line-height:1.2; }
.clinical-roster-heading p:last-child { margin:0; color:#63786e; }
.clinical-roster-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.clinical-roster-card { display:flex; min-width:0; min-height:76px; flex-direction:column; justify-content:space-between; gap:9px; padding:15px; border:1px solid #dce8de; border-radius:15px; color:#183f31; background:rgba(255,255,255,.88); text-decoration:none; transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease,background .2s ease; }
.clinical-roster-card span { font-size:15px; font-weight:750; line-height:1.35; }
.clinical-roster-card small { color:#27754f; font-size:12px; font-weight:800; }
.clinical-roster-card:hover,.clinical-roster-card:focus-visible { transform:translateY(-2px); border-color:#9ac5a5; background:#fff; box-shadow:0 10px 24px rgba(17,82,55,.09); }
@media(max-width:900px) { .clinical-roster-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:620px) { .clinical-specialist-roster { margin-top:32px; padding:20px 15px; border-radius:18px; } .clinical-roster-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } .clinical-roster-card { min-height:72px; padding:12px; } .clinical-roster-card span { font-size:14px; } }
@media(max-width:350px) { .clinical-roster-grid { grid-template-columns:minmax(0,1fr); } }

/* Patient information pages: legal guidance, medication access, attachment and support */
.patient-section-nav { display:flex; flex-wrap:wrap; gap:10px; margin:24px 0 34px; padding:14px; border:1px solid #e0ebe1; border-radius:18px; background:#f7faf7; }
.patient-section-nav a,.patient-official-link { display:inline-flex; align-items:center; min-height:42px; padding:10px 15px; border:1px solid #d8e6da; border-radius:12px; color:#14553e; background:#fff; font-weight:700; text-decoration:none; transition:background .2s ease,border-color .2s ease,transform .2s ease; }
.patient-section-nav a:hover,.patient-official-link:hover { transform:translateY(-1px); border-color:#94c29c; background:#edf6eb; }
.patient-info-section { scroll-margin-top:120px; margin:30px 0; padding:clamp(22px,3vw,36px); border:1px solid #e1ebe3; border-radius:24px; background:linear-gradient(145deg,#fff,#f8fbf8); box-shadow:0 12px 34px rgba(18,64,43,.045); color:#40584b; }
.patient-info-section h2 { margin:0; color:#173f31; font-size:clamp(25px,3vw,36px); line-height:1.2; }
.patient-section-lead { max-width:920px; color:#344f41; font-size:17px; line-height:1.75; }
.patient-info-list { display:grid; gap:12px; padding-left:22px; line-height:1.7; }
.patient-info-list li::marker { color:#39815c; font-weight:800; }
.patient-info-steps { padding-left:27px; }
.patient-official-link { margin-top:10px; }
.patient-link-row { display:flex; flex-wrap:wrap; gap:10px; }
.patient-fact-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:22px 0; }
.patient-fact-grid article { display:flex; flex-direction:column; gap:8px; min-height:106px; padding:18px; border:1px solid #dce9dc; border-radius:16px; background:linear-gradient(135deg,#f0f8ec,#fff); }
.patient-fact-grid strong { color:#176246; font-size:22px; }
.patient-fact-grid span { color:#536a5c; line-height:1.5; }
.patient-note { padding:14px 16px; border-left:3px solid #8abf75; border-radius:0 12px 12px 0; color:#496253; background:#f1f7ef; line-height:1.65; }
.patient-support-info { border-color:#cee2d1; background:linear-gradient(140deg,#f7fbf7,#fff); }
.patient-support-callout { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:22px; padding:22px; border:1px solid #d7e7d8; border-radius:18px; background:#f2f8f1; }
.patient-support-callout h3 { margin:0 0 8px; color:#173f31; font-size:20px; }
.patient-support-callout p { line-height:1.65; }
.patient-support-callout a { color:#145c40; font-weight:800; white-space:nowrap; }
.patient-support-button { flex:0 0 auto; }
.support-person-photo { background:#f1f5f1; }
.support-person-photo img { display:block; width:100%; height:100%; object-fit:cover; }
@media(max-width:700px) { .patient-section-nav { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:10px; } .patient-section-nav a { justify-content:center; padding:9px; text-align:center; font-size:13px; } .patient-info-section { margin:20px 0; padding:20px 17px; border-radius:19px; } .patient-section-lead { font-size:15px; } .patient-fact-grid { grid-template-columns:1fr; gap:9px; } .patient-fact-grid article { min-height:0; } .patient-support-callout { align-items:stretch; flex-direction:column; padding:17px; } .patient-support-button { justify-content:center; width:100%; } .patient-link-row { flex-direction:column; } .patient-link-row .patient-official-link { width:100%; } }

/* Expanded branch-specific facility catalog */
.division-card .direction-name { max-width:calc(100% - 24px); font-size:clamp(16px,1.6vw,21px); line-height:1.2; }
.division-page-wrap { max-width:1240px; }
.division-page-heading { margin:0 0 24px; }
.division-page-heading h2 { margin:0 0 12px; color:#173f31; font-size:clamp(26px,3.2vw,40px); }
.division-page-intro { max-width:760px; color:#586d61; font-size:17px; line-height:1.7; }
.division-profile-panel { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin:24px 0; padding:clamp(20px,3vw,32px); border:1px solid #dce9df; border-radius:22px; background:linear-gradient(140deg,#fff,#f5faf5); }
.division-profile-panel h3 { margin:0 0 12px; color:#174632; font-size:21px; }
.division-profile-panel p,.division-profile-panel li { color:#52695c; line-height:1.7; }
.division-profile-panel ul { display:grid; gap:10px; padding-left:20px; }
.division-profile-panel li::marker { color:#2a855b; }
.division-profile-meta { display:flex; align-items:center; gap:9px; margin:0 0 16px; color:#26734f; font-weight:800; }
.division-profile-meta img { width:19px; height:19px; object-fit:contain; }
.division-access-note { grid-column:1/-1; margin:0; padding:16px 18px; border-radius:14px; color:#3d5b4b; background:#edf6eb; line-height:1.65; }
.division-unavailable { padding:20px; border:1px solid #e5e9e5; border-radius:18px; color:#4d6255; background:#f7f9f7; line-height:1.65; }
.division-unavailable strong { display:block; margin-bottom:6px; color:#173f31; font-size:18px; }
.support-dialog-contact { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:12px 0 0; color:#3f604e; font-weight:750; }
.support-dialog-contact a { color:#126144; font-weight:850; text-decoration:none; }
.support-dialog-contact a:hover { text-decoration:underline; }
@media(max-width:700px) { .division-profile-panel { grid-template-columns:minmax(0,1fr); gap:14px; padding:18px 16px; border-radius:18px; } .division-profile-panel h3 { font-size:18px; } .division-page-intro { font-size:15px; } .division-profile-meta { align-items:flex-start; font-size:14px; } .division-access-note { grid-column:auto; } .division-card .direction-name { font-size:16px; } }


/* Final type, image framing and mobile safety pass */
body, body * { font-family: "Noto Sans", Arial, sans-serif !important; }
body { font-size: 16px; line-height: 1.65; }
.page-lead, .hero-lead, .section-lead, .patient-section-lead, .page-card p, .direction-card p, .doctor-card p, .news-card p, .review-card p, .space-card-caption p, .doctor-profile-copy .doctor-bio { font-size: 16px !important; line-height: 1.65; }
.page-eyebrow, .card-index, .doctor-specialty, .top-hours, .footer-meta, .form-label, label { font-size: max(13px, 0.84em); line-height: 1.45; }
button, input, select, textarea, .button { font: inherit; font-size: 15px; }
.nav a { font-size: 14px; }
.page-hero-media img, .hero-photo img { object-fit: contain !important; object-position: center bottom !important; background: #edf4ef; }
.doctor-card img, .staff-card img, .doctor-profile-photo img { object-fit: cover; object-position: center 20%; }
img { max-width: 100%; }
html, body { max-width: 100%; overflow-x: clip; }
@media (max-width: 760px) { body { font-size: 16px; } .page-lead, .hero-lead, .section-lead, .patient-section-lead, .page-card p, .direction-card p, .doctor-card p, .news-card p, .review-card p, .space-card-caption p, .doctor-profile-copy .doctor-bio { font-size: 16px !important; } .doctor-card img, .staff-card img, .doctor-profile-photo img { object-position: center 16%; } }
@media (max-width: 380px) { body { font-size: 15.5px; } }


/* Shared header schedule and navigation typography */
.nav a, .nav button { font-size: 14px !important; line-height: 1.3; }
.top-hours { min-width: 0; max-width: 100%; font-size: 12px !important; line-height: 1.45; }
.top-hours span { display: block !important; white-space: nowrap; }
@media (max-width: 680px) {
  .top-hours { grid-template-columns: minmax(0,1fr) !important; gap: 2px; font-size: clamp(11px, 2.9vw, 13px) !important; }
  .top-hours b { font-size: 12px !important; }
  .top-hours span { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 380px) { .top-hours { font-size: 11px !important; } }

/* Screen 10: readable contact details on the home page */
@media (min-width: 761px) {
  .contact-lines p,
  .contact-lines p b,
  .contact-lines p a,
  .contact-lines a { font-size: 16px !important; line-height: 1.55; }
  .contact-lines > div > span { width: 30px; height: 30px; font-size: 16px; }
  .contact-left > .button { min-height: 46px; padding: 12px 20px; font-size: 15px !important; }
}
@media (max-width: 760px) {
  .contact-lines p,
  .contact-lines p b,
  .contact-lines p a,
  .contact-lines a { font-size: 14px !important; line-height: 1.5; }
  .contact-left > .button { min-height: 44px; padding: 11px 17px; font-size: 14px !important; }
}

/* Homepage hero media: keep the selected branch photo visible at every viewport */
body.branch-homepage .hero-photo { position: relative; width: 100%; height: auto; min-height: clamp(380px, 40vw, 560px); }
body.branch-homepage .hero-photo > img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-height: 0;
  padding: 0 !important; object-fit: cover !important; object-position: center 48% !important;
  background: transparent !important;
}
.page-hero-media { position: relative; min-width: 0; overflow: hidden; }
.page-hero-media > img { display: block; width: 100%; height: 100%; min-height: 250px; object-fit: cover !important; object-position: center 25% !important; background: #edf4ef; }

/* Specialist directory: fixed image frames prevent portrait collapse in the grid */
.doctors-grid { align-items: stretch; grid-auto-rows: 1fr; }
.doctors-grid > .doctor-card-link { display: block; height: auto; min-width: 0; min-height: 100%; }
.doctors-grid .doctor-card { display: flex; width: 100%; height: auto; min-height: 100%; flex-direction: column; }
.doctors-grid .doctor-card-photo {
  position: relative; display: block; width: 100%; height: clamp(220px, 24vw, 300px);
  min-height: 220px; flex: 0 0 auto; overflow: hidden; background: #e9f0eb;
}
.doctors-grid .doctor-card-photo > img {
  position: absolute; inset: 0; display: block !important; width: 100% !important; height: 100% !important;
  min-height: 0; object-fit: cover !important; object-position: center 22% !important; background: #e9f0eb;
}
.doctors-grid .doctor-card-body { display: flex; min-width: 0; flex: 1 0 auto; flex-direction: column; }
.doctors-grid .doctor-card-body h2 { overflow-wrap: anywhere; }
.doctors-grid .doctor-card-body p { min-height: 0; }
@media (max-width: 760px) {
  body.branch-homepage .hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  body.branch-homepage .hero-photo { width: 100%; height: clamp(250px, 68vw, 340px); min-height: clamp(250px, 68vw, 340px); }
  .page-hero-media { height: clamp(230px, 64vw, 330px); min-height: 0; }
  .page-hero-media > img { min-height: 0; }
  .doctors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .doctors-grid .doctor-card-photo { height: clamp(210px, 34vw, 270px); min-height: 210px; }
}
@media (max-width: 560px) {
  .doctors-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .doctors-grid .doctor-card-photo { height: clamp(250px, 72vw, 330px); min-height: 250px; }
}
@media (max-width: 360px) {
  body.branch-homepage .hero-photo { height: 250px; min-height: 250px; }
  .doctors-grid .doctor-card-photo { height: 250px; min-height: 250px; }
}

/* Mobile specialist directory uses the same touch carousel pattern as the homepage. */
.doctor-directory-carousel-nav { display:none; }
@media (max-width:760px) {
  .doctor-directory-carousel-nav:not([hidden]) { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:16px 0 12px; }
  .doctor-directory-control { display:inline-flex; min-height:42px; align-items:center; justify-content:center; gap:8px; padding:8px 13px; border:1px solid #d8e7dc; border-radius:999px; color:#17513a; background:#fff; box-shadow:0 6px 16px rgba(19,72,48,.07); font:inherit; font-size:12px; font-weight:750; cursor:pointer; }
  .doctor-directory-control > span[aria-hidden="true"] { color:#208557; font-size:19px; line-height:1; }
  .doctor-directory-control:disabled { opacity:.45; cursor:default; }
  .doctor-directory-position { min-width:48px; color:#61776b; font-size:12px; font-weight:800; text-align:center; }
  .doctors-grid { display:flex !important; width:100%; min-width:0; grid-template-columns:none !important; grid-auto-columns:unset !important; grid-auto-flow:unset !important; grid-auto-rows:unset !important; align-items:stretch; gap:14px; overflow-x:auto; overflow-y:hidden; padding:4px 3px 18px; scroll-snap-type:x mandatory; overscroll-behavior-inline:contain; scrollbar-width:thin; scrollbar-color:#8eb49a transparent; -webkit-overflow-scrolling:touch; }
  .doctors-grid > .doctor-card-link { display:flex !important; width:min(86%,370px); min-width:min(86%,370px); max-width:min(86%,370px); height:auto !important; min-height:0 !important; align-self:stretch; flex:0 0 min(86%,370px); scroll-snap-align:start; }
  .doctors-grid > .doctor-card-link[hidden] { display:none !important; }
  .doctors-grid .doctor-card { display:flex !important; width:100%; min-height:0 !important; height:auto !important; flex:1 0 auto; flex-direction:column; overflow:hidden; }
  .doctors-grid .doctor-card-photo { position:relative !important; display:block !important; width:100% !important; height:clamp(230px,68vw,285px) !important; min-height:230px !important; max-height:285px; flex:0 0 clamp(230px,68vw,285px) !important; overflow:hidden; }
  .doctors-grid .doctor-card-photo > img { position:absolute !important; inset:0 !important; display:block !important; width:100% !important; height:100% !important; min-height:0 !important; max-height:none !important; object-fit:cover !important; object-position:center 22% !important; }
  .doctors-grid .doctor-card-body { min-height:0; flex:1 0 auto; }
}
@media (max-width:360px) {
  .doctors-grid > .doctor-card-link { width:88%; min-width:88%; max-width:88%; flex-basis:88%; }
  .doctors-grid .doctor-card-photo { height:240px !important; min-height:240px !important; flex-basis:240px !important; }
}

/* OSMS infographic: high-resolution source slides remain available in a responsive gallery. */
.osms-infographic-section { width:min(1320px,calc(100% - 48px)); margin:clamp(42px,6vw,78px) auto; padding:clamp(22px,4vw,42px); border:1px solid #dce9df; border-radius:26px; background:linear-gradient(145deg,#f4f8f4,#fff 65%,#edf5ee); box-shadow:0 16px 42px rgba(20,68,45,.07); }
.osms-infographic-heading { max-width:800px; margin:0 auto 28px; text-align:center; }
.osms-infographic-heading h2 { margin:8px 0 10px; color:#173f32; font-size:clamp(25px,3vw,38px); line-height:1.18; }
.osms-infographic-heading p:last-child { margin:0; color:#5d7167; font-size:16px; line-height:1.7; }
.osms-infographic-cover { width:min(390px,100%); margin:0 auto 22px; overflow:hidden; border:1px solid #dce7de; border-radius:18px; background:#fff; box-shadow:0 12px 28px rgba(17,57,39,.1); }
.osms-infographic-cover a,.osms-infographic-slide a { display:block; }
.osms-infographic-cover img,.osms-infographic-slide img { display:block; width:100%; height:auto; }
.osms-infographic-cover figcaption,.osms-infographic-slide figcaption { padding:11px 14px; color:#23533c; background:#fff; font-size:13px; font-weight:750; }
.osms-infographic-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.osms-infographic-slide { min-width:0; margin:0; overflow:hidden; border:1px solid #dce7de; border-radius:16px; background:#fff; box-shadow:0 8px 22px rgba(17,57,39,.07); }
.osms-infographic-slide img { transition:transform .35s ease; }
.osms-infographic-slide a:hover img,.osms-infographic-slide a:focus-visible img { transform:scale(1.025); }
.osms-infographic-hint { margin:16px 0 0; color:#6e8076; font-size:12px; text-align:center; }
@media (max-width:760px) {
  .osms-infographic-section { width:calc(100% - 28px); padding:22px 16px; border-radius:20px; }
  .osms-infographic-heading { margin-bottom:20px; }
  .osms-infographic-heading p:last-child { font-size:14px; }
  .osms-infographic-cover { width:min(330px,100%); }
  .osms-infographic-gallery { display:flex; gap:13px; max-width:100%; overflow-x:auto; padding:2px 1px 14px; scroll-snap-type:x mandatory; overscroll-behavior-inline:contain; scrollbar-width:thin; -webkit-overflow-scrolling:touch; }
  .osms-infographic-slide { flex:0 0 min(82vw,340px); scroll-snap-align:start; }
}
@media (prefers-reduced-motion:reduce) { .osms-infographic-slide img { transition:none; } }

/* Always expose the complete doctor identity and profile action in the mobile carousel. */
@media (max-width:760px) {
  .doctors-grid .doctor-card-body { display:flex !important; width:100%; height:auto !important; min-height:0 !important; flex:0 0 auto !important; flex-direction:column; gap:0; overflow:visible !important; padding:18px 18px 20px !important; color:#234638 !important; background:#fff !important; opacity:1 !important; visibility:visible !important; }
  .doctors-grid .doctor-card-body > .doctor-specialty { display:block !important; min-height:0; margin:0 0 5px; color:#267950 !important; font-size:13px !important; font-weight:800 !important; line-height:1.4; opacity:1 !important; visibility:visible !important; }
  .doctors-grid .doctor-card-body > h2 { display:block !important; min-height:0 !important; height:auto !important; margin:0 0 9px !important; color:#183d30 !important; font-size:clamp(19px,5vw,23px) !important; font-weight:800 !important; line-height:1.25 !important; opacity:1 !important; visibility:visible !important; }
  .doctors-grid .doctor-card-body > p { display:block !important; min-height:0 !important; height:auto !important; margin:0 0 12px !important; overflow:visible !important; color:#586b61 !important; font-size:14px !important; line-height:1.55 !important; opacity:1 !important; visibility:visible !important; }
  .doctors-grid .doctor-card-meta { display:flex !important; width:100%; min-height:34px; align-items:center !important; justify-content:space-between; flex-wrap:wrap; gap:7px 10px; margin:0 !important; color:#446455 !important; font-size:13px !important; line-height:1.4; opacity:1 !important; visibility:visible !important; }
  .doctors-grid .doctor-card-meta > span { display:inline-block !important; color:#446455 !important; font-weight:700 !important; }
  .doctors-grid .doctor-card-meta > strong { display:inline-block !important; color:#21734c !important; font-size:12px !important; font-weight:800 !important; }
  .doctors-grid .doctor-card-body > .doctor-card-cta { display:inline-flex !important; min-height:42px; align-items:center; align-self:flex-start; justify-content:center; margin:13px 0 0 !important; padding:10px 15px; border:1px solid #cfe2d4; border-radius:999px; color:#176747 !important; background:#f2f8f3 !important; font-size:13px !important; font-weight:800 !important; line-height:1.2; opacity:1 !important; visibility:visible !important; }
}

/* Specialist cards: keep the identity panel in normal flow at every viewport. */
.doctors-grid > .doctor-card-link > .doctor-card {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.doctors-grid > .doctor-card-link > .doctor-card > .doctor-card-body {
  display: block !important;
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 18px 18px 20px !important;
  overflow: visible !important;
  transform: none !important;
  color: #234638 !important;
  background: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.doctors-grid > .doctor-card-link > .doctor-card > .doctor-card-body > .doctor-specialty,
.doctors-grid > .doctor-card-link > .doctor-card > .doctor-card-body > h2,
.doctors-grid > .doctor-card-link > .doctor-card > .doctor-card-body > p,
.doctors-grid > .doctor-card-link > .doctor-card > .doctor-card-body > .doctor-card-meta,
.doctors-grid > .doctor-card-link > .doctor-card > .doctor-card-body > .doctor-card-cta {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.doctors-grid > .doctor-card-link > .doctor-card > .doctor-card-body > h2 {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 9px !important;
  color: #183d30 !important;
  font-size: clamp(20px, 2vw, 24px) !important;
  line-height: 1.28 !important;
  overflow-wrap: anywhere;
}
.doctors-grid > .doctor-card-link > .doctor-card > .doctor-card-body > p {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 12px !important;
  overflow: visible !important;
  color: #586b61 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}
@media (max-width: 760px) {
  .doctors-grid > .doctor-card-link > .doctor-card > .doctor-card-body {
    padding: 17px 16px 19px !important;
  }
  .doctors-grid > .doctor-card-link > .doctor-card > .doctor-card-body > .doctor-specialty {
    display: block !important;
    margin: 0 0 6px !important;
    color: #267950 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
  }
  .doctors-grid > .doctor-card-link > .doctor-card > .doctor-card-body > h2 {
    font-size: clamp(19px, 5vw, 23px) !important;
  }
  .doctors-grid > .doctor-card-link > .doctor-card > .doctor-card-body > p {
    font-size: 14px !important;
  }
  .doctors-grid > .doctor-card-link > .doctor-card > .doctor-card-body > .doctor-card-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 7px 10px;
    align-items: center;
  }
  .doctors-grid > .doctor-card-link > .doctor-card > .doctor-card-body > .doctor-card-cta {
    display: inline-flex !important;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin-top: 13px;
  }
}

.branch-profile-schedule { grid-column: 1 / -1; }
.branch-profile-schedule-note { margin: 14px 0 8px; color: #65796d; line-height: 1.6; }
.branch-profile-registry { margin: 0; color: #284c3b; line-height: 1.8; overflow-wrap: anywhere; }
.branch-profile-registry a { color: #176747; font-weight: 800; text-decoration: none; }
.branch-profile-registry a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .branch-profile-schedule { grid-column: 1; }
  .branch-profile-schedule .doctor-schedule-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .doctor-profile-meta { align-items: flex-start; }
  .doctor-profile-meta > span { max-width: 100%; overflow-wrap: anywhere; }
}


/* Mobile specialist carousel: preserve the complete identity and profile action inside each card. */
@media (max-width:760px) {
  #doctorsGrid.doctors-grid { display:flex !important; width:100%; height:auto !important; min-height:0 !important; max-width:100%; align-items:stretch !important; gap:14px; overflow-x:auto !important; overflow-y:visible !important; padding:4px 3px 18px; scroll-snap-type:x mandatory; overscroll-behavior-inline:contain; -webkit-overflow-scrolling:touch; }
  #doctorsGrid.doctors-grid > .doctor-card-link { display:flex !important; flex:0 0 min(86%,370px) !important; width:min(86%,370px) !important; min-width:min(86%,370px) !important; max-width:min(86%,370px) !important; height:auto !important; min-height:0 !important; align-self:stretch; scroll-snap-align:start; }
  #doctorsGrid .doctor-card { display:flex !important; flex:1 0 auto !important; flex-direction:column !important; width:100% !important; height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; }
  #doctorsGrid .doctor-card-photo { display:block !important; position:relative !important; flex:0 0 clamp(230px,68vw,285px) !important; width:100% !important; height:clamp(230px,68vw,285px) !important; min-height:230px !important; max-height:285px !important; overflow:hidden !important; }
  #doctorsGrid .doctor-card-photo > img { display:block !important; position:absolute !important; inset:0 !important; width:100% !important; height:100% !important; object-fit:cover !important; object-position:center 22% !important; }
  #doctorsGrid .doctor-card-body { display:flex !important; position:static !important; inset:auto !important; flex:0 0 auto !important; flex-direction:column !important; width:100% !important; height:auto !important; min-height:0 !important; max-height:none !important; margin:0 !important; padding:17px 16px 19px !important; overflow:visible !important; color:#234638 !important; background:#fff !important; opacity:1 !important; visibility:visible !important; transform:none !important; }
  #doctorsGrid .doctor-card-body > .doctor-specialty { display:block !important; margin:0 0 6px !important; color:#267950 !important; font-size:13px !important; font-weight:800 !important; line-height:1.4 !important; opacity:1 !important; visibility:visible !important; }
  #doctorsGrid .doctor-card-body > h2 { display:block !important; width:100% !important; height:auto !important; min-height:0 !important; margin:0 0 9px !important; color:#183d30 !important; font-size:clamp(19px,5vw,23px) !important; line-height:1.25 !important; overflow-wrap:anywhere; opacity:1 !important; visibility:visible !important; }
  #doctorsGrid .doctor-card-body > p { display:block !important; width:100% !important; height:auto !important; min-height:0 !important; margin:0 0 12px !important; overflow:visible !important; color:#586b61 !important; font-size:14px !important; line-height:1.55 !important; opacity:1 !important; visibility:visible !important; }
  #doctorsGrid .doctor-card-meta { display:flex !important; width:100% !important; min-height:34px; align-items:center !important; justify-content:space-between; flex-wrap:wrap; gap:7px 10px; margin:0 !important; color:#446455 !important; font-size:13px !important; line-height:1.4 !important; opacity:1 !important; visibility:visible !important; }
  #doctorsGrid .doctor-card-meta > span, #doctorsGrid .doctor-card-meta > strong { display:inline-block !important; }
  #doctorsGrid .doctor-card-cta { display:inline-flex !important; min-height:42px; align-items:center; align-self:flex-start; justify-content:center; margin:13px 0 0 !important; padding:10px 15px; border:1px solid #cfe2d4; border-radius:999px; color:#176747 !important; background:#f2f8f3 !important; font-size:13px !important; font-weight:800 !important; line-height:1.2 !important; opacity:1 !important; visibility:visible !important; }
  /* Keep branch-filtered specialists hidden in the mobile carousel as well. */
  #doctorsGrid.doctors-grid > .doctor-card-link[hidden] { display:none !important; }
}
