:root {
    --qs-navy: #101d33;
    --qs-navy-2: #1b3154;
    --qs-gold: #b68d2e;
    --qs-gold-soft: #f4ead0;
    --qs-ink: #172033;
    --qs-muted: #657188;
    --qs-border: #e2e7ef;
    --qs-surface: #ffffff;
}

body {
    background: #f5f7fa;
}

.qs-page {
    width: min(1220px, calc(100% - 36px));
    margin: 0 auto;
    padding: 44px 0 90px;
    color: var(--qs-ink);
}

.qs-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: center;
    min-height: 340px;
    padding: 56px 64px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 16% 18%, rgba(212, 175, 55, .22), transparent 30%),
        linear-gradient(135deg, #0d182b 0%, #1c3459 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgba(15, 29, 51, .18);
}

.qs-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image: linear-gradient(30deg, transparent 48%, rgba(255,255,255,.16) 49%, transparent 51%);
    background-size: 42px 42px;
}

.qs-hero__content,
.qs-hero__mark {
    position: relative;
    z-index: 1;
}

.qs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 15px;
    border: 1px solid rgba(232, 198, 111, .38);
    border-radius: 999px;
    background: rgba(182, 141, 46, .16);
    color: #f3d986;
    font-size: 14px;
    font-weight: 800;
}

.qs-hero h1 {
    max-width: 760px;
    margin: 21px 0 14px;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.35;
    color: #fff;
}

.qs-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255,255,255,.82);
    font-size: 17px;
    line-height: 2;
}

.qs-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.qs-hero__facts span {
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 11px;
    background: rgba(255,255,255,.07);
    font-size: 13px;
}

.qs-hero__facts strong {
    margin-left: 5px;
    color: #f1cf70;
    font-size: 16px;
}

.qs-hero__mark {
    display: grid;
    place-items: center;
    width: 180px;
    height: 180px;
    margin-inline-start: auto;
    border: 1px solid rgba(226, 191, 97, .4);
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    box-shadow: inset 0 0 0 18px rgba(255,255,255,.025);
    color: #e6c464;
    font-size: 78px;
}

.qs-notice {
    display: flex;
    gap: 17px;
    align-items: flex-start;
    margin: 24px 0;
    padding: 21px 24px;
    border: 1px solid #ead7a3;
    border-right: 5px solid var(--qs-gold);
    border-radius: 16px;
    background: #fffaf0;
}

.qs-notice > i {
    margin-top: 3px;
    color: #9a7117;
    font-size: 24px;
}

.qs-notice strong {
    display: block;
    margin-bottom: 5px;
    color: #76530c;
}

.qs-notice p {
    margin: 0;
    color: #6d5a31;
    line-height: 1.85;
}

.qs-index {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0 38px;
}

.qs-index a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    padding: 12px 16px;
    border: 1px solid var(--qs-border);
    border-radius: 14px;
    background: var(--qs-surface);
    color: var(--qs-ink);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(20, 36, 62, .045);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.qs-index a:hover,
.qs-index a:focus-visible {
    transform: translateY(-2px);
    border-color: #c9a752;
    box-shadow: 0 10px 24px rgba(20, 36, 62, .09);
}

.qs-index a span {
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--qs-gold-soft);
    color: #805e13;
}

.qs-standards {
    display: grid;
    gap: 28px;
}

.qs-standard {
    scroll-margin-top: 115px;
    overflow: hidden;
    border: 1px solid var(--qs-border);
    border-radius: 22px;
    background: var(--qs-surface);
    box-shadow: 0 13px 38px rgba(15, 29, 51, .07);
}

.qs-standard__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 25px 28px;
    border-bottom: 1px solid rgba(226, 231, 239, .78);
    background: linear-gradient(135deg, #fbfcfe, #f4f7fb);
}

.qs-standard__identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.qs-standard__number {
    color: #b7c0ce;
    font-size: 24px;
    font-weight: 900;
}

.qs-standard__icon {
    display: grid;
    flex: 0 0 48px;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--qs-navy);
    color: #e8c867;
    font-size: 20px;
    box-shadow: 0 8px 18px rgba(16, 29, 51, .18);
}

.qs-standard__kicker {
    display: block;
    margin-bottom: 3px;
    color: #8b6515;
    font-size: 11px;
    font-weight: 800;
}

.qs-standard h2 {
    margin: 0;
    color: var(--qs-navy);
    font-size: clamp(19px, 2.5vw, 25px);
}

.qs-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.qs-status--draft {
    background: #fff4d6;
    color: #805c0b;
}

.qs-status--approved {
    background: #e8f7ef;
    color: #087443;
}

.qs-standard__summary {
    margin: 0;
    padding: 22px 28px;
    color: var(--qs-muted);
    font-size: 15px;
    line-height: 1.9;
}

.qs-table-wrap {
    margin: 0 28px;
    overflow-x: auto;
    border: 1px solid var(--qs-border);
    border-radius: 14px;
}

.qs-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: #fff;
}

.qs-table th,
.qs-table td {
    padding: 15px 17px;
    border-bottom: 1px solid #ebeff4;
    text-align: right;
    vertical-align: top;
    line-height: 1.78;
}

.qs-table thead th {
    background: var(--qs-navy);
    color: #fff;
    font-size: 13px;
}

.qs-table thead th:first-child,
.qs-table tbody th {
    width: 56px;
    text-align: center;
}

.qs-table tbody th {
    color: #936c19;
    font-weight: 900;
}

.qs-table tbody td:nth-child(2) {
    width: 49%;
    color: #263248;
    font-weight: 650;
}

.qs-table tbody td:nth-child(3) {
    color: var(--qs-muted);
    font-size: 13px;
}

.qs-table tbody tr:last-child > * {
    border-bottom: 0;
}

.qs-acceptance {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin: 20px 28px;
    padding: 18px 20px;
    border-radius: 14px;
    background: #f5f7fb;
}

.qs-acceptance span {
    color: #805e13;
    font-weight: 900;
}

.qs-acceptance span i {
    margin-left: 7px;
}

.qs-acceptance p {
    margin: 0;
    color: #38455b;
    line-height: 1.85;
}

.qs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding: 15px 28px;
    border-top: 1px solid var(--qs-border);
    background: #fbfcfd;
    color: #6c778a;
    font-size: 12px;
}

.qs-meta i {
    margin-left: 5px;
    color: #a47b24;
}

.qs-governance {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin-top: 30px;
    padding: 27px 30px;
    border-radius: 20px;
    background: var(--qs-navy);
    color: #fff;
}

.qs-governance__icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: rgba(232, 200, 103, .14);
    color: #e8c867;
    font-size: 25px;
}

.qs-governance h2 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 20px;
}

.qs-governance p {
    margin: 0;
    color: rgba(255,255,255,.78);
    line-height: 1.9;
}

.qs-empty {
    margin: 30px 0;
    padding: 60px 24px;
    border: 1px dashed #cbd3df;
    border-radius: 20px;
    background: #fff;
    text-align: center;
}

.qs-empty i {
    color: var(--qs-gold);
    font-size: 38px;
}

.qs-empty h2 {
    margin: 15px 0 7px;
}

.qs-empty p {
    margin: 0;
    color: var(--qs-muted);
}

@media (max-width: 900px) {
    .qs-hero {
        grid-template-columns: 1fr;
        padding: 44px 38px;
    }

    .qs-hero__mark {
        display: none;
    }

    .qs-index {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .qs-page {
        width: min(100% - 24px, 1220px);
        padding-top: 22px;
    }

    .qs-hero {
        min-height: 0;
        padding: 34px 23px;
        border-radius: 21px;
    }

    .qs-hero p {
        font-size: 15px;
    }

    .qs-hero__facts {
        display: grid;
        grid-template-columns: 1fr;
    }

    .qs-notice {
        padding: 18px;
    }

    .qs-index {
        grid-template-columns: 1fr;
    }

    .qs-standard__header {
        align-items: flex-start;
        padding: 20px;
    }

    .qs-standard__number {
        display: none;
    }

    .qs-standard__identity {
        align-items: flex-start;
    }

    .qs-status {
        padding: 6px 8px;
    }

    .qs-standard__summary {
        padding: 18px 20px;
    }

    .qs-table-wrap {
        margin: 0 20px;
    }

    .qs-acceptance {
        grid-template-columns: 1fr;
        margin: 18px 20px;
    }

    .qs-meta {
        display: grid;
        padding: 14px 20px;
    }

    .qs-governance {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

@media print {
    body {
        background: #fff;
    }

    .utility-bar,
    .news-ticker-wrapper,
    #mainHeader,
    .fab-container,
    footer,
    .qs-index {
        display: none !important;
    }

    .qs-page {
        width: 100%;
        padding: 0;
    }

    .qs-hero {
        min-height: 0;
        padding: 28px;
        box-shadow: none;
    }

    .qs-standard {
        break-inside: avoid;
        box-shadow: none;
    }
}
