:root {
  --tlg-ink: #111216;
  --tlg-paper: #f7f5f0;
  --tlg-line: #d9d5cd;
  --tlg-orange: #e8670a;
}

html.tlg-lock {
  overflow: hidden;
}

tl-global-nav {
  position: relative;
  z-index: 9990;
  display: block;
  height: 86px;
}

tl-global-nav[data-overlay="true"] {
  height: 0;
}

.tlg-header {
  position: fixed;
  z-index: 9990;
  inset: 0 0 auto;
  padding: 14px 18px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tlg-header * {
  box-sizing: border-box;
}

.tlg-header a {
  text-decoration: none;
}

header.tl-hd,
header.tlu-hd,
header.site-head {
  display: none !important;
}

.tlg-wrap {
  display: flex;
  width: min(1240px, calc(100% - 20px));
  height: 62px;
  margin: auto;
  padding: 0 14px 0 22px;
  align-items: center;
  gap: 24px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 14px;
  background: #111214;
  box-shadow: 0 12px 34px rgb(0 0 0 / 18%);
}

.tlg-logo {
  display: flex;
  margin-right: auto;
  align-items: center;
}

.tlg-logo img {
  display: block;
  width: auto;
  height: 32px;
}

.tlg-desktop {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tlg-link,
.tlg-trigger {
  display: flex;
  min-height: 40px;
  padding: 9px 11px;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #f4f2ed;
  font: 600 13px/1 Inter, sans-serif;
  white-space: nowrap;
}

.tlg-link:hover,
.tlg-link:focus-visible,
.tlg-trigger:hover,
.tlg-trigger:focus-visible,
.tlg-trigger[aria-expanded="true"] {
  outline: 0;
  background: rgb(255 255 255 / 9%);
  color: #fff;
}

.tlg-trigger svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2.5;
  transition: transform 0.2s;
}

.tlg-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.tlg-group {
  position: relative;
}

.tlg-group::after {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 12px;
  content: "";
}

.tlg-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  display: none;
  width: 340px;
  padding: 10px;
  transform: translateX(-50%);
  border: 1px solid var(--tlg-line);
  border-radius: 14px;
  background: var(--tlg-paper);
  box-shadow: 0 24px 70px rgb(20 17 12 / 22%);
}

.tlg-group:hover .tlg-panel,
.tlg-trigger[aria-expanded="true"] + .tlg-panel {
  display: grid;
}

.tlg-card {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 11px;
  padding: 12px;
  border-radius: 9px;
  color: #16171a;
}

.tlg-card:hover,
.tlg-card:focus-visible {
  outline: 0;
  background: #eae6de;
}

.tlg-card b,
.tlg-card small {
  display: block;
}

.tlg-card b {
  font-size: 13px;
}

.tlg-card small {
  margin-top: 3px;
  color: #6e6b65;
  font-size: 11.5px;
  line-height: 1.35;
}

.tlg-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #d3cec4;
  border-radius: 8px;
  color: #b84d0e;
  font: 800 10px monospace;
}

.tlg-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tlg-account {
  padding: 9px 11px;
  color: #f4f2ed;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tlg-cta {
  display: inline-flex;
  min-height: 40px;
  padding: 0 15px;
  align-items: center;
  border-radius: 8px;
  background: var(--tlg-orange);
  color: #211107;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.tlg-cta:hover,
.tlg-cta:focus-visible {
  outline: 2px solid #ffb37e;
  outline-offset: 2px;
  background: #ff7d22;
}

.tlg-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #f4f2ed;
}

.tlg-burger svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
}

.tlg-mobile {
  width: min(1240px, calc(100% - 20px));
  max-height: 85vh;
  margin: 8px auto 0;
  overflow-y: auto;
  border: 1px solid var(--tlg-line);
  border-radius: 14px;
  background: var(--tlg-paper);
  box-shadow: 0 20px 60px rgb(20 17 12 / 20%);
  overscroll-behavior: contain;
}

.tlg-mobile[hidden] {
  display: none;
}

.tlg-mobile nav {
  padding: 10px 16px 18px;
}

.tlg-mobile-heading {
  display: block;
  padding: 16px 4px 7px;
  color: #a54209;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tlg-mobile-link {
  display: flex;
  min-height: 44px;
  padding: 10px 4px;
  align-items: center;
  border-bottom: 1px solid #dedad2;
  color: #202125;
  font-size: 14px;
}

body.admin-bar .tlg-header {
  top: 32px;
}

@media (max-width: 1180px) {
  .tlg-desktop,
  .tlg-account {
    display: none;
  }

  .tlg-burger {
    display: block;
  }
}

@media (max-width: 782px) {
  body.admin-bar .tlg-header {
    top: 46px;
  }
}

@media (max-width: 640px) {
  tl-global-nav:not([data-overlay="true"]) {
    height: 76px;
  }

  .tlg-header {
    padding: 9px;
  }

  .tlg-wrap {
    width: 100%;
    height: 58px;
    padding: 0 8px 0 14px;
  }

  .tlg-logo img {
    height: 30px;
  }

  .tlg-cta {
    display: none;
  }

  .tlg-mobile {
    width: 100%;
    max-height: 85vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tlg-trigger svg {
    transition: none;
  }
}
