/* EP338: keep the wider responsive frames; enlarge typography only above 1100px.
   Phone and tablet text falls through to the original pre-337 styles. */
:root{--ep337-frame:1640px;--ep337-content:1456px;--ep337-gutter:24px;--ep337-copy:17px;--ep337-small:14px;--ep337-card-title:21px;}
@media(min-width:1101px){html body{font-size:17px;line-height:1.55;}}
html body.ep313-home .ep-shell,
html body:not(.ep-messenger-ready) .page-wrap,
html body:not(.ep-messenger-ready) .app-shell,
html body .epn-shell{box-sizing:border-box;width:100%!important;max-width:var(--ep337-frame)!important;min-width:0!important;margin-inline:auto!important;border-inline:0!important;}
html body:not(.ep-messenger-ready) .page-wrap{padding-inline:0!important;}
html body.ep313-home .ep-shell>main,
html body:not(.ep-messenger-ready) .main-content,
html body .epn-main,
html body .epg-page,
html body.ep-social-page .ep-social-main{box-sizing:border-box;width:calc(100% - var(--ep337-gutter) * 2)!important;max-width:var(--ep337-content)!important;min-width:0!important;margin-inline:auto!important;padding-inline:0!important;}
html body.ep313-home :is(.ep-topbar,.ep-desktop-nav),
html body .epn-shell :is(.epn-header,.epn-desktop-nav),
html body:not(.ep-messenger-ready) .app-shell>:is(.topbar,.desktop-primary-nav){box-sizing:border-box;width:100%;padding-inline:max(var(--ep337-gutter),calc((100% - var(--ep337-content)) / 2))!important;}
html body.ep-social-page .ep-social-top{padding-inline:max(var(--ep337-gutter),calc((100vw - var(--ep337-content)) / 2))!important;}
html body :is(.main-content,.epn-main,.ep-social-main){overflow-wrap:break-word;}
@media(min-width:1101px){html body :is(.main-content,.epn-main,.ep-social-main) :is(p,li){font-size:var(--ep337-copy)!important;line-height:1.65!important;}}
@media(min-width:1101px){html body :is(.main-content,.epn-main,.ep-social-main) :is(small,time,figcaption){font-size:var(--ep337-small)!important;line-height:1.5!important;}}
@media(min-width:1101px){html body :is(.main-content,.epn-main,.ep-social-main) :is(label,legend,.form-field>span){font-size:15px!important;line-height:1.4!important;}}
html body :is(.main-content,.epn-main,.ep-social-main) :is(input,select,textarea){min-width:0;max-width:100%;}
@media(min-width:1101px){html body :is(.main-content,.epn-main,.ep-social-main) :is(input,select,textarea){font-size:17px!important;}}
@media(min-width:1101px){html body :is(.main-content,.epn-main,.ep-social-main) :is(input,textarea)::placeholder{font-size:16px!important;}}
html body :is(.main-content,.epn-main,.ep-social-main) :is(.primary-button,.secondary-button,.outline-button,.coral-button,.ep-button,.ep-classifieds-hub-add){min-height:44px;}
@media(min-width:1101px){html body :is(.main-content,.epn-main,.ep-social-main) :is(.primary-button,.secondary-button,.outline-button,.coral-button,.ep-button,.ep-classifieds-hub-add){font-size:16px!important;line-height:1.4!important;}}
@media(min-width:1101px){html body :is(.main-content,.epn-main,.ep-social-main) :is(.section-heading h2,.page-heading h1,.page-intro h1,.section-intro h1){font-size:clamp(28px,2.8vw,40px)!important;line-height:1.2!important;}}
html body.ep-social-page.ep-listings-page .ep-classifieds-hub-head p{max-width:70ch;}
@media(min-width:1101px){html body.ep-social-page.ep-listings-page .ep-classifieds-hub-head p{font-size:var(--ep337-copy)!important;}}
@media(min-width:1101px){html body.ep-social-page.ep-listings-page .ep-classifieds-hub-search :is(input,select){font-size:17px!important;}}
@media(min-width:1101px){html body.ep-social-page.ep-listings-page .ep-listing-grid .ep-listing-card .ep-listing-card__body :is(h2,h3),
html body .epn-list .epn-story-copy h2{font-size:var(--ep337-card-title)!important;line-height:1.35!important;}}
@media(min-width:1101px){html body .epn-list .epn-story-copy p{font-size:16px!important;line-height:1.55!important;}}
@media(min-width:1101px){html body.ep-social-page.ep-listings-page .ep-classifieds-hub-toolbar a{font-size:14px!important;}}
@media(min-width:1101px){html body.ep-social-page.ep-listings-page .ep-classifieds-hub-category strong{font-size:16px!important;}}
html body .epn-content{max-width:76ch;margin-inline:auto;}
@media(min-width:1101px){html body .epn-content{font-size:19px!important;line-height:1.75!important;}}
@media(min-width:1101px){html body .epn-content :is(p,li){font-size:19px!important;line-height:1.75!important;}}
html body .epn-article-body{max-width:1120px;margin-inline:auto;}
@media(min-width:1101px){html body .epn-deck{font-size:20px!important;}}
@media(min-width:1101px){html body.ep313-home #epHero.ep329-hero .ep313-hero-copy h1{font-size:clamp(38px,3.9vw,58px)!important;}}
html body.ep313-home #epHero.ep329-hero .ep313-hero-copy p{max-width:44ch;}
@media(min-width:1101px){html body.ep313-home #epHero.ep329-hero .ep313-hero-copy p{font-size:18px!important;line-height:1.6!important;}}
@media(min-width:1101px){html body.ep313-home #epHero.ep329-hero .ep313-eyebrow{font-size:11px!important;line-height:1.4!important;}}
html body.ep313-home #epHero.ep329-hero .ep313-area{white-space:normal;}
@media(min-width:1101px){html body.ep313-home #epHero.ep329-hero .ep313-area{font-size:14px!important;}}
@media(min-width:1101px){html body.ep313-home #epHero.ep329-hero .ep313-quick strong{font-size:18px!important;line-height:1.25!important;}}
@media(min-width:1101px){html body.ep313-home .ep329-hero+.ep-search--detached input[type=search]{font-size:17px!important;}}
@media(min-width:1101px){html body.ep313-home :is(.ep313-section-head h2,.ep-section-heading h2,.ep-now-events-head h2,.ep-home-council__head h2){font-size:30px!important;line-height:1.25!important;}}
@media(min-width:1101px){html body.ep313-home :is(.ep313-section-head p,.ep314-section-intro,.ep-home-council__head p,.ep-hub-content small,.ep-my-ealing__head em){font-size:16px!important;line-height:1.6!important;}}
@media(min-width:1101px){html body.ep313-home .ep-news-card .ep-news-copy>strong{font-size:var(--ep337-card-title)!important;line-height:1.35!important;}}
@media(min-width:1101px){html body.ep313-home .ep-news-card .ep-news-copy>small{font-size:16px!important;line-height:1.55!important;}}
@media(min-width:1101px){html body.ep313-home :is(.ep-news-meta,.ep-news-meta time,.ep-news-meta b,.ep-news-source){font-size:13px!important;line-height:1.45!important;}}
@media(min-width:1101px){html body.ep313-home :is(.ep-hub-content strong,.ep-now-event-copy strong,.ep-home-council__person strong){font-size:20px!important;line-height:1.35!important;}}
@media(min-width:1101px){html body.ep313-home :is(.ep-my-ealing__links b,.ep-hub-open,.ep314-section-actions>a,.ep-event-shortcuts a,.ep-now-events-head>a,.ep-home-council__all,.ep-home-council__tools nav a){font-size:14px!important;line-height:1.4!important;}}
@media(min-width:1101px){html body.ep313-home :is(.ep-home-alert-item strong,.ep-home-council__person p,.ep-now-event-copy em){font-size:15px!important;line-height:1.5!important;}}
@media(min-width:1101px){html body.ep313-home :is(.ep-home-alert-item small,.ep-home-council__person small,.ep-home-council__person em,.ep-home-council__person>b,.ep-now-event-location,.ep-now-event-copy>small,.ep-home-council__tools label){font-size:12px!important;line-height:1.45!important;}}
@media(min-width:1101px){html body.ep313-home .ep-desktop-nav a{font-size:16px!important;}}
html body.ep313-home>.ep337-info{display:flex!important;position:relative!important;inset:auto!important;transform:none!important;width:100%!important;max-width:var(--ep337-frame)!important;height:48px!important;min-height:48px!important;box-sizing:border-box;margin:0 auto!important;padding:0!important;border-radius:0!important;box-shadow:none!important;z-index:2;}
@media(min-width:1101px){html body.ep313-home>.ep337-info .ep313-ticker-track a{font-size:16px!important;}}
html body.ep313-home>.ep337-info .ep314-ticker-live{flex-basis:100px;padding:6px 14px;border-radius:0 12px 12px 0;}
@media(min-width:1101px){html body.ep313-home>.ep337-info .ep314-ticker-live>span{font-size:10px;}}
@media(min-width:1101px){html body.ep313-home>.ep337-info .ep314-ticker-live>strong{font-size:21px;}}
html body.ep313-home #epWeatherMap{max-width:var(--ep337-frame)!important;margin-inline:auto!important;}
html body[data-page="map"] .map-filter,
html body[data-page="map"] .map-locate-button,
html body[data-page="map"] .map-more-filters>summary{white-space:nowrap;word-break:normal;}
@media(min-width:1101px){html body[data-page="map"] .map-filter,
html body[data-page="map"] .map-locate-button,
html body[data-page="map"] .map-more-filters>summary{font-size:14px!important;}}
@media(min-width:1101px){html body[data-page="map"] .map-dashboard-head .section-kicker,
html body[data-page="map"] [data-map-count],
html body[data-page="map"] .map-tool-card__copy small{font-size:12px!important;}}
@media(min-width:1101px){html body[data-page="map"] .map-tool-card__copy strong{font-size:15px!important;}}
@media (min-width:651px) and (max-width:1100px){
html body .app-shell,html body .epn-shell{border-radius:0!important;box-shadow:none;}
}
@media (max-width:1100px){
html body.ep313-home nav.ep-bottom-nav.ep-bottom-nav--actionable{bottom:0!important;height:calc(72px + env(safe-area-inset-bottom))!important;padding-bottom:calc(6px + env(safe-area-inset-bottom))!important;}
html body.ep313-home .ep313-launch{bottom:calc(var(--ep319-nav-height,72px) + 12px)!important;}
html body.ep313-home{padding-bottom:calc(var(--ep319-nav-height,72px) + 16px)!important;}
html:has(body.ep313-home){scroll-padding-bottom:calc(var(--ep319-nav-height,72px) + 8px);}
}
@media (max-width:650px){
:root{--ep337-gutter:12px;--ep337-copy:16px;--ep337-small:13px;--ep337-card-title:18px;}
html body.ep313-home #epHero.ep329-hero .ep313-quick>a{min-height:62px!important;}
html body.ep313-home>.ep337-info{height:44px!important;min-height:44px!important;}
html body.ep313-home>.ep337-info .ep314-ticker-live{flex-basis:84px;padding:5px 11px;}
}
@media(min-width:1101px){html body .epg-page :is(p,li){font-size:var(--ep337-copy)!important;line-height:1.6!important;}}
@media(min-width:1101px){html body .epg-page :is(small,figcaption){font-size:var(--ep337-small)!important;}}
html body .epn-main .epn-section-tabs{margin-inline:0!important;padding-inline:0!important;max-width:100%;}
html body.ep-social-page .ep-social-top .ep-brand{flex:0 0 auto!important;}
html body.ep-social-page .ep-social-top nav{flex:1 1 auto;min-width:0;overflow-x:auto;white-space:nowrap;}
html body.ep-social-page .ep-social-top nav a{flex:0 0 auto;}
@media (min-width:761px) and (max-width:1100px){
html body.ep-social-page .ep-social-top{flex-wrap:wrap;}
html body.ep-social-page .ep-social-top nav{flex-basis:100%;margin-left:0;justify-content:flex-start;}
}
html body.epd-body .epd-main{box-sizing:border-box;width:calc(100% - var(--ep337-gutter) * 2)!important;max-width:var(--ep337-content)!important;margin-inline:auto!important;padding-inline:0!important;}
html body.epd-body :is(.epd-top,.epd-tabs){padding-inline:max(var(--ep337-gutter),calc((100vw - var(--ep337-content)) / 2))!important;}
@media(min-width:1101px){html body.epd-body .epd-main :is(p,li){font-size:var(--ep337-copy)!important;line-height:1.65!important;}}
@media(min-width:1101px){html body.epd-body .epd-main :is(label,.epd-meta,.epd-eyebrow,small,figcaption){font-size:var(--ep337-small)!important;line-height:1.5!important;}}
html body.epd-body .epd-main :is(input,select,textarea){min-width:0;max-width:100%;}
@media(min-width:1101px){html body.epd-body .epd-main :is(input,select,textarea){font-size:16px!important;}}
@media(min-width:1101px){html body.epd-body :is(.epd-button,.epd-tabs a){font-size:16px!important;}}
@media(min-width:1101px){html body.epd-body .epd-event-card h2{font-size:var(--ep337-card-title)!important;line-height:1.3!important;}}
@media(min-width:1101px){html body.epd-body .epd-event-body :is(p,li){font-size:18px!important;line-height:1.75!important;}}
@media(min-width:1101px){html body.ep-social-page.ep-listings-page .ep-listing-grid .ep-listing-card .ep-listing-card__body>.ep-listing-price{font-size:18px!important;}}
@media(min-width:1101px){html body.ep-social-page.ep-listings-page .ep-listing-grid .ep-listing-card .ep-listing-card__facts{font-size:var(--ep337-small)!important;}}
