@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&display=swap");

.poa-ts-header {
  --poa-gold: #e8b923;
  --poa-bone: #f4efe6;
  --poa-ink: #0b0b0d;

  width: 100%;
  background: rgba(11, 11, 13, 0.78);
  border-bottom: 1px solid rgba(232, 185, 35, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.poa-ts-header,
.poa-ts-header *,
.poa-ts-header *::before,
.poa-ts-header *::after {
  box-sizing: border-box;
}

.poa-ts-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 1rem;
  width: 100%;
  max-width: 1280px;
  min-height: 4rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Brand */
.poa-ts-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--poa-bone);
  flex: none;
}

.poa-ts-brand:hover,
.poa-ts-brand:focus {
  color: var(--poa-bone);
  text-decoration: none;
}

.poa-ts-brand__mark {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  object-fit: contain;
}

.poa-ts-brand__text {
  font-family: "Cinzel", serif !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--poa-bone);
  white-space: nowrap;
}

.poa-ts-brand__of {
  color: var(--poa-gold);
}

/* Navigation */
.poa-ts-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.poa-ts-nav__link {
  color: var(--poa-bone);
  padding: 0.5rem 0.67rem;
  border-radius: 0.125rem;
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.poa-ts-nav__link:hover {
  color: var(--poa-gold);
  text-decoration: none;
}

.poa-ts-nav__link--active,
.poa-ts-nav__link--active:hover {
  color: var(--poa-gold);
}

.poa-ts-nav__link:focus-visible,
.poa-ts-cta:focus-visible {
  outline: 2px solid var(--poa-gold);
  outline-offset: 2px;
}

/* Gold CTA */
.poa-ts-cta {
  display: inline-block;
  margin-left: 0.5rem;
  background: var(--poa-gold);
  color: var(--poa-ink) !important;
  border: none;
  border-radius: 0;
  padding: 0.4rem 0.85rem;
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.poa-ts-cta:hover {
  background: var(--poa-bone);
  color: var(--poa-ink);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Below the 1024px breakpoint: logo + CTA only */
@media (max-width: 1023px) {
  .poa-ts-nav__link {
    display: none;
  }

  .poa-ts-cta {
    margin-left: 0;
  }
}

/* Kill inherited and directly-applied underlines across the whole header */
.poa-ts-header,
.poa-ts-header *,
.poa-ts-header a,
.poa-ts-header a:link,
.poa-ts-header a:visited,
.poa-ts-header a:hover,
.poa-ts-header a:active,
.poa-ts-header a:focus {
  text-decoration: none !important;
  text-decoration-line: none !important;
}

/* Let the header content breathe instead of overflowing */
.poa-ts-header,
.poa-ts-header__inner {
  overflow: visible !important;
}

.poa-ts-header__inner {
  flex-wrap: wrap;
  row-gap: 0.5rem;
}

/* Guarantee the CTA renders and never collapses */
.poa-ts-cta {
  display: inline-flex !important;
  align-items: center;
  flex: none;
  background: #e8b923 !important;
  color: #0b0b0d !important;
  padding: 0.55rem 1.1rem !important;
  font-size: 0.78rem !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Tighten nav spacing before it runs out of room */
@media (max-width: 1280px) {
  .poa-ts-nav {
    gap: 0;
  }
  .poa-ts-nav__link {
    padding: 0.5rem 0.45rem;
  }
}

/* Overrides */

.poa-ts-brand,
.app-container :not(.swal2-container) h1 span {
  font-family: "Cinzel", serif !important;
}

.app-container :not(.swal2-container) a.poa-ts-nav__link {
  text-decoration: none !important;
  color: var(--poa-bone) !important;
}

.app-container div a.poa-ts-cta,
.app-container div a.poa-ts-cta:visited,
.app-container :not(.swal2-container) a.poa-ts-cta {
  color: var(--poa-ink) !important;
}

.app-container div a.poa-ts-cta:hover {
  background: var(--poa-bone) !important;
  color: var(--poa-ink) !important;
  text-decoration: none !important;
}

.app-container :not(.swal2-container) a.poa-ts-nav__link--active,
.app-container :not(.swal2-container) a.poa-ts-nav__link--active:hover,
.poa-ts-nav__link--active,
.poa-ts-nav__link--active:hover {
  color: var(--poa-gold) !important;
}
