/* Version 113 — second-wave mobile refinements.
   Desktop and tablet layouts remain unchanged. */

@media (max-width: 700px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Services — centered, readable support-group tabs. */
  .support-tab {
    grid-template-columns: 24px minmax(0, 1fr) 18px;
    text-align: center;
  }

  .support-tab span {
    display: block;
    width: 100%;
    justify-self: center;
    line-height: 1.42;
    text-align: center;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    text-decoration-skip-ink: auto;
  }

  /* Fill the Set It Off support-group frame without stretching the image. */
  #support-group-panel[aria-labelledby="support-tab-set-it-off"] .support-group-photo img {
    object-fit: cover;
    object-position: center;
  }

  /* Services — workshops use the same compact two-by-two tab rhythm. */
  .workshop-tabs {
    display: grid;
    padding: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    border: 1px solid rgb(226 195 110 / 76%);
    border-radius: 16px 5px 16px 5px;
    background: linear-gradient(155deg, #f4e7d1, #ddc59f);
    box-shadow: 0 14px 28px rgb(0 22 19 / 20%), inset 0 0 0 4px rgb(163 25 77 / 6%);
  }

  .workshop-tab {
    min-height: 52px;
    padding: 7px 8px 7px 33px;
    border-radius: 8px;
    font-size: .69rem;
    letter-spacing: .025em;
    line-height: 1.18;
  }

  .workshop-number {
    left: 8px;
    font-size: .82rem;
  }

  .workshop-title {
    line-height: 1.34;
  }

  .workshop-title::after {
    margin-top: 2px;
  }

  .workshop-tab::after {
    height: 2px;
  }

  .workshop-tab.is-active::after {
    height: 3px;
  }

  /* Show the complete Waiting to Exhale artwork. */
  #workshop-panel[aria-labelledby="workshop-tab-exhale"] .workshop-photo img {
    object-fit: contain;
    object-position: center;
  }

  /* Fill the Set It Off workshop frame without distorting the artwork. */
  #workshop-panel[aria-labelledby="workshop-tab-set-it-off"] .workshop-photo img {
    object-fit: cover;
    object-position: center;
  }

  /* Programs — consistent centered descriptions. */
  .program-copy,
  #program-description,
  #program-description p {
    text-align: center;
  }

  /* Events — keep every title and subtitle fully inside its door. */
  .door-face {
    overflow: hidden;
  }

  .door-title,
  .door-overline + .door-title {
    display: block;
    width: calc(100% - 10px);
    max-width: calc(100% - 10px);
    padding-inline: 2px;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    white-space: normal;
  }

  .door-subtitle,
  .event-door-dora .door-subtitle {
    display: block;
    width: calc(100% - 12px);
    max-width: calc(100% - 12px);
    min-height: 2.9em;
    padding-inline: 2px;
    font-size: clamp(.5rem, 2.2vw, .58rem);
    letter-spacing: .015em;
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    white-space: normal;
  }

  /* Bible Study — symmetrical lines around the centered closing sentence. */
  .bible-show-signoff {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(28px, 1fr) auto minmax(28px, 1fr);
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .bible-show-signoff::before,
  .bible-show-signoff::after {
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cream));
    content: "";
  }

  .bible-show-signoff::after {
    background: linear-gradient(90deg, var(--cream), transparent);
  }
}
