@media (max-width: 1366px) and (hover: none) and (pointer: coarse) {

#site-header .sca-header__inner { min-height:60px; gap:12px; }
#site-header .sca-brand { gap:6px; min-width:0; }
#site-header .sca-brand__mark { width:38px !important; height:auto; }
#site-header .sca-brand__name { gap:2px; }
#site-header .sca-brand__name::before { font-size:24px !important; line-height:1.1; }
#site-header .sca-brand__name::after { font-size:11px !important; line-height:1.2; }
#site-header .sca-menu-toggle { flex-shrink:0; min-width:44px; min-height:44px; }
body.home .sca-practice-panels__grid--three { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; min-height:0 !important; }
body.home .sca-practice-panels__grid--three > .sca-practice-panel { width:100%; min-width:0; min-height:180px !important; margin:0 !important; padding:0; clip-path:none !important; }
body.home .sca-practice-panels__grid--three .sca-practice-panel__inner { position:static; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:180px; height:100%; max-width:none; margin:0; padding:36px 7px 18px !important; box-sizing:border-box; }
body.home .sca-practice-panels__grid--three h2 { font-size:18px !important; line-height:1.3; text-align:center; text-wrap:balance; margin:0; hyphens:none; }
body.home .sca-practice-panels__grid--three .sca-practice-panel__inner > p,
body.home .sca-practice-panels__grid--three .sca-practice-panel__icon { display:none !important; }
body.home .sca-hero--home { position:relative; z-index:2; margin-bottom:0; clip-path:polygon(0 0,100% 0,100% calc(100% - 14px),50% 100%,0 calc(100% - 14px)) !important; }
body.home .sca-hero--home::after { display:none; }
body.home .sca-hero--home + .sca-practice-panels { margin-top:-14px !important; position:relative; z-index:1; }
body.home .sca-hero--home + .sca-practice-panels::before { display:block; height:18px; z-index:5; background:var(--sca-ivory,#f6f2ea); clip-path:polygon(0 0,50% 14px,100% 0,100% 4px,50% 18px,0 4px); }

}

/* Tablet navigation remains usable in both orientations. */
@media (min-width:601px) and (max-width:1366px) and (hover:none) and (pointer:coarse) {
  #site-header .sca-header__inner { min-height:72px; width:calc(100% - 48px); }
  #site-header .sca-brand__mark { width:44px !important; }
  #site-header .sca-brand__name::before { font-size:28px !important; }
  #site-header .sca-brand__name::after { font-size:13px !important; }
  #site-header .sca-menu-toggle { display:block !important; }
  #site-header .sca-nav {
    position:absolute; left:0; right:0; top:100%; background:#fbf9f4;
    border-top:1px solid rgba(13,45,63,.12); max-height:0;
    overflow:hidden; transition:max-height .3s ease;
  }
  #site-header .sca-nav.is-open { max-height: min(520px,70dvh); overflow-y:auto; }
  #site-header .sca-nav__list { display:block; padding:12px 24px 22px; }
  #site-header .sca-nav__list > li > a { padding:13px 5px; font-size:16px; min-height:44px; box-sizing:border-box; }
  #site-header .sca-nav__list > li:last-child > a { display:inline-flex; padding:11px 15px; margin-top:10px; }
  body.home .sca-practice-panels__grid--three h2 { font-size:clamp(18px,2.5vw,26px) !important; }
}

/* Draw the seam inside the hero so neither clipping nor a sibling can hide it. */
@media (max-width:600px), (max-width:1366px) and (hover:none) and (pointer:coarse) {
  body.home .sca-hero.sca-hero--home::after {
    content: '' !important; display: block !important;
    position: absolute !important; inset: auto 0 0 !important;
    width: 100% !important; height: 18px !important;
    background: #f6f2ea !important; opacity: 1 !important;
    z-index: 20 !important; pointer-events: none;
    transform: none !important;
    clip-path: polygon(0 0,50% 14px,100% 0,100% 4px,50% 18px,0 4px) !important;
  }
  body.home .sca-hero--home + .sca-practice-panels::before {
    display: none !important;
  }
}
