/* ===== Quality Policy — dark theme, matches the site ===== */
.qp-section {
    padding: 132px 0 100px;
    position: relative;
    z-index: 2;
}
.qp-topbar {
    max-width: 900px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.qp-topbar .qp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--faint);
}
.qp-topbar .qp-kicker i { color: var(--primary); }
.qp-print {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    border: 1px solid var(--line-2);
    background: var(--glass);
    padding: 10px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: .2s var(--ease);
    backdrop-filter: blur(6px);
}
.qp-print:hover { border-color: rgba(253,126,20,.5); color: #fff; transform: translateY(-2px); }
.qp-print i { color: var(--primary); }

/* ---- the sheet (dark panel) ---- */
.qp-sheet {
    max-width: 900px;
    margin: 0 auto;
    background:
        radial-gradient(120% 60% at 50% -10%, rgba(253,126,20,0.06), transparent 60%),
        var(--surface);
    color: var(--text);
    padding: 56px 60px 66px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 80px rgba(0,0,0,.5);
    font-size: 15px;
    line-height: 1.7;
}

/* ---- document control header table ---- */
.qp-doc-head {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 42px;
    font-size: 12.5px;
    line-height: 1.4;
}
.qp-doc-head td {
    border: 1px solid var(--line-2);
    padding: 7px 12px;
    vertical-align: middle;
    color: var(--text);
}
.qp-doc-head .qp-logo {
    width: 32%;
    text-align: center;
    padding: 18px 14px;
    background: rgba(255,255,255,0.015);
}
.qp-logo-img {
    height: 52px;
    width: auto;
    max-width: 100%;
    display: inline-block;
    /* render the black-text logo in white to sit on the dark sheet */
    filter: brightness(0) invert(1);
    opacity: .95;
}
.qp-doc-head .qp-co {
    text-align: center;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: .2px;
    background: rgba(255,255,255,0.03);
}
.qp-doc-head .qp-k { width: 26%; font-weight: 400; color: var(--muted); }
.qp-doc-head .qp-v { font-weight: 500; }

/* ---- body ---- */
.qp-title {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px;
    letter-spacing: -.01em;
}
.qp-title-rule {
    width: 54px; height: 3px;
    background: var(--primary);
    border-radius: 3px;
    margin: 0 auto 30px;
}
.qp-body p { margin: 0 0 18px; color: rgba(255,255,255,0.82); }
.qp-body .qp-lead strong { color: var(--text); font-weight: 700; }
.qp-commit { margin: 0 0 14px; color: var(--text); font-weight: 500; }
.qp-list {
    margin: 0 0 22px;
    padding-left: 6px;
    list-style: none;
}
.qp-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 13px;
    color: rgba(255,255,255,0.82);
}
.qp-list li::before {
    content: "\F26A";                 /* bootstrap-icons check */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0; top: 1px;
    color: var(--primary);
    font-size: 14px;
}

/* ---- signature ---- */
.qp-sign {
    margin-top: 64px;
    display: flex;
    justify-content: flex-end;
}
.qp-sign-inner { text-align: center; min-width: 230px; }
.qp-sign-name {
    font-family: 'Segoe Script', 'Brush Script MT', 'Snell Roundhand', cursive;
    font-size: 32px;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}
.qp-sign-line { border-top: 1px solid var(--line-2); margin: 0 0 8px; }
.qp-sign-role { font-style: italic; font-weight: 700; font-size: 14px; color: var(--text); }

/* ---- responsive ---- */
@media (max-width: 720px) {
    .qp-section { padding-top: 110px; }
    .qp-sheet { padding: 32px 20px 44px; font-size: 14px; border-radius: var(--radius-lg); }
    .qp-doc-head { font-size: 11px; }
    .qp-logo-img { height: 40px; }
    .qp-title { font-size: 22px; }
    .qp-sign { justify-content: center; }
}

/* ===== Print: clean black-on-white so the saved PDF / printout is formal & ink-friendly ===== */
@media print {
    .site-header, .site-footer, .to-top, #baksChat, .bg-canvas,
    .dots-nav, .scroll-progress, .cursor-dot, .cursor-ring, .preloader,
    .qp-topbar, .footer-glow { display: none !important; }
    body { background: #fff !important; }
    .qp-section { padding: 0 !important; }
    .qp-sheet {
        max-width: 100%;
        margin: 0;
        background: #fff !important;
        color: #111 !important;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0 6mm;
    }
    .qp-doc-head td { border-color: #333 !important; color: #111 !important; background: none !important; }
    .qp-logo-img { filter: none !important; opacity: 1; }   /* original colored logo on paper */
    .qp-title, .qp-commit, .qp-sign-role, .qp-body .qp-lead strong { color: #111 !important; }
    .qp-body p, .qp-list li { color: #1a1a1a !important; }
    .qp-sign-name { color: #16233e !important; }
    .qp-sign-line { border-color: #111 !important; }
    @page { margin: 14mm; }
}
