/* Lusail at night: warm paper, deep ink, tidal teal and signal amber.
   This feature stylesheet is deliberately scoped to the Qatar editorial. */
.qatar-preview-header {
    --qp-ink: #182a31;
    --qp-muted: #536a70;
    --qp-paper: #f6f4ec;
    --qp-panel: #fffdf6;
    --qp-line: rgba(24, 54, 61, .17);
    --qp-teal: #087b79;
    --qp-amber: #e8b84e;
    --qp-coral: #c85c4c;
    color: var(--qp-ink);
    background:
        radial-gradient(ellipse at 83% 20%, rgba(17, 157, 151, .19), transparent 32%),
        linear-gradient(118deg, #10242b 0%, #173640 58%, #1b4548 100%);
    border-bottom: 1px solid rgba(232, 184, 78, .38);
}
.qatar-preview-header .date { color: #c7d6d0; }
.qatar-preview-header h1 {
    max-width: 900px;
    font-family: "Outfit", "Avenir Next", sans-serif;
    font-size: clamp(2.2rem, 5.6vw, 4.2rem);
    line-height: .98;
    letter-spacing: -.045em;
}
.qatar-preview-header .article-provenance {
    color: #d5e1dc;
    border-color: rgba(213, 225, 220, .3);
}
.qatar-preview-header .article-provenance a { color: #f1ca70; }

[data-theme="dark"] .qatar-preview-page,
[data-theme="dark"] .qatar-preview-header {
    --qp-ink: #e9f1eb;
    --qp-muted: #b5c7c1;
    --qp-paper: #172a2d;
    --qp-panel: #1d3436;
    --qp-line: rgba(213, 235, 224, .17);
    --qp-teal: #71d0c3;
    --qp-amber: #f2c967;
    --qp-coral: #ff9b85;
}
[data-theme="dark"] .qatar-preview-page { background: #132528; }

.qatar-preview-page {
    --qp-ink: #182a31;
    --qp-muted: #536a70;
    --qp-paper: #f6f4ec;
    --qp-panel: #fffdf6;
    --qp-line: rgba(24, 54, 61, .17);
    --qp-teal: #087b79;
    --qp-amber: #e8b84e;
    --qp-coral: #c85c4c;
    background:
        linear-gradient(180deg, var(--qp-paper), color-mix(in srgb, var(--qp-paper) 88%, #e7eee8));
}
.qatar-preview-layout {
    display: block;
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
}
.qatar-preview-page .article-layout.qatar-preview-layout {
    max-width: 1080px;
    margin-inline: auto;
}
.qatar-preview-content {
    min-width: 0;
    padding: clamp(18px, 4vw, 48px) !important;
    overflow: visible !important;
    border: 1px solid var(--qp-line) !important;
    border-radius: 0 0 4px 4px !important;
    background: var(--qp-paper) !important;
    color: var(--qp-ink) !important;
    box-shadow: 0 18px 50px rgba(21, 45, 47, .07);
}
.qatar-preview {
    max-width: 890px;
    margin: 0 auto;
    color: var(--qp-ink);
    font-family: "DM Sans", "Avenir Next", sans-serif;
    font-size: clamp(1rem, 1.3vw, 1.075rem);
    line-height: 1.78;
    overflow-wrap: anywhere;
}
.qatar-preview *,
.qatar-preview *::before,
.qatar-preview *::after { box-sizing: border-box; }
.qatar-preview p { margin: 0 0 1.12rem; }
.qatar-preview strong { color: var(--qp-ink); }
.qatar-preview h2,
.qatar-preview h3 {
    color: var(--qp-ink);
    font-family: "Outfit", "Avenir Next", sans-serif;
    letter-spacing: -.035em;
}
.qatar-preview h2 { font-size: clamp(1.8rem, 4.2vw, 2.65rem); line-height: 1.04; }
.qatar-preview h3 { font-size: clamp(1.16rem, 2.2vw, 1.38rem); line-height: 1.22; }
.qatar-preview a {
    color: var(--qp-teal);
    font-weight: 750;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .16s ease, text-decoration-color .16s ease;
}
.qatar-preview-content .qatar-preview a:hover { color: var(--qp-coral); }
.qatar-preview a:focus-visible,
.qatar-preview [tabindex="0"]:focus-visible {
    outline: 3px solid var(--qp-coral);
    outline-offset: 4px;
    border-radius: 3px;
}

.qatar-preview .qp-intro {
    position: relative;
    margin: 0 0 1.7rem;
    padding: clamp(1.2rem, 4vw, 2.6rem);
    border: 1px solid var(--qp-line);
    border-top: 5px solid var(--qp-amber);
    border-radius: 3px 3px 18px 18px;
    background:
        radial-gradient(ellipse at 95% 0%, color-mix(in srgb, var(--qp-teal) 13%, transparent), transparent 45%),
        var(--qp-panel);
}
.qp-intro .qp-eyebrow,
.qp-section .qp-kicker {
    margin: 0 0 .5rem;
    color: var(--qp-teal);
    font: 800 .68rem/1.45 "Spline Sans Mono", ui-monospace, monospace;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.qp-intro h2 {
    max-width: 720px;
    margin: 0 0 1.1rem;
    font-size: clamp(2.1rem, 6vw, 3.65rem);
    line-height: .98;
}
.qp-intro .qp-deck {
    max-width: 760px;
    font-size: clamp(1.13rem, 2.2vw, 1.33rem);
    line-height: 1.52;
    font-weight: 560;
}
.qp-intro .qp-snapshot {
    margin: 1.35rem 0 0;
    padding: .85rem 1rem;
    border-left: 3px solid var(--qp-coral);
    background: color-mix(in srgb, var(--qp-coral) 9%, var(--qp-panel));
    color: var(--qp-muted);
    font-size: .88rem;
    line-height: 1.6;
}
.qatar-preview .qp-contents {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem 1rem;
    margin: 0 0 clamp(2.7rem, 6vw, 4rem);
    padding: clamp(1rem, 3vw, 1.65rem);
    border: 1px solid var(--qp-line);
    border-left: 4px solid var(--qp-teal);
    background: var(--qp-panel);
}
.qp-contents strong {
    grid-column: 1 / -1;
    font: 750 1.08rem "Outfit", sans-serif;
}
.qp-contents a {
    padding: .25rem 0;
    color: var(--qp-ink);
    font-size: .9rem;
    font-weight: 700;
    text-decoration-color: color-mix(in srgb, var(--qp-amber) 80%, transparent);
    text-decoration-thickness: 2px;
}
.qatar-preview .qp-section {
    margin: 0 0 clamp(3rem, 7vw, 5.3rem);
    scroll-margin-top: 6rem;
}
.qp-section > h2 { margin: 0 0 1.2rem; }
.qp-section > h3 { margin: 1.8rem 0 .55rem; }
.qp-section > p { max-width: 780px; }
.qp-section .qp-small {
    color: var(--qp-muted);
    font-size: .87rem;
    line-height: 1.65;
}
.qp-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 1.4rem 0 1.55rem;
    border: 1px solid var(--qp-line);
    background: var(--qp-line);
}
.qp-facts > .qp-fact {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 1rem 1.1rem;
    background: var(--qp-panel);
}
.qp-fact span {
    color: var(--qp-teal);
    font: 800 .63rem/1.35 "Spline Sans Mono", ui-monospace, monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.qp-fact strong {
    margin: .36rem 0 .15rem;
    font: 750 clamp(1rem, 2.1vw, 1.2rem)/1.2 "Outfit", sans-serif;
}
.qp-fact small { color: var(--qp-muted); font-size: .8rem; line-height: 1.5; }
.qp-callout {
    position: relative;
    margin: 1.45rem 0;
    padding: 1rem 1.25rem 1rem 1.45rem;
    border: 1px solid var(--qp-line);
    border-radius: 3px 13px 13px 3px;
    background: var(--qp-panel);
}
.qp-callout::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--qp-teal);
    content: "";
}
.qp-callout h3 { margin: 0 0 .45rem; font-size: 1.12rem; }
.qp-callout p:last-child { margin-bottom: 0; }
.qp-callout-blue { background: color-mix(in srgb, #70b5c6 15%, var(--qp-panel)); }
.qp-callout-blue::before { background: #3c93a4; }
.qp-callout-rose { background: color-mix(in srgb, var(--qp-coral) 10%, var(--qp-panel)); }
.qp-callout-rose::before { background: var(--qp-coral); }
.qp-callout-lime { background: color-mix(in srgb, var(--qp-amber) 21%, var(--qp-panel)); }
.qp-callout-lime::before { background: #c79225; }
.qp-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.35rem 0;
}
.qp-pair .qp-callout { margin: 0; }
.qp-table-wrap {
    max-width: 100%;
    margin: 1.35rem 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border: 1px solid var(--qp-line);
    background: var(--qp-panel);
    scrollbar-color: var(--qp-teal) color-mix(in srgb, var(--qp-paper) 70%, transparent);
}
.qp-table-wrap table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    color: var(--qp-ink);
    font-size: .88rem;
    line-height: 1.55;
}
.qp-table-wrap caption {
    padding: .85rem 1rem;
    color: var(--qp-muted);
    font-size: .8rem;
    font-weight: 700;
    text-align: left;
}
.qp-table-wrap th,
.qp-table-wrap td {
    padding: .8rem .9rem;
    border-top: 1px solid var(--qp-line);
    text-align: left;
    vertical-align: top;
}
.qp-table-wrap thead th {
    background: color-mix(in srgb, var(--qp-teal) 12%, var(--qp-panel));
    color: var(--qp-ink);
    font-size: .76rem;
    letter-spacing: .025em;
}
.qp-table-wrap tbody tr:nth-child(even) { background: color-mix(in srgb, var(--qp-teal) 5%, var(--qp-panel)); }
.qp-watch-list { padding-left: 1.4rem; }
.qp-watch-list li { padding: .65rem .2rem .65rem .35rem; border-bottom: 1px solid var(--qp-line); }
.qp-watch-list li::marker { color: var(--qp-teal); font-family: ui-monospace, monospace; font-weight: 800; }
.qp-sources > ol {
    margin: 1.2rem 0;
    padding: 0;
    list-style: none;
    counter-reset: qp-source;
}
.qp-sources > ol > li {
    counter-increment: qp-source;
    position: relative;
    margin: 0;
    padding: .85rem .3rem .85rem 2.7rem;
    border-top: 1px solid var(--qp-line);
    color: var(--qp-muted);
    font-size: .9rem;
    line-height: 1.6;
}
.qp-sources > ol > li::before {
    position: absolute;
    left: .2rem;
    top: .92rem;
    color: var(--qp-teal);
    content: counter(qp-source, decimal-leading-zero);
    font: 700 .69rem "Spline Sans Mono", ui-monospace, monospace;
}
.qp-sources > ol > li a { color: var(--qp-teal); }
.qp-sources > p:last-child { color: var(--qp-muted); font-size: .84rem; }

@media (max-width: 700px) {
    .qatar-preview-content { padding: 18px !important; }
    .qatar-preview .qp-contents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qp-pair { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .qatar-preview-header { padding-block: 36px; }
    .qatar-preview-header h1 { font-size: clamp(2rem, 10vw, 2.7rem); }
    .qatar-preview-content { padding: 14px !important; }
    .qatar-preview .qp-contents { grid-template-columns: 1fr; }
    .qp-facts { grid-template-columns: 1fr; }
    .qp-callout { padding-right: .9rem; }
    .qp-table-wrap table { min-width: 620px; }
}
@media (prefers-reduced-motion: reduce) {
    .qatar-preview *,
    .qatar-preview *::before,
    .qatar-preview *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
