/* v220 — only the desktop model popup, trust dialog and stage titles. */
@media (min-width: 992px) {
  /* The cloned catalogue card still inherits a 190px-high body: release it so
     the title sits under the machine and immediately above the two controls. */
  .wmf-model-menu .wmf-v219-model-card .qa-card-body {
    min-height: 0 !important;
    height: auto !important;
  }

  .wmf-model-menu .wmf-v219-model-card .qa-card-body h3 {
    position: static !important;
    inset: auto !important;
    margin-left: 12px !important;
    padding: 0 !important;
  }

  .wmf-model-menu .wmf-v219-model-card .qa-capacity {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 26px !important;
    padding: 0 7px !important;
    text-align: center !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  /* The entire trust dialog fits in a viewport: a broad two-line heading
     followed by two compact rows of three cards, with no inner scrollbar. */
  .wmf-trust-dialog[open] {
    box-sizing: border-box !important;
    inset: 0 !important;
    width: min(1440px, calc(100vw - 48px)) !important;
    max-width: none !important;
    max-height: calc(100dvh - 36px) !important;
    margin: auto !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .wmf-trust-dialog .wmf-trust-dialog-panel {
    box-sizing: border-box !important;
    width: 100% !important;
    max-height: none !important;
    padding: clamp(20px, 2.2vw, 34px) !important;
    overflow: visible !important;
  }

  .wmf-trust-dialog .wmf-trust-dialog-head {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 19px !important;
    padding: 0 50px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .wmf-trust-dialog .wmf-trust-dialog-head::before,
  .wmf-trust-dialog .wmf-trust-dialog-head::after {
    display: none !important;
    content: none !important;
  }

  .wmf-trust-dialog .wmf-trust-dialog-head > span {
    position: relative !important;
    display: inline-block !important;
    width: max-content !important;
    margin: 0 0 16px !important;
    padding: 0 0 8px !important;
    color: #d3a276 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
  }

  .wmf-trust-dialog .wmf-trust-dialog-head > span::before {
    display: none !important;
    content: none !important;
  }

  .wmf-trust-dialog .wmf-trust-dialog-head > span::after {
    position: absolute !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    display: block !important;
    width: 110px !important;
    height: 2px !important;
    content: '' !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #d3a276 !important;
  }

  .wmf-trust-dialog .wmf-trust-dialog-head h3 {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: clamp(25px, 2.25vw, 36px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.025em !important;
    text-align: left !important;
    text-wrap: auto !important;
  }

  .wmf-trust-dialog .wmf-trust-why-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 0 !important;
  }

  .wmf-trust-dialog .wmf-trust-why-item {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    grid-template-rows: auto 1fr !important;
    grid-template-areas: 'number title' '. body' !important;
    align-items: start !important;
    column-gap: 12px !important;
    row-gap: 6px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 15px !important;
    overflow: hidden !important;
  }

  .wmf-trust-dialog .wmf-trust-why-icon {
    position: static !important;
    grid-area: number !important;
    display: grid !important;
    place-items: center !important;
    box-sizing: border-box !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  .wmf-trust-dialog .wmf-trust-why-item h4 {
    position: static !important;
    grid-area: title !important;
    align-self: center !important;
    margin: 0 !important;
    font-size: clamp(15px, 1vw, 17px) !important;
    line-height: 1.2 !important;
  }

  .wmf-trust-dialog .wmf-trust-why-item p {
    position: static !important;
    grid-area: body !important;
    margin: 0 !important;
    font-size: clamp(12px, .88vw, 14px) !important;
    line-height: 1.38 !important;
  }

  /* Wrap at spaces only; never hyphenate a fragment of a stage name. */
  #implementation .imp-stage-card strong {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}

@media (min-width: 992px) and (max-height: 670px) {
  .wmf-trust-dialog .wmf-trust-dialog-panel { padding: 16px 20px !important; }
  .wmf-trust-dialog .wmf-trust-dialog-head { margin-bottom: 12px !important; }
  .wmf-trust-dialog .wmf-trust-dialog-head > span { margin-bottom: 9px !important; }
  .wmf-trust-dialog .wmf-trust-dialog-head h3 { font-size: 25px !important; }
  .wmf-trust-dialog .wmf-trust-why-grid { gap: 8px !important; }
  .wmf-trust-dialog .wmf-trust-why-item { padding: 10px !important; }
  .wmf-trust-dialog .wmf-trust-why-item p { font-size: 12px !important; line-height: 1.3 !important; }
}
