.page-shell {
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
  padding: 96px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: -0.03em;
}

.muted {
  color: var(--muted);
}

.container {
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
}

.stack {
  display: flex;
  flex-direction: column;
}

.grid {
  display: grid;
}

/* Ancho compartido de contenedores (también lo usan nav.css y footer.css) */
.nav-top,
.nav-inner,
.footer-grid,
.footer-bottom {
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
}

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
  padding: 32px 0;
}

.note-layout {
  width: min(100% - 48px, 1160px);
  gap: 40px;
}

.content-col {
  min-width: 0;
}

.section,
.hero-section {
  margin-bottom: 48px;
}

.home-section-ad {
  margin-bottom: 48px;
}

.route-leaderboard {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-title {
  margin: 0;
  color: var(--fg);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.3px;
}

.section-link {
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
}

.section-link:hover {
  color: var(--accent);
}

.cat-header,
.search-page-heading {
  margin: 0 0 28px;
}

.cat-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cat-header h1,
.search-page-heading h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.cat-header .desc {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn,
.load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active,
.load-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.load-more {
  display: flex;
  justify-content: center;
  min-height: 44px;
  margin: 32px 0 48px;
}

.load-more-btn {
  border-radius: 8px;
  color: var(--fg);
  font-weight: 600;
}

.load-more-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.empty-state {
  padding: 36px 24px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
  color: var(--fg);
  font-size: 24px;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

@media (max-width: 767px) {
  .page-shell {
    width: min(100% - 24px, 1200px);
    padding: 64px 0;
  }

  .container {
    width: min(100% - 32px, 1320px);
  }
}

@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .main-layout {
    width: min(100% - 32px, 1320px);
  }

  .note-layout {
    width: min(100% - 32px, 1160px);
  }
}
