.teg-footer {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 14px 16px !important;
  border: 1px solid rgba(23, 33, 31, 0.1) !important;
  border-radius: 28px !important;
  color: rgba(23, 33, 31, 0.68) !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 150, 63, 0.15), transparent 26rem),
    rgba(255, 254, 249, 0.9) !important;
  box-shadow: 0 18px 44px rgba(35, 27, 16, 0.08) !important;
  backdrop-filter: blur(18px);
  text-align: left;
}

.teg-footer-bar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center !important;
  gap: 14px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.teg-footer-copy,
.teg-footer-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  min-width: 0;
  color: rgba(23, 33, 31, 0.66);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
}

.teg-footer-copy {
  flex: 1 1 0;
  justify-content: flex-start !important;
  text-align: left;
}

.teg-footer-links {
  flex: 1 1 0;
  justify-content: flex-end !important;
  gap: 10px;
  text-align: right;
}

.teg-footer-links nav,
.teg-footer-links span {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
}

.teg-footer-toggle {
  flex: 0 0 auto;
  justify-self: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  color: rgba(23, 33, 31, 0.5);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teg-footer-toggle:hover,
.teg-footer-toggle:focus {
  outline: none;
  color: #8e6425;
  background: rgba(201, 150, 63, 0.08);
  box-shadow: 0 0 0 3px rgba(201, 150, 63, 0.06);
}

.teg-footer a {
  color: inherit;
  text-decoration: none;
}

.teg-footer-links a {
  color: #8e6425;
  text-decoration: underline;
  text-decoration-color: rgba(201, 150, 63, 0.45);
  text-underline-offset: 4px;
}

.teg-footer-directory {
  display: block;
  width: 100%;
  overflow: hidden;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 33, 31, 0.08);
}

.teg-footer-directory[hidden] {
  display: none !important;
}

.teg-footer-grid {
  display: grid !important;
  grid-template-columns: minmax(140px, 0.96fr) minmax(150px, 1fr) minmax(420px, 2.42fr) minmax(150px, 1fr) minmax(140px, 0.96fr);
  column-gap: clamp(24px, 2.05vw, 34px);
  row-gap: 0;
  align-items: stretch;
}

.teg-footer-column {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 7px;
  align-content: start;
  min-width: 0;
  min-height: 100%;
  padding: 10px clamp(3px, 0.45vw, 8px);
  border: 1px solid transparent;
  border-radius: 20px;
  background: transparent;
}

.teg-footer-column + .teg-footer-column {
  border-radius: 0;
}

.teg-footer-column + .teg-footer-column::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 12px;
  left: calc(clamp(24px, 2.05vw, 34px) / -2);
  width: 1px;
  background: rgba(201, 150, 63, 0.22);
}

.teg-footer-column:nth-child(2)::before {
  left: calc(clamp(24px, 2.05vw, 34px) / -2 - 20px);
}

.teg-footer-column:nth-child(3)::before {
  left: calc(clamp(24px, 2.05vw, 34px) / -2 - 18px);
}

.teg-footer-column:nth-child(4)::before {
  left: calc(clamp(24px, 2.05vw, 34px) / -2 - 8px);
}

.teg-footer-column:nth-child(5)::before {
  left: calc(clamp(24px, 2.05vw, 34px) / -2 - 14px);
}

.teg-footer-column strong {
  color: #17211f;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.teg-footer-column-featured {
  padding-inline: clamp(16px, 1.35vw, 22px);
}

.teg-footer-column-featured > strong {
  justify-self: center;
  text-align: center;
}

.teg-footer-subgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.teg-footer-subgroup {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}

.teg-footer-subgroup span {
  color: #8e6425;
  font-size: 0.66rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teg-footer-column a {
  display: block !important;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  width: 100% !important;
  padding: 6px 0;
  color: rgba(23, 33, 31, 0.72);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.teg-footer-column a::after {
  content: none;
  display: none;
}

.teg-footer-column a:hover,
.teg-footer-column a:focus {
  color: #8e6425;
  outline: none;
}

.teg-footer-note {
  margin: 0;
  color: rgba(23, 33, 31, 0.56);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.45;
}

@media (max-width: 960px) {
  .teg-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(22px, 4vw, 34px);
    row-gap: 0;
  }

  .teg-footer-column + .teg-footer-column::before {
    display: none;
  }

  .teg-footer-column + .teg-footer-column {
    border-top-color: rgba(201, 150, 63, 0.14);
  }

  .teg-footer-column:nth-child(2) {
    border-top-color: transparent;
  }

  .teg-footer-column-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .teg-footer {
    padding: 12px !important;
  }

  .teg-footer-bar {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .teg-footer-copy,
  .teg-footer-links,
  .teg-footer-toggle {
    justify-self: center;
    justify-content: center !important;
    text-align: center;
  }

  .teg-footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .teg-footer-subgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .teg-footer-column-featured {
    padding-inline: 4px;
  }

  .teg-footer-column + .teg-footer-column {
    border-top-color: rgba(201, 150, 63, 0.16);
    padding-top: 14px;
  }
}
