/* ==============================================
   responsive.css
   All @media queries in one place.
   Always loaded last.
   ============================================== */

/* ── Mobile nav breakpoint ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-mobile-drawer {
    display: block;
  }
}

/* ── Tablet breakpoint ── */
@media (max-width: 900px) {

  .home-hero-inner,
  .portfolio-hero,
  .nl-inner,
  .about-hero,
  .about-body-inner,
  .contact-body {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .home-hero-inner > div {
    min-width: 0;
  }

  .hero-quote-card {
    display: block;
    width: 100%;
    max-width: 520px;
    margin-top: 8px;
    padding: 26px 24px;
  }

  .hero-quote-card::before {
    font-size: 6.25rem;
    top: -14px;
    left: 10px;
  }

  .hero-quote-text {
    font-size: 1.22rem;
    line-height: 1.48;
  }

  .profile-card {
    display: none;
  }

  .post-featured,
  .project-featured {
    grid-template-columns: 1fr;
  }

  .pf-img {
    aspect-ratio: 16/9;
  }

  .project-featured .pc2-img {
    min-height: 200px;
  }

  .post-grid,
  .cert-grid,
  .projects-grid,
  .hobbies-grid,
  .related-grid,
  .nl-features {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .bi-essay-item {
    grid-template-columns: 60px 1fr;
    gap: 14px;
  }
}

/* ── Small mobile breakpoint ── */
@media (max-width: 580px) {
  .home-hero-inner {
    gap: 24px;
  }

  .home-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-sub {
    margin-bottom: 22px;
  }

  .hero-nl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    width: 100%;
    max-width: none;
    gap: 0;
  }

  .hero-nl input {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-radius: 3px 0 0 3px;
  }

  .hero-nl button {
    min-width: 112px;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    border-radius: 0 3px 3px 0;
    white-space: nowrap;
  }

  .hero-quote-card {
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding: 22px 18px 18px;
    border-width: 1px;
    box-sizing: border-box;
  }

  .hero-quote-card::before {
    font-size: 4.8rem;
    top: -8px;
    left: 8px;
  }

  .hero-quote-text {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .hero-quote-attr {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .article-body {
    font-size: 1.05rem;
  }

  .portfolio-hero {
    padding-bottom: 20px;
    gap: 0;
  }

  .portfolio-hero-right {
    display: none;
  }

  .portfolio-content {
    padding-top: 16px;
  }

  .post-grid,
  .cert-grid,
  .projects-grid,
  .hobbies-grid,
  .related-grid,
  .nl-features {
    grid-template-columns: 1fr;
  }

  /* Career photo slider: 1 image per view on mobile */
  .tl-slide {
    flex: 0 0 100%;
  }
}
