/* Keep the logo, primary menu and search on a single row in both Newspaper headers. */
@media (min-width:768px) {
  #td-outer-wrap .td-header-template-wrap :is(.td-header-desktop-wrap,.td-header-desktop-sticky-wrap) .wpb_wrapper:has(>.tdb_header_menu) {
    display:flex!important;align-items:center!important;flex-wrap:nowrap!important;justify-content:space-between;gap:clamp(8px,2vw,32px);
  }
  #td-outer-wrap .td-header-template-wrap .wpb_wrapper:has(>.tdb_header_menu)>.tdb_header_logo {
    flex:0 0 auto!important;width:clamp(108px,14vw,234px)!important;max-width:24%!important;margin:0!important;
  }
  #td-outer-wrap .td-header-template-wrap .tdb_header_logo .tdb-logo-img-wrap,
  #td-outer-wrap .td-header-template-wrap .tdb_header_logo img.tdb-logo-img {max-width:100%!important;height:auto!important}
  #td-outer-wrap .td-header-template-wrap .wpb_wrapper>.tdb_header_menu {flex:1 1 auto!important;min-width:0;width:auto!important;margin:0!important}
  #td-outer-wrap .td-header-template-wrap .tdb_header_menu .tdb-menu-items-visible {
    display:flex!important;justify-content:center;align-items:center;flex-wrap:nowrap;white-space:nowrap;margin:0!important;
  }
  #td-outer-wrap .td-header-template-wrap .tdb-menu-items-visible>li {flex:0 0 auto;margin:0!important}
  #td-outer-wrap .td-header-template-wrap .tdb-menu-items-visible>li>a {padding-inline:clamp(6px,1vw,18px)!important;line-height:64px!important}
  #td-outer-wrap .td-header-template-wrap .wpb_wrapper>.tdb_header_search {flex:0 0 auto!important;margin:0!important;width:auto!important}
}
@media (min-width:768px) and (max-width:1040px) {
  #td-outer-wrap .td-header-template-wrap .tdb-menu-items-visible>li>a {font-size:13px!important;padding-inline:5px!important}
}
body.crystal-library #trCrystalDirectory .tr-letter-grid {display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,215px),1fr))!important;gap:16px!important;justify-content:stretch!important;align-items:stretch}
body.crystal-library #trCrystalDirectory .tr-crystal-card {box-sizing:border-box;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important}
body.crystal-library #trCrystalDirectory .tr-crystal-card>a:first-child>div {height:clamp(144px,14vw,188px)!important}
body.crystal-library #trCrystalDirectory .tr-crystal-card>a:first-child img {max-height:100%!important;max-width:100%!important;object-fit:contain}

/* The uploaded wordmark is 2560px wide. Bound it even before lazy loading. */
#td-outer-wrap .tdb_header_logo :is(.tdb-logo-a,.tdb-logo-img-wrap) {max-inline-size:100%;min-inline-size:0}
#td-outer-wrap .tdb_header_logo img.tdb-logo-img {width:auto;height:auto;max-inline-size:min(100%, 240px)!important;object-fit:contain}

/* Newspaper can print the footer outside its main wrapper on older page layouts. */
body .tdb_header_logo .tdb-logo-a .tdb-logo-img-wrap img.tdb-logo-img {width:clamp(110px,15vw,234px)!important;max-width:100%!important;height:auto!important}
