@import url("/shared/tokens.css");

.tp-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.tp-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tp-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.tp-nav-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}
.tp-nav-links {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.tp-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.925rem;
}
.tp-nav-links a:hover,
.tp-nav-links a[aria-current="page"] {
  color: var(--text);
}
.tp-nav-cta {
  color: #fff !important;
  background: var(--accent);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-weight: 500;
}
.tp-nav-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}
.tp-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.35rem;
}
.tp-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}
.tp-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1.25rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.tp-mobile.open { display: flex; }
.tp-mobile a {
  color: var(--text);
  text-decoration: none;
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 820px) {
  .tp-nav-links { display: none; }
  .tp-hamburger { display: flex; }
}

.tp-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 2.5rem 1.25rem;
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  /* pages that also load /style.css centre a bare `footer` element */
  text-align: left;
}
.tp-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
@media (max-width: 820px) {
  .tp-footer-inner { grid-template-columns: 1fr 1fr; }
}
.tp-footer a { color: var(--text-muted); text-decoration: none; }
.tp-footer a:hover { color: var(--text); }
.tp-footer h4 {
  color: var(--text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}
.tp-footer ul { list-style: none; margin: 0; padding: 0; }
.tp-footer li { margin: 0.35rem 0; }
.tp-footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.825rem;
}
.tp-footer-social { display: flex; gap: 1rem; flex-wrap: wrap; }
.tp-footer-partners {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}
.tp-hol-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  opacity: 0.95;
  transition: opacity 0.15s, border-color 0.15s;
}
.tp-hol-badge:hover {
  opacity: 1;
  border-color: rgba(99, 102, 241, 0.45);
}
.tp-hol-badge img {
  display: block;
  width: 200px;
  height: auto;
  max-width: 42vw;
}
.tp-hol-note {
  margin: 0;
  max-width: 42ch;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.tp-hol-note a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.tp-hol-note a:hover { color: var(--text); }


/* Crawler / no-JS fallback — replaced by chrome.js when available */
.tp-seo-nav, .tp-seo-foot {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem;
  padding: 0.85rem 1.25rem; font-size: 0.9rem;
  border-bottom: 1px solid var(--border, #2a2a3a);
}
.tp-seo-foot { border-bottom: 0; border-top: 1px solid var(--border, #2a2a3a); margin-top: 2rem; }
.tp-seo-nav a, .tp-seo-foot a { color: var(--text-muted, #9aa3b5); text-decoration: none; }
.tp-seo-nav a:hover, .tp-seo-foot a:hover { color: var(--text, #fff); }
