/* Airwaves R21 — Mobile editorial stability v1.0.0
   Restores readable native-feeling news cards across Home, Explore and archives.
   Scoped strictly to <820px. Desktop, carousel, ticker, bottom dock unchanged. */
@media (max-width:820px){
  /* R8.4/8.5 fixed-height card shells let older, unconstrained images consume
     all the available space; homepage-only R8.5.3 did not cover Explore. */
  html body .aw-page-main .aw-story-grid .aw-story-card{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:112px minmax(0,1fr)!important;
    grid-template-rows:auto!important;
    align-items:stretch!important;
    width:100%!important;
    height:auto!important;
    min-height:124px!important;
    max-height:none!important;
    overflow:hidden!important;
    border-radius:13px;
  }
  html body .aw-page-main .aw-story-grid .aw-story-card > .aw-card-image{
    box-sizing:border-box!important;
    display:block!important;
    position:relative!important;
    flex:none!important;
    grid-column:1!important;
    grid-row:1!important;
    width:112px!important;
    min-width:0!important;
    height:100%!important;
    min-height:124px!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    overflow:hidden!important;
    background:var(--surface2);
  }
  html body .aw-page-main .aw-story-grid .aw-story-card > .aw-card-image img,
  html body .aw-page-main .aw-story-grid .aw-story-card > .aw-card-image > .aw-image-fallback{
    display:block!important;
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:none!important;
    object-fit:cover!important;
    transform:none!important;
  }
  html body .aw-page-main .aw-story-grid .aw-story-card > .aw-card-body{
    box-sizing:border-box!important;
    display:flex!important;
    flex:initial!important;
    flex-direction:column!important;
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    min-height:124px!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    padding:11px 12px!important;
  }
  html body .aw-page-main .aw-story-grid .aw-story-card .aw-card-topline{
    flex:0 0 auto!important;
    min-height:19px;
    margin:0!important;
    padding:0!important;
  }
  html body .aw-page-main .aw-story-grid .aw-story-card .aw-card-topline .aw-bookmark{
    min-width:30px;min-height:26px;
  }
  html body .aw-page-main .aw-story-grid .aw-story-card .aw-card-body h3{
    display:block!important;
    flex:0 0 auto!important;
    font-size:13px!important;
    font-weight:600!important;
    letter-spacing:-.015em!important;
    line-height:1.38!important;
    max-height:none!important;
    margin:3px 0 6px!important;
    overflow:visible!important;
  }
  html body .aw-page-main .aw-story-grid .aw-story-card .aw-card-body h3 a{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:3!important;
    line-clamp:3;
    overflow:hidden!important;
    overflow-wrap:anywhere;
  }
  html body .aw-page-main .aw-story-grid .aw-story-card .aw-card-body .aw-card-summary{display:none!important;}
  html body .aw-page-main .aw-story-grid .aw-story-card .aw-story-meta{
    display:flex!important;
    flex:0 0 auto!important;
    flex-wrap:wrap!important;
    gap:4px!important;
    margin-top:auto!important;
    padding:0!important;
    font-size:10px!important;
    line-height:1.35!important;
    max-height:none!important;
    overflow:visible!important;
  }
  /* R12 page templates: more restrained, consistent internal-page hierarchy.
     Do not touch masthead/search/ticker, hero carousel, bottom nav or article prose. */
  html body .aw-r12-page{
    padding-top:14px!important;
    padding-bottom:calc(68px + env(safe-area-inset-bottom,0px));
  }
  html body .aw-r12-page .aw-r12-page-head,
  html body .aw-r12-about .aw-r12-page-head{
    box-sizing:border-box;
    max-width:100%;
    padding:3px 0 18px!important;
    margin-bottom:0!important;
  }
  html body .aw-r12-page .aw-r12-page-head h1{
    font-size:clamp(24px,6.7vw,27px)!important;
    font-weight:620!important;
    letter-spacing:-.045em!important;
    line-height:1.16!important;
    margin:4px 0 11px!important;
    overflow-wrap:break-word;
  }
  html body .aw-r12-page .aw-r12-page-head p{
    font-size:13px!important;
    line-height:1.58!important;
    margin:0!important;
    max-width:65ch;
  }
  html body .aw-r12-page .aw-r12-heritage{
    padding:16px 18px!important;
    margin-bottom:16px!important;
    border-radius:13px!important;
  }
  html body .aw-r12-page .aw-r12-heritage strong,
  html body .aw-r12-page .aw-r12-heritage h2{
    font-size:17px!important;
    font-weight:620!important;
    line-height:1.3!important;
  }
  html body .aw-r12-page .aw-r12-heritage p{
    font-size:12.5px!important;
    line-height:1.6!important;
  }
  html body .aw-r12-page .aw-r12-about-grid,
  html body .aw-r12-page .aw-r12-service-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
    margin:16px 0 22px!important;
  }
  html body .aw-r12-page .aw-r12-about-grid section,
  html body .aw-r12-page .aw-r12-service-grid article{
    padding:18px!important;
    border-radius:13px!important;
  }
  html body .aw-r12-page .aw-r12-about-grid h2,
  html body .aw-r12-page .aw-r12-service-grid h2,
  html body .aw-r12-page .aw-r12-values h2{
    font-size:17px!important;
    font-weight:620!important;
    line-height:1.3!important;
    margin:0 0 8px!important;
  }
  html body .aw-r12-page .aw-r12-about-grid p,
  html body .aw-r12-page .aw-r12-service-grid p,
  html body .aw-r12-page .aw-r12-values p{
    font-size:12.5px!important;
    line-height:1.65!important;
  }
  html body .aw-r12-page .aw-r12-contact-categories{
    gap:8px!important;
    margin:8px 0 18px!important;
  }
  html body .aw-r12-page .aw-r12-contact-categories a{
    padding:8px 12px!important;
    font-size:12px!important;
    min-height:40px;
  }
  html body .aw-r12-page .aw-r12-contact-section{margin-top:24px!important;}
  html body .aw-r12-page .aw-r12-contact-section h2{font-size:18px!important;}
  html body .aw-r12-page .aw-r12-form{
    padding:16px!important;
    gap:14px!important;
  }
  html body .aw-r12-page .aw-r12-form label{font-size:12px!important;}
  html body .aw-r12-page .aw-r12-form :is(input,select,textarea){font-size:16px!important;}
  /* Other editorial landing pages use the same mobile page-title scale. */
  html body .aw-listing-head h1,
  html body .aw-static-page h1,
  html body .aw-r8-star-archive-head h1{
    font-size:27px!important;
    line-height:1.17!important;
    font-weight:620!important;
    letter-spacing:-.04em!important;
  }
}
@media(max-width:360px){
  html body .aw-page-main .aw-story-grid .aw-story-card{grid-template-columns:100px minmax(0,1fr)!important;}
  html body .aw-page-main .aw-story-grid .aw-story-card > .aw-card-image{width:100px!important;}
  html body .aw-page-main .aw-story-grid .aw-story-card > .aw-card-body{padding:9px 10px!important;}
}
