/* Site search overlay + results page — from html_maket/jby-search */
#jbs,
#jb_body.page-search {
  --ink: #2f2f39;
  --paper: #fcfcfd;
  --section: #f4f6f9;
  --navy: #41647b;
  --navy-d: #365466;
  --sand: #bdb19d;
  --mute: #575760;
  --line: rgba(0, 0, 0, 0.08);
  --white: #fff;
  --jbs-sans: "Myriad Pro", "Myriad-Pro-Light", "Myriad-Pro-Regular", system-ui, sans-serif;
  --jbs-display: "Mesmerize", "Mesmerize-ex-lt", sans-serif;
  --paper: #fcfcfd;
  --ink: #2f2f39;
}
.jbs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.jbs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#jbs {
  position: fixed;
  inset: 0;
  z-index: 7000;
  visibility: hidden;
  pointer-events: none;
  font-family: var(--jbs-sans);
  font-weight: 300;
  color: var(--ink);
}
#jbs[hidden] {
  display: none !important;
}
#jbs.open {
  display: block;
  visibility: visible;
  pointer-events: auto;
}
body.jbs-lock {
  overflow: hidden;
}

.header-nav-root.jbs-away,
#headerV2Mega.jbs-away {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.28s ease;
}

#jbs .jbs-scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 26, 32, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.32s ease;
}
#jbs.open .jbs-scrim {
  opacity: 1;
}

#jbs .jbs-shell {
  position: relative;
  padding: var(--jbs-top, 40px) 40px 0;
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  box-sizing: border-box;
}

#jbs .jbs-bar {
  position: relative;
  flex: 0 0 auto;
  background: var(--white);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  height: 88px;
  padding: 0 28px;
  border: 0.5px solid var(--line);
  border-bottom: 0;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.44s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-sizing: border-box;
}
#jbs.open .jbs-bar {
  clip-path: inset(0 0 0 0);
}
#jbs .jbs-ico {
  font-size: 19px;
  color: var(--navy);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
#jbs .jbs-ico svg {
  width: 20px;
  height: 20px;
  display: block;
}
#jbs .jbs-bar input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
  font-family: inherit;
  font-weight: 300;
  font-size: 21px;
  line-height: 30px;
  letter-spacing: 0;
  padding: 0;
  -webkit-appearance: none;
  border-radius: 0;
  box-shadow: none;
}
#jbs .jbs-bar input::placeholder {
  color: rgba(47, 47, 57, 0.3);
}
#jbs .jbs-bar input::-webkit-search-cancel-button {
  display: none;
}
#jbs .jbs-x {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s;
}
#jbs .jbs-x:hover {
  opacity: 0.55;
}
#jbs .jbs-x svg {
  width: 20px;
  height: 20px;
  display: block;
}

#jbs .jbs-drop {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border: 0.5px solid var(--line);
  padding: 34px 28px 38px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease 0.1s, transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s;
  box-sizing: border-box;
}
#jbs.open .jbs-drop {
  opacity: 1;
  transform: none;
}

#jbs .jbs-lbl {
  font-family: inherit;
  font-weight: 300;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
#jbs .jbs-sec {
  margin: 0 0 34px;
}
#jbs .jbs-sec:last-child {
  margin-bottom: 0;
}

#jbs .jbs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#jbs .jbs-chip {
  height: 40px;
  padding: 0 18px;
  border: 0.5px solid rgba(0, 0, 0, 0.18);
  background: transparent;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: inherit;
  font-weight: 300;
  font-size: 16px;
  line-height: 22px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
#jbs .jbs-chip:hover {
  background: rgba(0, 0, 0, 0.05);
}
#jbs .jbs-chip .x {
  font-size: 16px;
  color: rgba(47, 47, 57, 0.3);
  line-height: 1;
  transition: color 0.2s;
}
#jbs .jbs-chip .x:hover {
  color: var(--ink);
}

#jbs .jbs-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5px;
  background: var(--line);
  border: 0.5px solid var(--line);
}
#jbs .jbs-quick a {
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  transition: background 0.28s;
  color: var(--ink);
  text-decoration: none;
}
#jbs .jbs-quick a:hover {
  background: var(--section);
}
#jbs .jbs-quick .t {
  flex: 1 1 auto;
  font-family: inherit;
  font-weight: 300;
  font-size: 16px;
  line-height: 22px;
  color: var(--ink);
  letter-spacing: 0.01em;
}
#jbs .jbs-quick .ar {
  flex: 0 0 auto;
  font-size: 16px;
  color: var(--mute);
  transition: color 0.25s;
  line-height: 1;
  display: flex;
}
#jbs .jbs-quick a:hover .ar {
  color: var(--navy);
}
#jbs .jbs-quick .ar svg {
  width: 16px;
  height: 16px;
  display: block;
}

#jbs .jbs-res {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 18px;
  padding: 9px 10px 9px 8px;
  border-radius: 2px;
  transition: background 0.18s;
  color: inherit;
  text-decoration: none;
}
#jbs .jbs-res.bare .thumb {
  background: none;
  border: 0;
}
#jbs .jbs-res:hover,
#jbs .jbs-res.sel {
  background: var(--section);
}
#jbs .jbs-res .thumb {
  width: 48px;
  height: 48px;
  background: var(--section) center / cover no-repeat;
  border: 0.5px solid var(--line);
  border-radius: 2px;
  display: block;
}
#jbs .jbs-res .thumb.logo {
  background-color: var(--white);
  background-size: contain;
  background-origin: content-box;
  padding: 7px;
  border-color: var(--line);
}
#jbs .jbs-res .txt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
#jbs .jbs-res .t {
  display: block;
  font-family: inherit;
  font-weight: 300;
  font-size: 18px;
  line-height: 25px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#jbs .jbs-res .d {
  display: block;
  font-size: 13px;
  line-height: 18px;
  color: var(--mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#jbs .jbs-res.has-tail {
  grid-template-columns: 48px 1fr auto;
}
#jbs .jbs-res.bare.has-tail {
  grid-template-columns: 1fr auto;
}
#jbs .jbs-res.pick {
  background: rgba(65, 100, 123, 0.07);
  box-shadow: inset 0 0 0 0.5px var(--navy);
  margin-bottom: 6px;
}
#jbs .jbs-res.pick:hover {
  background: rgba(65, 100, 123, 0.11);
}
#jbs .jbs-res.pick .t {
  color: var(--navy);
}
#jbs .jbs-res .tail {
  width: 26px;
  height: 26px;
  margin-right: 4px;
  flex: 0 0 auto;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  color: var(--navy);
  border: 0.5px solid rgba(65, 100, 123, 0.35);
  transition: background 0.2s;
}
#jbs .jbs-res.pick:hover .tail {
  background: rgba(65, 100, 123, 0.14);
}

#jbs .jbs-none {
  padding: 6px 0 30px;
}
#jbs .jbs-none h3 {
  font-family: inherit;
  font-weight: 300;
  font-size: 21px;
  line-height: 30px;
  color: var(--navy);
  margin: 0 0 6px;
}
#jbs .jbs-none p {
  font-size: 15px;
  line-height: 22px;
  color: var(--mute);
  margin: 0;
}

#jbs .jbs-seeall {
  margin: 26px 0 0;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 2px;
  background: var(--navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--jbs-display);
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.25s;
}
#jbs .jbs-seeall:hover {
  background: var(--navy-d);
  color: #fff;
}
#jbs .jbs-seeall svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 980px) {
  #jbs .jbs-shell {
    padding: var(--jbs-top, 24px) 24px 0;
  }
  #jbs .jbs-bar {
    height: 72px;
    padding: 0 20px;
    gap: 14px;
  }
  #jbs .jbs-bar input {
    font-size: 17px;
    line-height: 24px;
  }
  #jbs .jbs-drop {
    padding: 26px 20px 30px;
  }
  #jbs .jbs-quick {
    grid-template-columns: repeat(2, 1fr);
  }
  #jbs .jbs-quick a {
    padding: 18px;
  }
  #jbs .jbs-res {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }
  #jbs .jbs-res .thumb {
    width: 42px;
    height: 42px;
  }
  #jbs .jbs-res .t {
    font-size: 16px;
    line-height: 22px;
  }
}
@media (max-width: 560px) {
  #jbs .jbs-quick {
    grid-template-columns: 1fr;
  }
}

/* ---- results page (header/footer stay as-is) ---- */
#jb_body.page-search {
  background: var(--paper);
  color: var(--ink);
}
#jb_body.page-search .sr-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px 80px;
  box-sizing: border-box;
}
#jb_body.page-search .sr-head {
  padding: 48px 0 40px;
}
#jb_body.page-search .sr-title {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}
#jb_body.page-search .sr-title h1 {
  font-family: var(--jbs-display);
  font-weight: 300;
  font-size: 22px;
  line-height: 32px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}
#jb_body.page-search .sr-title h1 span {
  color: var(--ink);
}
#jb_body.page-search .sr-clear {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  line-height: 1;
  transition: opacity 0.2s;
  text-decoration: none;
}
#jb_body.page-search .sr-clear:hover {
  opacity: 0.55;
}
#jb_body.page-search .sr-count {
  font-family: var(--jbs-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 22px;
  color: var(--mute);
  margin: 0;
}
#jb_body.page-search .sr-block {
  padding: 0 0 56px;
}
#jb_body.page-search .sr-block + .sr-block {
  border-top: 0.5px solid var(--line);
  padding-top: 56px;
}
#jb_body.page-search .sr-secline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 4px;
  margin: 0 0 26px;
}
#jb_body.page-search .sr-secline h2 {
  font-family: var(--jbs-display);
  font-weight: 300;
  font-size: 19px;
  line-height: 28px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
#jb_body.page-search .sr-secline .s-link {
  font-family: var(--jbs-display);
  font-weight: 300;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0 24px;
  height: 40px;
  border: 0.5px solid var(--ink);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: transparent;
  text-decoration: none;
  transition: 0.25s;
}
#jb_body.page-search .sr-secline .s-link:hover {
  background: rgba(0, 0, 0, 0.05);
}
#jb_body.page-search .sr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
#jb_body.page-search .sr-card {
  display: flex;
  flex-direction: column;
  border: 0.5px solid var(--line);
  background: var(--white);
  border-radius: 2px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
#jb_body.page-search .sr-card:hover {
  box-shadow: 0 5px 16px rgba(20, 26, 32, 0.06);
  border-color: rgba(0, 0, 0, 0.06);
}
#jb_body.page-search .sr-card .cimg {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--section) center / cover no-repeat;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
#jb_body.page-search .sr-card:hover .cimg {
  transform: scale(1.06);
}
#jb_body.page-search .sr-card:hover .cimg.logo {
  transform: none;
}
#jb_body.page-search .sr-card .cimg.logo {
  background-color: var(--white);
  background-size: contain;
  background-origin: content-box;
  padding: 34px;
  border-bottom: 0.5px solid var(--line);
}
#jb_body.page-search .sr-card.sr-team .cimg {
  background-position: center top;
}
#jb_body.page-search .sr-card .cbody {
  position: relative;
  z-index: 1;
  background: var(--white);
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1 1 auto;
}
#jb_body.page-search .sr-card .ctitle {
  font-family: var(--jbs-sans);
  font-weight: 300;
  font-size: 20px;
  line-height: 28px;
  color: var(--ink);
}
#jb_body.page-search .sr-card .cmeta {
  font-family: var(--jbs-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: var(--mute);
}
#jb_body.page-search .sr-empty {
  padding: 20px 0 120px;
}
#jb_body.page-search .sr-empty h2 {
  font-family: var(--jbs-display);
  font-weight: 300;
  font-size: 32px;
  line-height: 48px;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 10px;
}
#jb_body.page-search .sr-empty p {
  font-family: var(--jbs-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: var(--mute);
  margin: 0 0 28px;
}
#jb_body.page-search .btn-solid {
  height: 48px;
  padding: 0 24px;
  background: var(--navy);
  color: #fff;
  font-family: var(--jbs-display);
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 2px;
  transition: 0.25s;
}
#jb_body.page-search .btn-solid:hover {
  background: var(--navy-d);
  color: #fff;
}

@media (max-width: 1100px) {
  #jb_body.page-search .sr-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 980px) {
  #jb_body.page-search .sr-wrap {
    padding: 0 24px 64px;
  }
  #jb_body.page-search .sr-head {
    padding: 32px 0 30px;
  }
  #jb_body.page-search .sr-title h1 {
    font-size: 19px;
    line-height: 28px;
  }
  #jb_body.page-search .sr-secline h2 {
    font-size: 17px;
    line-height: 26px;
  }
}
@media (max-width: 680px) {
  #jb_body.page-search .sr-grid {
    grid-template-columns: 1fr;
  }
}
