/* Type D Trust / Risk Reduction page. */
.quality-page { overflow: clip; }
.ql-hero { min-height: 690px; padding: calc(var(--header-height) + 48px) 0 58px; background: linear-gradient(90deg,var(--white) 0%,var(--white) 55%,var(--surface) 55%,var(--surface) 100%); overflow: hidden; }
.ql-hero .breadcrumbs { padding-top: 0; padding-bottom: 38px; }
.ql-hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 68px; }
.ql-hero-copy h1 { max-width: 760px; margin-bottom: 25px; color: var(--navy); font-size: clamp(48px,5.25vw,73px); font-weight: 640; letter-spacing: -.053em; }
.ql-answer { max-width: 690px; margin-bottom: 29px; font-size: 18px; line-height: 1.72; }
.ql-answer strong { color: var(--text); font-weight: 560; }
.ql-hero-visual { position: relative; margin: 0; }
.ql-hero-image { width: 100%; height: 455px; object-fit: cover; border-radius: 4px 4px 38px 4px; box-shadow: 0 30px 68px rgba(11,35,65,.19); }
.ql-hero-visual figcaption,.ql-material figcaption,.ql-process figcaption,.ql-certification figcaption { padding: 8px 2px 0; color: var(--muted); font-size: 10px; }
.ql-dossier { position: absolute; right: -18px; bottom: 30px; width: 295px; padding: 21px; color: var(--white); background: rgba(11,35,65,.97); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 20px 48px rgba(11,35,65,.27); }
.ql-dossier > span { display: block; margin-bottom: 13px; color: #8bc2ef; font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.ql-dossier div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 10px; }
.ql-dossier strong { font-weight: 700; }
.ql-dossier em { color: #d6e1eb; font-style: normal; }

.ql-system { background: var(--surface); }
.ql-system-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 64px; }
.ql-system-note { padding: 18px 20px; color: #526071; background: var(--white); border-left: 3px solid var(--blue); font-size: 13px; }
.ql-system-note strong { color: var(--navy); font-weight: 620; }
.ql-system-track { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ql-system-track article { min-height: 235px; padding: 28px; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ql-system-track span { display: block; margin-bottom: 36px; color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.ql-system-track h3 { margin-bottom: 10px; color: var(--navy); font-size: 20px; }
.ql-system-track p { margin: 0; font-size: 12px; }

.ql-material { background: var(--white); }
.ql-material-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.ql-material-image { width: 100%; height: 485px; object-fit: cover; border-radius: 4px 34px 4px 4px; box-shadow: var(--shadow-md); }
.ql-control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.ql-control-grid article { padding: 19px; background: var(--white); border: 1px solid var(--line); border-radius: 11px; }
.ql-control-grid span { display: block; margin-bottom: 17px; color: var(--blue); font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.ql-control-grid h3 { margin-bottom: 7px; color: var(--navy); font-size: 17px; }
.ql-control-grid p { margin: 0; font-size: 11px; }

.ql-process { color: var(--white); background: var(--navy); }
.ql-process .section-kicker { color: #8bc2ef; }
.ql-process .section-title { color: var(--white); }
.ql-process .section-intro { color: var(--muted-light); }
.ql-process-layout { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 58px; }
.ql-monitor-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.ql-monitor-grid article { min-height: 208px; padding: 23px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.ql-monitor-grid span { color: #8bc2ef; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.ql-monitor-grid h3 { margin: 29px 0 8px; color: var(--white); font-size: 18px; }
.ql-monitor-grid p { margin: 0; color: #a9b8c7; font-size: 12px; }
.ql-process-image { width: 100%; height: 510px; object-fit: cover; border-radius: 4px 32px 4px 4px; }
.ql-process figcaption { color: #9eb0c2; }

.ql-inspection { background: var(--white); }
.ql-gate-header { display: grid; grid-template-columns: 1fr .55fr; align-items: end; gap: 60px; margin-bottom: 58px; }
.ql-gate-header .section-title { margin-bottom: 0; }
.ql-gate-header > p { margin: 0; font-size: 14px; }
.ql-gates { position: relative; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); }
.ql-gates::before { position: absolute; top: 34px; right: 7%; left: 7%; height: 2px; background: var(--surface-2); content: ""; }
.ql-gates article { position: relative; z-index: 1; padding: 0 15px; text-align: center; }
.ql-gate-node { display: grid; width: 68px; height: 68px; margin: 0 auto 26px; place-items: center; color: var(--blue); background: var(--white); border: 2px solid #b7c7d6; border-radius: 50%; box-shadow: 0 0 0 8px var(--white); font-size: 10px; font-weight: 850; }
.ql-gates h3 { min-height: 42px; margin-bottom: 10px; color: var(--navy); font-size: 17px; }
.ql-gates p { min-height: 82px; margin-bottom: 13px; font-size: 11px; }
.ql-gates strong { color: var(--blue); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

.ql-testing { background: var(--surface); }
.ql-table-layout { display: grid; grid-template-columns: .72fr 1.28fr; align-items: start; gap: 48px; }
.ql-table-scroll { max-width: 100%; overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.ql-table-scroll table { width: 100%; min-width: 760px; border-collapse: collapse; }
.ql-table-scroll caption { padding: 17px 19px; color: var(--navy); border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; font-weight: 760; }
.ql-table-scroll th,.ql-table-scroll td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 11px; }
.ql-table-scroll thead th { color: var(--white); background: var(--navy); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.ql-table-scroll tbody th { color: var(--navy); background: #fafbfd; }
.ql-table-scroll tbody tr:last-child th,.ql-table-scroll tbody tr:last-child td { border-bottom: 0; }
.ql-table-scroll td { color: #526071; }

.ql-certification { background: var(--white); }
.ql-cert-layout { display: grid; grid-template-columns: .82fr 1.18fr; align-items: start; gap: 48px; }
.ql-cert-figure { margin: 0 0 24px; }
.ql-cert-image { width: 100%; height: 310px; object-fit: cover; object-position: center; border-radius: 4px 26px 4px 4px; }
.ql-record-principles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ql-record-principles div { padding: 15px; background: var(--surface); border: 1px solid var(--line); }
.ql-record-principles strong,.ql-record-principles span { display: block; }
.ql-record-principles strong { margin-bottom: 4px; color: var(--navy); font-size: 12px; }
.ql-record-principles span { color: var(--muted); font-size: 10px; }
.ql-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.ql-status-verified { color: #126142; background: #e3f3ec; }
.ql-status-pending { color: #8a5b0c; background: #fff2d8; }

.ql-technical-review { background: var(--surface); }
.ql-technical-review .technical-review { padding-top: 0; }
.quality-page .global-faq { background: var(--white); }
.quality-page .global-rfq { background: var(--navy-2); }
.quality-page .related-links { background: var(--surface); }

@media (max-width: 1080px) {
	.ql-hero { min-height: auto; background: var(--white); }
	.ql-hero-grid,.ql-system-layout,.ql-material-layout,.ql-process-layout,.ql-table-layout,.ql-cert-layout { grid-template-columns: 1fr; }
	.ql-hero-visual,.ql-material figure,.ql-process figure,.ql-cert-figure { max-width: 760px; }
	.ql-gate-header { grid-template-columns: 1fr; gap: 20px; }
	.ql-gates { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 44px 0; }
	.ql-gates::before { display: none; }
}

@media (max-width: 780px) {
	.ql-hero { padding-top: calc(var(--header-height) + 28px); }
	.ql-hero .breadcrumbs { padding-bottom: 24px; }
	.ql-hero-copy h1 { font-size: 42px; }
	.ql-answer { font-size: 16px; }
	.ql-hero-image { height: 380px; }
	.ql-dossier { position: static; width: 100%; margin-top: 10px; }
	.ql-system-track,.ql-control-grid,.ql-monitor-grid,.ql-record-principles { grid-template-columns: 1fr; }
	.ql-system-track article,.ql-monitor-grid article { min-height: 0; }
	.ql-material-image,.ql-process-image { height: 390px; }
	.ql-gates { grid-template-columns: 1fr; gap: 20px; }
	.ql-gates article { display: grid; grid-template-columns: 68px 1fr; gap: 18px; padding: 0; text-align: left; }
	.ql-gate-node { grid-row: 1/span 3; margin: 0; }
	.ql-gates h3,.ql-gates p { min-height: 0; margin: 0; }
	.ql-gates strong { grid-column: 2; }
}

@media (max-width: 480px) {
	.ql-hero-copy h1 { font-size: 36px; }
	.ql-hero-image { height: 320px; }
	.ql-hero .hero-actions { display: grid; }
	.ql-hero .hero-actions .button { width: 100%; }
	.ql-material-image,.ql-process-image { height: 320px; }
	.ql-cert-image { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
	.quality-page * { scroll-behavior: auto; }
}
