/* Optional diagrams stay visible on desktop and when scripting is unavailable. */
.mobile-refine-panel {
  display: contents;
}

.mobile-refine-panel > summary {
  display: none;
}

@media (max-width: 767px) {
  .mobile-refine-panel {
    display: block;
    min-width: 0;
    margin-block: 12px;
    border-block: 1px solid #ccd7e2;
  }

  .mobile-refine-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding-block: 10px;
    color: #174ea0;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
  }

  .mobile-refine-panel > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-refine-panel > summary > svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .mobile-refine-panel[open] > summary > svg {
    transform: rotate(180deg);
  }

  .mobile-refine-panel > summary:focus-visible {
    outline: 3px solid #1749ff;
    outline-offset: 3px;
  }

  /* Replace the earlier mobile rule that sets these action links to 14px. */
  .mobile-readable main :is(.contact-entry-links a, .service-partner-link, .page-section-nav a),
  .mobile-readable main :is(.task-entry-links a, .setup-screen-link, .office-map-link),
  .mobile-readable main :is(.support-guide-card .text-link, .setup-carrier-summary-note),
  .mobile-readable main :is(.contact-support-links a, .task-entry-phone small, .task-entry-phone small span),
  .mobile-readable main :is(.about-business-copy small, .security-card-detail, .download-button small),
  .mobile-readable main :is(.hero-browse, .hero-lead-phrase, .reason-phrase, .reason-support-methods .text-link),
  .mobile-readable main :is(.ups-guide-condition dt, .zg-badges span) {
    font-size: 1rem !important;
  }

  .catalogue-refined main .security-card-visual {
    height: 120px;
    aspect-ratio: auto;
  }

  .company-page #company-business .about-business-list .about-business-entry {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 12px;
    min-height: 56px;
    padding-block: 10px;
  }

  .company-page #company-business .about-business-mark[aria-hidden="true"] {
    display: none;
  }

  .company-page .about-office-grid .office-location-photo img {
    max-height: 160px;
    object-fit: contain;
  }

  .reason-support-illustrated .reason-support-art {
    display: none;
  }

  .support-page main :is(.support-downloads, .support-webroot, .support-landing-guide) {
    padding-block: 24px;
  }
}
