/* 🧭 Header Adjustment for Mobile */
@media (max-width: 768px) {
  .favorite-dock {
    position: fixed;
    top: 80px;
    right: 0;
    width: 70px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem 0.25rem;
    overflow-y: auto;
    background: rgba(13, 34, 54, 0.9);
    border-left: 1px solid #17365a;
    z-index: 9999;
  }

  .fav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    width: 64px;
    background-color: #1c2736;
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  }

  .fav-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 4px;
  }

  .fav-title {
    font-size: 0.6rem;
    font-weight: 600;
    color: #e0eaf3;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 4px;
  }

  .remove-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 0.85rem;
    cursor: pointer;
    margin: 0;
  }

  .logo-section {
    justify-content: center;
    flex-direction: column;
  }

  .site-logo {
    height: 60px;
  }

  .site-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .header-tagline,
  .site-subtitle {
    font-size: 1rem;
    text-align: center;
  }

  .selector-wrapper,
  .translate-block {
    width: 100%;
    text-align: center;
  }

  .translate-strip {
    width: 100%;
    margin-top: 6px;
  }

  .translate-note {
    font-size: 0.75rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.3rem;
  }

.nav-links li a {
  padding: 0.6rem 1rem;  /* ensures usable tap size */
  display: inline-block;
  z-index: 1;
}

  main {
    padding: 1rem 0.5rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .topic h3 {
    font-size: 1.2rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .bookmark-btn {
    font-size: 1rem;
  }

  footer {
    font-size: 0.75rem;
    padding-bottom: 4rem;
  }

  .fav-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .fav-card img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 4px;
  }

  .fav-title {
    font-size: 0.75rem;
    line-height: 1.1;
    margin-bottom: 2px;
  }

  .fav-meta {
    font-size: 0.65rem;
  }

  .fav-meta .bias-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.35rem;
    margin-right: 3px;
  }

  .framing-analysis {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .framing-analysis summary {
    font-size: 0.9rem;
  }

  .card-img-top,
  .article img,
  img.article-preview {
    border-radius: 6px;
    aspect-ratio: 16 / 9;
  }
}
