@media (max-width: 1050px) {
  :root {
    --sidebar: 230px;
  }
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-note {
    max-width: 420px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    width: min(300px, 86vw);
  }
  .sidebar.open {
    transform: none;
  }
  .sidebar-close {
    display: block;
    color: #fff;
  }
  .backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 40;
  }
  .backdrop.open {
    display: block;
  }
  .main-shell {
    margin-left: 0;
  }
  .hamburger {
    display: block;
  }
  .topbar {
    padding: 0 14px;
    height: 58px;
  }
  .top-actions .search-trigger span,
  .top-actions .search-trigger kbd {
    display: none;
  }
  .search-trigger {
    padding: 7px 9px;
  }
  .top-cta {
    padding: 7px 10px;
  }
  main {
    padding: 25px 14px 50px;
  }
  .hero h1 {
    font-size: 35px;
  }
  .featured {
    grid-template-columns: 1fr;
  }
  .featured-media {
    min-height: 210px;
  }
  .article-grid,
  .ecosystem,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    grid-template-columns: 1fr 1fr;
    padding: 38px 14px 25px;
  }
  .footer > div:first-child,
  .footer-bottom {
    grid-column: 1/-1;
  }
  .section-head {
    margin-top: 30px;
  }
  .article-page {
    max-width: 100%;
  }
  .article-body {
    font-size: 17px;
  }
  .related .article-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 430px) {
  .footer {
    grid-template-columns: 1fr;
  }
  .footer > div {
    grid-column: 1;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .ad-banner {
    min-height: 82px;
  }
  .featured-copy {
    padding: 20px;
  }
  .article-card .article-media {
    min-height: 145px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .article-card {
    transition: none;
  }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav,
.mobile-more-backdrop,
.mobile-more-menu {
  display: none;
}

@media (max-width: 760px) {
  .mobile-bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 18px rgb(15 23 42 / 8%);
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 5px 2px;
    border: 0;
    background: transparent;
    color: var(--color-muted, #64748b);
    font-size: 11px;
    line-height: 1.3;
  }

  .mobile-bottom-nav svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
  }

  .mobile-bottom-nav a.active,
  .mobile-bottom-nav button[aria-expanded="true"] {
    color: var(--color-primary, #256f46);
  }

  .mobile-more-backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 61;
    display: block;
    background: rgb(15 23 42 / 20%);
  }

  .mobile-more-menu:not([hidden]) {
    position: fixed;
    right: 50%;
    transform: translateX(50%);
    bottom: calc(76px + env(safe-area-inset-bottom));
    z-index: 62;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: min(320px, calc(100vw - 24px));
    max-height: min(65vh, 480px);
    overflow-y: auto;
    padding: 16px 12px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgb(15 23 42 / 18%);
  }

  .mobile-more-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    min-height: 84px;
    padding: 12px 5px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--color-text);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease,
      transform 0.2s ease;
  }

  .mobile-more-menu a:hover,
  .mobile-more-menu a.active {
    background: #f0f7f2;
    border-color: #d9eadf;
    color: var(--color-primary, #256f46);
  }

  .mobile-more-menu a:active {
    transform: scale(0.96);
  }

  .mobile-more-menu svg {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    stroke-width: 1.8;
  }

  .mobile-more-divider {
    grid-column: 1 / -1;
    height: 1px;
    margin: 2px 4px;
    background: var(--color-border);
  }

  .mobile-more-divider {
    height: 1px;
    margin: 5px 8px;
    background: var(--color-border);
  }

  .main-shell {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
}
