/* Homepage refinements; deliberately isolated for a complete rollback. */
.home-page .home-service-strip{display:grid;grid-template-columns:1.4fr 1.2fr auto auto;gap:14px;align-items:center;background:#fff8ec;border:1px solid #e8d5b6;border-radius:12px;padding:12px 16px;margin-top:10px;margin-bottom:10px}
.home-service-strip>div{display:flex;align-items:center;gap:12px;min-width:0}
.home-service-strip>div>i{font-size:1.35rem;color:#a36518}
.home-service-strip p{margin:0;line-height:1.5}
.home-service-strip strong,.home-service-strip small{display:block}
.home-service-strip strong{font-size:.88rem;color:#173b68}
.home-service-strip small{font-size:.78rem;color:#596777}
.home-service-strip .btn{white-space:nowrap;font-size:.85rem;min-height:44px;display:flex;align-items:center;gap:12px}
.home-heritage-link{font-size:.85rem;font-weight:700;display:inline-flex;align-items:center;gap:12px;min-height:44px}
.home-page .home-photo-mosaic{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:repeat(3,1fr);gap:10px;height:360px}
.home-photo-mosaic>a{display:block;position:relative;min-height:0;overflow:hidden;border-radius:10px;background:#e8eff7}
.home-photo-mosaic>a:first-child{grid-row:1/-1}
.home-photo-mosaic img{width:100%;height:100%;object-fit:cover;display:block}
.home-photo-mosaic>a>span{position:absolute;inset:auto 0 0;padding:28px 12px 12px;background:linear-gradient(transparent,rgba(8,25,45,.88));color:#fff;font-size:.85rem;font-weight:700;line-height:1.4}
.home-photo-mosaic small{display:block;font-size:.75rem;font-weight:400;margin-top:4px}
.home-photo-mosaic>a:not(:first-child)>span{font-size:.7rem;padding:18px 8px 8px}
.home-photo-mosaic>a:not(:first-child) small{display:none}
.home-page .home-photo-count-1{grid-template-columns:1fr}
.home-page .home-photo-count-2{grid-template-rows:1fr}
.home-page .home-photo-count-3{grid-template-rows:repeat(2,1fr)}
.home-page .home-event-detail{align-items:start;padding:15px 0;gap:14px}
.home-event-detail>span{min-width:0}
.home-page .home-event-detail small{font-size:.82rem;line-height:1.55;margin-top:4px}
.home-event-detail>span>b{display:block}
.home-event-status{display:inline-block;font-size:.64rem;font-weight:800;font-style:normal;text-transform:uppercase;letter-spacing:.06em;color:#375779;background:#edf3fa;border-radius:4px;padding:3px 7px;margin-bottom:6px}
.home-event-status.is-ongoing{color:#8a4b08;background:#fff0d5}
.home-page .whats-new-section .home-update-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.home-page .whats-new-section .home-update-count-1{grid-template-columns:1fr}
.home-page .whats-new-section .home-update-count-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-page .whats-new-section .home-update-count-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.home-page .whats-new-section .home-update-columns>.update-column{grid-column:auto;border:0!important;margin:0;padding:0;min-width:0}
.home-page .home-update-columns .gallery-update-card{display:flow-root}
.home-update-thumbnail{float:left;width:120px;margin:0 16px 12px 0}
.home-update-thumbnail img{width:120px;height:90px;object-fit:cover;border-radius:8px}
.home-page .home-update-columns .gallery-update-dates{clear:both}
.home-page .home-update-columns .update-list strong{font-size:.95rem!important;line-height:1.5!important}
.home-page .home-update-columns .update-list small{font-size:.85rem!important;line-height:1.6!important}
.home-page .home-update-columns .gallery-update-dates a{min-height:44px;display:flex;align-items:center}
.home-page .home-update-columns .update-more{min-height:44px;font-size:.85rem}
.home-page main a:focus-visible{outline:3px solid #b86a11;outline-offset:3px}
@media(max-width:991.98px){
.home-page .home-service-strip{grid-template-columns:1fr 1fr}
.home-page .whats-new-section .home-update-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-page .whats-new-section .home-update-count-1{grid-template-columns:1fr}
}
@media(max-width:600px){
.home-page .home-service-strip{grid-template-columns:1fr;gap:10px;padding:12px}
.home-service-strip .btn{justify-content:center}
.home-page .legacy-section .section-head{flex-wrap:wrap;gap:8px}
.home-page .home-photo-mosaic{height:320px;gap:8px;grid-template-columns:1fr 1fr 1fr;grid-template-rows:220px 92px}
.home-photo-mosaic>a:first-child{grid-column:1/-1;grid-row:1}
.home-photo-mosaic>a:not(:first-child)>span{display:none}
.home-page .home-photo-count-1{grid-template-columns:1fr;grid-template-rows:1fr;height:260px}
.home-page .home-photo-count-2{grid-template-columns:1fr 1fr;grid-template-rows:1fr;height:260px}
.home-photo-count-2>a:first-child{grid-column:auto}
.home-page .home-photo-count-3{grid-template-columns:1fr 1fr}
.home-page .whats-new-section .home-update-columns{grid-template-columns:1fr;gap:26px}
.home-page .home-event-detail small{font-size:.88rem}
.home-page .home-update-columns .update-list strong{font-size:1rem!important}
.home-update-thumbnail{width:96px;margin-right:12px}
.home-update-thumbnail img{width:96px;height:80px}
}

@media (min-width:601px) and (max-width:991.98px){
.home-page .whats-new-section .home-update-count-4{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-page .whats-new-section .home-update-count-4>.update-column:last-child{grid-column:auto;border-top:0;margin-top:0;padding-top:0}
}
@media (max-width:600px){
.home-page .whats-new-section .home-update-count-4{grid-template-columns:1fr}
}

/* Compact homepage spacing while preserving readable content and tap targets. */
.home-page main>.home-section{padding-top:24px!important;padding-bottom:24px!important;margin-top:14px!important}
.home-page main>.about-cluster{padding:20px!important}
.home-page .about-cluster>.about{padding:22px 18px!important}
.home-page .about-cluster .home-services-section{padding:24px 18px!important;margin-top:16px!important}
.home-page .about-cluster .home-visit-section{margin-top:16px!important}
.home-page .home-wisdom-stage{padding:8px 0!important}
.home-page main>.soft,.home-page main>.whats-new-section{padding:24px 22px!important}
.home-page main .section-head{margin-bottom:18px}
.home-page .whats-new-section .section-head{padding-bottom:14px}
@media(max-width:767.98px){
.home-page main>.home-section{padding-top:18px!important;padding-bottom:18px!important;margin-top:10px!important}
.home-page main>.about-cluster{padding:12px!important}
.home-page .about-cluster>.about{padding:16px 10px!important}
.home-page .about-cluster .home-services-section{padding:18px 12px!important;margin-top:12px!important}
.home-page .about-cluster .home-visit-section{margin-top:12px!important}
.home-page main>.soft,.home-page main>.whats-new-section{padding:18px 14px!important}
.home-page main .section-head{margin-bottom:14px}
}

/* Distinguish practical clinic information from the warm Daily Wisdom panel. */
.home-page .home-service-strip{background:#edf4fc;border-color:#c7d8ec;border-left:4px solid #315f98}
.home-page .home-service-strip>div>i{color:#315f98}
.home-page .home-service-strip>div:nth-child(2) strong{font-size:1.12rem;line-height:1.45;font-weight:800}
.home-page .home-service-strip small{font-size:.84rem}
.home-page .visit-content{grid-template-columns:1fr}
.home-page .visit-note{width:100%}
.home-updates-empty{padding:4px 0 12px;color:#596777;font-size:.95rem;line-height:1.6}
.home-updates-empty a{display:inline-flex;align-items:center;min-height:44px;margin-right:24px;font-weight:700}
.home-photo-open{cursor:zoom-in}
.home-photo-viewer{border:0;border-radius:14px;background:#10263f;color:#fff;width:min(1100px,94vw);max-width:94vw;max-height:94dvh;padding:48px 20px 18px;overflow:auto}
.home-photo-viewer::backdrop{background:rgba(5,15,28,.88)}
.home-photo-viewer figure{margin:0;text-align:center}
.home-photo-viewer figure img{display:block;width:100%;height:65dvh;object-fit:contain}
.home-photo-viewer figcaption{font-size:.95rem;line-height:1.5;padding:12px 0}
.home-photo-viewer button,.home-photo-viewer .home-photo-controls a{border:1px solid #6c819b;background:#203e61;color:#fff;border-radius:7px;min-height:44px;padding:8px 14px;font:inherit;text-decoration:none}
.home-photo-viewer .home-photo-close{position:absolute;top:8px;right:10px;width:44px;font-size:1.5rem;line-height:1;padding:0}
.home-photo-controls{display:flex;align-items:center;justify-content:space-between;gap:10px}
.home-photo-viewer [hidden]{display:none}
.home-photo-viewer :focus-visible{outline:3px solid #f0b94f;outline-offset:3px}
@media(max-width:600px){.home-photo-viewer{padding:54px 12px 14px}.home-photo-viewer figure img{height:55dvh}.home-photo-controls{flex-wrap:wrap;justify-content:center}.home-photo-controls button,.home-photo-controls a{font-size:.85rem}}

/* A quiet, swipeable selection of 2026 photographs; no modal or photo links. */
.home-strip-hint{color:#596777;font-size:.84rem;margin:0 0 12px}
.home-page .split>.panel{min-width:0}
.home-photo-strip{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x proximity;padding:0 0 14px;scrollbar-color:#6985a7 #e8eff7}
.home-photo-strip figure{flex:0 0 76%;min-width:0;margin:0;scroll-snap-align:start;background:#f5f8fc;border:1px solid #d6e0eb;border-radius:10px;overflow:hidden}
.home-photo-strip img{display:block;width:100%;height:240px;object-fit:cover}
.home-photo-strip figcaption{padding:12px 14px;line-height:1.5}
.home-photo-strip strong{display:block;font-size:.95rem;color:#173b68}
.home-photo-strip time{display:block;font-size:.85rem;color:#596777;margin-top:4px}
.home-photo-strip:focus-visible{outline:3px solid #b86a11;outline-offset:3px}
@media(max-width:600px){.home-photo-strip figure{flex-basis:86%}.home-photo-strip img{height:210px}}

/* Match the shared inner-page heading gradient. */
.home-page .home-service-strip{background:#173b68;background-image:linear-gradient(110deg,#172f52 0%,#2f5684 100%);border-color:#315781}
.home-page .home-service-strip strong,.home-page .home-service-strip>div>i{color:#fff}
.home-page .home-service-strip small{color:#dce7f4}
.home-page .home-service-strip .btn-outline-primary{background:transparent!important;border-color:#c4d7ed!important;color:#fff!important}
.home-page .home-service-strip .btn-primary{background:#fff!important;border-color:#fff!important;color:#173b68!important}
.home-page .home-service-strip .btn:hover{background:#dce8f6!important;color:#173b68!important}
.home-gallery-stage{position:relative;overflow:hidden;border-radius:10px;background:#10263f}
.home-gallery-slide{position:relative;margin:0}
.home-gallery-slide[hidden]{display:none}
.home-gallery-slide img{display:block;width:100%;height:350px;object-fit:contain}
.home-gallery-slide figcaption{position:absolute;bottom:0;left:0;right:0;padding:40px 54px 18px;background:linear-gradient(transparent,rgba(0,0,0,.8));color:#fff;text-align:center;line-height:1.5;pointer-events:none}
.home-gallery-slide figcaption strong{display:block;font-size:1rem}
.home-gallery-slide figcaption time{display:block;font-size:.85rem;margin-top:3px}
.home-gallery-counter{position:absolute;top:12px;left:12px;background:rgba(0,0,0,.55);color:#fff;padding:4px 8px;border-radius:4px;font-size:.8rem}
.home-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:54px;border:0;background:rgba(0,0,0,.4);color:#fff;font-size:2.2rem;line-height:1;cursor:pointer}
.home-gallery-prev{left:0;border-radius:0 6px 6px 0}
.home-gallery-next{right:0;border-radius:6px 0 0 6px}
.home-gallery-arrow:hover{background:rgba(0,0,0,.7)}
.home-gallery-dots{display:flex;justify-content:center;flex-wrap:wrap;gap:0;padding-top:8px}
.home-gallery-dots button{display:grid;place-items:center;width:32px;height:44px;padding:0;border:0;background:transparent}
.home-gallery-dots button::before{content:'';width:10px;height:10px;border-radius:50%;background:#c4ccd6}
.home-gallery-dots button[aria-current=true]::before{background:#315f98}
.home-gallery-slider:focus-visible,.home-gallery-slider button:focus-visible{outline:3px solid #d99a35;outline-offset:2px}
@media(max-width:600px){.home-gallery-slide img{height:280px}.home-gallery-slide figcaption{padding:35px 46px 12px}.home-gallery-slide figcaption strong{font-size:.9rem}}

/* Explicit contrast overrides for the shared theme's muted text rules. */
html body.home-page .home-service-strip small{color:#edf4ff!important;-webkit-text-fill-color:#edf4ff!important;opacity:1!important;font-size:.88rem;font-weight:500}
html body.home-page .home-service-strip strong{color:#fff!important;-webkit-text-fill-color:#fff!important}
html body.home-page .home-gallery-slide figcaption{background:linear-gradient(transparent,rgba(5,18,34,.95));color:#fff!important;text-shadow:0 1px 3px #000}
html body.home-page .home-gallery-slide figcaption strong{color:#fff!important;-webkit-text-fill-color:#fff!important}
html body.home-page .home-gallery-slide figcaption time{color:#fff0ce!important;-webkit-text-fill-color:#fff0ce!important;font-weight:600}
.home-gallery-play{display:block;margin:10px auto 0;min-height:44px;padding:8px 14px;border:1px solid #b9cbe0;border-radius:6px;background:#edf3fa;color:#173b68;font:inherit;font-size:.85rem;font-weight:700}
.home-gallery-play[hidden]{display:none}

/* Visit Us: one calm surface with an aligned address and supporting note. */
.home-page .home-visit-section .visit-card-v2{display:grid;grid-template-columns:38px 132px minmax(0,1fr);column-gap:14px;row-gap:5px;align-items:center;padding:18px 20px;background:#f7f9fc!important;border:1px solid #d7e1ed!important;border-left:4px solid #315f98!important;border-radius:12px;box-shadow:none!important}
.home-page .home-visit-section .visit-heading{display:contents}
.home-page .home-visit-section .visit-icon{grid-column:1;grid-row:1/3;width:38px;height:38px;font-size:1rem;background:#e5edf8!important;color:#315f98}
.home-page .home-visit-section .visit-heading-title{grid-column:2;grid-row:1/3}
.home-page .home-visit-section .visit-heading .eyebrow{font-size:.6rem;letter-spacing:.08em;margin-bottom:3px;color:#69798b}
.home-page .home-visit-section .visit-heading h2{font-size:1.35rem;padding:0;margin:0}
.home-page .home-visit-section .visit-heading h2:after{display:none}
.home-page .home-visit-section .visit-heading-address{grid-column:3;grid-row:1;width:auto;min-width:0;margin:0;padding:0;background:none;border:0!important;border-radius:0}
.home-page .home-visit-section .visit-heading-address p{color:#173b68!important;font-size:.9rem!important;font-weight:700!important;line-height:1.6!important;white-space:normal;overflow-wrap:break-word}
.home-page .home-visit-section .visit-content{grid-column:3;grid-row:2;display:block;padding:0;margin:0;border:0}
.home-page .home-visit-section .visit-note{gap:7px;align-items:baseline}
.home-page .home-visit-section .visit-note p{font-size:.78rem;line-height:1.5;color:#64748b}
.home-page .home-visit-section .visit-note i{font-size:.75rem;color:#8493a5;margin:0}
@media(max-width:767.98px){
.home-page .home-visit-section .visit-card-v2{grid-template-columns:32px minmax(0,1fr);gap:8px 10px;padding:14px}
.home-page .home-visit-section .visit-icon{grid-column:1;grid-row:1;width:32px;height:32px}
.home-page .home-visit-section .visit-heading-title{grid-column:2;grid-row:1}
.home-page .home-visit-section .visit-heading-address{grid-column:1/-1;grid-row:2}
.home-page .home-visit-section .visit-content{grid-column:1/-1;grid-row:3}
}
/* Restore the clean calendar list, with subtle interactive emphasis. */
.home-page .home-events-panel{background:#fff;align-self:stretch}
.home-page .home-events-panel .home-event-simple{display:grid;grid-template-columns:58px minmax(0,1fr) 20px;align-items:center;gap:15px;padding:16px 8px;border-bottom:1px solid #d8e2ef;text-decoration:none;border-radius:6px 6px 0 0}
.home-page .home-events-panel .home-event-simple:hover{background:#f5f8fc}
.home-page .home-events-panel .home-event-simple time{width:58px;padding:9px 4px;border-radius:9px;background:#edf3fa;text-align:center}
.home-page .home-events-panel .home-event-simple time span{display:block;font-size:.64rem;text-transform:uppercase;color:#315f98}
.home-page .home-events-panel .home-event-simple time b{display:block;font-size:1.3rem;line-height:1.4;color:#234f86}
.home-page .home-events-panel .home-event-simple>span>b{display:block;font-size:1rem;line-height:1.45;color:#234f86}
.home-page .home-events-panel .home-event-simple small{display:block;font-size:.8rem;line-height:1.6;margin-top:5px;color:#596e86}
.home-page .legacy-section .legacy-grid .pioneer-years{font-size:.85rem!important;line-height:1.5!important;font-weight:600;color:#68788a;margin:5px 0 10px}
@media(max-width:600px){.home-page .home-events-panel .home-event-simple{grid-template-columns:50px minmax(0,1fr) 16px;gap:10px;padding:14px 0}.home-page .home-events-panel .home-event-simple time{width:50px}}
.home-page .home-events-panel .home-event-entry{border-bottom:1px solid #d8e2ef}
.home-page .home-events-panel .home-event-entry:last-child{border-bottom:0}
.home-page .home-events-panel .home-event-entry .home-event-simple{border-bottom:0}
.home-page .home-events-panel .home-event-entry.has-links .home-event-simple{padding-bottom:6px}
.home-page .home-events-panel .home-event-simple time .event-date-range{font-size:.96rem;white-space:nowrap}
.home-page .home-events-panel .home-event-inline-links{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px 81px}
.home-page .home-events-panel .home-event-inline-links a{align-items:center;border:1px solid #cbd9e9;border-radius:6px;color:#234f86;display:inline-flex;font-size:.73rem;font-weight:800;gap:5px;min-height:32px;padding:5px 10px;text-decoration:none}
.home-page .home-events-panel .home-event-inline-links a:hover,.home-page .home-events-panel .home-event-inline-links a:focus-visible{background:#edf3fa;border-color:#7596bd}
@media(max-width:600px){.home-page .home-events-panel .home-event-simple time .event-date-range{font-size:.79rem}.home-page .home-events-panel .home-event-inline-links{margin-left:60px}}
