/* Site search: trigger, panel, results page. */
html.ss-locked { overflow: hidden; }
/* Locking the document drops the scrollbar, and those 15px come straight out of the
   viewport width, so the nav and every percentage-based grid beneath shift while the
   panel opens. `scrollbar-gutter: stable` was the first attempt and it does nothing
   here: Chrome ignores the gutter once overflow is hidden, which is why the menu still
   jumped 15px. Padding on the root reserves the same width and actually holds, because
   it shrinks the content box the rest of the page is laid out in. The script only sets
   it where a scrollbar existed — on macOS overlay scrollbars the gap is 0 and nothing
   moves. */
html.ss-gap { padding-right: var(--ss-scrollbar, 0px); }
/* The bar itself is position: fixed, so it is sized against the viewport and
   ignores the padding above — without this the nav links still slid 15px. */
html.ss-gap .nav-1 { padding-right: var(--ss-scrollbar, 0px); }
/* Centre the panel in the page column rather than in the wider viewport. */
html.ss-gap .ss-wrap { padding-right: var(--ss-scrollbar, 0px); }

.ss-menu-item > a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  vertical-align: middle;
  /* The magnifier's ink lands 3px below the cap-height centre of the nav words
     (measured at 1440px on both the global and the in-frame nav: text 33-45px,
     icon 36-48px). vertical-align:middle centres the 15px box, which is not the
     same as centring the ink, so lift it by the measured difference. */
  position: relative;
  top: -3px;
}
.ss-menu-item > a svg { display: block; }
.ss-menu-item > a:hover { text-decoration: none; }
/* The label only exists for the phone menu; on the desktop bar the glyph is
   enough and a word would break the row of nav links. */
.ss-menu-label { display: none; }

.ss-wrap {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2147483000;
  background: rgba(8, 16, 28, .22);
  -webkit-overflow-scrolling: touch;
  /* The panel used to be flipped on with the `hidden` attribute, which is a
     display change: no transition can run, so it cut in over a full-screen
     dim layer in one frame. Fade and lift it instead, on a promoted layer so
     the animation runs on the compositor rather than repainting the page. */
  opacity: 0;
  visibility: hidden;
  will-change: opacity;
  transition: opacity .17s ease-out, visibility 0s linear .17s;
}
.ss-wrap.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .17s ease-out;
}
.ss-wrap[hidden] { display: none; }

.ss-panel {
  max-width: 1000px;
  margin: 18px auto 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
  font-family: inherit;
  letter-spacing: normal;
  /* A 64px shadow across a 1000px panel is a lot of raster for one frame; the
     panel fades in on top of it, so a tighter blur reads the same and costs less. */
  box-shadow: 0 18px 44px rgba(8, 18, 32, .20);
  transform: translateY(-6px);
  transition: transform .19s cubic-bezier(.2, .7, .25, 1);
}
.ss-wrap.is-open .ss-panel { transform: none; }

.ss-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 14px;
  border-bottom: 1px solid #f0f2f5;
}
.ss-field-icon { color: #8c96a4; display: flex; }
.ss-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 21px;
  line-height: 1.3;
  color: #101820;
  padding: 0;
}
.ss-input::placeholder { color: #98a2b0; }
.ss-clear {
  flex: none;
  width: 20px; height: 20px;
  border: 0;
  border-radius: 50%;
  background: #e7ebf0;
  color: #5f6b7a;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  padding: 0;
}
.ss-clear[hidden] { display: none; }

.ss-body {
  padding: 4px 24px 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ss-label {
  font-size: 12px;
  color: #8c96a4;
  margin: 18px 0 4px;
}
.ss-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.45;
  color: #16212e;
}
.ss-row:hover, .ss-row.is-active { background: #f2f6fb; }
.ss-row-icon { flex: none; width: 15px; display: flex; justify-content: center; color: #98a2b0; }
.ss-row-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ss-row-hint {
  flex: 0 1 auto;
  max-width: 46%;
  color: #93a0b0;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ss-row-suggest .ss-row-title { color: #2b3a4b; }

.ss-body mark, #ss-page-results mark { background: #dcebfb; color: inherit; border-radius: 2px; padding: 0 1px; }

.ss-empty {
  padding: 26px 0 18px;
  font-size: 15px;
  color: #5f6b7a;
}
.ss-empty a { color: #1f4e79; text-decoration: underline; }

.ss-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px 14px;
  border-top: 1px solid #f0f2f5;
  font-size: 13px;
}
.ss-all { color: #1f4e79; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ss-all:hover { text-decoration: underline; }
.ss-keys { margin-left: auto; color: #a7b1bf; font-size: 12px; }
.ss-mobile-trigger { display: none; }

.ss-close {
  display: none;
  border: 0; background: none; padding: 4px 0 4px 12px;
  font: inherit; font-size: 15px; line-height: 1; color: #1f4e79;
  cursor: pointer; white-space: nowrap;
}

@media (max-width: 767px) {
  .ss-panel {
    max-width: none;
    margin: 0;
    border-radius: 0;
    max-height: calc(100vh - 56px);
    min-height: calc(100vh - 56px);
  }
  .ss-field { padding: 16px 18px 12px; }
  .ss-input { font-size: 19px; }
  .ss-body { padding: 0 18px; }
  .ss-row-hint { display: none; }
  .ss-foot { padding: 10px 18px 14px; }
  .ss-keys { display: none; }
  .ss-wrap { background: #fff; }
  .ss-close { display: inline-flex; align-items: center; font-size: 15px; }
  .menu_container { position: relative; }
  .ss-mobile-trigger {
    /* The hamburger sits at 20-40px in this bar (centre 30), while a 19px icon
       centred in the 56px box lands on 28. Four px of top padding pulls the
       icon down to centre 30 without moving the tap target. */
    display: flex; position: absolute; right: 70px; top: 0;
    width: 40px; height: 56px; align-items: center; justify-content: center;
    padding-top: 4px; box-sizing: border-box;
    color: #fff; z-index: 6; text-decoration: none;
  }
  .ss-mobile-trigger svg { width: 19px; height: 19px; }

  /* With the menu open the bar's magnifier is hidden and the same trigger
     appears as the last row of the menu, spelled out — a bare glyph under
     Contact read as an orphan. */
  .mobile_menu_container .ss-mobile-trigger { display: none; }
  .ss-menu-label {
    display: inline; text-transform: none; font-weight: normal;
  }
  /* The site's `.nav-1 ul li a` rule wins the display property, so raise the
     specificity to lay the glyph and the word on one flex line: otherwise the
     block-level svg stacks above the label and the row grows to 66px against
     its neighbours' 52. The desktop -3px nudge would lift this row, so zero it. */
  .nav-1 ul.menu li.ss-menu-item > a {
    display: flex; align-items: center; gap: 10px; top: 0;
  }

  /* The stagger in css_media.css stops at the fifth item, so anything after it
     animates with no delay and lands before the items above it. Extend the same
     rhythm (li +100ms, inner div +200ms) to the sixth and seventh. */
  .menu > li.menu_li_animation:nth-child(6) { transition-delay: 700ms, 700ms; }
  .menu > li.menu_li_animation:nth-child(6) div { transition-delay: 1200ms, 1200ms; }
  .menu > li.menu_li_animation:nth-child(7) { transition-delay: 800ms, 800ms; }
  .menu > li.menu_li_animation:nth-child(7) div { transition-delay: 1400ms, 1400ms; }

  .ss-input { padding-right: 4px; }
}

/* results page */
.ss-page-group {
  font-size: 13px;
  color: #8c96a4;
  margin: 30px 0 8px;
  font-weight: normal;
}
.ss-page-list { list-style: none; padding: 0; margin: 0; }
.ss-page-list li {
  padding: 12px 0;
  border-bottom: 1px solid #f0f2f5;
  font-size: 17px;
  line-height: 1.5;
}
.ss-page-list li a { color: #1f4e79; text-decoration: none; }
.ss-page-list li a:hover { text-decoration: underline; }
.ss-page-list li span { display: block; font-size: 13px; color: #93a0b0; margin-top: 3px; }
.ss-page-note { font-size: 16px; color: #5f6b7a; margin: 26px 0; }
.ss-page-note a { color: #1f4e79; }
.ss-page-q {
  font-family: 'Brandon-Bold', Helvetica, Arial, sans-serif !important;
  font-size: 40px;
  line-height: 1.12;
  color: #111;
  margin: 0 0 6px;
}

.ss-page-count { font-size: 13px; color: #93a0b0; margin: 0 0 4px; }

/* Respect the system setting: no fade, no lift, just appear. */
@media (prefers-reduced-motion: reduce) {
  .ss-wrap,
  .ss-panel { transition: none; }
  .ss-panel { transform: none; }
}
