
/*
 * Deadline tidy pass: resolve fragile mobile overrides and keep the header calm
 * at production desktop widths without changing the broader visual system.
 */
.site-header-inner {
  column-gap: clamp(10px, 1.2vw, 18px);
}

#primary-menu,
.header-right,
.header-search {
  min-width: 0;
}

@media (min-width: 1161px) and (max-width: 1500px) {
  .site-header-inner,
  .site-header.is-condensed .site-header-inner {
    grid-template-columns: minmax(188px, 222px) minmax(0, 1fr) minmax(282px, auto);
  }

  #primary-menu {
    gap: 0;
  }

  .header-nav-link {
    padding-inline: clamp(7px, 0.65vw, 10px);
    font-size: 0.78rem;
  }

  .header-search {
    width: clamp(176px, 14vw, 230px);
  }

  .site-header .header-submit-cta.button-primary {
    min-width: 108px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-proofwall::before {
    animation: o4-proofwall-scan 8s ease-in-out infinite;
  }
}

@keyframes o4-proofwall-scan {
  0%,
  100% {
    transform: translateY(-88%);
    opacity: 0;
  }

  36%,
  52% {
    opacity: 0.58;
  }

  70% {
    transform: translateY(185%);
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .hero-home .hero-copy-column h1 {
    max-width: 11ch;
    font-size: clamp(2.45rem, 11.2vw, 3.05rem);
    line-height: 0.98;
  }

  .hero-copy-column .hero-actions,
  .hero-home .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: none;
    margin: 22px 0 18px;
  }

  .hero-copy-column .hero-actions .button,
  .hero-home .hero-actions .button,
  .hero-copy-column .hero-actions .button-secondary,
  .hero-copy-column .hero-actions .button-ghost {
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--o4-premium-line-strong);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--o4-premium-text);
  }

  .hero-copy-column .hero-actions .button-primary,
  .hero-home .hero-actions .button-primary {
    color: #111216;
    border-color: var(--o4-premium-accent);
    background: linear-gradient(180deg, var(--o4-premium-accent-strong), var(--o4-premium-accent));
  }

  .directory-pathways {
    margin-top: 24px;
    padding: 22px 0 10px;
  }

  .directory-pathways-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
  }

  .directory-pathways-head > p {
    display: none;
  }

  .directory-pathway-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .directory-pathway-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    min-height: 0;
    align-items: center;
    gap: 4px 12px;
    padding: 12px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.026), transparent 62%),
      rgba(255, 255, 255, 0.018);
  }

  .directory-pathway-card .o4-card-icon {
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
  }

  .directory-pathway-card .card-meta {
    display: block;
    grid-column: 2;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .directory-pathway-card h3 {
    grid-column: 2;
    font-size: 0.96rem;
  }

  .directory-pathway-card p:not(.card-meta),
  .directory-pathway-footer a {
    display: none;
  }

  .directory-pathway-footer {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-self: end;
    padding-top: 0;
  }

  .directory-pathway-footer .badge {
    min-height: 26px;
    padding-inline: 9px;
    font-size: 0.64rem;
    white-space: nowrap;
  }
}
