/* Batch 44: common, patient-facing specialty page composition. */


.specialty-detail { background: #fbfdfc; }


.specialty-detail__hero { background: linear-gradient(125deg,#edf5f2,#f7fbf9); padding: clamp(1rem,3vw,1.75rem) clamp(1rem,4vw,3rem) 0; border-bottom: 1px solid #ccdfda; }


.specialty-detail .care-container { width: min(100%,75rem); max-width: 75rem; margin-inline: auto; min-width: 0; }


.specialty-detail__hero-layout { display:grid; grid-template-columns: minmax(0,1.45fr) minmax(0,.7fr); align-items:center; gap:clamp(1rem,5vw,4rem); padding-block:clamp(1.6rem,4vw,3.25rem); }


.specialty-detail__hero h1 {    color:#174b50; margin:0 0 1rem;  }


.specialty-detail__lead {  color:#405c5e; margin:0 0 1.5rem; max-width:48ch; }


.specialty-detail__art { display:block; width:100%; height:auto; max-width:320px; max-height:210px; object-fit:contain; justify-self:center; }


.specialty-detail__text-link { display:inline-flex; gap:.35em; align-items:center; min-height:44px;  color:#175358; text-underline-offset:4px; }


.specialty-detail__shortcuts { display:flex; flex-wrap:wrap; gap:.5rem 1.5rem; border-top:1px solid #ccdfda; padding-block:.8rem; }


.specialty-detail__shortcuts a { display:inline-flex; align-items:center; min-height:44px; color:#174b50;  text-underline-offset:.25em; }


.specialty-detail__content { padding:clamp(2rem,5vw,4rem) clamp(1rem,4vw,3rem); }


.specialty-detail__section { padding:clamp(1.5rem,3.2vw,2.75rem) 0; border-bottom:1px solid #dce9e4; }


.specialty-detail__section:first-child { padding-top:0; }


.specialty-detail__section:last-child { border-bottom:0; }


.specialty-detail__section-head { max-width:57rem; margin-bottom:1.5rem; }


.specialty-detail__section-head h2 { margin:0 0 .7rem;   color:#174b50; }


.specialty-detail__section-head p:last-child { margin:0; color:#405c5e; }


.specialty-detail__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(.875rem,2vw,1.5rem); }


.specialty-detail__surface { min-width:0; padding:clamp(1.2rem,3vw,1.9rem); background:#fff; border:1px solid #ccdfda; border-radius:1.125rem; box-shadow:0 8px 26px rgba(23,75,80,.045); }


.specialty-detail__surface h3 { margin:0 0 .65rem;   color:#174b50; }


.specialty-detail__surface p { margin:0; color:#405c5e; }

.specialty-detail :is(.specialty-detail__section-head, .specialty-detail__surface) p a {
    color: #174b50;
}

.specialty-detail__surface img { display:block; width:56px; height:56px; object-fit:contain; margin-bottom:.75rem; }


.specialty-detail__surface--nfz { background:#f2f8f5; }


.specialty-detail__surface--paid { background:#fffdf7; }


.specialty-detail__related { background:#edf5f2; padding:clamp(2rem,5vw,4rem) clamp(1rem,4vw,3rem); }


.specialty-detail__related-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap:.75rem; list-style:none; padding:0; margin:0; }


.specialty-detail__related-list li { min-width:0; }


.specialty-detail__related-list a { display:flex; justify-content:space-between; align-items:center; min-height:50px; padding:.85rem 1rem; gap:.5rem; background:#fff; border:1px solid #ccdfda; border-radius:8px; color:#175358;  text-decoration:none;  }


.specialty-detail__related-list a:hover, .specialty-detail__related-list a:focus-visible { border-color:#286e73; text-decoration:underline; text-underline-offset:4px; }


.specialty-detail :is(a,button):focus-visible { outline:3px solid #8a4b00; outline-offset:3px; }


.specialty-detail__footer .site-footer__info { gap:2rem; }


.specialty-detail__footer .site-footer__links { display:flex; flex-direction:column; align-items:flex-start; gap:.35rem; min-width:0; }


.specialty-detail__footer .site-footer__links h3 { flex-basis:auto; }


.specialty-detail__footer .site-footer__links a { min-height:44px; border:0; padding:0; }


.specialty-detail__footer .site-footer__bottom { gap:1rem; }


@media (max-width:767px) {
 
.specialty-detail__hero-layout { grid-template-columns:minmax(0,1fr); }

 
.specialty-detail__art { width:min(65%,240px); max-height:140px; justify-self:start; }

 
.specialty-detail__grid { grid-template-columns:minmax(0,1fr); }

}


@media (max-width:399px) { 
.specialty-detail__art { width:min(55%,180px); }
 }


@media (prefers-reduced-motion:reduce) { 
.specialty-detail * { scroll-behavior:auto !important; }
 }



/* Long footer links must not create two narrow minimum-content columns on phones. */


@media (max-width:599px) {
 
.specialty-detail__footer .site-footer__info { grid-template-columns:minmax(0,1fr); }

 
.specialty-detail__footer .site-footer__links { min-width:0; }

 
.specialty-detail__footer .site-footer__links a { min-width:0;  }

}



/* Text-enlargement reflow: keep the content column usable at 400% CSS root size.
   Rem-scaled interior padding must never consume all available glyph width. */


@media (max-width:767px) {
 
.specialty-detail__hero { padding-inline:min(1rem,16px); }

 
.specialty-detail__content { padding-inline:min(1rem,16px); }

 
.specialty-detail__related { padding-inline:min(1rem,16px); }

 
.specialty-detail__surface { padding:min(1.2rem,20px); border-radius:min(1.125rem,18px); }

 
.specialty-detail__shortcuts { gap:8px 16px; }

 
.specialty-detail__related-list { gap:min(.75rem,16px); }

 
.specialty-detail__hero h1, .specialty-detail__section-head h2, .specialty-detail__surface h3 {   }

}



/* Original source-backed schedules reflow without clipping or fixed-height containers. */


.specialty-schedule { display:grid;grid-template-columns:minmax(0,1fr);gap:16px; }


.specialty-schedule__group { min-width:0; }


.specialty-schedule__rows { list-style:none;padding:0;margin:0; }


.specialty-schedule__rows li { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:8px 16px;padding-block:12px;border-top:1px solid #ccdfda;align-items:start; }


.specialty-schedule__day { color:#174b50; }


.specialty-schedule__hours { color:#174b50; }


.specialty-schedule__staff,.specialty-schedule__type { min-width:0; }


.specialty-schedule__type { grid-column:1 / -1; }


@media(max-width:680px) {
 
.specialty-schedule__rows li { grid-template-columns:minmax(0,1fr);gap:3px; }

 
.specialty-schedule__type { grid-column:1; }

}

