/* Start custom CSS *//* XMG CERTIFICATION HUB 2026-08-26 START */
.xmg-cert-hero { padding-top: 44px; background: linear-gradient(145deg, #f7fcfd 0%, #eaf6fa 58%, #dfeff5 100%); }
.xmg-cert-page .xmg-cert-hero,
body.page-id-3761.elementor-page .xmg-cert-hero {
  position: relative;
  isolation: isolate;
  background-color: #edf8fb;
  background-image:
    linear-gradient(90deg, rgba(237,248,251,.98) 0%, rgba(237,248,251,.94) 35%, rgba(237,248,251,.78) 53%, rgba(237,248,251,.42) 73%, rgba(237,248,251,.62) 100%),
    url("https://xmgfood.com/wp-content/uploads/2026/08/xmg-nonproduct-hero-quality-supply-food-safety-certificates-20260812.webp");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat;
}
.xmg-cert-hero-inner { grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr); align-items: start; gap: 48px; }
.xmg-cert-hero-inner,
.xmg-cert-proof { position: relative; z-index: 1; }
.xmg-cert-hero-copy { padding-top: 18px; }
.xmg-cert-hero .xmg-page-title .elementor-heading-title,
.xmg-cert-hero .xmg-page-title { font-size: clamp(43px, 4.35vw, 59px); }
.xmg-cert-hero-evidence { min-width: 0; padding: 18px; border: 1px solid rgba(11,49,88,.13); border-radius: var(--xmg-radius-feature); display: grid; grid-template-columns: minmax(0,1fr) 164px; gap: 16px; background: rgba(255,255,255,.92); box-shadow: var(--xmg-shadow-raised); backdrop-filter: blur(4px); }
.xmg-cert-hero-status { grid-column: 1 / -1; padding: 13px 15px; border-radius: var(--xmg-radius-md); color: #754b00; background: #fff5d9; }
.xmg-cert-hero-status p { margin: 0; font-size: 11px; line-height: 1.45; }
.xmg-cert-hero-status strong,
.xmg-cert-hero-status span { display: block; }
.xmg-cert-hero-status strong { margin-bottom: 3px; color: #6a4300; font-size: 10px; letter-spacing: 1.15px; }
.xmg-cert-hero-status--current { color: #285b2e; background: #edf7e9; }
.xmg-cert-hero-status--current strong { color: #285b2e; }
.xmg-cert-hero-document,
.xmg-cert-hero-document .elementor-widget-container { min-height: 430px; overflow: hidden; border: 1px solid var(--xmg-line); border-radius: var(--xmg-radius-md); background: #f6fafb; }
.xmg-cert-hero-document img { width: 100%; height: 430px; object-fit: contain; object-position: center top; }
.xmg-cert-hero-fields-widget { min-width: 0; }
.xmg-cert-hero-fields { height: 100%; margin: 0; display: grid; align-content: stretch; gap: 9px; }
.xmg-cert-hero-fields > div { min-width: 0; padding: 14px 12px; border: 1px solid var(--xmg-line); border-radius: 11px; display: flex; flex-direction: column; justify-content: center; background: var(--xmg-ice); }
.xmg-cert-hero-fields dt { margin: 0 0 5px; color: var(--xmg-blue); font-size: 9px; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; }
.xmg-cert-hero-fields dd { margin: 0; color: var(--xmg-navy-deep); font-size: 11px; font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; }
.xmg-cert-proof { margin-top: 32px; }

.xmg-cert-coverage .xmg-page-section-head { max-width: 930px; }
.xmg-cert-coverage-band { border-top: 1px solid var(--xmg-line-strong); }
.xmg-cert-coverage-band article { min-height: 152px; padding: 24px 0; border-bottom: 1px solid var(--xmg-line); display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: center; gap: 28px; }
.xmg-cert-coverage-logo { width: 112px; height: 92px; padding: 13px; border: 1px solid var(--xmg-line); border-radius: var(--xmg-radius-md); display: grid; place-items: center; background: #fff; }
.xmg-cert-coverage-logo img { width: 100%; height: 100%; object-fit: contain; }
.xmg-cert-coverage-band article > div:last-child { display: grid; grid-template-columns: minmax(170px,.65fr) minmax(240px,1fr); column-gap: 32px; align-items: start; }
.xmg-cert-coverage-band p { margin: 0 0 7px; color: var(--xmg-blue); font-size: 11px; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; }
.xmg-cert-coverage-band h3 { grid-row: 2; margin: 0; color: var(--xmg-navy-deep); font-size: 22px; line-height: 1.3; }
.xmg-cert-coverage-band span { grid-column: 2; grid-row: 1 / span 2; color: var(--xmg-ink); font-size: 14px; font-weight: 750; line-height: 1.55; }
.xmg-cert-coverage-band small { grid-column: 1 / -1; margin-top: 13px; color: var(--xmg-muted); font-size: 12px; line-height: 1.55; }
.xmg-cert-scope-note { max-width: 900px; margin: 26px 0 0; padding: 16px 18px; border-left: 3px solid var(--xmg-blue); color: var(--xmg-muted); background: var(--xmg-ice); font-size: 13px; line-height: 1.62; }
.xmg-cert-scope-note strong { color: var(--xmg-navy); }

.xmg-cert-current-evidence .xmg-page-section-head { max-width: 920px; }
.xmg-cert-current-layout { display: grid; grid-template-columns: minmax(360px,.76fr) minmax(0,1.24fr); align-items: start; gap: 62px; }
.xmg-cert-current-document { min-width: 0; padding: 15px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--xmg-radius-feature); background: rgba(255,255,255,.07); }
.xmg-cert-current-image,
.xmg-cert-current-image .elementor-widget-container { overflow: hidden; border-radius: var(--xmg-radius-md); background: #fff; }
.xmg-cert-current-image img { width: 100%; max-height: 620px; object-fit: contain; object-position: center top; }
.xmg-cert-current-status { padding: 15px 4px 2px; }
.xmg-cert-current-status p { margin: 0; }
.xmg-cert-current-status strong,
.xmg-cert-current-status span { display: block; }
.xmg-cert-current-status strong { color: #a7d990; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; }
.xmg-cert-current-status span { margin-top: 5px; color: #c6d7e1; font-size: 12px; }
.xmg-cert-current-facts { border-top: 1px solid rgba(255,255,255,.2); }
.xmg-cert-current-facts > div { min-height: 115px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.16); display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 22px; }
.xmg-cert-current-facts span { color: #86d5ea; font-size: 10px; font-weight: 850; letter-spacing: 1px; }
.xmg-cert-current-facts strong { color: #fff; font-size: 18px; line-height: 1.48; }
.xmg-cert-current-note { margin: 28px 0 0; padding: 20px 22px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--xmg-radius-md); color: #c5d4dd; background: rgba(255,255,255,.055); font-size: 13px; line-height: 1.68; }

.xmg-cert-buyer-section .xmg-page-section-head { max-width: 930px; }
.xmg-cert-buyer-value { border-top: 1px solid var(--xmg-line-strong); }
.xmg-cert-buyer-value article { padding: 31px 0; border-bottom: 1px solid var(--xmg-line); display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 20px; }
.xmg-cert-buyer-value article > span { color: var(--xmg-blue); font-size: 11px; font-weight: 850; letter-spacing: 1px; }
.xmg-cert-buyer-value article > div { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(0,1.2fr); gap: 42px; }
.xmg-cert-buyer-value p { margin: 0 0 7px; color: var(--xmg-blue); font-size: 10px; font-weight: 850; letter-spacing: 1px; }
.xmg-cert-buyer-value h3 { margin: 0; color: var(--xmg-navy-deep); font-size: 25px; line-height: 1.3; }
.xmg-cert-buyer-value ul { margin: 0; padding: 0; list-style: none; }
.xmg-cert-buyer-value li { position: relative; margin: 0 0 8px; padding-left: 18px; color: var(--xmg-muted); font-size: 14px; line-height: 1.58; }
.xmg-cert-buyer-value li::before { content: ""; position: absolute; top: .68em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--xmg-green); }

.xmg-cert-decision-start .xmg-page-section-head { max-width: 900px; }
.xmg-cert-classification-list { border-top: 1px solid var(--xmg-line-strong); }
.xmg-cert-classification-list article { min-height: 154px; padding: 28px 0; border-bottom: 1px solid var(--xmg-line); display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 22px; }
.xmg-cert-classification-list article > span { color: var(--xmg-blue); font-size: 12px; font-weight: 850; letter-spacing: 1px; }
.xmg-cert-classification-list h3 { margin: 0 0 9px; color: var(--xmg-navy-deep); font-size: 23px; line-height: 1.28; }
.xmg-cert-classification-list p { max-width: 78ch; margin: 0; color: var(--xmg-muted); font-size: 15px; line-height: 1.72; }
.xmg-cert-knowledge-bridge-widget { margin-top: 42px; }
.xmg-cert-knowledge-bridge { padding: 34px 36px; border: 1px solid var(--xmg-line-strong); border-radius: var(--xmg-radius-feature); display: grid; grid-template-columns: minmax(250px,.72fr) minmax(0,1.28fr); gap: 48px; background: linear-gradient(135deg,#f6fbfc,#eaf5f8); }
.xmg-cert-knowledge-bridge h3 { max-width: 19ch; margin: 8px 0 0; color: var(--xmg-navy-deep); font-size: clamp(27px,3vw,38px); line-height: 1.14; letter-spacing: -.025em; }
.xmg-cert-knowledge-bridge p { max-width: 70ch; margin: 0 0 14px; color: var(--xmg-muted); font-size: 14px; line-height: 1.72; }
.xmg-cert-knowledge-bridge .xmg-cert-knowledge-label { margin: 0; color: var(--xmg-blue); font-size: 10px; font-weight: 850; letter-spacing: 1.15px; }
.xmg-cert-knowledge-bridge a { min-height: 44px; padding-top: 8px; display: inline-flex; align-items: center; color: var(--xmg-navy); font-size: 13px; font-weight: 850; }
.xmg-cert-knowledge-bridge a:hover { color: var(--xmg-blue); }

.xmg-cert-matrix-wrap,
.xmg-cert-program-wrap { overflow: hidden; border: 1px solid var(--xmg-line-strong); border-radius: var(--xmg-radius-lg); background: #fff; box-shadow: var(--xmg-shadow-soft); }
.xmg-cert-matrix,
.xmg-cert-program-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.xmg-cert-matrix th,
.xmg-cert-matrix td,
.xmg-cert-program-table th,
.xmg-cert-program-table td { padding: 20px 18px; border-right: 1px solid var(--xmg-line); border-bottom: 1px solid var(--xmg-line); vertical-align: top; color: var(--xmg-muted); font-size: 13px; line-height: 1.58; text-align: left; overflow-wrap: anywhere; }
.xmg-cert-matrix th:last-child,
.xmg-cert-matrix td:last-child,
.xmg-cert-program-table th:last-child,
.xmg-cert-program-table td:last-child { border-right: 0; }
.xmg-cert-matrix tbody tr:last-child > *,
.xmg-cert-program-table tbody tr:last-child > * { border-bottom: 0; }
.xmg-cert-matrix thead th,
.xmg-cert-program-table thead th { padding-top: 16px; padding-bottom: 16px; color: #fff; background: var(--xmg-navy); font-size: 10px; font-weight: 850; letter-spacing: .65px; text-transform: uppercase; }
.xmg-cert-matrix tbody th,
.xmg-cert-program-table tbody th { color: var(--xmg-navy-deep); background: #f7fbfc; font-weight: 800; }
.xmg-cert-matrix th:nth-child(1) { width: 18%; }
.xmg-cert-matrix th:nth-child(2) { width: 29%; }
.xmg-cert-matrix th:nth-child(3) { width: 28%; }
.xmg-cert-matrix th:nth-child(4) { width: 25%; }

.xmg-cert-programs .xmg-page-section-head { max-width: 930px; }
.xmg-cert-program-wrap { border-color: rgba(255,255,255,.19); background: rgba(255,255,255,.055); box-shadow: none; }
.xmg-cert-program-table th,
.xmg-cert-program-table td { border-color: rgba(255,255,255,.15); color: #c0d0da; }
.xmg-cert-program-table thead th { color: #d9f2f8; background: rgba(18,91,127,.34); }
.xmg-cert-program-table tbody th { color: #fff; background: rgba(255,255,255,.06); }
.xmg-cert-program-table th:nth-child(1) { width: 16%; }
.xmg-cert-program-table th:nth-child(2) { width: 16%; }
.xmg-cert-program-table th:nth-child(3) { width: 20%; }
.xmg-cert-program-table th:nth-child(4) { width: 22%; }
.xmg-cert-program-table th:nth-child(5) { width: 26%; }
.xmg-cert-program-table a { color: #8fd8ec; font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.xmg-cert-program-table a:hover { color: #fff; }
.xmg-cert-controlled-note { max-width: 860px; margin-top: 26px; color: #c0d0da; font-size: 14px; }
.xmg-cert-controlled-note p { margin: 0; }
.xmg-cert-controlled-note strong { color: #fff; }
.xmg-cert-dark-button { margin-top: 26px; }
.xmg-cert-programs .xmg-cert-dark-button .elementor-button { border-color: rgba(255,255,255,.42); color: #fff !important; background: transparent; }
.xmg-cert-programs .xmg-cert-dark-button .elementor-button:hover { border-color: #fff; background: rgba(255,255,255,.09); }

.xmg-cert-verify-layout { display: grid; grid-template-columns: minmax(360px,.77fr) minmax(0,1.23fr); align-items: start; gap: 64px; }
.xmg-cert-document-panel { min-width: 0; padding: 16px; border: 1px solid var(--xmg-line); border-radius: var(--xmg-radius-feature); background: #f6fafb; box-shadow: var(--xmg-shadow-soft); }
.xmg-cert-document-image,
.xmg-cert-document-image .elementor-widget-container { overflow: hidden; border-radius: var(--xmg-radius-md); background: #fff; }
.xmg-cert-document-image img { width: 100%; max-height: 650px; object-fit: contain; object-position: center top; }
.xmg-cert-document-caption { padding: 17px 4px 2px; }
.xmg-cert-document-caption p { margin: 8px 0 0; color: var(--xmg-muted); font-size: 12px; line-height: 1.6; }
.xmg-cert-document-caption .xmg-cert-history-label { margin: 0; color: #714700; font-size: 11px; font-weight: 850; letter-spacing: .3px; }
.xmg-cert-document-caption .xmg-cert-current-reading-label { margin: 0; color: var(--xmg-success); font-size: 11px; font-weight: 850; letter-spacing: .3px; }
.xmg-cert-field-list { margin: 0; padding: 0; border-top: 1px solid var(--xmg-line-strong); list-style: none; }
.xmg-cert-field-list li { min-height: 111px; padding: 21px 0; border-bottom: 1px solid var(--xmg-line); display: grid; grid-template-columns: 50px minmax(0,1fr); gap: 18px; }
.xmg-cert-field-list li > span { color: var(--xmg-blue); font-size: 11px; font-weight: 850; letter-spacing: 1px; }
.xmg-cert-field-list h3 { margin: 0 0 7px; color: var(--xmg-navy-deep); font-size: 19px; line-height: 1.32; }
.xmg-cert-field-list p { margin: 0; color: var(--xmg-muted); font-size: 14px; line-height: 1.64; }
.xmg-cert-official-link { min-height: 44px; margin-top: 22px; padding: 10px 0; display: inline-flex; align-items: center; color: var(--xmg-navy); font-size: 13px; font-weight: 850; }
.xmg-cert-official-link:hover { color: var(--xmg-blue); }
.xmg-cert-process .xmg-page-steps { grid-template-columns: repeat(4,minmax(0,1fr)); }

.xmg-cert-guides { width: 100%; max-width: none; padding: 96px 0; background: #fff; }
.xmg-cert-guides-inner { width: min(1180px,calc(100% - 48px)); margin-inline: auto; }
.xmg-cert-guides-head { max-width: 840px; margin-bottom: 42px; }
.xmg-cert-guides-kicker { margin: 0 0 16px; color: var(--xmg-blue); font-size: 11px; font-weight: 850; letter-spacing: 1.55px; text-transform: uppercase; }
.xmg-cert-guides-kicker::before { content: ""; width: 28px; height: 2px; margin: 0 10px 3px 0; display: inline-block; background: linear-gradient(90deg,var(--xmg-green),var(--xmg-blue)); }
.xmg-cert-guides-title { margin: 0; color: var(--xmg-navy-deep); font-size: clamp(36px,4vw,52px); line-height: 1.12; letter-spacing: -.035em; }
.xmg-cert-guides-lead { max-width: 68ch; margin: 18px 0 0; color: var(--xmg-muted); }
.xmg-cert-guide-featured { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.xmg-cert-guide-card { min-width: 0; overflow: hidden; border: 1px solid var(--xmg-line); border-radius: var(--xmg-radius-lg); background: #fff; box-shadow: var(--xmg-shadow-soft); }
.xmg-cert-guide-card a { height: 100%; display: grid; grid-template-columns: minmax(150px,.42fr) minmax(0,.58fr); }
.xmg-cert-guide-card img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.xmg-cert-guide-card-body { padding: 28px; display: flex; flex-direction: column; }
.xmg-cert-guide-label { margin: 0 0 20px; color: var(--xmg-blue); font-size: 10px; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; }
.xmg-cert-guide-card h3 { margin: 0; color: var(--xmg-navy-deep); font-size: 21px; line-height: 1.35; }
.xmg-cert-guide-excerpt { margin: 14px 0 0; color: var(--xmg-muted); font-size: 13px; line-height: 1.62; }
.xmg-cert-guide-meta { margin: auto 0 0; padding-top: 22px; color: #718798; font-size: 11px; }
.xmg-cert-guide-latest { margin-top: 30px; border-top: 1px solid var(--xmg-line-strong); }
.xmg-cert-guide-latest a { min-height: 72px; padding: 18px 0; border-bottom: 1px solid var(--xmg-line); display: grid; grid-template-columns: 110px minmax(0,1fr) auto; align-items: center; gap: 24px; }
.xmg-cert-guide-latest time { color: #718798; font-size: 11px; }
.xmg-cert-guide-latest strong { color: var(--xmg-navy-deep); font-size: 15px; line-height: 1.45; }
.xmg-cert-guide-latest span { color: var(--xmg-blue); font-size: 12px; font-weight: 850; }

.xmg-cert-cta-inner { align-items: flex-end; }
.xmg-cert-cta .xmg-page-cta-copy { max-width: 860px; }
.xmg-cert-cta-inputs { margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.xmg-cert-cta-inputs li { min-height: 36px; padding: 7px 12px; border: 1px solid rgba(11,49,88,.16); border-radius: var(--xmg-radius-pill); display: inline-flex; align-items: center; color: var(--xmg-navy); background: rgba(255,255,255,.58); font-size: 11px; font-weight: 750; }
.xmg-page-schema { display: none; }

@media (max-width: 1023px) {
  .xmg-cert-hero-inner { grid-template-columns: minmax(0,.84fr) minmax(430px,1.16fr); gap: 30px; }
  .xmg-cert-hero-evidence { grid-template-columns: minmax(0,1fr) 136px; padding: 14px; gap: 12px; }
  .xmg-cert-hero-document,
  .xmg-cert-hero-document .elementor-widget-container { min-height: 390px; }
  .xmg-cert-hero-document img { height: 390px; }
  .xmg-cert-hero-fields > div { padding: 11px 9px; }
  .xmg-cert-verify-layout { grid-template-columns: minmax(310px,.72fr) minmax(0,1.28fr); gap: 38px; }
  .xmg-cert-current-layout { grid-template-columns: minmax(310px,.7fr) minmax(0,1.3fr); gap: 38px; }
  .xmg-cert-buyer-value article > div { grid-template-columns: minmax(240px,.75fr) minmax(0,1.25fr); gap: 28px; }
  .xmg-cert-knowledge-bridge { grid-template-columns: minmax(220px,.62fr) minmax(0,1.38fr); gap: 30px; }
  .xmg-cert-program-table th,
  .xmg-cert-program-table td { padding: 17px 13px; font-size: 12px; }
  .xmg-cert-process .xmg-page-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .xmg-cert-guide-card a { grid-template-columns: 1fr; }
  .xmg-cert-guide-card img { min-height: 190px; max-height: 230px; }
}

@media (max-width: 767px) {
  .xmg-cert-hero { padding-top: 28px; }
  .xmg-cert-page .xmg-cert-hero,
  body.page-id-3761.elementor-page .xmg-cert-hero {
    background-image:
      linear-gradient(180deg, rgba(237,248,251,.93) 0%, rgba(237,248,251,.86) 43%, rgba(237,248,251,.63) 67%, rgba(237,248,251,.82) 100%),
      url("https://xmgfood.com/wp-content/uploads/2026/08/xmg-nonproduct-hero-quality-supply-food-safety-certificates-20260812.webp");
    background-position: center, 86% center;
  }
  .xmg-cert-hero-inner { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 30px; }
  .xmg-cert-hero-copy { padding-top: 0; }
  .xmg-cert-hero .xmg-page-title .elementor-heading-title,
  .xmg-cert-hero .xmg-page-title { font-size: clamp(37px,10.8vw,47px); }
  .xmg-cert-hero .xmg-page-actions { align-items: stretch; flex-direction: column; }
  .xmg-cert-hero .xmg-page-actions > .elementor-element,
  .xmg-cert-hero .xmg-page-actions .xmg-page-button,
  .xmg-cert-hero .xmg-page-actions .xmg-page-button-outline,
  .xmg-cert-hero .xmg-page-actions .elementor-button { width: 100% !important; }
  .xmg-cert-hero-evidence { grid-template-columns: 1fr; padding: 13px; gap: 13px; }
  .xmg-cert-hero-status { grid-column: auto; }
  .xmg-cert-hero-document,
  .xmg-cert-hero-document .elementor-widget-container { min-height: 0; }
  .xmg-cert-hero-document img { height: auto; max-height: 560px; }
  .xmg-cert-hero-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .xmg-cert-hero-fields > div { min-height: 82px; padding: 13px 12px; }
  .xmg-cert-proof { width: calc(100% - 32px); }
  .xmg-cert-coverage-band article { grid-template-columns: 82px minmax(0,1fr); gap: 18px; }
  .xmg-cert-coverage-logo { width: 82px; height: 76px; padding: 10px; }
  .xmg-cert-coverage-band article > div:last-child { grid-template-columns: 1fr; gap: 0; }
  .xmg-cert-coverage-band span,
  .xmg-cert-coverage-band small { grid-column: auto; grid-row: auto; }
  .xmg-cert-coverage-band span { margin-top: 9px; }
  .xmg-cert-current-layout { grid-template-columns: 1fr; gap: 34px; }
  .xmg-cert-current-image img { max-height: none; }
  .xmg-cert-current-facts > div { min-height: 0; grid-template-columns: 112px minmax(0,1fr); }
  .xmg-cert-buyer-value article { grid-template-columns: 38px minmax(0,1fr); gap: 12px; }
  .xmg-cert-buyer-value article > div { grid-template-columns: 1fr; gap: 18px; }
  .xmg-cert-buyer-value h3 { font-size: 22px; }
  .xmg-cert-classification-list article { min-height: 0; grid-template-columns: 38px minmax(0,1fr); gap: 12px; }
  .xmg-cert-classification-list h3 { font-size: 20px; }
  .xmg-cert-classification-list p { font-size: 14px; }
  .xmg-cert-knowledge-bridge { padding: 26px 22px; grid-template-columns: 1fr; gap: 24px; }
  .xmg-cert-knowledge-bridge h3 { max-width: 22ch; font-size: 28px; }
  .xmg-cert-matrix-wrap,
  .xmg-cert-program-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .xmg-cert-matrix,
  .xmg-cert-program-table,
  .xmg-cert-matrix tbody,
  .xmg-cert-program-table tbody { display: block; }
  .xmg-cert-matrix thead,
  .xmg-cert-program-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .xmg-cert-matrix tr,
  .xmg-cert-program-table tr { margin-bottom: 14px; padding: 7px 16px; border: 1px solid var(--xmg-line-strong); border-radius: var(--xmg-radius-md); display: block; background: #fff; box-shadow: 0 9px 22px rgba(6,45,75,.055); }
  .xmg-cert-matrix th,
  .xmg-cert-matrix td,
  .xmg-cert-program-table th,
  .xmg-cert-program-table td { width: 100% !important; padding: 13px 0; border: 0; border-bottom: 1px solid var(--xmg-line); display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 12px; color: var(--xmg-muted); background: transparent; font-size: 13px; }
  .xmg-cert-matrix tr > *:last-child,
  .xmg-cert-program-table tr > *:last-child { border-bottom: 0; }
  .xmg-cert-matrix th::before,
  .xmg-cert-matrix td::before,
  .xmg-cert-program-table th::before,
  .xmg-cert-program-table td::before { content: attr(data-label); color: var(--xmg-blue); font-size: 9px; font-weight: 850; letter-spacing: .55px; line-height: 1.5; text-transform: uppercase; }
  .xmg-cert-matrix tbody th,
  .xmg-cert-program-table tbody th { color: var(--xmg-navy-deep); font-weight: 800; }
  .xmg-cert-program-table tr { border-color: rgba(255,255,255,.19); background: rgba(255,255,255,.055); box-shadow: none; }
  .xmg-cert-program-table th,
  .xmg-cert-program-table td { border-color: rgba(255,255,255,.15); color: #c6d4dd; }
  .xmg-cert-program-table tbody th { color: #fff; }
  .xmg-cert-program-table th::before,
  .xmg-cert-program-table td::before { color: #86d5ea; }
  .xmg-cert-verify-layout { grid-template-columns: 1fr; gap: 34px; }
  .xmg-cert-document-panel { padding: 12px; }
  .xmg-cert-document-image img { max-height: none; }
  .xmg-cert-field-list li { grid-template-columns: 38px minmax(0,1fr); gap: 12px; }
  .xmg-cert-process .xmg-page-steps { grid-template-columns: 1fr; }
  .xmg-cert-guides { padding: 72px 0; }
  .xmg-cert-guides-inner { width: calc(100% - 32px); }
  .xmg-cert-guide-featured { grid-template-columns: 1fr; }
  .xmg-cert-guide-card a { grid-template-columns: 1fr; }
  .xmg-cert-guide-card img { min-height: 0; max-height: 240px; aspect-ratio: 16 / 9; }
  .xmg-cert-guide-card-body { padding: 23px 20px; }
  .xmg-cert-guide-latest a { grid-template-columns: 1fr auto; gap: 5px 16px; }
  .xmg-cert-guide-latest time { grid-column: 1 / -1; }
  .xmg-cert-cta-inner { align-items: stretch; }
}

@media (max-width: 390px) {
  .xmg-cert-hero-inner,
  .xmg-cert-proof,
  .xmg-cert-guides-inner { width: calc(100% - 28px); }
  .xmg-cert-hero-fields { grid-template-columns: 1fr; }
  .xmg-cert-hero-fields > div { min-height: 72px; }
  .xmg-cert-coverage-band article { grid-template-columns: 1fr; }
  .xmg-cert-coverage-logo { width: 96px; }
  .xmg-cert-current-facts > div { grid-template-columns: 1fr; gap: 8px; }
  .xmg-cert-matrix th,
  .xmg-cert-matrix td,
  .xmg-cert-program-table th,
  .xmg-cert-program-table td { grid-template-columns: 1fr; gap: 5px; }
  .xmg-cert-classification-list article { grid-template-columns: 1fr; }
  .xmg-cert-classification-list article > span { margin-bottom: -3px; }
}

/* Restore the approved commercial-coordination banner behind the shared RFQ. */
body.page-id-3761.elementor-page .xmg-global-inquiry {
  position: relative;
  background-color: #e8f3f7;
  background-image:
    linear-gradient(90deg, rgba(232,243,247,.18) 0%, rgba(232,243,247,.62) 26%, rgba(232,243,247,.92) 43%, rgba(232,243,247,.94) 72%, rgba(232,243,247,.58) 100%),
    url("https://xmgfood.com/wp-content/uploads/2026/08/rfq-business-coordination-tall-v3.webp");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat;
}

@media (max-width: 1023px) {
  body.page-id-3761.elementor-page .xmg-global-inquiry {
    padding-top: clamp(330px, 56vw, 500px);
    background-image:
      linear-gradient(180deg, rgba(232,243,247,.04) 0%, rgba(232,243,247,.16) 28%, rgba(232,243,247,.76) 46%, #e8f3f7 59%, #e8f3f7 100%),
      url("https://xmgfood.com/wp-content/uploads/2026/08/rfq-business-coordination-tall-v3.webp");
    background-position: center, center top;
    background-size: cover, 100% auto;
  }
}

@media (max-width: 767px) {
  body.page-id-3761.elementor-page .xmg-global-inquiry {
    padding-top: calc(61.82vw + 34px);
    background-image:
      linear-gradient(180deg, rgba(232,243,247,.03) 0%, rgba(232,243,247,.14) 18%, rgba(232,243,247,.50) 31%, #e8f3f7 43%, #e8f3f7 100%),
      url("https://xmgfood.com/wp-content/uploads/2026/08/rfq-business-coordination-tall-v3.webp");
    background-position: center, center top;
    background-size: cover, 100% auto;
  }
}

/* Certification aggregation page: public documents, topic routes and buyer paths. */
.xmg-cert-topic-section .xmg-page-section-head,
.xmg-cert-category-section .xmg-page-section-head,
.xmg-cert-document-type-section .xmg-page-section-head,
.xmg-cert-requirement-section .xmg-page-section-head { max-width: 900px; }
.xmg-cert-topic-list { border-top: 1px solid var(--xmg-line-strong); }
.xmg-cert-topic-row { min-width: 0; min-height: 116px; padding: 23px 0; border-bottom: 1px solid var(--xmg-line); display: grid !important; grid-template-columns: 96px minmax(190px,.72fr) minmax(260px,1.28fr) auto; align-items: center; gap: 26px; }
.xmg-cert-topic-label p { margin: 0; color: var(--xmg-blue); font-size: 10px; font-weight: 850; letter-spacing: 1.15px; }
.xmg-cert-topic-title,
.xmg-cert-topic-title .elementor-heading-title { margin: 0; color: var(--xmg-navy-deep); font-size: 21px; font-weight: 800; line-height: 1.3; }
.xmg-cert-topic-copy p { margin: 0; color: var(--xmg-muted); font-size: 14px; line-height: 1.62; }
.xmg-cert-topic-link .elementor-button,
.xmg-cert-category-card .xmg-page-card-link .elementor-button { min-height: 44px; padding-inline: 0; color: var(--xmg-navy) !important; background: transparent; font-size: 12px; font-weight: 850; }
.xmg-cert-topic-link .elementor-button:hover,
.xmg-cert-category-card .xmg-page-card-link .elementor-button:hover { color: var(--xmg-blue) !important; }

.xmg-cert-category-grid { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; align-items: stretch; }
.xmg-cert-category-card { --display: flex; --flex-direction: column; --flex-wrap: nowrap; min-width: 0; overflow: hidden; border: 1px solid var(--xmg-line); border-radius: var(--xmg-radius-lg); display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; background: #fff; box-shadow: var(--xmg-shadow-soft); }
.xmg-cert-category-image,
.xmg-cert-category-image .elementor-widget-container { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.xmg-cert-category-image img { width: 100% !important; height: 100% !important; display: block; object-fit: cover; }
.xmg-cert-category-body { --display: flex; --flex-direction: column; --flex-wrap: nowrap; width: 100%; min-width: 0; height: auto; padding: 28px; flex: 1 1 auto; display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; }
.xmg-cert-category-card .xmg-page-card-copy { flex: 1 1 auto; }
.xmg-cert-category-card .xmg-page-card-link { margin-top: 16px; }

.xmg-cert-document-types { border-top: 1px solid var(--xmg-line-strong); display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); }
.xmg-cert-document-type { min-width: 0; min-height: 178px; padding: 30px 32px 30px 0; border-bottom: 1px solid var(--xmg-line); display: grid !important; grid-template-columns: 46px minmax(0,1fr); align-content: start; gap: 8px 16px; }
.xmg-cert-document-type:nth-child(odd) { border-right: 1px solid var(--xmg-line); }
.xmg-cert-document-type:nth-child(even) { padding-left: 32px; }
.xmg-cert-document-number p { margin: 2px 0 0; color: var(--xmg-blue); font-size: 11px; font-weight: 850; letter-spacing: 1px; }
.xmg-cert-document-title,
.xmg-cert-document-title .elementor-heading-title { color: var(--xmg-navy-deep); font-size: 23px; font-weight: 800; line-height: 1.3; }
.xmg-cert-document-copy { grid-column: 2; }
.xmg-cert-document-copy p { margin: 0; color: var(--xmg-muted); font-size: 14px; line-height: 1.65; }
.xmg-cert-requirement-section .xmg-page-steps { grid-template-columns: repeat(4,minmax(0,1fr)); }

.xmg-cert-process-section .xmg-page-section-head { max-width: 920px; }
.xmg-cert-process-split { display: grid !important; grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr); align-items: stretch; gap: 54px; }
.xmg-cert-process-image,
.xmg-cert-process-image .elementor-widget-container { min-height: 460px; overflow: hidden; border-radius: var(--xmg-radius-feature); }
.xmg-cert-process-image img { width: 100% !important; height: 100% !important; min-height: 460px; display: block; object-fit: cover; }
.xmg-cert-process-copy { justify-content: center; }
.xmg-cert-process-title,
.xmg-cert-process-title .elementor-heading-title { color: #fff; font-size: clamp(28px,3vw,39px); font-weight: 800; line-height: 1.16; letter-spacing: -.025em; }
.xmg-cert-process-text { margin-top: 20px; }
.xmg-cert-process-text p,
.xmg-cert-process-text li { color: #c6d7e1; font-size: 14px; line-height: 1.7; }
.xmg-cert-process-text ul { margin: 19px 0 0; padding-left: 19px; }
.xmg-cert-process-copy .xmg-page-button-outline { margin-top: 26px; }
.xmg-cert-process-copy .xmg-page-button-outline .elementor-button { border-color: rgba(255,255,255,.5); color: #fff !important; background: transparent; }
.xmg-cert-process-copy .xmg-page-button-outline .elementor-button:hover { border-color: #fff; background: rgba(255,255,255,.09); }
.xmg-cert-articles-slot:empty,
.xmg-cert-articles-slot:not(:has(.xmg-certification-articles)) { display: none !important; }

body.page-id-3761.elementor-page .xmg-global-inquiry {
  position: relative;
  background-color: #e8f3f7;
  background-image:
    linear-gradient(90deg, rgba(232,243,247,.18) 0%, rgba(232,243,247,.62) 26%, rgba(232,243,247,.92) 43%, rgba(232,243,247,.94) 72%, rgba(232,243,247,.58) 100%),
    url("https://xmgfood.com/wp-content/uploads/2026/08/rfq-business-coordination-tall-v3.webp");
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat;
}
.xmg-cert-gallery-section { padding-block: 96px; background: #fff; }
.xmg-cert-gallery-section .xmg-page-section-head { max-width: 760px; }
.xmg-cert-gallery { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; align-items: stretch; }
.xmg-cert-gallery-card { min-width: 0; padding: 18px; border: 1px solid var(--xmg-line); border-radius: var(--xmg-radius-lg); display: flex !important; flex-direction: column; background: var(--xmg-surface-soft); box-shadow: var(--xmg-shadow-soft); transition: transform .22s ease-out,border-color .22s ease-out,box-shadow .22s ease-out; }
.xmg-cert-gallery-card:hover { border-color: var(--xmg-control-hover-border); transform: translateY(-4px); box-shadow: var(--xmg-shadow-raised); }
.xmg-cert-gallery-image,
.xmg-cert-gallery-image .elementor-widget-container,
.xmg-cert-gallery-image a { width: 100%; min-width: 0; aspect-ratio: 3 / 4.32; overflow: hidden; border-radius: var(--xmg-radius-md); display: grid; place-items: center; background: #fff; }
.xmg-cert-gallery-image a { border: 1px solid var(--xmg-line); }
.xmg-cert-gallery-image img { width: 100% !important; height: 100% !important; display: block; object-fit: contain !important; object-position: center !important; transition: transform .22s ease-out; }
.xmg-cert-gallery-image a:hover img { transform: scale(1.018); }
.xmg-cert-gallery-image a:focus-visible,
.xmg-cert-gallery-link .elementor-button:focus-visible,
.xmg-cert-lightbox-close:focus-visible { outline: 3px solid var(--xmg-focus); outline-offset: 3px; }
.xmg-cert-gallery-title { margin-top: 22px; }
.xmg-cert-gallery-title,
.xmg-cert-gallery-title .elementor-heading-title { color: var(--xmg-navy-deep); font-size: 20px; font-weight: 800; line-height: 1.32; }
.xmg-cert-gallery-link { width: 100%; margin-top: auto; padding-top: 20px; }
.xmg-cert-gallery-link .elementor-button { width: 100%; min-height: 48px; padding: 0 20px; border: 1px solid var(--xmg-line-strong); border-radius: var(--xmg-radius-pill); display: inline-flex; align-items: center; justify-content: center; color: var(--xmg-navy) !important; background: #fff; font-size: 13px; font-weight: 800; }
.xmg-cert-gallery-link .elementor-button:hover { border-color: var(--xmg-control-hover-border); color: var(--xmg-blue) !important; background: var(--xmg-control-hover-surface); }
.xmg-cert-cta-inner { align-items: center; }
.xmg-cert-cta .xmg-page-cta-body { max-width: 64ch; }
body.xmg-cert-lightbox-open { overflow: hidden; }
.xmg-cert-lightbox[hidden] { display: none !important; }
.xmg-cert-lightbox { position: fixed; inset: 0; z-index: 999999; padding: 72px 24px 24px; display: grid; place-items: center; background: rgba(3,17,32,.94); }
.xmg-cert-lightbox-stage { width: min(1280px,100%); height: calc(100vh - 104px); display: grid; grid-template-rows: minmax(0,1fr) auto; place-items: center; gap: 12px; }
.xmg-cert-lightbox-stage img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 148px); display: block; object-fit: contain; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.38); }
.xmg-cert-lightbox-stage p { margin: 0; color: #fff; font-size: 14px; font-weight: 750; text-align: center; }
.xmg-cert-lightbox-close { position: fixed; top: 16px; right: 18px; min-width: 72px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255,255,255,.5); border-radius: var(--xmg-radius-pill); color: #fff; background: rgba(11,49,88,.92); font: 800 13px/1 Inter,"Helvetica Neue",Arial,sans-serif; cursor: pointer; }
.xmg-cert-lightbox-close:hover { border-color: #fff; background: var(--xmg-blue); }

@media (max-width: 1023px) {
  body.page-id-3761.elementor-page .xmg-global-inquiry {
    padding-top: clamp(330px, 56vw, 500px);
    background-image:
      linear-gradient(180deg, rgba(232,243,247,.04) 0%, rgba(232,243,247,.16) 28%, rgba(232,243,247,.76) 46%, #e8f3f7 59%, #e8f3f7 100%),
      url("https://xmgfood.com/wp-content/uploads/2026/08/rfq-business-coordination-tall-v3.webp");
    background-position: center, center top;
    background-size: cover, 100% auto;
  }
  .xmg-cert-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .xmg-cert-topic-row { grid-template-columns: 72px minmax(180px,.8fr) minmax(230px,1.2fr); gap: 20px; }
  .xmg-cert-topic-link { grid-column: 2 / -1; }
  .xmg-cert-topic-link .elementor-button { justify-content: flex-start; }
  .xmg-cert-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .xmg-cert-requirement-section .xmg-page-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .xmg-cert-process-split { grid-template-columns: minmax(0,1fr) minmax(320px,.82fr); gap: 36px; }
}

@media (max-width: 767px) {
  body.page-id-3761.elementor-page .xmg-global-inquiry {
    padding-top: calc(61.82vw + 34px);
    background-image:
      linear-gradient(180deg, rgba(232,243,247,.03) 0%, rgba(232,243,247,.14) 18%, rgba(232,243,247,.50) 31%, #e8f3f7 43%, #e8f3f7 100%),
      url("https://xmgfood.com/wp-content/uploads/2026/08/rfq-business-coordination-tall-v3.webp");
    background-position: center, center top;
    background-size: cover, 100% auto;
  }
  .xmg-cert-gallery-section { padding-block: 64px; }
  .xmg-cert-gallery { grid-template-columns: 1fr; gap: 18px; }
  .xmg-cert-gallery-card { padding: 14px; }
  .xmg-cert-gallery-title { margin-top: 18px; }
  .xmg-cert-lightbox { padding: 66px 12px 18px; }
  .xmg-cert-lightbox-stage { height: calc(100vh - 84px); }
  .xmg-cert-lightbox-stage img { max-height: calc(100vh - 130px); }
  .xmg-cert-lightbox-close { top: 12px; right: 12px; }
  .xmg-cert-topic-row { min-height: 0; padding: 23px 0; grid-template-columns: 1fr; gap: 8px; }
  .xmg-cert-topic-link { grid-column: auto; margin-top: 4px; }
  .xmg-cert-category-grid { grid-template-columns: 1fr; gap: 18px; }
  .xmg-cert-category-body { padding: 24px 21px; }
  .xmg-cert-document-types { grid-template-columns: 1fr; }
  .xmg-cert-document-type,
  .xmg-cert-document-type:nth-child(even) { min-height: 0; padding: 24px 0; border-right: 0; }
  .xmg-cert-requirement-section .xmg-page-steps { grid-template-columns: 1fr; }
  .xmg-cert-process-split { grid-template-columns: 1fr; gap: 30px; }
  .xmg-cert-process-image,
  .xmg-cert-process-image .elementor-widget-container,
  .xmg-cert-process-image img { min-height: 0; }
  .xmg-cert-process-image img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .xmg-cert-gallery-card,
  .xmg-cert-gallery-image img { transition: none; }
  .xmg-cert-gallery-card:hover { transform: none; }
}
/* XMG CERTIFICATION HUB 2026-08-26 END */

/* XMG VISUAL BASELINE /quality-supply/food-safety-certificates/ START */
.xmg-page-hero.xmg-vb-banner{position:relative;isolation:isolate;min-height:650px;padding:52px 0 32px;overflow:hidden;background-color:#edf8fb!important;background-image:linear-gradient(90deg,rgba(248,252,254,.99) 0%,rgba(247,252,254,.96) 28%,rgba(240,249,252,.72) 44%,rgba(237,248,251,.08) 65%,rgba(237,248,251,0) 100%),url("https://xmgfood.com/wp-content/uploads/2026/08/xmg-nonproduct-hero-quality-supply-food-safety-certificates-20260812.webp")!important;background-position:center,65% center!important;background-size:cover,cover!important;background-repeat:no-repeat!important}
.xmg-page-hero.xmg-vb-banner .xmg-page-hero-inner{position:relative;z-index:1;min-height:540px;grid-template-columns:minmax(0,.76fr) minmax(440px,1.24fr)!important}
.xmg-page-hero.xmg-vb-banner .xmg-page-hero-copy{position:relative;z-index:2;max-width:650px}
.xmg-page-hero.xmg-vb-banner .xmg-page-hero-media{visibility:hidden!important;opacity:0!important;pointer-events:none!important;border:0!important;box-shadow:none!important;background:transparent!important}
.xmg-page-hero.xmg-vb-banner .xmg-page-proof{position:relative;z-index:2;background:rgba(248,252,254,.88);backdrop-filter:blur(3px)}
.xmg-page-hero.xmg-vb-banner .xmg-page-proof-item{position:relative;z-index:2}
@media(max-width:1023px){.xmg-page-hero.xmg-vb-banner{min-height:0;background-image:linear-gradient(180deg,rgba(248,252,254,.96) 0%,rgba(248,252,254,.91) 43%,rgba(237,248,251,.42) 72%,rgba(237,248,251,.12) 100%),url("https://xmgfood.com/wp-content/uploads/2026/08/xmg-nonproduct-hero-quality-supply-food-safety-certificates-20260812.webp")!important;background-position:center,65% center!important}.xmg-page-hero.xmg-vb-banner .xmg-page-hero-inner{min-height:620px;grid-template-columns:1fr!important;align-content:start}.xmg-page-hero.xmg-vb-banner .xmg-page-hero-copy{max-width:760px}.xmg-page-hero.xmg-vb-banner .xmg-page-hero-media{min-height:240px;height:240px!important}}
@media(max-width:767px){.xmg-page-hero.xmg-vb-banner{padding:38px 0 26px;background-image:linear-gradient(180deg,rgba(248,252,254,.98) 0%,rgba(248,252,254,.95) 54%,rgba(237,248,251,.48) 77%,rgba(237,248,251,.16) 100%),url("https://xmgfood.com/wp-content/uploads/2026/08/xmg-nonproduct-hero-quality-supply-food-safety-certificates-20260812.webp")!important;background-position:center,70% center!important}.xmg-page-hero.xmg-vb-banner .xmg-page-hero-inner{min-height:590px;gap:18px}.xmg-page-hero.xmg-vb-banner .xmg-page-hero-media{min-height:200px;height:200px!important}.xmg-page-hero.xmg-vb-banner .xmg-page-proof{background:rgba(248,252,254,.92)}}
/* XMG VISUAL BASELINE /quality-supply/food-safety-certificates/ END *//* End custom CSS */