/* v102: cookie bar must not hide primary content. No inline styles anywhere (CSP style-src 'self'). */
html.plc-bar{scroll-padding-bottom:calc(var(--plc-h,48px) + 12px)}
@media(max-width:640px){
  html:root body .plc .plc-long{display:none!important}
  html:root body .plc .plc-short{display:inline!important}
  html:root body .plc p{font-size:.78rem!important;line-height:1.3}
  html:root body .plc button{min-height:34px}
}
/* phone hero: picture capped so the primary button stays above the slim cookie bar on first view (no copy change) */
@media(max-width:640px){
  html:root body .hero5 .h5-img .ph{aspect-ratio:auto;height:clamp(110px,17vh,170px)!important;aspect-ratio:auto!important;overflow:hidden}
  html:root body .hero5 .h5-img .ph picture{display:block;height:100%}
  html:root body .hero5 .h5-img .ph img{width:100%;height:100%;object-fit:cover;object-position:center}
  html:root body .hero5 .h5-in{row-gap:12px}
}
/* short phones (360x740 class): a little tighter so the home hero button still clears the bar */
@media(max-width:640px) and (max-height:780px){
  html:root body .hero5 .h5-img .ph{height:clamp(84px,12vh,100px)!important}
  html:root body .hero5 .lead{font-size:.95rem!important;line-height:1.42!important}
  html:root body .hero5 .h5-in{row-gap:8px}
}
/* phone range-page heroes: the primary button follows the headline, the long lead and the picture come after it (same copy, same order on desktop) */
@media(max-width:640px){
  html:root body .hero:not(.hero5) .hero-txt{display:contents}
  html:root body .hero:not(.hero5) .hcta{order:1;margin-top:14px;margin-bottom:6px}
  html:root body .hero:not(.hero5) .hero-txt .lead{order:2}
  html:root body .hero:not(.hero5) .hero-img{order:3}
}
@media(max-width:640px){
  html:root body .hero:not(.hero5) .hero-txt>nav.crumbs,html:root body .hero:not(.hero5) .hero-txt>.eyebrow,html:root body .hero:not(.hero5) .hero-txt>h1,html:root body .hero:not(.hero5) .hero-txt>hr,html:root body .hero:not(.hero5) .hero-txt>.lead,html:root body .hero:not(.hero5) .hero-txt>.hcta{margin-left:20px;margin-right:20px}
}
/* phone: the range plate in page heads becomes one sideways row, so the enquiry band below it starts higher */
@media(max-width:640px){
  html:root body .phead-plate .cplate ol{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px 16px;padding:0 0 6px;margin:0;list-style:none;-webkit-overflow-scrolling:touch}
  html:root body .phead-plate .cplate li{flex:0 0 auto;white-space:nowrap}
}
/* phone page heads: a slightly tighter lead so the enquiry band starts higher */
@media(max-width:640px){
  html:root body .phead .phead-txt .lead{font-size:1rem!important;line-height:1.45!important}
  html:root body .phead .phead-txt h1{margin-bottom:10px}
}
@media(max-width:640px) and (max-height:780px){
  html:root body .phead .phead-txt .lead{font-size:.94rem!important;line-height:1.4!important}
}
/* short phones: page heads a little tighter so the enquiry band clears the bar (boards page) */
@media(max-width:640px) and (max-height:780px){
  html:root body .phead .phead-txt h1{font-size:1.5rem!important;line-height:1.15!important}
  html:root body .phead .phead-txt .eyebrow{margin-bottom:4px}
  html:root body .phead .phead-txt .crumbs{margin-bottom:6px}
  html:root body .phead .phead-txt hr.gold-rule{margin:8px 0}
  html:root body .phead{padding-top:10px;padding-bottom:10px}
}
