/* Page-level portal adjustments. Loaded after the compressed replica stylesheet. */
body.features-page {
  background: #1a1a1a;
}

.features-site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.features-site-header .back-link { justify-self: start; }
.features-header-spacer { justify-self: end; }
.features-brand { color: var(--text-primary); }
.features-brand span { color: var(--accent-hover); }

/* Center the replica search independently of the left-hand brand and right-hand close control. */
.aw-topbar-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  pointer-events: none;
}

.aw-search-bar {
  width: 310px;
  pointer-events: auto;
}

.aw-search-bar:focus-within { width: 340px; }
.aw-close-btn { position: absolute; right: 16px; pointer-events: auto; }

@media (max-width: 1050px) {
  .aw-search-bar { width: 220px; }
  .aw-search-bar:focus-within { width: 240px; }
}

@media (max-width: 760px) {
  .aw-search-bar { width: 130px; }
  .aw-search-bar:focus-within { width: 150px; }
  .aw-close-btn { right: 10px; }
}
