/* Shared website presentation fixes, scoped to the audited GatherThat components. */
body.mbv-site .mbv-shortcode-page-hero.gt-title-box.gt-title-box h1.gt-page-title { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.gtum-app .gtum-toolbar, .gtum-app .gtum-actions { flex-wrap: wrap; }
.mydash .mydash-widget-empty-action { min-width: 0; max-width: 100%; }
.mydash .mydash-widget-empty-action .mydash-button-light { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.mbv-feature-display .mbv-feature-category-nav { flex-wrap: wrap; overflow: visible; }
.mbv-feature-display .mbv-feature-category-nav button { flex: 1 1 120px; white-space: normal; min-height: 44px; }
@media (max-width: 1000px) {
  .mbv-feature-display.mbv-feature-compare { overflow: visible; }
  .mbv-feature-display .mbv-feature-compare-header { position: relative; top: 0 !important; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mbv-feature-display .mbv-feature-compare-corner { grid-column: 1 / -1; }
  .mbv-feature-display .mbv-feature-compare-grid { min-width: 0; grid-template-columns: repeat(var(--mbv-plan-count), minmax(0, 1fr)); }
  .mbv-feature-display .mbv-feature-name-cell { grid-column: 1 / -1; background: #f2f7ef; }
  .mbv-feature-display .mbv-feature-check-cell { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 12px 4px; }
  .mbv-feature-display .mbv-feature-check-cell::before { content: attr(data-plan-label); font-size: 12px; font-weight: 700; color: #17352a; }
}
@media (max-width: 600px) {
  body.mbv-site .mbv-shortcode-page-hero.gt-title-box.gt-title-box h1.gt-page-title { font-size: clamp(28px, 8vw, 44px) !important; line-height: 1.08 !important; }
  body.mbv-site .mbv-shortcode-page-hero.gt-title-box.gt-title-box .gt-page-title-row { flex-wrap: wrap; gap: 16px; }
  .mbv-feature-display .mbv-feature-compare-header { grid-template-columns: minmax(0, 1fr); }
  .mydash .mydash-recent-range-form { left: auto; right: 0; min-width: 0; width: min(260px, calc(100vw - 48px)); }
  .gtum-app .gtum-toolbar { align-items: flex-start; }
  .gtum-app .gtum-actions { width: 100%; }
  /* Retain all five column labels while reflowing each report record into a card. */
  .gth-insurance-report table, .gth-insurance-report tbody { display: block; width: 100%; min-width: 0; }
  .gth-insurance-report thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .gth-insurance-report tr { display: block; margin: 0 0 16px; border: 1px solid #d8e2dc; border-radius: 12px; padding: 12px; }
  .gth-insurance-report td { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; width: 100%; box-sizing: border-box; overflow-wrap: anywhere; padding: 8px; }
  .gth-insurance-report td::before { font-weight: 700; }
  .gth-insurance-report td:nth-child(1)::before { content: 'Collection'; }
  .gth-insurance-report td:nth-child(2)::before { content: 'Item'; }
  .gth-insurance-report td:nth-child(3)::before { content: 'Type'; }
  .gth-insurance-report td:nth-child(4)::before { content: 'Recorded value'; }
  .gth-insurance-report td:nth-child(5)::before { content: 'Evidence'; }
}

.mydash .mydash-strip-head { flex-wrap: wrap; }
.mydash .mydash-strip-head h3 { min-width: 0; overflow-wrap: anywhere; }

/* Keep portrait content and breadcrumbs clear of phone/tablet screen edges. */
@media (max-width: 1024px) and (orientation: portrait) {
  body.mbv-site > .elementor:not(.elementor-location-header):not(.elementor-location-footer) {
    box-sizing: border-box;
    padding-left: max(clamp(16px, 3vw, 24px), env(safe-area-inset-left));
    padding-right: max(clamp(16px, 3vw, 24px), env(safe-area-inset-right));
  }
}
