/* SummitClimbs mobile refinement: loaded separately to bypass long static CSS cache. */
@media screen and (max-width: 600px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .wrapper,
  .site-content > .wrapper,
  .site-header .wrapper,
  .site-footer .wrapper,
  .section-content-wrapper,
  .singular-content-wrap,
  .content-area,
  #primary,
  #main,
  .hentry,
  .entry-container,
  .entry-content,
  .entry-summary {
    max-width: 100%;
    box-sizing: border-box;
  }

  .wrapper,
  .site-content > .wrapper,
  .site-header .wrapper,
  .site-footer .wrapper {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .site-content {
    overflow-x: clip;
  }

  .entry-title,
  .singular-content-wrap .entry-title,
  .site-content .entry-title {
    font-size: clamp(1.65rem, 8vw, 2rem) !important;
    line-height: 1.16 !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .entry-content h1,
  .entry-content h2,
  .entry-content h3,
  .entry-content h4,
  .section-title {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .entry-content h2 {
    font-size: clamp(1.35rem, 6.2vw, 1.65rem) !important;
    line-height: 1.25 !important;
    margin-top: 1.35em;
    margin-bottom: 0.65em;
  }

  .entry-content h3 {
    font-size: clamp(1.12rem, 5.3vw, 1.35rem) !important;
    line-height: 1.28 !important;
  }

  .entry-content p,
  .entry-content li {
    overflow-wrap: break-word;
  }

  .entry-content ul,
  .entry-content ol {
    padding-left: 1.25em;
  }

  .entry-content img,
  .wp-block-image img,
  .post-thumbnail img,
  .featured-image img {
    width: auto;
    max-width: 100%;
    height: auto;
  }

  .wp-block-image,
  .wp-block-image figure,
  .entry-content figure {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .wp-block-image.alignleft,
  .wp-block-image.alignright,
  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    display: block;
    max-width: 100%;
    margin: 1.25em 0;
  }

  table,
  pre,
  code,
  iframe,
  embed,
  object,
  video {
    max-width: 100%;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sc-support-box {
    margin: 34px 0 22px;
    border-radius: 12px;
  }

  .sc-support-inner {
    padding: 24px 16px 20px !important;
    border-radius: 10px;
  }

  .sc-support-text br {
    display: none;
  }

  .sc-support-buttons {
    gap: 12px;
  }

  .sc-btn {
    width: 100%;
    min-width: 0 !important;
    max-width: 280px;
    padding: 13px 16px;
  }

  .sc-ig-link {
    padding: 11px 12px;
  }

  #sc-chat-btn {
    right: 10px;
    bottom: 86px;
    max-width: calc(100vw - 20px);
  }

  #sc-chat-panel {
    left: 10px !important;
    right: 10px !important;
    bottom: 132px;
    width: auto !important;
    max-width: none;
    max-height: min(540px, calc(100vh - 160px));
  }
}

@media screen and (max-width: 360px) {
  .wrapper,
  .site-content > .wrapper,
  .site-header .wrapper,
  .site-footer .wrapper {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .entry-content {
    font-size: 0.98rem;
  }

  .sc-btn-text strong {
    font-size: 0.95rem;
  }

  .sc-btn-sub {
    font-size: 0.72rem;
  }
}
