/* Phone and tablet refinements for the shared Site surfaces. */
@media (max-width: 980px) {
  html[data-q45-responsive="enabled"] :where(main, .afy-operations) :where(img, video, embed, object) {
    max-inline-size: 100%;
  }

  html[data-q45-responsive="enabled"] :where(.q25, .fy-page, .afy-operations, .q45-blog, .q45-stewardship-page) :where(a, button, select, textarea):focus-visible {
    outline: 3px solid #a16c32;
    outline-offset: 3px;
  }

  html[data-q45-responsive="enabled"] :where(.q25, .q45-blog, .q45-stewardship-page) :where(h1, h2, h3) {
    overflow-wrap: break-word;
    hyphens: manual;
  }
}

@media (max-width: 700px) {
  html[data-q45-responsive="enabled"] .q25 .q25-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    column-gap: 1rem;
  }

  html[data-q45-responsive="enabled"] .q25 .q25-nav a {
    flex: 0 1 auto;
    max-inline-size: 100%;
    line-height: 1.35;
  }

  html[data-q45-responsive="enabled"] .q25 .q25-checklist label {
    padding-block: .45rem;
    align-items: flex-start;
  }

  html[data-q45-responsive="enabled"] .q25 .q25-checklist input {
    margin-block-start: .28rem;
  }

  html[data-q45-responsive="enabled"] .q25 .q25-agenda li {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  html[data-q45-responsive="enabled"] .q45-blog-toc {
    gap: .35rem;
  }

  html[data-q45-responsive="enabled"] :where(.q45-blog-toc, .q45-blog-related, .q45-blog-sources) a {
    min-block-size: 44px;
    display: inline-flex;
    align-items: center;
    text-underline-offset: .2em;
  }

  html[data-q45-responsive="enabled"] :where(.q45-blog-reading, .q45-blog-article-head, .q45-stewardship-intro) {
    padding-inline-start: max(1rem, env(safe-area-inset-left));
    padding-inline-end: max(1rem, env(safe-area-inset-right));
  }

  html[data-q45-responsive="enabled"] :where(.afy-operations .afy-actions, .fy-actions, .q25-actions) > :where(a, button) {
    max-inline-size: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }
}

@media (max-width: 390px) {
  html[data-q45-responsive="enabled"] .q45-blog-reading :where(.q45-blog-answer, .q45-blog-next, .q45-stewardship-note) {
    padding-inline: 1rem;
  }

  html[data-q45-responsive="enabled"] .q25 .q25-actions a {
    max-inline-size: 100%;
  }
}
