/* Markets navigation destinations: visual parity with the redesigned Korthos data pages. */
:root {
    --markets-paper: #efeee9;
    --markets-stone: #efeee7;
    --markets-stone-deep: #e7e5dc;
    --markets-inset: #fdfcf9;
    --markets-line: rgba(17, 16, 13, 0.10);
    --markets-line-strong: rgba(17, 16, 13, 0.16);
    --markets-ink: #11100d;
    --markets-muted: #706d65;
    --markets-green: #2f684d;
    --markets-green-soft: #dfeee4;
    --markets-red: #a4473c;
    --markets-red-soft: #f2e2dc;
    --markets-blue-soft: #e3eaf1;
    --markets-gold-soft: #f1ead8;
    --markets-lilac-soft: #ece5ef;
    --markets-radius: 22px;
    --markets-control-radius: 8px;
    --markets-shadow: 0 12px 30px rgba(40, 37, 30, 0.045);
}

body.page-markets,
body.page-markets-overview {
    background: var(--markets-paper) !important;
    background-color: var(--markets-paper) !important;
    color: var(--markets-ink);
    font-family: var(--site-body, Inter, ui-sans-serif, system-ui, sans-serif);
}

/* Markets pages already expose a dedicated Submit path; never overlay the global floating feedback fallback. */
html body.page-markets .korthos-feedback--floating,
html body.page-markets-overview .korthos-feedback--floating {
    display: none !important;
}

html:has(body.page-markets),
html:has(body.page-markets-overview) {
    background: var(--markets-paper) !important;
    background-color: var(--markets-paper) !important;
}

/* Body-led hierarchy: one type system, sentence case, compact editorial rhythm. */
body.page-markets .page-title,
body.page-markets-overview .markets-title,
body.page-markets-overview .title {
    font-family: var(--site-body, Inter, ui-sans-serif, system-ui, sans-serif) !important;
    font-size: clamp(42px, 4.65vw, 60px) !important;
    font-weight: 650 !important;
    letter-spacing: -0.052em !important;
    line-height: 0.98 !important;
    text-transform: none !important;
    color: var(--markets-ink) !important;
}

body.page-markets .page-title .break-mobile { display: none; }

body.page-markets .markets-deck {
    max-width: 58ch;
    margin-top: 14px;
    color: #45423c;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.55;
}

body.page-markets .markets-header-actions,
body.page-markets-overview .markets-hero-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 18px;
}

body.page-markets .markets-submit-action,
body.page-markets-overview .markets-submit-action {
    min-width: 74px;
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #171613;
    color: #fff;
    font: 700 11px/1 var(--site-body, Inter, ui-sans-serif, system-ui, sans-serif);
    letter-spacing: 0.01em;
    text-transform: none;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(17, 16, 13, 0.10);
    transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

body.page-markets .markets-submit-action:hover,
body.page-markets-overview .markets-submit-action:hover {
    background: #050504;
    box-shadow: 0 8px 18px rgba(17, 16, 13, 0.14);
    transform: translateY(-1px);
}

body.page-markets .markets-submit-action:focus-visible,
body.page-markets-overview .markets-submit-action:focus-visible {
    outline: 2px solid var(--markets-green);
    outline-offset: 3px;
}

body.page-markets .markets-header-meta,
body.page-markets-overview .markets-meta {
    font-family: inherit;
    color: var(--markets-muted);
}

body.page-markets .markets-header-meta dt,
body.page-markets-overview .markets-meta dt {
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.055em;
    text-transform: none;
    color: var(--markets-muted);
}

body.page-markets .markets-header-meta dd,
body.page-markets-overview .markets-meta dd {
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--markets-ink);
}

/* Compact 44 / 42 controls and warm-white open menus. */
body.page-markets .fm-k-select,
body.page-markets-overview .fm-k-select,
body.page-markets-overview .markets-select {
    min-height: 44px !important;
    border-radius: var(--markets-control-radius) !important;
}

body.page-markets .fm-k-select__button,
body.page-markets-overview .fm-k-select__button,
body.page-markets-overview .markets-select-button,
body.page-markets .market-ctl input[type="search"],
body.page-markets .market-ctl select,
body.page-markets .markets-rows-control select,
body.page-markets-overview .markets-ref-select,
body.page-markets-overview .country-input {
    height: 42px !important;
    min-height: 42px !important;
    border: 1px solid var(--markets-line-strong) !important;
    border-radius: 7px !important;
    background: var(--markets-inset) !important;
    color: #24221e !important;
    font-family: var(--site-body, Inter, ui-sans-serif, system-ui, sans-serif) !important;
    font-size: 12px !important;
    font-weight: 550 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow: none !important;
}

body.page-markets .fm-k-select__button,
body.page-markets-overview .fm-k-select__button,
body.page-markets-overview .markets-select-button { padding: 0 38px 0 13px !important; }

body.page-markets .fm-k-select__panel,
body.page-markets-overview .fm-k-select__panel,
body.page-markets .fm-k-select__menu,
body.page-markets-overview .fm-k-select__menu,
body.page-markets-overview .markets-select-menu,
body.page-markets-overview .markets-select-popover {
    padding: 6px !important;
    border: 1px solid var(--markets-line-strong) !important;
    border-radius: 10px !important;
    background: #fffefb !important;
    box-shadow: 0 16px 38px rgba(31, 29, 24, 0.14) !important;
}

body.page-markets .fm-k-select__option,
body.page-markets-overview .fm-k-select__option,
body.page-markets-overview .markets-select-option {
    min-height: 34px !important;
    padding: 8px 10px !important;
    border-radius: 6px !important;
    color: #34312c !important;
    font-family: var(--site-body, Inter, ui-sans-serif, system-ui, sans-serif) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.page-markets .fm-k-select__option:hover,
body.page-markets-overview .fm-k-select__option:hover,
body.page-markets-overview .markets-select-option:hover { background: #f1efe8 !important; }

body.page-markets .fm-k-select__option.is-active,
body.page-markets-overview .fm-k-select__option.is-active,
body.page-markets-overview .markets-select-option.is-active {
    background: var(--markets-green-soft) !important;
    color: #194f38 !important;
    font-weight: 650 !important;
}

body.page-markets .range-prefix,
body.page-markets .market-ctl label,
body.page-markets .market-ctl-label,
body.page-markets-overview .range-prefix {
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.035em !important;
    text-transform: none !important;
    color: var(--markets-muted) !important;
}

/* Public Companies */
body.page-markets .markets-page.page-content {
    width: min(calc(100% - 48px), 1216px);
    max-width: none;
    padding: 42px 0 64px;
}

body.page-markets .markets-band--header.kff-hero {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 30px !important;
    padding: 0 2px 30px;
}

body.page-markets .markets-header-actions { min-width: 280px; }
body.page-markets .markets-header-meta { padding-top: 2px; }

body.page-markets .markets-band--table {
    margin-top: 0;
    padding: 20px;
    border: 0;
    border-radius: var(--markets-radius);
    background: var(--markets-stone);
    box-shadow: var(--markets-shadow);
}

body.page-markets .markets-data-block { background: transparent; }

body.page-markets .markets-controls-panel {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid rgba(17, 16, 13, 0.075);
    border-radius: 13px;
    background: rgba(255, 254, 251, 0.72);
}

body.page-markets .markets-controls-row.kff-controls {
    grid-template-columns: 104px minmax(210px, .95fr) minmax(170px, .76fr) minmax(210px, 1fr) minmax(190px, .86fr);
    gap: 10px 12px;
}

body.page-markets .market-ctl input[type="search"] { padding: 0 13px !important; }
body.page-markets #filter-search {
    height: 42px !important;
    min-height: 42px !important;
    border: 1px solid var(--markets-line-strong) !important;
    border-radius: 7px !important;
    background: var(--markets-inset) !important;
    font-family: inherit !important;
    font-size: 12px !important;
}

/* Public Companies uses the same filled field objects as Event Trends. */
html body.page-markets .markets-controls-row .range-prefix,
html body.page-markets .markets-controls-row .market-ctl > label,
html body.page-markets .markets-controls-row .market-ctl > .market-ctl-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

html body.page-markets .markets-controls-row .fm-filter-group,
html body.page-markets .markets-controls-row .fm-k-select,
html body.page-markets .markets-controls-row .market-ctl--search,
html body.page-markets .markets-controls-row .markets-sort-stack {
    min-height: 42px !important;
    border: 1px solid transparent !important;
    border-radius: 13px !important;
    background: #efeee8 !important;
    box-shadow: none !important;
}

html body.page-markets .markets-controls-row .fm-k-select__button,
html body.page-markets .markets-controls-row .window-input,
html body.page-markets #filter-search,
html body.page-markets #sort-key-select,
html body.page-markets #markets-mobile-sort-select {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 36px 0 14px !important;
    border: 1px solid transparent !important;
    border-radius: 13px !important;
    background-color: #efeee8 !important;
    color: var(--markets-ink) !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    box-shadow: none !important;
}

html body.page-markets .markets-controls-row .fm-filter-group:hover,
html body.page-markets .markets-controls-row .fm-filter-group:focus-within,
html body.page-markets .markets-controls-row .market-ctl--search:hover,
html body.page-markets .markets-controls-row .market-ctl--search:focus-within,
html body.page-markets .markets-controls-row .markets-sort-stack:hover,
html body.page-markets .markets-controls-row .markets-sort-stack:focus-within {
    border-color: transparent !important;
    background-color: #e7ebe5 !important;
}

html body.page-markets .markets-controls-row .fm-filter-group:focus-within,
html body.page-markets .markets-controls-row .market-ctl--search:focus-within,
html body.page-markets .markets-controls-row .markets-sort-stack:focus-within {
    box-shadow: 0 0 0 3px rgba(47, 104, 77, 0.12) !important;
}

html body.page-markets .fm-k-select__menu,
html body.page-markets-overview .fm-k-select__menu,
html body.page-markets-overview .markets-select-menu {
    max-height: min(360px, calc(100vh - 150px)) !important;
    padding: 8px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    border: 1px solid rgba(17, 16, 13, 0.10) !important;
    border-radius: 15px !important;
    background: #fffefb !important;
    box-shadow: 0 18px 42px rgba(31, 29, 24, 0.15) !important;
    scrollbar-width: none !important;
}

html body.page-markets .fm-k-select__menu::-webkit-scrollbar,
html body.page-markets-overview .fm-k-select__menu::-webkit-scrollbar,
html body.page-markets-overview .markets-select-menu::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html body.page-markets .fm-k-select__option,
html body.page-markets-overview .fm-k-select__option,
html body.page-markets-overview .markets-select-option {
    min-height: 38px !important;
    padding: 9px 12px !important;
    border-radius: 10px !important;
}

html body.page-markets .markets-rows-control .fm-k-select,
html body.page-markets .markets-rows-control .fm-k-select__button {
    height: 36px !important;
    min-height: 36px !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    background: #efeee8 !important;
}

body.page-markets .scope-segmented,
body.page-markets .sort-toggle {
    min-height: 42px;
    padding: 3px;
    border: 1px solid var(--markets-line-strong);
    border-radius: 8px;
    background: var(--markets-inset);
}

body.page-markets .scope-seg-btn,
body.page-markets .sort-opt {
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #5d5952 !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.page-markets .scope-seg-btn:hover,
body.page-markets .sort-opt:hover { background: #eeece5 !important; color: var(--markets-ink) !important; }

body.page-markets .scope-seg-btn.is-active,
body.page-markets .sort-opt.is-active {
    background: #171613 !important;
    color: #fff !important;
}

body.page-markets .markets-table-heading {
    margin: 4px 2px 12px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
}

body.page-markets .markets-table-wrap {
    overflow: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.page-markets .markets-table {
    border-collapse: separate;
    border-spacing: 0 8px;
    background: transparent;
    font-family: var(--site-body, Inter, system-ui, sans-serif);
}
body.page-markets .markets-table thead { background: transparent; }
body.page-markets .markets-table th {
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 680;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    color: #5e5a52;
    border-bottom: 0;
}

body.page-markets .markets-table tbody tr {
    min-height: 70px;
    transition: transform 140ms ease;
}
body.page-markets .markets-table tbody td {
    height: 70px;
    padding-top: 9px;
    padding-bottom: 9px;
    border: 0;
    background: #fffefa !important;
    background-clip: padding-box;
    font-family: var(--site-body, Inter, system-ui, sans-serif);
    font-size: 12px;
    transition: background-color 140ms ease, box-shadow 140ms ease;
}
body.page-markets .markets-table tbody td:first-child {
    border-radius: 12px 0 0 12px;
}
body.page-markets .markets-table tbody td:last-child {
    border-radius: 0 12px 12px 0;
}
body.page-markets .markets-table tbody tr:hover td {
    background: #fffdfa !important;
    box-shadow: none;
}
body.page-markets .markets-table tbody tr:hover .company-name {
    letter-spacing: 0.006em;
}
body.page-markets .markets-table .col-rank { width: 32px; }
body.page-markets .markets-table .col-brand { width: 68px; }
body.page-markets .markets-table .col-ticker { width: 74px; }
body.page-markets .markets-table .col-hq { width: 42px; }
body.page-markets .markets-table .col-segment { width: 108px; }
body.page-markets .markets-table .col-mcap { width: 74px; }
body.page-markets .markets-table .col-price { width: 60px; }
body.page-markets .markets-table .col-chg { width: 70px; }
body.page-markets .markets-table .col-chg-ytd { width: 84px; }
body.page-markets .markets-table .col-trend { width: 124px; }
body.page-markets .markets-brand-frame {
    width: 60px;
    height: 60px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
}
body.page-markets .markets-brand-frame img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
}
body.page-markets .markets-table .company-name {
    font-family: var(--site-body, Inter, system-ui, sans-serif);
    font-size: 15.5px;
    font-weight: 720;
    line-height: 1.22;
}
body.page-markets .markets-table .markets-company-subline {
    margin-top: 3px;
    font-family: var(--site-body, Inter, system-ui, sans-serif);
    font-size: 10.5px;
    font-weight: 480;
    line-height: 1.2;
    color: #706d65;
}
body.page-markets .markets-table .markets-row-go { display: none; }
body.page-markets .markets-table td.col-ticker {
    font-family: var(--site-body, Inter, system-ui, sans-serif);
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: 0.045em;
}
body.page-markets .markets-table td.col-segment {
    font-family: var(--site-body, Inter, system-ui, sans-serif);
    font-size: 10.5px;
    font-weight: 620;
    line-height: 1.15;
    color: #24563f;
}
body.page-markets .markets-segment-pill {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--markets-green-soft);
    color: #24563f;
    white-space: normal;
}

body.page-markets .markets-table tr[data-segment="DEFENSE"] .markets-segment-pill {
    background: var(--markets-red-soft);
    color: #7d382f;
}
body.page-markets .markets-table tr[data-segment="AERIAL"] .markets-segment-pill,
body.page-markets .markets-table tr[data-segment="DELIVERY"] .markets-segment-pill,
body.page-markets .markets-table tr[data-segment="AUTOMOTIVE"] .markets-segment-pill {
    background: var(--markets-blue-soft);
    color: #334e67;
}
body.page-markets .markets-table tr[data-segment="AI_COMPUTE"] .markets-segment-pill,
body.page-markets .markets-table tr[data-segment="SEMICONDUCTORS"] .markets-segment-pill,
body.page-markets .markets-table tr[data-segment="ELECTRONICS"] .markets-segment-pill,
body.page-markets .markets-table tr[data-segment="SENSORS"] .markets-segment-pill,
body.page-markets .markets-table tr[data-segment="MATERIALS"] .markets-segment-pill {
    background: var(--markets-lilac-soft);
    color: #5a4864;
}
body.page-markets .markets-table tr[data-segment="INDUSTRIAL"] .markets-segment-pill,
body.page-markets .markets-table tr[data-segment="LOGISTICS"] .markets-segment-pill {
    background: var(--markets-gold-soft);
    color: #6e5728;
}
body.page-markets .markets-table tr[data-segment="HUMANOID"] .markets-segment-pill,
body.page-markets .markets-table tr[data-segment="EXOSKELETON"] .markets-segment-pill,
body.page-markets .markets-table tr[data-segment="SURGICAL"] .markets-segment-pill,
body.page-markets .markets-table tr[data-segment="HEALTHCARE"] .markets-segment-pill,
body.page-markets .markets-table tr[data-segment="CONSUMER"] .markets-segment-pill {
    background: var(--markets-green-soft);
    color: #24563f;
}
body.page-markets .markets-table td.col-mcap,
body.page-markets .markets-table td.col-price {
    font-family: var(--site-body, Inter, system-ui, sans-serif);
    font-size: 13px;
    font-weight: 720;
}
body.page-markets .markets-table td.col-chg {
    font-family: var(--site-body, Inter, system-ui, sans-serif);
    font-size: 12px;
    font-weight: 680;
    letter-spacing: 0.02em;
    padding-left: 5px;
    padding-right: 5px;
}
body.page-markets .markets-table th.col-chg {
    padding-left: 5px;
    padding-right: 5px;
}
body.page-markets .markets-table td.col-chg-ytd,
body.page-markets .markets-table th[data-sort="change_ytd"] {
    padding-right: 5px;
}
body.page-markets .markets-table td.col-chg-ytd {
    font-size: 11.5px;
    letter-spacing: 0;
}
body.page-markets .markets-table td.col-trend .market-card-spark {
    width: 96px;
    height: 28px;
}
body.page-markets .markets-table td.col-trend {
    padding-left: 8px;
    padding-right: 4px;
}
body.page-markets .market-card-spark polyline {
    stroke-width: 1.35;
}

body.page-markets .markets-page .home-ftag.home-ftag--mkt-seg,
body.page-markets .markets-page .home-ftag.home-ftag--fund,
body.page-markets .markets-page .home-ftag[class*="home-ftag--tint-"] {
    border-radius: 999px;
    background: var(--markets-green-soft) !important;
    color: #24563f !important;
    font-family: inherit;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

body.page-markets .markets-pagination { border-top-color: var(--markets-line); }
body.page-markets .markets-page-button {
    border-radius: 7px;
    border-color: var(--markets-line-strong);
    background: var(--markets-inset);
}
body.page-markets .markets-page-button:hover { background: #eeece5; }
body.page-markets .markets-page-button.is-active { background: #171613; color: #fff; }

/* Homepage navigation treatment, scoped to the two Markets pages. */
html body.page-markets header.site-header,
html body.page-markets-overview header.site-header {
    position: relative !important;
    inset: auto !important;
    z-index: 30 !important;
    width: 100% !important;
    height: 70px !important;
    min-height: 70px !important;
    margin: 0 !important;
    padding: 0 20px 0 0 !important;
    border: 0 !important;
    background: #efeee9 !important;
    box-shadow: none !important;
}

html body.page-markets header.site-header .home-logo-text,
html body.page-markets-overview header.site-header .home-logo-text {
    font-family: "Korthos Bebas", "Bebas Neue", Impact, system-ui, sans-serif !important;
    font-size: 30px !important;
    font-weight: 400 !important;
    letter-spacing: .075em !important;
    line-height: .94 !important;
    text-transform: uppercase !important;
    color: var(--markets-ink) !important;
    text-shadow: none !important;
}

html body.page-markets header.site-header nav.site-header-nav-desktop,
html body.page-markets-overview header.site-header nav.site-header-nav-desktop {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    min-height: 44px !important;
    padding: 5px !important;
    border: 1px solid rgba(17, 17, 15, 0.055) !important;
    border-radius: 16px !important;
    background: #faf9f6 !important;
    box-shadow: 0 14px 34px -30px rgba(17, 17, 15, 0.58) !important;
}

html body.page-markets header.site-header nav.site-header-nav-desktop > a,
html body.page-markets header.site-header nav.site-header-nav-desktop .nav-dropdown-toggle,
html body.page-markets-overview header.site-header nav.site-header-nav-desktop > a,
html body.page-markets-overview header.site-header nav.site-header-nav-desktop .nav-dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 11px !important;
    color: var(--markets-ink) !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 11px !important;
    font-weight: 760 !important;
    letter-spacing: 0.045em !important;
    text-shadow: none !important;
}

html body.page-markets header.site-header nav.site-header-nav-desktop > a.active,
html body.page-markets header.site-header nav.site-header-nav-desktop .nav-dropdown-toggle.active,
html body.page-markets-overview header.site-header nav.site-header-nav-desktop > a.active,
html body.page-markets-overview header.site-header nav.site-header-nav-desktop .nav-dropdown-toggle.active {
    background: #efeee8 !important;
    box-shadow: 0 8px 20px -18px rgba(17, 17, 15, 0.6) !important;
}

html body.page-markets header.site-header nav.site-header-nav-desktop > a:hover,
html body.page-markets header.site-header nav.site-header-nav-desktop .nav-dropdown-toggle:hover,
html body.page-markets-overview header.site-header nav.site-header-nav-desktop > a:hover,
html body.page-markets-overview header.site-header nav.site-header-nav-desktop .nav-dropdown-toggle:hover {
    color: var(--markets-green) !important;
}

html body.page-markets header.site-header .nav-dropdown-menu,
html body.page-markets-overview header.site-header .nav-dropdown-menu {
    overflow: hidden !important;
    padding: 7px !important;
    border: 1px solid rgba(17, 17, 15, 0.08) !important;
    border-radius: 15px !important;
    background: rgba(250, 249, 246, 0.98) !important;
    box-shadow: 0 22px 54px -34px rgba(17, 17, 15, 0.45) !important;
}

html body.page-markets header.site-header .nav-dropdown-item,
html body.page-markets-overview header.site-header .nav-dropdown-item { border-radius: 9px !important; }

html body.page-markets header.site-header .nav-dropdown-item:hover,
html body.page-markets-overview header.site-header .nav-dropdown-item:hover {
    background: #efeee8 !important;
    color: var(--markets-green) !important;
}

/* Market Overview */
body.page-markets-overview .page-main.fm-page-main {
    max-width: 1296px;
    padding: 0 32px 64px;
}

body.page-markets-overview .fm-page-main .fm-hero-canvas {
    margin: 0;
    padding: 40px 0 24px;
    background: transparent;
}

body.page-markets-overview .markets-top__hero.kff-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 28px;
    padding-bottom: 26px;
}

body.page-markets-overview .markets-hero-actions { min-width: 330px; }

body.page-markets-overview .markets-summary-strip {
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
}

body.page-markets-overview .markets-summary-cell {
    min-height: 112px;
    padding: 18px;
    border: 0 !important;
    border-radius: 18px !important;
    background: var(--markets-stone) !important;
    box-shadow: 0 7px 18px rgba(40, 37, 30, 0.035);
    transition: transform 140ms ease, box-shadow 140ms ease;
}

body.page-markets-overview .markets-summary-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(40, 37, 30, 0.07);
}

body.page-markets-overview .markets-summary-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--markets-blue-soft);
}
body.page-markets-overview .markets-summary-icon--positive { background: var(--markets-green-soft); color: var(--markets-green); }
body.page-markets-overview .markets-summary-icon--negative { background: var(--markets-red-soft); color: var(--markets-red); }

body.page-markets-overview .markets-summary-content > span {
    font-family: inherit;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.035em;
    text-transform: none;
    color: var(--markets-muted);
}

body.page-markets-overview .markets-summary-content strong {
    font-family: inherit;
    letter-spacing: -0.025em;
}

body.page-markets-overview #segment-heatmap,
body.page-markets-overview #segment-performance,
body.page-markets-overview .secondary-market-grid > .market-data-card {
    border: 0 !important;
    border-radius: var(--markets-radius) !important;
    background: var(--markets-stone) !important;
    box-shadow: var(--markets-shadow);
}

/* The overview shell carries legacy high-specificity layout rules; keep these final overrides explicit. */
body.page-markets-overview #segment-heatmap.segment-heatmap-card.mo-section-major,
body.page-markets-overview #segment-performance.mo-segment-spine.segment-chart-capture.mo-section-major {
    margin: 22px 0 0 !important;
    padding: 22px !important;
    border: 0 !important;
    border-radius: var(--markets-radius) !important;
    background: var(--markets-stone) !important;
    box-shadow: var(--markets-shadow) !important;
}

body.page-markets-overview #segment-heatmap .kff-controls .fm-k-select,
body.page-markets-overview #segment-heatmap .kff-controls .fm-k-select__button,
body.page-markets-overview #segment-heatmap .markets-ref-select,
body.page-markets-overview #segment-performance .markets-ref-select {
    height: 42px !important;
    min-height: 42px !important;
    border: 1px solid var(--markets-line-strong) !important;
    border-radius: 7px !important;
    background: var(--markets-inset) !important;
    color: #24221e !important;
    font-family: var(--site-body, Inter, ui-sans-serif, system-ui, sans-serif) !important;
    font-size: 12px !important;
    font-weight: 550 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.page-markets-overview #segment-heatmap .kff-controls .fm-k-select { min-height: 44px !important; }
body.page-markets-overview #segment-heatmap .kff-controls .fm-k-select__menu {
    padding: 6px !important;
    border: 1px solid var(--markets-line-strong) !important;
    border-radius: 10px !important;
    background: #fffefb !important;
    box-shadow: 0 16px 38px rgba(31, 29, 24, 0.14) !important;
}

body.page-markets-overview #segment-heatmap .kff-controls .fm-k-select__option {
    min-height: 34px !important;
    padding: 8px 10px !important;
    border-radius: 6px !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.page-markets-overview #segment-heatmap .kff-controls .fm-k-select__option:hover { background: #f1efe8 !important; }
body.page-markets-overview #segment-heatmap .kff-controls .fm-k-select__option.is-selected,
body.page-markets-overview #segment-heatmap .kff-controls .fm-k-select__option.is-active {
    background: var(--markets-green-soft) !important;
    color: #194f38 !important;
    font-weight: 650 !important;
}

body.page-markets-overview #segment-heatmap,
body.page-markets-overview #segment-performance {
    margin: 22px 0 0 !important;
    padding: 22px !important;
}

body.page-markets-overview .secondary-market-grid {
    gap: 22px;
    margin: 22px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

body.page-markets-overview .secondary-market-grid > .market-data-card { padding: 22px; }

body.page-markets-overview .chart-title-main,
body.page-markets-overview .market-card-title,
body.page-markets-overview .secondary-market-grid h2,
body.page-markets-overview .section-kicker {
    font-family: inherit !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: -0.018em !important;
    line-height: 1.2 !important;
    text-transform: none !important;
}

body.page-markets-overview .chart-title-sub,
body.page-markets-overview .segments-context,
body.page-markets-overview .chart-context-mono {
    font-family: inherit !important;
    font-size: 11px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--markets-muted) !important;
}

body.page-markets-overview .heatmap-scroll,
body.page-markets-overview .segments-chart-wrap,
body.page-markets-overview .market-table-wrap,
body.page-markets-overview .table-wrap {
    border: 1px solid rgba(17, 16, 13, 0.07);
    border-radius: 13px;
    background: var(--markets-inset);
    overflow: auto;
}

body.page-markets-overview .heatmap-card-header,
body.page-markets-overview .section-toolbar {
    border-bottom: 1px solid var(--markets-line) !important;
}

body.page-markets-overview .segment-row,
body.page-markets-overview table td,
body.page-markets-overview table th { border-color: rgba(17, 16, 13, 0.065) !important; }

body.page-markets-overview .segment-row:hover,
body.page-markets-overview tbody tr:hover { background: #f4f2ec; }

body.page-markets-overview .methodology-drawer {
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--markets-green-soft) !important;
    color: #214b37;
}

body.page-markets-overview .methodology-drawer summary,
body.page-markets-overview .methodology-grid,
body.page-markets-overview .methodology-grid strong {
    font-family: inherit !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.page-markets-overview .view-btn,
body.page-markets-overview .range-btn,
body.page-markets-overview .text-toggle,
body.page-markets-overview .share-chart-btn {
    font-family: inherit !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.page-markets-overview .view-btn.active,
body.page-markets-overview .range-btn.active { border-bottom-color: var(--markets-green) !important; }

@media (max-width: 960px) {
    body.page-markets .markets-band--header.kff-hero,
    body.page-markets-overview .markets-top__hero.kff-hero { grid-template-columns: 1fr !important; }
    body.page-markets .markets-header-actions,
    body.page-markets-overview .markets-hero-actions {
        min-width: 0;
        justify-content: space-between;
    }
    body.page-markets .markets-controls-row.kff-controls { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    body.page-markets .markets-controls-row.kff-controls > * { grid-column: auto !important; }
}

@media (max-width: 768px) {
    body.page-markets .markets-page.page-content {
        width: min(calc(100% - 28px), 1216px);
        padding: 28px 0 42px;
    }
    body.page-markets .page-title,
    body.page-markets-overview .markets-title { font-size: clamp(38px, 11vw, 48px) !important; }
    body.page-markets .markets-deck { margin-top: 10px; font-size: 14px; }
    body.page-markets .markets-band--header.kff-hero { padding-bottom: 22px; }
    body.page-markets .markets-header-actions,
    body.page-markets-overview .markets-hero-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 14px;
    }
    body.page-markets .markets-submit-action,
    body.page-markets-overview .markets-submit-action { align-self: flex-start; }
    body.page-markets .markets-header-meta,
    body.page-markets-overview .markets-meta {
        justify-items: start !important;
        text-align: left !important;
    }
    body.page-markets .markets-band--table { padding: 12px; border-radius: 18px; }
    body.page-markets .markets-controls-panel { padding: 10px; }
    body.page-markets .markets-controls-row.kff-controls { grid-template-columns: 1fr !important; }
    body.page-markets .markets-controls-row.kff-controls > * { grid-column: 1 !important; }
    body.page-markets .fm-k-select,
    body.page-markets .fm-k-select__button,
    body.page-markets .market-ctl input[type="search"],
    body.page-markets .market-ctl select { width: 100% !important; }
    body.page-markets-overview .page-main.fm-page-main { padding: 0 14px 42px; }
    body.page-markets-overview .fm-page-main .fm-hero-canvas { padding: 28px 0 18px; }
    body.page-markets-overview .markets-top__hero.kff-hero { padding-bottom: 18px; }
    body.page-markets-overview .markets-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    body.page-markets-overview .markets-summary-cell { min-height: 104px; padding: 14px; }
    body.page-markets-overview #segment-heatmap,
    body.page-markets-overview #segment-performance { padding: 16px !important; border-radius: 18px !important; }
    body.page-markets-overview .secondary-market-grid { grid-template-columns: 1fr !important; }
    body.page-markets-overview .heatmap-card-header,
    body.page-markets-overview .section-toolbar { align-items: flex-start; }
}

/* Controls have one surface only: the interactive element, not nested shells. */
html body.page-markets .markets-controls-row .fm-filter-group,
html body.page-markets .markets-controls-row .fm-k-select,
html body.page-markets .markets-controls-row .market-ctl--search,
html body.page-markets .markets-controls-row .markets-sort-stack {
    min-height: 42px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body.page-markets .markets-controls-row .fm-k-select__button,
html body.page-markets .markets-controls-row .market-ctl--search input,
html body.page-markets .markets-controls-row .markets-sort-stack .fm-k-select__button {
    height: 42px !important;
    min-height: 42px !important;
    border: 1px solid transparent !important;
    border-radius: 13px !important;
    background: #efeee8 !important;
    box-shadow: none !important;
}

html body.page-markets .markets-controls-row .fm-k-select__button:hover,
html body.page-markets .markets-controls-row .market-ctl--search input:hover,
html body.page-markets .markets-controls-row .markets-sort-stack .fm-k-select__button:hover {
    background: #e7ebe5 !important;
}

html body.page-markets .markets-table tbody tr {
    position: relative !important;
    z-index: 0 !important;
    transform: translateY(0) !important;
    filter: drop-shadow(0 0 0 rgba(31, 29, 24, 0)) !important;
    transition: transform 160ms ease, filter 160ms ease !important;
}

html body.page-markets .markets-table tbody tr:hover,
html body.page-markets .markets-table tbody tr:focus-within {
    z-index: 2 !important;
    transform: translateY(-2px) !important;
    filter: drop-shadow(0 8px 10px rgba(31, 29, 24, 0.10)) !important;
}

html body.page-markets .markets-table tbody tr:hover td,
html body.page-markets .markets-table tbody tr:focus-within td {
    background: #fffefb !important;
}

@media (prefers-reduced-motion: reduce) {
    html body.page-markets .markets-table tbody tr {
        transition: none !important;
    }
}

/* Public Companies controls use the lighter Event Trends surface. */
html body.page-markets .markets-controls-row .fm-k-select__button,
html body.page-markets .markets-controls-row .market-ctl--search input,
html body.page-markets #filter-search,
html body.page-markets .markets-controls-row .markets-sort-stack .fm-k-select__button {
    background-color: #fbfaf7 !important;
}

html body.page-markets .markets-controls-row .fm-k-select__button:hover,
html body.page-markets .markets-controls-row .fm-k-select__button:focus-visible,
html body.page-markets .markets-controls-row .fm-k-select.is-open .fm-k-select__button,
html body.page-markets .markets-controls-row .market-ctl--search input:hover,
html body.page-markets .markets-controls-row .market-ctl--search input:focus,
html body.page-markets #filter-search:hover,
html body.page-markets #filter-search:focus,
html body.page-markets .markets-controls-row .markets-sort-stack .fm-k-select__button:hover,
html body.page-markets .markets-controls-row .markets-sort-stack .fm-k-select.is-open .fm-k-select__button {
    background-color: #f6f4ee !important;
}

/* Compact, single-control pagination footer. */
html body.page-markets .markets-pagination {
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr) !important;
    align-items: center !important;
    gap: 18px !important;
    margin-top: 14px !important;
    padding: 14px 0 0 !important;
    border: 0 !important;
    color: #6f6b63 !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 12px !important;
}

html body.page-markets .markets-page-status {
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
}

html body.page-markets .markets-page-buttons {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

html body.page-markets .markets-page-btn {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    background: #fbfaf7 !important;
    color: #25231f !important;
    font: 700 12px/1 var(--site-body, Inter, system-ui, sans-serif) !important;
    box-shadow: none !important;
}

html body.page-markets .markets-page-btn:hover:not(:disabled):not(.is-active) {
    background: #f6f4ee !important;
    box-shadow: 0 4px 12px rgba(31, 29, 24, 0.06) !important;
}

html body.page-markets .markets-page-btn.is-active {
    border-color: #171613 !important;
    background: #171613 !important;
    color: #fff !important;
}

html body.page-markets .markets-page-btn:disabled {
    opacity: 0.3 !important;
}

html body.page-markets .markets-page-ellipsis {
    min-width: 18px !important;
    color: #8b877e !important;
    text-align: center !important;
}

html body.page-markets .markets-rows-control {
    justify-self: end !important;
    gap: 10px !important;
    color: #6f6b63 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

html body.page-markets .markets-rows-control .fm-k-select {
    width: 72px !important;
    min-width: 72px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: transparent !important;
}

html body.page-markets .markets-rows-control .fm-k-select__native {
    display: none !important;
}

html body.page-markets .markets-rows-control .fm-k-select__button {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 72px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    background: #fbfaf7 !important;
    font-size: 12px !important;
}

html body.page-markets .markets-rows-control .fm-k-select__value {
    display: block !important;
    min-width: 0 !important;
    line-height: 1 !important;
}

html body.page-markets .markets-rows-control .fm-k-select__chevron {
    display: block !important;
    flex: 0 0 12px !important;
    width: 12px !important;
    height: 12px !important;
}

html body.page-markets .markets-rows-control .fm-k-select__button:hover,
html body.page-markets .markets-rows-control .fm-k-select.is-open .fm-k-select__button {
    background: #f6f4ee !important;
}

/* Rows-per-page controls live in the pagination footer, outside .kff-controls.
   Give their enhanced selects a complete dropdown layout of their own. The
   menu opens upward so it never extends beyond the bottom of the page. */
html body.page-markets :is(.markets-rows-control,.rows-control) .fm-k-select {
    position: relative !important;
    overflow: visible !important;
}

html body.page-markets :is(.markets-rows-control,.rows-control) .fm-k-select__menu {
    position: absolute !important;
    z-index: 1000 !important;
    top: auto !important;
    right: 0 !important;
    bottom: calc(100% + 8px) !important;
    left: auto !important;
    display: block !important;
    width: 80px !important;
    min-width: 80px !important;
    max-height: min(240px,calc(100vh - 32px)) !important;
    padding: 6px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    white-space: normal !important;
}

html body.page-markets :is(.markets-rows-control,.rows-control) .fm-k-select__menu[hidden] {
    display: none !important;
}

html body.page-markets :is(.markets-rows-control,.rows-control) .fm-k-select__option {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    white-space: normal !important;
}

@media (max-width: 1100px) and (min-width: 769px) {
    html body.page-markets .markets-pagination {
        grid-template-columns: 1fr auto !important;
    }
    html body.page-markets .markets-page-status {
        grid-column: 1 / -1 !important;
    }
    html body.page-markets .markets-page-buttons {
        justify-content: flex-start !important;
    }
}

/* Do not leave pointer-click focus painted on Overview dropdown shells. */
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-filter-group:focus-within,
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-k-select:focus-within,
html body.page-markets-overview #segment-heatmap .heatmap-country-control:focus-within,
html body.page-markets-overview .markets-select-shell:focus-within {
    box-shadow: none !important;
}

html body.page-markets-overview .fm-k-select__button:focus:not(:focus-visible),
html body.page-markets-overview .markets-select-button:focus:not(:focus-visible),
html body.page-markets-overview .markets-ref-select:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

html body.page-markets-overview .fm-k-select__button:focus-visible,
html body.page-markets-overview .markets-select-button:focus-visible,
html body.page-markets-overview .markets-ref-select:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(47, 104, 77, 0.12) !important;
}

/* Absolute final KPI override; keep after every legacy Market Overview rule. */
html body.page-markets-overview .fm-page-main .markets-summary-strip {
    position: relative !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px 0 0 !important;
    gap: 12px !important;
    transform: none !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell {
    box-sizing: border-box !important;
    height: 96px !important;
    min-height: 96px !important;
    padding: 14px 16px !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    align-items: center !important;
    border-radius: 18px !important;
    background: #f1f0ea !important;
    box-shadow: none !important;
    transform: none !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell:hover {
    background: #eeede6 !important;
    box-shadow: 0 6px 16px rgba(31, 29, 24, 0.045) !important;
    transform: none !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 11px !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-content {
    display: grid !important;
    align-content: center !important;
    align-self: center !important;
    gap: 3px !important;
    min-width: 0 !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-content > span {
    overflow: hidden !important;
    color: #69665f !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    text-overflow: ellipsis !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-content > span b {
    color: inherit !important;
    font: inherit !important;
    letter-spacing: inherit !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell strong {
    color: var(--markets-ink) !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 20px !important;
    font-weight: 750 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.025em !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-best,
html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-worst {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    min-width: 0 !important;
    font-size: 18px !important;
    font-weight: 750 !important;
    line-height: 1.05 !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-best > b,
html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-worst > b {
    display: block !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.015em !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-main--breadth {
    display: grid !important;
    grid-template-columns: minmax(0, auto) minmax(58px, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-main--breadth strong {
    white-space: nowrap !important;
}

/* Final shared Markets canvas authority.
   Remove the two legacy page-sized light slabs; retain the real rounded data
   modules and place them directly on the same stone canvas as the directories. */
html body.page-markets .markets-page.page-content,
html body.page-markets-overview .fm-body-shell {
    background: transparent !important;
    background-color: transparent !important;
}

html body.page-markets-overview .fm-body-shell {
    min-height: calc(100dvh - 70px) !important;
    padding-bottom: 0 !important;
}

html body.page-markets .markets-band--header.kff-hero,
html body.page-markets-overview .fm-page-main .fm-hero-canvas,
html body.page-markets-overview main.page-main.fm-page-main .markets-top__hero.kff-hero {
    background: transparent !important;
    box-shadow: none !important;
}

/* Overview modules use the same light inset surface as directory rails/rows. */
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell,
html body.page-markets-overview .fm-page-main #segment-heatmap,
html body.page-markets-overview .fm-page-main #segment-performance,
html body.page-markets-overview .fm-page-main .secondary-market-grid .market-data-card {
    background: #fbfaf7 !important;
    border-color: transparent !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell,
html body.page-markets-overview .fm-page-main #segment-heatmap,
html body.page-markets-overview .fm-page-main #segment-performance,
html body.page-markets-overview .fm-page-main .secondary-market-grid .market-data-card,
html body.page-markets .markets-page.page-content .markets-band--table {
    box-shadow: 0 8px 24px rgba(31, 29, 24, .045) !important;
}

/* Keep the Markets masthead in normal flow while preserving a high stacking
   context so its dropdowns always paint above page heroes and data modules. */
html body.page-markets header.site-header,
html body.page-markets-overview header.site-header {
    position: relative !important;
    inset: auto !important;
    z-index: 1000 !important;
    flex: 0 0 70px !important;
}

html body.page-markets header.site-header nav.site-header-nav-desktop,
html body.page-markets-overview header.site-header nav.site-header-nav-desktop,
html body.page-markets header.site-header .nav-dropdown,
html body.page-markets-overview header.site-header .nav-dropdown {
    z-index: 1001 !important;
}

html body.page-markets header.site-header .nav-dropdown-menu,
html body.page-markets-overview header.site-header .nav-dropdown-menu {
    z-index: 1002 !important;
}

/* Absolute final Market Overview parity with Funding Monitor / Company Map. */
html body.page-markets-overview .fm-page-main .markets-top__hero.kff-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;
    column-gap: 24px !important;
    row-gap: 8px !important;
}

html body.page-markets-overview .fm-page-main .markets-top__copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

html body.page-markets-overview .fm-page-main .markets-hero-actions {
    display: contents !important;
}

html body.page-markets-overview main.page-main.fm-page-main .markets-top__hero .markets-meta {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: start !important;
    justify-self: start !important;
    width: auto !important;
    min-height: 0 !important;
}

html body.page-markets-overview .fm-page-main .markets-top__hero .markets-submit-action {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: end !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip {
    margin-top: 18px !important;
}

html body.page-markets-overview main.page-main.fm-page-main .markets-summary-strip .markets-summary-cell {
    height: 104px !important;
    min-height: 104px !important;
    padding: 16px 18px !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: #fbfaf7 !important;
    box-shadow: 0 8px 24px rgba(31, 29, 24, .045) !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell:hover {
    background: #fffefa !important;
    box-shadow: 0 12px 28px rgba(31, 29, 24, .065) !important;
}

html body.page-markets-overview .fm-page-main #segment-heatmap,
html body.page-markets-overview .fm-page-main #segment-performance,
html body.page-markets-overview .fm-page-main .secondary-market-grid .market-data-card {
    border: 0 !important;
    border-radius: 22px !important;
    background: #fbfaf7 !important;
    box-shadow: 0 8px 24px rgba(31, 29, 24, .045) !important;
}

html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-filter-group,
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-k-select,
html body.page-markets-overview #segment-heatmap .heatmap-country-control,
html body.page-markets-overview #segment-heatmap .fm-k-select__button,
html body.page-markets-overview #segment-heatmap .markets-ref-select {
    border-color: transparent !important;
    border-radius: 12px !important;
    background: #f1f0ea !important;
    box-shadow: none !important;
}

html body.page-markets-overview #segment-heatmap .fm-k-select__button:hover,
html body.page-markets-overview #segment-heatmap .markets-ref-select:hover {
    border-radius: 12px !important;
    background: #ecebe4 !important;
}

/* Market Overview heat-map interaction repair: one opaque tooltip and a
   contained cell outline, without square row paint or lifted shadows. */
html body.page-markets-overview main.page-main.fm-page-main #segment-heatmap .segment-heatmap-table tbody tr:hover {
    background: transparent !important;
}
html body.page-markets-overview main.page-main.fm-page-main #segment-heatmap .heatmap-cell-button:hover,
html body.page-markets-overview main.page-main.fm-page-main #segment-heatmap .heatmap-cell-button:focus-visible {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(17, 16, 13, 0.28) !important;
    outline: none !important;
}
html body.page-markets-overview main.page-main.fm-page-main #segment-heatmap .segment-heatmap-tooltip {
    width: min(300px, calc(100vw - 28px)) !important;
    border: 1px solid rgba(17, 16, 13, 0.12) !important;
    border-radius: 10px !important;
    background: #fbfaf7 !important;
    box-shadow: 0 12px 28px rgba(17, 16, 13, 0.12) !important;
    padding: 12px 14px !important;
    opacity: 1 !important;
}

/* Market Overview final containment: keep the hero direct and allow live KPI
   labels/values to wrap without escaping fixed-height summary modules. */
html body.page-markets-overview main.page-main.fm-page-main .markets-top__hero.kff-hero {
    grid-template-rows: auto !important;
    row-gap: 0 !important;
}
html body.page-markets-overview main.page-main.fm-page-main .markets-top__hero .markets-meta {
    display: none !important;
}
html body.page-markets-overview main.page-main.fm-page-main .markets-summary-strip .markets-summary-cell {
    height: auto !important;
    min-height: 104px !important;
    min-width: 0 !important;
    overflow: hidden !important;
}
html body.page-markets-overview main.page-main.fm-page-main .markets-summary-strip .markets-summary-content,
html body.page-markets-overview main.page-main.fm-page-main .markets-summary-strip .markets-summary-main {
    min-width: 0 !important;
    max-width: 100% !important;
}
html body.page-markets-overview main.page-main.fm-page-main .markets-summary-strip .markets-summary-content > span,
html body.page-markets-overview main.page-main.fm-page-main .markets-summary-strip .markets-summary-cell strong {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}
html body.page-markets-overview main.page-main.fm-page-main .markets-summary-strip #summary-best,
html body.page-markets-overview main.page-main.fm-page-main .markets-summary-strip #summary-worst {
    display: flex !important;
    flex-flow: row wrap !important;
    align-items: baseline !important;
    column-gap: 8px !important;
    row-gap: 2px !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}
html body.page-markets-overview main.page-main.fm-page-main .markets-summary-strip #summary-best > b,
html body.page-markets-overview main.page-main.fm-page-main .markets-summary-strip #summary-worst > b {
    flex: 0 0 auto !important;
}
html body.page-markets-overview main.page-main.fm-page-main .markets-summary-strip .markets-summary-main--breadth {
    flex-wrap: wrap !important;
}
html body.page-markets-overview main.page-main.fm-page-main .markets-summary-strip .markets-summary-main--breadth .summary-breadth-bar {
    flex: 1 1 56px !important;
    min-width: 40px !important;
    max-width: 82px !important;
}
@media (max-width: 1180px) {
    html body.page-markets-overview main.page-main.fm-page-main .markets-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Final mobile Public / Private company authority: two compact filter rows and
   one shared rounded directory-card language. */
@media (max-width: 768px) {
    html body.page-markets .markets-controls-row.kff-controls,
    html body.page-markets.page-private-markets .private-controls.kff-controls {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        align-items: stretch !important;
        margin-bottom: 10px !important;
    }

    html body.page-markets .markets-controls-row.kff-controls > :not([hidden]),
    html body.page-markets.page-private-markets .private-controls.kff-controls > :not([hidden]) {
        min-width: 0 !important;
        width: 100% !important;
    }

    html body.page-markets.page-private-markets
      .private-controls.kff-controls > .control--search,
    html body.page-markets.page-private-markets
      .private-controls.kff-controls > .fm-filter-group--country {
        grid-column: 1 !important;
    }

    html body.page-markets.page-private-markets
      .private-controls.kff-controls > .fm-filter-group--scope,
    html body.page-markets.page-private-markets
      .private-controls.kff-controls > .fm-filter-group--sort {
        grid-column: 2 !important;
    }

    html body.page-markets:not(.page-private-markets)
      .markets-controls-row.kff-controls .fm-filter-group--window,
    html body.page-markets:not(.page-private-markets)
      .markets-controls-row.kff-controls .fm-filter-group--scope,
    html body.page-markets:not(.page-private-markets)
      .markets-controls-row.kff-controls .market-ctl--search,
    html body.page-markets:not(.page-private-markets)
      .markets-controls-row.kff-controls .markets-mobile-sort {
        grid-column: auto !important;
    }

    html body.page-markets:not(.page-private-markets)
      .markets-controls-row.kff-controls .fm-filter-group--subsegment:not([hidden]) {
        grid-column: 1 / -1 !important;
    }

    html body.page-markets .markets-controls-row.kff-controls .range-prefix,
    html body.page-markets .markets-controls-row.kff-controls .market-ctl > label,
    html body.page-markets.page-private-markets .private-filter__label {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    html body.page-markets:not(.page-private-markets) .markets-controls-panel {
        margin: 0 0 10px !important;
    }

    html body.page-markets:not(.page-private-markets) .markets-controls-row .fm-filter-group,
    html body.page-markets:not(.page-private-markets) .markets-controls-row .market-ctl,
    html body.page-markets.page-private-markets .private-controls .control {
        min-height: 42px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 13px !important;
        background: #fbfaf7 !important;
        box-shadow: none !important;
    }

    html body.page-markets .markets-controls-row .fm-k-select,
    html body.page-markets .markets-controls-row .fm-k-select__button,
    html body.page-markets .markets-controls-row .window-input,
    html body.page-markets .markets-controls-row #filter-search,
    html body.page-markets .markets-controls-row #markets-mobile-sort-select,
    html body.page-markets.page-private-markets .private-controls .control input,
    html body.page-markets.page-private-markets .private-controls .control .fm-k-select,
    html body.page-markets.page-private-markets .private-controls .control .fm-k-select__button {
        width: 100% !important;
        height: 42px !important;
        min-height: 42px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        border: 0 !important;
        border-radius: 13px !important;
        background-color: #fbfaf7 !important;
        box-shadow: none !important;
        font-size: 11px !important;
    }

    html body.page-markets:not(.page-private-markets) .markets-cards {
        gap: 10px !important;
        margin: 0 !important;
        background: transparent !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-link {
        display: block !important;
        border-radius: 16px !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card {
        position: relative !important;
        min-height: 0 !important;
        padding: 12px !important;
        border: 0 !important;
        border-radius: 16px !important;
        background: #fbfaf7 !important;
        box-shadow: none !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-top,
    html body.page-markets:not(.page-private-markets) .market-card-top:not(:has(.market-card-media)) {
        display: grid !important;
        grid-template-columns: 72px minmax(0, 1fr) auto !important;
        gap: 10px 12px !important;
        align-items: start !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-rank {
        display: none !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-media {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 72px !important;
        height: 40.5px !important;
        aspect-ratio: 16 / 9 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 9px !important;
        background: #f1f0ea !important;
        overflow: hidden !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-media img {
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        border-radius: 9px !important;
        object-fit: contain !important;
        image-rendering: auto !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card .name {
        margin: 0 !important;
        font-size: 14px !important;
        font-weight: 720 !important;
        line-height: 1.15 !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card .ticker {
        margin: 1px 0 0 !important;
        padding: 4px 7px !important;
        border-radius: 999px !important;
        background: #f1f0ea !important;
        color: #57534c !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        letter-spacing: .045em !important;
        line-height: 1 !important;
        text-align: center !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-meta-line {
        margin-top: 4px !important;
        font-size: 10px !important;
        font-weight: 550 !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-meta-line .markets-segment-pill {
        min-height: 23px !important;
        padding: 4px 8px !important;
        font-size: 9.5px !important;
        font-weight: 650 !important;
        line-height: 1.1 !important;
    }

    html body.page-markets:not(.page-private-markets)
      .market-card[data-segment="DEFENSE"] .markets-segment-pill {
        background: var(--markets-red-soft) !important;
        color: #7d382f !important;
    }

    html body.page-markets:not(.page-private-markets)
      .market-card:is([data-segment="AERIAL"], [data-segment="DELIVERY"], [data-segment="AUTOMOTIVE"])
      .markets-segment-pill {
        background: var(--markets-blue-soft) !important;
        color: #334e67 !important;
    }

    html body.page-markets:not(.page-private-markets)
      .market-card:is([data-segment="AI_COMPUTE"], [data-segment="SEMICONDUCTORS"], [data-segment="ELECTRONICS"], [data-segment="SENSORS"], [data-segment="MATERIALS"])
      .markets-segment-pill {
        background: var(--markets-lilac-soft) !important;
        color: #5a4864 !important;
    }

    html body.page-markets:not(.page-private-markets)
      .market-card:is([data-segment="INDUSTRIAL"], [data-segment="LOGISTICS"])
      .markets-segment-pill {
        background: var(--markets-gold-soft) !important;
        color: #6e5728 !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-valuation {
        margin: 9px 0 0 !important;
        font-size: 13px !important;
        font-weight: 720 !important;
        line-height: 1.2 !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-bottom {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) 54px !important;
        gap: 8px !important;
        align-items: end !important;
        margin: 10px 0 0 !important;
        padding: 10px 11px !important;
        border: 0 !important;
        border-radius: 13px !important;
        background: #f1f0ea !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-bottom .label {
        font-size: 8px !important;
        font-weight: 650 !important;
        letter-spacing: .04em !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-bottom .value {
        margin-top: 3px !important;
        font-size: 10.75px !important;
        line-height: 1.15 !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-spark {
        width: 54px !important;
        height: 22px !important;
    }
}

/* Markets mobile completion: compact cards and rounded, hierarchy-led data rows. */
@media (max-width: 768px) {
    html body.page-markets .markets-page.page-content,
    html body.page-markets-overview .page-main.fm-page-main {
        width: calc(100% - 24px) !important;
        padding-top: 22px !important;
    }

    html body.page-markets .markets-band--header.kff-hero,
    html body.page-markets-overview .markets-top__hero.kff-hero {
        padding-bottom: 16px !important;
    }

    html body.page-markets .page-title,
    html body.page-markets-overview .markets-title {
        font-size: clamp(36px, 10.5vw, 42px) !important;
        line-height: .96 !important;
        letter-spacing: -.045em !important;
    }

    html body.page-markets .markets-submit-action,
    html body.page-markets-overview .markets-submit-action {
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 16px !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: #171713 !important;
        color: #fff !important;
        box-shadow: none !important;
    }

    /* Public Companies: each result is a compact mobile data card, not a ruled list. */
    html body.page-markets:not(.page-private-markets) .markets-band--table {
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html body.page-markets:not(.page-private-markets) .markets-controls-panel {
        margin-bottom: 12px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    html body.page-markets:not(.page-private-markets) .markets-controls-row.kff-controls {
        gap: 8px !important;
    }

    html body.page-markets:not(.page-private-markets) .markets-controls-row .fm-k-select__button,
    html body.page-markets:not(.page-private-markets) .markets-controls-row .market-ctl--search input,
    html body.page-markets:not(.page-private-markets) #filter-search {
        height: 42px !important;
        min-height: 42px !important;
        border: 0 !important;
        border-radius: 13px !important;
        background: #fbfaf7 !important;
        box-shadow: none !important;
    }

    html body.page-markets:not(.page-private-markets) .markets-cards {
        display: grid !important;
        gap: 10px !important;
        margin-top: 12px !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card {
        margin: 0 !important;
        padding: 12px !important;
        border: 0 !important;
        border-radius: 16px !important;
        background: #fbfaf7 !important;
        box-shadow: 0 7px 20px rgba(31,29,24,.035) !important;
        overflow: hidden !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-top {
        grid-template-columns: 76px minmax(0,1fr) auto !important;
        gap: 10px !important;
        align-items: start !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-media {
        width: 76px !important;
        border: 0 !important;
        border-radius: 10px !important;
        background: transparent !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card .name {
        font-family: Inter, system-ui, sans-serif !important;
        font-size: 15px !important;
        font-weight: 720 !important;
        line-height: 1.15 !important;
        letter-spacing: -.015em !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-price {
        padding-top: 0 !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-price .price {
        font-family: Inter, system-ui, sans-serif !important;
        font-size: 14px !important;
        font-weight: 720 !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-bottom {
        margin-top: 10px !important;
        padding: 10px 0 0 !important;
        border-top: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        gap: 6px !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-bottom .cell {
        padding: 0 !important;
        background: transparent !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-bottom .label {
        font-size: 8px !important;
        font-weight: 650 !important;
        letter-spacing: .04em !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-bottom .value {
        font-size: 11.5px !important;
    }

    /* Market Overview: replace legacy rules and square bars with soft inset rows. */
    html body.page-markets-overview .fm-page-main .markets-summary-strip {
        margin-top: 12px !important;
        border-radius: 17px !important;
        background: #fbfaf7 !important;
        box-shadow: none !important;
    }

    html body.page-markets-overview .fm-page-main #segment-performance.mo-section-major,
    html body.page-markets-overview .fm-page-main #segment-heatmap.mo-section-major,
    html body.page-markets-overview .fm-page-main .secondary-market-grid .market-data-card {
        margin-top: 14px !important;
        padding: 16px !important;
        border: 0 !important;
        border-radius: 18px !important;
        background: #fbfaf7 !important;
        box-shadow: none !important;
    }

    html body.page-markets-overview #segment-performance .section-toolbar,
    html body.page-markets-overview #segment-performance .chart-capture-header,
    html body.page-markets-overview .secondary-market-grid .chart-capture-header {
        min-height: 0 !important;
        margin: 0 0 12px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    html body.page-markets-overview #segment-performance #segments-list,
    html body.page-markets-overview #segment-performance .segment-list {
        display: grid !important;
        gap: 8px !important;
    }

    html body.page-markets-overview #segment-performance .segment-row {
        min-height: 58px !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: #f1f0ea !important;
        box-shadow: none !important;
    }

    html body.page-markets-overview #segment-performance .segment-row:hover,
    html body.page-markets-overview #segment-performance .segment-row:focus-visible {
        background: #ecebe4 !important;
        transform: none !important;
    }

    html body.page-markets-overview #segment-performance .bar-track {
        height: 6px !important;
        border: 0 !important;
        border-radius: 999px !important;
        background: #dfded8 !important;
        overflow: hidden !important;
    }

    html body.page-markets-overview #segment-performance .bar-fill {
        height: 100% !important;
        border-radius: 999px !important;
        background: #557f68 !important;
    }

    html body.page-markets-overview #segment-performance .segment-row__cue {
        display: none !important;
    }

    html body.page-markets-overview .chart-title-main {
        font-size: 18px !important;
        font-weight: 740 !important;
        letter-spacing: -.02em !important;
        text-transform: none !important;
    }

    html body.page-markets-overview #segment-constituents .selected-segment-mobile-stats {
        gap: 0 !important;
        padding: 10px !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: #f1f0ea !important;
    }

    html body.page-markets-overview #segment-constituents .selected-segment-mobile-stats > div {
        padding: 0 8px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}

@media (max-width: 980px) and (min-width: 481px) {
    html body.page-markets-overview .fm-page-main .markets-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    html body.page-markets-overview .fm-page-main .markets-summary-strip {
        grid-template-columns: 1fr !important;
    }
}

/* Vertically balance every KPI stack within its card. */
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell {
    align-items: center !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-icon {
    align-self: center !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-content {
    align-content: center !important;
    align-self: center !important;
    gap: 3px !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-content > span {
    margin: 0 !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-best,
html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-worst {
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

/* TRUE EOF authority: no legacy Overview rules may follow this block. */
html body.page-markets-overview .fm-page-main .markets-top__hero.kff-hero {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;
    column-gap: 24px !important;
    row-gap: 8px !important;
}
html body.page-markets-overview .fm-page-main .markets-top__copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
}
html body.page-markets-overview .fm-page-main .markets-hero-actions {
    display: contents !important;
}
html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: start !important;
    justify-self: start !important;
    width: auto !important;
    min-height: 0 !important;
}
html body.page-markets-overview .fm-page-main .markets-top__hero .markets-submit-action {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: end !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip {
    margin-top: 18px !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell {
    height: 104px !important;
    min-height: 104px !important;
    padding: 16px 18px !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: #fbfaf7 !important;
    box-shadow: 0 8px 24px rgba(31, 29, 24, .045) !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell:hover {
    background: #fffefa !important;
    box-shadow: 0 12px 28px rgba(31, 29, 24, .065) !important;
}
html body.page-markets-overview .fm-page-main #segment-heatmap,
html body.page-markets-overview .fm-page-main #segment-performance,
html body.page-markets-overview .fm-page-main .secondary-market-grid .market-data-card {
    border: 0 !important;
    border-radius: 22px !important;
    background: #fbfaf7 !important;
    box-shadow: 0 8px 24px rgba(31, 29, 24, .045) !important;
}
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-filter-group,
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-k-select,
html body.page-markets-overview #segment-heatmap .heatmap-country-control,
html body.page-markets-overview #segment-heatmap .fm-k-select__button,
html body.page-markets-overview #segment-heatmap .markets-ref-select {
    border-color: transparent !important;
    border-radius: 12px !important;
    background: #f1f0ea !important;
    box-shadow: none !important;
}
html body.page-markets-overview #segment-heatmap .fm-k-select__button:hover,
html body.page-markets-overview #segment-heatmap .markets-ref-select:hover {
    border-radius: 12px !important;
    background: #ecebe4 !important;
}

/* Final Public Companies control authority: compact sort and no pointer halo. */
@media (min-width: 1101px) {
    html body.page-markets .markets-controls-row.kff-controls {
        grid-template-columns: 112px minmax(230px, 1.1fr) minmax(190px, .9fr) minmax(220px, 1fr) 180px !important;
        justify-content: stretch !important;
    }
}

html body.page-markets .markets-controls-row .fm-filter-group:focus-within,
html body.page-markets .markets-controls-row .fm-k-select:focus-within,
html body.page-markets .markets-controls-row .markets-sort-stack:focus-within {
    box-shadow: none !important;
}

html body.page-markets .markets-controls-row .fm-k-select__button:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

html body.page-markets .markets-controls-row .fm-k-select__button:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(47, 104, 77, 0.12) !important;
}

/* Final Market Overview KPI authority: compact, body-led, vertically centred cards. */
html body.page-markets-overview .fm-page-main .markets-summary-strip {
    position: relative !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px 0 0 !important;
    gap: 12px !important;
    transform: none !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell {
    box-sizing: border-box !important;
    height: 96px !important;
    min-height: 96px !important;
    padding: 14px 16px !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    align-items: center !important;
    border-radius: 18px !important;
    background: #f1f0ea !important;
    box-shadow: none !important;
    transform: none !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell:hover {
    background: #eeede6 !important;
    box-shadow: 0 6px 16px rgba(31, 29, 24, 0.045) !important;
    transform: none !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 11px !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-content {
    display: grid !important;
    align-content: center !important;
    align-self: center !important;
    gap: 3px !important;
    min-width: 0 !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-content > span {
    overflow: hidden !important;
    color: #69665f !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    text-overflow: ellipsis !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-content > span b {
    color: inherit !important;
    font: inherit !important;
    letter-spacing: inherit !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell strong {
    color: var(--markets-ink) !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 20px !important;
    font-weight: 750 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.025em !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-best,
html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-worst {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    min-width: 0 !important;
    font-size: 18px !important;
    font-weight: 750 !important;
    line-height: 1.05 !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-best > b,
html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-worst > b {
    display: block !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.015em !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-main--breadth {
    display: grid !important;
    grid-template-columns: minmax(0, auto) minmax(58px, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-main--breadth strong {
    white-space: nowrap !important;
}

@media (max-width: 980px) and (min-width: 481px) {
    html body.page-markets-overview .fm-page-main .markets-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    html body.page-markets-overview .fm-page-main .markets-summary-strip {
        grid-template-columns: 1fr !important;
    }
}

/* Final Market Overview opening: exact Data-page composition after legacy rules. */
html body.page-markets-overview .fm-page-main .markets-top__hero.kff-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 12px 24px !important;
    min-height: 0 !important;
    padding: 0 !important;
}

html body.page-markets-overview .fm-page-main .markets-top__copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

html body.page-markets-overview .fm-page-main .markets-title {
    font-family: var(--site-body, Inter, ui-sans-serif, system-ui, sans-serif) !important;
    font-weight: 720 !important;
    letter-spacing: -0.052em !important;
}

html body.page-markets-overview .fm-page-main .markets-hero-actions {
    display: contents !important;
    width: auto !important;
    min-width: 0 !important;
}

html body.page-markets-overview .fm-page-main .markets-top__hero .markets-submit-action {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    width: auto !important;
    min-width: 84px !important;
    height: 44px !important;
    padding: 0 20px !important;
}

html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px 16px !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta > div {
    display: flex !important;
    align-items: baseline !important;
    gap: 5px !important;
    min-width: 0 !important;
}

html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta > div + div::before {
    content: "·" !important;
    margin-right: 8px !important;
    color: #a09c93 !important;
}

html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta dt,
html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta dd {
    display: inline !important;
    margin: 0 !important;
    max-width: none !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta dt {
    color: #7d7970 !important;
    font-family: var(--site-body, Inter, ui-sans-serif, system-ui, sans-serif) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta dd {
    color: #3d3a34 !important;
    font-family: var(--site-body, Inter, ui-sans-serif, system-ui, sans-serif) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip {
    margin-top: 22px !important;
    gap: 12px !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell {
    box-sizing: border-box !important;
    height: 120px !important;
    min-height: 120px !important;
    padding: 14px 18px !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    border-radius: 24px !important;
    background: #f0efe8 !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 11px !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-content > span {
    color: #7d7970 !important;
    font-family: var(--site-body, Inter, ui-sans-serif, system-ui, sans-serif) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell strong {
    font-family: var(--site-body, Inter, ui-sans-serif, system-ui, sans-serif) !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-best,
html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-worst {
    gap: 3px !important;
    font-size: 19px !important;
    font-weight: 800 !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-best > b,
html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-worst > b {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
}

@media (max-width: 768px) {
    html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta {
        display: none !important;
    }

    html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell {
        height: 108px !important;
        min-height: 108px !important;
        padding: 14px !important;
        border-radius: 18px !important;
    }
}

/* Align the Market Overview opening with the completed Data-page hierarchy. */
html body.page-markets-overview .markets-top__hero.kff-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 14px 24px !important;
    min-height: 0 !important;
}

html body.page-markets-overview .markets-top__copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

html body.page-markets-overview .markets-title {
    font-family: var(--site-body, Inter, ui-sans-serif, system-ui, sans-serif) !important;
    font-weight: 720 !important;
    letter-spacing: -0.052em !important;
}

html body.page-markets-overview .markets-hero-actions {
    display: contents !important;
}

html body.page-markets-overview .markets-submit-action {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
}

html body.page-markets-overview .markets-meta {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px 16px !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
}

html body.page-markets-overview .markets-meta > div {
    display: flex !important;
    align-items: baseline !important;
    gap: 5px !important;
    min-width: 0 !important;
}

html body.page-markets-overview .markets-meta > div + div::before {
    content: "·" !important;
    margin-right: 8px !important;
    color: #a09c93 !important;
}

html body.page-markets-overview .markets-meta dt,
html body.page-markets-overview .markets-meta dd {
    margin: 0 !important;
    font-family: var(--site-body, Inter, ui-sans-serif, system-ui, sans-serif) !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
}

html body.page-markets-overview .markets-meta dt {
    color: #7d7970 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

html body.page-markets-overview .markets-meta dd {
    max-width: none !important;
    color: #3d3a34 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

html body.page-markets-overview .markets-summary-strip {
    margin-top: 22px !important;
    gap: 12px !important;
}

html body.page-markets-overview .markets-summary-cell {
    height: 120px !important;
    min-height: 120px !important;
    padding: 14px 18px !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    border-radius: 24px !important;
    background: #f0efe8 !important;
}

html body.page-markets-overview .markets-summary-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 11px !important;
}

html body.page-markets-overview .markets-summary-cell span:not(.markets-summary-icon) {
    color: #7d7970 !important;
    font-family: var(--site-body, Inter, ui-sans-serif, system-ui, sans-serif) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

html body.page-markets-overview .markets-summary-cell strong {
    color: var(--markets-ink) !important;
    font-family: var(--site-body, Inter, ui-sans-serif, system-ui, sans-serif) !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
}

html body.page-markets-overview #summary-best,
html body.page-markets-overview #summary-worst {
    gap: 3px !important;
    font-size: 19px !important;
    font-weight: 800 !important;
}

html body.page-markets-overview #summary-best > b,
html body.page-markets-overview #summary-worst > b {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.01em !important;
}

@media (max-width: 768px) {
    html body.page-markets-overview .markets-top__hero.kff-hero {
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 12px !important;
    }

    html body.page-markets-overview .markets-meta {
        display: none !important;
    }

    html body.page-markets-overview .markets-summary-cell {
        height: 108px !important;
        min-height: 108px !important;
        padding: 14px !important;
        border-radius: 18px !important;
    }
}

@media (max-width: 480px) {
    body.page-markets-overview .markets-summary-strip { grid-template-columns: 1fr !important; }
    body.page-markets-overview .markets-summary-cell { min-height: 0; }
    body.page-markets .scope-segmented { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Reference-parity correction: mirror the current Funding/Event/Geography composition. */
html body.page-markets .markets-page.page-content {
    width: min(calc(100% - 68px), 1202px) !important;
    max-width: 1202px !important;
    margin: 0 auto !important;
    padding: 44px 0 64px !important;
}

html body.page-markets .markets-band--header.kff-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 28px !important;
    margin: 0 !important;
    padding: 0 0 26px !important;
}

html body.page-markets .markets-header-actions {
    min-width: 0 !important;
    width: auto !important;
    align-items: flex-start !important;
    gap: 16px !important;
}

html body.page-markets .markets-band--table {
    margin: 0 !important;
    padding: 26px !important;
    border: 0 !important;
    border-radius: 22px !important;
    background: #f1f0ea !important;
    box-shadow: none !important;
}

html body.page-markets .markets-controls-panel {
    width: 100% !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

html body.page-markets .markets-data-block {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

html body.page-markets .markets-controls-row.kff-controls {
    width: 100% !important;
    gap: 10px 12px !important;
}

html body.page-markets .markets-table-heading {
    margin: 4px 0 12px !important;
}

html body.page-markets .markets-table-wrap {
    width: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

html body.page-markets .markets-table thead {
    background: transparent !important;
}

html body.page-markets .markets-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.42) !important;
}

html body.page-markets-overview .page-main.fm-page-main {
    width: min(calc(100% - 68px), 1202px) !important;
    max-width: 1202px !important;
    margin: 0 auto !important;
    padding: 0 0 64px !important;
}

html body.page-markets-overview .fm-page-main .fm-hero-canvas.markets-top {
    width: 100% !important;
    margin: 0 !important;
    padding: 44px 0 0 !important;
    border: 0 !important;
    background: transparent !important;
}

html body.page-markets-overview .markets-top__hero.kff-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body.page-markets-overview .markets-hero-actions {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: start !important;
    justify-content: end !important;
    min-width: 500px !important;
    width: auto !important;
    gap: 18px !important;
}

html body.page-markets-overview .markets-meta {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, auto)) !important;
    align-items: start !important;
    gap: 18px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

html body.page-markets-overview .markets-meta > div {
    display: block !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

html body.page-markets-overview .markets-meta dt {
    display: block !important;
    margin: 0 0 5px !important;
    white-space: nowrap !important;
}

html body.page-markets-overview .markets-meta dd {
    display: block !important;
    max-width: 150px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html body.page-markets-overview .markets-summary-strip {
    margin: 24px 0 0 !important;
    gap: 12px !important;
}

html body.page-markets-overview .markets-summary-cell {
    box-sizing: border-box !important;
    height: 96px !important;
    min-height: 96px !important;
    padding: 14px 16px !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    align-items: center !important;
    border-radius: 16px !important;
    background: #f1f0ea !important;
    box-shadow: none !important;
}

html body.page-markets-overview .markets-summary-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 10px !important;
}

html body.page-markets-overview .markets-summary-icon svg {
    width: 19px !important;
    height: 19px !important;
}

html body.page-markets-overview .markets-summary-icon {
    display: grid !important;
    place-items: center !important;
    color: #605e57 !important;
    background: #e5e2d9 !important;
}

html body.page-markets-overview .markets-summary-icon--positive {
    color: #285c3a !important;
    background: #dce9df !important;
}

html body.page-markets-overview .markets-summary-icon--negative {
    color: #8c2012 !important;
    background: #f1ddd7 !important;
}

html body.page-markets-overview .markets-summary-content {
    gap: 4px !important;
    align-content: center !important;
}

html body.page-markets-overview .markets-summary-cell span:not(.markets-summary-icon) {
    color: #69665f !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
}

html body.page-markets-overview .markets-summary-cell strong {
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.06 !important;
    letter-spacing: -0.025em !important;
}

html body.page-markets-overview #summary-best,
html body.page-markets-overview #summary-worst {
    display: grid !important;
    gap: 2px !important;
    font-size: 17px !important;
}

html body.page-markets-overview #summary-best > b,
html body.page-markets-overview #summary-worst > b {
    display: block !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
}

html body.page-markets-overview .markets-summary-main--breadth {
    display: grid !important;
    grid-template-columns: auto minmax(72px, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
}

html body.page-markets-overview .markets-summary-main--breadth strong {
    white-space: nowrap !important;
}

html body.page-markets-overview .summary-breadth-bar {
    width: 100% !important;
    max-width: none !important;
}

html body.page-markets-overview #segment-heatmap.segment-heatmap-card.mo-section-major,
html body.page-markets-overview #segment-performance.mo-segment-spine.segment-chart-capture.mo-section-major {
    margin: 22px 0 0 !important;
    padding: 26px !important;
    border-radius: 22px !important;
    background: #f1f0ea !important;
    box-shadow: none !important;
}

html body.page-markets-overview #segment-heatmap .heatmap-scroll {
    max-height: 590px !important;
    overflow: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    scrollbar-width: none !important;
}

html body.page-markets-overview #segment-heatmap .heatmap-card-header,
html body.page-markets-overview #segment-heatmap .section-toolbar {
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

html body.page-markets-overview #segment-heatmap .heatmap-scroll::after {
    content: none !important;
    display: none !important;
}

html body.page-markets-overview #segment-heatmap .segment-heatmap-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 4 !important;
    height: 30px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    border: 0 !important;
    background: #f1f0ea !important;
    color: #706d65 !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 9px !important;
    font-weight: 650 !important;
    letter-spacing: 0.055em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

html body.page-markets-overview #segment-heatmap .segment-heatmap-table thead {
    position: sticky !important;
    top: 0 !important;
    z-index: 4 !important;
    background: #f1f0ea !important;
    box-shadow: 0 8px 0 #f1f0ea !important;
}

html body.page-markets-overview #segment-heatmap .segment-heatmap-table thead th:first-child {
    left: 0 !important;
    z-index: 5 !important;
}

html body.page-markets-overview #segment-heatmap .heatmap-sort-btn {
    min-height: 20px !important;
    color: inherit !important;
    line-height: 20px !important;
}

/* Match the compact filled dropdown language used by Event Trends. */
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .range-prefix,
html body.page-markets-overview #segment-heatmap .heatmap-country-control > .range-prefix {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-filter-group,
html body.page-markets-overview #segment-heatmap .heatmap-country-control,
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-k-select,
html body.page-markets-overview #segment-heatmap .heatmap-country-control .markets-select-shell {
    height: 42px !important;
    min-height: 42px !important;
    border: 1px solid transparent !important;
    border-radius: 13px !important;
    background: #efeee8 !important;
    box-shadow: none !important;
}

html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-k-select__button,
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .window-input,
html body.page-markets-overview #segment-heatmap .heatmap-country-control .markets-ref-select,
html body.page-markets-overview #segment-heatmap .heatmap-country-control .markets-select-button {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 36px 0 14px !important;
    border: 1px solid transparent !important;
    border-radius: 13px !important;
    background-color: #efeee8 !important;
    color: var(--markets-ink) !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    box-shadow: none !important;
}

html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-filter-group:hover,
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-filter-group:focus-within,
html body.page-markets-overview #segment-heatmap .heatmap-country-control:hover,
html body.page-markets-overview #segment-heatmap .heatmap-country-control:focus-within,
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-k-select:hover,
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-k-select:focus-within,
html body.page-markets-overview #segment-heatmap .heatmap-country-control .markets-ref-select:hover,
html body.page-markets-overview #segment-heatmap .heatmap-country-control .markets-ref-select:focus-visible,
html body.page-markets-overview #segment-heatmap .heatmap-country-control .markets-select-button:hover,
html body.page-markets-overview #segment-heatmap .heatmap-country-control .markets-select-button:focus-visible {
    border-color: transparent !important;
    background-color: #e7ebe5 !important;
}

html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-filter-group:focus-within,
html body.page-markets-overview #segment-heatmap .heatmap-country-control:focus-within {
    box-shadow: 0 0 0 3px rgba(47, 104, 77, 0.12) !important;
}

/* Keep every overview select on the same rounded, filled interaction system. */
html body.page-markets-overview .markets-select-shell {
    border-radius: 13px !important;
}

html body.page-markets-overview .markets-select-button {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 36px 0 14px !important;
    border: 1px solid transparent !important;
    border-radius: 13px !important;
    background: #efeee8 !important;
    color: var(--markets-ink) !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    box-shadow: none !important;
}

html body.page-markets-overview .segment-constituents__filters .markets-select-button,
html body.page-markets-overview .secondary-country-control .markets-select-button {
    height: 42px !important;
    min-height: 42px !important;
    border: 1px solid transparent !important;
    border-radius: 13px !important;
    background: #efeee8 !important;
}

html body.page-markets-overview #segment-constituents .segment-constituents__filters .secondary-country-control .markets-select-shell .markets-select-button {
    height: 42px !important;
    min-height: 42px !important;
    border: 1px solid transparent !important;
    border-radius: 13px !important;
    background: #efeee8 !important;
}

html body.page-markets-overview .markets-select-shell.is-open .markets-select-button,
html body.page-markets-overview .markets-select-button:hover,
html body.page-markets-overview .markets-select-button:focus-visible {
    border-color: transparent !important;
    background: #e7ebe5 !important;
    box-shadow: 0 0 0 3px rgba(47, 104, 77, 0.12) !important;
}

html body.page-markets-overview #segment-heatmap .heatmap-scroll::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html body.page-markets-overview #segment-heatmap .heatmap-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(17, 16, 13, 0.20);
}

html body.page-markets-overview #segment-heatmap .heatmap-scroll::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html body.page-markets-overview #segment-heatmap .segment-heatmap-table {
    background: transparent !important;
}

html body.page-markets-overview .secondary-market-grid > .market-data-card {
    padding: 26px !important;
    background: #f1f0ea !important;
    box-shadow: none !important;
}

@media (max-width: 900px) {
    html body.page-markets header.site-header,
    html body.page-markets-overview header.site-header {
        width: calc(100% - 24px) !important;
        height: 66px !important;
        min-height: 66px !important;
        padding: 0 10px !important;
    }
    html body.page-markets header.site-header nav.site-header-nav-desktop,
    html body.page-markets-overview header.site-header nav.site-header-nav-desktop {
        display: none !important;
    }
    html body.page-markets header.site-header .home-header-actions,
    html body.page-markets-overview header.site-header .home-header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
    }
    html body.page-markets .markets-page.page-content,
    html body.page-markets-overview .page-main.fm-page-main {
        width: min(calc(100% - 36px), 1202px) !important;
    }
    html body.page-markets-overview .markets-hero-actions {
        min-width: 0 !important;
    }
    html body.page-markets-overview .markets-meta {
        display: none !important;
    }
}

@media (max-width: 768px) {
    html body.page-markets .markets-page.page-content,
    html body.page-markets-overview .page-main.fm-page-main {
        width: calc(100% - 28px) !important;
        padding-bottom: 42px !important;
    }

    html body.page-markets .markets-page.page-content,
    html body.page-markets-overview .fm-page-main .fm-hero-canvas.markets-top {
        padding-top: 28px !important;
    }

    html body.page-markets .markets-band--header.kff-hero,
    html body.page-markets-overview .markets-top__hero.kff-hero {
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: start !important;
        gap: 12px !important;
    }

    html body.page-markets .markets-header-actions,
    html body.page-markets-overview .markets-hero-actions {
        display: block !important;
        min-width: 0 !important;
        width: auto !important;
    }

    html body.page-markets .markets-header-meta,
    html body.page-markets-overview .markets-meta {
        display: none !important;
    }

    html body.page-markets .markets-band--table,
    html body.page-markets-overview #segment-heatmap.segment-heatmap-card.mo-section-major,
    html body.page-markets-overview #segment-performance.mo-segment-spine.segment-chart-capture.mo-section-major,
    html body.page-markets-overview .secondary-market-grid > .market-data-card {
        padding: 18px !important;
        border-radius: 18px !important;
    }

    html body.page-markets .markets-controls-panel {
        margin-bottom: 14px !important;
    }

    html body.page-markets .markets-pagination {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px 12px !important;
        padding-top: 16px !important;
    }
}

@media (max-width: 980px) and (min-width: 721px) {
    html body.page-markets-overview .markets-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Heat-map labels belong to the matrix, not separate white cards. */
html body.page-markets-overview #segment-heatmap .segment-heatmap-table tbody .heatmap-segment-cell,
html body.page-markets-overview #segment-heatmap .segment-heatmap-table tbody .heatmap-segment-button {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body.page-markets-overview #segment-heatmap .segment-heatmap-table tbody .heatmap-segment-cell {
    padding-left: 8px !important;
    padding-right: 12px !important;
}

/* One dropdown system at every desktop breakpoint, including native fallback. */
html body.page-markets-overview #segment-heatmap .heatmap-country-control,
html body.page-markets-overview #segment-heatmap .heatmap-country-control .markets-select-shell,
html body.page-markets-overview #segment-heatmap .heatmap-country-control .markets-select-button,
html body.page-markets-overview #segment-heatmap .heatmap-country-control .markets-ref-select,
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-filter-group,
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-k-select,
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-k-select__button {
    height: 42px !important;
    min-height: 42px !important;
    border: 1px solid transparent !important;
    border-radius: 13px !important;
    background: #efeee8 !important;
    box-shadow: none !important;
}

html body.page-markets-overview #segment-heatmap .heatmap-country-control .markets-select-button,
html body.page-markets-overview #segment-heatmap .heatmap-country-control .markets-ref-select,
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-k-select__button {
    padding: 0 38px 0 14px !important;
    color: var(--markets-ink) !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
}

html body.page-markets-overview #segment-heatmap .heatmap-country-control .markets-select-menu,
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-k-select__menu {
    padding: 8px !important;
    border: 1px solid rgba(20, 20, 16, 0.10) !important;
    border-radius: 15px !important;
    background: #fffefb !important;
    box-shadow: 0 16px 38px rgba(31, 29, 24, 0.14) !important;
    scrollbar-width: none !important;
}

/* Rebuild the lower market modules in the same warm/inset language as Data pages. */
html body.page-markets-overview .secondary-market-grid.mo-section-major {
    gap: 22px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body.page-markets-overview .secondary-market-grid > #segment-constituents.market-data-card,
html body.page-markets-overview .secondary-market-grid > #segment-breadth.market-data-card {
    padding: 26px !important;
    border: 0 !important;
    border-radius: 22px !important;
    background: #f1f0ea !important;
    box-shadow: 0 14px 34px rgba(31, 29, 24, 0.045) !important;
    overflow: hidden !important;
}

html body.page-markets-overview #segment-constituents .chart-capture-header,
html body.page-markets-overview #segment-breadth .chart-capture-header {
    min-height: 42px !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body.page-markets-overview #segment-constituents .chart-title-main,
html body.page-markets-overview #segment-breadth .chart-title-main {
    color: var(--markets-ink) !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.025em !important;
    text-transform: none !important;
}

html body.page-markets-overview #segment-breadth .secondary-range-control {
    display: flex !important;
    gap: 2px !important;
    min-height: 42px !important;
    padding: 3px !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: #e5e2d9 !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
}

html body.page-markets-overview #segment-breadth .secondary-range-control .range-prefix {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

html body.page-markets-overview #segment-breadth .secondary-range-btn {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 11px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #5f5c55 !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    box-shadow: none !important;
    flex: 0 0 auto !important;
    width: auto !important;
}

html body.page-markets-overview .secondary-market-grid #segment-constituents.market-data-card .chart-capture-header .chart-title-main,
html body.page-markets-overview .secondary-market-grid #segment-breadth.market-data-card .chart-capture-header .chart-title-main {
    color: var(--markets-ink) !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.025em !important;
    text-transform: none !important;
}

html body.page-markets-overview #segment-breadth .secondary-range-btn:hover {
    background: rgba(255, 255, 255, 0.55) !important;
    color: var(--markets-ink) !important;
}

html body.page-markets-overview #segment-breadth .secondary-range-btn.active {
    background: #11110f !important;
    color: #fff !important;
}

html body.page-markets-overview #segment-constituents .segment-constituents-table-wrap,
html body.page-markets-overview #segment-breadth .market-table-wrap {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    scrollbar-width: none !important;
}

html body.page-markets-overview #segment-constituents .segment-constituents-table-wrap::-webkit-scrollbar,
html body.page-markets-overview #segment-breadth .market-table-wrap::-webkit-scrollbar {
    display: none !important;
}

html body.page-markets-overview #segment-constituents .segment-constituents-table,
html body.page-markets-overview #segment-breadth .market-data-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    background: transparent !important;
}

html body.page-markets-overview #segment-constituents .segment-constituents-table thead,
html body.page-markets-overview #segment-breadth .market-data-table thead {
    background: transparent !important;
}

html body.page-markets-overview #segment-constituents .segment-constituents-table th,
html body.page-markets-overview #segment-breadth .market-data-table th {
    height: 28px !important;
    padding: 0 14px 5px !important;
    border: 0 !important;
    background: transparent !important;
    color: #77736b !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.045em !important;
    text-transform: uppercase !important;
}

html body.page-markets-overview #segment-breadth .market-data-table th button {
    color: inherit !important;
    font: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
}

html body.page-markets-overview #segment-constituents .segment-constituents-table td,
html body.page-markets-overview #segment-breadth .market-data-table td {
    height: 48px !important;
    padding: 11px 14px !important;
    border: 0 !important;
    background: #fbfaf7 !important;
    color: #282620 !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 12px !important;
    font-weight: 550 !important;
    box-shadow: none !important;
}

html body.page-markets-overview #segment-constituents .segment-constituents-table td:first-child,
html body.page-markets-overview #segment-breadth .market-data-table td:first-child {
    border-radius: 12px 0 0 12px !important;
    font-weight: 700 !important;
}

html body.page-markets-overview #segment-constituents .segment-constituents-table td:last-child,
html body.page-markets-overview #segment-breadth .market-data-table td:last-child {
    border-radius: 0 12px 12px 0 !important;
}

html body.page-markets-overview #segment-constituents .segment-constituents-table tbody tr:hover td,
html body.page-markets-overview #segment-breadth .market-data-table tbody tr:hover td {
    background: #f7f5ef !important;
    box-shadow: 0 5px 14px rgba(31, 29, 24, 0.05) !important;
}

html body.page-markets-overview #segment-breadth .segment-cell-n {
    margin-left: 5px !important;
    color: #8a867e !important;
    font-size: 10px !important;
    font-weight: 600 !important;
}

@media (max-width: 768px) {
    html body.page-markets-overview .secondary-market-grid.mo-section-major {
        gap: 16px !important;
    }

    html body.page-markets-overview .secondary-market-grid > #segment-constituents.market-data-card,
    html body.page-markets-overview .secondary-market-grid > #segment-breadth.market-data-card {
        padding: 18px !important;
        border-radius: 18px !important;
    }

    html body.page-markets-overview .segment-mobile-company,
    html body.page-markets-overview .segment-breadth-mobile-row {
        margin-bottom: 8px !important;
        padding: 14px !important;
        border: 0 !important;
        border-radius: 12px !important;
        background: #fbfaf7 !important;
        box-shadow: none !important;
    }
}

/* Cascade lock: Data-page opening must win over every legacy breakpoint. */
html body.page-markets-overview .fm-page-main .markets-top__hero.kff-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 12px 24px !important;
    min-height: 0 !important;
    padding: 0 !important;
}
html body.page-markets-overview .fm-page-main .markets-top__copy { grid-column: 1 !important; grid-row: 1 !important; }
html body.page-markets-overview .fm-page-main .markets-title {
    font-family: var(--site-body, Inter, ui-sans-serif, system-ui, sans-serif) !important;
    font-weight: 720 !important;
    letter-spacing: -0.052em !important;
}
html body.page-markets-overview .fm-page-main .markets-hero-actions {
    display: contents !important;
    width: auto !important;
    min-width: 0 !important;
}
html body.page-markets-overview .fm-page-main .markets-top__hero .markets-submit-action {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    width: auto !important;
    min-width: 84px !important;
    height: 44px !important;
    padding: 0 20px !important;
}
html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px 16px !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta > div {
    display: flex !important;
    align-items: baseline !important;
    gap: 5px !important;
    min-width: 0 !important;
}
html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta > div + div::before {
    content: "·" !important;
    margin-right: 8px !important;
    color: #a09c93 !important;
}
html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta dt,
html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta dd {
    display: inline !important;
    margin: 0 !important;
    max-width: none !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}
html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta dt {
    color: #7d7970 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}
html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta dd {
    color: #3d3a34 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip { margin-top: 22px !important; gap: 12px !important; }
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell {
    box-sizing: border-box !important;
    height: 120px !important;
    min-height: 120px !important;
    padding: 14px 18px !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    border-radius: 24px !important;
    background: #f0efe8 !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 11px !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-content > span {
    color: #7d7970 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell strong {
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-best,
html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-worst {
    gap: 3px !important;
    font-size: 19px !important;
    font-weight: 800 !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-best > b,
html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-worst > b {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
}
@media (max-width: 768px) {
    html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta { display: none !important; }
    html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell {
        height: 108px !important;
        min-height: 108px !important;
        padding: 14px !important;
        border-radius: 18px !important;
    }
}

/* Light, arrowless dropdown triggers across Market Overview. */
html body.page-markets-overview .fm-k-select__button,
html body.page-markets-overview .markets-select-button,
html body.page-markets-overview .markets-ref-select {
    padding-right: 14px !important;
    border-color: transparent !important;
    background-color: #fbfaf7 !important;
    background-image: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

html body.page-markets-overview .fm-k-select__button:hover,
html body.page-markets-overview .markets-select-button:hover,
html body.page-markets-overview .fm-k-select.is-open .fm-k-select__button,
html body.page-markets-overview .markets-select-shell.is-open .markets-select-button {
    background-color: #f6f4ee !important;
}

html body.page-markets-overview .fm-k-select__chevron,
html body.page-markets-overview .markets-select-button::before,
html body.page-markets-overview .markets-select-button::after {
    display: none !important;
    content: none !important;
}

html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-k-select__button,
html body.page-markets-overview #segment-heatmap .heatmap-country-control .markets-select-button,
html body.page-markets-overview #segment-heatmap .heatmap-country-control .markets-ref-select {
    padding-right: 14px !important;
    border-color: transparent !important;
    background-color: #fbfaf7 !important;
    background-image: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

/* Semantic colour for lower-module performance figures. */
html body.page-markets-overview #segment-constituents .segment-constituents-table td.ret-pos,
html body.page-markets-overview #segment-constituents .ret-pos,
html body.page-markets-overview #segment-breadth .market-data-table td.is-pos,
html body.page-markets-overview #segment-breadth .segment-breadth-mobile-row__return.is-pos {
    color: #246846 !important;
    font-weight: 700 !important;
}

html body.page-markets-overview #segment-constituents .segment-constituents-table td.ret-neg,
html body.page-markets-overview #segment-constituents .ret-neg,
html body.page-markets-overview #segment-breadth .market-data-table td.is-neg,
html body.page-markets-overview #segment-breadth .segment-breadth-mobile-row__return.is-neg {
    color: #a62c1d !important;
    font-weight: 700 !important;
}

html body.page-markets-overview #segment-breadth .market-data-table tbody td:nth-child(2),
html body.page-markets-overview #segment-breadth .segment-breadth-mobile-row__positive {
    color: #2f684d !important;
    font-weight: 700 !important;
}

/* Public Companies: remove the outer side-gutter module entirely. */
html body.page-markets .markets-page.page-content .markets-band--table {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body.page-markets .markets-page.page-content .markets-data-block,
html body.page-markets .markets-page.page-content .markets-controls-panel,
html body.page-markets .markets-page.page-content .markets-table-wrap {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Directory imagery is a real, larger 16:9 crop with rounding on the image. */
html body.page-markets .markets-table .col-brand { width: 124px !important; }

html body.page-markets .markets-brand-frame {
    width: 112px !important;
    height: 63px !important;
    aspect-ratio: 16 / 9 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

html body.page-markets .markets-brand-frame img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    object-position: center !important;
    image-rendering: auto !important;
    transform: scale(var(--markets-brand-scale, 1));
    transform-origin: center;
}

@media (max-width: 768px) {
    html body.page-markets .markets-brand-frame {
        width: 88px !important;
        height: 49.5px !important;
    }
}

/* Dropdown hover belongs to the rounded trigger, never its square shell. */
html body.page-markets .markets-controls-row .fm-filter-group,
html body.page-markets .markets-controls-row .fm-k-select,
html body.page-markets .markets-controls-row .markets-sort-stack,
html body.page-markets-overview .heatmap-market-filters .fm-filter-group,
html body.page-markets-overview .heatmap-market-filters .fm-k-select,
html body.page-markets-overview .heatmap-country-control,
html body.page-markets-overview .markets-select-shell {
    border-radius: 13px !important;
}

html body.page-markets .markets-controls-row .fm-filter-group:hover,
html body.page-markets .markets-controls-row .fm-filter-group:focus-within,
html body.page-markets .markets-controls-row .markets-sort-stack:hover,
html body.page-markets .markets-controls-row .markets-sort-stack:focus-within,
html body.page-markets-overview .heatmap-market-filters .fm-filter-group:hover,
html body.page-markets-overview .heatmap-market-filters .fm-filter-group:focus-within,
html body.page-markets-overview .heatmap-country-control:hover,
html body.page-markets-overview .heatmap-country-control:focus-within,
html body.page-markets-overview .heatmap-market-filters .fm-k-select:hover,
html body.page-markets-overview .heatmap-market-filters .fm-k-select:focus-within,
html body.page-markets-overview .markets-select-shell:hover,
html body.page-markets-overview .markets-select-shell:focus-within {
    background-color: transparent !important;
}

html body.page-markets .fm-k-select__button,
html body.page-markets .fm-k-select__button:hover,
html body.page-markets .fm-k-select.is-open .fm-k-select__button,
html body.page-markets-overview .fm-k-select__button,
html body.page-markets-overview .fm-k-select__button:hover,
html body.page-markets-overview .fm-k-select.is-open .fm-k-select__button,
html body.page-markets-overview .markets-select-button,
html body.page-markets-overview .markets-select-button:hover,
html body.page-markets-overview .markets-select-shell.is-open .markets-select-button {
    border-radius: 13px !important;
}

/* Restore the single outer module; remove only the glitchy inner edges. */
html body.page-markets .markets-page.page-content .markets-band--header.kff-hero {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 24px !important;
    padding-bottom: 28px !important;
}

html body.page-markets .markets-page.page-content .markets-header-actions {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
}

html body.page-markets .markets-page.page-content .markets-header-actions .markets-submit-action {
    width: auto !important;
    min-width: 84px !important;
    height: 44px !important;
    padding: 0 20px !important;
}

html body.page-markets .markets-page.page-content .markets-band--table {
    position: relative !important;
    margin: 0 !important;
    padding: 24px !important;
    border: 0 !important;
    border-radius: 22px !important;
    background: #f1f0ea !important;
    box-shadow: none !important;
}

html body.page-markets .markets-page.page-content .markets-table-meta {
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
}

html body.page-markets .markets-page.page-content .markets-table-meta dt,
html body.page-markets .markets-page.page-content .markets-table-meta dd {
    margin: 0 !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
}

html body.page-markets .markets-page.page-content .markets-table-meta dt {
    color: #7d7970 !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
}

html body.page-markets .markets-page.page-content .markets-table-meta dd {
    color: #3d3a34 !important;
    font-weight: 650 !important;
}

html body.page-markets .markets-page.page-content .markets-data-block,
html body.page-markets .markets-page.page-content .markets-controls-panel,
html body.page-markets .markets-page.page-content .markets-controls-row,
html body.page-markets .markets-page.page-content .markets-table-wrap,
html body.page-markets .markets-page.page-content .markets-table {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    mask-image: none !important;
}

html body.page-markets .markets-page.page-content .markets-data-block::before,
html body.page-markets .markets-page.page-content .markets-data-block::after,
html body.page-markets .markets-page.page-content .markets-controls-panel::before,
html body.page-markets .markets-page.page-content .markets-controls-panel::after,
html body.page-markets .markets-page.page-content .markets-table-wrap::before,
html body.page-markets .markets-page.page-content .markets-table-wrap::after {
    display: none !important;
    content: none !important;
    background: none !important;
    box-shadow: none !important;
}

html body.page-markets .markets-page.page-content .markets-table-wrap {
    scrollbar-width: none !important;
}

html body.page-markets .markets-page.page-content .markets-table-wrap::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

@media (min-width: 901px) {
    html body.page-markets .markets-page.page-content .markets-table-wrap {
        overflow: visible !important;
    }
}

@media (max-width: 768px) {
    html body.page-markets .markets-page.page-content .markets-band--table {
        padding: 16px !important;
        border-radius: 18px !important;
    }
    html body.page-markets .markets-page.page-content .markets-table-meta {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }
}

/* Final Overview dropdown focus authority: pointer focus never lingers on shells. */
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-filter-group:focus-within,
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-k-select:focus-within,
html body.page-markets-overview #segment-heatmap .heatmap-country-control:focus-within,
html body.page-markets-overview .markets-select-shell:focus-within {
    box-shadow: none !important;
}

html body.page-markets-overview .fm-k-select__button:focus:not(:focus-visible),
html body.page-markets-overview .markets-select-button:focus:not(:focus-visible),
html body.page-markets-overview .markets-ref-select:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

html body.page-markets-overview .fm-k-select__button:focus-visible,
html body.page-markets-overview .markets-select-button:focus-visible,
html body.page-markets-overview .markets-ref-select:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(47, 104, 77, 0.12) !important;
}

/* KPI LAST: this block must remain the stylesheet tail. */
/* Public controls are finalized here too, after their legacy interaction rules. */
@media (min-width: 1101px) {
    html body.page-markets .markets-controls-row.kff-controls {
        grid-template-columns: 112px minmax(230px, 1.1fr) minmax(190px, .9fr) minmax(220px, 1fr) 180px !important;
        justify-content: stretch !important;
    }
}
html body.page-markets .markets-controls-row .fm-filter-group:focus-within,
html body.page-markets .markets-controls-row .fm-k-select:focus-within,
html body.page-markets .markets-controls-row .markets-sort-stack:focus-within {
    box-shadow: none !important;
}
html body.page-markets .markets-controls-row .fm-k-select__button:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}
html body.page-markets .markets-controls-row .fm-k-select__button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Current shared Submit control across all Markets destinations. */
html body.page-markets .markets-page.page-content .markets-header-actions .markets-submit-action,
html body.page-markets-overview .fm-page-main .markets-top__hero .markets-submit-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    border: 1px solid #151515 !important;
    border-radius: 12px !important;
    background: #151515 !important;
    color: #fff !important;
    box-shadow: none !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
html body.page-markets .markets-page.page-content .markets-header-actions .markets-submit-action:hover,
html body.page-markets .markets-page.page-content .markets-header-actions .markets-submit-action:focus-visible,
html body.page-markets-overview .fm-page-main .markets-top__hero .markets-submit-action:hover,
html body.page-markets-overview .fm-page-main .markets-top__hero .markets-submit-action:focus-visible {
    border-color: #24543e !important;
    background: #24543e !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* Funding-aligned Market Overview opening grid. */
@media (min-width: 769px) {
    html body.page-markets-overview .page-main.fm-page-main {
        width: min(calc(100% - 80px), 1190px) !important;
        max-width: 1190px !important;
        margin-inline: auto !important;
    }
}
html body.page-markets-overview .fm-page-main .markets-top__hero.kff-hero {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    column-gap: 24px !important;
    row-gap: 14px !important;
}
html body.page-markets-overview .fm-page-main .markets-top__copy {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
}
html body.page-markets-overview .fm-page-main .markets-title {
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: clamp(42px, 4.6vw, 60px) !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.045em !important;
}
html body.page-markets-overview .fm-page-main .markets-hero-actions {
    display: contents !important;
}
html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: start !important;
    width: auto !important;
}
html body.page-markets-overview .fm-page-main .markets-top__hero .markets-submit-action {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: end !important;
}

html body.page-markets-overview .fm-page-main .markets-summary-strip {
    position: relative !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px 0 0 !important;
    gap: 12px !important;
    transform: none !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell {
    box-sizing: border-box !important;
    height: 96px !important;
    min-height: 96px !important;
    padding: 14px 16px !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    align-items: start !important;
    border-radius: 18px !important;
    background: #f1f0ea !important;
    box-shadow: none !important;
    transform: none !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell:hover {
    background: #eeede6 !important;
    box-shadow: 0 6px 16px rgba(31, 29, 24, 0.045) !important;
    transform: none !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 11px !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-content {
    display: grid !important;
    align-content: center !important;
    align-self: center !important;
    gap: 3px !important;
    min-width: 0 !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-content > span {
    overflow: hidden !important;
    color: #69665f !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    text-overflow: ellipsis !important;
    text-transform: none !important;
    white-space: nowrap !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-content > span b {
    color: inherit !important;
    font: inherit !important;
    letter-spacing: inherit !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell strong {
    color: var(--markets-ink) !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 20px !important;
    font-weight: 750 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.025em !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-best,
html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-worst {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    min-width: 0 !important;
    font-size: 18px !important;
    font-weight: 750 !important;
    line-height: 1.05 !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-best > b,
html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-worst > b {
    display: block !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: -0.015em !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-main--breadth {
    display: grid !important;
    grid-template-columns: minmax(0, auto) minmax(58px, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-main--breadth strong {
    white-space: nowrap !important;
}
@media (max-width: 980px) and (min-width: 481px) {
    html body.page-markets-overview .fm-page-main .markets-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 480px) {
    html body.page-markets-overview .fm-page-main .markets-summary-strip {
        grid-template-columns: 1fr !important;
    }
}

/* Final KPI composition: vertically centre the icon and complete text stack. */
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell {
    align-items: center !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-icon {
    align-self: center !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-content {
    align-content: center !important;
    align-self: center !important;
    gap: 3px !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-content > span {
    margin: 0 !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-best,
html body.page-markets-overview .fm-page-main .markets-summary-strip #summary-worst {
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

/* ACTUAL STYLESHEET END: completed Data-page Market Overview composition. */
/* Simple reference hierarchy: one black Inter system, differentiated only by size and weight. */
html body.page-markets .markets-page,
html body.page-markets .markets-page button,
html body.page-markets .markets-page input,
html body.page-markets .markets-page select,
html body.page-markets .markets-page table,
html body.page-markets-overview .fm-page-main,
html body.page-markets-overview .fm-page-main button,
html body.page-markets-overview .fm-page-main input,
html body.page-markets-overview .fm-page-main select,
html body.page-markets-overview .fm-page-main table {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
}
html body.page-markets .markets-page .markets-header-meta,
html body.page-markets .markets-page .markets-header-meta dt,
html body.page-markets .markets-page .markets-header-meta dd,
html body.page-markets .markets-page .market-ctl label,
html body.page-markets .markets-page .market-ctl-label,
html body.page-markets .markets-page .range-prefix,
html body.page-markets .markets-page .markets-table th,
html body.page-markets .markets-page .markets-company-subline,
html body.page-markets .markets-page .markets-table-meta,
html body.page-markets .markets-page .markets-pagination-summary,
html body.page-markets-overview .fm-page-main .markets-meta,
html body.page-markets-overview .fm-page-main .markets-meta dt,
html body.page-markets-overview .fm-page-main .markets-meta dd,
html body.page-markets-overview .fm-page-main .markets-summary-content > span,
html body.page-markets-overview .fm-page-main .chart-title-sub,
html body.page-markets-overview .fm-page-main .segment-heatmap-table thead th,
html body.page-markets-overview .fm-page-main .heatmap-segment-button,
html body.page-markets-overview .fm-page-main .metric-label,
html body.page-markets-overview .fm-page-main .chart-source-attribution {
    color: #171713 !important;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
html body.page-markets .markets-page .markets-header-meta,
html body.page-markets .markets-page .markets-table-meta,
html body.page-markets .markets-page .markets-pagination-summary,
html body.page-markets-overview .fm-page-main .markets-meta,
html body.page-markets-overview .fm-page-main .chart-title-sub {
    font-size: 12px !important;
    font-weight: 450 !important;
    line-height: 1.45 !important;
}
html body.page-markets .markets-page .markets-header-meta dt,
html body.page-markets .markets-page .markets-header-meta dd,
html body.page-markets-overview .fm-page-main .markets-meta dt,
html body.page-markets-overview .fm-page-main .markets-meta dd {
    color: #171713 !important;
    font-size: 12px !important;
    font-weight: 550 !important;
}
html body.page-markets .markets-page .market-ctl label,
html body.page-markets .markets-page .market-ctl-label,
html body.page-markets .markets-page .range-prefix,
html body.page-markets .markets-page .markets-table th,
html body.page-markets-overview .fm-page-main .segment-heatmap-table thead th {
    color: #171713 !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
}
html body.page-markets .markets-page .markets-company-subline {
    color: #171713 !important;
    font-size: 12px !important;
    font-weight: 450 !important;
    line-height: 1.35 !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-content > span {
    color: #171713 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}
html body.page-markets-overview .fm-page-main .chart-title-main,
html body.page-markets-overview .fm-page-main .market-data-card h2,
html body.page-markets-overview .fm-page-main .market-data-card h3,
html body.page-markets-overview .fm-page-main .secondary-market-grid h2,
html body.page-markets-overview .fm-page-main .secondary-market-grid h3 {
    color: #171713 !important;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
    font-size: 18px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.015em !important;
    text-transform: none !important;
}
html body.page-markets-overview .fm-page-main .heatmap-segment-button {
    color: #171713 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}
html body.page-markets-overview .fm-page-main .metric-label {
    color: #171713 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}
html body.page-markets-overview .fm-page-main #segment-heatmap.segment-heatmap-card.mo-section-major,
html body.page-markets-overview .fm-page-main #segment-performance.mo-segment-spine.segment-chart-capture.mo-section-major {
    border: 0 !important;
    border-radius: 22px !important;
    background: #fbfaf7 !important;
    box-shadow: 0 8px 24px rgba(31, 29, 24, .045) !important;
}
/* Final mobile Market Snapshot: current rounded module with one shared inset,
   not the legacy bordered KPI slab. */
@media (max-width: 720px) {
    html body.page-markets-overview .fm-page-main .markets-mobile-summary-card {
        display: block !important;
        margin: 12px 0 16px !important;
        padding: 14px !important;
        border: 0 !important;
        border-radius: 18px !important;
        background: #fbfaf7 !important;
        box-shadow: none !important;
    }

    html body.page-markets-overview .fm-page-main .markets-mobile-summary-label {
        margin: 0 0 9px !important;
        color: #171713 !important;
        font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
        font-size: 14px !important;
        font-weight: 720 !important;
        line-height: 1.2 !important;
        letter-spacing: -0.015em !important;
        text-transform: none !important;
    }

    html body.page-markets-overview .fm-page-main .markets-mobile-summary-meta {
        display: none !important;
    }

    html body.page-markets-overview .fm-page-main .markets-mobile-summary-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: auto !important;
        gap: 10px 14px !important;
        padding: 11px 12px !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: #f1f0ea !important;
    }

    html body.page-markets-overview .fm-page-main .markets-mobile-summary-metric,
    html body.page-markets-overview .fm-page-main .markets-mobile-summary-metric:first-child {
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }

    html body.page-markets-overview .fm-page-main .markets-mobile-summary-metric strong,
    html body.page-markets-overview .fm-page-main .markets-mobile-summary-metric strong#mobile-market-breadth {
        display: block !important;
        min-height: 0 !important;
        color: #171713 !important;
        font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
        font-size: 17px !important;
        font-weight: 750 !important;
        line-height: 1.08 !important;
        letter-spacing: -0.02em !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    html body.page-markets-overview .fm-page-main .markets-mobile-summary-metric strong#mobile-market-best,
    html body.page-markets-overview .fm-page-main .markets-mobile-summary-metric strong#mobile-market-worst {
        display: block !important;
        min-height: 0 !important;
        font-size: 14.5px !important;
        line-height: 1.12 !important;
        overflow-wrap: anywhere !important;
        -webkit-line-clamp: unset !important;
    }

    html body.page-markets-overview .fm-page-main .markets-mobile-summary-metric strong.is-pos,
    html body.page-markets-overview .fm-page-main .markets-mobile-summary-metric strong.focus-ret-pos {
        color: #2f684d !important;
    }

    html body.page-markets-overview .fm-page-main .markets-mobile-summary-metric strong.is-neg,
    html body.page-markets-overview .fm-page-main .markets-mobile-summary-metric strong.focus-ret-neg {
        color: #a4473c !important;
    }

    html body.page-markets-overview .fm-page-main .markets-mobile-summary-metric span {
        display: block !important;
        margin: 4px 0 0 !important;
        color: #6f6b63 !important;
        font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
        font-size: 9.5px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }
}

/* Desktop content parity with Funding Monitor. Funding's 1480px outer shell
   has 40px side padding, so its visible title/module canvas is 1400px. */
@media (min-width: 769px) {
    html body.page-markets:not(.page-private-markets) .markets-page.page-content,
    html body.page-markets.page-private-markets .markets-page.private-page {
        width: min(calc(100% - 80px), 1400px) !important;
        max-width: 1400px !important;
        margin-inline: auto !important;
    }

    html body.page-markets:not(.page-private-markets) .markets-page.page-content .markets-band--table {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    html body.page-markets.page-private-markets .markets-page.private-page .private-module {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Long segment names must remain fully contained by their tag. The table
   column is intentionally compact, so labels wrap at their natural space. */
html body.page-markets:not(.page-private-markets) .markets-table .markets-segment-pill {
    width: fit-content !important;
    max-width: 100% !important;
    height: auto !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: normal !important;
    text-align: center !important;
}

/* Desktop lower-module controls stay tonal instead of using a heavy black active state. */
@media (min-width: 721px) {
    html body.page-markets-overview .fm-page-main #segment-constituents .segment-constituents__filters .secondary-country-control .markets-select-button {
        background: #f4f2ed !important;
    }

    html body.page-markets-overview .fm-page-main #segment-breadth .secondary-range-control {
        background: #f1f0eb !important;
    }

    html body.page-markets-overview .fm-page-main #segment-breadth .secondary-range-btn:hover {
        background: #e8e7e1 !important;
        color: #24231f !important;
    }

    html body.page-markets-overview .fm-page-main #segment-breadth .secondary-range-btn.active {
        background: #dfe9e2 !important;
        color: #245a42 !important;
        box-shadow: none !important;
    }
}

/* Desktop public-company trends: a slightly larger, higher-contrast signal without changing row density. */
@media (min-width: 769px) {
    html body.page-markets:not(.page-private-markets) .markets-table thead th {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
    }

    html body.page-markets:not(.page-private-markets) .markets-table td.col-trend .market-card-spark {
        width: 104px !important;
        height: 30px !important;
    }

    html body.page-markets:not(.page-private-markets) .markets-table td.col-trend .market-card-spark polyline {
        stroke: rgba(47, 104, 77, 0.88) !important;
        stroke-width: 1.8px !important;
    }

    html body.page-markets:not(.page-private-markets) .markets-table td.col-trend .market-card-spark.is-negative polyline {
        stroke: rgba(164, 71, 60, 0.88) !important;
    }
}

/* Private desktop rows fit their viewport so the final cell's radius is not clipped by the scroll wrapper. */
@media (min-width: 1101px) {
    html body.page-markets.page-private-markets .table-wrap table {
        width: 100% !important;
        min-width: 0 !important;
    }
}

html body.page-markets-overview .fm-page-main .secondary-market-grid.mo-section-major #segment-constituents.market-data-card,
html body.page-markets-overview .fm-page-main .secondary-market-grid.mo-section-major #segment-breadth.market-data-card {
    border: 0 !important;
    border-radius: 22px !important;
    background: #fbfaf7 !important;
    box-shadow: 0 8px 24px rgba(31, 29, 24, .045) !important;
}

@media (min-width: 1200px) {
    html body.page-markets-overview .page-main.fm-page-main {
        width: min(calc(100% - 96px), 1760px) !important;
        max-width: 1760px !important;
    }

    html body.page-markets-overview .secondary-market-grid.mo-section-major {
        gap: 32px !important;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) !important;
        width: 100% !important;
        max-width: none !important;
        margin: 28px 0 0 !important;
    }

    html body.page-markets-overview .secondary-market-grid > #segment-constituents.market-data-card,
    html body.page-markets-overview .secondary-market-grid > #segment-breadth.market-data-card {
        padding: 28px 32px !important;
    }

    html body.page-markets-overview .segment-constituents__filters {
        grid-template-columns: minmax(220px, 1fr) minmax(190px, .8fr) !important;
        width: min(100%, 520px) !important;
    }

    html body.page-markets-overview #segment-constituents .segment-constituents-table {
        min-width: 0 !important;
        table-layout: fixed !important;
    }

    html body.page-markets-overview #segment-constituents .segment-constituents-table th.col-company,
    html body.page-markets-overview #segment-constituents .segment-constituents-table td.col-company {
        width: 38% !important;
    }

    html body.page-markets-overview #segment-constituents .segment-constituents-table th:nth-child(2),
    html body.page-markets-overview #segment-constituents .segment-constituents-table td.col-ticker {
        width: 108px !important;
    }

    html body.page-markets-overview #segment-constituents .segment-constituents-table th.amount-col,
    html body.page-markets-overview #segment-constituents .segment-constituents-table td.amount-col {
        width: 118px !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }

    html body.page-markets-overview #segment-constituents .segment-constituents-table th:last-child,
    html body.page-markets-overview #segment-constituents .segment-constituents-table td:last-child {
        width: 124px !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
    }
}

html body.page-markets-overview .fm-page-main #segment-heatmap.segment-heatmap-card .heatmap-card-header .heatmap-market-filters .fm-filter-group,
html body.page-markets-overview .fm-page-main #segment-heatmap.segment-heatmap-card .heatmap-card-header .heatmap-market-filters .fm-k-select,
html body.page-markets-overview .fm-page-main #segment-heatmap.segment-heatmap-card .heatmap-card-header .heatmap-market-filters .fm-k-select .fm-k-select__button,
html body.page-markets-overview .fm-page-main #segment-heatmap.segment-heatmap-card .heatmap-card-header .heatmap-country-control,
html body.page-markets-overview .fm-page-main #segment-heatmap.segment-heatmap-card .heatmap-card-header .heatmap-country-control .markets-select-shell,
html body.page-markets-overview .fm-page-main #segment-heatmap.segment-heatmap-card .heatmap-card-header .heatmap-country-control .markets-select-button,
html body.page-markets-overview .fm-page-main #segment-heatmap.segment-heatmap-card .heatmap-card-header .heatmap-country-control .markets-ref-select {
    border-color: transparent !important;
    border-radius: 12px !important;
    background: #f1f0ea !important;
    box-shadow: none !important;
}
html body.page-markets-overview .fm-page-main #segment-heatmap.segment-heatmap-card .segment-heatmap-table thead,
html body.page-markets-overview .fm-page-main #segment-heatmap.segment-heatmap-card .segment-heatmap-table thead th {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
html body.page-markets-overview .fm-page-main .markets-top__hero.kff-hero {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;
    column-gap: 24px !important;
    row-gap: 8px !important;
}
html body.page-markets-overview .fm-page-main .markets-top__copy {
    grid-column: 1 !important;
    grid-row: 1 !important;
}
html body.page-markets-overview .fm-page-main .markets-hero-actions {
    display: contents !important;
}
html body.page-markets-overview .fm-page-main .markets-top__hero .markets-meta {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: start !important;
    justify-self: start !important;
    width: auto !important;
    min-height: 0 !important;
}
html body.page-markets-overview .fm-page-main .markets-top__hero .markets-submit-action {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
    justify-self: end !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip {
    margin-top: 18px !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell {
    height: 104px !important;
    min-height: 104px !important;
    padding: 16px 18px !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: #fbfaf7 !important;
    box-shadow: 0 8px 24px rgba(31, 29, 24, .045) !important;
}
html body.page-markets-overview .fm-page-main .markets-summary-strip .markets-summary-cell:hover {
    background: #fffefa !important;
    box-shadow: 0 12px 28px rgba(31, 29, 24, .065) !important;
}
html body.page-markets-overview .fm-page-main #segment-heatmap,
html body.page-markets-overview .fm-page-main #segment-performance,
html body.page-markets-overview .fm-page-main .secondary-market-grid .market-data-card {
    border: 0 !important;
    border-radius: 22px !important;
    background: #fbfaf7 !important;
    box-shadow: 0 8px 24px rgba(31, 29, 24, .045) !important;
}
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-filter-group,
html body.page-markets-overview #segment-heatmap .heatmap-market-filters .fm-k-select,
html body.page-markets-overview #segment-heatmap .heatmap-country-control,
html body.page-markets-overview #segment-heatmap .fm-k-select__button,
html body.page-markets-overview #segment-heatmap .markets-ref-select {
    border-color: transparent !important;
    border-radius: 12px !important;
    background: #f1f0ea !important;
    box-shadow: none !important;
}
html body.page-markets-overview #segment-heatmap .fm-k-select__button:hover,
html body.page-markets-overview #segment-heatmap .markets-ref-select:hover {
    border-radius: 12px !important;
    background: #ecebe4 !important;
}
/* Public/private Markets opening authority: compact tool-page rhythm, no
   standalone update strip, and consistent sentence-case pills. */
html body.page-markets .markets-page .markets-table-meta,
html body.page-markets.page-private-markets .markets-page .private-meta {
    display: none !important;
}

html body.page-markets:not(.page-private-markets) .markets-segment-pill,
html body.page-markets.page-private-markets .pill {
    width: fit-content !important;
    min-height: 0 !important;
    padding: 4px 8px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

@media (min-width: 769px) {
    html body.page-markets:not(.page-private-markets) .markets-page.page-content {
        padding-top: 22px !important;
    }
    html body.page-markets:not(.page-private-markets) .markets-page .markets-band--header.kff-hero {
        padding-bottom: 8px !important;
    }
    html body.page-markets:not(.page-private-markets) .markets-page .markets-band--table {
        margin-top: 0 !important;
    }
}

@media (min-width: 721px) {
    html body.page-markets.page-private-markets .markets-page.private-page {
        padding-top: 22px !important;
    }
    html body.page-markets.page-private-markets .markets-page .private-hero {
        padding-bottom: 8px !important;
    }
}

@media (max-width: 720px) {
    html body.page-markets:not(.page-private-markets) .markets-segment-pill,
    html body.page-markets.page-private-markets .pill {
        max-width: 100% !important;
        padding: 3px 7px !important;
        border-radius: 9px !important;
        font-size: 9.5px !important;
        line-height: 1.08 !important;
        white-space: normal !important;
    }
}

/* The data loader still updates this node, but it is not a visible page
   element. Match the specificity of the legacy flex rule that painted it. */
html body.page-markets:not(.page-private-markets) .markets-page.page-content .markets-table-meta {
    display: none !important;
}

/* Company ranking rows use the standard light module fill rather than the
   brighter paper-white surface. Keep the surrounding stone band visible. */
html body.page-markets:not(.page-private-markets) .markets-table tbody td,
html body.page-markets.page-private-markets .private-module tbody td {
    background:#faf9f7 !important;
}

html body.page-markets:not(.page-private-markets) .markets-table tbody tr:hover td,
html body.page-markets:not(.page-private-markets) .markets-table tbody tr:focus-within td,
html body.page-markets.page-private-markets .private-module tbody tr:hover td,
html body.page-markets.page-private-markets .private-module tbody tr:focus-within td {
    background:#f6f5f1 !important;
}

/* Model infrastructure gets a cool technical token instead of falling into
   the default green family used by unrelated market segments. */
html body.page-markets:not(.page-private-markets) .markets-table tr[data-segment="FOUNDATION_MODELS"] .markets-segment-pill,
html body.page-markets:not(.page-private-markets) .market-card[data-segment="FOUNDATION_MODELS"] .markets-segment-pill {
    background:#d8e7ff !important;
    color:#244b72 !important;
}

/* Markets overview desktop guardrails. Keep the sticky heat-map headings on
   their own opaque row and reserve real width for constituent company names. */
@media (min-width: 721px) {
    html body.page-markets-overview .fm-page-main #segment-heatmap.segment-heatmap-card .segment-heatmap-table thead,
    html body.page-markets-overview .fm-page-main #segment-heatmap.segment-heatmap-card .segment-heatmap-table thead th {
        height: 40px !important;
        min-height: 40px !important;
        background: #fbfaf7 !important;
        box-shadow: 0 7px 0 #fbfaf7 !important;
    }

    html body.page-markets-overview .fm-page-main #segment-heatmap.segment-heatmap-card .segment-heatmap-table thead {
        z-index: 20 !important;
    }

    html body.page-markets-overview .fm-page-main #segment-heatmap.segment-heatmap-card .segment-heatmap-table thead th {
        z-index: 21 !important;
        padding: 8px 6px 10px !important;
        line-height: 1.15 !important;
        vertical-align: middle !important;
        overflow: visible !important;
    }

    html body.page-markets-overview .fm-page-main #segment-heatmap .heatmap-sort-btn {
        display: inline-flex !important;
        min-height: 22px !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1.1 !important;
    }

    html body.page-markets-overview .fm-page-main #segment-constituents .segment-constituents-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
    }

    html body.page-markets-overview .fm-page-main #segment-constituents .segment-constituents-table th:nth-child(1),
    html body.page-markets-overview .fm-page-main #segment-constituents .segment-constituents-table td:nth-child(1) {
        width: 34% !important;
        min-width: 0 !important;
    }

    html body.page-markets-overview .fm-page-main #segment-constituents .segment-constituents-table th:nth-child(2),
    html body.page-markets-overview .fm-page-main #segment-constituents .segment-constituents-table td:nth-child(2) {
        width: 18% !important;
        min-width: 0 !important;
    }

    html body.page-markets-overview .fm-page-main #segment-constituents .segment-constituents-table th:nth-child(3),
    html body.page-markets-overview .fm-page-main #segment-constituents .segment-constituents-table td:nth-child(3) {
        width: 18% !important;
        min-width: 0 !important;
    }

    html body.page-markets-overview .fm-page-main #segment-constituents .segment-constituents-table th:nth-child(4),
    html body.page-markets-overview .fm-page-main #segment-constituents .segment-constituents-table td:nth-child(4) {
        width: 14% !important;
        min-width: 0 !important;
    }

    html body.page-markets-overview .fm-page-main #segment-constituents .segment-constituents-table th:nth-child(5),
    html body.page-markets-overview .fm-page-main #segment-constituents .segment-constituents-table td:nth-child(5) {
        width: 16% !important;
        min-width: 0 !important;
    }

    html body.page-markets-overview .fm-page-main #segment-constituents .segment-constituents-table td.col-company {
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        hyphens: none !important;
    }

    html body.page-markets-overview .fm-page-main #segment-breadth .secondary-range-btn.active {
        border-color: #171713 !important;
        background: #171713 !important;
        color: #fff !important;
        box-shadow: none !important;
    }
}

/* Public-company identity authority: the segment is secondary identity copy,
   not a separate highlighted data column. */
html body.page-markets:not(.page-private-markets) .markets-table .markets-company-subline,
html body.page-markets:not(.page-private-markets) .market-card .market-card-segment {
    display: block !important;
    min-width: 0 !important;
    margin-top: 2px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #6f6b63 !important;
    font-family: var(--site-body, Inter, system-ui, sans-serif) !important;
    font-size: 10.5px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Public Companies methodology lives beside Submit, matching the private
   market control while retaining page-specific copy. */
html body.page-markets:not(.page-private-markets) .markets-page .markets-header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

html body.page-markets:not(.page-private-markets) .markets-page .public-markets-info-control {
    width: 42px !important;
    height: 42px !important;
}

html body.page-markets:not(.page-private-markets) .markets-page .public-markets-info-control .page-info-trigger {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
}

@media (min-width: 769px) {
    html body.page-markets:not(.page-private-markets) .markets-table .col-name {
        width: 30% !important;
    }

    html body.page-markets:not(.page-private-markets) .markets-table .col-mcap {
        width: 98px !important;
    }

    html body.page-markets:not(.page-private-markets) .markets-table .col-price {
        width: 76px !important;
    }

    html body.page-markets:not(.page-private-markets) .markets-table .col-chg {
        width: 72px !important;
    }

    html body.page-markets:not(.page-private-markets) .markets-table .col-chg-ytd {
        width: 80px !important;
    }

    html body.page-markets:not(.page-private-markets) .markets-table .col-trend {
        width: 118px !important;
    }

    html body.page-markets:not(.page-private-markets) .markets-table th,
    html body.page-markets:not(.page-private-markets) .markets-table td {
        padding-inline: 9px !important;
    }
}

@media (max-width: 768px) {
    html body.page-markets:not(.page-private-markets) .market-card-meta-line {
        display: flex !important;
        min-width: 0 !important;
        align-items: center !important;
        gap: 7px !important;
        margin-top: 3px !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card .market-card-segment {
        flex: 0 1 auto !important;
        margin-top: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    html body.page-markets:not(.page-private-markets) .market-card-meta-line .markets-country-flag {
        flex: 0 0 auto !important;
    }
}
