/* HKS compact archive headers — matches the national-team page, 2026-09-14. */
@media (min-width:1025px) {
  html body:not(.home):is(.archive,.category):has(#page > .page-banner) #page#page#page#page { display:grid!important; grid-template-columns:minmax(0,1fr)!important; }
  html body:not(.home):is(.archive,.category):has(#page > .page-banner) #page#page#page#page > :is(#masthead,.page-banner) { grid-area:1 / 1!important; }
  html body:not(.home):is(.archive,.category):has(#page > .page-banner) #page#page#page#page > .wrapper { grid-area:2 / 1!important; }
  html body:not(.home):is(.archive,.category):has(#page > .page-banner) #page#page#page#page > .page-banner { min-height:145px!important; height:auto!important; padding:24px 300px!important; box-sizing:border-box!important; }
  html body:not(.home):is(.archive,.category):has(#page > .page-banner) #page#page#page#page > #masthead { position:relative!important; inset:0!important; height:100%!important; min-height:0!important; align-self:stretch!important; }
  html body:not(.home):is(.archive,.category):has(#page > .page-banner) #page#page#page#page #masthead :is(.main-header,.main-header > .container-fluid,.main-header-inner) { top:0!important; height:100%!important; min-height:0!important; }
  html body:not(.home):is(.archive,.category):has(#page#page#page#page > .page-banner) .sffm-flymenu-trigger-block.sffm-flymenu-trigger-block.sffm-flymenu-trigger-block { top:40.5px!important; transform:none!important; }
}
@media (max-width:1024px) {
  html body:not(.home):is(.archive,.category):has(#page > .page-banner) #page#page#page#page > .page-banner { min-height:145px!important; height:auto!important; padding:84px 24px 16px!important; box-sizing:border-box!important; }
  html body:not(.home):is(.archive,.category):has(#page > .page-banner) #page#page#page#page .page-banner h1.entry-title { margin:0!important; }
  html body:not(.home):is(.archive,.category):has(#page > .page-banner) #page#page#page#page > #masthead { top:0!important; height:80px!important; min-height:0!important; }
  html body:not(.home):is(.archive,.category):has(#page > .page-banner) #page#page#page#page #masthead :is(.main-header,.main-header > .container-fluid,.main-header-inner,.site-branding) { top:0!important; height:80px!important; min-height:0!important; }
  html body:not(.home):is(.archive,.category):has(#page#page#page#page > .page-banner) .sffm-flymenu-trigger-block.sffm-flymenu-trigger-block.sffm-flymenu-trigger-block { top:16px!important; }
}
@media (max-width:767px) {
  html body:not(.home):is(.archive,.category):has(#page > .page-banner) #page#page#page#page > .page-banner { padding-left:18px!important; padding-right:18px!important; }
  html body:not(.home):is(.archive,.category):has(#page#page#page#page > .page-banner) .sffm-flymenu-trigger-block.sffm-flymenu-trigger-block.sffm-flymenu-trigger-block { top:18px!important; }
}
/* Search filter labels must not inherit the theme's circular clipping. */
html body.search #hks-search#hks-search .hs-popup-trigger {
  height:auto!important;
  min-height:48px!important;
}
html body.search #hks-search#hks-search .hs-popup-trigger > span {
  border-radius:0!important;
  overflow:visible!important;
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
  text-overflow:clip!important;
  line-height:1.4!important;
}

/* Decorative heading accents: suppress the browser's yellow mark background in both themes. */
@layer hks-light {
  html body #page#page .dl-heading mark {
    background:transparent!important;
  }
}

@media (min-width:1025px) {
  html body:not(.home):is(.archive,.category):has(#page > .page-banner) #page#page#page#page .page-banner h1.entry-title { margin:0!important; }
}
@media (max-width:640px) {
  html body.search #hks-search#hks-search .hs-filters { flex-wrap:wrap!important; }
  html body.search #hks-search#hks-search .hs-filters > label { flex:1 1 100%!important; width:100%!important; max-width:100%!important; min-width:0!important; }
}
