/* ==========================================================================
   Leyland — mobile polish (Oct 2026)
   Loaded last on every page so it wins over leyland.css + legacy.css.
   Desktop is untouched except for the two bug fixes in the first block.
   ========================================================================== */

/* ── all widths: bug fixes ── */
/* "Discover whether Leyland is the right fit" heading had a fixed height/width */
.s04bddaf{height:auto;width:auto}
/* outline button on the dark CTA strip was green-on-green (invisible) */
.cta-strip .btn-outline{color:#fbf6ec;border-color:rgba(226,197,140,.7);background:transparent}
.cta-strip .btn-outline:hover{background:#d4b06a;border-color:#d4b06a;color:#173327}
/* grid children may shrink below their longest word */
.article-layout>*{min-width:0}
.article-body{overflow-wrap:break-word}
/* anchor targets clear the sticky header */
html{scroll-padding-top:96px}

/* ── tablet & phone ── */
@media (max-width:900px){
  /* open menu fills the screen height properly on iOS (dynamic toolbar) */
  .main-nav{max-height:calc(100dvh - 110px);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .nav-expand{width:48px;height:48px;top:3px}
  .article-layout{gap:3rem}
}

/* ── phone ── */
@media (max-width:680px){
  html{scroll-padding-top:84px}
  body{-webkit-tap-highlight-color:rgba(176,132,50,.18)}

  .btn{white-space:normal;max-width:100%}

  /* stop iOS Safari zooming into form fields (needs ≥16px) */
  input,select,textarea{font-size:16px!important}

  /* utility bar: bigger tap area on "Client Portal" */
  .utility-bar a{display:inline-block;padding:9px 0}

  /* minimum legible size for eyebrow / label text */
  .s1526b7d,.s47e6184,.sa898fc5,.s52bb631,.s902ecb4,.s924a60e,.s46998bd,.foot-head,
  .sc8f4339,.s155da9f,.sdd4cf48,.s69919a5,.s51f1d80,.sca03c99,.s5a1090d,.saf2aec6,
  .se707bbc,.sb06def6,.se615c6e,.s0ca4592,.s3c08e5e,.article-tag,.scc82aaf,.sc73869f,
  .sfa4be39,.s861249f,.s378724d,.s775116d,.sbcd9c1f,.sa082917,.s1de87a6,.se477254,
  .s2026679,.sbce69d3,.s73ea2dd,.feature-card-eyebrow,.sa0a4f30,.s3e789c5,.s3f8c02f,
  .sda28535 a,.sda28535 span,.sa8dd9c5 a,.sa8dd9c5 span,.feature-card figcaption,
  .sidebar-card h3{font-size:12px!important}

  /* text links styled as underlines: invisible 44px hit area, no visual change */
  .sdb81290,.sb13501c,.link-underline,.sd44b2ee,.sdd51168,.s396eea6,.s2b343ce,.sbc5f95a{position:relative}
  .sdb81290::after,.sb13501c::after,.link-underline::after,.sd44b2ee::after,.sdd51168::after,
  .s396eea6::after,.s2b343ce::after{content:"";position:absolute;left:-6px;right:-6px;top:-12px;bottom:-12px}

  /* breadcrumbs */
  .breadcrumb a,.sda28535 a,.sa8dd9c5 a{display:inline-block;padding:10px 0}

  /* home hero: buttons stack full width */
  .s88d411b{flex-direction:column;align-items:stretch;gap:12px;margin-bottom:32px}
  .s88d411b>a{text-align:center;justify-content:center}
  .s746a8ec{padding:16px 20px}

  .sf700cce{gap:14px}

  /* home stats: 2 × 2 instead of one long column */
  .sab3a648{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sab3a648>div{border-right:1px solid rgba(31,66,50,.09);border-bottom:1px solid rgba(31,66,50,.09);padding:18px 18px}
  .sab3a648>div:nth-child(2n){border-right:0}

  /* home insights: horizontal swipe carousel with a peek of the next card */
  .s748be19{flex-wrap:nowrap;gap:14px;margin-right:-20.2px;padding-right:20.2px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
  .s4489a8b{flex:0 0 84%;scroll-snap-align:start}
  .s05b38df{height:auto;aspect-ratio:16/10;margin-bottom:12px}
  .rail-btn{width:44px;height:44px}

  /* home CTA band */
  .s9115abc{flex-direction:column;align-items:stretch}
  .s9115abc .s702c39b{text-align:center;justify-content:center}

  /* CTA strip on subpages: buttons stack */
  .cta-strip .btn-group{flex-direction:column;align-items:stretch;gap:10px;width:100%}
  .cta-strip .btn{text-align:center;justify-content:center;width:100%}

  /* articles */
  .article-body h1,.article-title{font-size:1.85rem!important;line-height:1.22!important}
  .article-body h2{font-size:1.3rem;margin-top:2rem}
  .article-body h3{font-size:1.08rem}
  .article-body p,.article-body li{font-size:1rem;line-height:1.75}
  .article-body ul,.article-body ol{padding-left:1.15rem}
  .article-body blockquote{padding:1rem 1.1rem;margin:1.6rem 0}
  .article-body blockquote p{font-size:1.02rem}
  .article-hero-img{height:auto!important;aspect-ratio:16/10;margin-bottom:1.8rem}
  .article-meta{margin-bottom:1.6rem;padding-bottom:1rem}
  .article-body figure{margin:1.5rem 0}
  .article-body figure img{width:100%;height:auto}
  .article-body table{max-width:100%}
  .sidebar-card{padding:1.5rem}
  .sidebar-card li a{display:inline-block;padding:4px 0}

  /* footer: link columns side by side instead of one long list */
  .foot-inner{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 20px}
  .foot-brand,.foot-contact{grid-column:1/-1}
  .foot-brand p{max-width:none}
  .foot-col a{line-height:1.45;padding:8px 0}
  .foot-social{gap:4px 18px}
  .foot-social a{display:inline-block;padding:10px 0}
  .foot-office a{padding:5px 0}
  .foot-legal a{display:inline-block;padding:8px 0}
  .foot-base{padding-bottom:calc(20px + env(safe-area-inset-bottom))}

  /* back-to-top clear of the iPhone home indicator */
  .scroll-top{right:14px;bottom:calc(14px + env(safe-area-inset-bottom))}
}

/* very small phones (iPhone SE / 320px) */
@media (max-width:360px){
  .s1909521{font-size:27px}
  .sab3a648>div{padding:16px 14px}
  .s4489a8b{flex-basis:88%}
}

