/* Home hero hub: the hero (theme 3.42.0; round 3 layout and the channel row switch from the approved demo Version 13, Dennis 17 Oct 2026 12:41 UTC).
   Ported from the approved demo (css-01-hero); body.hh-hub is set by the theme when the hub is on. */
.egw-home #s-hero .wrap { position: relative; }
.egw-home .hh-hero .hh-probe { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; z-index: -1; margin: 0; }
.egw-home .hh-hero .slide-text { margin-top: 0; align-content: start; container: hhslide / inline-size; }
.egw-home #s-hero.hh-void-on #hhSlide { width: 100%; }
.egw-home .hh-hero .slide-text > :empty, .egw-home .hh-hero .slide-text > [hidden] { display: none; }
.egw-home .hh-hero .hero-grid { overflow-anchor: none; }
/* round 3 (Dennis 17 Oct, "too much space"): a lower top for the hero, 32 px on phones and tablets, 40 px on desktop (was 56) */
.egw-home #s-hero.hh-hero { --hh-hero-pt: clamp(2rem, 3vw, 2.5rem); padding-top: var(--hh-hero-pt); }
.egw-home .hh-hero .hh-src { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); margin-bottom: calc(var(--s-4) - var(--hh-gap, var(--s-5))); }
.egw-home .hh-hero .hh-src-a { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 0; }
.egw-home .hh-hero .hh-src .src-ic { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); }
.egw-home .hh-hero .hh-src .src-ic .hi { width: 16px; height: 16px; }
.egw-home .hh-hero .hh-src-a .hh-micro { color: var(--ink); }
.egw-home .hh-hero .hh-src .ty { display: inline-flex; align-items: center; gap: var(--s-2); }
.egw-home .hh-hero .hh-src .sep { font-weight: 700; color: var(--ink-2); }
.egw-home .hh-hero :is(h1, .hh-h1) { font-size: var(--t-hero); line-height: 1.06; letter-spacing: -.02em; font-weight: 400; text-wrap: balance; max-width: 13ch; }
.egw-home .hh-hero :is(h1, .hh-h1) em { font-style: normal; display: block; font-size: .82em; margin-top: .12em; color: var(--muted); }
.egw-home .hh-hero .hh-long :is(h1, .hh-h1) { font-size: clamp(2.2rem, 4.4vw, 3.4rem); max-width: 16ch; }
.egw-home .hh-hero .hh-xlong :is(h1, .hh-h1) { font-size: clamp(2rem, 3.8vw, 3rem); max-width: 18ch; }
.egw-home #hhTitle:focus { outline: none; }
.egw-home .hh-hero .slide-text .when { gap: var(--s-2); }
.egw-home .hh-hero .slide-text .when .pill { height: 30px; }
.egw-home .hh-hero .slide-text .when .pill .hi { width: 14px; height: 14px; }
.egw-home .hh-hero .hh-you, .egw-home .hh-hero .hh-dest { margin-top: calc(var(--s-3) - var(--hh-gap, var(--s-5))); }
.egw-home #hhSlide { scroll-margin-top: calc(var(--nav-height, 84px) + var(--hh-strip-h, 0px) + var(--s-3)); }
.egw-home .hh-hero .hh-you { font-size: var(--t-sm); line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
.egw-home .hh-hero .hh-you .hi { display: inline-block; width: 16px; height: 16px; margin-right: var(--s-2); vertical-align: -3px; }
.egw-home .hh-hero .hh-note { display: flex; align-items: flex-start; gap: var(--s-2); font-size: var(--t-sm); font-weight: 600; line-height: 1.4; color: var(--ink); }
.egw-home .hh-hero .hh-note .hi { width: 16px; height: 16px; margin-top: 1px; }
.egw-home .hh-hero .hh-dest { font-size: var(--t-xs); font-weight: 500; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; min-width: 0; text-wrap: balance; }
.egw-home .hh-hero .hh-dest .hi { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.egw-home .hh-hero .hh-void-box { justify-self: center; width: 100%; max-width: 44ch; }
.egw-home .hh-hero .hh-void-box .hh-void { padding-block: var(--s-6); }
.egw-home.is-live .hh-hero .pager { visibility: visible; opacity: 1; pointer-events: auto; }
.egw-home.is-live .hh-hero .frame-foot .bar, .egw-home.is-live .hh-hero .frame-foot .count { visibility: visible; }
.egw-home .hh-hero .pager { margin-top: var(--s-6); }
.egw-home .hh-hero .dots { gap: 0; }
.egw-home .hh-hero .dots button { position: relative; width: 12px; margin: 0 6px; }
.egw-home .hh-hero .dots button::before { content: ""; position: absolute; inset: -9px -6px; }
.egw-home .hh-hero .dots button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 999px; }
.egw-home .hh-hero .dots button[aria-current="true"] { width: 28px; background: var(--ink-2); }
.egw-home .hh-hero .dots button[aria-current="true"]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform-origin: left; }
.egw-home .hh-hero .dots.run button[aria-current="true"]::after { animation: hero-dot var(--dur, 8s) linear both; }
.egw-home #s-hero.is-held .dots button[aria-current="true"]::after, .egw-home #s-hero.is-held .frame-foot .bar i { animation-play-state: paused; }
@keyframes hero-dot { from { transform: scaleX(0); } to { transform: scaleX(1); }  }
.egw-home .hh-hero .pause-on .p-pause, .egw-home .hh-hero #hhPause:not(.pause-on) .p-play { display: none; }
.egw-home .hh-hero #hhPause.pause-on .p-play { display: block; }
.egw-home .hh-hero #hhPause.pause-on { background: var(--btn); color: var(--btn-fg); border-color: var(--btn); }
.egw-home .hh-hero .ctl .round:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.egw-home .hh-hero .ctl .round .i { width: 18px; height: 18px; }
.egw-home #s-hero.hh-one .frame-foot .bar, .egw-home #s-hero.hh-one:not(.is-live-slide) .frame-foot .count { visibility: hidden; }
/* one slide: no pager at all (a hidden pager kept 44 px and its margin); fit() then counts no foot row */
.egw-home #s-hero.hh-one .pager { display: none; }
.egw-home #s-hero.hh-one:not(.is-live-slide) .frame-foot { display: none; }
/* round 3 (Dennis 17 Oct 10:29, "the space under wide pictures closed"): the row hugs each slide (js heroRow) and eases .65s between
   slides, as the frame does; the columns shift for a square or a wide picture (hh-sq, hh-wide, below) */
.egw-home .hh-hero .poster-wrap { align-content: center; align-items: center; transition: min-height .65s var(--ease-out); }
.egw-home .hh-hero #hhSlide { transition: min-height .65s var(--ease-out); }
.egw-home .hh-hero .hero-grid { transition: grid-template-columns .65s var(--ease-out); }
.egw-home .hh-hero #hhFrame { align-self: center; height: max-content; touch-action: pan-y; -webkit-user-select: none; user-select: none; transition: width .65s var(--ease-out), transform .7s var(--ease-out), box-shadow .4s var(--ease-out), translate .3s var(--ease-spring); }
.egw-home .hh-hero #hhFrame.is-drag { transition: width .65s var(--ease-out), translate 0s; cursor: grabbing; }
.egw-home .hh-hero .poster { transition: none; transform: none; }
.egw-home .hh-hero .poster.on { z-index: 2; }
.egw-home .hh-hero .poster.out { opacity: 1; z-index: 1; }
.egw-home .hh-hero .poster img { object-fit: cover; -webkit-user-drag: none; }
.egw-home .hh-hero .poster > .hh-vid { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; display: block; }
.egw-home .hh-hero .poster > .hh-snd { position: absolute; right: var(--s-4); bottom: var(--s-4); z-index: 3; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--s-5); border: 1px solid var(--btn); border-radius: var(--r-pill); background: var(--btn); color: var(--btn-fg); font: 600 .875rem/1 var(--font); cursor: pointer; }
.egw-home .hh-hero .poster > .hh-snd[hidden] { display: none; }
.egw-home .hh-hero .poster > .hh-snd:focus-visible { outline: 2px solid var(--btn); outline-offset: 3px; }
.egw-home .hh-hero .poster > .hh-poster { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.egw-home .hh-hero .frame-foot { min-height: 50px; }
.egw-home .hh-hero .frame-foot .micro { white-space: nowrap; }
.egw-home .frame-foot .bar i.run { animation-duration: var(--dur, 8s); }
.egw-home .hh-hero .frame-live { display: inline-flex; white-space: nowrap; font-size: var(--t-micro); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.egw-home .hh-hero .frame-live[hidden], .egw-home .hh-hero .hh-elapsed[hidden] { display: none; }
.egw-home .hh-hero .hh-elapsed { flex: 1; min-width: 5ch; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.egw-home #s-hero.is-live-slide .frame-foot .bar { display: none; }
.egw-home .is-live-slide #hhBtns .btn:first-child { position: relative; }
.egw-home .is-live-slide #hhBtns .btn:first-child::after { content: ""; position: absolute; inset: -1px; border: 2px solid var(--ink); border-radius: inherit; opacity: 0; pointer-events: none; animation: live-halo 2.4s var(--ease-out) infinite; }
.egw-home .hh-hero #hhFrame.hh-fw-s .frame-foot { flex-wrap: wrap; row-gap: var(--s-1); }
.egw-home #s-hero.is-live-slide #hhFrame.hh-fw-s .frame-foot .count { flex: 1 1 100%; text-align: center; }
.egw-home #s-hero.is-live-slide #hhFrame.hh-fw-s .frame-foot { justify-content: center; column-gap: var(--s-3); }
.egw-home #s-hero.is-live-slide #hhFrame.hh-fw-s #hhElapsed { flex: none; min-width: 0; }
.egw-home .hh-rail { display: none; position: relative; gap: var(--s-2); flex-wrap: wrap; justify-content: center; margin-bottom: var(--s-5); }
body.hh-hub .egw-home .hh-rail { display: flex; }
.egw-home .hh-rail button { display: inline-flex; align-items: center; gap: var(--s-2); height: 40px; padding: 0 14px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--page); color: var(--ink); font: 600 var(--t-sm)/1 var(--font); white-space: nowrap; cursor: pointer; transition: background-color var(--d-micro) var(--ease-out), border-color var(--d-micro) var(--ease-out), color var(--d-micro) var(--ease-out); }
.egw-home .hh-rail button:not([aria-pressed="true"]):hover { border-color: var(--muted); background: var(--tint-1); }
.egw-home .hh-rail button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.egw-home .hh-rail button .hi { width: 16px; height: 16px; }
.egw-home .hh-rail button b { min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: var(--r-pill); background: var(--well); color: var(--ink); font-size: var(--t-count); font-weight: 700; font-variant-numeric: tabular-nums; }
.egw-home .hh-rail button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--page); }
.egw-home .hh-rail button[aria-pressed="true"] b { background: var(--page); color: var(--ink); }
.egw-home .hh-rail button[aria-pressed="true"].lv .hh-dot-live { background: var(--page); }
.egw-home .hh-rail button.is-pulse { animation: hero-pulse 1.2s var(--ease-out) 1; }
.egw-home .hh-rail-more { display: none; position: absolute; z-index: 2; top: 4px; right: 0; width: calc(var(--s-3) + 44px + var(--gutter)); height: 44px; place-items: center; padding: 0 var(--gutter) 0 var(--s-3); border: 0; background: var(--page); color: var(--ink); cursor: pointer; }
.egw-home .hh-rail-more::after { content: ""; position: absolute; top: 0; left: var(--s-3); width: 44px; height: 44px; box-sizing: border-box; border-radius: 50%; border: 1px solid var(--line-strong); pointer-events: none; transition: border-color var(--d-micro) var(--ease-out); }
.egw-home .hh-rail-more .hi { width: 18px; height: 18px; }
.egw-home .hh-rail-more:hover::after { border-color: var(--muted); }
.egw-home .hh-rail-more:focus-visible { outline: none; }
.egw-home .hh-rail-more:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 2px; }
/* hidden from visitors (Dennis 17 Oct; option egw_hh_rail): visitors get no rail and no space for it (PHP prints none, #s-hero.hh-rail-off);
   leaders see it muted, marked "Hidden from visitors", and Manage has the eye at its end that hides or shows it */
body.hh-hub .egw-home #s-hero.hh-rail-off .hh-rail, body.hh-hub .egw-home #s-hero.hh-rail-off:not(.hh-zero) .hh-rail-more, body.hh-hub .egw-home #s-hero .hh-rail[hidden], body.hh-hub .egw-home #s-hero:not(.hh-zero) .hh-rail-more[hidden] { display: none; }
/* the eye sits at the end of the chips, one of them in size; the mark is a quiet caption under the row on desktop (1181 and up, where
   the row never wraps) and leads the swipe line below that */
.egw-home .hh-rail-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); border: 1px dashed var(--line-strong); color: var(--ink-2); font: 600 var(--t-xs)/1 var(--font); white-space: nowrap; flex: none; }
.egw-home .hh-rail-tag .hi { width: 14px; height: 14px; }
@media (min-width: 1181px) {
  .egw-home .hh-rail-tag { flex: 0 0 100%; justify-content: center; height: 20px; padding: 0; border: 0; margin-top: calc(-1 * var(--s-1)); color: var(--muted); }
}
.egw-home .hh-rail .hh-rail-eye { width: 40px; padding: 0; justify-content: center; background: transparent; color: var(--ink-2); }
.egw-home .hh-rail .hh-rail-eye .hi { width: 18px; height: 18px; }
.egw-home .hh-rail .hh-rail-eye:hover { color: var(--ink); }
.egw-home .hh-rail.is-off button[data-ch] { opacity: .55; border-style: dashed; }
.egw-home .hh-rail.is-off button[data-ch]:hover, .egw-home .hh-rail.is-off button[data-ch]:focus-visible { opacity: 1; }
@keyframes hero-pulse { from { box-shadow: 0 0 0 0 var(--live); } to { box-shadow: 0 0 0 6px color-mix(in srgb, var(--live) 0%, transparent); }  }
.egw-home .hh-hero .hh-setup { padding: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1); width: fit-content; max-width: 100%; background: transparent; border: 1px dashed var(--line); border-radius: var(--r-md); }
.egw-home .hh-hero:not(.hh-leader) .hh-setup { display: none; }
.egw-home .hh-setup .hh-setup-k { display: inline-flex; align-items: center; gap: 6px; padding: 0 6px; color: var(--muted); }
.egw-home .hh-setup .hh-setup-k .hi { width: 14px; height: 14px; }
.egw-home .hh-setup .hh-setup-k .hh-micro { font-size: 10.5px; letter-spacing: .1em; color: var(--muted); }
.egw-home .hh-setup .hh-setup-g { display: contents; }
.egw-home .hh-setup .hh-chip, .egw-home .hh-setup .hh-setup-edit { display: inline-flex; align-items: center; gap: var(--s-1); height: 30px; padding: 0 7px 0 6px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--page); color: var(--ink); font: 600 var(--t-xs)/1 var(--font); white-space: nowrap; cursor: pointer; transition: background-color var(--d-micro) var(--ease-out), border-color var(--d-micro) var(--ease-out), color var(--d-micro) var(--ease-out); }
.egw-home .hh-setup .hh-chip-ic { width: 14px; height: 14px; display: grid; place-items: center; flex: none; }
.egw-home .hh-setup .hh-chip-ic .hi, .egw-home .hh-setup .hh-setup-edit .hi { width: 14px; height: 14px; }
.egw-home .hh-setup .hh-chip:not([aria-pressed="true"]):hover, .egw-home .hh-setup .hh-setup-edit:hover { border-color: var(--muted); background: var(--tint-1); }
.egw-home .hh-setup .hh-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--page); }
.egw-home .hh-setup .hh-chip.is-soon { border-style: dashed; }
.egw-home .hh-setup .hh-chip.is-soon[aria-pressed="true"] { border-style: dashed; border-color: var(--page); box-shadow: 0 0 0 1px var(--ink); }
.egw-home .hh-setup .hh-setup-edit { background: transparent; padding: 0 var(--s-2) 0 6px; }
.egw-home .hh-setup :is(.hh-chip, .hh-setup-edit):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (pointer: coarse) {
  .egw-home .hh-setup .hh-chip, .egw-home .hh-setup .hh-setup-edit { height: 40px; }
}
.egw-home .hh-pv { display: grid; gap: var(--s-3); justify-items: start; text-align: left; container-type: inline-size; color: var(--ink); }
.egw-home .hh-pv .hh-pv-media { display: grid; place-items: center; width: 100%; max-height: 240px; background: var(--well); border-radius: var(--r-md); overflow: hidden; }
.egw-home .hh-pv .hh-pv-media img { display: block; max-width: 100%; max-height: 240px; object-fit: contain; }
.egw-home .hh-pv .hh-pv-media img.photo { width: 100%; height: 240px; object-fit: cover; }
.egw-home .hh-pv .hh-pv-media.is-poster { background: transparent; }
.egw-home .hh-pv .hh-pv-media .hh-poster { height: 240px; width: auto; max-width: 100%; border-radius: var(--r-md); }
.egw-home .hh-pv .hh-pv-src { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.egw-home .hh-pv .hh-pv-ic { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--well); box-shadow: inset 0 0 0 1px var(--line-strong); }
.egw-home .hh-pv .hh-pv-ic .hi { width: 14px; height: 14px; }
.egw-home .hh-pv .hh-pv-t { font-size: var(--t-h3); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.egw-home .hh-pv .hh-pv-t em { display: block; font-style: normal; font-size: .82em; font-weight: 400; color: var(--ink-2); margin-top: 2px; }
.egw-home .hh-pv .hh-pv-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.egw-home .hh-pv .hh-pv-pills .pill { height: 26px; padding: 0 10px; }
.egw-home .hh-pv .hh-pv-pills .pill .hi { width: 13px; height: 13px; }
.egw-home .hh-pv .hh-pv-btns { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.egw-home .hh-pv .hh-pv-btns .btn { min-height: 40px; padding: 0 var(--s-4); font-size: var(--t-sm); }
.egw-home .hh-pv .hh-pv-dest { display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 500; color: var(--ink-2); overflow-wrap: anywhere; min-width: 0; }
.egw-home .hh-pv .hh-pv-dest .hi { width: 14px; height: 14px; }
@container (max-width: 300px) {
  .hh-pv > * { justify-self: center; text-align: center; }
  .hh-pv .hh-pv-pills, .hh-pv .hh-pv-dest { justify-content: center; }
  .hh-pv .hh-pv-src { flex-direction: column; gap: var(--s-1); }
  .hh-pv .hh-pv-btns { display: grid; width: 100%; }
}
.egw-home #s-hero.hh-zero .hh-rail, .egw-home #s-hero.hh-zero .pager { display: none; }
.egw-home #s-hero.hh-void-on .poster-wrap { display: none; }
.egw-home #s-hero.hh-void-on .hero-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
/* side by side (961 px and up; round 3, Dennis 17 Oct). The copy and the card share one top edge. The row hugs each slide (js heroRow,
   Dennis 17 Oct 10:29): it is this slide's card, or this slide's copy with its pager when that is taller, so the row, the pager and the
   page below ease .65s between slides. When the card is the taller the pager sits on the frame foot's centre line (14 px frame padding +
   (50 px foot - 44 px buttons) / 2 = 17 px); when the copy is the taller the pager keeps its 24 px under the copy. A square card (hh-sq,
   .9 to 1.3) takes .55 of the row; a wide picture (hh-wide, 16:10 and wider) takes .575 and starts on the tall cards' top line (09:59) */
@media (min-width: 961px) {
  .egw-home .hh-hero .hh-text { align-self: stretch; display: flex; flex-direction: column; }
  .egw-home .hh-hero .hh-text > #hhSlide { flex: 1 0 auto; align-content: start; margin-bottom: var(--s-5); }
  .egw-home #s-hero.hh-sq .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .egw-home #s-hero.hh-sq .poster-wrap { max-width: none; }
  .egw-home #s-hero.hh-wide .hero-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .egw-home #s-hero.hh-wide .poster-wrap { max-width: none; align-content: start; }
  /* beside a wide picture or a square card the copy column is narrower, so a default title takes the long-title scale (54.4 px at 1440) */
  .egw-home #s-hero:is(.hh-wide, .hh-sq) #hhSlide:not(.hh-long):not(.hh-xlong) :is(h1, .hh-h1), .egw-home .hh-hero .hh-probe.hh-pw:not(.hh-long):not(.hh-xlong) :is(h1, .hh-h1) { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
  .egw-home .hh-hero .hh-text > #hhSetup { flex: none; margin-top: auto; }
  /* the pager is as wide as the narrowest copy column in the list (--hh-pgw, js fit), so Prev, Next and Pause keep one place on every slide */
  .egw-home .hh-hero .pager { margin-top: auto; margin-bottom: 17px; width: var(--hh-pgw, auto); max-width: 100%; }
  .egw-home .hh-hero.hh-leader .hh-text > #hhSetup + .pager { margin-top: var(--s-4); }
  .egw-home .hh-hero .hero-grid { align-items: stretch; }
  .egw-home .hh-hero .poster-wrap { align-content: start; justify-items: center; }
  .egw-home .hh-hero #hhFrame { align-self: start; }
  /* desktop: the live foot keeps one 50 px row whenever it fits (it does from a 340 px card), so the live card is as tall as the others */
  .egw-home #s-hero.is-live-slide #hhFrame.hh-fw-s .frame-foot { justify-content: space-between; }
  .egw-home #s-hero.is-live-slide #hhFrame.hh-fw-s .frame-foot .count { flex: 0 1 auto; text-align: right; }
  .egw-home #s-hero.is-live-slide #hhFrame.hh-fw-s #hhElapsed { flex: 1; min-width: 5ch; }
}
/* the leaders' strip stays on one row on desktop in every language: when the full strip would wrap in its column, fit() steps it
   down. hh-st-1: the lock and the "Setup" caps go (still read by screen readers) and the chips tighten; hh-st-2: Edit shows its
   pencil only (the word is still read and is the button's tooltip), tighter still. Only a column too narrow for hh-st-2 wraps */
@media (min-width: 961px) {
  .egw-home .hh-setup.hh-st-1 .hh-setup-k, .egw-home .hh-setup.hh-st-2 .hh-setup-edit > span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .egw-home .hh-hero .hh-setup.hh-st-1 { row-gap: 4px; }
  .egw-home .hh-setup.hh-st-1 .hh-chip { padding: 0 5px 0 4px; }
  .egw-home .hh-setup.hh-st-1 .hh-setup-edit { padding: 0 6px 0 4px; }
  .egw-home .hh-hero .hh-setup.hh-st-2 { padding: 3px; gap: 3px; }
  .egw-home .hh-setup.hh-st-2 .hh-chip { padding: 0 4px; }
  .egw-home .hh-setup.hh-st-2 .hh-setup-edit { position: relative; width: 30px; padding: 0; justify-content: center; }
  /* hh-st-3 (long words, e.g. French leaders 961-1170): the chips drop their check/plus icons; pressed still shows as the ink fill */
  .egw-home .hh-setup.hh-st-3 .hh-chip .hh-chip-ic { display: none; }
  /* hh-st-4 (round 3): the copy column beside a wide picture at 961-1100 is about 342 px; the chips tighten once more */
  .egw-home .hh-hero .hh-setup.hh-st-4 { padding: 2px; gap: 2px; }
  .egw-home .hh-setup.hh-st-4 .hh-chip { font-size: 11px; padding: 0 3px; height: 28px; }
  .egw-home .hh-setup.hh-st-4 .hh-setup-edit { width: 26px; height: 28px; }
}
/* short desktop screens (laptops 768-820 px tall): a smaller default title and a two-line lead keep the card foot and the pager
   above the fold (54.4 px is the hh-long size; long and extra-long titles keep their own smaller sizes) */
@media (min-width: 961px) and (max-height: 820px) {
  .egw-home .hh-hero :is(h1, .hh-h1) { font-size: 54.4px; }
  .egw-home .hh-hero .slide-text { --hh-gap: var(--s-4); row-gap: var(--hh-gap); }
  .egw-home .hh-hero .slide-text .lead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}
/* signed-in leaders carry the Setup strip (78 px more under the copy): up to 900 px tall their hero takes the short-laptop copy too */
@media (min-width: 961px) and (max-height: 900px) {
  .egw-home .hh-hero.hh-leader :is(h1, .hh-h1) { font-size: 54.4px; }
  .egw-home .hh-hero.hh-leader .slide-text { --hh-gap: var(--s-4); row-gap: var(--hh-gap); }
  .egw-home .hh-hero.hh-leader .slide-text .lead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}
/* desktop: a wide poster (16:10 and wider, fit() sets is-wide) starts on the tall cards' top line (Dennis 17 Oct 09:59; 3.44.0 centred
   it); the row under it closes to the card or the copy (10:29) */
@media (min-width: 961px) {
  .egw-home .hh-hero #hhFrame.is-wide { align-self: start; }
}
/* 961-1100: the fixed cookie button sits at the bottom left; the leaders' strip moves clear of it */
@media (min-width: 961px) and (max-width: 1100px) {
  .egw-home .hh-hero.hh-leader #hhSetup { margin-left: 32px; max-width: calc(100% - 32px); }
}
@media (max-width: 960px) {
  .egw-home .hh-hero .hh-src, .egw-home .hh-hero .hh-note, .egw-home .hh-hero .hh-setup { justify-content: center; }
  .egw-home .hh-hero .hh-you, .egw-home .hh-hero .hh-note, .egw-home .hh-hero .hh-dest { text-align: center; }
  .egw-home .hh-hero :is(h1, .hh-h1) { margin-inline: auto; }
  body.hh-hub .egw-home .hh-hero .hh-text { display: contents; }
  body.hh-hub .egw-home .hh-hero .hero-grid { display: flex; flex-direction: column; align-items: center; gap: var(--s-6); }
  body.hh-hub .egw-home .hh-hero #hhSlide { order: 1; width: 100%; align-content: center; }
  body.hh-hub .egw-home .hh-hero .poster-wrap { order: 2; }
  /* a wide picture takes a wider card on tablets too: up to 600 px instead of the kit's 440; stacked, the wrap hugs the frame on every slide */
  body.hh-hub .egw-home #s-hero.hh-wide .poster-wrap { max-width: 600px; align-content: start; }
  body.hh-hub .egw-home .hh-hero .pager { order: 3; margin-top: calc(var(--s-4) - var(--s-6)); }
  body.hh-hub .egw-home .hh-hero #hhSetup { order: 4; width: 100%; margin-top: calc(var(--s-5) - var(--s-6)); padding: 6px; }
  .egw-home .hh-setup .hh-setup-k { flex: 1 1 100%; justify-content: center; padding: 2px 0; }
  .egw-home .hh-setup .hh-setup-edit { margin-left: 0; }
  .egw-home .hh-setup .hh-chip, .egw-home .hh-setup .hh-setup-edit { height: 36px; }
}
@media (max-width: 960px) and (pointer: coarse) {
  .egw-home .hh-setup .hh-chip, .egw-home .hh-setup .hh-setup-edit { height: 40px; }
}
/* 1180 and below (round 3, Dennis 17 Oct): the rail is one swipe line at every width under the desktop, never two rows with an orphan
   chip; its end button brings the next cut chip into view. Leaders: the hidden mark and the eye lead the line */
@media (max-width: 1180px) {
  body.hh-hub .egw-home .hh-rail { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; justify-content: safe center; scrollbar-width: none; padding: 4px var(--gutter); margin-inline: calc(-1 * var(--gutter)); scroll-padding-inline: var(--gutter); }
  .egw-home .hh-rail::-webkit-scrollbar { display: none; }
  .egw-home .hh-rail button { flex: none; scroll-snap-align: center; }
  .egw-home .hh-rail-tag { order: -2; }
  .egw-home .hh-rail .hh-rail-eye { order: -1; }
  .egw-home .hh-rail-more { height: 40px; }
  .egw-home .hh-rail-more::after { width: 40px; height: 40px; }
  body.hh-hub .egw-home #s-hero:not(.hh-zero) .hh-rail.hh-fr + .hh-rail-more { display: grid; }
}
@media (max-width: 640px) {
  body.hh-hub .egw-home .hh-hero .slide-text { --hh-gap: var(--s-4); row-gap: var(--hh-gap); }
  body.hh-hub .egw-home .hh-hero .hero-grid { gap: var(--s-5); }
  body.hh-hub .egw-home .hh-hero #hhFrame { max-width: 300px; margin-inline: auto; }
  body.hh-hub .egw-home #s-hero.hh-wide #hhFrame { max-width: none; } /* round 3: a wide picture takes the phone's full width */
  body.hh-hub .egw-home .hh-hero .pager { margin-top: calc(var(--s-4) - var(--s-5)); flex-wrap: wrap; justify-content: center; gap: var(--s-2); max-width: 100%; }
  body.hh-hub .egw-home .hh-hero .pager .ctl { gap: var(--s-3); }
  body.hh-hub .egw-home .hh-hero .dots { min-height: 44px; } /* a wrapped pager keeps the dots' 44 px hit row clear of the buttons */
  body.hh-hub .egw-home .hh-hero .dots button { width: 6px; margin: 0 2px; }
  body.hh-hub .egw-home .hh-hero .dots button[aria-current="true"] { width: 28px; }
  body.hh-hub .egw-home .hh-hero #hhSetup { margin-top: 0; }
  /* the rail's chips are 44 px tall on phones */
  .egw-home .hh-rail button { height: 44px; padding: 0 var(--s-3); }
  .egw-home .hh-rail .hh-rail-eye { width: 44px; }
  .egw-home .hh-rail-more { height: 44px; }
  .egw-home .hh-rail-more::after { width: 44px; height: 44px; }
  .egw-home .hh-hero .dots button::before { inset: -19px -5px; }
  .egw-home #s-hero.is-live-slide .frame-foot { justify-content: center; column-gap: var(--s-3); flex-wrap: wrap; }
  .egw-home #s-hero.is-live-slide #hhElapsed { flex: none; min-width: 0; }
  .egw-home #s-hero.is-live-slide #hhCount { flex-basis: 100%; text-align: center; }
  .egw-home .hh-hero .hh-src { display: grid; justify-items: center; gap: var(--s-1); }
  .egw-home .hh-hero .hh-src .sep { display: none; }
  .egw-home .hh-hero .slide-text :is(h1, .hh-h1) { font-size: clamp(2.25rem, 9.5vw, 2.6rem); max-width: none; }
  .egw-home .hh-hero .slide-text.hh-xlong :is(h1, .hh-h1) { font-size: clamp(2rem, 8.4vw, 2.3rem); }
  .egw-home .hh-hero .slide-text .actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); width: 100%; }
  .egw-home .hh-hero .slide-text .actions > :only-child { grid-column: 1 / -1; }
  .egw-home .hh-hero .slide-text .actions .btn { min-width: 0; padding-inline: var(--s-3); white-space: normal; text-align: center; line-height: 1.2; }
}
@media (max-width: 400px) {
  body.hh-hub .egw-home .hh-hero .dots button:not([aria-current="true"]) { width: 5px; height: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .egw-home .hh-hero .dots button[aria-current="true"]::after, .egw-home .hh-hero .dots.run button[aria-current="true"]::after { animation: none; transform: none; }
  .egw-home .is-live-slide #hhBtns .btn:first-child::after { content: none; }
  .egw-home .hh-rail button.is-pulse { animation: none; }
  /* the row, the frame and its media change size in one instant step (the row hugs the frame, so none of them may lag the others) */
  .egw-home .hh-hero #hhFrame, .egw-home .hh-hero .poster-stack, .egw-home .hh-hero .poster-wrap, .egw-home .hh-hero #hhSlide, .egw-home .hh-hero .hero-grid { transition: none; }
}
