/* Staging compatibility layer: retain legacy desktop design above 980px. */
@media (max-width: 980px) {
  #wrapper { min-width: 0; }
  #header { height: auto; }
  #site-title { width: auto; margin: 0 16px; padding: 24px 0; font-size: 30px; line-height: 1.2; }
  #slider { height: auto !important; padding: 16px; margin-bottom: 16px; }
  #ajax-content { width: 100%; max-width: none; }
  #slides.kwicks { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100% !important; height: auto !important; border: 0; overflow: visible; }
  #slides.kwicks > .slide { position: static !important; float: none; width: 100% !important; height: 230px !important; margin: 0 !important; box-shadow: none; }
  #slides.kwicks .post { position: relative; box-sizing: border-box; width: 100% !important; height: 100% !important; background-size: cover !important; }
  #slides .overlay, #slides .opacity { width: 100%; height: 100%; }
  #slides .entry-title { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; margin: 0; padding: 30px 10px 12px; background: linear-gradient(transparent, rgba(0,0,0,.82)); font-size: 18px !important; line-height: 1.3; overflow-wrap: break-word; }
  #slides .entry-title a { display: block; color: #fff; }
  #slides .entry-container { display: none !important; }
  #footer { box-sizing: border-box; width: auto; margin: 0 16px; }
  .nav { width: auto; height: auto; margin: 0 0 24px; font-size: 18px; line-height: 1.4; }
  .nav > ul { display: flex; flex-wrap: wrap; gap: 0 20px; float: none; margin: 0; }
  .nav > ul > li { float: none; height: auto; margin: 0; }
  .nav ul li a { padding: 10px 0; color: #163b4b; text-shadow: none; }
  .nav ul li a:hover, .nav ul li a:focus { color: #000; text-decoration: underline; }
  #content p, #content li { text-align: left !important; }
  .page-title, .single .entry-title, .page .entry-title { box-sizing: border-box; width: auto; padding: 12px 16px; line-height: 1.3; }
  #container { box-sizing: border-box; width: auto; margin: 0 16px 24px; padding: 16px; background: rgba(255,255,255,.96); }
  #content, #sidebar, #footer-area .widget { float: none; box-sizing: border-box; width: 100%; margin: 0; }
  #content { font-size: 16px; line-height: 1.65; overflow-wrap: break-word; }
  #wrapper img, #wrapper video, #wrapper iframe, #wrapper object { max-width: 100%; }
  #wrapper img { height: auto; }
  #respond, #commentform, #commentform textarea { box-sizing: border-box; max-width: 100%; }
  .single .entry-meta, .single-format-image .entry-header, .single-format-gallery .entry-header { float: none; width: auto; }
}
@media (min-width: 600px) and (max-width: 980px) {
  #slides.kwicks > .slide { height: 300px !important; }
  #slides .entry-title { font-size: 22px !important; }
}

/* Public guest mobile navigation contrast. */
@media (max-width: 980px) {
  body.home #access { background: #f8fbfc; padding: 8px 12px; border-radius: 3px; }
}

/* Keep multiline mobile content headings readable. */
@media (max-width: 980px) {
  .entry-content h3 { line-height: 1.25; }
}
