/* ============================================================
   Family & Lifestyle Medicine — Page blocks: hero, stats, mission, team, pillars, why, services, pricing, hours, CTA, references
   Part 05 of 11. The cascade depends on load order:
   these files must stay linked in numeric sequence (see any page <head>).
   ============================================================ */

/* ---------- Hero ---------- */
/* ---------- Hero banner ----------
   Photo bleeds to the right and bottom edges with the arch cut into its leading
   corner; a crimson panel sits a little wider behind it so a band of colour
   shows along that curve. The copy is capped to the left half so it can never
   run underneath the photo. */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(30rem, 76vh, 45rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(160deg, var(--cream) 0%, var(--ivory) 62%);
}

/* Geometric accents, echoing the reference's corner pills. */
.hero__deco { position: absolute; inset: 0; pointer-events: none; }
.hero__pill { position: absolute; border-radius: 999px; background: var(--crimson); }
.hero__pill--a { top: 15%; left: -7rem; width: 15rem; height: 3.1rem; opacity: .10; }
.hero__pill--b { bottom: 19%; left: -9rem; width: 18rem; height: 3.5rem; opacity: .07; }

.hero__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 52%;
  translate: -4% 0;
  background: linear-gradient(150deg, var(--crimson), var(--crimson-deep));
  border-top-left-radius: clamp(150px, 21vw, 330px);
}
.hero__figure {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 46%;
  overflow: hidden;
  border-top-left-radius: clamp(140px, 20vw, 300px);
  z-index: 1;
}
.hero__figure img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 12%;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: min(48%, 36rem); }

.hero__eyebrow { animation: rise .8s var(--ease) both; }
.hero__title {
  font-size: clamp(2.5rem, 1.1rem + 5.2vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.02;
}
.hero__line { display: block; animation: rise .9s var(--ease) both; }
/* Small quiet line over a large emphatic one — the reference's two-tier lockup. */
.hero__line:nth-child(1) {
  font-size: .44em; font-weight: 400; color: var(--slate);
  letter-spacing: 0; margin-bottom: .16em;
  animation-delay: .08s;
}
.hero__line--accent { color: var(--crimson); animation-delay: .18s; }

.hero__tagline {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, .92rem + .5vw, 1.28rem);
  font-weight: 500;
  color: var(--slate);
  display: flex; flex-wrap: wrap; gap: .35rem .7rem;
}
.hero__tagline span { animation: rise .7s var(--ease) both; position: relative; }
.hero__tagline span + span { padding-left: 1rem; }
.hero__tagline span + span::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
  transform: translateY(-50%);
}
.hero__tagline span:nth-child(1) { animation-delay: .30s; }
.hero__tagline span:nth-child(2) { animation-delay: .38s; }
.hero__tagline span:nth-child(3) { animation-delay: .46s; }
.hero__tagline span:nth-child(4) { animation-delay: .54s; }

.hero__lede {
  margin-top: 1.4rem; max-width: 46ch; font-size: 1.16rem;
  animation: rise .8s var(--ease) .6s both;
}
.hero__actions {
  margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .9rem;
  animation: rise .8s var(--ease) .7s both;
}
.hero__pills {
  margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .6rem;
  animation: rise .8s var(--ease) .82s both;
}
.hero__pills li {
  font-size: .84rem; font-weight: 500; color: var(--slate-deep);
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  padding: .45rem 1rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: .45rem;
  box-shadow: var(--shadow-sm);
}
.hero__pills li::before {
  content: "✓"; color: var(--crimson); font-weight: 700; font-size: .8rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Stats band ---------- */
.stats {
  background: var(--grad-slate);
  padding-block: clamp(2.2rem, 4vw, 3.2rem);
  position: relative;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  text-align: center;
}
.stat { position: relative; padding-inline: .5rem; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 12%;
  width: 1px; height: 76%; background: rgba(255, 255, 255, .16);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.1rem + 2.1vw, 2.7rem);
  font-weight: 600; color: #fff; line-height: 1.1;
}
.stat__label {
  display: block; margin-top: .35rem;
  font-size: .84rem; color: rgba(255, 255, 255, .68);
  letter-spacing: .02em;
}

/* ---------- Mission ---------- */
.mission__text .btn { margin-top: 2rem; }

/* --- Mission rows -------------------------------------------------------
   The copy runs ~240 words. As a single column beside a short media stack it
   towered over the images, which then floated centred in ~200px of dead space
   top and bottom. Split into two alternating rows instead: each row pairs a
   readable chunk of text with the photo that matches it, and the direction
   flips so the section reads as a zig-zag rather than one long slab. */
.mission__row {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: center;
}
.mission__row + .mission__row { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
/* Flip visually but keep the text first in the DOM, so it is still read first. */
.mission__row--reverse .mission__text { order: 2; }
.mission__row--reverse .mission__figure { order: 1; }

.mission__figure {
  min-width: 0;
  /* Fill the row rather than floating centred — a fixed aspect left a gap above
     and below whichever column was shorter. */
  align-self: stretch;
  min-height: clamp(17rem, 24vw, 25rem);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border-radius: var(--r-arch) var(--r-lg) var(--r-arch) var(--r-lg);
}
/* Mirror the arch so the two rows lean opposite ways. */
.mission__row--reverse .mission__figure {
  border-radius: var(--r-lg) var(--r-arch) var(--r-lg) var(--r-arch);
}
.mission__figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.mission__figure:hover img { transform: scale(1.05); }

/* Framed variant: a white mat with a hairline edge, so the photo reads as a
   mounted print instead of bleeding into the page. The mat is a border rather
   than padding on purpose — overflow clips at the padding box, so the hover
   zoom stays inside the mat instead of creeping over it, and the inner corners
   pick up the arch radius automatically. */
.mission__figure--framed {
  --frame-w: clamp(.4rem, .75vw, .7rem);
  border: var(--frame-w) solid #fff;
  outline: 1px solid var(--line);
}
/* Heavier mat, roughly double. Wide enough that the shadow reads off the mat
   rather than the photo, so the frame carries the whole edge. */
.mission__figure--thick { --frame-w: clamp(.9rem, 1.7vw, 1.5rem); }

@media (max-width: 950px) {
  .mission__row { grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 2.2rem); }
  .mission__row--reverse .mission__text,
  .mission__row--reverse .mission__figure { order: 0; }
  .mission__figure { align-self: auto; min-height: 0; aspect-ratio: 16 / 10; }
}
/* ---------- Team ---------- */
.team__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-cards);
}
.doctor-card {
  background: var(--grad-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, .8);
  display: grid; grid-template-columns: minmax(0, 38%) 1fr;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.doctor-card__photo {
  position: relative; overflow: hidden; min-height: 300px;
  background: linear-gradient(160deg, var(--cream), #E4DCD2);
}
.doctor-card__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  transition: transform .8s var(--ease);
}
.doctor-card:hover .doctor-card__photo img { transform: scale(1.07); }
.doctor-card__body { padding: clamp(1.5rem, 2.4vw, 2.2rem); }
.doctor-card__body h3 { font-size: 1.35rem; }
.doctor-card__body h3 span {
  display: block; font-family: var(--font-body); font-size: .82rem;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--slate); margin-top: .4rem;
}
.doctor-card__role {
  color: var(--crimson); font-weight: 600; font-size: .92rem;
  margin: .7rem 0 .9rem;
}
.doctor-card__body p { font-size: .97rem; }

.team__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  background: #fff;
  border-radius: var(--r-arch) var(--r-lg) var(--r-arch) var(--r-lg);
  padding: clamp(1.7rem, 3vw, 2.4rem) clamp(1.9rem, 3.4vw, 2.8rem);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.team__note p { flex: 1 1 400px; margin: 0; }
.team__note .btn { flex: none; }

/* ---------- Pillars ---------- */
.pillars__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-cards);
}
.pillar {
  background: var(--grad-surface);
  border-radius: var(--r-arch) var(--r-lg) var(--r-lg) var(--r-lg);
  padding: clamp(2rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease),
              border-color .4s var(--ease), border-radius .5s var(--ease);
}
.pillar:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-arch);
}
/* Oversized numeral fills the dead space at the foot of each card and bleeds
   just past the edge, so it reads as a mark rather than a label. */
.pillar__num {
  position: absolute;
  z-index: -1;
  right: .06em; bottom: -.16em;
  font-family: var(--font-display);
  font-size: clamp(6rem, 4rem + 6vw, 9.5rem);
  font-weight: 600;
  line-height: .8;
  color: rgba(155, 27, 47, .11);
  pointer-events: none;
  transition: color .5s var(--ease), transform .5s var(--ease);
}
.pillar:hover .pillar__num { color: rgba(155, 27, 47, .2); transform: translateY(-8px); }
/* No right padding: the numeral it used to clear is anchored to the bottom of
   the card, so nothing collides up here — and the reserve left the heading rule
   stopping short of the edge every other card reaches. */
.pillar h3 { font-size: 1.55rem; margin-bottom: .8rem; }
.pillar p { font-size: .97rem; }

/* ---------- Why us ---------- */
.why__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.feature {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 0;
  padding: clamp(1.6rem, 2.6vw, 2.1rem);
  backdrop-filter: blur(6px);
  transition: transform .4s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease);
}
.feature:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .28);
}
.feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: .8rem;
  color: rgba(255, 255, 255, .7);
}
.feature__icon svg { width: 72px; height: 72px; fill: currentColor; }
.feature h3 { font-size: 1.35rem; margin-bottom: .55rem; }
.feature p { font-size: .95rem; color: rgba(255, 255, 255, .78); }

.why__more {
  margin-top: clamp(3rem, 6vw, 5rem);
  text-align: center;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.why__more-actions {
  margin-top: 1.8rem; display: flex; justify-content: center; gap: .9rem; flex-wrap: wrap;
}

/* ---------- Services ---------- */
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-cards);
}
.service {
  background: var(--grad-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service__media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.service__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(41, 68, 81, .35));
  opacity: 0; transition: opacity .45s var(--ease);
}
.service:hover .service__media::after { opacity: 1; }
.service__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.service:hover .service__media img { transform: scale(1.08); }
.service__body {
  padding: clamp(1.4rem, 2.3vw, 1.9rem);
  display: flex; flex-direction: column; gap: .8rem; flex: 1;
}
.service__body h3 { font-size: 1.3rem; }
.service__body p { font-size: .95rem; flex: 1; }
/* --- Bento service grid -------------------------------------------------
   Card size follows how much the clinic actually wrote, rather than forcing
   six identical tiles. Spans are chosen so each breakpoint tiles exactly:
   3 cols → 2+1 / 1+1+1 / 3   ·   2 cols → 2 / 1+1 / 1+1 / 2 */
@media (min-width: 701px) {
  .service--wide,
  .service--full { grid-column: span 2; flex-direction: row; align-items: stretch; }
  .service--wide > .service__media,
  .service--full > .service__media { flex: 0 0 42%; aspect-ratio: auto; min-width: 0; }
  /* Standard tiles let the paragraph grow so their links bottom-align across a
     row. On the oversized tiles that same rule strands the link far below the
     text, so cluster the content and centre it against the photo instead. */
  .service--wide > .service__body,
  .service--full > .service__body { justify-content: center; }
  .service--wide > .service__body > p,
  .service--full > .service__body > p { flex: 0 1 auto; }
}
@media (min-width: 1151px) {
  .service--full { grid-column: span 3; }
  .service--full > .service__media { flex-basis: 46%; }
}

/* Solid accent tile — only for a card whose copy is short enough to sit on
   colour without turning into a wall of text. */
.service--accent {
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(196, 57, 77, .5), transparent 62%),
    linear-gradient(165deg, var(--crimson), var(--crimson-deep));
  border-color: transparent;
  border-radius: var(--r-arch) var(--r-lg) var(--r-arch) var(--r-lg);
  box-shadow: var(--shadow-md);
}
.service--accent .service__body { gap: 1rem; justify-content: center; }
.service--accent .service__body > p { flex: 0 1 auto; }
.service--accent .service__icon { margin-bottom: .4rem; }
.service--accent .service__body h3 { color: #fff; }
.service--accent .service__body p { color: rgba(255, 255, 255, .85); }
.service--accent .link-arrow { color: #fff; }
.service__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
}
.service__icon svg { width: 27px; height: 27px; fill: #fff; }

.services__cta { margin-top: clamp(2.5rem, 5vw, 3.5rem); text-align: center; }

/* ---------- Pricing ---------- */
.pricing__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-cards);
  align-items: center;
}
.price-card {
  background: var(--grad-surface);
  border-radius: var(--r-lg);
  padding: clamp(1.9rem, 3vw, 2.6rem);
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
/* The middle tier is inverted rather than outlined — the contrast does the
   work an accent border would otherwise do. */
.price-card--featured {
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(196, 57, 77, .55), transparent 62%),
    linear-gradient(165deg, var(--crimson) 0%, var(--crimson-deep) 100%);
  border-color: transparent;
  border-radius: var(--r-arch) var(--r-lg) var(--r-arch) var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding-block: clamp(2.4rem, 4vw, 3.2rem);
}
.price-card--featured .price-card__age { color: rgba(255, 255, 255, .72); }
.price-card--featured .price-card__amount { color: #fff; }
.price-card--featured .price-card__currency { color: var(--gold); }
.price-card--featured .price-card__period { color: rgba(255, 255, 255, .66); }
.price-card--featured .price-card__list {
  color: rgba(255, 255, 255, .88);
  border-top-color: rgba(255, 255, 255, .22);
}
.price-card--featured .price-card__list li::before { color: var(--gold); }

.price-card__flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #43310C;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem 1.1rem; border-radius: 999px;
  box-shadow: 0 12px 24px -12px rgba(67, 49, 12, .7); white-space: nowrap;
}
.price-card__age {
  font-family: var(--font-body); font-size: .84rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--slate);
}
.price-card__amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 3.2vw, 4.2rem);
  font-weight: 600; color: var(--ink); line-height: 1;
  margin: 1.1rem 0 1.4rem;
  display: flex; align-items: flex-start; justify-content: center; gap: .15rem;
}
.price-card__currency { font-size: .42em; margin-top: .5em; color: var(--crimson); }
.price-card__period {
  align-self: flex-end;
  font-family: var(--font-body); font-size: .24em; font-weight: 500;
  color: var(--muted); letter-spacing: .06em; margin-bottom: .9em; margin-left: .4rem;
}
.price-card__list {
  display: grid; gap: .6rem; margin-bottom: 1.8rem;
  text-align: left; font-size: .93rem;
  border-top: 1px solid var(--line); padding-top: 1.5rem;
}
.price-card__list li { display: flex; align-items: flex-start; gap: .6rem; }
.price-card__list li::before {
  content: "✓"; color: var(--crimson); font-weight: 700; flex: none;
}
.pricing__note {
  margin-top: 2rem; text-align: center;
  font-style: italic; color: var(--slate); font-size: .95rem;
}
.pricing__cta { margin-top: 1.6rem; text-align: center; }

/* ---------- Hours ---------- */
.hours__inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 4vw, 3.5rem); align-items: stretch;
}
.hours__card {
  background: var(--grad-surface);
  border-radius: var(--r-arch) var(--r-lg) var(--r-lg) var(--r-arch);
  padding: clamp(1.9rem, 3.5vw, 3rem);
  box-shadow: var(--shadow-md);
  min-width: 0;
}
.hours__list { margin: 1.8rem 0; display: grid; gap: 1rem; }
.hours__list li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1rem; border-bottom: 1px dashed var(--line);
}
.hours__day { font-weight: 600; color: var(--ink); font-size: .97rem; }
.hours__time {
  font-family: var(--font-display); font-size: 1.05rem;
  font-weight: 600; color: var(--crimson); white-space: nowrap;
}
.hours__time--alt { color: var(--slate); white-space: normal; }
.hours__commitment {
  background: var(--cream); border-radius: var(--r-md);
  padding: 1.2rem 1.4rem; font-size: .95rem;
}
.hours__commitment strong { color: var(--crimson); }
.hours__contacts { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.contact-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--ivory); border: 1px solid var(--line);
  border-radius: 999px; padding: .5rem 1.05rem;
  font-size: .87rem; color: var(--slate-deep);
  /* The email address is one unbreakable token; without this it sets a
     min-content floor that widens the whole grid column on small screens. */
  overflow-wrap: anywhere; min-width: 0;
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}
.contact-chip strong { color: var(--crimson); }
a.contact-chip:hover { border-color: var(--crimson); background: #fff; color: var(--crimson); }
.hours__media {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); min-height: 340px;
  /* Grid items default to min-width:auto, which refuses to shrink below the
     image's intrinsic size and pushes past the viewport on narrow screens. */
  min-width: 0;
}
.hours__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background:
    linear-gradient(115deg, rgba(122, 20, 36, .94) 0%, rgba(155, 27, 47, .82) 45%, rgba(41, 68, 81, .78) 100%),
    url("../assets/cta-family.jpg") center 30%/cover no-repeat;
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -1px;
  height: clamp(48px, 6.5vw, 88px);
  background: var(--ivory);
  clip-path: ellipse(70% 100% at 50% 0%);
  z-index: 1;
}
/* Wrapper is wider than the prose so long button pairs stay on one line; the
   paragraph keeps its own readable measure. */
.cta-band__inner { position: relative; z-index: 2; max-width: 82ch; margin-inline: auto; }
.cta-band__inner > p { max-width: 62ch; margin-inline: auto; }
.cta-band h2 {
  color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem);
}
.cta-band p { margin-top: 1rem; color: rgba(255, 255, 255, .88); font-size: 1.06rem; }
.cta-band__actions {
  margin-top: 2.2rem; display: flex; justify-content: center; gap: .9rem; flex-wrap: wrap;
}

/* ---------- References ---------- */
.references { padding-block: clamp(2rem, 4vw, 3rem); background: var(--ivory); }
.references__box {
  max-width: 90ch; margin-inline: auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.1rem 1.5rem;
  font-size: .86rem; color: var(--muted);
}
.references__box summary {
  cursor: pointer; font-weight: 600; color: var(--slate-deep);
  font-size: .92rem; list-style: none;
  display: flex; align-items: center; gap: .5rem;
}
.references__box summary::-webkit-details-marker { display: none; }
.references__box summary::before {
  content: "+"; color: var(--crimson); font-size: 1.15rem; line-height: 1;
  transition: transform .3s var(--ease);
}
.references__box[open] summary::before { content: "–"; }
.references__box p { margin-top: 1rem; line-height: 1.65; }
.references__box a { word-break: break-word; }

