/* The catalogue reflows at readable card widths, including in split-screen windows. */
.service-catalog .catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(19rem, 28%)), 1fr));
}
.service-catalog .catalog-card { min-width: 0; }
.service-catalog .catalog-card .catalog-body p,
.service-catalog .catalog-hero-copy .catalog-safety p,
.services-first > .service-catalog .logibu-welcome p,
.service-catalog .catalog-public-notice { font-size: 1rem; line-height: 1.55; }
.service-catalog .catalog-body h3 { font-size: 1.375rem; line-height: 1.3; }
.service-catalog .catalog-card-actions :is(.assistant-request,.catalog-cta) {
  display: inline-flex; align-items: center; min-height: 48px; font-size: 1rem; line-height: 1.35;
}
.service-catalog .catalog-filters button, .service-catalog .catalog-search input {
  min-height: 46px; font-size: 1rem;
}
.service-catalog .catalog-search, .service-catalog .catalog-status { font-size: 1rem; }
.service-catalog .catalog-card .catalog-body li, .service-catalog .catalog-photo span { font-size: .875rem; }
.iphone-install-dialog {
  width: min(30rem, calc(100% - 24px)); max-width: none;
  max-height: calc(var(--catalog-height, 100dvh) - 24px);
  overscroll-behavior: contain; padding: 20px; margin: auto;
}
.iphone-install-dialog h2 { font-size: 1.5rem; margin: 8px 32px 14px; line-height: 1.25; }
.iphone-install-dialog p { font-size: 1.0625rem; line-height: 1.5; margin: 12px 0; }
.iphone-install-dialog img { width: min(11rem, 60%); height: auto; margin: 12px auto; }
.iphone-install-dialog .button {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px;
  font-size: 1.125rem; line-height: 1.35; white-space: normal; padding: 12px;
}
.iphone-install-dialog .iphone-install-close { width: 46px; height: 46px; top: 2px; right: 2px; }
html:is([data-catalog-size="phone"],[data-catalog-size="tablet"]) .header {
  position: relative; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px; height: auto; min-height: 0; padding: 10px 16px;
}
html:is([data-catalog-size="phone"],[data-catalog-size="tablet"]) .header nav { display: none; }
html:is([data-catalog-size="phone"],[data-catalog-size="tablet"]) .header .menu-toggle {
  display: block; min-height: 44px; min-width: 44px;
}
html:is([data-catalog-size="phone"],[data-catalog-size="tablet"]) .header .theme-toggle {
  margin-left: auto; min-height: 44px;
}
html:is([data-catalog-size="phone"],[data-catalog-size="tablet"]) .header .header-actions {
  order: 5; flex: 0 0 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px 10px; padding: 8px 0 0; margin: 0; border-top: 1px solid var(--line);
}
html:is([data-catalog-size="phone"],[data-catalog-size="tablet"]) .header-actions > div { min-width: 0; text-align: center; }
html:is([data-catalog-size="phone"],[data-catalog-size="tablet"]) .header .header-actions .entry-button-group {
  display: grid; grid-column: 1/-1; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px;
}
html:is([data-catalog-size="phone"],[data-catalog-size="tablet"]) .header .header-actions .entry-button-group > :is(a.quick-entry-link,button) {
  grid-column: auto; width: 100%; height: auto; min-height: 46px; padding: 6px;
  font-size: 1rem; white-space: normal; overflow-wrap: break-word;
}
html:is([data-catalog-size="phone"],[data-catalog-size="tablet"]) .header-actions > div:not(.entry-button-group) a {
  display: flex !important; justify-content: center; align-items: center; min-height: 44px;
  margin: 0 !important; font-size: 1rem !important; line-height: 1.25; white-space: normal;
}
html:is([data-catalog-size="phone"],[data-catalog-size="tablet"]) #mobile-menu:not([hidden]) {
  position: relative; inset: auto; width: 100%; max-width: none; max-height: none;
}
html:is([data-catalog-size="phone"],[data-catalog-size="tablet"]) .service-catalog.wrap {
  width: calc(100% - 32px); margin-inline: auto;
}
html:is([data-catalog-size="phone"],[data-catalog-size="tablet"]) .service-catalog .section-heading {
  display: grid; grid-template-columns: minmax(0,1fr); gap: 14px;
}
html:is([data-catalog-size="phone"],[data-catalog-size="tablet"]) .service-catalog .catalog-toolbar {
  display: flex; flex-direction: column; align-items: stretch; gap: 14px;
}
html:is([data-catalog-size="phone"],[data-catalog-size="tablet"]) .catalog-toolbar .catalog-search { width: 100%; max-width: none; }
html:is([data-catalog-size="phone"],[data-catalog-size="tablet"]) .catalog-toolbar .catalog-search input { width: 100%; }
html[data-catalog-size="tablet"] .service-catalog .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
html[data-catalog-size="phone"] .service-catalog .catalog-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
html[data-catalog-size="phone"] .service-catalog .catalog-body { padding: 16px; }
html[data-catalog-size="phone"] .service-catalog .catalog-filters {
  max-width: 100%; display: flex; flex-wrap: wrap; gap: 8px;
}
html[data-catalog-size="phone"] .service-catalog .services-first-title {
  font-size: 1.875rem; line-height: 1.16; overflow-wrap: break-word;
}
html[data-catalog-size="phone"] .service-catalog .logibu-mascot { flex-basis: 64px; width: 64px; height: 64px; }
html[data-catalog-size="phone"] .service-catalog .logibu-mascot-art { width: 58px; height: 58px; }
html[data-catalog-size="phone"] .service-catalog .logibu-welcome p { min-width: 0; }
