/* Phase 2F-C: existing About photograph/caption and six programme pages.
   This file loads last only on About, Programmes and Programme Detail pages.
   It does not affect the header, payments, forms or other completed pages. */
@media(max-width:850px){
  /* Targeted repair for the extra ~180px blank gap in the real About screenshot.
     The mobile script groups this one photograph and caption in DOM order. */
  body[data-sf2fb-page="about"] .sf2fc-who-media-column,
  body[data-sf2fb-page="about"] .sf2fc-who-photo-group{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:0!important;
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    min-height:0!important;
    height:auto!important;
    padding-bottom:0!important;
  }
  body[data-sf2fb-page="about"] .sf2fc-who-imagebox{
    display:block!important;
    position:relative!important;
    flex:0 0 auto!important;
    width:100%!important;
    max-width:100%!important;
    min-height:0!important;
    height:auto!important;
    aspect-ratio:auto!important;
    margin-bottom:0!important;
    padding-bottom:0!important;
  }
  body[data-sf2fb-page="about"] .sf2fc-who-photo{
    display:block!important;
    position:static!important;
    inset:auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    vertical-align:top;
    object-fit:cover;
  }
  body[data-sf2fb-page="about"] .sf2fc-who-caption{
    position:static!important;
    float:none!important;
    transform:none!important;
    flex:0 0 auto!important;
    align-self:stretch!important;
    width:100%!important;
    max-width:100%!important;
    min-height:0!important;
    height:auto!important;
    margin:14px 0 0!important;
    padding:0!important;
    line-height:1.55!important;
    text-align:left;
  }
}
/* Programme sections preserve their established 50/50 desktop imagery and
   editorial typography. Tablet text must not remain in cramped half columns. */
@media(max-width:980px){
  .p2b-focus-grid,.p2b-detail-intro-layout{
    grid-template-columns:minmax(0,1fr)!important;
    gap:clamp(22px,4vw,42px)!important;
  }
  .p2b-focus-grid > *, .p2b-detail-intro-layout > * {min-width:0;max-width:100%}
  .p2b-programme-copy-inner{width:100%;min-width:0}
  .p2b-related-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .p2b-related-card:last-child {display:block}
}
@media(max-width:800px){
  .p2b-overview-hero,.p2b-overview-inner{min-height:535px!important;height:auto!important}
  .p2b-overview-inner{display:flex;flex-direction:column;justify-content:space-between;gap:30px;padding-top:26px!important;padding-bottom:46px!important}
  .p2b-overview-copy{max-width:100%!important;padding-top:50px!important;margin:0!important}
  .p2b-overview-hero::after{background:linear-gradient(0deg,rgba(24,50,63,.97) 0%,rgba(24,50,63,.83) 48%,rgba(24,50,63,.26) 100%)!important}
  .p2b-overview-visual{inset:0!important}
  .p2b-overview-visual img{object-position:50% 36%}
  .p2b-overview-copy h1{max-width:680px;margin:12px 0 16px!important;font-size:clamp(38px,7.6vw,59px)!important;line-height:1.12!important;text-wrap:balance}
  .p2b-overview-copy p{max-width:650px;font-size:clamp(14px,2.1vw,17px)!important;line-height:1.6!important;margin-bottom:22px!important}
  .p2b-programme-feature,.p2b-programme-feature.p2b-programme-reverse{grid-template-columns:minmax(0,1fr)!important;height:auto!important;min-height:0!important}
  .p2b-programme-feature-image,.p2b-programme-feature.p2b-programme-reverse .p2b-programme-feature-image{
    grid-column:1!important;grid-row:1!important;width:100%!important;height:clamp(265px,50vw,390px)!important;min-height:0!important}
  .p2b-programme-feature-copy,.p2b-programme-feature.p2b-programme-reverse .p2b-programme-feature-copy{
    grid-column:1!important;grid-row:2!important;width:100%!important;min-width:0!important}
  .p2b-programme-copy-inner{padding:clamp(30px,5vw,52px) max(22px,5vw) clamp(38px,5vw,54px)!important;max-width:720px!important;margin:0 auto!important}
  .p2b-programme-copy-inner h3{font-size:clamp(31px,5.8vw,48px)!important;line-height:1.14!important;max-width:100%;margin:10px 0 15px!important;text-wrap:balance}
  .p2b-programme-copy-inner .p2b-feature-intro{font-size:clamp(17px,2.45vw,21px)!important;line-height:1.47!important}
  .p2b-programme-copy-inner p:not(.p2b-feature-intro){line-height:1.68!important}
  .p2b-detail-hero,.p2b-detail-hero.p2b-detail-hero-reverse{grid-template-columns:minmax(0,1fr)!important;min-height:0!important;height:auto!important}
  .p2b-detail-hero-image,.p2b-detail-hero-reverse .p2b-detail-hero-image{
    grid-column:1!important;grid-row:1!important;min-height:0!important;height:clamp(275px,52vw,420px)!important}
  .p2b-detail-hero-copy,.p2b-detail-hero-reverse .p2b-detail-hero-copy{grid-column:1!important;grid-row:2!important;min-width:0!important}
  .p2b-detail-hero-inner,.p2b-detail-hero-reverse .p2b-detail-hero-inner{
    max-width:780px!important;width:100%!important;padding:clamp(30px,5vw,48px) max(22px,5vw) clamp(40px,5vw,60px)!important}
  .p2b-detail-hero-inner .breadcrumbs{margin-bottom:18px!important}
  .p2b-detail-hero-inner h1{font-size:clamp(37px,6.65vw,56px)!important;line-height:1.12!important;margin:12px 0 17px!important;max-width:100%;text-wrap:balance}
  .p2b-detail-hero-inner > p{font-size:clamp(15px,2.1vw,18px)!important;line-height:1.6!important;margin-bottom:22px!important}
  .p2b-response{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  .p2b-response-image{min-height:0!important;height:clamp(270px,51vw,390px)!important}
  .p2b-response-copy{min-height:0!important}
  .p2b-response-inner{padding:clamp(34px,5vw,60px) max(22px,5vw) clamp(42px,6vw,70px)!important}
  .p2b-related-card:last-child{display:block!important}
}
@media(max-width:540px){
  .p2b-overview-hero,.p2b-overview-inner{min-height:555px!important}
  .p2b-overview-copy{padding-top:36px!important}
  .p2b-overview-copy h1{font-size:clamp(36px,9.3vw,48px)!important;margin:8px 0 14px!important}
  .p2b-overview-copy p{font-size:14px!important;line-height:1.58!important}
  .p2b-overview-inner{gap:18px!important;padding-bottom:36px!important}
  .p2b-overview-intro h2,.p2b-showcase-heading h2{font-size:clamp(34px,8.1vw,44px)!important;line-height:1.14!important;text-wrap:balance}
  .p2b-showcase{padding-top:56px!important}
  .p2b-showcase-heading{padding-bottom:29px!important}
  .p2b-showcase-heading p,.p2b-overview-intro p{font-size:14px;line-height:1.67}
  .p2b-programme-feature-image,.p2b-programme-feature.p2b-programme-reverse .p2b-programme-feature-image{
    height:clamp(226px,62vw,310px)!important}
  .p2b-programme-copy-inner{padding:28px 21px 38px!important}
  .p2b-programme-copy-inner h3{font-size:clamp(30px,8.1vw,42px)!important}
  .p2b-detail-hero-image,.p2b-detail-hero-reverse .p2b-detail-hero-image{height:clamp(230px,66vw,320px)!important}
  .p2b-detail-hero-inner,.p2b-detail-hero-reverse .p2b-detail-hero-inner{padding:24px 21px 38px!important}
  .p2b-detail-hero-inner h1{font-size:clamp(36px,9.2vw,46px)!important}
  .p2b-detail-hero-inner .breadcrumbs{margin-bottom:13px!important}
  .p2b-focus-head h2,.p2b-response-inner h2{font-size:clamp(32px,8.3vw,43px)!important;line-height:1.16!important;text-wrap:balance}
  .p2b-focus-line{gap:17px!important;flex-wrap:nowrap;min-width:0}
  .p2b-focus-line > :first-child{min-width:0;overflow-wrap:anywhere}
  .p2b-response-image{height:clamp(240px,65vw,350px)!important}
  .p2b-related-grid{grid-template-columns:minmax(0,1fr)!important}
  .p2b-related-card{width:100%;min-width:0}
  .p2b-related-card:last-child{display:block!important}
  .p2b-actions{gap:10px!important}
  .p2b-actions .button{min-height:44px;white-space:normal;max-width:100%;justify-content:center;text-align:center}
}
@media(max-width:355px){
  .p2b-overview-copy h1{font-size:36px!important}
  .p2b-detail-hero-inner h1{font-size:36px!important}
  .p2b-actions{display:flex;flex-direction:column;align-items:stretch}
  .p2b-actions .button{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .p2b-programme-feature-image img,.p2b-related-photo img{transition:none!important;transform:none!important}
}
