/* =========================================================
   QUANTISK EDITORIAL
   Main Stylesheet
   ========================================================= */


/* =========================================================
   01. FONTS & VARIABLES
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --q-deep: #0046A6;
    --q-blue: #00AEEF;
    --q-ink: #0F172A;
    --q-muted: #64748b;
    --q-line: #e2e8f0;
    --q-soft: #f5f8fc;
    --q-width: 1140px;
}


/* =========================================================
   02. GLOBAL RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: var(--q-ink);
    font: 16px/1.7 Inter, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--q-deep);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

.q-container {
    width: min(calc(100% - 64px), var(--q-width));
    margin-inline: auto;
}

.q-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #fff;
    padding: 12px;
    z-index: 100;
}

.q-skip:focus {
    left: 12px;
}

:focus-visible {
    outline: 2px solid var(--q-deep);
    outline-offset: 3px;
}


/* =========================================================
   03. HEADER
   ========================================================= */

.q-header {
    border-bottom: 1px solid var(--q-line);
    background: #fff;
}

.q-header__inner {
    display: flex;
    align-items: center;
    gap: 36px;
    min-height: 92px;
}

.q-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -1.2px;
    white-space: nowrap;
}

.q-logo {
    max-width: 190px;
    max-height: 54px;
    object-fit: contain;
}

/* Legacy logo mark */

.q-brand__mark {
    height: 24px;
    display: flex;
    align-items: end;
    gap: 3px;
}

.q-brand__mark i {
    display: block;
    width: 6px;
    background: var(--q-blue);
    border-radius: 2px 2px 0 0;
}

.q-brand__mark i:nth-child(1) {
    height: 9px;
}

.q-brand__mark i:nth-child(2) {
    height: 16px;
}

.q-brand__mark i:nth-child(3) {
    height: 24px;
    background: var(--q-deep);
}


/* =========================================================
   04. NAVIGATION
   ========================================================= */

.q-nav {
    margin-left: auto;
}

.q-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.q-menu a {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.q-search-link {
    font-size: 27px;
    line-height: 1;
}

.q-menu-button {
    display: none;
}


/* =========================================================
   05. HOMEPAGE HERO
   ========================================================= */

.q-intro {
    padding-top: 105px;
    padding-bottom: 115px;
    border-bottom: 1px solid var(--q-line);
}

.q-eyebrow {
    color: var(--q-deep);
    font-size: 11px;
    letter-spacing: .13em;
    font-weight: 800;
    text-transform: uppercase;
}

.q-intro h1 {
    font-size: clamp(48px, 6.7vw, 88px);
    line-height: 1.09;
    letter-spacing: -.065em;
    margin: 20px 0 28px;
    max-width: 890px;
    font-weight: 800;
}

.q-intro h1 em {
    font-style: normal;
    color: var(--q-deep);
}

.q-intro > p:last-child {
    font-size: 19px;
    line-height: 1.7;
    max-width: 640px;
    color: #475569;
    margin: 0;
}


/* =========================================================
   06. HOMEPAGE SECTIONS
   ========================================================= */

.q-block {
    margin-top: 106px;
    margin-bottom: 106px;
}

.q-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--q-line);
    padding-bottom: 19px;
}

.q-section-heading h2 {
    font-size: 28px;
    letter-spacing: -.04em;
    line-height: 1.2;
    margin: 0;
}

.q-section-heading > span {
    font-size: 10px;
    letter-spacing: .14em;
    color: var(--q-muted);
    font-weight: 700;
}

.q-section-heading > a {
    font-size: 13px;
    color: var(--q-deep);
    font-weight: 700;
}


/* =========================================================
   07. FEATURED ARTICLES
   ========================================================= */

.q-featured {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 65px;
}

.q-story h3 {
    font-size: 21px;
    line-height: 1.35;
    letter-spacing: -.025em;
    margin: 10px 0 12px;
}

.q-story--feature h3 {
    font-size: 31px;
    letter-spacing: -.04em;
}

.q-story p {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
}

.q-story__image {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--q-soft);
    overflow: hidden;
    margin-bottom: 25px;
}

.q-story__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.q-featured__side .q-story {
    padding: 12px 0 34px;
}

.q-featured__side .q-story + .q-story {
    border-top: 1px solid var(--q-line);
    padding-top: 32px;
}

.q-date {
    font-size: 12px;
    color: var(--q-muted);
}


/* =========================================================
   08. TOPICS
   ========================================================= */

.q-topics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 70px;
}

.q-topic {
    display: flex;
    gap: 22px;
    align-items: baseline;
    padding: 27px 0;
    border-bottom: 1px solid var(--q-line);
}

.q-topic__num {
    font-size: 12px;
    color: var(--q-deep);
    font-weight: 700;
}

.q-topic__body {
    flex: 1;
    display: grid;
    gap: 3px;
}

.q-topic strong {
    font-size: 19px;
    letter-spacing: -.03em;
}

.q-topic small {
    font-size: 13px;
    line-height: 1.55;
    color: var(--q-muted);
}

.q-arrow {
    font-size: 20px;
    color: var(--q-deep);
}


/* =========================================================
   09. FINANCIAL TOOLS
   ========================================================= */

.q-tools {
    background: var(--q-soft);
    padding: 90px 0;
}

.q-tools__inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.q-tools h2 {
    font-size: clamp(30px, 3.5vw, 45px);
    line-height: 1.2;
    letter-spacing: -.05em;
    margin: 12px 0 16px;
}

.q-tools p:not(.q-eyebrow) {
    max-width: 510px;
    color: #475569;
    margin: 0;
}

.q-text-link {
    font-size: 14px;
    color: var(--q-deep);
    font-weight: 700;
    border-bottom: 1px solid var(--q-deep);
    padding-bottom: 8px;
    white-space: nowrap;
}


/* =========================================================
   10. LATEST ARTICLES
   ========================================================= */

.q-latest {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 65px;
}

.q-latest .q-story {
    border-bottom: 1px solid var(--q-line);
    padding: 25px 0;
}

.q-latest .q-story h3 {
    font-size: 20px;
}

.q-empty {
    color: var(--q-muted);
    font-size: 15px;
}


/* =========================================================
   11. ARCHIVE & GENERAL PAGES
   ========================================================= */

.q-list-page {
    min-height: 60vh;
    padding-top: 80px;
    padding-bottom: 110px;
}

.q-page-heading {
    margin-bottom: 50px;
}

.q-page-heading h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.15;
    letter-spacing: -.05em;
}

.q-pagination {
    margin-top: 45px;
}


/* =========================================================
   12. SINGLE ARTICLE — CONTAINER
   ========================================================= */

.q-article {
    max-width: 850px;
    padding-top: 72px;
    padding-bottom: 110px;
}


/* =========================================================
   13. SINGLE ARTICLE — BREADCRUMBS
   ========================================================= */

.q-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--q-muted);
}

.q-breadcrumbs a {
    color: var(--q-muted);
    transition: color .2s ease;
}

.q-breadcrumbs a:hover {
    color: var(--q-deep);
}

.q-breadcrumbs span[aria-hidden="true"] {
    color: #cbd5e1;
}

.q-breadcrumbs [aria-current="page"] {
    color: var(--q-ink);
}


/* =========================================================
   14. SINGLE ARTICLE — HEADER
   ========================================================= */

.q-article__header {
    margin-bottom: 42px;
}

.q-article__header .q-eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    color: var(--q-deep);
}

.q-article__header .q-eyebrow:hover {
    color: var(--q-blue);
}

.q-article__title {
    margin: 0 0 24px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.13;
    letter-spacing: -.055em;
    font-weight: 800;
    color: var(--q-ink);
}

.q-article__dek {
    max-width: 760px;
    margin: 0 0 30px;
    font-size: 20px;
    line-height: 1.7;
    font-weight: 400;
    color: #475569;
}


/* =========================================================
   15. SINGLE ARTICLE — META
   ========================================================= */

.q-article__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px 30px;
    padding-top: 22px;
    border-top: 1px solid var(--q-line);
    font-size: 12px;
    line-height: 1.6;
}

.q-article__author {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--q-ink);
    font-weight: 700;
}

.q-article__meta-label {
    color: var(--q-muted);
}

.q-article__author-name {
    color: var(--q-ink);
    font-weight: 700;
}

.q-article__dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--q-muted);
}

.q-article__dates time {
    color: var(--q-ink);
}

.q-article__updated {
    color: var(--q-muted);
}


/* =========================================================
   16. SINGLE ARTICLE — READING TIME
   ========================================================= */

.q-article__reading-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--q-muted);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}


/* =========================================================
   17. SINGLE ARTICLE — FEATURED IMAGE
   ========================================================= */

.q-article__cover {
    margin: 0 0 48px;
}

.q-article__featured-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.q-article__caption {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--q-muted);
}


/* =========================================================
   18. KEY TAKEAWAYS
   ========================================================= */

.q-takeaways {
    max-width: 730px;
    margin: 48px auto;
    padding: 30px 34px;
    background: var(--q-soft);
    border: 1px solid var(--q-line);
    border-left: 4px solid var(--q-deep);
    border-radius: 8px;
}

.q-takeaways h2 {
    margin: 0 0 20px;
    color: var(--q-ink);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.4px;
}

.q-takeaways ul {
    margin: 0;
    padding-left: 21px;
    list-style: disc;
}

.q-takeaways li {
    margin-bottom: 12px;
    padding-left: 3px;
    color: #253247;
    font-size: 15px;
    line-height: 1.75;
}

.q-takeaways li:last-child {
    margin-bottom: 0;
}

.q-takeaways li::marker {
    color: var(--q-deep);
}


/* =========================================================
   19. TABLE OF CONTENTS
   ========================================================= */

.q-toc {
    max-width: 730px;
    margin: 42px auto 52px;
    padding: 26px 30px;
    background: #fff;
    border: 1px solid var(--q-line);
    border-radius: 8px;
}

.q-toc__title {
    margin: 0 0 18px;
    color: var(--q-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.q-toc__list {
    margin: 0;
    padding-left: 20px;
}

.q-toc__item {
    margin-bottom: 11px;
    color: var(--q-muted);
    font-size: 14px;
    line-height: 1.6;
}

.q-toc__item:last-child {
    margin-bottom: 0;
}

.q-toc__item a {
    color: var(--q-deep);
    text-decoration: none;
    transition: color .2s ease;
}

.q-toc__item a:hover {
    color: var(--q-blue);
    text-decoration: underline;
}

.q-toc__item--sub {
    margin-left: 18px;
    list-style-type: circle;
}

.q-prose h2[id],
.q-prose h3[id] {
    scroll-margin-top: 110px;
}


/* =========================================================
   20. SINGLE ARTICLE — CONTENT
   ========================================================= */

.q-prose {
    max-width: 730px;
    margin-inline: auto;
    font-size: 17px;
    line-height: 1.85;
    color: #253247;
}

.q-prose > :first-child {
    margin-top: 0;
}

.q-prose p {
    margin: 0 0 1.5em;
}

.q-prose h2 {
    margin: 2.3em 0 .8em;
    font-size: clamp(25px, 3vw, 32px);
    line-height: 1.3;
    letter-spacing: -.04em;
    font-weight: 800;
    color: var(--q-ink);
}

.q-prose h3 {
    margin: 2em 0 .75em;
    font-size: 22px;
    line-height: 1.35;
    letter-spacing: -.03em;
    font-weight: 700;
    color: var(--q-ink);
}

.q-prose h4 {
    margin: 1.8em 0 .7em;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--q-ink);
}


/* =========================================================
   21. SINGLE ARTICLE — LINKS
   ========================================================= */

.q-prose a {
    color: var(--q-deep);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.q-prose a:hover {
    color: #003580;
}


/* =========================================================
   22. SINGLE ARTICLE — LISTS
   ========================================================= */

.q-prose ul,
.q-prose ol {
    margin: 0 0 1.7em;
    padding-left: 1.5em;
}

.q-prose li {
    margin-bottom: .65em;
    padding-left: .2em;
}

.q-prose li::marker {
    color: var(--q-deep);
}

.q-prose li ul,
.q-prose li ol {
    margin-top: .7em;
    margin-bottom: 0;
}


/* =========================================================
   23. SINGLE ARTICLE — BLOCKQUOTES
   ========================================================= */

.q-prose blockquote {
    margin: 2.3em 0;
    padding: 8px 0 8px 26px;
    border-left: 3px solid var(--q-deep);
    color: #475569;
    font-size: 19px;
    line-height: 1.7;
}

.q-prose blockquote p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   24. SINGLE ARTICLE — TABLES
   ========================================================= */

.q-prose table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 2em 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
}

.q-prose th,
.q-prose td {
    padding: 14px 16px;
    border: 1px solid var(--q-line);
    text-align: left;
    vertical-align: top;
}

.q-prose th {
    background: var(--q-soft);
    font-weight: 700;
    color: var(--q-ink);
}

.q-prose tr:nth-child(even) td {
    background: #fafbfd;
}


/* =========================================================
   25. SINGLE ARTICLE — IMAGES
   ========================================================= */

.q-prose img {
    max-width: 100%;
    height: auto;
    margin: 30px auto;
}

.q-prose figure {
    max-width: 100%;
    margin: 2.2em 0;
}

.q-prose figure img {
    margin: 0;
}

.q-prose figcaption {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--q-muted);
}


/* =========================================================
   26. SINGLE ARTICLE — HORIZONTAL RULES
   ========================================================= */

.q-prose hr {
    border: 0;
    border-top: 1px solid var(--q-line);
    margin: 3em 0;
}


/* =========================================================
   27. SINGLE ARTICLE — PAGE LINKS
   ========================================================= */

.q-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid var(--q-line);
    font-size: 14px;
}


/* =========================================================
   28. SOURCES & REFERENCES
   ========================================================= */

.q-sources {
    max-width: 730px;
    margin: 60px auto 42px;
    padding-top: 30px;
    border-top: 1px solid var(--q-line);
}

.q-sources h2 {
    margin: 0 0 14px;
    color: var(--q-ink);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.4px;
}

.q-sources__intro {
    margin: 0 0 22px;
    color: var(--q-muted);
    font-size: 14px;
    line-height: 1.75;
}

.q-sources__list {
    margin: 0;
    padding-left: 22px;
}

.q-sources__list li {
    margin-bottom: 17px;
    padding-left: 5px;
    color: var(--q-muted);
    font-size: 14px;
    line-height: 1.65;
}

.q-sources__list li:last-child {
    margin-bottom: 0;
}

.q-sources__list a {
    display: inline;
    color: var(--q-deep);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.q-sources__list a:hover {
    color: var(--q-blue);
    text-decoration: underline;
}

.q-sources__organization {
    display: block;
    margin-top: 4px;
    color: var(--q-muted);
    font-size: 13px;
}


/* =========================================================
   29. SINGLE ARTICLE — FINANCIAL DISCLAIMER
   ========================================================= */

.q-article__disclaimer {
    max-width: 730px;
    margin: 65px auto 0;
    padding: 25px 28px;
    background: var(--q-soft);
    border-left: 3px solid var(--q-deep);
}

.q-article__disclaimer h2 {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--q-ink);
}

.q-article__disclaimer p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #475569;
}


/* =========================================================
   30. SINGLE ARTICLE — TOPICS
   ========================================================= */

.q-article__topics {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 730px;
    margin: 35px auto 0;
    padding-bottom: 45px;
    border-bottom: 1px solid var(--q-line);
}

.q-article__topics-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--q-muted);
}

.q-article__topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.q-article__topics-list a {
    font-size: 13px;
    font-weight: 600;
    color: var(--q-deep);
}

.q-article__topics-list a:hover {
    text-decoration: underline;
}


/* =========================================================
   31. SINGLE ARTICLE — RELATED ARTICLES
   ========================================================= */

.q-related {
    margin-top: 75px;
}

.q-related__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--q-line);
}

.q-related__header h2 {
    margin: 0;
    font-size: 27px;
    line-height: 1.3;
    letter-spacing: -.04em;
    color: var(--q-ink);
}

.q-related__all {
    font-size: 13px;
    font-weight: 700;
    color: var(--q-deep);
}

.q-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.q-related__item {
    min-width: 0;
}

.q-related__category {
    display: block;
    margin-bottom: 12px;
    font-size: 10px;
    line-height: 1.5;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--q-deep);
}

.q-related__item h3 {
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.45;
    letter-spacing: -.025em;
    color: var(--q-ink);
}

.q-related__item h3 a:hover {
    color: var(--q-deep);
}

.q-related__item p {
    margin: 0 0 15px;
    font-size: 13px;
    line-height: 1.7;
    color: #475569;
}

.q-related__item .q-date {
    font-size: 11px;
    color: var(--q-muted);
}


/* =========================================================
   32. SEARCH FORM
   ========================================================= */

.q-search-form {
    max-width: 550px;
}

.q-search-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
}

.q-search-form div {
    display: flex;
    gap: 10px;
}

.q-search-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--q-line);
    padding: 12px;
}

.q-search-form button {
    background: var(--q-deep);
    color: #fff;
    border: 0;
    padding: 12px 20px;
    cursor: pointer;
}


/* =========================================================
   33. FOOTER
   ========================================================= */

.q-footer {
    background: #0f172a;
    color: #fff;
    padding: 70px 0 34px;
}

.q-footer__top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 60px;
}

.q-footer__brand {
    display: inline-flex;
    align-items: center;
    max-width: 190px;
    font-size: 25px;
    font-weight: 800;
}

.q-footer__logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 190px;
    max-height: 54px;
    object-fit: contain;

    /* White version on dark footer */
    filter: brightness(0) invert(1);
}

.q-footer__top p {
    max-width: 350px;
    color: #cbd5e1;
    font-size: 13px;
}

.q-footer__top nav,
.q-footer__bottom > div {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.q-footer a:hover {
    color: #7dd3fc;
}

.q-footer__top nav a,
.q-footer__bottom {
    font-size: 12px;
}

.q-footer__bottom {
    border-top: 1px solid #334155;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #cbd5e1;
}

.q-disclaimer {
    color: #94a3b8;
    font-size: 11px;
    max-width: 750px;
    margin-top: 26px;
}


/* =========================================================
   34. RESPONSIVE — DESKTOP / SMALL LAPTOP
   ========================================================= */

@media (max-width: 1050px) {

    .q-menu {
        gap: 12px;
    }

    .q-menu a {
        font-size: 12px;
    }

    .q-header__inner {
        gap: 22px;
    }

}


/* =========================================================
   35. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 850px) {

    .q-header__inner {
        min-height: 75px;
        flex-wrap: wrap;
    }

    .q-menu-button {
        display: block;
        margin-left: auto;
        background: #fff;
        border: 1px solid var(--q-line);
        padding: 7px 12px;
        font-size: 13px;
        cursor: pointer;
    }

    .q-nav {
        display: none;
        order: 5;
        flex-basis: 100%;
        margin: 0;
        padding-bottom: 18px;
    }

    .q-nav.is-open {
        display: block;
    }

    .q-menu {
        display: grid;
        gap: 0;
    }

    .q-menu a {
        display: block;
        padding: 10px 0;
        font-size: 14px;
    }

    .q-search-link {
        display: none;
    }

    .q-featured {
        gap: 35px;
    }

    .q-topics {
        column-gap: 30px;
    }

    .q-article {
        padding-top: 60px;
        padding-bottom: 90px;
    }

    .q-article__title {
        font-size: clamp(36px, 6vw, 52px);
    }

    .q-takeaways {
        margin: 38px auto;
        padding: 26px 28px;
    }

    .q-toc {
        margin: 36px auto 44px;
        padding: 24px 26px;
    }

    .q-sources {
        margin-top: 48px;
    }

    .q-related__grid {
        gap: 22px;
    }

}


/* =========================================================
   36. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 650px) {

    /* Global */

    .q-container {
        width: min(calc(100% - 36px), var(--q-width));
    }

    /* Homepage */

    .q-intro {
        padding-top: 65px;
        padding-bottom: 70px;
    }

    .q-intro h1 {
        font-size: clamp(42px, 11vw, 62px);
    }

    .q-intro > p:last-child {
        font-size: 16px;
    }

    .q-block {
        margin-top: 70px;
        margin-bottom: 70px;
    }

    .q-section-heading h2 {
        font-size: 24px;
    }

    .q-section-heading > span {
        display: none;
    }

    .q-featured,
    .q-topics,
    .q-latest {
        grid-template-columns: 1fr;
    }

    .q-featured {
        gap: 20px;
    }

    .q-featured__side .q-story {
        padding: 20px 0;
    }

    .q-story--feature h3 {
        font-size: 26px;
    }

    .q-topic {
        padding: 21px 0;
    }

    .q-tools {
        padding: 60px 0;
    }

    .q-tools__inner {
        display: block;
    }

    .q-text-link {
        display: inline-block;
        margin-top: 30px;
    }

    /* Article */

    .q-article {
        padding-top: 38px;
        padding-bottom: 75px;
    }

    .q-breadcrumbs {
        margin-bottom: 35px;
        font-size: 11px;
    }

    .q-article__header {
        margin-bottom: 30px;
    }

    .q-article__title {
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.17;
    }

    .q-article__dek {
        font-size: 17px;
        line-height: 1.65;
    }

    .q-article__meta {
        display: block;
    }

    .q-article__dates {
        margin-top: 10px;
    }

    .q-article__reading-time {
        display: inline-flex;
        margin-top: 10px;
        font-size: 12px;
    }

    .q-article__cover {
        margin-bottom: 35px;
    }

    /* Key Takeaways */

    .q-takeaways {
        margin: 30px auto;
        padding: 23px 20px;
        border-radius: 6px;
    }

    .q-takeaways h2 {
        font-size: 19px;
        margin-bottom: 16px;
    }

    .q-takeaways li {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Table of Contents */

    .q-toc {
        margin: 30px auto 40px;
        padding: 22px 20px;
    }

    .q-toc__title {
        font-size: 17px;
    }

    .q-toc__item {
        font-size: 13px;
    }

    .q-toc__item--sub {
        margin-left: 10px;
    }

    /* Article content */

    .q-prose {
        font-size: 16px;
        line-height: 1.8;
    }

    .q-prose h2 {
        font-size: 25px;
    }

    .q-prose h3 {
        font-size: 20px;
    }

    .q-prose blockquote {
        font-size: 17px;
        padding-left: 18px;
    }

    /* Sources */

    .q-sources {
        margin: 42px auto 34px;
        padding-top: 25px;
    }

    .q-sources h2 {
        font-size: 21px;
    }

    .q-sources__intro,
    .q-sources__list li {
        font-size: 13px;
    }

    /* Disclaimer */

    .q-article__disclaimer {
        margin-top: 45px;
        padding: 22px 20px;
    }

    /* Related articles */

    .q-related {
        margin-top: 55px;
    }

    .q-related__header {
        display: block;
    }

    .q-related__header h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .q-related__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .q-related__item {
        padding: 22px 0;
        border-bottom: 1px solid var(--q-line);
    }

    .q-related__item:first-child {
        padding-top: 0;
    }

    /* Footer */

    .q-footer__top,
    .q-footer__bottom {
        display: block;
    }

    .q-footer__top nav {
        margin-top: 28px;
    }

    .q-footer__bottom > div {
        margin-top: 12px;
    }

}


/* =========================================================
   37. ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

}