/* Media Queries */
@media only screen and (max-width: 1068px) {
  .section-title {
    font-size: 28px;
  }
  .featured-article__title {
    font-size: 24px;
  }
  .featured-article__excerpt {
    font-size: 16px;
  }
  .stream-article__title { /* For smaller cards on medium screens */
    font-size: 16px;
  }
}

@media only screen and (max-width: 768px) { /* Combined 768px rules */
  .container,
  .nav-wrapper,
  .content-body.footer-wraper {
    padding: 0 16px;
  }
  .nav-logo-image {
    max-height: calc(var(--header-height) - 28px); /* Smaller logo */
  }
  .section-content {
    margin-bottom: 40px;
  }
  .section-title {
    font-size: 24px;
    margin-bottom: 24px;
  }
  .two-column-grid,
  .three-column-grid {
    grid-template-columns: 1fr; /* Stack columns */
    gap: 20px;
  }
  .featured-article__content {
    padding: 20px;
  }
  .featured-article__title {
    font-size: 21px;
  }
  .featured-article__excerpt {
    font-size: 15px;
    margin-bottom: 16px;
  }
  .stream-article__content {
    padding: 16px;
  }
  .view-archive-wrapper {
    margin-top: 32px;
  }

  /* Footer adjustments for small screens */
  .footer-main {
    margin-top: 60px;
    padding: 30px 0;
  }
  /* .foot-nav-items was not defined in original CSS, example if it existed:
  .foot-nav-items {
    flex-direction: column;
    gap: 30px;
  }
  .foot-nav-items .item {
    width: 100%;
  }
  */
  .simplified-footer .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .simplified-footer .social-links {
    justify-content: center;
  }

  /* Header adjustments for small screens */
  /* .nav-title was not defined, if for site title text:
  .nav-title {
    font-size: 22px;
  }
  */
  .nav-item-wrapper {
    margin-left: 10px; /* Reduced margin */
  }
  .nav-item-content {
    font-size: 14px;
    padding: 6px 8px;
  }
  #theme-toggle {
    /* font-size: 12px; Inherits from .nav-item-button effectively */
    padding: 6px 8px; /* Reduced padding */
    margin-left: 10px; /* Reduced margin */
  }

  /* Archive Page on smaller screens */
  .archive-item__title {
    margin-right: 10px; /* Less space for title */
  }
  .archive-item__date {
    font-size: 0.85em;
  }
  .archive-year {
    font-size: 20px;
  }
  .archive-item__link::after { /* Adjust dotted line position */
    bottom: 0.7em;
  }

  /* Post Layout on smaller screens */
  .post-title { /* Main post title on article page */
    font-size: 30px;
  }
  .post-content {
    font-size: 16px;
  }
  .post-navigation .nav-previous,
  .post-navigation .nav-next {
    flex-basis: 100%; /* Stack prev/next links */
  }
}

@media (max-width: 600px) {
  /* Terms list stacking */
  .terms-list {
    column-count: 1;
  }
}