/* Layer: components - inner-page brand sprint responsive and later rules */
@media (max-width: 1180px) {
  .directory-shell {
    display: flex;
    flex-direction: column;
  }

  .menu {
    display: none;
  }

  .menu.is-open {
    position: absolute;
    top: calc(100% + 10px);
    left: 24px;
    right: 24px;
    display: grid;
    justify-content: stretch;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: #111318;
    box-shadow: var(--shadow);
  }

  .menu.is-open .header-nav-link {
    justify-content: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header-inner {
    grid-template-columns: auto auto 1fr;
  }

  .header-right {
    justify-self: end;
  }

  .header-search input {
    min-width: 180px;
    width: 200px;
  }

  .layout,
  .hero-grid,
  .trust-contribute-grid,
  .archive-header-directory,
  .archive-header-editorial,
  .archive-header-collections,
  .archive-header-comparisons,
  .archive-newsletter-panel,
  .collection-spotlight,
  .collection-shell-header,
  .tool-hero,
  .page-shell-grid,
  .contribute-card {
    grid-template-columns: 1fr;
  }

  .directory-main {
    order: 1;
  }

  .directory-filters {
    order: 2;
  }

  .home-feature-grid,
  .home-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-tool-card.is-emphasis,
  .home-collection-grid .collection-card.is-emphasis {
    grid-column: span 2;
    grid-row: auto;
  }

  .tool-hero-intel,
  .tool-hero-brief,
  .method-grid,
  .article-proof-grid,
  .tool-section-grid,
  .tool-related-grid,
  .collection-picks-grid,
  .newsletter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-shell-pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-search {
    display: none;
  }

  .site-header-inner {
    gap: 14px;
    min-height: 72px;
  }

  .site-brand-logo {
    height: 40px;
  }

  .hero-home {
    padding: 72px 0 56px;
  }

  .hero-atmosphere {
    display: none;
  }

  .section,
  .home-shell .section {
    padding: 42px 0;
  }

  .home-section-shell {
    padding: 24px;
  }

  .tool-hero-intel,
  .tool-hero-brief,
  .method-grid,
  .article-proof-grid,
  .tool-section-grid,
  .tool-related-grid,
  .collection-picks-grid,
  .grid-2,
  .newsletter-form,
  .home-feature-grid,
  .home-collection-grid,
  .section-head-inline {
    grid-template-columns: 1fr;
  }

  .featured-tool-card.is-emphasis,
  .home-collection-grid .collection-card.is-emphasis {
    grid-column: auto;
  }

  .tool-proof-metrics {
    flex-direction: column;
  }

  .directory-filter-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .hero h1 {
    max-width: 9.8ch;
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .hero-actions,
  .tool-card-footer,
  .article-card-footer,
  .tool-hero-actions,
  .comparison-empty-actions,
  .section-inline-actions,
  .article-footer,
  .hero-panel-actions {
    display: grid;
  }

  .hero-actions .button,
  .tool-card-footer .button,
  .article-card-footer .button,
  .tool-hero-actions .button,
  .tool-proof-verified,
  .comparison-empty-actions .button,
  .section-inline-actions .button,
  .article-footer .button {
    width: 100%;
  }

  .quick-search {
    grid-template-columns: 1fr;
  }

  .page-shell,
  .article-shell,
  .collection-shell,
  .hero-panel,
  .archive-header,
  .card,
  .home-section-shell,
  .archive-newsletter-form,
  .footer-newsletter-form {
    padding: 20px;
  }

  .footer-newsletter {
    grid-template-columns: 1fr;
  }

  .tool-jump-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
