/* Our Story uses the shared pharmacy colors and type scale. */
html[data-theme=dark]:has(.story-page),html[data-theme=dark] body:has(.story-page) { background:var(--bg); }
.story-page { color:var(--ink); background:var(--bg); font:1rem/1.6 var(--font); padding-bottom:clamp(2rem,4.5vw,4rem); }
.story-page :is(h1,h2,h3,p,figure,ul) { margin:0; }
.story-wrap { width:min(1180px,calc(100% - 64px)); margin-inline:auto; }
.story-page h2 { color:var(--ink); font:620 clamp(2rem,3.4vw,3.05rem)/1.08 var(--font); letter-spacing:-.045em; text-wrap:balance; }
.story-page a { color:var(--accent); text-underline-offset:.22em; }
.story-page :is(a,summary):focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.story-page :is(h2,section)[id] { scroll-margin-top:1.6rem; }
.story-hero { display:grid; grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr); gap:clamp(2rem,5.5vw,5.4rem); align-items:center; padding-block:clamp(2rem,4.5vw,4rem) clamp(2.5rem,5vw,4.8rem); }
.story-origin { display:flex; align-items:center; gap:.75rem; color:var(--accent); font-size:.95rem; line-height:1.4; font-weight:690; }
.story-origin::before { content:""; width:2.1rem; height:2px; background:currentColor; }
.story-hero h1 { color:var(--ink); margin:.7rem 0 1.15rem; font:620 clamp(3.25rem,6.9vw,6.5rem)/1.01 var(--font); letter-spacing:-.07em; }
.story-hero h1 em { color:var(--accent); font:italic 400 1.08em/1 Georgia,"Times New Roman",serif; letter-spacing:-.065em; }
.story-opening .story-lead { max-width:36ch; color:var(--ink); font-size:clamp(1.18rem,1.6vw,1.45rem); line-height:1.5; }
.story-opening .story-lead + p { margin-top:.75rem; max-width:48ch; color:var(--muted); font-size:1.05rem; }
.story-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem 1.1rem; }
.story-opening .story-actions { margin-top:1.3rem; }
.story-actions a,.story-text-link,.story-departments details a { display:inline-flex; align-items:center; min-height:44px; font-weight:660; text-decoration:underline; }
.story-page .story-button { justify-content:center; min-height:48px; padding:.65rem 1.1rem; text-decoration:none; background:var(--accent); color:var(--surface); border-radius:11px; }
.story-page .story-button:hover { background:var(--accent-hover); }
.story-pictures { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,.92fr); gap:clamp(.6rem,1.3vw,1.2rem); align-items:start; }
.story-pictures img { display:block; width:100%; object-fit:cover; border-radius:21px 21px 5px 5px; }
.story-store img { aspect-ratio:1.14; height:auto; object-position:52% 45%; }
.story-lab { padding-top:clamp(2rem,5vw,4.6rem); }
.story-lab img { aspect-ratio:.74; height:auto; object-position:54% 50%; }
.story-pictures figcaption { padding-top:.6rem; font-size:.93rem; color:var(--muted); }
.story-care { border-block:1px solid var(--line); background:var(--surface); }
.story-care-inner { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1fr); gap:clamp(2.2rem,8vw,7rem); padding-block:clamp(2.1rem,4.5vw,4rem); align-items:start; }
.story-team p,.story-section-head p,.story-visit p { color:var(--muted); }
.story-team p { margin-top:.85rem; max-width:47ch; font-size:1.07rem; }
.story-team .story-text-link { margin-top:.5rem; }
.story-departments { min-width:0; }
.story-departments h3 { margin-bottom:.6rem; font:660 1.22rem/1.35 var(--font); letter-spacing:-.02em; color:var(--ink); }
.story-departments details { border-top:1px solid var(--line); }
.story-departments details:last-child { border-bottom:1px solid var(--line); }
.story-departments summary { display:flex; align-items:center; justify-content:space-between; gap:.7rem; padding:.8rem .1rem; min-height:52px; list-style:none; font-size:1.1rem; font-weight:640; cursor:pointer; }
.story-departments summary::-webkit-details-marker { display:none; }
.story-departments summary::after { content:""; width:1.6rem; height:1.6rem; flex:none; border:1px solid var(--accent-line); border-radius:50%; color:var(--accent); background:linear-gradient(currentColor,currentColor) center / .68rem 2px no-repeat,linear-gradient(currentColor,currentColor) center / 2px .68rem no-repeat; }
.story-departments details[open] > summary::after { background:linear-gradient(currentColor,currentColor) center / .68rem 2px no-repeat var(--accent-soft); }
.story-departments summary:hover,.story-departments details[open] summary { color:var(--accent); }
.story-departments details > div { padding:0 1rem .65rem .1rem; color:var(--muted); }
.story-departments details nav { display:flex; align-items:center; gap:0 1.2rem; flex-wrap:wrap; }
.story-network { padding-block:clamp(2.4rem,5vw,4.5rem); }
.story-section-head { display:flex; justify-content:space-between; align-items:end; flex-wrap:wrap; gap:.25rem 2rem; }
.story-section-head p { max-width:59ch; margin-top:.7rem; }
.story-page .story-pharmacies { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); list-style:none; padding:0; gap:clamp(.7rem,1.4vw,1.2rem); margin-top:1.4rem; }
.story-pharmacies img { width:100%; height:auto; aspect-ratio:49/32; object-fit:cover; border-radius:12px; }
.story-pharmacies figcaption { padding-top:.62rem; }
.story-pharmacies figcaption strong,.story-pharmacies figcaption span { display:block; }
.story-pharmacies figcaption strong { font-size:1.07rem; line-height:1.32; }
.story-pharmacies figcaption span { margin-top:.15rem; color:var(--muted); font-size:.96rem; }
.story-visit { display:flex; align-items:center; justify-content:space-between; gap:1.1rem 2rem; flex-wrap:wrap; padding:clamp(1.2rem,2.7vw,2.15rem); border-radius:18px; background:var(--accent-soft); border:1px solid var(--accent-line); }
.story-visit h2 { font-size:clamp(1.5rem,2.4vw,2.1rem); }
.story-visit p { margin-top:.4rem; }
@media(max-width:920px) {
  .story-wrap { width:min(100% - 40px,830px); }
  .story-hero { grid-template-columns:1fr 1fr; gap:1.6rem; }
  .story-pictures { grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr); gap:.55rem; }
  .story-store img { aspect-ratio:.85; }
  .story-lab img { aspect-ratio:.62; }
  .story-page .story-pharmacies { grid-template-columns:repeat(3,minmax(0,1fr)); row-gap:1.2rem; }
}
@media(max-width:680px) {
  .story-wrap { width:calc(100% - 36px); }
  .story-hero,.story-care-inner { grid-template-columns:minmax(0,1fr); gap:1.6rem; }
  .story-hero { padding-block:1.5rem 2.25rem; }
  .story-pictures { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); }
  .story-store img { aspect-ratio:1.35; }
  .story-lab img { aspect-ratio:.96; }
  .story-lab { padding-top:1.65rem; }
  .story-pictures img { border-radius:14px 14px 4px 4px; }
  .story-pictures figcaption { font-size:.9rem; }
  .story-page .story-pharmacies { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .story-page :is(h2,section)[id] { scroll-margin-top:4.5rem; }
}
@media(max-width:360px) {
  .story-page .story-pharmacies { grid-template-columns:1fr; }
  .story-pharmacies figure { display:grid; grid-template-columns:32% minmax(0,1fr); gap:.7rem; align-items:center; }
  .story-pharmacies figcaption { padding:0; }
}
@media(forced-colors:active) {
  .story-button,.story-visit { border:1px solid ButtonText; }
  .story-departments summary::after { content:"+"; display:grid; place-items:center; line-height:1; }
  .story-departments details[open] > summary::after { content:"−"; }
}
