/* Qubology European Market Explorer. Base, loader and footer rules copied from the Rule 605/606 public site
   (QubologyRule605PublicWebsite/wwwroot/css/app.css) so the two sites share a look; explorer rules follow. */
:root {
    --qb-bg: #1a1a27;
    --qb-logo-bg: #1d1b28;
    --qb-panel: #1e1e2d;
    --qb-panel-2: #252536;
    --qb-card-bg: rgba(255, 255, 255, 0.05);
    --qb-card-bg-strong: rgba(255, 255, 255, 0.07);
    --qb-about-section-bg: #22222f;
    --qb-border: rgba(255, 255, 255, 0.10);
    --qb-text: rgba(255, 255, 255, 0.88);
    --qb-muted: rgba(255, 255, 255, 0.62);
    --qb-blue: #6ba3d8;
    --qb-emphasis-blue: #6BA3D8;
    --qb-green: #13ae80;
    --qb-red: #ff5d63;
    --qb-better: #76a8ff;
    --qb-worse: #ff5d63;
    --qb-amber: #e5aa4e;
    --qb-purple: #7e6fff;
    --qb-sp500-section-rgb: 117, 167, 255;
    --qb-non-sp500-section-rgb: 229, 170, 78;
    --qb-sp500-section-header: rgba(var(--qb-sp500-section-rgb), 0.18);
    --qb-non-sp500-section-header: rgba(var(--qb-non-sp500-section-rgb), 0.18);
    --qb-sp500-section-tint: rgba(var(--qb-sp500-section-rgb), 0.11);
    --qb-non-sp500-section-tint: rgba(var(--qb-non-sp500-section-rgb), 0.11);
    --qb-order-type-market: #3dcb6c;
    --qb-order-type-marketable-limit: #69d98d;
    --qb-order-type-inside-quote-limit: #75a7ff;
    --qb-order-type-at-quote-limit: #e5aa4e;
    --qb-order-type-near-quote-limit: #c29565;
    --qb-order-type-non-marketable-limit: var(--qb-order-type-near-quote-limit);
    --qb-order-type-directed: #171a22;
    --qb-card-radius: 6px;
    --qb-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    --site-max-width: 1180px;
    --site-gutter: clamp(12px, 2vw, 24px);
}

html,
body {
    min-height: 100%;
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: var(--qb-bg);
    color: var(--qb-text);
}

a {
    color: var(--qb-blue);
}

h1:focus {
    outline: none;
}

.eyebrow {
    color: var(--qb-green);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.display-title {
    margin: 4px 0 8px;
    font-size: clamp(2.2rem, 6vw, 5.2rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: 0;
}

.lede {
    max-width: 760px;
    color: var(--qb-muted);
    font-size: 1rem;
}
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
    width: 100%;
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    border-top: 1px solid rgba(255, 93, 99, 0.5);
    background: #1d1d2b;
    color: var(--qb-text);
}

#blazor-error-ui .reload { color: var(--qb-green); }

#blazor-error-ui .dismiss {
    position: absolute;
    top: 0.45rem;
    right: 1rem;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Loading screen: the logo over a faint still of TradeMap's globe, with Blazor's load progress as a thin bar. */
.app-loading {
    position: relative;
    display: grid;
    min-height: 100vh;
    place-content: center;
    justify-items: center;
    gap: 14px;
    overflow: hidden;
    color: var(--qb-muted);
}

/* The still's Europe (64.4% across, 36.4% down the image, as in site.js) sits behind the logo. */
.app-loading::before {
    --s: min(1100px, 140vw);
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/europe-night.webp") no-repeat;
    background-size: var(--s);
    background-position: calc(50% - 0.144 * var(--s)) calc(50% + 0.136 * var(--s));
    opacity: 0.35;
    -webkit-mask-image: radial-gradient(circle min(360px, 45vw) at 50% 50%, #000 40%, transparent);
    mask-image: radial-gradient(circle min(360px, 45vw) at 50% 50%, #000 40%, transparent);
}

.app-loading > * { position: relative; }
.app-loading-logo { width: 200px; }
.app-loading p { margin: 0; font-size: .9rem; }
.app-loading-bar { width: 200px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }

.app-loading-bar i {
    display: block;
    width: var(--blazor-load-percentage, 0%);
    height: 100%;
    background: var(--qb-green);
    transition: width 0.1s ease-out;
}
.site-footer {
    width: 100%;
    padding: 12px var(--site-gutter) 28px;
    color: var(--qb-muted);
}

.qubology-footer-research {
    display: grid;
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 5px;
    font-size: .76rem;
    line-height: 1.45;
}

.qubology-footer-research-brand {
    grid-row: 1 / span 2;
    padding-right: 18px;
    color: var(--qb-text);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, .18);
}

.qubology-footer-research-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.qubology-footer {
    position: relative;
    width: min(100%, var(--site-max-width));
    margin: 0 auto;
    background-color: var(--qb-panel);
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.qubology-footer-gradient-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--qb-blue), transparent);
    opacity: .5;
}

.qubology-footer-content {
    padding: 28px 20px 24px;
}

.qubology-footer-top,
.qubology-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.qubology-footer-brand,
.qubology-footer-actions,
.qubology-footer-icons,
.qubology-footer-meta {
    display: flex;
    align-items: center;
}

.qubology-footer-brand {
    gap: 10px;
    color: rgba(255, 255, 255, .9);
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-decoration: none;
}

.qubology-footer-brand:hover,
.qubology-footer-brand:focus-visible {
    color: var(--qb-blue);
}

.qubology-brand-dot {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--qb-blue);
}

.qubology-footer-actions {
    gap: 26px;
}

.qubology-footer-icons {
    gap: 24px;
}

.qubology-footer-icon-link {
    display: block;
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
}

.qubology-footer-icon-wrap {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: background-color .25s ease;
}

.qubology-footer-icon-wrap svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.qubology-footer-icon-link[aria-label="Email"]:hover .qubology-footer-icon-wrap,
.qubology-footer-icon-link[aria-label="Email"]:focus-visible .qubology-footer-icon-wrap {
    background-color: var(--qb-blue);
}

.qubology-footer-icon-link[aria-label="LinkedIn"]:hover .qubology-footer-icon-wrap,
.qubology-footer-icon-link[aria-label="LinkedIn"]:focus-visible .qubology-footer-icon-wrap {
    background-color: #0077b5;
}

.qubology-footer-icon-link[aria-label="YouTube"]:hover .qubology-footer-icon-wrap,
.qubology-footer-icon-link[aria-label="YouTube"]:focus-visible .qubology-footer-icon-wrap {
    background-color: #ff0000;
}

.qubology-footer-icon-link[aria-label="RSS"]:hover .qubology-footer-icon-wrap,
.qubology-footer-icon-link[aria-label="RSS"]:focus-visible .qubology-footer-icon-wrap {
    background-color: #f26522;
}

.qubology-footer-separator {
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, .1);
}

.qubology-footer-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .5);
    font: inherit;
    font-size: .875rem;
    cursor: pointer;
    transition: color .3s ease;
}

.qubology-footer-link:hover,
.qubology-footer-link:focus-visible {
    color: var(--qb-blue);
}

.qubology-footer-divider {
    height: 1px;
    margin: 18px 0 12px;
    background-color: rgba(255, 255, 255, .05);
}

.qubology-footer-research-divider {
    margin: 14px 0 12px;
}

.qubology-footer-bottom {
    color: rgba(255, 255, 255, .3);
    font-size: .76rem;
}

.qubology-footer-meta {
    gap: 18px;
    white-space: nowrap;
}

.cookie-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .58);
}

.cookie-dialog {
    width: min(100%, 520px);
    max-height: min(84vh, 760px);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: var(--qb-panel);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .44);
    color: var(--qb-text);
}

.cookie-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 12px;
}

.cookie-dialog-header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    letter-spacing: 0;
}

.cookie-dialog-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .75);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.cookie-policy-content {
    overflow-y: auto;
    padding: 0 22px 8px;
    color: var(--qb-muted);
    font-size: .92rem;
    line-height: 1.5;
}

.cookie-policy-content h3 {
    margin: 22px 0 8px;
    color: #fff;
    font-size: .98rem;
}

.cookie-policy-content p {
    margin: 0 0 12px;
}

.cookie-policy-content ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.cookie-policy-content li {
    margin-bottom: 8px;
}

.cookie-policy-content hr {
    border: 0;
    height: 1px;
    margin: 14px 0;
    background: rgba(255, 255, 255, .08);
}

.cookie-dialog-actions {
    display: flex;
    justify-content: flex-end;
    padding: 14px 22px 20px;
}

.cookie-dialog-confirm {
    border: 1px solid rgba(107, 163, 216, .75);
    border-radius: 6px;
    background: rgba(107, 163, 216, .22);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 8px 14px;
}
@media (max-width: 700px) {
    .qubology-footer-research {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    .qubology-footer-research-brand {
        grid-row: auto;
        padding-right: 0;
        padding-bottom: 8px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }

    .qubology-footer-content {
        padding: 24px 18px;
    }

    .qubology-footer-top,
    .qubology-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .qubology-footer-actions {
        flex-wrap: wrap;
        gap: 18px;
    }

    .qubology-footer-icons {
        gap: 14px;
    }

    .qubology-footer-separator {
        display: none;
    }

    .qubology-footer-meta {
        flex-wrap: wrap;
        gap: 8px 14px;
        white-space: normal;
    }
}

/* Legacy series break: months estimated from amended Rule 605 reports (August 2026 onwards). */
.legacy-estimate-notice {
}

/* Command panels (also used outside the home page). */
.command-panel {
    position: relative;
    overflow: hidden;
    padding: 0 20px 18px;
    border: 1px solid rgba(107, 163, 216, .27);
    border-radius: 4px;
    background: #20202f;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .22), inset 0 0 22px rgba(58, 210, 220, .025);
}

.command-panel::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 38%;
    height: 2px;
    background: #39d7df;
    box-shadow: 0 0 12px rgba(57, 215, 223, .55);
    content: "";
}

.command-panel::after {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 20px;
    height: 10px;
    border-right: 1px solid rgba(57, 215, 223, .45);
    border-bottom: 1px solid rgba(57, 215, 223, .45);
    content: "";
}

.command-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 -20px 16px;
    padding: 10px 20px 9px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .025);
    color: var(--qb-blue);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.panel-status-lights {
    display: inline-flex;
    gap: 5px;
}

.panel-status-lights i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
}

.panel-status-lights i:first-child {
    background: var(--qb-green);
    box-shadow: 0 0 7px rgba(19, 174, 128, .7);
}


/* ---- European Market Explorer ---- */

/* Bootstrap's reset, which the Rule 605/606 site gets from bootstrap.min.css. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    line-height: 1.5;
}

:root {
    --site-max-width: 1280px;
    /* Coverage status colours, as on the coverage infographic (brighter for the dark theme). */
    --cov-full: #13ae80;
    --cov-part: #8fd19e;
    --cov-avail: #6ba3d8;
    --cov-paid: #e5aa4e;
    --cov-none: #ff5d63;
    --cov-unk: #8a8a9a;
    --cov-cboe: #a99bff;
    --cov-na: #3b3b4f;
    /* Execution-type colours, as on the venue infographic. */
    --t-lit: #2a78d6;
    --t-auction: #eb6834;
    --t-periodic: #1baf7a;
    --t-dark: #eda100;
    --t-offbook: #e87ba4;
    --t-block: #008300;
    --t-rfq: #00a3b4;
    --t-si: #6250d6;
    --t-otc: #e34948;
    /* Dark Trading's UK retail price moves: RSP fills (LSE off-book reports) in the off-book colour, app-broker SI in sky blue. */
    --t-rsp: #e87ba4;
    --t-appsi: #4fb6f0;
}

.page-wrap {
    width: min(100% - (var(--site-gutter) * 2), var(--site-max-width));
    margin: 0 auto;
    padding: 24px 0 42px;
}

.muted { color: var(--qb-muted); }

.site-page-header {
    margin-bottom: 18px;
}

.site-page-title {
    margin: 4px 0 6px;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 600;
}

.lede a { color: var(--qb-blue); }

/* Tables. */
.table-panel {
    overflow-x: auto;
    padding: 12px 14px;
    border: 1px solid rgba(107, 163, 216, .2);
    border-radius: 4px;
    background: #20202f;
}

.table-panel h2 {
    margin: 0 0 8px;
    color: var(--qb-blue);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
}

.data-table th {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    color: var(--qb-muted);
    font-size: .68rem;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
}

.data-table td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    vertical-align: middle;
}

.data-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .mics { color: var(--qb-muted); font-size: .7rem; }
.data-table .bar-col { width: 34%; min-width: 180px; }
.coverage-table td:nth-child(n+3) { width: 110px; }

.coverage-grid { display: grid; gap: 16px; }

.badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .08);
    color: var(--qb-muted);
    font-size: .62rem;
    font-weight: 800;
}

.badge.r-uk { background: rgba(107, 163, 216, .2); color: #9cc3ea; }
.badge.r-eu { background: rgba(229, 170, 78, .18); color: #f0c37d; }
.badge.r-ch, .badge.r-eea { background: rgba(255, 93, 99, .16); color: #ff9da0; }

.cboe-note { margin-top: 10px; }
.cboe-note p { margin: 0 0 6px; }
.cboe-note ul { margin: 0; padding-left: 18px; }
.badge.days { background: rgba(255, 255, 255, .06); color: var(--qb-muted); font-weight: 700; }

.chg { font-variant-numeric: tabular-nums; white-space: nowrap; }
.chg.up { color: #8fd19e; }
.chg.down { color: #ff9da0; }
.stat em.chg { font-size: .7rem; }

.seg { display: inline-flex; width: max-content; margin: 4px 0 2px; border: 1px solid rgba(126, 111, 255, .5); border-radius: 4px; overflow: hidden; }
.seg button {
    padding: 2px 8px;
    border: 0;
    background: transparent;
    color: var(--qb-muted);
    font-size: .66rem;
    font-weight: 800;
    cursor: pointer;
}
.seg button + button { border-left: 1px solid rgba(126, 111, 255, .5); }
.seg button.on { background: rgba(126, 111, 255, .3); color: #fff; }
.seg button:focus-visible { outline: 2px solid var(--qb-purple); outline-offset: -2px; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 6px; }
.filter-bar .seg { margin: 0; }
.filter-bar .seg button { padding: 4px 12px; font-size: .74rem; }
.seg button:disabled { cursor: default; opacity: .45; }
.filter-select {
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid rgba(126, 111, 255, .5);
    border-radius: 4px;
    background: var(--qb-panel);
    color: var(--qb-text);
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
}
.filter-select:focus-visible { outline: 2px solid var(--qb-purple); outline-offset: 1px; }
.filter-note { margin: 0 0 14px; max-width: 900px; }
.filter-label { color: var(--qb-muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.panel-head .seg { margin: 0; }
.rank-row.si-apa { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 62px 62px; }
.si-foot { margin-top: 8px; }
.stat-tiles .stat { align-content: start; }
.dp-grid > .table-panel { min-width: 0; overflow-x: auto; }

.type-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 12px;
    color: var(--qb-muted);
    font-size: .74rem;
}

.type-legend span { display: inline-flex; align-items: center; gap: 6px; }
.type-legend i { width: 10px; height: 10px; border-radius: 2px; }
.type-legend .chip { width: auto; min-width: 110px; }

.type-bar { display: flex; gap: 2px; height: 12px; }
.type-bar span { min-width: 2px; border-radius: 2px; }

.t-lit { background: var(--t-lit); }
.t-auction { background: var(--t-auction); }
.t-periodic { background: var(--t-periodic); }
.t-dark { background: var(--t-dark); }
.t-offbook { background: var(--t-offbook); }
.t-block { background: var(--t-block); }
.t-rfq { background: var(--t-rfq); }
.t-si { background: var(--t-si); }
.t-otc { background: var(--t-otc); }

/* Query bar and notices. */
.query-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: flex-end;
    margin-bottom: 14px;
}

.query-bar label {
    display: grid;
    gap: 4px;
    color: var(--qb-muted);
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.query-bar input {
    width: 150px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 4px;
    background: #15151f;
    color: #fff;
    font-family: Consolas, "Courier New", monospace;
}

.query-bar button {
    padding: 7px 16px;
    border: 1px solid rgba(19, 174, 128, .7);
    border-radius: 4px;
    background: rgba(19, 174, 128, .2);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.query-bar button:disabled { opacity: .4; cursor: not-allowed; }

.notice {
    padding: 12px 14px;
    border: 1px solid rgba(107, 163, 216, .3);
    border-left: 3px solid var(--qb-blue);
    border-radius: 4px;
    background: rgba(107, 163, 216, .08);
    color: var(--qb-muted);
    font-size: .88rem;
    line-height: 1.5;
}

.price-chart {
    display: block;
    width: 100%;
    height: 220px;
    margin-bottom: 12px;
}

.price-chart .range { stroke: rgba(107, 163, 216, .45); stroke-width: .5; vector-effect: non-scaling-stroke; }
.price-chart .close-line { fill: none; stroke: var(--qb-green); stroke-width: 2; vector-effect: non-scaling-stroke; }
.price-chart .close-dot { fill: var(--qb-green); }

.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.about-grid p { margin: 0 0 10px; color: var(--qb-muted); line-height: 1.55; }

/* Navigation links (NavLink renders in its own component, so these are global, as on the Rule 605/606 site). */
.site-nav-link {
    color: rgba(225, 232, 245, 0.72);
    text-decoration: none;
    padding: 14px 12px;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.site-nav-link:hover,
.site-nav-link.active {
    color: #fff;
    border-bottom-color: var(--qb-green);
    text-decoration: none;
}

/* Market at a glance strip (home page). */
.glance {
    padding: 12px 16px 12px;
    border: 1px solid rgba(107, 163, 216, .22);
    border-radius: 4px;
    background: #20202f;
}

.glance-head {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}

.glance-title {
    color: var(--qb-blue);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.glance-sub {
    color: var(--qb-muted);
    font-size: .74rem;
}

.glance-bar {
    display: flex;
    gap: 2px;
    height: 26px;
    overflow: hidden;
    border-radius: 3px;
}

.glance-bar span {
    min-width: 2px;
}

.glance-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 8px;
    color: var(--qb-muted);
    font-size: .74rem;
}

.glance-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.glance-legend i {
    width: 9px;
    height: 9px;
    border-radius: 2px;
}

.glance-legend b {
    color: #fff;
}

/* Venue detail page. */
.crumbs {
    margin-bottom: 6px;
    color: var(--qb-muted);
    font-size: .76rem;
}

.crumbs a { color: var(--qb-blue); text-decoration: none; }
.crumbs span { margin: 0 4px; }

.venue-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tag {
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: var(--qb-muted);
    font-size: .72rem;
}

.tag.mono { font-family: Consolas, "Courier New", monospace; }

.stat-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.stat {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid rgba(107, 163, 216, .2);
    border-radius: 4px;
    background: #20202f;
}

.stat span { color: var(--qb-muted); font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.stat b { color: #fff; font-family: Consolas, "Courier New", monospace; font-size: 1.3rem; }
.stat em { color: var(--qb-muted); font-size: .72rem; font-style: normal; }

.swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 2px;
    vertical-align: -1px;
}

.small { font-size: .8rem; line-height: 1.5; }

.venue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    margin: 14px 0;
}

.coverage-cells { display: grid; gap: 8px; }
.coverage-cells div { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 10px; align-items: center; font-size: .84rem; }

.neighbours {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 6px 14px;
}

.neighbours > span {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 8px;
    align-items: center;
    padding: 4px 0;
    color: var(--qb-text);
    font-size: .82rem;
}

.venue-page .table-panel + .table-panel { margin-top: 14px; }

a.row-link { color: inherit; text-decoration: none; }
a.row-link:hover b { color: var(--qb-green); }

@media (max-width: 760px) {
    .stat-tiles { grid-template-columns: 1fr 1fr; }
}

/* Dark pools & SIs page. */
.dp-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr);
    gap: 14px;
    align-items: start;
}

.rank-row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 70px;
    gap: 10px;
    align-items: center;
    padding: 3px 0;
    font-size: .8rem;
}

.rank-row a { overflow: hidden; color: var(--qb-text); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.rank-row a:hover { color: var(--qb-green); }
.rank-row .num, .si-row .num { text-align: right; font-variant-numeric: tabular-nums; }

.rank-bar {
    display: block;
    height: 9px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, .05);
}

.rank-bar span { display: block; height: 100%; border-radius: 2px; }

.tiny { font-size: .68rem; margin: -2px 0 4px; }
.mono { font-family: Consolas, "Courier New", monospace; }

.si-panel { margin-top: 14px; }

.si-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 28px;
}

.si-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 44px minmax(60px, 1fr) 54px;
    gap: 8px;
    align-items: center;
    padding: 3px 0;
    font-size: .8rem;
}

.si-name { overflow: hidden; color: var(--qb-text); text-overflow: ellipsis; white-space: nowrap; }

.si-type {
    padding: 1px 0;
    border-radius: 3px;
    font-size: .62rem;
    font-weight: 800;
    text-align: center;
}

.si-type.bank { background: rgba(255, 255, 255, .08); color: var(--qb-muted); }
.si-type.mm { background: rgba(126, 111, 255, .22); color: #b9b0ff; }

.si-sub { margin-top: 16px !important; }

.uk-si-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 4px 18px;
    color: var(--qb-muted);
    font-size: .8rem;
}

.uk-si-grid b { display: inline-block; width: 46px; color: #fff; }

@media (max-width: 980px) {
    .dp-grid, .si-list { grid-template-columns: 1fr; }
}

/* City breakdown panel (home page): trading in the stocks listed there, by section. */
.mp { display: grid; gap: 8px; }
.mp-empty { margin: 0; color: var(--qb-muted); font-size: .78rem; }

.mp-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}

.mp-head div { display: grid; gap: 1px; }
.mp-head div:last-child { text-align: right; }
.mp-head b { color: #fff; font-family: Consolas, "Courier New", monospace; font-size: 1.15rem; }
.mp-head span { color: var(--qb-muted); font-size: .62rem; font-weight: 700; text-transform: uppercase; }

.mp-bar { height: 12px; }

.mp-note {
    margin: 0;
    padding: 6px 8px;
    border-left: 2px solid var(--qb-amber);
    background: rgba(229, 170, 78, .08);
    color: var(--qb-muted);
    font-size: .7rem;
    line-height: 1.4;
}

.mp-sec {
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.mp-sec header,
.mp-v {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px 42px;
    gap: 6px;
    align-items: center;
}

.mp-sec header {
    margin-bottom: 3px;
    color: #fff;
    font-size: .74rem;
    font-weight: 800;
}

.mp-sec header span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.mp-sec header i { width: 9px; height: 9px; border-radius: 2px; }

.mp-v {
    grid-template-areas: "name value pct" "bar bar bar";
    row-gap: 1px;
    padding: 2px 0 2px 15px;
    font-size: .7rem;
}

.mp-vn { grid-area: name; overflow: hidden; color: var(--qb-text); text-overflow: ellipsis; white-space: nowrap; }
.mp-v .num, .mp-sec header .num { text-align: right; font-variant-numeric: tabular-nums; }
.mp-v .num:nth-child(2) { grid-area: value; }
.mp-v .pct { grid-area: pct; color: var(--qb-muted); }
.mp-v.home .mp-vn { color: #fff; font-weight: 700; }
.mp-v.home .mp-vn::after { content: " · home"; color: var(--qb-green); font-weight: 400; font-size: .62rem; }

.mp-vbar {
    grid-area: bar;
    height: 3px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, .05);
}

.mp-vbar span { display: block; height: 100%; border-radius: 2px; }

/* Compact breakdown for the map hover box. */
.mp-compact { gap: 5px; }
.mp-compact .mp-head b { font-size: .98rem; }
.mp-compact .mp-head span { font-size: .56rem; }
.mp-compact .mp-bar { height: 8px; }
.mp-compact .mp-note { padding: 4px 6px; font-size: .62rem; }
.mp-compact .mp-sec { padding-top: 3px; }
.mp-compact .mp-sec header { margin-bottom: 1px; font-size: .66rem; grid-template-columns: minmax(0, 1fr) 50px 36px; }
.mp-compact .mp-v { padding: 0 0 0 15px; font-size: .62rem; grid-template-columns: minmax(0, 1fr) 50px 36px; grid-template-areas: "name value pct"; }
.mp-vbar.hidden { display: none; }

/* (i) links to the Methodology page, as the Rule 605 site's info icons. */
.info-link {
    display: inline-grid;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-left: 6px;
    place-items: center;
    color: #d9e2f3;
    border: 1px solid rgba(217, 226, 243, .38);
    border-radius: 50%;
    background: rgba(217, 226, 243, .1);
    font-size: .64rem;
    font-weight: 900;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    vertical-align: middle;
}
.info-link:hover, .info-link:focus-visible { color: #fff; border-color: var(--qb-green); background: rgba(19, 174, 128, .22); }

/* Methodology page content (the hero and tabs are in Pages/Methodology.razor.css). */
.methodology-panel p, .methodology-panel li { color: var(--qb-muted); line-height: 1.6; }
.methodology-panel p { margin: 0 0 10px; max-width: 860px; }
.methodology-panel ul { margin: 0 0 10px; padding-left: 20px; max-width: 860px; }
.methodology-panel li { margin-bottom: 6px; }
.methodology-panel strong { color: var(--qb-text); }
.methodology-subtitle { margin: 22px 0 8px; color: var(--qb-green); font-size: 1rem; font-weight: 850; }
.methodology-subtitle:first-child { margin-top: 0; }
.methodology-anchor { scroll-margin-top: 96px; }
.methodology-anchor:target { color: #8ff0d5; }
.glossary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.definition {
    padding: 16px;
    background: var(--qb-card-bg);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--qb-card-radius);
    scroll-margin-top: 96px;
}
.definition:target { border-color: rgba(19, 174, 128, .6); }
.definition h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--qb-blue); font-size: inherit; font-weight: 850; letter-spacing: 0; }
.definition p { margin: 0; color: var(--qb-muted); line-height: 1.55; }

@media (max-width: 760px) {
    .glossary-grid { grid-template-columns: 1fr; }
}

/* TradeMap's hero runs under the header (js/trademap-globe.js sets body.tm-orbit), so the header fades into the globe until
   the page scrolls. The mobile menu stays above the hero. */
body.tm-orbit .site-header {
    border-bottom-color: rgba(255, 255, 255, .05);
    background: linear-gradient(to bottom, rgba(20, 20, 32, .6), rgba(20, 20, 32, 0));
    backdrop-filter: none;
    transition: background-color .2s;
}

body.tm-orbit.tm-scrolled .site-header {
    border-bottom-color: rgba(255, 255, 255, .08);
    background: rgba(26, 26, 39, .88);
    backdrop-filter: blur(14px);
}

body.tm-orbit .site-nav-wrap { position: relative; z-index: 19; }

/* The night-globe backdrop (Components/GlobeBackdrop.razor), for the pages that opt in: a still of TradeMap's globe
   (img/europe-night*.webp, 26 KB, 59 KB on high-density screens) runs under the see-through header. qubology.orbit
   (js/site.js) pulls the stage up and sizes and places the still exactly where TradeMap draws its live globe
   (--globe-w/-h/-x/-y), with TradeMap's fade to the right (--globe-fade-*), so the Earth stays put between pages; lower down
   it fades out by the globe's foot (--globe-vfade-*). As on TradeMap, a dark fade from the left keeps the text readable.
   The page's hero is the first .page-wrap in the backdrop, with the class globe-hero. */
.globe-stage { position: relative; overflow: hidden; }
.globe-earth {
    position: absolute;
    inset: 0;
    background: url("../img/europe-night.webp") no-repeat;
    background-image: image-set(url("../img/europe-night.webp") 1x, url("../img/europe-night@2x.webp") 2x);
    background-position: var(--globe-x, 100%) var(--globe-y, 0);
    background-size: var(--globe-w, 1100px) var(--globe-h, 1100px);
    pointer-events: none;
    -webkit-mask-image:
        linear-gradient(to bottom, #000 var(--globe-vfade-from, 72%), transparent var(--globe-vfade-to, 100%)),
        linear-gradient(to right, #000 var(--globe-fade-from, 100%), transparent var(--globe-fade-to, 100%));
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to bottom, #000 var(--globe-vfade-from, 72%), transparent var(--globe-vfade-to, 100%)),
        linear-gradient(to right, #000 var(--globe-fade-from, 100%), transparent var(--globe-fade-to, 100%));
    mask-composite: intersect;
}
@media (min-width: 861px) {
    .globe-earth { opacity: .8; }
}
/* GlobeBackdrop Covered: the fifteen countries, tinted and outlined in green, laid over the still in the same frame
   (tools/EuropeExplorer/build_globe_covered.py). */
.globe-covered .globe-earth {
    background-image: url("../img/europe-covered.webp"), url("../img/europe-night.webp");
    background-image: image-set(url("../img/europe-covered.webp") 1x, url("../img/europe-covered@2x.webp") 2x),
        image-set(url("../img/europe-night.webp") 1x, url("../img/europe-night@2x.webp") 2x);
}
.globe-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(26, 26, 39, .94) 0, rgba(26, 26, 39, .94) var(--globe-text-left, 0px),
        rgba(26, 26, 39, .75) calc(var(--globe-text-left, 0px) + 360px), rgba(26, 26, 39, 0) calc(var(--globe-text-left, 0px) + 660px));
}
/* The heading starts where TradeMap's does (its hero's 36 px top padding). */
.globe-hero { position: relative; z-index: 1; min-height: 400px; padding: 37px 0 30px; }
.globe-hero-text { max-width: 600px; }
.globe-hero-text .lede { margin: 0 0 12px; color: var(--qb-text); line-height: 1.65; }
.globe-hero-text .lede + .lede { color: var(--qb-muted); }
/* Content after the hero sits over the globe's foot. */
.globe-stage > .page-wrap:not(.globe-hero) { position: relative; z-index: 1; }

/* Phones and narrow tablets, as on TradeMap: the globe is a banner above the text, sized by the hero's 210 px top padding. */
@media (max-width: 860px) {
    .globe-stage::after { display: none; }
    .globe-hero { min-height: 0; padding-top: 210px; }
}

/* Popovers (TradeMap's HHI help) dim the page behind them; ::backdrop needs a global rule, as scoped CSS cannot reach it. */
[popover]::backdrop { background: rgba(0, 0, 0, .35); }

/* Tabs joined to the panel below (Methodology, Dark Trading): the open tab takes the panel's colour and covers its top border. */
.mx-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 4px;
    margin-bottom: -1px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-margin-top: 84px;
}
.mx-tabs::-webkit-scrollbar { display: none; }

.mx-tab {
    flex: 0 0 auto;
    padding: 12px 18px 11px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, .03);
    color: var(--qb-muted);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}
.mx-tab:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.mx-tab:focus-visible { outline: 2px solid var(--qb-green); outline-offset: -2px; }
.mx-tab.on {
    border-color: rgba(107, 163, 216, .28);
    background: rgba(32, 32, 47, .64);
    color: var(--qb-green);
    box-shadow: inset 0 2px 0 var(--qb-green);
}

.mx-panel {
    padding: 22px 24px 14px;
    border: 1px solid rgba(107, 163, 216, .28);
    border-radius: 0 8px 8px 8px;
    background: rgba(32, 32, 47, .64);
}

@media (max-width: 760px) {
    .mx-tab { padding: 10px 13px 9px; font-size: .68rem; letter-spacing: .08em; }
    .mx-panel { padding: 16px 14px 8px; border-radius: 0 0 8px 8px; }
}

/* A venue table's HHI heading, a button that opens its explanation (HhiHelp). */
.hhi-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.hhi-btn:hover { color: #fff; }
.hhi-btn i { display: inline-grid; place-items: center; width: 13px; height: 13px; border: 1px solid currentColor; border-radius: 50%; font-size: .58rem; font-style: normal; font-weight: 800; line-height: 1; }
