.fx-insight {
    --navy: #173B4E;
    --navy-2: #1f4a61;
    --sand: #E3DBC8;
    --sand-2: #EDE7D9;
    --paper: #F4F3F2;
    --line: #D9D9D9;
    --ink: #212529;
    --muted: #5d6670;
    --accent: #E3D8C8;
}

.fx-insight * {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.fx-insight {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 15px/1.7 "FX Inter",system-ui,sans-serif;
    -webkit-font-smoothing: antialiased;
}

.fx-insight a {
    color: var(--navy);
}

/* Restore the draft's native subscript and slider metrics after Bootstrap's reset. */
.fx-insight sub {
    position: static;
    font-size: smaller;
    line-height: inherit;
    vertical-align: sub;
}

.fx-insight input[type="range"] {
    margin: revert;
    font: revert;
}

.fx-insight .label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 22px;
}

.fx-insight h1 {
    font: 500 32px/1.45 "FX Bitter",serif;
    margin: 0 0 16px;
    max-width: 30ch;
}

.fx-insight .dek {
    font: italic 400 21px/1.55 "FX Bitter",serif;
    margin: 0 0 34px;
    max-width: 42ch;
}

.fx-insight h2 {
    font: 500 23px/1.4 "FX Bitter",serif;
    margin: 52px 0 14px;
}

.fx-insight h3 {
    font: 500 18px/1.4 "FX Bitter",serif;
    margin: 30px 0 8px;
}

.fx-insight p {
    margin: 0 0 16px;
    max-width: 72ch;
}

.fx-insight ul,
.fx-insight ol {
    margin: 0 0 16px;
    padding-left: 20px;
    max-width: 70ch;
}

.fx-insight li {
    margin: 0 0 6px;
}

.fx-insight strong {
    font-weight: 600;
}

/* Summary box like the site */

.fx-insight .summary {
    background: var(--sand);
    border-radius: 15px;
    padding: 28px 60px;
    margin: 0 0 10px;
}

.fx-insight .summary p,
.fx-insight .summary li {
    font-size: 15px;
}

.fx-insight .summary ul {
    list-style: none;
    padding: 0;
}

.fx-insight .summary li {
    position: relative;
    padding-left: 18px;
}

.fx-insight .summary li::before {
    content: "–";
    position: absolute;
    left: 0;
}

/* Facts grid */

.fx-insight .facts {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    margin: 22px 0 26px;
}

.fx-insight .facts div {
    background: #fff;
    padding: 16px 18px;
}

.fx-insight .facts .k {
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.fx-insight .facts .v {
    font-size: 14.5px;
    line-height: 1.5;
}

/* KPI tiles */

.fx-insight .kpis {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
    margin: 22px 0 26px;
}

.fx-insight .kpi {
    background: var(--navy);
    color: #fff;
    border-radius: 12px;
    padding: 18px 18px 16px;
}

.fx-insight .kpi .n {
    font: 500 28px/1.15 "FX Bitter",serif;
    color: #fff;
}

.fx-insight .kpi .t {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--accent);
    margin-top: 6px;
}

.fx-insight .kpis.light .kpi {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}

.fx-insight .kpis.light .kpi .n {
    color: var(--navy);
}

.fx-insight .kpis.light .kpi .t {
    color: var(--muted);
}

/* Figures */

.fx-insight figure {
    margin: 26px 0 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px 20px 14px;
}

.fx-insight figure .ft {
    font: 500 16px/1.4 "FX Bitter",serif;
    margin: 0 0 12px;
}

.fx-insight figure img {
    display: block;
    width: 100%;
    height: auto;
}

.fx-insight figure .pair {
    display: grid;
    gap: 18px;
}

.fx-insight figcaption {
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
    margin-top: 10px;
}

/* Formula + hypothesis boxes */

.fx-insight .formula {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 6px 24px;
    margin: 18px 0 22px;
    overflow-x: auto;
}

.fx-insight .hyp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 18px 0 22px;
}

.fx-insight .hyp > div {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
}

.fx-insight .hyp h4 {
    font: 500 16px/1.4 "FX Bitter",serif;
    margin: 0 0 6px;
}

.fx-insight .hyp p {
    font-size: 14px;
    margin: 0 0 6px;
}

.fx-insight .hyp .katex-display {
    overflow-x: auto;
}

.fx-insight .hyp .katex-display > .katex {
    width: max-content;
    min-width: 100%;
}

.fx-insight .callout {
    border-left: 3px solid var(--navy);
    background: var(--sand-2);
    padding: 16px 22px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0 24px;
}

.fx-insight .callout p:last-child {
    margin: 0;
}

.fx-insight details.deep {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 18px 0 24px;
}

.fx-insight details.deep summary {
    cursor: pointer;
    padding: 14px 20px;
    font: 500 16px/1.4 "FX Bitter",serif;
    list-style: none;
}

.fx-insight details.deep summary::-webkit-details-marker {
    display: none;
}

.fx-insight details.deep summary::after {
    content: "+";
    float: right;
    font-family: "FX Inter";
    color: var(--muted);
}

.fx-insight details.deep[open] summary::after {
    content: "–";
}

.fx-insight details.deep .body {
    padding: 0 22px 14px;
    overflow-x: auto;
}

/* Table */

.fx-insight .tbl {
    overflow-x: auto;
    margin: 16px 0 8px;
}

.fx-insight table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.fx-insight th,
.fx-insight td {
    padding: 10px 12px;
    text-align: right;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.fx-insight .tbl th,
.fx-insight .tbl td {
    padding: 10px 8px;
}

.fx-insight .tbl td {
    font-size: inherit;
}

.fx-insight .tbl thead th {
    white-space: normal;
}

@media (min-width: 768px) {
    .fx-insight .tbl table {
        font-size: 13px;
    }

    .fx-insight .tbl th,
    .fx-insight .tbl td {
        padding-inline: 6px;
    }
}

/* The sidebar leaves less room for portfolio names in the narrow desktop layout. */
@media (min-width: 992px) and (max-width: 1199px) {
    .fx-insight .tbl tbody td:first-child {
        white-space: normal;
    }
}

.fx-insight th:first-child,
.fx-insight td:first-child {
    text-align: left;
}

.fx-insight thead th {
    font-weight: 500;
    font-size: 12px;
    letter-spacing: .4px;
    color: var(--muted);
    background: #faf9f7;
    vertical-align: bottom;
}

.fx-insight thead tr.grp th {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    border-bottom: none;
    padding-bottom: 0;
}

.fx-insight tbody tr.hl td {
    font-weight: 600;
    background: #f7f4ec;
}

.fx-insight tbody tr:last-child td {
    border-bottom: none;
}

.fx-insight .note {
    font-size: 13px;
    color: var(--muted);
}

/* Positions-Heatmap */

.fx-insight .heat {
    --long: #22689E;
    --short: #C4622F;
    --none: #ECEAE6;
    position: relative;
}

.fx-insight .heat-ctrl {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--muted);
}

.fx-insight .heat-ctrl input[type=range] {
    flex: 1;
    accent-color: var(--navy);
    cursor: pointer;
}

.fx-insight .heat-ctrl output {
    font: 500 22px/1 "FX Bitter",serif;
    color: var(--navy);
    min-width: 3.2em;
    text-align: right;
}

.fx-insight .heat-ctrl .rng {
    font-variant-numeric: tabular-nums;
}

.fx-insight table.heatmap {
    border-collapse: separate;
    border-spacing: 2px;
    width: 100%;
    table-layout: fixed;
    border: 0;
    background: transparent;
    font-size: 12px;
}

.fx-insight table.heatmap th,
.fx-insight table.heatmap td {
    border: 0;
    padding: 0;
    text-align: center;
    white-space: nowrap;
}

.fx-insight table.heatmap thead th {
    font-weight: 500;
    color: var(--muted);
    padding: 0 0 4px;
    background: transparent;
    font-size: 11.5px;
}

.fx-insight table.heatmap tbody th {
    font-weight: 500;
    color: var(--ink);
    text-align: left;
    width: 46px;
    font-size: 12.5px;
}

.fx-insight table.heatmap td {
    height: 30px;
    border-radius: 4px;
    background: var(--none);
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    cursor: default;
}

.fx-insight table.heatmap td.l {
    background: var(--long);
}

.fx-insight table.heatmap td.s {
    background: var(--short);
}

.fx-insight table.heatmap td.na {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--line);
}

.fx-insight table.heatmap td:hover {
    outline: 2px solid var(--ink);
    outline-offset: -1px;
}

.fx-insight .heat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 12px 0 0;
    font-size: 12.5px;
    color: var(--muted);
}

.fx-insight .heat-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fx-insight .heat-legend i {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    font-style: normal;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
}

.fx-insight .heat-tip {
    position: absolute;
    pointer-events: none;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    padding: 6px 9px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .08s;
    z-index: 5;
}

/* Editorial markers (draft only) */

.fx-insight .todo {
    background: #fff6d6;
    border: 1px dashed #c9a227;
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 13px;
    color: #6b5400;
}

.fx-insight .todo::before {
    content: "Redaktion: ";
    font-weight: 600;
}

.fx-insight .editnote {
    background: #fff6d6;
    border: 1px dashed #c9a227;
    border-radius: 10px;
    padding: 16px 22px;
    margin: 40px 0 0;
    font-size: 14px;
    color: #6b5400;
}

.fx-insight .editnote p {
    margin: 0 0 6px;
}

.fx-insight .editnote p:last-child {
    margin: 0;
}

/* Sidebar */

.fx-insight .side .date {
    font-size: 15px;
    margin: 0 0 30px;
}

.fx-insight .side .h {
    font: 500 22px/1.5 "FX Bitter",serif;
    margin: 0 0 16px;
}

.fx-insight .avatar {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg,#d8d4cc,#c7c1b5);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a7468;
    font-size: 13px;
}

.fx-insight .side .who {
    font-size: 15px;
    margin: 10px 0 34px;
}

.fx-insight .sticky {
    position: sticky;
    top: 24px;
}

.fx-insight .glance {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 26px;
}

.fx-insight .glance div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #eee;
    font-size: 13.5px;
}

.fx-insight .glance div:last-child {
    border: 0;
}

.fx-insight .glance b {
    font: 500 16px "FX Bitter",serif;
    color: var(--navy);
    white-space: nowrap;
}

.fx-insight .toc {
    font-size: 13.5px;
    line-height: 1.5;
    padding: 0;
    list-style: none;
    counter-reset: t;
}

.fx-insight .toc li {
    counter-increment: t;
    margin: 0 0 8px;
}

.fx-insight .toc li::before {
    content: counter(t,decimal-leading-zero) "  ";
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.fx-insight .toc a {
    text-decoration: none;
    color: var(--ink);
}

.fx-insight .toc a:hover {
    color: var(--navy);
    text-decoration: underline;
}

/* Disclaimer */

.fx-insight .disclaimer {
    font-size: 13px;
    line-height: 1.5;
    font-style: italic;
    margin-top: 46px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: #444;
}

.fx-insight .disclaimer strong {
    font-style: normal;
}

.fx-insight .disclaimer p {
    max-width: none;
}

.fx-insight .sources {
    font-size: 13.5px;
}

/* The shared checkbox and its label occupy one row, even when the text wraps. */
.fx-newsletter .input-hint + div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 15px;
    margin-bottom: 34px;
}

.fx-newsletter .data-privacy-label {
    position: static;
    padding: 1px 0 0;
}

@media (max-width:991px) {
    .fx-insight .side {
        display: flex;
        gap: 20px;
        align-items: center;
        flex-wrap: wrap;
    }

    .fx-insight .side .sticky {
        position: static;
    }

    .fx-insight .side .avatar,
    .fx-insight .glance,
    .fx-insight .toc,
    .fx-insight .side .h {
        display: none;
    }

    .fx-insight .side .sticky {
        display: flex;
        gap: 10px;
        align-items: baseline;
    }

    .fx-insight .side .date::after {
        content: " ·";
    }

    .fx-insight .side .date,
    .fx-insight .side .who {
        margin: 0;
    }

    .fx-insight .summary {
        padding: 22px 24px;
    }

    .fx-insight .facts {
        grid-template-columns: 1fr 1fr;
    }

    .fx-insight .kpis {
        grid-template-columns: 1fr 1fr;
    }

    .fx-insight .hyp {
        grid-template-columns: 1fr;
    }

    .fx-insight h1 {
        font-size: 27px;
    }

    .fx-insight .dek {
        font-size: 19px;
    }

    .fx-insight .heat-ctrl .rng {
        display: none;
    }

    .fx-insight .heat-ctrl output {
        font-size: 18px;
        min-width: 2.6em;
    }

    .fx-insight table.heatmap thead th {
        font-size: 9.5px;
    }

    .fx-insight table.heatmap tbody th {
        width: 34px;
        font-size: 11px;
    }

    .fx-insight table.heatmap td {
        height: 26px;
        font-size: 10.5px;
    }
}

@media (max-width: 425px) {
    .fx-insight .facts {
        grid-template-columns: minmax(0, 1fr);
    }
}
