/* Shared phone and tablet delivery for civic forms and program navigation. */
@media (max-width: 840px) {
  html[data-q45-responsive="enabled"] .civic :is(.cv-form-wrap, fieldset, .cv-fields, .cv-map-layout) {
    min-inline-size: 0;
    max-inline-size: 100%;
    box-sizing: border-box;
  }

  html[data-q45-responsive="enabled"] .civic .cv-map-scroll {
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scroll-padding-inline: .5rem;
  }

  html[data-q45-responsive="enabled"] .civic :is(.cv-form-wrap, .cv-studio-filter) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    min-inline-size: 0;
    max-inline-size: 100%;
    font-size: 16px;
    box-sizing: border-box;
  }

  html[data-q45-responsive="enabled"] .civic .cv-form-wrap input[type="file"] {
    inline-size: 100%;
    overflow: hidden;
  }

  html[data-q45-responsive="enabled"] .civic :is(.cv-form-wrap, .cv-studio-toolbar) :is(button, a):focus-visible {
    outline: 3px solid #9b6732;
    outline-offset: 3px;
  }

  html[data-q45-responsive="enabled"] .civic .cv-form-wrap :is(label:has(input[type="checkbox"]), label:has(input[type="radio"])) {
    min-block-size: 44px;
    line-height: 1.45;
  }
}

@media (max-width: 640px) {
  html[data-q45-responsive="enabled"] .civic .cv-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  html[data-q45-responsive="enabled"] .civic :is(.cv-actions, .cv-studio-toolbar) {
    flex-wrap: wrap;
    min-inline-size: 0;
  }

  html[data-q45-responsive="enabled"] .civic :is(.cv-actions, .cv-studio-toolbar) > :is(a, button) {
    min-block-size: 44px;
    max-inline-size: 100%;
    white-space: normal;
  }

  html[data-q45-responsive="enabled"] .civic .cv-nav > div {
    min-inline-size: 0;
    max-inline-size: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  html[data-q45-responsive="enabled"] .civic .cv-nav > div > a {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
  }
}
