/* 1.0.47: mobile readability only. No colour, image or font-family changes.
   This stylesheet is loaded after all other Rescue styles.
   Text remains selectable, zoomable and content-sized. */
@media screen and (max-width:920px){
  body.emc-rescue-active{
    --emc-mobile-copy:1.0625rem;
    --emc-mobile-small:.875rem;
    --emc-mobile-label:.75rem;
  }

  body.emc-rescue-active #main .emc-heading-row,
  body.emc-rescue-active #main .emc-stats-head,
  body.emc-rescue-active #main .emc-about-reference{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.emc-rescue-active #main .emc-heading-row>*,
  body.emc-rescue-active #main .emc-stats-head>*,
  body.emc-rescue-active #main .emc-about-reference>*,
  body.emc-rescue-active #main .emc-about-reference-card,
  body.emc-rescue-active #main .emc-work-card,
  body.emc-rescue-active .emc-rescue-footer__inner>*{min-width:0;}
  body.emc-rescue-active #main .emc-about-reference__cards,
  body.emc-rescue-active #main .emc-work-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  body.emc-rescue-active .emc-rescue-footer__inner{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;}
  body.emc-rescue-active .emc-rescue-footer__brand{grid-column:1/-1;}
  body.emc-rescue-active .emc-rescue-footer__col:last-child{grid-column:auto;}

  /* Stop narrow tracks from squeezing content or causing a scaled-down page. */
  body.emc-rescue-active #main.emc-rescue-main,
  body.emc-rescue-active #main .emc-container,
  body.emc-rescue-active #main .emc-hero__copy,
  body.emc-rescue-active #main .emc-report-teaser,
  body.emc-rescue-active #main .emc-annual-report__copy,
  body.emc-rescue-active #main .emc-report-membership__route,
  body.emc-rescue-active #main .emc-resource-card__body{
    min-width:0;
  }
  body.emc-rescue-active #main .emc-container,
  body.emc-rescue-active .emc-rescue-header__inner,
  body.emc-rescue-active .emc-rescue-footer__inner,
  body.emc-rescue-active .emc-rescue-footer__bottom{
    width:calc(100% - 40px);
  }
  body.emc-rescue-active #main.emc-rescue-main p,
  body.emc-rescue-active #main.emc-rescue-main li,
  body.emc-rescue-active #main.emc-rescue-main dd,
  body.emc-rescue-active #main #arsrapport-2026 p,
  body.emc-rescue-active #main #vinnare-2026 p{
    font-size:var(--emc-mobile-copy)!important;
    line-height:1.65!important;
    letter-spacing:0!important;
    word-spacing:normal!important;
    overflow-wrap:anywhere;
  }
  body.emc-rescue-active #main.emc-rescue-main h1{
    font-size:clamp(2rem,8vw,2.625rem)!important;
    line-height:1.16!important;
    margin-bottom:24px!important;
    overflow-wrap:anywhere;
  }
  body.emc-rescue-active #main.emc-rescue-main h2,
  body.emc-rescue-active #main #arsrapport-2026 h2{
    font-size:clamp(1.75rem,6.8vw,2.125rem)!important;
    line-height:1.22!important;
    margin-bottom:20px!important;
    overflow-wrap:anywhere;
  }
  body.emc-rescue-active #main.emc-rescue-main h3,
  body.emc-rescue-active #main #arsrapport-2026 .emc-report-insights__heading h3,
  body.emc-rescue-active #main #arsrapport-2026 .emc-report-membership h3{
    font-size:1.5rem!important;
    line-height:1.3!important;
    margin-bottom:16px!important;
    overflow-wrap:anywhere;
  }
  body.emc-rescue-active #main #arsrapport-2026 .emc-report-insight h4,
  body.emc-rescue-active #main #arsrapport-2026 .emc-report-membership h4{
    font-size:1.375rem!important;
    line-height:1.35!important;
    margin-bottom:16px!important;
  }
  body.emc-rescue-active #main.emc-rescue-main .emc-kicker,
  body.emc-rescue-active #main .emc-winner-card__award,
  body.emc-rescue-active #main #arsrapport-2026 .emc-report-membership__audience,
  body.emc-rescue-active #main .emc-report-access__label{
    font-size:var(--emc-mobile-label)!important;
    line-height:1.55!important;
    margin-bottom:14px!important;
    overflow-wrap:anywhere;
  }

  /* Sources, captions and secondary notes stay distinct, but are no longer tiny. */
  body.emc-rescue-active #main #arsrapport-2026 p.emc-report-insight__source,
  body.emc-rescue-active #main #arsrapport-2026 .emc-report-insights__source p,
  body.emc-rescue-active #main #arsrapport-2026 p.emc-report-membership__hint,
  body.emc-rescue-active #main .emc-winner-card__caption,
  body.emc-rescue-active #main figcaption,
  body.emc-rescue-active #main p.emc-post-event-meta{
    font-size:var(--emc-mobile-small)!important;
    line-height:1.65!important;
    letter-spacing:0!important;
    overflow-wrap:anywhere;
  }
  body.emc-rescue-active #main #arsrapport-2026 .emc-report-insight__label{
    font-size:1rem!important;line-height:1.5!important;
  }
  body.emc-rescue-active #main #arsrapport-2026 .emc-report-insight__label>span{
    font-size:var(--emc-mobile-label)!important;
  }
  body.emc-rescue-active #main #arsrapport-2026 .emc-annual-stat h3{
    font-size:1.125rem!important;line-height:1.4!important;
  }
  body.emc-rescue-active #main #arsrapport-2026 .emc-annual-stat>strong{
    font-size:2.375rem!important;line-height:1.15!important;
  }

  /* Keep the report card spacious; never put a large heading in a sliver beside a cover. */
  body.emc-rescue-active #main .emc-hero__inner--post-event{
    grid-template-columns:minmax(0,1fr);padding-top:40px;padding-bottom:40px;gap:36px;
  }
  body.emc-rescue-active #main .emc-report-teaser{padding:24px 20px;max-width:100%;}
  body.emc-rescue-active #main .emc-report-teaser--with-cover .emc-report-teaser__intro{
    grid-template-columns:minmax(0,1fr);gap:22px;
  }
  body.emc-rescue-active #main .emc-report-teaser__intro h2{margin-bottom:0!important;}
  body.emc-rescue-active #main .emc-report-teaser__cover{grid-row:1;justify-self:center;width:120px;}
  body.emc-rescue-active #main #arsrapport-2026 .emc-annual-report__lead,
  body.emc-rescue-active #main #arsrapport-2026 .emc-annual-report__stats,
  body.emc-rescue-active #main #arsrapport-2026 .emc-report-access--editorial{
    grid-template-columns:minmax(0,1fr);gap:24px;
  }
  body.emc-rescue-active #main #arsrapport-2026 .emc-annual-report--summary{gap:32px;}
  body.emc-rescue-active #main #arsrapport-2026 .emc-annual-stat{padding:24px 22px;}
  body.emc-rescue-active #main #arsrapport-2026 .emc-report-access--editorial{padding:24px 20px;}
  body.emc-rescue-active #main .emc-resource-card{grid-template-columns:minmax(0,1fr);}
  body.emc-rescue-active #main .emc-resource-card__body{padding:24px 22px;min-height:0;}
  body.emc-rescue-active #main .emc-resource-card__image{min-height:0;aspect-ratio:16/10;}

  body.emc-rescue-active #main .emc-ekokock__inner{grid-template-columns:minmax(0,1fr);}
  body.emc-rescue-active #main .emc-ekokock__inner>*{min-width:0;}

  /* Larger, wrapping controls. The text is not reduced to fit the control. */
  body.emc-rescue-active #main.emc-rescue-main .emc-btn,
  body.emc-rescue-active #main #arsrapport-2026 .emc-btn,
  body.emc-rescue-active #main .emc-text-link,
  body.emc-rescue-active #main .emc-stat-card__go,
  body.emc-rescue-active #main .emc-about-reference-card__link,
  body.emc-rescue-active #main .emc-event-back{
    font-size:1rem!important;line-height:1.5!important;letter-spacing:0!important;
    white-space:normal;overflow-wrap:anywhere;max-width:100%;
  }
  body.emc-rescue-active #main .emc-btn,
  body.emc-rescue-active #main #arsrapport-2026 .emc-btn{
    min-height:48px;height:auto;min-width:0;
    padding:12px 18px!important;text-align:center;
  }
  body.emc-rescue-active #main .emc-text-link,
  body.emc-rescue-active #main .emc-event-back{min-height:44px;align-items:center;}
  body.emc-rescue-active #main .emc-text-link span[aria-hidden],
  body.emc-rescue-active #main .emc-btn span[aria-hidden]{flex-shrink:0;}

  body.emc-rescue-active #main .emc-partners{grid-template-columns:minmax(0,1fr)!important;}
  body.emc-rescue-active #main .emc-partners>*,
  body.emc-rescue-active #main .emc-partners__grid>*,
  body.emc-rescue-active #main .emc-partners__intro p{min-width:0;max-width:100%;}
  body.emc-rescue-active #main .emc-partners__grid{grid-template-columns:minmax(0,1fr);}

  /* Header stays at its existing height; the expanded menu gets readable rows. */
  body.emc-rescue-active .emc-rescue-nav a{
    font-size:1.0625rem!important;line-height:1.5!important;white-space:normal;
    min-height:48px;padding:12px 14px;overflow-wrap:anywhere;
  }
  body.emc-rescue-active .emc-rescue-menu-toggle{width:48px;height:48px;flex-shrink:0;}
  body.emc-rescue-active .emc-rescue-nav{
    max-height:calc(100vh - 112px);max-height:calc(100dvh - 112px);
    overflow-y:auto;overscroll-behavior:contain;
  }
  /* Correct WordPress toolbar offsets without moving the public desktop header. */
  body.emc-rescue-active.admin-bar .emc-rescue-header{top:32px;}

  /* Footer and forms use the existing typeface, not their old small text sizes. */
  body.emc-rescue-active .emc-rescue-footer__brand p,
  body.emc-rescue-active .emc-rescue-footer__col a,
  body.emc-rescue-active .emc-rescue-socials--stack a{
    font-size:1rem!important;line-height:1.65!important;letter-spacing:0!important;
    overflow-wrap:anywhere;
  }
  body.emc-rescue-active .emc-rescue-footer__col a{min-height:44px;padding:8px 0;margin-bottom:2px;}
  body.emc-rescue-active .emc-rescue-footer__col h2{
    font-size:.8125rem!important;line-height:1.5!important;margin-bottom:12px!important;
  }
  body.emc-rescue-active .emc-rescue-footer__bottom,
  body.emc-rescue-active .emc-rescue-footer__bottom span{
    font-size:var(--emc-mobile-small)!important;line-height:1.6!important;
  }
  body.emc-rescue-active .emc-rescue-socials:not(.emc-rescue-socials--stack) a{
    width:44px;height:44px;font-size:1rem!important;
  }
  body.emc-rescue-active #main .wpforms-container label,
  body.emc-rescue-active #main .wpforms-container input,
  body.emc-rescue-active #main .wpforms-container select,
  body.emc-rescue-active #main .wpforms-container textarea,
  body.emc-rescue-active #main .wpforms-container button{
    font-size:1rem!important;line-height:1.5!important;
  }
  body.emc-rescue-active #main .wpforms-container .wpforms-field-sublabel,
  body.emc-rescue-active #main .wpforms-container .wpforms-field-description{
    font-size:var(--emc-mobile-small)!important;line-height:1.6!important;
  }
  body.emc-rescue-active #tnp-modal-body p,
  body.emc-rescue-active #tnp-modal-body label,
  body.emc-rescue-active #tnp-modal-body .tnp-field,
  body.emc-rescue-active #tnp-modal-body input,
  body.emc-rescue-active #tnp-modal-body button,
  body.emc-rescue-active #tnp-modal-body select{
    font-size:1rem!important;line-height:1.6!important;
  }
  body.emc-rescue-active #tnp-modal-body .tnp-privacy-field label{
    font-size:var(--emc-mobile-small)!important;line-height:1.6!important;
  }
  body.emc-rescue-active #tnp-modal-body h1,
  body.emc-rescue-active #tnp-modal-body h2,
  body.emc-rescue-active #tnp-modal-body h3{
    font-size:1.5rem!important;line-height:1.3!important;
  }
  body.emc-rescue-active #tnp-modal-body input[type="submit"],
  body.emc-rescue-active #tnp-modal-body button[type="submit"]{
    white-space:normal;height:auto;min-height:48px;padding:12px 16px!important;
  }
  body.emc-rescue-active #tnp-modal-close{width:44px!important;height:44px!important;}
}
@media screen and (max-width:782px){
  body.emc-rescue-active.admin-bar .emc-rescue-header{top:46px;}
}
@media screen and (max-width:600px){
  /* Single-column reading, never three narrow statistics or copy-heavy cards. */
  body.emc-rescue-active #main .emc-work-grid,
  body.emc-rescue-active #main .emc-about-reference__cards,
  body.emc-rescue-active #main .emc-stats-grid,
  body.emc-rescue-active #main #arsrapport-2026 .emc-report-insights__grid,
  body.emc-rescue-active #main #arsrapport-2026 .emc-report-membership__grid,
  body.emc-rescue-active #main .emc-winners-grid--media{
    grid-template-columns:minmax(0,1fr);gap:24px;
  }
  body.emc-rescue-active #main .emc-winners-grid--media .emc-winner-card,
  body.emc-rescue-active #main #arsrapport-2026 .emc-report-insight{
    display:flex;flex-direction:column;grid-row:auto;margin-bottom:0;
  }
  body.emc-rescue-active #main .emc-winners-grid--media .emc-winner-card p,
  body.emc-rescue-active #main .emc-winners-grid--media .emc-winner-card h3,
  body.emc-rescue-active #main .emc-winners-grid--media .emc-winner-card__award,
  body.emc-rescue-active #main .emc-winner-card__caption{
    margin-left:22px!important;margin-right:22px!important;
  }
  body.emc-rescue-active #main .emc-about-reference-card,
  body.emc-rescue-active #main .emc-work-card{display:flex;flex-direction:column;min-height:0;padding:24px 22px;}
  body.emc-rescue-active #main .emc-about-reference-card h3,
  body.emc-rescue-active #main .emc-work-card h3{min-height:0;padding-bottom:0!important;}
  body.emc-rescue-active #main .emc-stat-card{grid-template-columns:38px minmax(0,1fr);gap:12px;padding:20px 16px;}
  body.emc-rescue-active #main .emc-stat-card__icon{width:36px;height:40px;}
  body.emc-rescue-active #main .emc-section--stats .emc-container{padding:26px 18px;}
  body.emc-rescue-active #main #arsrapport-2026 .emc-report-membership{padding:28px 20px;}
  body.emc-rescue-active #main #arsrapport-2026 .emc-report-membership__route .emc-btn,
  body.emc-rescue-active #main #arsrapport-2026 .emc-report-access--editorial .emc-btn{width:100%;justify-self:stretch;}
  body.emc-rescue-active #main .emc-contact__inner{grid-template-columns:minmax(0,1fr);gap:18px;}
  body.emc-rescue-active #main .emc-contact__inner>*{grid-column:1;grid-row:auto;min-width:0;}
  body.emc-rescue-active #main .emc-ekokock__inner{padding:26px 20px;}
  body.emc-rescue-active .emc-rescue-footer__inner{grid-template-columns:minmax(0,1fr);gap:28px;}
  body.emc-rescue-active .emc-rescue-footer__col:last-child{grid-column:auto;}
  /* The WordPress mobile admin bar scrolls away below 600px. */
  body.emc-rescue-active.admin-bar .emc-rescue-header{top:0;}
  body.emc-rescue-active #tnp-modal{padding:12px!important;}
  body.emc-rescue-active #tnp-modal-content{
    width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;
    max-height:calc(100vh - 48px)!important;max-height:calc(100dvh - 48px)!important;
    margin:12px auto!important;
  }
}
