/* Align the brand title, native search form and phone block on a shared axis. */
@media (min-width: 992px) {
  body .site-header .site-branding:has(> .hgroup-sidebar) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 486px);
    grid-template-areas: "emalog-brand emalog-search";
    align-items: start;
    min-height: 100px;
  }
  body .site-header .site-branding:has(> .hgroup-sidebar) > .header-group,
  body .site-header .site-branding > .hgroup-sidebar {
    box-sizing: border-box;
    align-self: start;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 16px;
    padding-bottom: 16px;
  }
  body .site-header .site-branding:has(> .hgroup-sidebar) > .header-group {
    grid-area: emalog-brand;
    width: auto;
    min-width: 0;
  }
  body .site-header .site-branding:has(> .hgroup-sidebar) .site-title {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0;
    margin-bottom: 0;
  }
  body .site-header .site-branding:has(> .hgroup-sidebar) .site-description {
    margin-top: 4px;
    margin-bottom: 0;
  }
  body .site-header .site-branding > .hgroup-sidebar {
    grid-area: emalog-search;
    align-self: center;
    display: flex;
    align-items: center;
    gap: 32px;
  }
  body .site-header .hgroup-sidebar > .widget {
    align-self: center;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  body .site-header .hgroup-sidebar .aws-search-form {
    height: 44px;
    margin-top: 0;
    margin-bottom: 0;
  }
  /* 486 px sidebar minus the theme's 15 px side paddings = 456 px search. */
  body .site-header .site-branding > .hgroup-sidebar {
    width: 100%;
    min-width: 0;
  }
  body .site-header .hgroup-sidebar > .widget_aws_widget {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  body .site-header .hgroup-sidebar .aws-container {
    width: 100%;
    max-width: 100%;
  }
  /* These are the existing widget's blank paragraphs, not its phone content. */
  body .site-header .hgroup-sidebar .widget_text:has(a.logo-call-me) .textwidget > p,
  body .site-header .hgroup-sidebar .widget_text:has(a.logo-call-me) .info-message-icon > p {
    display: none;
  }
  body .site-header .hgroup-sidebar .widget_text:has(a.logo-call-me) .info-message-icon,
  body .site-header .hgroup-sidebar .widget_text:has(a.logo-call-me) .widget-heading {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  body .site-header .hgroup-sidebar .widget_text:has(a.logo-call-me) .widget-heading {
    line-height: 21px;
  }
}

/* Match the HOME text-logo band's natural padding and wrapping on desktop. */
@media(min-width:992px) {
 body:not(.home) .site-header .site-branding:has(> .hgroup-sidebar) > .header-group {
  max-width:440px; padding-top:2.143em !important; padding-bottom:2.143em !important;
 }
}
@media(min-width:992px) and (max-width:1199px) {
 body:not(.home) .site-header .site-branding:has(> .hgroup-sidebar) > .header-group {max-width:376px;}
}
