/* [IONYX: NEW HOME PAGE (patch 259)] The new home page (templates/frontend/home259/). One stylesheet, phone first (390 wide),
   then wider screens. The designer's final colours, sizes and spacing go in the variables below; the photos are image slots
   (static/frontend/home259/provider.jpg and pharmacy-lab.jpg, see HANDOFF259). Everything is scoped under .h9 and .h9-foot. */
.h9,.h9-foot{
  --h9-ink:#111729;          /* headings */
  --h9-text:#334155;         /* body text (10.4:1 on white) */
  --h9-mute:#475569;         /* small print (7.6:1 on white) */
  --h9-blue:#145C86;         /* links and eyebrows (7.1:1 on white) */
  --h9-blue-soft:#E7F3FA;
  --h9-hero:#EEF6FB;         /* the hero band */
  --h9-soft:#F4F8FB;         /* the soft bands */
  --h9-line:#DCE5EE;
  --h9-card:#FFFFFF;
  --h9-main:#111729;         /* the main button */
  --h9-main-hover:#24324F;
  --h9-teal-soft:#E3F6F5;    /* the pharmacy and lab card */
  --h9-prov-soft:#EAF2FB;    /* the provider card */
  --h9-red:#B42318;          /* the emergency button (6.6:1 with white) */
  --h9-red-hover:#912018;
  --h9-dark:#111A33;         /* the closing band */
  --h9-dark-2:#22345C;
  --h9-l1:#E5F4EC;--h9-l1-ink:#166534;
  --h9-l2:#E8EFFD;--h9-l2-ink:#1E3A8A;
  --h9-l3:#FFF1DC;--h9-l3-ink:#8A4300;
  --h9-l4:#FDE8E8;--h9-l4-ink:#A61B1B;
  --h9-radius:16px;
  --h9-radius-lg:22px;
  --h9-gap:16px;
  --h9-pad:16px;             /* the side gutter on phones */
  --h9-sec:56px;             /* space above and below a section on phones */
  --h9-font:'Source Sans 3',system-ui,-apple-system,'Segoe UI',sans-serif;
  --h9-font-head:'Plus Jakarta Sans','Source Sans 3',system-ui,sans-serif;
  font-family:var(--h9-font);font-size:17px;line-height:1.55;color:var(--h9-text);
}
.h9 *,.h9-foot *{box-sizing:border-box}
.h9 h1,.h9 h2,.h9 h3,.h9 p,.h9 ul,.h9 ol,.h9-foot h2,.h9-foot p,.h9-foot ul{margin:0;padding:0;text-transform:none;letter-spacing:normal}
.h9 ul,.h9 ol,.h9-foot ul{list-style:none;padding-left:0!important;margin-left:0!important}
.h9 li,.h9-foot li{margin-left:0!important;margin-right:0!important}
.h9 h1,.h9 h2,.h9 h3{font-family:var(--h9-font-head);color:var(--h9-ink)}
.h9 a,.h9-foot a{text-decoration:none}
.h9 a:focus-visible,.h9 summary:focus-visible,.h9-foot a:focus-visible{outline:3px solid #2B8CC4;outline-offset:3px;border-radius:10px}
.h9-wrap{max-width:1200px;margin:0 auto;padding-left:var(--h9-pad);padding-right:var(--h9-pad)}
.h9-ic{width:22px;height:22px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.h9-vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.h9-center{text-align:center}
.h9-sec{padding-top:var(--h9-sec);padding-bottom:var(--h9-sec)}
.h9-soft{background:var(--h9-soft)}
.h9-eyebrow{font-size:16px;font-weight:700;color:var(--h9-blue)}
.h9-h2{margin-top:6px!important;font-size:28px;line-height:1.2;font-weight:800;letter-spacing:-.015em}
.h9-intro{margin-top:10px!important;font-size:17px;color:var(--h9-text);max-width:640px}
.h9-intro.h9-center{margin-left:auto;margin-right:auto}

/* team strip (team members only) */
.h9-team{background:#FFF7E0;border-bottom:1px solid #F1DFA6;color:#5C4400;font-size:16px}
.h9-team-in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 16px;padding-top:8px;padding-bottom:8px}
.h9-team a{color:#5C4400;font-weight:700;text-decoration:underline;min-height:44px;display:inline-flex;align-items:center}

/* the English under a translated safety or medical line (patch 222's language system): 16px on this page too */
.h9 .ix222-en,.h9-foot .ix222-en{font-size:16px!important;line-height:1.4;color:var(--h9-mute)!important}

/* buttons */
.h9-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:12px 24px;border-radius:12px;font-weight:700;font-size:17px;line-height:1.25;text-align:center}
.h9-btn-main{background:var(--h9-main);color:#fff!important}
.h9-btn-main:hover{background:var(--h9-main-hover);color:#fff}
.h9-more{display:inline-flex;align-items:center;min-height:44px;font-weight:700;color:var(--h9-blue)!important}
.h9-more:hover{text-decoration:underline}

/* hero */
.h9-hero{background:var(--h9-hero)}
.h9-hero-in{display:flex;flex-direction:column;gap:28px;padding-top:24px;padding-bottom:40px}
.h9-hero-copy{min-width:0}
.h9-badge{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--h9-line);border-radius:999px;padding:6px 14px;font-size:16px;font-weight:700;color:var(--h9-blue);margin-bottom:16px!important}
.h9-badge .h9-ic{width:18px;height:18px}
.h9-h1{font-size:36px;line-height:1.1;font-weight:800;letter-spacing:-.025em}
.h9-lead{margin-top:16px!important;font-size:18px;color:var(--h9-text);max-width:560px}
.h9-cta{margin-top:22px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px}
.h9-cta .h9-btn{flex:1 1 100%}
.h9-facts{margin-top:20px!important;display:flex;flex-direction:column;gap:8px;font-size:16px;color:var(--h9-text)}
.h9-facts li{display:flex;align-items:flex-start;gap:10px}
.h9-facts .h9-ic{width:20px;height:20px;margin-top:2px;color:var(--h9-blue)}
.h9-start{background:var(--h9-card);border:1px solid var(--h9-line);border-radius:var(--h9-radius-lg);box-shadow:0 16px 40px -28px rgba(17,23,41,.35);padding:20px 14px}
.h9-start-h{font-size:21px;line-height:1.3;font-weight:800;text-align:center}
.h9-start-sub{margin-top:6px!important;font-size:16px;text-align:center;color:var(--h9-mute)}
.h9-tiles{margin-top:16px!important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.h9-tile{height:100%;min-height:92px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:10px 4px;border:1.5px solid var(--h9-line);border-radius:14px;background:#fff;color:var(--h9-ink)!important;font-size:16px;font-weight:600;line-height:1.2;text-align:center;overflow-wrap:break-word;word-break:normal;hyphens:manual}
.h9-tile .h9-ic{width:26px;height:26px;color:var(--h9-blue)}
.h9-tile:hover{border-color:var(--h9-blue);background:var(--h9-blue-soft)}
.h9-start-foot{margin-top:16px;padding-top:14px;border-top:1px solid var(--h9-line);display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;font-size:16px;color:var(--h9-mute)}
.h9-sos-link{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;min-height:44px;padding:4px 14px;border-radius:10px;color:var(--h9-red)!important;font-weight:700;text-decoration:underline!important;line-height:1.3}
.h9-sos-tr{font-weight:600;font-size:16px}
@media (max-width:359.98px){.h9-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* the four outcomes */
.h9-levels{margin-top:24px!important;display:grid;grid-template-columns:1fr;gap:12px}
.h9-level{background:var(--h9-card);border:1px solid var(--h9-line);border-radius:var(--h9-radius);padding:18px}
.h9-level h3{margin-top:12px!important;font-size:19px;font-weight:800}
.h9-level p{margin-top:4px!important;font-size:16px;color:var(--h9-text)}
.h9-level-ic{width:44px;height:44px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center}
.h9-l1 .h9-level-ic,.h9-path-ic.h9-l1{background:var(--h9-l1);color:var(--h9-l1-ink)}
.h9-l2 .h9-level-ic,.h9-path-ic.h9-l2{background:var(--h9-l2);color:var(--h9-l2-ink)}
.h9-l3 .h9-level-ic,.h9-path-ic.h9-l3{background:var(--h9-l3);color:var(--h9-l3-ink)}
.h9-l4 .h9-level-ic{background:var(--h9-l4);color:var(--h9-l4-ink)}

/* services */
.h9-services{margin-top:24px!important;display:grid;grid-template-columns:1fr;gap:12px}
.h9-svc{height:100%;display:grid;grid-template-columns:44px 1fr;column-gap:14px;align-items:start;background:var(--h9-card);border:1px solid var(--h9-line);border-radius:var(--h9-radius);padding:16px;color:var(--h9-text)!important}
.h9-svc:hover{border-color:var(--h9-blue)}
.h9-svc-ic{grid-row:span 2;width:44px;height:44px;border-radius:12px;background:var(--h9-blue-soft);color:var(--h9-blue);display:inline-flex;align-items:center;justify-content:center}
.h9-svc h3{font-size:18px;font-weight:800;align-self:center}
.h9-svc p{font-size:16px;margin-top:2px!important}

/* providers, pharmacies and labs */
.h9-partners{display:grid;grid-template-columns:1fr;gap:16px}
.h9-partner{border-radius:var(--h9-radius-lg);overflow:hidden;display:flex;flex-direction:column}
.h9-partner-prov{background:var(--h9-prov-soft)}
.h9-partner-pharm{background:var(--h9-teal-soft)}
.h9-photo{display:block;width:100%;height:180px;object-fit:cover;object-position:center top}
.h9-slot{display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.55)}
.h9-slot svg{width:72px;height:72px;fill:none;stroke:#7C93AD;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.h9-partner-text{padding:20px}
.h9-partner-text h3{margin-top:6px!important;font-size:22px;line-height:1.25;font-weight:800}
.h9-partner-text p:not(.h9-eyebrow){margin-top:8px!important;font-size:16px}
.h9-partner-text .h9-btn{margin-top:16px;width:100%}

/* steps */
.h9-steps{margin-top:24px!important;display:grid;grid-template-columns:1fr;gap:14px;counter-reset:none}
.h9-step{background:var(--h9-card);border:1px solid var(--h9-line);border-radius:var(--h9-radius);padding:18px}
.h9-step-n{display:flex;align-items:center;gap:10px;font-weight:700;color:var(--h9-blue);font-size:16px}
.h9-step-dot{width:36px;height:36px;border-radius:50%;background:var(--h9-ink);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:16px}
.h9-step h3{margin-top:12px!important;font-size:19px;font-weight:800}
.h9-step p:not(.h9-step-n){margin-top:4px!important;font-size:16px}
.h9-art{margin-top:16px;border-radius:12px;background:var(--h9-soft);padding:12px}
.h9-art-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.h9-art-grid span{height:30px;border-radius:8px;background:#fff;border:1px solid var(--h9-line)}
.h9-art-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.h9-art-list span{height:24px;border-radius:8px;background:#fff;border:1px solid var(--h9-line)}
.h9-art .h9-art-on{border-color:var(--h9-blue);background:var(--h9-blue-soft);box-shadow:inset 0 0 0 1px var(--h9-blue)}
.h9-art-report{display:flex;gap:10px;align-items:center}
.h9-art-qr{width:48px;height:48px;border-radius:6px;flex:0 0 auto;background:repeating-linear-gradient(90deg,var(--h9-ink) 0 4px,#fff 4px 8px),#fff;opacity:.8;-webkit-mask:repeating-linear-gradient(0deg,#000 0 4px,transparent 4px 8px);mask:repeating-linear-gradient(0deg,#000 0 4px,transparent 4px 8px)}
.h9-art-lines{flex:1;display:flex;flex-direction:column;gap:6px}
.h9-art-lines span{height:8px;border-radius:4px;background:var(--h9-line)}
.h9-art-lines span:nth-child(2){width:70%}.h9-art-lines span:nth-child(3){width:45%}
.h9-steps-cta{margin-top:24px}
.h9-steps-cta .h9-btn{width:100%}

/* questions */
.h9-faq{max-width:860px}
.h9-faq-list{margin-top:20px;border-top:1px solid var(--h9-line)}
.h9-q{border-bottom:1px solid var(--h9-line)}
.h9-q summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:12px 0;font-family:var(--h9-font-head);font-weight:700;font-size:18px;color:var(--h9-ink)}
.h9-q summary::-webkit-details-marker{display:none}
.h9-q summary::after{content:"";flex:0 0 auto;width:12px;height:12px;border-right:2.5px solid var(--h9-ink);border-bottom:2.5px solid var(--h9-ink);transform:rotate(45deg);margin:0 6px 6px 0;transition:transform .2s}
.h9-q[open] summary::after{transform:rotate(-135deg);margin:6px 6px 0 0}
.h9-q p{padding:0 0 16px;font-size:17px;color:var(--h9-text)}
.h9-q p a{display:inline-flex;align-items:center;min-height:44px;color:var(--h9-blue)!important;text-decoration:underline!important;font-weight:600}

/* closing band */
.h9-close{background:linear-gradient(135deg,var(--h9-dark),var(--h9-dark-2));padding-top:var(--h9-sec);padding-bottom:var(--h9-sec)}
.h9-close .h9-eyebrow{color:#9DD3F0}
.h9-close .h9-h2{color:#fff}
.h9-close .h9-intro{color:#D5DEEA}
.h9-paths{margin-top:24px!important;display:grid;grid-template-columns:1fr;gap:12px}
.h9-path{height:100%;display:flex;flex-direction:column;align-items:flex-start;background:#fff;border-radius:var(--h9-radius);padding:18px;color:var(--h9-text)!important}
.h9-path-ic{width:44px;height:44px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center}
.h9-path h3{margin-top:12px!important;font-size:19px;font-weight:800}
.h9-path p{margin-top:4px!important;font-size:16px}
.h9-path-go{margin-top:12px;min-height:44px;display:inline-flex;align-items:center;font-weight:700;color:var(--h9-blue)}
.h9-path-go::after{content:"\2192";margin-left:8px}
.h9-path:hover .h9-path-go{text-decoration:underline}

/* footer */
.h9-foot{background:#fff;border-top:1.5px solid var(--h9-line);padding-top:36px;padding-bottom:88px}
.h9-foot-top{display:flex;flex-direction:column;gap:28px}
.h9-foot-logo{display:inline-flex;min-height:44px;align-items:center}
.h9-foot-logo img{display:block;width:112px;height:auto}
.h9-foot-brand p{margin-top:8px!important;font-size:16px;color:var(--h9-text);max-width:300px}
.h9-foot-cols{display:grid;grid-template-columns:1fr 1fr;gap:20px 16px}
.h9-foot h2{font-family:var(--h9-font-head);font-size:16px;font-weight:800;color:var(--h9-ink)}
.h9-foot-cols ul{margin-top:6px!important}
.h9-foot-cols a,.h9-foot-legal a{display:inline-flex;align-items:center;min-height:44px;font-size:16px;color:var(--h9-text)!important}
.h9-foot-cols a:hover,.h9-foot-legal a:hover{color:var(--h9-ink)!important;text-decoration:underline}
.h9-foot-safe{margin-top:28px;padding-top:20px;border-top:1px solid var(--h9-line);display:flex;flex-direction:column;gap:16px}
.h9-foot-safe p{margin-top:4px!important;font-size:16px;color:var(--h9-text);max-width:640px}
.h9-sos{display:flex;align-items:center;justify-content:center;gap:12px;min-height:56px;padding:10px 22px;border-radius:12px;background:var(--h9-red);color:#fff!important;font-weight:800;font-size:18px;line-height:1.25}
.h9-sos:hover{background:var(--h9-red-hover)}
.h9-sos-words{display:flex;flex-direction:column;align-items:center;text-align:center}
.h9-sos .h9-sos-tr{font-size:16px;font-weight:600}
.h9-foot-end{margin-top:20px;padding-top:12px;border-top:1px solid var(--h9-line);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 20px;font-size:16px;color:var(--h9-mute)}
.h9-foot-legal{display:flex;flex-wrap:wrap;gap:0 20px}

/* wider phones and tablets */
@media (min-width:600px){
  .h9,.h9-foot{--h9-pad:24px}
  .h9-cta .h9-btn,.h9-steps-cta .h9-btn,.h9-partner-text .h9-btn{flex:0 0 auto;width:auto}
  .h9-levels,.h9-services,.h9-paths{grid-template-columns:repeat(2,minmax(0,1fr))}
  .h9-start{padding:24px}
  .h9-foot-cols{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width:900px){
  .h9,.h9-foot{--h9-sec:88px}
  .h9-h1{font-size:50px}
  .h9-h2{font-size:36px}
  .h9-lead{font-size:19px}
  .h9-hero-in{flex-direction:row;align-items:center;gap:48px;padding-top:56px;padding-bottom:64px}
  .h9-hero-copy{flex:1 1 52%}
  .h9-start{flex:1 1 48%;padding:28px}
  .h9-facts{flex-direction:row;flex-wrap:wrap;gap:10px 22px}
  .h9-partners{grid-template-columns:1fr 1fr}
  .h9-partner{flex-direction:row}
  .h9-photo{width:40%;height:auto;min-height:260px}
  .h9-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
  .h9-paths{grid-template-columns:repeat(3,minmax(0,1fr))}
  .h9-h2.h9-center,.h9-eyebrow.h9-center{text-align:center}
  .h9-sec>.h9-wrap>.h9-eyebrow:not(.h9-center),.h9-sec>.h9-wrap>.h9-h2:not(.h9-center),.h9-sec>.h9-wrap>.h9-intro:not(.h9-center){text-align:center;margin-left:auto;margin-right:auto}
  .h9-foot-top{flex-direction:row;justify-content:space-between}
  .h9-foot-brand{flex:0 0 260px}
  .h9-foot-cols{flex:1 1 auto;max-width:760px}
  .h9-foot-safe{flex-direction:row;align-items:center;justify-content:space-between}
  .h9-foot{padding-bottom:28px}
}
@media (min-width:1100px){
  .h9-levels{grid-template-columns:repeat(4,minmax(0,1fr))}
  .h9-services{grid-template-columns:repeat(5,minmax(0,1fr))}
  .h9-svc{display:flex;flex-direction:column;gap:10px}
  .h9-svc h3{align-self:flex-start}
}
@media (prefers-reduced-motion:reduce){.h9-q summary::after{transition:none}}
