/* AgencyConnect site chrome — matched to https://adsconnectagency.com/partners */
:root {
  --ac-nav-h: 64px;
  --ac-ink: #0a0a0a;
  --ac-ink-55: rgba(10, 10, 10, 0.55);
  --ac-ink-80: rgba(10, 10, 10, 0.8);
  --ac-muted: rgba(10, 10, 10, 0.55);
  --ac-canvas: #f7f7f5;
  --ac-gold: #c9a227;
  --ac-border: rgba(0, 0, 0, 0.06);
  --ac-max: 1024px;
  --ac-font-display: "Outfit", "Source Sans 3", system-ui, sans-serif;
}

.ac-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--ac-nav-h);
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ac-header.is-scrolled {
  border-bottom-color: var(--ac-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.ac-nav {
  margin: 0 auto;
  height: 100%;
  max-width: var(--ac-max);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.ac-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ac-ink);
  transition: opacity 0.2s ease;
}

.ac-brand:hover {
  opacity: 0.8;
}

.ac-brand-mark {
  display: block;
  flex-shrink: 0;
}

.ac-brand-name {
  font-family: var(--ac-font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ac-ink);
}

.ac-brand-name span {
  color: var(--ac-ink-55);
}

.ac-nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-nav-links a {
  font-size: 12px;
  font-weight: 400;
  color: var(--ac-ink-80);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.ac-nav-links a:hover,
.ac-nav-links a.is-active {
  opacity: 0.65;
}

.ac-nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.ac-nav-actions .ac-text-link {
  font-size: 12px;
  font-weight: 400;
  color: var(--ac-ink-80);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.ac-nav-actions .ac-text-link:hover {
  opacity: 0.65;
}

.ac-btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--ac-ink);
  color: #f3f3f4;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}

.ac-btn-ink:hover {
  opacity: 0.85;
}

.ac-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--ac-ink);
  cursor: pointer;
  padding: 0;
}

.ac-mobile-panel {
  display: none;
  position: fixed;
  top: var(--ac-nav-h);
  left: 0;
  right: 0;
  z-index: 49;
  background: var(--ac-canvas);
  border-bottom: 1px solid var(--ac-border);
  padding: 1rem 1.5rem 1.25rem;
}

.ac-mobile-panel.is-open {
  display: grid;
  gap: 0.85rem;
}

.ac-mobile-panel a {
  font-size: 14px;
  color: var(--ac-ink-80);
  text-decoration: none;
}

@media (min-width: 768px) {
  .ac-nav-links,
  .ac-nav-actions {
    display: flex;
  }

  .ac-menu-btn,
  .ac-mobile-panel,
  .ac-mobile-panel.is-open {
    display: none;
  }
}

.ac-footer {
  border-top: 1px solid var(--ac-border);
  background: var(--ac-canvas);
  margin-top: auto;
}

.ac-footer-inner {
  margin: 0 auto;
  max-width: var(--ac-max);
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .ac-footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.ac-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-footer-links a {
  font-size: 12px;
  color: var(--ac-muted);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.ac-footer-links a:hover {
  opacity: 0.7;
}

.ac-footer-copy {
  margin: 0;
  font-size: 12px;
  color: var(--ac-muted);
}

/* Page shell under fixed header */
body.ac-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ac-canvas);
}

body.ac-body .invite-page {
  flex: 1;
  padding-top: calc(var(--ac-nav-h) + 1.5rem);
  background: transparent;
}

body.ac-body.modal-open,
body.ac-body:has(.gpopup:not([hidden])) {
  overflow: hidden;
}
