*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --qz-canvas: #f4f4f2;
    --qz-panel: #ffffff;
    --qz-ink: #23262b;
    --qz-muted: #5b6168;
    --qz-accent: #2f4a73;
    --qz-accent-deep: #25395a;
    --qz-accent-soft: rgba(47, 74, 115, .1);
    --qz-line: #dcdcd7;
    --qz-type: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --qz-radius-sm: 8px;
    --qz-radius-md: 12px;
    --qz-shade-soft: 0 2px 8px rgba(35, 38, 43, .05);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--qz-canvas);
    font-family: var(--qz-type);
    color: var(--qz-ink);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--qz-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .18s ease;
}
a:hover { color: var(--qz-accent-deep); }

/* ---------- top bar ---------- */
.qz-topbar {
    background: var(--qz-panel);
    border-bottom: 1px solid var(--qz-line);
    padding: 18px 16px;
    text-align: center;
}
.qz-logo {
    display: inline-block;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: .18em;
    text-indent: .18em;
    text-transform: uppercase;
    color: var(--qz-accent);
    text-decoration: none;
}
.qz-logo:hover { color: var(--qz-accent-deep); }

/* ---------- page head ---------- */
.qz-paper-head {
    max-width: 820px;
    margin: 0 auto;
    padding: 44px 20px 10px;
}
.qz-paper-title {
    font-size: clamp(25px, 4vw, 38px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.005em;
    color: var(--qz-ink);
}
.qz-paper-lede {
    display: block;
    margin-top: 12px;
    max-width: 640px;
    font-size: 16px;
    color: var(--qz-muted);
}
.qz-paper-date {
    display: inline-block;
    margin-top: 18px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--qz-accent-soft);
    border: 1px solid rgba(47, 74, 115, .3);
    font-size: 13px;
    font-weight: 600;
    color: var(--qz-accent-deep);
}

/* ---------- definitions table ---------- */
.qz-defs-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 20px 6px;
}
.qz-defs-cap {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--qz-muted);
    margin-bottom: 10px;
}
.qz-defs {
    width: 100%;
    border-collapse: collapse;
    background: var(--qz-panel);
    border: 1px solid var(--qz-line);
    border-radius: var(--qz-radius-sm);
    overflow: hidden;
    font-size: 15px;
    box-shadow: var(--qz-shade-soft);
}
.qz-defs th {
    text-align: left;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--qz-accent-deep);
    background: #f7f7f4;
    border-bottom: 1px solid var(--qz-line);
}
.qz-defs td {
    padding: 12px 14px;
    vertical-align: top;
    border-top: 1px solid var(--qz-line);
    color: var(--qz-muted);
}
.qz-defs tbody tr:first-child td { border-top: 0; }
.qz-defs td:first-child {
    width: 32%;
    font-weight: 600;
    color: var(--qz-ink);
}
@media (max-width: 560px) {
    .qz-defs,
    .qz-defs tbody,
    .qz-defs tr,
    .qz-defs td { display: block; width: 100%; }
    .qz-defs thead { display: none; }
    .qz-defs tr {
        border-top: 1px solid var(--qz-line);
        padding: 4px 0 10px;
    }
    .qz-defs tbody tr:first-child { border-top: 0; }
    .qz-defs td { border-top: 0; padding: 2px 14px; }
    .qz-defs td:first-child {
        width: 100%;
        padding-top: 10px;
        font-size: 15px;
    }
}

/* ---------- numbered sections ---------- */
.qz-paper {
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
    padding: 14px 20px 64px;
    counter-reset: qzSect;
}
.qz-sect {
    counter-increment: qzSect;
    padding: 30px 0 4px;
}
.qz-sect + .qz-sect { border-top: 1px solid var(--qz-line); }
.qz-sect-title {
    display: flex;
    align-items: flex-start;
    font-size: clamp(18px, 2.3vw, 23px);
    font-weight: 700;
    line-height: 1.32;
    color: var(--qz-ink);
    margin-bottom: 12px;
}
.qz-sect-title::before {
    content: counter(qzSect);
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-right: 12px;
    border-radius: var(--qz-radius-sm);
    background: var(--qz-accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.qz-sect-body p { margin-bottom: 12px; color: var(--qz-muted); }
.qz-sect-body p:last-child { margin-bottom: 0; }
.qz-sect-body strong { color: var(--qz-ink); }
.qz-sect-body ul,
.qz-sect-body ol {
    margin: 0 0 12px;
    padding-left: 0;
    list-style: none;
    color: var(--qz-muted);
}
.qz-sect-body ol { counter-reset: qzItem; }
.qz-sect-body li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.qz-sect-body ul > li::before {
    content: "";
    position: absolute;
    left: 1px;
    top: .72em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: rgba(47, 74, 115, .55);
}
.qz-sect-body ol > li { counter-increment: qzItem; padding-left: 28px; }
.qz-sect-body ol > li::before {
    content: counter(qzItem) ".";
    position: absolute;
    left: 1px;
    top: 0;
    font-weight: 700;
    color: var(--qz-accent);
}

/* ---------- blocks inside a section ---------- */
.qz-note {
    margin: 14px 0 12px;
    padding: 14px 16px;
    border: 1px solid var(--qz-line);
    border-left: 3px solid var(--qz-accent);
    border-radius: 0 var(--qz-radius-sm) var(--qz-radius-sm) 0;
    background: var(--qz-panel);
}
.qz-note p { color: var(--qz-ink); margin: 0; font-size: 15px; }

.qz-pairs { margin: 12px 0; display: grid; gap: 8px; }
.qz-pair {
    display: grid;
    grid-template-columns: minmax(150px, 34%) 1fr;
    gap: 2px 16px;
    padding: 11px 14px;
    background: var(--qz-panel);
    border: 1px solid var(--qz-line);
    border-radius: var(--qz-radius-sm);
    font-size: 15px;
}
.qz-pair-key { font-weight: 600; color: var(--qz-ink); }
.qz-pair-val { color: var(--qz-muted); }
@media (max-width: 560px) {
    .qz-pair { grid-template-columns: 1fr; }
}

.qz-grid {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 15px;
    background: var(--qz-panel);
    border: 1px solid var(--qz-line);
    border-radius: var(--qz-radius-sm);
    overflow: hidden;
}
.qz-grid th {
    text-align: left;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--qz-accent-deep);
    background: #f7f7f4;
    border-bottom: 1px solid var(--qz-line);
}
.qz-grid td {
    padding: 11px 14px;
    vertical-align: top;
    border-top: 1px solid var(--qz-line);
    color: var(--qz-muted);
}
.qz-grid tbody tr:first-child td { border-top: 0; }
@media (max-width: 560px) {
    .qz-grid,
    .qz-grid tbody,
    .qz-grid tr,
    .qz-grid td { display: block; width: 100%; }
    .qz-grid thead { display: none; }
    .qz-grid tr { border-top: 1px solid var(--qz-line); padding: 6px 0 10px; }
    .qz-grid tbody tr:first-child { border-top: 0; }
    .qz-grid td { border-top: 0; padding: 2px 14px; }
    .qz-grid td:first-child { font-weight: 600; color: var(--qz-ink); padding-top: 8px; }
}

.qz-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.qz-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--qz-line);
    background: var(--qz-panel);
    font-size: 13px;
    font-weight: 600;
    color: var(--qz-accent-deep);
}

.qz-closing {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px 56px;
}
.qz-closing-box {
    padding: 18px 20px;
    border: 1px dashed rgba(47, 74, 115, .4);
    border-radius: var(--qz-radius-md);
    background: rgba(255, 255, 255, .72);
    font-size: 15px;
    color: var(--qz-muted);
}

/* ---------- foot ---------- */
.qz-foot {
    margin-top: auto;
    flex-shrink: 0;
    background: var(--qz-panel);
    border-top: 1px solid var(--qz-line);
    padding: 24px 16px 26px;
    text-align: center;
}
.qz-foot-shell { max-width: 860px; margin: 0 auto; }
.qz-foot-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 14px;
}
.qz-foot-nav a {
    font-size: 12.5px;
    color: var(--qz-accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(47, 74, 115, .35);
    padding-bottom: 2px;
}
.qz-foot-nav a:hover { color: var(--qz-accent-deep); border-bottom-color: var(--qz-accent-deep); }
.qz-foot-mark { font-size: 12.5px; color: var(--qz-muted); margin-bottom: 10px; }
.qz-foot-legal {
    max-width: 740px;
    margin: 0 auto;
    font-size: 11.5px;
    line-height: 1.75;
    color: var(--qz-muted);
}
