/* Shared mobile reading layout for all program detail pages. */
@media (max-width: 767.98px) {
  html body:is(.program-detail-page,.pinarabong-page) main {
    font-size: 13px;
    line-height: 1.75;
    text-align: center;
  }
  html body:is(.program-detail-page,.pinarabong-page) main :is(h1,h2,h3,p,li,dt,dd,figcaption,.program-prose,.section-label,.program-chip,.pina-category,.pina-mobile-nav) {
    text-align: center !important;
    overflow-wrap: anywhere;
  }
  html body:is(.program-detail-page,.pinarabong-page) main h1 {
    font-size: clamp(24px,7vw,30px) !important;
    line-height: 1.3 !important;
  }
  html body:is(.program-detail-page,.pinarabong-page) main h2 {
    font-size: 18px !important;
    line-height: 1.45 !important;
    margin-bottom: 14px !important;
  }
  html body:is(.program-detail-page,.pinarabong-page) main h3 {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  html body:is(.program-detail-page,.pinarabong-page) main :is(p,li,.program-prose,dd) {
    font-size: 13px !important;
    line-height: 1.75 !important;
  }
  html body:is(.program-detail-page,.pinarabong-page) main :is(.program-chip,.pina-category) {
    display: block;
    width: fit-content;
    margin-inline: auto !important;
  }
  html body:is(.program-detail-page,.pinarabong-page) main :is(.program-detail-content,.pina-content) ul {
    padding-left: 0 !important;
    list-style-position: inside;
  }
  html body:is(.program-detail-page,.pinarabong-page) main :is(.contact-details,.pina-contact-actions,.pina-resources li) {
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
  }
  html body.program-detail-page main aside nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 12px;
  }
  html body.program-detail-page main aside a {
    justify-content: center;
    text-align: center;
  }
  html body:is(.program-detail-page,.pinarabong-page) main :is(.pina-button,.program-contact-button,.program-back) {
    align-self: center !important;
    margin-inline: auto !important;
    min-height: 40px !important;
    padding: 6px 10px !important;
    border: 0 !important;
    border-radius: 4px;
    background: #f2f4f6 !important;
    color: #455563 !important;
    -webkit-text-fill-color: #455563 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
    text-align: center !important;
  }
  html body:is(.program-detail-page,.pinarabong-page) main :is(.pina-button,.program-contact-button,.program-back):is(:hover,:active,:focus-visible) {
    background: #eaf3f8 !important;
    box-shadow: none !important;
  }
}
