@import url("./tokens.css?v=20260517-menu");
@import url("./base.css?v=20260517-menu");
@import url("./components.css?v=20260517-menu");
@import url("./pages.css?v=20260517-menu");

/* Brand/logo: keep proportions everywhere */
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

img.logo{
  height: 30px;
  width: auto;
  display: block;
}

/* Footer logo: never squish, keep it visible */
.logo-badge{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand, #1d9bf0);
}

img.logo-footer{
  height: 22px;
  width: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

/* =========================
   MOBILE RESPONSIVE FIX
   ========================= */

@media (max-width: 900px) {

  body {
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .section {
    padding: 2.6rem 0;
  }

  .page-hero {
    padding-top: 2.4rem;
    padding-bottom: 2rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 1rem;
    padding: 3rem 0 2.4rem 0 !important;
  }

  .hero-card {
    max-width: 100% !important;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-aside {
    width: 100%;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    grid-template-columns: 1fr !important;
    align-items: start;
    gap: 1.2rem;
  }

  .grid,
  .grid.cards,
  .article-list-grid {
    grid-template-columns: 1fr !important;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .card img,
  .figure img {
    width: 100%;
    height: auto;
  }

  .figure {
    order: 0;
  }

  .prose {
    max-width: 100% !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.4rem;
  }

  .header-inner {
    gap: .75rem;
  }

  .header-cta {
    display: none;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.1rem);
    line-height: 1.05;
  }

  h2 {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .btn {
    white-space: normal;
  }
}

@media (max-width: 520px) {

  .container {
    width: min(100% - 1rem, var(--container));
  }

  .section {
    padding: 2rem 0;
  }

  .card,
  .hero-card {
    border-radius: 20px;
  }

  .card-body {
    padding: 1rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
  }

  .nav {
    width: 100%;
  }
}
