.mast-trigger {
  background: transparent;
  border: 0;
  border-inline-start: 1px solid #6d898e;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}
.mast-trigger:focus-visible, .mast-close:focus-visible {outline-color: var(--accent);}
.top.search-open .main-nav, .top.search-open .head-actions {display: none;}
.mast-search {
  --close-space: 3.5rem;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.75rem;
  align-items: center;
  gap: .75rem;
  flex: 1;
  max-width: 57rem;
  min-width: 0;
  margin-inline-start: auto;
}
.mast-form {
  display: flex;
  justify-self: end;
  width: 100%;
  gap: .65rem;
  align-items: center;
  padding-inline: .9rem .4rem;
  background: #fff;
  color: var(--link);
  border-radius: .25rem;
}
.mast-form:focus-within {outline: 2px solid var(--accent); outline-offset: 3px;}
.mast-form input {
  min-width: 0;
  width: 100%;
  height: 2.8rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 400 1.12rem/1.3 var(--body-font);
}
.mast-form input:focus-visible {outline: none;}
.mast-form input::placeholder {color: var(--soft-text); opacity: 1;}
.mast-close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: .25rem;
  background: transparent;
  color: white;
  cursor: pointer;
}
.mast-close:hover {background: #26505a;}
.mast-panel {
  position: absolute;
  z-index: 1;
  inset: calc(100% + .55rem) var(--close-space) auto 0;
  max-height: min(65vh, 33rem, var(--mast-available, 100vh));
  max-height: min(65dvh, 33rem, var(--mast-available, 100dvh));
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: .25rem;
  box-shadow: 0 .5rem 1.5rem #102c3429;
}
@media (prefers-reduced-motion: no-preference) {
  .search-open .mast-form {animation: mast-search-expand 190ms cubic-bezier(.2,.75,.25,1);}
  .search-open .mast-panel {animation: mast-search-appear 100ms ease-out 75ms backwards;}
  @keyframes mast-search-expand {
    from {width: 2.8rem;}
    to {width: 100%;}
  }
  @keyframes mast-search-appear {
    from {opacity: 0;}
    to {opacity: 1;}
  }
}
.mast-shortcuts {padding: .85rem 1.1rem 1rem;}
.mast-shortcuts > span, .mast-status {font-size: .98rem; color: var(--soft-text);}
.mast-shortcuts nav {display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-top: .2rem;}
.mast-shortcuts a, .mast-fallback {font-weight: 600;}
.mast-shortcuts a {padding-block: .2rem;}
.mast-status:not(:empty) {padding: .75rem 1.1rem;}
#mast-matches {list-style: none; padding: 0;}
#mast-matches li {border-top: 1px solid var(--light-line);}
.mast-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1.1rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.mast-category {display: block; color: var(--soft-text); font-size: .9rem; font-weight: 400; margin-top: .12rem;}
.mast-result::after {
  content: "";
  width: .4rem;
  height: .4rem;
  border-block-start: 1.5px solid var(--link);
  border-inline-end: 1.5px solid var(--link);
  transform: rotate(45deg);
  margin-inline-end: .15rem;
}
.mast-panel a:hover {color: var(--link);}
.mast-result:hover, .mast-result:focus-visible {background: var(--pale);}
.mast-panel a:focus-visible {outline-color: #2863ae; outline-offset: -3px;}
.mast-more, .mast-fallback {display: flex; align-items: center; gap: .3rem; padding: .7rem 1.1rem;}
.mast-more {border-top: 1px solid var(--line); font-weight: 600;}
@media (max-width: 879px) {
  .mast-trigger {border: 0;}
}
@media (max-width: 620px) {
  .top.search-open .brand, .top.search-open .site-heading {display: none;}
  .mast-search {gap: .4rem;}
  .mast-panel {inset-inline-end: 0;}
}
