/* OWNS: HUB-FIRST1 */
/* hub-first.css - the ONE stylesheet of the shared section-hub header (HUB-FIRST1, 15 Nov 2026).

   Director, 15 Nov 2026, on /vaccinations/: "just a big blob of green and text no image, no nothing" and "maybe the first
   thing they see is these images". Measured that morning: the text-only dark hero filled the first screen and the first
   picture (the card grid) began 973px down a 390x844 phone and 1,019px down a 1440x900 laptop; every competitor hub
   measured shows a photograph or treatment cards on the first screen.

   ONE component, three parts, all drawn by scripts/gen_category_hubs.py hub_header() / hub_trust() / hub_related() and
   styled only here (tokens from /assets/tokens.css, Proxima Nova, the .ds-btn button of wl-ds.css):
     .hf-hero     a compact hero. Phone (and a phone held sideways): one column, the hub photograph behind the words under
                  a dark-teal veil that keeps every line at WCAG AA. Tablet and computer: text left, the photograph right.
     .hf-chips    a swipe row of the hub's own groups, each with its picture (Baymard: thumbnails on intermediary pages).
     .hf-trust-*  the registration facts (scripts/_org_schema.py) and the other sections of the menu.

   LAYOUT STABILITY (design studio 4.5): every box here has its size before any picture arrives - the photo panel by
   aspect-ratio, the background photo by the hero's own box, each chip picture by width/height - and nothing animates
   but transform. The hero picture is a real <img> (never lazy, the page's ONE fetchpriority="high"); the build adds
   its srcset from the `sizes` the generator declares (RESPONSIVE-IMG1). Hover changes colour, shadow and transform
   only. Nothing here is drawn by a script. */

/* ---- Hero ---------------------------------------------------------------------------------------------------- */
.hf-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--dark-teal); color: var(--cream); padding: 0; }
.hf-hero .ds-wrap { position: relative; z-index: 2; }
.hf-copy { min-width: 0; }
.hf-hero .ds-eyebrow { color: var(--terracotta-lt); margin-bottom: 12px; }
.hf-hero .ds-eyebrow::before { background: var(--terracotta-lt); }
/* 20ch, not 15ch (design review 24 Nov 2026, TOP-PHOTO-SPLIT1 part 2): the hand-written hubs' longer headings ran to 6
   lines on /weight-loss/ and split 'Hyde / Park Pharmacy' on contraception at 15ch; balance keeps the short ones even */
.hf-hero h1 { color: #fff; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.04; letter-spacing: -0.025em;
  max-width: 20ch; text-wrap: balance; }
/* .hf-hero in front: the bare .hf-lead lost to wl-ds .ds p { margin: 0 } on every page inside .ds, so the lead sat flush
   under the heading on /vaccinations/, /mens-health/ and /womens-health/ too (measured 0px, 24 Nov 2026; AUTO-REPAIR1) */
.hf-hero .hf-lead { color: rgba(245,245,242,.92); font-size: clamp(16px, 1.25vw, 17.5px); line-height: 1.5; max-width: 52ch;
  margin: 18px 0 0; }
.hf-trust { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 13.5px; line-height: 1.35; font-weight: 600; color: rgba(245,245,242,.9); }
.hf-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hf-trust svg { width: 15px; height: 15px; flex: none; color: var(--lime); }
.hf-trust li:first-child { color: #fff; }
.hf-hero .hf-cta { margin-top: 18px; min-height: 50px; padding: 13px 26px; font-size: 16px; }
.hf-hero .hf-cta svg { width: 18px; height: 18px; }
.hf-hero .hf-cta:focus-visible { outline: 3px solid var(--terracotta-lt); outline-offset: 3px; }

/* TOP-PHOTO-SPLIT1 (24 Nov 2026): the six hand-written section hubs (travel clinic, ED, weight loss, NHS, contraception,
   student page) wear this header too, stamped by gen_category_hubs.py stamp_hand_hubs with each page's own words. They
   bring a few things the three generated hubs never use - an accent in the heading, a link in the lead, a row of the
   page's own buttons, and a video loop - and some of those pages are not inside .ds, so the heading and the hero set their own margin and padding. */
.hf-hero h1 { margin: 0; }
.hf-hero h1 em { font-style: normal; color: var(--terracotta-lt); }
.hf-lead a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hf-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hf-hero .hf-ctas .hf-cta { margin-top: 0; }
.hf-hero .hf-ctas + .hf-lead { margin-top: 16px; }
.hf-hero .ds-btn.light { background: #fff; color: var(--dark-teal); box-shadow: 0 10px 26px rgba(0,0,0,.3); }
@media (hover: hover) and (pointer: fine) { .hf-hero .ds-btn.light:hover { filter: none; background: var(--cream); color: var(--dark-teal); } }
/* the hub's own video loop (weight loss): the script under the picture adds it only on the split layout, without reduced
   motion or data saver; it lies over the picture in the same box and fades in once it plays, so nothing moves */
.hf-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity .6s var(--ease); }
.hf-media video.hf-on { opacity: 1; }
/* the page's words that have no slot in the header (a sub-line, jump links, the student page's other buttons) - right
   under it, on the page's own ground */
.hf-after { padding: 16px 0 0; }
.hf-after .sub { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.hf-after .hero-jumps { flex-direction: row; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; }
.hf-after .hero-jump { color: var(--teal); }
@media (hover: hover) and (pointer: fine) { .hf-after .hero-jump:hover { color: var(--dark-teal); } }

/* the photograph: a panel on the right from a tablet up; behind the words on a phone */
.hf-media { position: relative; overflow: hidden; border-radius: var(--r-card); aspect-ratio: 4 / 3;
  background: var(--teal); box-shadow: 0 24px 60px rgba(0,0,0,.32), 0 0 0 1px rgba(255,255,255,.1); }
.hf-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* the house dot motif (wl-ds .ds-hero::after), on the side away from the words */
.hf-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .45;
  background-image: radial-gradient(rgba(233,169,134,.2) 1.2px, transparent 1.3px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(115deg, transparent 30%, #000 75%); mask-image: linear-gradient(115deg, transparent 30%, #000 75%); }

/* split from a tablet up - but not on a phone held sideways (short screens keep the compact one-column hero) */
@media (min-width: 601px) and (min-height: 501px), (min-width: 1001px) {
  .hf-hero .ds-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center;
    gap: clamp(28px, 4.5vw, 56px); padding-top: clamp(22px, 2.2vw, 28px); padding-bottom: clamp(22px, 2.2vw, 28px); }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 601px) and (min-height: 501px),
       (prefers-reduced-motion: no-preference) and (min-width: 1001px) {
  /* the one authored moment: the photograph settles, transform only (no layout, no repaint of its box) */
  .hf-media img { animation: hfSettle 1.4s var(--ease) both; }
}
@keyframes hfSettle { from { transform: scale(1.06); } to { transform: none; } }

/* compact: a phone, or a phone held sideways */
@media (max-width: 600px), (max-height: 500px) and (max-width: 1000px) {
  .hf-hero .ds-wrap { padding-top: 16px; padding-bottom: 18px; position: static; }
  /* layers, bottom to top: the photograph (0), the veil and dots (1), the words (2) - the column stays static so the
     photograph and the veil cover the whole hero, not just the column */
  .hf-copy { position: relative; z-index: 2; }
  .hf-hero .ds-eyebrow { display: none; }
  .hf-hero h1 { font-size: 27px; line-height: 1.08; max-width: none; }
  .hf-hero .hf-lead { font-size: 15px; line-height: 1.45; margin-top: 10px; }
  .hf-trust { margin-top: 10px; gap: 2px 12px; font-size: 12.5px; line-height: 1.3; }
  .hf-trust svg { width: 13px; height: 13px; }
  .hf-hero .hf-cta { margin-top: 12px; min-height: 46px; padding: 11px 20px; font-size: 15.5px; }
  .hf-ctas { margin-top: 12px; gap: 10px; }
  .hf-hero .hf-ctas + .hf-lead { margin-top: 12px; }
  .hf-media { position: absolute; inset: 0; z-index: 0; border-radius: 0; aspect-ratio: auto; box-shadow: none; }
  /* the veil: darkest under the words (left), lightest where the heading leaves room (right). At its lightest it
     still holds the lead text above 4.5:1 on a white patch of photograph (rgba .7 over #fff = #546d72, 5.4:1). */
  .hf-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(100deg, rgba(10,46,54,.95) 0%, rgba(10,46,54,.86) 55%, rgba(10,46,54,.7) 100%); }
  .hf-hero::after { opacity: .25; }
}
@media (max-height: 500px) and (max-width: 1000px) and (min-width: 601px) {
  /* no `ch` cap here: a ch is the width of the font's "0", so the stand-in font and Proxima broke the heading at
     different words and WebKit moved the chips 29px when Proxima landed (measured 15 Nov, 844x390) */
  .hf-hero .ds-btn.hf-cta { width: auto; }
}

/* ---- Chip row: the hub's groups, each with its picture --------------------------------------------------------- */
.hf-chips { padding: 2px 0 0; }
/* the row bleeds through the column's side padding so a chip can scroll in from the edge, and lines up with the text */
.hf-chips-row { list-style: none; margin: 0 -24px; display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; padding: 4px 40px 10px 24px; scroll-padding-left: 24px;
  scrollbar-width: thin; scrollbar-color: rgba(15,82,87,.35) transparent;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.hf-chips-row::-webkit-scrollbar { height: 6px; }
.hf-chips-row::-webkit-scrollbar-thumb { background: rgba(15,82,87,.3); border-radius: 3px; }
.hf-chips-row li { flex: none; scroll-snap-align: start; }
.hf-chip { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 5px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line); box-shadow: var(--e1); color: var(--dark-teal);
  font-weight: 700; font-size: 14.5px; line-height: 1.2; white-space: nowrap; text-decoration: none;
  transition: border-color .15s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease), color .15s; }
.hf-chip img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: var(--tint); }
.hf-chip img.hf-pack { object-fit: contain; background: #fff; padding: 3px; box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) {
  .hf-chip:hover { border-color: var(--teal); color: var(--teal); box-shadow: var(--e2); transform: translateY(-2px); }
}
.hf-chip:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
@media not all and (hover: hover) and (pointer: fine) {
  @media (prefers-reduced-motion: no-preference) { .hf-chip:active { transform: scale(.97); } }
}
@media (max-width: 600px) {
  .hf-chips { padding: 0; }
  .hf-chips-row { margin: 0 -18px; padding: 2px 40px 8px 18px; scroll-padding-left: 18px; gap: 8px; }
  .hf-chip { height: 44px; padding-right: 15px; font-size: 14px; gap: 9px; }
  .hf-chip img { width: 34px; height: 34px; }
}

/* ---- The first grid comes up under the chips ------------------------------------------------------------------- */
.ds-section.hf-grid { padding-top: 14px; }
.hf-grid > .ds-wrap > .head { margin-bottom: 22px; }
.hf-guide { margin: 18px 0 0; max-width: 70ch; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 600px) {
  .ds-section.hf-grid { padding-top: 10px; }
  .hf-grid > .ds-wrap > .head { margin-bottom: 14px; }
  .hf-grid > .ds-wrap > .head .ds-eyebrow { display: none; }   /* the hero right above already names the section */
}

/* ---- Trust facts + the other sections ---------------------------------------------------------------------------- */
.hf-facts { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(32px, 4.5vw, 52px) 0; }
.hf-facts h2 { margin-bottom: 20px; }
.hf-facts-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hf-facts-list li { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: var(--r-widget);
  background: var(--cream); border: 1px solid var(--line); }
.hf-facts-list .hf-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 12px; background: var(--grad-primary); color: #fff; box-shadow: 0 6px 16px rgba(15,82,87,.24); }
.hf-facts-list .hf-ico svg { width: 21px; height: 21px; }
.hf-facts-list span.hf-k { display: block; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 3px; }
.hf-facts-list span.hf-v { display: block; color: var(--dark-teal); font-size: 16px; font-weight: 800; line-height: 1.35; }
.hf-facts-list a { color: var(--teal); font-weight: 700; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.hf-facts-list a:hover { color: var(--dark-teal); }
.hf-facts-list a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.hf-related { padding: clamp(28px, 4vw, 44px) 0 clamp(40px, 5vw, 64px); }
.hf-related h2 { font-size: clamp(19px, 2.2vw, 22px); margin-bottom: 14px; }
.hf-related-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hf-related-row a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: var(--r-ctl);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--dark-teal); font-weight: 700; font-size: 14.5px;
  line-height: 1.3; text-decoration: none; transition: border-color .15s, color .15s; }
.hf-related-row a:hover { border-color: var(--teal); color: var(--teal); }
.hf-related-row a:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
@media (max-width: 860px) { .hf-facts-list { grid-template-columns: 1fr; gap: 10px; } .hf-facts-list li { padding: 14px 16px; } }
@media (prefers-reduced-motion: reduce) { .hf-chip, .hf-related-row a { transition: none; } }
