.quality-page { background: var(--quality-bg); color: var(--navy); font-family: Inter, Arial, sans-serif; }
.quality-wrap { width: min(90%, 1240px); margin-inline: auto; }
.quality-page .eyebrow { color: #075c9c; margin-bottom: 12px; }
@media (max-width: 760px) { .quality-page .page-hero .eyebrow { color: inherit; } }
.quality-content svg { width: 32px; fill: none; stroke: var(--blue); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.quality-content { display: grid; gap: clamp(26px, 4vw, 58px); padding-block: clamp(25px, 4vw, 52px); }
.quality-content h2 { font-size: clamp(28px, 3.2vw, 47px); }
.quality-content p { line-height: 1.5; margin: .55em 0 0; }
.quality-panel { border: 1px solid var(--line); border-radius: 14px; padding: clamp(17px, 3vw, 40px); background: #fff; }
.minerals { background: #fff; }
.mineral-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 20px 0 14px; }
.mineral-grid div { padding: clamp(10px, 1.5vw, 22px); border-radius: 8px; border: 1px solid var(--line); background: #f1f8fc; min-width: 0; overflow-wrap: anywhere; }
.mineral-grid dt { font-size: .87rem; font-weight: 600; }
.mineral-grid dt span { display: block; margin-bottom: 4px; color: #065b9c; font-size: clamp(20px, 2.6vw, 37px); font-weight: 800; }
.mineral-grid dd { margin: 6px 0 0; font-weight: 800; font-size: clamp(20px, 2.5vw, 34px); }
.mineral-grid small { font-size: .51em; }
.mineral-note { color: #304c72; font-size: .9rem; }
.mineral-note a { color: #045e9b; text-underline-offset: 3px; }
.quality-process ol { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; margin: 22px 0 0; text-align: center; }
.quality-process li { position: relative; padding: 0 12px; }
.quality-process li:not(:last-child)::after { content: ""; position: absolute; top: 27px; left: calc(50% + 35px); width: calc(100% - 70px); height: 1px; background: #9bcdea; }
.process-icon { display: grid; place-items: center; width: 55px; height: 55px; margin: 0 auto 12px; background: var(--ice); border-radius: 50%; }
.documentation { scroll-margin-top: 90px; }
.document-carousel { position: relative; padding-inline: 38px; margin-top: 16px; }
.document-track { --visible: 1; position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--visible) - 1) * 12px) / var(--visible)); gap: 12px; list-style: none; margin: 0; padding: 6px 0 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; }
.document-card { min-width: 0; scroll-snap-align: start; border: 1px solid #c9e2f5; border-radius: 14px; background: #fff; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.document-card:hover { box-shadow: 0 7px 12px #082b6320; }
.document-preview { aspect-ratio: 1.12; overflow: hidden; padding: 10px; }
.document-preview img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.document-card:hover img { transform: scale(1.045); }
.carousel-arrow { position: absolute; top: 44%; z-index: 1; width: 33px; height: 36px; border: 1px solid #c4def0; border-radius: 50%; color: var(--navy); background: white; font-size: 24px; line-height: 1; }
.carousel-arrow.previous { left: 0; }
.carousel-arrow.next { right: 0; }
.carousel-arrow:disabled { opacity: .45; cursor: default; }
.carousel-dots { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 5px; }
.carousel-dots button { width: 25px; height: 27px; border: 0; background: transparent; padding: 0; display: grid; place-items: center; }
.carousel-dots button::before { content: ""; width: 8px; height: 8px; border: 1px solid #3975a0; border-radius: 50%; }
.carousel-dots button[aria-current]::before { background: var(--blue); border-color: var(--blue); }
.document-viewer { --viewer-width: min(90vw, 760px); position: fixed; inset: 0; margin: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; border-radius: 0; padding: 0; color: var(--navy); background: #e3edf6; }
.document-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer-toolbar, .viewer-controls { padding: 10px min(4vw, 35px); background: white; }
.viewer-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.viewer-toolbar h2 { font-size: clamp(20px, 3vw, 30px); padding: 0; }
.viewer-toolbar p { font-size: .85rem; }
.document-viewer button { position: static; width: 43px; height: 43px; background: var(--ice); flex-shrink: 0; font-size: 22px; }
.document-viewer button:disabled { opacity: .4; cursor: default; }
.viewer-viewport { overflow: auto; overscroll-behavior: contain; padding: 12px; }
.document-viewer .viewer-viewport img { max-width: none; max-height: none; height: auto; }
.viewer-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }
body:has(.document-viewer[open]) { overflow: hidden; }
@media (min-width: 650px) { .document-track { --visible: 2; } }
@media (min-width: 1100px) { .document-track { --visible: 4; } }
@media (max-width: 649px) {
  .quality-wrap { width: 92%; }
  .mineral-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quality-process ol { grid-template-columns: 1fr; gap: 17px; text-align: left; }
  .quality-process li { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; padding: 0; }
  .quality-process li:not(:last-child)::after { left: 24px; width: 1px; height: calc(100% - 30px); top: 48px; }
  .process-icon { width: 48px; height: 48px; grid-row: span 2; }
  .document-carousel { padding-inline: 31px; }
  .carousel-arrow { width: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .document-track { scroll-behavior: auto; }
  .document-card, .document-preview img { transition: none; }
}
.document-preview { width: 100%; display: block; border: 0; cursor: zoom-in; }
.document-preview:focus-visible { outline-offset: -4px; }
