/* White Cross Healthcare - single stylesheet. Senior-friendly: 20px base, AAA contrast, 48px+ targets. */
:root{
  --text:#1a1a1a; --bg:#fff; --muted-bg:#f4f6f8; --green:#0a5c36; --green-bright:#28a54a; --green-bg:#eef6f0;
  --navy:#0b2545; --navy-2:#14365f; --link:#0b4f8a; --red:#a50e1a; --red-bg:#fdecec;
  --focus:#ffdd00; --confirm-bg:#fff1a6; --confirm-text:#3b2f00; --radius:10px; --wrap:72rem;
}
*,*::before,*::after{box-sizing:border-box}
html{font-size:125%;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:1rem;line-height:1.6;color:var(--text);background:var(--bg)}
img{max-width:100%;height:auto;display:block}
h1,h2,h3{line-height:1.25;color:var(--navy);margin:1.6em 0 .5em}
h1{font-size:2rem;margin-top:.6em}
h2{font-size:1.5rem}
h3{font-size:1.2rem}
p,ul,ol,dl{margin:0 0 1em}
li{margin-bottom:.4em}
a{color:var(--link);text-decoration:underline;text-underline-offset:.15em;text-decoration-thickness:.08em}
a:hover{text-decoration-thickness:.18em}
:focus-visible{outline:4px solid var(--focus);outline-offset:2px;box-shadow:0 0 0 8px var(--navy)}
strong{font-weight:700}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 1rem}
.prose{max-width:42rem}
.lead{font-size:1.15rem}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:1rem;top:-10rem;background:var(--focus);color:#000;padding:.75rem 1rem;font-weight:700;z-index:10}
.skip:focus{top:1rem}
.review-banner{background:var(--confirm-bg);color:var(--confirm-text);border-bottom:2px dashed #8a6d00;padding:.4rem 1rem;text-align:center;font-size:.9rem}
mark.confirm{background:var(--confirm-bg);color:var(--confirm-text);border:2px dashed #8a6d00;border-radius:4px;padding:0 .25em;font-weight:600;-webkit-box-decoration-break:clone;box-decoration-break:clone}
/* Header */
.site-header{border-bottom:1px solid #d5dbe1}
.header-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem 1.5rem;padding-top:.75rem;padding-bottom:.75rem}
.brand{display:flex;align-items:center;min-height:48px;max-width:100%;min-width:0;flex:0 1 auto}
.brand img{display:block;height:3.8rem;width:auto;max-width:100%;object-fit:contain;object-position:left center}
.calls{display:flex;flex-wrap:wrap;gap:.6rem}
.call{display:flex;align-items:center;gap:.6rem;min-height:3.2rem;padding:.5rem 1rem;border-radius:var(--radius);color:#fff;text-decoration:none;line-height:1.15;border:3px solid transparent}
.call:hover{text-decoration:underline}
.call svg{width:1.6rem;height:1.6rem;flex:none;fill:currentColor}
.call-label{display:block;font-size:.85rem;font-weight:600}
.call-number{display:block;font-size:1.3rem;font-weight:800;letter-spacing:.02em;white-space:nowrap}
.call-house{background:var(--green)}
.call-walkin{background:var(--navy-2)}
.call-big .call-number{font-size:1.6rem}
.call-big{padding:.75rem 1.25rem}
.main-nav{background:var(--navy)}
.main-nav ul{list-style:none;margin:0 auto;display:flex;flex-wrap:wrap;gap:0}
.main-nav li{margin:0}
.main-nav a{display:flex;align-items:center;min-height:3rem;padding:.5rem 1rem;color:#fff;text-decoration:none;font-weight:600}
.main-nav a:hover{text-decoration:underline}
.main-nav a[aria-current="page"]{background:#fff;color:var(--navy);text-decoration:underline;text-decoration-thickness:.15em}
/* 7 nav items: slightly tighter between phone and wide-desktop widths so the bar stays 1 row from ~1000px and 2 rows on tablets */
@media (min-width:40.01rem) and (max-width:79.99rem){.main-nav a{padding:.5rem .65rem;font-size:.9rem}}
/* Breadcrumb */
.breadcrumb ol{list-style:none;padding:0;margin:1rem 0 0;display:flex;flex-wrap:wrap;font-size:.9rem}
.breadcrumb li{margin:0}
.breadcrumb li+li::before{content:"\203A";padding:0 .5em;color:#555}
.breadcrumb a{display:inline-block;padding:.6rem 0}
/* Sections and blocks */
main{display:block;padding-bottom:2rem}
.section{padding:1.5rem 0}
.section-alt{background:var(--muted-bg);padding:1.5rem 0;margin:1.5rem 0}
.hero{display:grid;gap:1.5rem;align-items:center;padding-top:.5rem}
.hero h1{margin-top:.4em}
.hero figure{margin:0}
.hero-art{display:flex;justify-content:center}
.hero-pin{display:block;width:14rem;max-width:100%;height:auto;border-radius:0}
.hero img,.figure img{border-radius:var(--radius)}
figcaption{font-size:.9rem;margin-top:.4rem}
.cards{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr));margin:1rem 0}
.card{border:2px solid #c9d2db;border-radius:var(--radius);padding:1.25rem;background:#fff}
.card h2,.card h3{margin-top:0}
.open-hours{font-size:1.5rem;line-height:1.35;color:var(--navy);margin:.25rem 0 1.25rem}.open-hours strong{font-size:1.75rem}
.card-house{border-color:var(--green);border-width:3px}
.card-walkin{border-color:var(--navy-2);border-width:3px}
.card .icon{width:2.5rem;height:2.5rem;fill:var(--green);margin-bottom:.4rem}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:3rem;padding:.6rem 1.25rem;border-radius:var(--radius);background:var(--green);color:#fff;font-weight:700;text-decoration:none;border:3px solid var(--green)}
.btn:hover{text-decoration:underline}
.btn-outline{background:#fff;color:var(--green)}
.btn-row{display:flex;flex-wrap:wrap;gap:.75rem;margin:1rem 0}
.alert{border-left:8px solid var(--red);background:var(--red-bg);padding:1rem 1.25rem;border-radius:0 var(--radius) var(--radius) 0;margin:1.25rem 0}
.alert strong{color:#8a0f17}
.note{border-left:8px solid var(--green);background:var(--green-bg);padding:1rem 1.25rem;border-radius:0 var(--radius) var(--radius) 0;margin:1.25rem 0}
.note p:last-child,.alert p:last-child{margin-bottom:0}
.steps{counter-reset:step;list-style:none;padding:0}
.steps>li{counter-increment:step;position:relative;padding-left:3.5rem;margin-bottom:1.25rem;min-height:2.5rem}
.steps>li::before{content:counter(step);position:absolute;left:0;top:0;width:2.5rem;height:2.5rem;border-radius:50%;background:var(--green);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center}
.checklist{list-style:none;padding:0}
.checklist li{padding-left:2rem;position:relative}
.checklist li::before{content:"\2713";position:absolute;left:0;color:var(--green);font-weight:800}
.areas{columns:15rem auto;padding-left:1.2rem}
.hours{border-collapse:collapse;margin:.5rem 0 1rem;min-width:min(100%,24rem)}
.hours th,.hours td{text-align:left;padding:.5rem .75rem;border-bottom:1px solid #c9d2db}
.hours th{padding-left:0}
dl.contact-list dt{font-weight:700;margin-top:.75rem}
dl.contact-list dd{margin:0}
.photo-slot{border:3px dashed #8a6d00;background:var(--confirm-bg);color:var(--confirm-text);border-radius:var(--radius);padding:1.5rem;min-height:10rem;display:flex;align-items:center;justify-content:center;text-align:center;font-weight:600;margin:1rem 0}
.map-link{display:block;max-width:800px}
.map-link img{border:2px solid #c9d2db;border-radius:var(--radius)}
/* FAQ */
.faq details{border:2px solid #c9d2db;border-radius:var(--radius);margin-bottom:.75rem;background:#fff}
.faq summary{cursor:pointer;padding:.85rem 1rem;font-weight:700;color:var(--navy);min-height:3rem;list-style-position:outside;margin-left:1.2rem}
.faq details[open] summary{border-bottom:1px solid #c9d2db}
.faq .answer{padding:.85rem 1rem 0}
/* Forms */
form.form{max-width:36rem}
.field{margin-bottom:1.25rem}
.field label,.field legend{display:block;font-weight:700;margin-bottom:.3rem}
.hint{display:block;font-weight:400;font-size:.9rem;margin-bottom:.3rem}
input[type=text],input[type=email],input[type=tel],select,textarea{width:100%;font:inherit;padding:.6rem .75rem;min-height:3rem;border:2px solid #4a5560;border-radius:6px;background:#fff;color:var(--text)}
textarea{min-height:8rem}
input[type=file]{font:inherit;min-height:3rem}
fieldset{border:0;padding:0;margin:0 0 1.25rem}
.choice{display:flex;align-items:center;gap:.6rem;min-height:3rem}
.choice input{width:1.5rem;height:1.5rem;margin:0}
button,.button{font:inherit;font-weight:700;min-height:3rem;padding:.6rem 1.5rem;border-radius:var(--radius);border:3px solid var(--green);background:var(--green);color:#fff;cursor:pointer}
button[disabled]{background:#e8ebee;color:#3d4650;border-color:#6b7580;cursor:not-allowed}
/* Call band + footer */
.call-band{background:var(--green-bg);border-top:4px solid var(--green);padding:1.5rem 0;margin-top:2rem}
.call-band h2{margin-top:0}
.site-footer{background:var(--navy);color:#fff;padding:2rem 0 1rem}
.site-footer a{color:#fff}
.site-footer h2{color:#fff;font-size:1.15rem;margin:0 0 .5rem}
.footer-grid{display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}
.footer-links{list-style:none;padding:0}
.footer-links a{display:inline-flex;align-items:center;min-height:2.6rem}
.site-footer address{font-style:normal}
.footer-logo{margin:0 0 .75rem}
.footer-logo img{display:block;height:3rem;width:auto;max-width:100%}
.site-footer .small{font-size:.85rem;border-top:1px solid #3a5372;margin-top:1.5rem;padding-top:1rem}
.site-footer mark.confirm{font-weight:600}
@media (min-width:56rem){
  .hero{grid-template-columns:1.1fr 1fr}
  .hero-pin{width:17rem}
  h1{font-size:2.4rem}
}
@media (max-width:40rem){
  .calls{width:100%;display:grid;grid-template-columns:1fr}
  .call{width:100%}
  .main-nav ul{display:grid;grid-template-columns:1fr 1fr;padding:0}
  .main-nav a{min-height:2.4rem;padding:.3rem .6rem;border-bottom:1px solid #3a5372}
  .review-banner{font-size:.8rem;padding:.3rem .75rem}
  .call{min-height:2.9rem;padding:.35rem 1rem}
  .header-top{padding-top:.5rem;padding-bottom:.6rem}
  .main-nav li:nth-child(odd) a{border-right:1px solid #3a5372}
  .main-nav li:last-child:nth-child(odd){grid-column:1/-1}
  .main-nav li:last-child:nth-child(odd) a{border-right:0}
  h1{font-size:1.75rem}
}
@media (max-width:50rem){.brand img{height:2.8rem}}
@media (max-width:25rem){.main-nav a{font-size:.85rem}}
@media (max-width:21rem){.main-nav a{font-size:.8rem;padding:.3rem .4rem}}
@media print{.main-nav,.skip,.call-band,.review-banner{display:none}a{color:#000}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* FINDMD.ca additions */
.toc-title{margin-top:0;font-size:1.2rem}
.note ol{margin-bottom:0}
.table-scroll{overflow-x:auto;margin:1rem 0}
table.compare{border-collapse:collapse;width:100%;min-width:20rem}
table.compare th,table.compare td{border:2px solid #c9d2db;padding:.6rem .75rem;text-align:left;vertical-align:top}
table.compare thead th{background:var(--navy);color:#fff}
table.compare tbody th{font-weight:600;background:var(--muted-bg)}
.figure{margin:1rem 0;max-width:960px}
.prose section{margin-bottom:1.5rem}
.portal-btn{display:flex;align-items:center;gap:.5rem;min-height:3.2rem;padding:.4rem .9rem;border:3px solid var(--navy-2);border-radius:var(--radius);color:var(--navy);background:#fff;font-weight:700;text-decoration:none;line-height:1.2;max-width:20rem}
.portal-btn:hover{text-decoration:underline}
.portal-btn svg{width:1.4rem;height:1.4rem;flex:none;fill:currentColor}
.portal-btn mark.confirm{font-size:.75rem;display:inline-block;margin-top:.15rem}
.cta-pair{display:flex;flex-wrap:wrap;gap:.75rem;align-items:stretch;margin:1rem 0}
a[href^="tel:"]:not(.call){white-space:nowrap}
.hero>*{min-width:0}
input[type=file]{max-width:100%}
table.compare{min-width:0}
@media (max-width:24rem){.call-big .call-number{font-size:1.35rem}.call-big{padding:.6rem .8rem}.call svg{width:1.3rem;height:1.3rem}.wrap{padding:0 .75rem}}
table.compare{table-layout:fixed}table.compare th,table.compare td{overflow-wrap:anywhere;padding:.5rem}
.section-alt>.wrap.prose{margin-left:0;padding-left:1.25rem}
.portal-soon{border-style:dashed;color:var(--text);cursor:default}
.portal-soon:hover{text-decoration:none}
.soon-badge{display:inline-block;margin-left:.25rem;padding:.05rem .5rem;border-radius:999px;background:var(--navy);color:#fff;font-size:.8rem;font-weight:700;white-space:nowrap}
/* physician inquiry (join our team) */
.hp{display:none}
.form-card{border:3px solid var(--green);border-radius:var(--radius);padding:1.25rem;background:var(--green-bg);max-width:30rem}
.form-card h2{margin-top:0}
.hero-join{align-items:start}
.join-retry{max-width:36rem}
.field label.choice{display:flex;font-weight:400}
.choice-top{display:flex;align-items:flex-start;gap:.75rem}
.choice-top input{flex:none;width:1.75rem;height:1.75rem;margin:.15rem 0 0}
.field .choice-top label{display:block;font-weight:400;margin:0}
.field-error{color:var(--red);font-weight:400;margin:.25rem 0 .4rem}
.error-summary{border:4px solid var(--red);background:var(--red-bg);border-radius:var(--radius);padding:1rem 1.25rem;margin:1rem 0 1.5rem;max-width:36rem}
.error-summary h2{margin-top:0;color:var(--red)}
.error-summary a{color:var(--red);font-weight:700}
[aria-invalid=true]{border-color:var(--red)!important;border-width:3px!important}
.small-print{font-size:.9rem;margin-top:1rem}
/* Homepage hero slideshow (replaces the static pin in the same box). Keyframes and per-slide
   delays are appended by build.py (carousel_css) from src/data/site.json -> hero_carousel. */
.hero-art{position:relative}
.carousel{width:14rem;max-width:100%;margin:0}
.carousel-slides{position:relative;aspect-ratio:1/1;overflow:hidden;border-radius:var(--radius);isolation:isolate}
.slide{position:absolute;inset:0;margin:0;opacity:0;transform-origin:50% 50%}
.slide:first-child{opacity:1}
.slide picture{display:block;width:100%;height:100%}
.hero .slide img,.slide .hero-pin{width:100%;height:100%;max-width:none;object-fit:contain;border-radius:0}
/* Pause/play sits on the slide's bottom-right edge, half in the empty gutter, so it never covers the posters' logo or text. */
.carousel-toggle{position:absolute;right:max(0px,calc(50% - 7rem - 1.75rem));bottom:.2rem;z-index:2;display:flex;align-items:center;justify-content:center;width:2.4rem;height:2.4rem;border-radius:50%;background:var(--navy);color:#fff;box-shadow:0 0 0 2px #fff,0 1px 6px rgba(0,0,0,.35);cursor:pointer;-webkit-tap-highlight-color:transparent}
.carousel-toggle:hover{background:var(--navy-2)}
.carousel-toggle svg{width:1.1rem;height:1.1rem;fill:currentColor}
.carousel-toggle .ic-play,.carousel-pause:checked+.carousel-toggle .ic-pause{display:none}
.carousel-pause:checked+.carousel-toggle .ic-play{display:block}
.carousel-pause:focus-visible+.carousel-toggle{outline:4px solid var(--focus);outline-offset:2px;box-shadow:0 0 0 8px var(--navy)}
.carousel-pause:checked~.carousel-slides .slide,.carousel-pause:focus-visible~.carousel-slides .slide{animation-play-state:paused}
@media (hover:hover){.carousel:hover .slide{animation-play-state:paused}}
/* Two-column hero: the slot grows into the right column's free space (largest square that moves nothing:
   the text column is always taller, 780px+ vs 600px max). The pin keeps its original 17rem size, centred.
   Pause/play hangs just below the slide's bottom-right corner, clear of all artwork. */
@media (min-width:56rem){
  .carousel{position:relative;width:min(30rem,calc(100% - 2rem))}
  .hero .slide .hero-pin{position:absolute;inset:0;margin:auto;width:17rem;height:auto}
  .carousel-toggle{width:2.75rem;height:2.75rem;right:0;bottom:auto;top:calc(100% + .5rem)}
  .carousel-toggle svg{width:1.25rem;height:1.25rem}
}
@media (prefers-reduced-motion:reduce){.carousel .slide{animation-play-state:paused!important}.carousel-toggle{display:none}.carousel-pause{display:none}}
@media (forced-colors:active){.carousel-toggle{background:ButtonFace;color:ButtonText;border:2px solid ButtonText}}
@media print{.carousel-toggle{display:none}}
/* Hero slideshow: generated by build.py carousel_css() from site.json hero_carousel (7 slides, 10s each, 1.2s dissolve) */
@keyframes hc-first{0%{opacity:1;transform:scale(1.04);animation-timing-function:cubic-bezier(.4,0,.2,1)}2.8571%{transform:scale(1)}16%{opacity:1}16.0100%{opacity:0}100%{opacity:0}}
@keyframes hc-mid{0%{opacity:0;transform:scale(1.04);animation-timing-function:cubic-bezier(.4,0,.2,1)}1.7143%{opacity:1}2.8571%{transform:scale(1)}16%{opacity:1}16.0100%{opacity:0}100%{opacity:0}}
@keyframes hc-last{0%{opacity:0;transform:scale(1.04);animation-timing-function:cubic-bezier(.4,0,.2,1)}1.7143%{opacity:1}2.8571%{transform:scale(1)}14.2857%{opacity:1;animation-timing-function:cubic-bezier(.4,0,.2,1)}16%{opacity:0}100%{opacity:0}}
.carousel .slide{animation:hc-mid 70s linear infinite both;animation-delay:calc((var(--i) - var(--start, 0)) * 10s - 72s)}
.carousel .slide:first-child{animation-name:hc-first}.carousel .slide:last-child{animation-name:hc-last}
.slide:nth-child(1){--i:0}
.slide:nth-child(2){--i:1}
.slide:nth-child(3){--i:2}
.slide:nth-child(4){--i:3}
.slide:nth-child(5){--i:4}
.slide:nth-child(6){--i:5}
.slide:nth-child(7){--i:6}
.carousel[data-start="1"]{--start:1}
.carousel[data-start="2"]{--start:2}
.carousel[data-start="3"]{--start:3}
.carousel[data-start="4"]{--start:4}
.carousel[data-start="5"]{--start:5}
.carousel[data-start="6"]{--start:6}
