/* ShipShape Industrial — coordinated mobile/tablet refinements
   Additive overrides only. Existing desktop styles and shared styles.css remain unchanged. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; }
button, input, select, textarea { font: inherit; }
input, select, textarea { max-width: 100%; }

@media (max-width: 760px) {
  /* Consistent, accessible compact navigation across all pages. */
  .header, .site-header { position: sticky; top: 0; z-index: 1000; height: auto !important; min-height: 66px; }
  .header .nav-wrap, .site-header .nav-wrap {
    position: relative; display: flex; flex-direction: row !important; align-items: center !important;
    justify-content: space-between; gap: 12px !important; min-height: 66px; height: auto !important;
    padding: 9px 16px !important;
  }
  .header .brand, .site-header .brand { flex: 0 1 auto; min-width: 0; }
  .header .brand img, .site-header .brand img { width: auto !important; max-width: min(190px, 65vw) !important; height: auto !important; max-height: 48px !important; }
  .header .menu, .site-header .menu {
    display: inline-flex !important; flex: 0 0 42px; width: 42px; height: 42px; align-items: center;
    justify-content: center; padding: 0; border: 1px solid #dce4eb; border-radius: 9px;
    background: #fff; color: #082e57; font-size: 25px; line-height: 1; cursor: pointer;
  }
  .header .nav, .site-header .nav, .site-header nav {
    display: none !important; position: absolute !important; top: calc(100% - 1px); left: 0; right: 0;
    z-index: 1002; width: 100%; max-height: calc(100vh - 72px); overflow-y: auto;
    padding: 10px 18px 16px !important; margin: 0; flex-direction: column !important;
    align-items: stretch !important; gap: 0 !important; white-space: normal !important;
    background: #fff; border-top: 1px solid #e3eaf0; box-shadow: 0 14px 22px rgba(3,24,47,.16);
  }
  .header .nav.open, .site-header .nav.open, .site-header nav.open { display: flex !important; }
  .header .nav a, .site-header .nav a, .site-header nav a {
    display: block; padding: 13px 5px !important; border-bottom: 1px solid #edf1f4;
    font-size: 15px !important; line-height: 1.3; white-space: normal;
  }
  .header .nav .cta, .site-header .nav .cta, .site-header nav .nav-cta {
    margin: 10px 0 0; padding: 13px 16px !important; text-align: center; border-radius: 28px;
  }
  .header .nav a:last-child, .site-header .nav a:last-child { border-bottom: 0; }

  /* Prevent narrow-screen overflow and improve touch/readability. */
  main, section, footer { min-width: 0; }
  .container { max-width: 100%; }
  h1 { overflow-wrap: anywhere; }
  p, li { overflow-wrap: break-word; }
  .actions, .cta-row { flex-wrap: wrap; }
  .btn, .cta-button, button, input[type="submit"] { min-height: 44px; }
  .footer-links { flex-wrap: wrap; }
  .footer-logo { max-width: min(190px, 75vw) !important; }
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .social-card, .card, article { min-width: 0; }
  table { display: block; max-width: 100%; overflow-x: auto; }
}

@media (max-width: 430px) {
  .header .nav-wrap, .site-header .nav-wrap { padding-left: 13px !important; padding-right: 13px !important; }
  .header .brand img, .site-header .brand img { max-width: min(170px, 63vw) !important; max-height: 44px !important; }
  .actions .btn, .cta-row .btn, .cta-band .cta-button { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .hero h1, .about-hero h1 { overflow-wrap: normal; }
  .footer-inner, .footer-grid { text-align: center; }
  .footer-links { justify-content: center !important; }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .header .nav-wrap, .site-header .nav-wrap { gap: 14px; }
  .header .brand img, .site-header .brand img { max-width: 175px; }
  .header .nav, .site-header .nav, .site-header nav { gap: 12px; }
}
