.sgq-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    gap: 36px;
    align-items: start
}

.sgq-hero h1 {
    max-width: 780px
}

.sgq-lead-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px
}

.sgq-download {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    scroll-margin-top: 100px
}

.sgq-download h2 {
    font-size: 21px;
    margin: 14px 0;
    line-height: 1.35
}

.sgq-download p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7
}

.sgq-download .button {
    display: flex;
    margin-block: 18px 12px
}

.sgq-download>a:last-child {
    font-size: 13px
}

.sgq-layout {
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 32px;
    padding-block: 32px 64px
}

.sgq-toc {
    position: sticky;
    top: 100px;
    align-self: start;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    padding: 18px
}

.sgq-toc strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin-bottom: 10px
}

.sgq-toc a {
    display: block;
    padding: 7px 0;
    font-size: 13px;
    line-height: 1.5
}

.sgq-main {
    min-width: 0
}

.sgq-section {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    margin-bottom: 24px;
    scroll-margin-top: 102px
}

.sgq-section>h2 {
    font-size: 27px;
    line-height: 1.3;
    margin-bottom: 18px
}

.sgq-section h3 {
    font-size: 20px;
    line-height: 1.4
}

.sgq-section p,
.sgq-section li {
    font-size: 15px;
    line-height: 1.8
}

.sgq-section li+li {
    margin-top: 8px
}

.sgq-source {
    color: var(--muted);
    font-size: 12px !important;
    margin: 14px 0 0
}

.sgq-note {
    padding: 16px 18px;
    border-left: 3px solid var(--green);
    background: var(--surface-soft);
    border-radius: 0 8px 8px 0;
    margin-block: 20px
}

.sgq-note p:last-child {
    margin-bottom: 0
}

.sgq-principles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
    list-style: none
}

.sgq-principles li {
    margin: 0 !important;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px
}

.sgq-principles strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink)
}

.sgq-principles span {
    color: var(--muted);
    font-size: 14px
}

.sgq-pdca {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0
}

.sgq-pdca article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px
}

.sgq-pdca h3 {
    color: var(--blue);
    font-size: 18px;
    margin: 0 0 10px
}

.sgq-pdca p {
    font-size: 14px;
    margin: 0
}

.sgq-stages {
    list-style: none;
    padding: 0;
    counter-reset: sgq-stage
}

.sgq-stages>li {
    position: relative;
    padding: 20px 0 20px 48px;
    border-top: 1px solid var(--line);
    margin: 0
}

.sgq-stages>li::before {
    counter-increment: sgq-stage;
    content: counter(sgq-stage, decimal-leading-zero);
    position: absolute;
    top: 22px;
    left: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--green);
    font-size: 12px;
    font-weight: 700
}

.sgq-stages h3 {
    margin: 0 0 10px;
    font-size: 19px
}

.sgq-evidence {
    padding-top: 10px;
    margin-bottom: 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px !important
}

.sgq-model-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-block: 20px
}

.sgq-model-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font-size: 14px
}

.sgq-model-nav a:hover {
    border-color: var(--blue);
    background: var(--surface-soft)
}

.sgq-model-nav b {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--green);
    background: var(--surface-soft);
    border-radius: 7px
}

.sgq-model {
    padding-top: 24px;
    margin-top: 26px;
    border-top: 1px solid var(--line);
    scroll-margin-top: 100px
}

.sgq-model h3 {
    margin-bottom: 10px
}

.sgq-model>p {
    color: var(--muted)
}

.sgq-requirement {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-top: 12px
}

.sgq-requirement summary {
    cursor: pointer;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.7;
    color: var(--ink)
}

.sgq-requirement summary>span {
    color: var(--green);
    font-size: 12px;
    margin-right: 8px
}

.sgq-requirement p {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 14px
}

.sgq-requirement p:last-child {
    margin-bottom: 0
}

.sgq-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

.sgq-tool {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px
}

.sgq-tool h3 {
    font-size: 18px;
    margin-bottom: 10px
}

.sgq-tool p {
    font-size: 14px
}

.sgq-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-block: 20px
}

.sgq-section a {
    overflow-wrap: anywhere
}

.sgq-maintenance li {
    padding-bottom: 10px
}

.sgq-resources {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

.sgq-resource {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 10px
}

.sgq-resource h3 {
    font-size: 18px
}

.sgq-resource p {
    font-size: 14px
}

@media(max-width:1000px) {
    .sgq-hero {
        grid-template-columns: 1fr
    }

    .sgq-layout {
        grid-template-columns: 1fr
    }

    .sgq-toc {
        position: static;
        display: flex;
        gap: 4px 18px;
        flex-wrap: wrap
    }

    .sgq-toc strong {
        width: 100%
    }

    .sgq-toc a {
        padding: 5px 0
    }

    .sgq-download {
        max-width: none
    }
}

@media(max-width:600px) {

    .sgq-section,
    .sgq-download {
        padding: 20px
    }

    .sgq-section>h2 {
        font-size: 24px
    }

    .sgq-principles,
    .sgq-pdca,
    .sgq-model-nav,
    .sgq-tools,
    .sgq-resources {
        grid-template-columns: 1fr
    }

    .sgq-requirement {
        padding: 14px
    }

    .sgq-stages>li {
        padding-left: 42px
    }

    .sgq-controls .button {
        flex: 1
    }

    .sgq-section .technical-definitions {
        grid-template-columns: 1fr
    }
}

@media print {

    .sgq-hero,
    .sgq-layout {
        display: block
    }

    .sgq-toc,
    .sgq-controls,
    .sgq-lead-actions,
    .sgq-no-print {
        display: none !important
    }

    .sgq-download {
        box-shadow: none;
        break-inside: avoid
    }

    .sgq-section {
        padding: 0;
        border: 0;
        background: #fff !important;
        margin: 18pt 0;
        box-shadow: none
    }

    .sgq-section h2,
    .sgq-section h3,
    .sgq-requirement summary {
        break-after: avoid
    }

    .sgq-requirement {
        padding: 10pt;
        border-color: #aaa
    }

    .sgq-principles,
    .sgq-pdca,
    .sgq-model-nav,
    .sgq-tools,
    .sgq-resources {
        grid-template-columns: 1fr 1fr
    }

    .sgq-principles li,
    .sgq-tool,
    .sgq-resource {
        break-inside: avoid
    }

    .sgq-stages>li {
        break-inside: avoid
    }

    .sgq-source,
    .sgq-section p,
    .sgq-section li {
        color: #273238
    }

    .sgq-layout {
        padding: 0
    }

    .sgq-download .button {
        display: none
    }

    .sgq-note {
        background: #f4f5f6
    }

    .sgq-model>p {
        color: #273238
    }
}
