/* TLT Ecosystem Search v0.2.4 - site search + secondary football glossary */

.tlt-es,
.tlt-es-inline,
.tlt-es-global-trigger {
  --tlt-es-black: #070908;
  --tlt-es-panel: rgba(8, 13, 10, 0.975);
  --tlt-es-cream: #f4efe6;
  --tlt-es-soft: #a9b3ad;
  --tlt-es-orange: #f26a1b;
  --tlt-es-gold: #d9aa50;
  --tlt-es-moss: #8cad68;
  --tlt-es-teal: #6fa7a0;
  --tlt-es-blue: #61aee6;
  --tlt-es-boundary: rgba(244, 239, 230, 0.14);
  box-sizing: border-box;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tlt-es *,
.tlt-es *::before,
.tlt-es *::after,
.tlt-es-inline *,
.tlt-es-inline *::before,
.tlt-es-inline *::after,
.tlt-es-global-trigger *,
.tlt-es-global-trigger *::before,
.tlt-es-global-trigger *::after {
  box-sizing: border-box;
}

.tlt-es[hidden],
.tlt-es [hidden] {
  display: none !important;
}

.tlt-es__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.tlt-es-global-trigger {
  appearance: none;
  -webkit-appearance: none;
  position: fixed;
  z-index: 9000;
  top: clamp(3.75rem, 3.5vw, 4.35rem);
  right: clamp(0.75rem, 1.55vw, 1.8rem);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 5px;
  border: 1px solid rgba(225, 211, 181, 0.42);
  border-radius: 13px;
  background:
    repeating-linear-gradient(37deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 36% 28%, #686552, #35372f 62%, #1b211d 100%);
  color: #f2eadb;
  box-shadow:
    0 7px 20px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -3px 7px rgba(0, 0, 0, 0.36);
  cursor: pointer;
  isolation: isolate;
  transform: translateZ(0);
  transition: transform 170ms ease, filter 170ms ease, border-color 170ms ease;
  -webkit-tap-highlight-color: transparent;
}

.tlt-es-global-trigger::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: -1;
  border: 1px dashed rgba(247, 234, 210, 0.4);
  border-radius: 9px;
  pointer-events: none;
}

.tlt-es-global-trigger::after {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: -1;
  border-radius: 7px;
  background: rgba(9, 13, 11, 0.34);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.tlt-es-global-trigger__cloth {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 27px;
  font-style: normal;
  line-height: 1;
  transform-origin: 52% 52%;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.56));
  animation: tlt-es-magnifier-idle 4.8s cubic-bezier(.2, .7, .2, 1) infinite;
}

.tlt-es__search-icon svg,
.tlt-es-inline__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tlt-es-global-trigger[aria-expanded="true"] {
  border-color: rgba(244, 239, 230, 0.7);
  filter: brightness(1.12);
  transform: translateY(1px) scale(0.98);
}

.tlt-es-global-trigger:focus-visible,
.tlt-es-inline__button:focus-visible,
.tlt-es__result:focus-visible {
  outline: 2px solid var(--tlt-es-gold) !important;
  outline-offset: 3px !important;
}

.tlt-es {
  position: fixed;
  inset: 0;
  z-index: 8999;
  color: var(--tlt-es-cream);
  pointer-events: none;
}

.tlt-es__backdrop {
  display: none;
}

.tlt-es__panel {
  position: fixed;
  top: clamp(3.75rem, 3.5vw, 4.35rem);
  right: calc(clamp(0.75rem, 1.55vw, 1.8rem) + 64px);
  width: min(560px, calc(100vw - 102px));
  max-height: min(720px, 78dvh);
  display: grid;
  grid-template-areas: "search" "scopes" "status" "results";
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(28px) scaleX(0.08);
  transform-origin: right top;
  transition: opacity 150ms ease, transform 190ms cubic-bezier(.2, .78, .25, 1);
}

.tlt-es.is-open .tlt-es__panel {
  opacity: 1;
  transform: translateX(0) scaleX(1);
}

.tlt-es__search-wrap {
  grid-area: search;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(244, 239, 230, 0.2);
  border-left: 2px solid rgba(111, 167, 160, 0.8);
  border-radius: 14px 8px 8px 14px;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.018) 4px),
    linear-gradient(100deg, rgba(11, 20, 16, 0.985), rgba(5, 8, 7, 0.99));
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.tlt-es__search-wrap:focus-within {
  border-color: rgba(244, 239, 230, 0.3);
  border-left-color: var(--tlt-es-teal);
  box-shadow:
    0 0 0 3px rgba(111, 167, 160, 0.12),
    0 14px 38px rgba(0, 0, 0, 0.52);
}

.tlt-es__search-icon,
.tlt-es-inline__icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #cfd1c3;
}

.tlt-es__input {
  min-width: 0;
  width: 100%;
  height: 52px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  appearance: none;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--tlt-es-cream) !important;
  font: 720 15px/1.2 Inter, ui-sans-serif, system-ui, sans-serif !important;
}

.tlt-es__input::placeholder {
  color: #87918b;
  opacity: 1;
}

.tlt-es__input::-webkit-search-cancel-button {
  filter: invert(1);
  opacity: 0.48;
}

.tlt-es__esc,
.tlt-es-inline__key {
  padding: 5px 7px;
  border: 1px solid rgba(244, 239, 230, 0.13);
  border-bottom-color: rgba(244, 239, 230, 0.25);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  color: #89938d;
  font: 700 8px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
}

.tlt-es__status,
.tlt-es__results {
  background: var(--tlt-es-panel);
  border-right: 1px solid var(--tlt-es-boundary);
  border-left: 1px solid var(--tlt-es-boundary);
}

.tlt-es__status {
  grid-area: status;
  display: none;
  min-height: 29px;
  margin: 7px 0 0;
  padding: 9px 14px 5px;
  border-top: 1px solid var(--tlt-es-boundary);
  border-radius: 12px 12px 0 0;
  color: #89938d;
  font: 650 9px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.tlt-es[data-tlt-search-mode="hint"] .tlt-es__status,
.tlt-es[data-tlt-search-mode="loading"] .tlt-es__status,
.tlt-es[data-tlt-search-mode="results"] .tlt-es__status,
.tlt-es[data-tlt-search-mode="empty"] .tlt-es__status,
.tlt-es[data-tlt-search-mode="error"] .tlt-es__status {
  display: block;
}

.tlt-es__results {
  grid-area: results;
  display: none;
  min-height: 0;
  max-height: min(610px, calc(78dvh - 142px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 3px 9px 12px;
  border-bottom: 1px solid var(--tlt-es-boundary);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.58);
  scrollbar-color: rgba(217, 170, 80, 0.42) transparent;
  scrollbar-width: thin;
}

.tlt-es[data-tlt-search-mode="loading"] .tlt-es__results,
.tlt-es[data-tlt-search-mode="results"] .tlt-es__results,
.tlt-es[data-tlt-search-mode="empty"] .tlt-es__results {
  display: block;
}

.tlt-es__group + .tlt-es__group {
  margin-top: 11px;
}

.tlt-es__group-title {
  display: block;
  margin: 0;
  padding: 7px 7px 5px;
  color: var(--tlt-es-gold);
  font: 800 8px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.13em;
}

.tlt-es__group-list {
  display: grid;
  gap: 4px;
}

.tlt-es__result {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 62px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.019);
  color: var(--tlt-es-cream) !important;
  text-decoration: none !important;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.tlt-es__result:hover,
.tlt-es__result.is-active {
  border-color: rgba(111, 167, 160, 0.33);
  background: linear-gradient(90deg, rgba(111, 167, 160, 0.09), rgba(255, 255, 255, 0.025));
  color: var(--tlt-es-cream) !important;
  transform: translateX(2px);
}

.tlt-es__marker {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(242, 106, 27, 0.25);
  border-radius: 8px;
  background: rgba(242, 106, 27, 0.07);
  color: var(--tlt-es-orange);
  font: 900 14px/1 Impact, "Arial Narrow", sans-serif;
}

.tlt-es__result-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tlt-es__result-top {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tlt-es__badge,
.tlt-es__position,
.tlt-es__team {
  display: inline-flex;
  align-items: center;
  min-height: 15px;
  padding: 2px 5px;
  border-radius: 4px;
  white-space: nowrap;
  font: 800 7.5px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.06em;
}

.tlt-es__badge {
  overflow: hidden;
  max-width: 190px;
  border: 1px solid rgba(97, 174, 230, 0.2);
  background: rgba(97, 174, 230, 0.07);
  color: #91c8ef;
  text-overflow: ellipsis;
}

.tlt-es__position {
  background: rgba(96, 102, 106, 0.22);
  color: #d8dcde;
}

.tlt-es__position.is-qb { background: rgba(239, 47, 143, 0.17); color: #ff78ba; }
.tlt-es__position.is-rb { background: rgba(77, 156, 101, 0.19); color: #88c89b; }
.tlt-es__position.is-wr { background: rgba(68, 165, 238, 0.18); color: #8acbf8; }
.tlt-es__position.is-te { background: rgba(242, 179, 19, 0.17); color: #f5cc64; }
.tlt-es__position.is-k { background: rgba(141, 90, 162, 0.21); color: #cba2dc; }

.tlt-es__team {
  border: 1px solid rgba(244, 239, 230, 0.09);
  color: #aab4ae;
}

.tlt-es__result-title {
  overflow: hidden;
  color: var(--tlt-es-cream);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tlt-es__result-subtitle {
  overflow: hidden;
  color: #929d96;
  font-size: 10px;
  line-height: 1.24;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tlt-es__arrow {
  position: relative;
  width: 22px;
  height: 22px;
  justify-self: end;
  color: #6f7a74;
}

.tlt-es__arrow::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 3px;
  width: 13px;
  height: 1px;
  background: currentColor;
}

.tlt-es__arrow::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.tlt-es__result:hover .tlt-es__arrow,
.tlt-es__result.is-active .tlt-es__arrow {
  color: var(--tlt-es-teal);
}

.tlt-es__loading {
  display: grid;
  gap: 5px;
}

.tlt-es__loading-row {
  display: block;
  height: 58px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  background-size: 240% 100%;
  animation: tlt-es-loading 1.35s ease infinite;
}

@keyframes tlt-es-loading {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.tlt-es__empty {
  display: grid;
  gap: 5px;
  margin: 6px 0 0;
  padding: 16px;
  border: 1px dashed rgba(244, 239, 230, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.016);
}

.tlt-es__empty strong {
  color: var(--tlt-es-cream);
  font-size: 13px;
}

.tlt-es__empty small {
  color: #8e9992;
  font-size: 11px;
}

.tlt-es-inline {
  width: 100%;
}

.tlt-es-inline__button {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(244, 239, 230, 0.16);
  border-radius: 13px;
  background: linear-gradient(100deg, rgba(7, 29, 23, 0.92), rgba(7, 9, 8, 0.96));
  color: var(--tlt-es-cream);
  text-align: left;
  cursor: pointer;
}

.tlt-es-inline__button:hover {
  border-color: rgba(111, 167, 160, 0.45);
}

.tlt-es-inline__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tlt-es-inline__copy strong {
  color: var(--tlt-es-cream);
  font-size: 14px;
}

.tlt-es-inline__copy small {
  overflow: hidden;
  color: #929d96;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tlt-es-inline.is-compact .tlt-es-inline__button {
  min-height: 48px;
}

.tlt-es-inline.is-compact .tlt-es-inline__copy small {
  display: none;
}

@media (min-width: 781px) {
  body.admin-bar .tlt-es-global-trigger,
  body.admin-bar .tlt-es__panel {
    top: calc(32px + clamp(3.75rem, 3.5vw, 4.35rem));
  }
}

@media (min-width: 781px) and (hover: hover) and (pointer: fine) {
  .tlt-es-global-trigger:hover {
    border-color: rgba(244, 239, 230, 0.62);
    filter: brightness(1.1);
    transform: translateY(-1px) rotate(-1.5deg);
  }

  .tlt-es-global-trigger:hover .tlt-es-global-trigger__cloth {
    animation: tlt-es-magnifier-scan 680ms cubic-bezier(.3, .8, .35, 1) infinite alternate;
  }
}

@keyframes tlt-es-magnifier-idle {
  0%, 70%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  78% {
    transform: translate3d(-1px, -1px, 0) rotate(-7deg) scale(1.05);
  }
  86% {
    transform: translate3d(1px, 1px, 0) rotate(5deg) scale(1.02);
  }
  93% {
    transform: translate3d(0, 0, 0) rotate(-2deg) scale(1);
  }
}

@keyframes tlt-es-magnifier-scan {
  from {
    transform: translate3d(-2px, -1px, 0) rotate(-9deg) scale(1.04);
  }
  to {
    transform: translate3d(2px, 1px, 0) rotate(7deg) scale(1.08);
  }
}

@media (max-width: 780px) {
  html.tlt-es-mobile-open,
  body.tlt-es-mobile-open {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.tlt-es-mobile-rail-integrated {
    padding-bottom: 78px !important;
    padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important;
  }

  body.tlt-es-mobile-rail-integrated.tlt-es-mobile-open {
    padding-bottom: 142px !important;
    padding-bottom: calc(142px + env(safe-area-inset-bottom)) !important;
  }

  .tlt-es-global-trigger {
    z-index: 100020;
    top: auto;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(82px, calc(env(safe-area-inset-bottom) + 72px));
    width: 50px;
    height: 50px;
  }

  body.tlt-es-mobile-rail-integrated .tlt-es-global-trigger {
    display: none !important;
  }

  body.tlt-es-mobile-rail-integrated #tlt-mobile-command-navigation-v110 {
    grid-template-columns: 42px repeat(6, minmax(0, 1fr)) !important;
    transition: bottom 190ms cubic-bezier(.2, .78, .25, 1), transform 190ms ease !important;
  }

  body.tlt-es-mobile-rail-integrated #tlt-mobile-command-navigation-v110 [data-tlt-command-search] {
    --tlt-command-item-accent: #cfd1c3 !important;
  }

  body.tlt-es-mobile-rail-integrated #tlt-mobile-command-navigation-v110 [data-tlt-command-search][aria-expanded="true"] {
    color: rgba(248, 241, 228, 0.98) !important;
    border-color: rgba(242, 234, 219, 0.1) !important;
    background: linear-gradient(180deg, rgba(242, 234, 219, 0.055), rgba(242, 234, 219, 0.018)) !important;
    box-shadow: inset 0 2px 0 var(--tlt-command-item-accent), 0 6px 16px rgba(0, 0, 0, 0.18) !important;
  }

  body.tlt-es-mobile-rail-integrated.tlt-es-mobile-open #tlt-mobile-command-navigation-v110 {
    bottom: 70px !important;
    bottom: calc(70px + env(safe-area-inset-bottom)) !important;
  }

  .tlt-es {
    z-index: 100025;
  }

  .tlt-es__backdrop {
    appearance: none;
    -webkit-appearance: none;
    position: fixed;
    inset: 0 0 calc(132px + env(safe-area-inset-bottom));
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.38);
    opacity: 0;
    pointer-events: auto;
    transition: opacity 160ms ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .tlt-es.is-open .tlt-es__backdrop {
    opacity: 1;
  }

  .tlt-es__panel {
    top: auto;
    right: max(6px, env(safe-area-inset-right));
    bottom: max(6px, env(safe-area-inset-bottom));
    left: max(6px, env(safe-area-inset-left));
    width: auto;
    max-height: calc(100dvh - 84px - env(safe-area-inset-top));
    grid-template-areas:
      "results"
      "status"
      "scopes"
      "search";
    grid-template-rows: minmax(0, 1fr) auto auto auto;
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px) scaleX(1);
    transform-origin: center bottom;
    transition: opacity 150ms ease, transform 190ms cubic-bezier(.2, .78, .25, 1);
  }

  .tlt-es.is-open .tlt-es__panel {
    opacity: 1;
    transform: translateY(0) scaleX(1);
  }

  .tlt-es__search-wrap {
    grid-area: search;
    min-height: 58px;
    border-left-width: 1px;
    border-bottom: 2px solid rgba(111, 167, 160, 0.76);
    border-radius: 11px 11px 15px 15px;
    background:
      repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.018) 4px),
      linear-gradient(100deg, rgba(11, 20, 16, 0.99), rgba(5, 8, 7, 0.995));
  }

  .tlt-es__input {
    height: 56px;
    font-size: 16px !important;
  }

  .tlt-es__esc {
    display: none;
  }

  .tlt-es__search-wrap {
    grid-template-columns: 23px minmax(0, 1fr);
  }

  .tlt-es__status {
    grid-area: status;
    margin: 0;
    padding: 8px 13px 5px;
    border-top: 0;
    border-radius: 0;
  }

  .tlt-es__results {
    grid-area: results;
    max-height: min(56dvh, 570px);
    padding: 4px 7px 10px;
    border-top: 1px solid var(--tlt-es-boundary);
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -22px 58px rgba(0, 0, 0, 0.58);
  }

  .tlt-es__group + .tlt-es__group {
    margin-top: 9px;
  }

  .tlt-es__result {
    grid-template-columns: 31px minmax(0, 1fr) 23px;
    gap: 8px;
    min-height: 60px;
    padding: 7px;
  }

  .tlt-es__marker {
    width: 31px;
    height: 31px;
  }

  .tlt-es__badge {
    max-width: 142px;
  }

  .tlt-es__result-title {
    font-size: 13px;
  }

  .tlt-es__result-subtitle {
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  body.tlt-es-mobile-rail-integrated #tlt-mobile-command-navigation-v110 {
    grid-template-columns: 40px repeat(6, minmax(0, 1fr)) !important;
  }

  .tlt-es__position,
  .tlt-es__team {
    display: none;
  }

  .tlt-es__badge {
    max-width: 154px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tlt-es-global-trigger,
  .tlt-es__panel,
  .tlt-es__backdrop,
  .tlt-es__result,
  body.tlt-es-mobile-rail-integrated #tlt-mobile-command-navigation-v110 {
    transition: none !important;
  }

  .tlt-es__loading-row {
    animation: none !important;
  }

  .tlt-es-global-trigger__cloth {
    animation: none !important;
  }
}

/* One entry point, two separate destinations. */
.tlt-es__scopes {
  grid-area: scopes;
  display: flex;
  gap: 6px;
  padding: 7px;
  margin-top: 7px;
  background: var(--tlt-es-panel);
  border: 1px solid var(--tlt-es-boundary);
  border-radius: 10px;
}
.tlt-es__scopes button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--tlt-es-soft);
  font: 650 13px/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.tlt-es__scopes button[aria-pressed="true"] {
  color: var(--tlt-es-cream);
  background: rgba(111, 167, 160, .13);
  border-color: rgba(111, 167, 160, .5);
}
.tlt-es__scopes button[data-tlt-search-scope="terms"][aria-pressed="true"] {
  color: #edce93;
  background: rgba(217, 170, 80, .12);
  border-color: rgba(217, 170, 80, .5);
}
.tlt-es__scopes button:hover { color: var(--tlt-es-cream); }
.tlt-es__scopes button:focus-visible,
.tlt-es__glossary a:focus-visible {
  outline: 2px solid var(--tlt-es-gold);
  outline-offset: 3px;
}
.tlt-es__glossary {
  grid-area: results;
  min-height: 0;
  max-height: min(540px, calc(78dvh - 142px));
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 7px;
  padding: 22px;
  border: 1px solid var(--tlt-es-boundary);
  border-top-color: rgba(217, 170, 80, .45);
  border-radius: 12px;
  background: var(--tlt-es-panel);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .58);
  color: var(--tlt-es-cream);
  font: 14px/1.55 Inter, ui-sans-serif, system-ui, sans-serif;
  overflow-wrap: anywhere;
}
.tlt-es__glossary p { margin: 0 0 16px; color: var(--tlt-es-soft); }
.tlt-es__glossary .tlt-es__glossary-kicker {
  margin-bottom: 8px;
  color: var(--tlt-es-gold);
  font: 700 10px/1.5 ui-monospace, monospace;
  letter-spacing: .12em;
}
.tlt-es__glossary h3 {
  margin: 0 0 10px;
  color: var(--tlt-es-cream);
  font: 400 28px/1.12 Georgia, serif;
  letter-spacing: -.025em;
}
.tlt-es__glossary .tlt-es__glossary-go {
  display: block;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d9aa50;
  border-radius: 7px;
  background: #d9aa50;
  color: #131a14;
  font-weight: 750;
  text-decoration: none;
}
.tlt-es__glossary .tlt-es__glossary-go:hover { background: #e5bf77; }
.tlt-es__glossary .tlt-es__glossary-note { margin: 8px 0 15px; font-size: 12px; }
.tlt-es__glossary-examples { display: flex; flex-wrap: wrap; gap: 7px; }
.tlt-es__glossary-examples a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--tlt-es-boundary);
  border-radius: 6px;
  color: var(--tlt-es-cream);
  font-size: 12px;
  text-decoration: none;
}
.tlt-es__glossary-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
  margin-top: 15px;
  padding-top: 8px;
  border-top: 1px solid var(--tlt-es-boundary);
}
.tlt-es__glossary-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #dfbd7e;
  font-size: 12px;
  text-underline-offset: 4px;
}
@media (max-width: 780px) {
  .tlt-es__scopes { margin: 0; border-radius: 0; border-bottom: 0; }
  .tlt-es__glossary {
    margin: 0;
    padding: 18px;
    max-height: min(56dvh, calc(100dvh - 210px));
    border-radius: 12px 12px 0 0;
  }
  .tlt-es__glossary h3 { font-size: 26px; }
}
