/* Mobile Compact Spacing — loaded after style.css */
@media (max-width: 768px) {

  /* === Homepage — moderate tightening === */
  .section,
  .section-alt {
    padding: 2.25rem 0 !important;  /* 36px, was 48px */
  }

  .hero {
    padding: 2.25rem 0 2rem !important;  /* 36px/32px */
  }

  .hero h1 {
    font-size: 1.55rem !important;
  }

  .hero .subtitle {
    margin-bottom: 1rem !important;
  }

  .section-header {
    margin-bottom: 0.85rem !important;
  }

  .section-header h2 {
    font-size: 1.4rem !important;
  }

  .section-header p {
    font-size: 0.9rem !important;
    margin-top: 0.25rem !important;
  }

  .card {
    padding: 1.5rem !important;  /* 24px, was 32px */
  }

  .districts-grid {
    gap: 1.25rem !important;
  }

  .essentials-grid {
    gap: 0.85rem !important;
  }

  .faq-list {
    gap: 0.6rem !important;
  }

  /* ============================================
     iOS HIG Touch Target Compliance (≥44px)
     ============================================ */

  /* Nav: logo & hamburger */
  .nav-logo {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .nav-toggle {
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0.5rem !important;
  }

  /* Nav: mobile menu links */
  .nav-links.open a {
    display: block !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 1.1rem !important;
    min-height: 48px !important;
  }

  /* Hero: search input */
  .hero-search-wrapper input,
  .search-wrapper input,
  input[type="text"],
  input[type="search"] {
    min-height: 48px !important;
  }

  /* Hero: popular pills */
  .hero-pills a,
  .hero-quick-pills a,
  .quick-pill,
  .pill {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.6rem 1rem !important;
  }

  /* Buttons: all .btn elements */
  .btn,
  .btn-sm,
  .btn-calendar,
  button:not(.nav-toggle) {
    min-height: 44px !important;
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
  }

  /* Breadcrumb links */
  .breadcrumb a {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.5rem 0.25rem !important;
  }

  /* Region accordion headers */
  .region-accordion-header {
    min-height: 48px !important;
    padding: 0.75rem 1rem !important;
  }

  /* FAQ accordion buttons */
  .faq-question {
    min-height: 48px !important;
    padding: 0.85rem 1rem !important;
  }

  /* Footer accordion headers */
  .footer-details summary {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Footer links — use padding since they are inline */
  .footer-details a {
    display: block !important;
    padding: 0.6rem 0 !important;
    line-height: 1.4 !important;
  }

  .footer {
    padding: 1.5rem 0 0.75rem !important;
  }

  .footer-grid {
    gap: 0.5rem !important;
  }

  .footer-details {
    margin-bottom: 0 !important;
  }

  /* === District / Content Pages — stays tight === */
  .district-hero {
    padding: 1rem 0 1.25rem !important;
  }

  .district-hero h1 {
    font-size: 1.4rem !important;
    margin-bottom: 0.5rem !important;
  }

  .district-hero p,
  .district-hero .subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
  }

  .action-bar {
    margin-top: 0.75rem !important;
    margin-bottom: 1rem !important;
    padding: 0.75rem !important;
    gap: 0.5rem !important;
  }

  .action-bar .btn {
    padding: 0.6rem 1rem !important;
    font-size: 0.88rem !important;
  }

  .overview-grid,
  .bento-grid {
    gap: 0.75rem !important;
  }

  .info-box,
  .milestone-card {
    padding: 0.75rem !important;
  }

  .mobile-key-dates {
    margin-bottom: 1rem !important;
  }

  .key-dates-table th,
  .key-dates-table td {
    padding: 0.5rem !important;
    font-size: 0.85rem !important;
  }

  .cal-year {
    gap: 1rem !important;
  }

  .calendar-month {
    margin-bottom: 0.5rem !important;
  }

  .calendar-month table {
    font-size: 0.82rem !important;
  }

  .faq-section {
    padding: 1.25rem 0 !important;
  }

  .breadcrumb {
    padding: 0.5rem 0 !important;
    font-size: 0.8rem !important;
  }

  .global-year-switcher {
    margin-bottom: 0.75rem !important;
  }

  .projected-notice {
    padding: 0.5rem 0.75rem !important;
    margin-bottom: 0.75rem !important;
    font-size: 0.85rem !important;
  }

  .date-highlight {
    padding: 0.75rem !important;
  }

  .date-highlight-grid {
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
  }

  /* ============================================
     Read More — truncate long text on mobile
     ============================================ */
  .content-block.truncatable {
    max-height: 7.5em;  /* ~5 lines at 1.5 line-height */
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
  }

  .content-block.truncatable::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3em;
    background: linear-gradient(transparent, var(--color-bg-section, #f5f7f8));
    pointer-events: none;
  }

  .content-block.truncatable.expanded {
    max-height: none;
  }

  .content-block.truncatable.expanded::after {
    display: none;
  }

  .read-more-btn {
    display: block;
    margin: 0.5rem 0 0;
    padding: 0.5rem 0;
    background: none;
    border: none;
    color: var(--color-primary, #2a7d6a);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
  }

  .read-more-btn:hover {
    text-decoration: underline;
  }
}
