/* Responsive finishing layer. Original copy, photo composition and hero remain
   unchanged; only section rhythm, usable controls and short-screen limits adapt. */
.section {
  margin-top: clamp(48px, 5vw, 64px);
}
/* Give the fixture and the two large photo sections a clearer entrance. */
main > :is(#screenings, #emirates, #matchday).section {
  margin-top: clamp(80px, 7vw, 88px);
}
@media (max-width: 767px) {
  main > :is(#screenings, #emirates, #matchday).section {
    margin-top: clamp(56px, 9vw, 64px);
  }
}
.section-head h2 {
  font-weight: 400;
  font-size: clamp(32px, calc(22px + 2.6vw), 48px);
  text-wrap: balance;
  overflow-wrap: break-word;
}
.section-head p, .context, .membership-benefits, .dialog-copy,
.apsc-footer__base p { overflow-wrap: break-word; }
.section-head { margin-bottom: clamp(20px, 2vw, 24px); }
.testimonials-section .section-head { margin-bottom: clamp(20px, 2vw, 24px); }
.testimonials-section .section-head h2 { margin-bottom: 0; }
.testimonials-section { padding-bottom: clamp(36px, 4vw, 52px); }
.section .button { max-width:100%; white-space:normal; text-align:center; }
.screening-layout > *, .membership > *, .community-layout > *,
.testimonial-byline > * { min-width:0; }
.ticket .button, .testimonial-link { min-height:44px; }
.site-header .editorial-brand { min-height:44px; display:flex; flex-direction:column; justify-content:center; }
@media(min-width:768px) { .site-header .editorial-brand { flex-direction:row; align-items:center; gap:.25em; } }
.map-wrap svg { height:clamp(180px, 32vw, 360px); max-width:940px; }
/* Do not let a zoomed or short-landscape menu run beyond the viewport. */
@media(max-width:1100px) {
  .site-header nav {
    max-height:calc(100vh - 80px);
    max-height:calc(100dvh - 80px - env(safe-area-inset-bottom, 0px));
    overflow-y:auto; overscroll-behavior:contain;
    padding-bottom:max(20px, env(safe-area-inset-bottom, 0px));
  }
}
@media(max-width:767px) {
  .site-header nav { max-height:calc(100vh - 88px); max-height:calc(100dvh - 88px - env(safe-area-inset-bottom, 0px)); }
  .screening-layout { grid-template-columns:minmax(0,1fr); gap:14px; }
  .screening-layout > .picture { min-height:0; height:auto; aspect-ratio:2!important; }
  .section-head p br, .membership-benefits br { display:none; }
  .context { font-size:13px; }
  .preview-note { font-size:11px; }
  .preview-note button { font-size:12px; min-height:44px; }
}
@media(max-width:359px) {
  .ticket { padding-inline:18px; }
  .ticket .button { width:100%; }
  .testimonial-card { padding:22px 20px; }
}
/* The source links stay easy to tap without enlarging the rest of each card. */
.testimonial-link { padding-bottom:4px; }
#emirates .emirates-board > .flip:focus-visible { outline-offset:2px; }
/* Shared information dialog: every action remains reachable in short viewports. */
#detail {
  width:min(520px, calc(100% - 32px));
  max-height:calc(100vh - 32px);
  max-height:calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  padding:36px clamp(22px, 4vw, 40px) 28px;
  overflow-y:auto; overscroll-behavior:contain;
}
#detail .close {
  width:44px; height:44px; min-height:44px;
  display:grid; place-items:center; padding:0; top:4px; right:8px;
}
#detail .eyebrow { padding-right:32px; }
#detail h2 { font-size:clamp(28px, 4vw, 34px); overflow-wrap:break-word; }
#detail .close-bottom { max-width:100%; }
@media(max-height:500px) and (min-width:640px) {
  .map-wrap svg { height:200px; }
  #detail { padding:24px 28px 20px; }
  #detail h2 { margin-block:12px; }
  .testimonials-section[data-review-mode="moving"] .testimonials-stage { height:340px; }
}

/* Edge-to-edge bulletin surfaces, using the document width rather than 100vw
   so a desktop scrollbar never creates horizontal overflow. Text keeps its
   familiar reading width and gutters; existing board composers handle resize. */
#club.section, #emirates.section {
  --board-text-gutter:28px;
  width:100%; max-width:none; padding-inline:0;
}
#club > .section-head, #emirates > .section-head {
  max-width:calc(940px + 2 * var(--board-text-gutter));
  padding-inline:var(--board-text-gutter);
}
#club > .context, #club > .section-action, #emirates > .section-action {
  max-width:1280px; margin-inline:auto; padding-inline:var(--board-text-gutter);
}
#club .legends.legends-layout-grid.legends-bulletin,
#emirates .emirates-board { width:100%; border-radius:0; }
@media(max-width:639px) {
  #club.section, #emirates.section { --board-text-gutter:20px; }
}

/* Nearly full-screen boards with a small device-safe breathing margin.
   Photo corners follow the hero's soft 10px treatment, without decoration. */
#club.section, #emirates.section {
  --board-edge:8px;
  --board-inset-left:max(var(--board-edge), env(safe-area-inset-left, 0px));
  --board-inset-right:max(var(--board-edge), env(safe-area-inset-right, 0px));
}
#club .legends.legends-layout-grid.legends-bulletin,
#emirates .emirates-board {
  width:calc(100% - var(--board-inset-left) - var(--board-inset-right));
  margin-left:var(--board-inset-left); margin-right:var(--board-inset-right);
}
#club .legends-bulletin .legends-grid-card,
#emirates .emirates-card .face { border-radius:14px; }
#club .legends-bulletin .legends-grid-card picture,
#club .legends-bulletin .legends-grid-card img,
#emirates .emirates-card .picture,
#emirates .emirates-card img { border-radius:10px; }
@media(min-width:640px) { #club.section, #emirates.section { --board-edge:16px; } }

/* No persistent design-helper controls. Keep a keyboard/screen-reader route to
   pause autoplay without reintroducing the removed preview strip. */
.focus-only-control:not(:focus-visible) {
  position:fixed!important; width:1px!important; height:1px!important;
  min-width:0!important; min-height:0!important; padding:0!important;
  margin:-1px!important; border:0!important; overflow:hidden!important;
  clip-path:inset(50%)!important; white-space:nowrap!important;
}
.focus-only-control:focus-visible {
  position:fixed; top:12px; left:12px; z-index:100;
  min-height:44px; padding:10px 18px; border:1px solid #8d2c2a;
  border-radius:8px; background:white; color:#1b1b1b;
}
/* The headings for these boards move into the surface after enhancement. */
#club[data-legends-section-ready] > .section-head,
#emirates[data-bulletin-ready] > .section-head { display:none; }
#club > .section-head:empty { display:none; }
