/* Static-source compatibility overrides.
   The legacy React site initialized reveal animations at opacity:0 and later
   hydrated them. The static build renders those sections immediately. */
main [style*="opacity:0"] {
  opacity: 1 !important;
  transform: none !important;
}

nav.site-nav-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(16, 31, 53, 0.08);
}
nav.site-nav-scrolled > div > div > a span,
nav.site-nav-scrolled > div > div > ul > li > a,
nav.site-nav-scrolled > div > div > button {
  color: #102033 !important;
}
nav.site-nav-scrolled > div > div > div > a {
  color: #102033 !important;
  border-color: rgba(16, 32, 51, 0.22) !important;
  background: rgba(16, 32, 51, 0.04) !important;
}


/* Premium editorial homepage hero — SLNYC-ARCH-002 */
.home-hero {
  isolation: isolate;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.88) contrast(1.05);
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 18, 31, 0.96) 0%, rgba(7, 18, 31, 0.86) 42%, rgba(7, 18, 31, 0.48) 70%, rgba(7, 18, 31, 0.35) 100%),
    linear-gradient(180deg, rgba(7, 18, 31, 0.18) 0%, rgba(7, 18, 31, 0.38) 100%);
}

.home-hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.28) 0.65px, transparent 0.7px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35), transparent 75%);
}

.home-hero > .section-padding {
  z-index: 3;
}

.home-hero-copy {
  text-shadow: 0 2px 28px rgba(2, 12, 22, 0.32);
}

@media (max-width: 639px) {
  .home-hero {
    display: block;
    min-height: 0;
  }

  .home-hero-media {
    position: relative;
    inset: auto;
    z-index: auto;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #07121f;
  }

  .home-hero-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
    filter: none;
  }

  .home-hero-overlay,
  .home-hero-grain {
    display: none;
  }

  .home-hero > .section-padding {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }

  .home-hero-copy {
    text-shadow: none;
  }
}

/* First-party internal search — SLNYC-DISCOVERY-001 */
nav.site-nav-scrolled .site-search-trigger {
  color: #102033 !important;
  border-color: rgba(16, 32, 51, 0.22) !important;
  background: rgba(16, 32, 51, 0.04) !important;
}

.site-search-trigger,
.site-search-mobile-trigger {
  cursor: pointer;
}

.site-search-mobile-trigger {
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
}

body.site-search-open {
  overflow: hidden;
}

.site-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 7vh 1rem 1rem;
}

.site-search-overlay[hidden] {
  display: none !important;
}

.site-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 31, 0.72);
  backdrop-filter: blur(6px);
}

.site-search-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(16, 32, 51, 0.1);
  box-shadow: 0 28px 80px rgba(8, 18, 31, 0.28);
  padding: 1.5rem;
}

.site-search-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.site-search-eyebrow {
  margin: 0 0 0.25rem;
  color: #9b7b3f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-search-header h2 {
  margin: 0;
  color: #102033;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.15;
}

.site-search-close {
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 32, 51, 0.14);
  border-radius: 999px;
  background: #ffffff;
  color: #102033;
  cursor: pointer;
}

.site-search-close svg {
  width: 1.15rem;
  height: 1.15rem;
}

.site-search-close:hover,
.site-search-close:focus-visible {
  background: rgba(16, 32, 51, 0.05);
}

.site-search-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: #102033;
  font-size: 0.86rem;
  font-weight: 650;
}

.site-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.4rem;
  padding: 0 1rem;
  border: 1px solid rgba(16, 32, 51, 0.18);
  border-radius: 14px;
  background: #ffffff;
}

.site-search-input-wrap:focus-within {
  border-color: #315f7d;
  box-shadow: 0 0 0 3px rgba(49, 95, 125, 0.12);
}

.site-search-input-wrap svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  color: #315f7d;
}

.site-search-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #102033;
  font: inherit;
  font-size: 1rem;
}

.site-search-input-wrap input::placeholder {
  color: rgba(16, 32, 51, 0.48);
}

.site-search-status {
  min-height: 1.4rem;
  margin: 0.7rem 0 0;
  color: rgba(16, 32, 51, 0.66);
  font-size: 0.8rem;
}

.site-search-popular {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 32, 51, 0.08);
}

.site-search-popular > p {
  margin: 0 0 0.7rem;
  color: rgba(16, 32, 51, 0.7);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-search-chips button {
  border: 1px solid rgba(16, 32, 51, 0.13);
  border-radius: 999px;
  background: #f7f5ef;
  color: #102033;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.site-search-chips button:hover,
.site-search-chips button:focus-visible {
  border-color: rgba(155, 123, 63, 0.55);
  background: #ffffff;
}

.site-search-results {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.site-search-result {
  display: block;
  border: 1px solid rgba(16, 32, 51, 0.1);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  text-decoration: none;
  background: #ffffff;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.site-search-result:hover,
.site-search-result:focus-visible,
.site-search-result[data-active="true"] {
  border-color: rgba(49, 95, 125, 0.45);
  background: rgba(49, 95, 125, 0.045);
  transform: translateY(-1px);
  outline: none;
}

.site-search-result-meta {
  display: block;
  margin-bottom: 0.25rem;
  color: #9b7b3f;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-search-result-title {
  display: block;
  color: #102033;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.site-search-result-description {
  display: block;
  margin-top: 0.3rem;
  color: rgba(16, 32, 51, 0.72);
  font-size: 0.86rem;
  line-height: 1.5;
}

.site-search-empty {
  border: 1px dashed rgba(16, 32, 51, 0.18);
  border-radius: 14px;
  padding: 1rem;
  color: rgba(16, 32, 51, 0.72);
  font-size: 0.9rem;
}

.site-search-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(16, 32, 51, 0.08);
}

.site-search-footer a {
  color: #315f7d;
  font-size: 0.86rem;
  font-weight: 650;
  text-underline-offset: 3px;
}

.site-search-trigger:focus-visible,
.site-search-mobile-trigger:focus-visible,
.site-search-close:focus-visible,
.site-search-chips button:focus-visible,
.site-search-footer a:focus-visible {
  outline: 3px solid rgba(155, 123, 63, 0.35);
  outline-offset: 2px;
}

@media (max-width: 1180px) and (min-width: 1024px) {
  .site-search-trigger-label {
    display: none;
  }

  .site-search-trigger {
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
  }
}

@media (max-width: 639px) {
  .site-search-overlay {
    padding: 0;
    align-items: stretch;
  }

  .site-search-panel {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
    border: 0;
    padding: 1.1rem;
  }

  .site-search-header {
    padding-top: 0.35rem;
  }

  .site-search-input-wrap {
    min-height: 3.25rem;
  }

  .site-search-footer {
    padding-bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-search-result {
    transition: none;
  }
}
