/*
 * Benchmarks Explorer
 * Colors are scoped to the block (--bm-*) because the sitewide --dark-blue-*
 * ramp is shifted relative to the benchmark design (e.g. site --dark-blue-500
 * is #092f5d, the design's base navy is #0a376d).
 */
.bm-explorer {
    --bm-navy: #0a376d;
    --bm-navy-deep: #092f5d;
    --bm-blue: #0072e3;
    --bm-sky: #40c8f6;
    --bm-orange: #e96822;
    --bm-yellow: #fcc63b;
    --bm-body: #092f5d;
    --bm-muted: #4f5d66;
    --bm-border: #d9e2ec;
    --bm-tint: #f1f7ff;
    --bm-pale: #b8cce4;
    --bm-gray: #7b8c97;
    --bm-display: "Sohne", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --bm-mono: "Space Mono", "Courier New", Courier, monospace;
    --bm-ease: cubic-bezier(0.2, 0, 0, 1);

    position: relative;
    background: #f9fbfd;
    font-family: var(--bm-display);
    color: var(--bm-body);
}

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

/* The parent theme styles every <button> (orange fill, line-height 1, outline
   removed on focus), so controls here reset what they rely on. */
.bm-explorer button {
    font: inherit;
    line-height: 1.3;
    text-shadow: none;
    box-shadow: none;
}

.bm-explorer button:focus-visible {
    outline: 2px solid var(--bm-blue);
    outline-offset: 2px;
}

.bm-explorer .bm-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* Editor outline
 --------------------------------------------- */
.bm-explorer--editor {
    padding: 16px;
    border: 1px dashed var(--bm-border);
}

.bm-explorer--editor .bm-editor-section {
    margin-bottom: 12px;
}

.bm-explorer--editor ul {
    margin: 4px 0 0 18px;
    font-size: 13px;
}

/* Sticky filter bar + tabs
 --------------------------------------------- */
/* --bm-sticky-top is set by the JS to the bottom edge of the pinned site nav
   (admin bar included), so the bar docks right under it. */
.bm-explorer .bm-sticky {
    position: sticky;
    top: var(--bm-sticky-top, 0px);
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--bm-border);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.1);
}

.bm-explorer .bm-filterbar {
    background: var(--bm-tint);
    border-bottom: 1px solid var(--bm-border);
}

.bm-explorer .bm-filterbar-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 14px;
}

.bm-explorer .bm-filterbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.bm-explorer .bm-chips,
.bm-explorer .bm-chips-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 34px;
}

.bm-explorer .bm-chips-label {
    margin-right: 6px;
    font-family: var(--bm-mono);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bm-blue);
}

.bm-explorer .bm-chip-wrap {
    position: relative;
}

.bm-explorer .bm-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid var(--bm-border);
    border-radius: 999px;
    background: #fff;
    color: var(--bm-body);
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
    transition: background 140ms, border-color 140ms;
}

.bm-explorer .bm-chip.is-active {
    border-color: var(--bm-navy);
    background: var(--bm-navy);
    color: #fff;
}

.bm-explorer .bm-chip-n {
    font-family: var(--bm-mono);
    font-size: 10.5px;
    color: var(--bm-muted);
}

.bm-explorer .bm-chip.is-active .bm-chip-n {
    color: #fff;
}

.bm-explorer .bm-caret {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 140ms;
}

.bm-explorer .bm-caret.is-open {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.bm-explorer .bm-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    min-width: 260px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--bm-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(100, 116, 139, 0.18);
}

.bm-explorer .bm-opt {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--bm-navy);
    font-size: 13px;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.bm-explorer .bm-opt:hover,
.bm-explorer .bm-opt.is-selected {
    background: var(--bm-tint);
}

.bm-explorer .bm-opt.is-selected .bm-opt-label {
    font-weight: 500;
}

.bm-explorer .bm-opt-dot {
    width: 7px;
    height: 7px;
    background: transparent;
}

.bm-explorer .bm-opt.is-selected .bm-opt-dot {
    background: var(--bm-navy);
}

.bm-explorer .bm-opt-n {
    font-family: var(--bm-mono);
    font-size: 10.5px;
    color: var(--bm-muted);
}

.bm-explorer .bm-showing {
    margin-left: auto;
    font-size: 13px;
    color: var(--bm-body);
}

.bm-explorer .bm-showing strong {
    font-weight: 500;
    color: var(--bm-navy);
}

.bm-explorer .bm-filterbar-legend:empty {
    display: none;
}

.bm-explorer .bm-filterbar-legend {
    display: flex;
    justify-content: flex-end;
    font-size: 13px;
}

.bm-explorer .bm-tabs-wrap {
    padding-top: 4px;
    padding-bottom: 0;
}

.bm-explorer .bm-tabs {
    display: flex;
    gap: 4px;
    margin: 0 -4px;
    padding: 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.bm-explorer .bm-tabs::-webkit-scrollbar {
    display: none;
}

.bm-explorer .bm-tab {
    flex: none;
    padding: 12px 14px 10px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: none;
    color: var(--bm-muted);
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    cursor: pointer;
    transition: color 140ms, border-color 140ms;
}

.bm-explorer .bm-tab.is-active {
    border-bottom-color: var(--bm-orange);
    color: var(--bm-navy);
    font-weight: 600;
}

/* Sections
 --------------------------------------------- */
.bm-explorer .bm-main {
    display: flex;
    flex-direction: column;
    padding-top: 56px;
    padding-bottom: 96px;
}

.bm-explorer .bm-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.bm-explorer .bm-section[hidden] {
    display: none;
}

.bm-explorer .bm-section-head {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 820px;
}

.bm-explorer .bm-eyebrow {
    font-family: var(--bm-mono);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bm-blue);
}

.bm-explorer .bm-section-title {
    margin: 0;
    font-family: var(--bm-display);
    font-weight: 300;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--bm-navy);
    text-wrap: balance;
}

.bm-explorer .bm-section-intro {
    margin: 0;
    font-size: 17px;
    line-height: 1.55;
    color: var(--bm-body);
    text-wrap: pretty;
}

.bm-explorer .bm-section-intro strong {
    font-weight: 500;
    color: var(--bm-navy);
}

/* Cards
 --------------------------------------------- */
.bm-explorer .bm-charts {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 24px;
}

/* Basis is the share of the row once the 24px gaps are removed. Only "third"
   grows, so when a third-width card is hidden (e.g. the filter-only median FTE)
   its siblings fill the row, while a lone half-width card stays half-width. */
.bm-explorer .bm-card {
    flex: 0 1 100%;
    min-width: 0;
}

.bm-explorer .bm-card[data-span="two-thirds"] { flex-basis: calc((100% - 24px) * 0.6667 - 0.5px); }
.bm-explorer .bm-card[data-span="three-fifths"] { flex-basis: calc((100% - 24px) * 0.6 - 0.5px); }
.bm-explorer .bm-card[data-span="half"] { flex-basis: calc((100% - 24px) * 0.5 - 0.5px); }
.bm-explorer .bm-card[data-span="two-fifths"] { flex-basis: calc((100% - 24px) * 0.4 - 0.5px); }
.bm-explorer .bm-card[data-span="third"] { flex: 1 1 calc((100% - 48px) * 0.3333 - 0.5px); }

.bm-explorer .bm-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--bm-border);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(10, 55, 109, 0.04);
    transition: transform 180ms var(--bm-ease), box-shadow 180ms var(--bm-ease);
}

.bm-explorer .bm-card[hidden] {
    display: none;
}

.bm-explorer .bm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(10, 55, 109, 0.08);
}

.bm-explorer .bm-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.bm-explorer .bm-card-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.bm-explorer .bm-card-title {
    margin: 0;
    font-family: var(--bm-display);
    font-weight: 500;
    font-size: 17px;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--bm-navy);
    text-wrap: pretty;
}

.bm-explorer .bm-card-question {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--bm-muted);
    text-wrap: pretty;
}

.bm-explorer .bm-card-legend:empty {
    display: none;
}

.bm-explorer .bm-card-legend {
    padding-top: 4px;
}

.bm-explorer .bm-card-warn {
    padding: 12px 14px;
    background: #fff6de;
    border: 1px solid var(--bm-yellow);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--bm-body);
}

.bm-explorer .bm-card-warn[hidden] {
    display: none;
}

.bm-explorer .bm-card-body {
    --k: 1; /* 0 while a chart is entering, so bars grow in from nothing */
    min-height: 120px;
}

.bm-explorer .bm-card-body.is-entering {
    --k: 0;
}

.bm-explorer .bm-card-insight {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 18px;
    background: var(--bm-tint);
    border-radius: 8px;
}

.bm-explorer .bm-card-insight-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--bm-mono);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bm-blue);
}

.bm-explorer .bm-card-insight-label::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--bm-orange);
}

.bm-explorer .bm-card-insight p,
.bm-explorer .bm-card-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--bm-body);
    text-wrap: pretty;
}

.bm-explorer .bm-card-foot {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--bm-muted);
    text-wrap: pretty;
}

.bm-explorer .bm-error {
    margin: 0;
    font-size: 13px;
    color: var(--bm-muted);
}

.bm-explorer .bm-disclaimer {
    margin: 48px 0 64px;
    padding-top: 18px;
    border-top: 1px solid var(--bm-line);
    font-size: 12px;
    line-height: 1.5;
    color: var(--bm-muted);
}

/* Loading state: soft placeholder until the data arrives */
.bm-explorer.is-loading .bm-card-body {
    background: linear-gradient(90deg, var(--bm-tint), #fff, var(--bm-tint));
    background-size: 200% 100%;
    border-radius: 8px;
    animation: bm-shimmer 1.4s linear infinite;
}

@keyframes bm-shimmer {
    to { background-position: -200% 0; }
}

/* Shared bits
 --------------------------------------------- */
.bm-explorer .bm-sw {
    display: inline-block;
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.bm-explorer .bm-key {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 12px;
    color: var(--bm-muted);
}

.bm-explorer .bm-key-i {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bm-explorer .bm-key-cols {
    padding-bottom: 6px;
}

.bm-explorer .bm-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bm-explorer [data-tip] {
    cursor: default;
}

.bm-explorer .bm-hint {
    margin: 0;
    font-size: 11.5px;
    color: var(--bm-muted);
}

/* KPI */
.bm-explorer .bm-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.bm-explorer .bm-kpi {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.bm-explorer .bm-kpi-all {
    font-size: 12.5px;
    color: var(--bm-blue);
}

.bm-explorer .bm-kpi-all strong {
    font-weight: 600;
}

.bm-explorer .bm-kpi-label {
    font-family: var(--bm-mono);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bm-muted);
}

.bm-explorer .bm-kpi-value {
    font-weight: 300;
    font-size: 56px;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--bm-navy);
}

.bm-explorer .bm-kpi-unit {
    margin-left: 4px;
    font-size: 24px;
    color: var(--bm-gray);
}

.bm-explorer .bm-card-extra {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    font-style: italic;
    color: var(--bm-body);
}

/* Bars */
.bm-explorer .bm-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bm-explorer .bm-bar {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bm-explorer .bm-bar-label {
    font-size: 13px;
    line-height: 1.3;
    color: var(--bm-body);
}

.bm-explorer .bm-bar-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
}

.bm-explorer .bm-track {
    height: 10px;
    background: var(--bm-tint);
    border-radius: 999px;
    overflow: hidden;
}

.bm-explorer .bm-track-thin {
    height: 6px;
}

.bm-explorer .bm-fill {
    width: calc(var(--w) * var(--k));
    height: 100%;
    border-radius: 999px;
    transition: width 320ms ease;
}

.bm-explorer .bm-bar-val {
    font-family: var(--bm-mono);
    font-weight: 700;
    font-size: 12px;
    text-align: right;
    color: var(--bm-navy);
}

.bm-explorer .bm-bar-val-ghost {
    font-weight: 400;
    font-size: 10.5px;
    color: var(--bm-muted);
}

/* Donut */
.bm-explorer .bm-donut {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.bm-explorer .bm-donut-chart {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bm-explorer .bm-donut-ring {
    position: relative;
    width: 190px;
    height: 190px;
}

.bm-explorer .bm-donut-fill {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.bm-explorer .bm-donut-pct {
    position: absolute;
    transform: translate(-50%, -50%);
    font-weight: 500;
    font-size: 15px;
    line-height: 1;
    pointer-events: none;
}

.bm-explorer .bm-donut-seg {
    font-family: var(--bm-mono);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bm-navy);
}

.bm-explorer .bm-donut-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}

.bm-explorer .bm-donut-head {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) 48px 48px;
    gap: 10px;
    font-family: var(--bm-mono);
    font-weight: 700;
    font-size: 9.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bm-muted);
}

.bm-explorer .bm-donut-head span {
    text-align: right;
}

.bm-explorer .bm-donut-head .bm-donut-head-seg {
    color: var(--bm-navy);
}

.bm-explorer .bm-donut-row {
    display: grid;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    line-height: 1.3;
    color: var(--bm-body);
}

.bm-explorer .bm-donut-v {
    font-family: var(--bm-mono);
    font-weight: 700;
    font-size: 12px;
    text-align: right;
    color: var(--bm-navy);
}

.bm-explorer .bm-donut-b {
    font-family: var(--bm-mono);
    font-size: 11px;
    text-align: right;
    color: var(--bm-muted);
}

/* Tiles */
.bm-explorer .bm-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
    gap: 14px;
}

.bm-explorer .bm-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--bm-border);
    border-radius: 8px;
}

.bm-explorer .bm-tile-label {
    min-height: 32px;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.3;
    color: var(--bm-navy);
}

.bm-explorer .bm-tile-bar {
    display: flex;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--bm-tint);
}

.bm-explorer .bm-tile-pair {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 6px 8px;
}

.bm-explorer .bm-tile-pair .bm-tile-bar {
    height: 10px;
    border-radius: 2px;
}

.bm-explorer .bm-tile-pair .bm-tile-bar-all {
    height: 6px;
    opacity: 0.4;
}

.bm-explorer .bm-tile-tag {
    font-family: var(--bm-mono);
    font-weight: 700;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bm-navy);
}

.bm-explorer .bm-tile-tag-all {
    color: var(--bm-muted);
}

.bm-explorer .bm-seg {
    width: calc(var(--w) * var(--k));
    height: 100%;
    transition: width 320ms ease;
}

.bm-explorer .bm-tile-top {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--bm-mono);
    font-size: 10px;
    color: var(--bm-muted);
}

/* Columns */
.bm-explorer .bm-cols {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bm-explorer .bm-cols-grid {
    position: relative;
    display: grid;
    gap: 12px;
}

.bm-explorer .bm-gridline {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed var(--bm-border);
    pointer-events: none;
}

.bm-explorer .bm-gridline span {
    position: absolute;
    right: 0;
    bottom: 2px;
    padding-left: 4px;
    background: #fff;
    font-family: var(--bm-mono);
    font-size: 9.5px;
    color: var(--bm-muted);
}

.bm-explorer .bm-col {
    position: relative;
    border-bottom: 1px solid var(--bm-pale);
}

.bm-explorer .bm-col-bar {
    position: relative;
    height: calc(var(--h) * var(--k));
    transition: height 320ms ease;
}

.bm-explorer .bm-col-bar-solo {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.bm-explorer .bm-col-top {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--h) * var(--k) + 8px);
    display: flex;
    justify-content: center;
    transition: bottom 320ms ease;
}

.bm-explorer .bm-col-val {
    font-weight: 300;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--bm-navy);
}

.bm-explorer .bm-col-pair {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: end;
    gap: 4px;
}

.bm-explorer .bm-col-bar-all {
    background: #d8dde0;
}

.bm-explorer .bm-col-val-sm,
.bm-explorer .bm-col-all {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    white-space: nowrap;
}

.bm-explorer .bm-col-val-sm {
    font-size: 24px;
}

.bm-explorer .bm-col-all {
    font-family: var(--bm-mono);
    font-size: 10px;
    color: var(--bm-muted);
}

.bm-explorer .bm-col-labels {
    display: grid;
    gap: 12px;
}

.bm-explorer .bm-col-labels div {
    min-width: 0;
}

.bm-explorer .bm-col-labels span {
    display: block;
    font-size: 12px;
    line-height: 1.3;
    color: var(--bm-body);
    text-wrap: pretty;
}

.bm-explorer .bm-axis {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
    font-family: var(--bm-mono);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bm-muted);
}

.bm-explorer .bm-axis-line {
    flex: 1;
    height: 1px;
    background: var(--bm-pale);
}

.bm-explorer .bm-axis-arrow {
    width: 0;
    height: 0;
    margin-left: -10px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid var(--bm-pale);
}

/* Stacked rows */
.bm-explorer .bm-stackrows {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bm-explorer .bm-srow {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bm-explorer .bm-srow-label {
    font-size: 13px;
    line-height: 1.3;
    color: var(--bm-body);
}

.bm-explorer .bm-sbar {
    display: flex;
    gap: 2px;
}

.bm-explorer .bm-sbar-all {
    height: 8px;
    opacity: 0.4;
}

.bm-explorer .bm-sbar-all div {
    min-width: 0;
    border-radius: 2px;
}

.bm-explorer .bm-sseg {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    border-radius: 3px;
    font-family: var(--bm-mono);
    font-weight: 700;
    font-size: 11px;
}

/* Pager
 --------------------------------------------- */
.bm-explorer .bm-pager {
    /* Two fixed halves: Previous always left, Next always right, even when
       labels wrap on narrow screens. The empty <span> holds the left half
       on the first section. */
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--bm-border);
}

.bm-explorer .bm-pager-btn {
    color: var(--bm-navy);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: left;
}

.bm-explorer .bm-pager-next {
    grid-column: 2;
    justify-self: end;
    align-items: flex-end;
    text-align: right;
}

.bm-explorer .bm-pager-dir {
    font-family: var(--bm-mono);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bm-blue);
}

.bm-explorer .bm-pager-label {
    font-size: 18px;
    line-height: 1.3;
    color: var(--bm-navy);
    text-wrap: balance;
}

/* Tooltip
 --------------------------------------------- */
.bm-explorer .bm-tip {
    position: fixed;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 280px;
    padding: 10px 12px;
    background: var(--bm-navy);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(10, 55, 109, 0.24);
    color: #fff;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 10px));
}

.bm-explorer .bm-tip[hidden] {
    display: none;
}

.bm-explorer .bm-tip-title {
    font-family: var(--bm-mono);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bm-sky);
}

.bm-explorer .bm-tip-line {
    font-size: 13px;
    line-height: 1.35;
}

/* Responsive
 --------------------------------------------- */
@media (max-width: 960px) {
    .bm-explorer .bm-card[data-span] {
        flex: 0 1 100%;
    }
}

@media (max-width: 640px) {
    .bm-explorer .bm-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }

    .bm-explorer .bm-main {
        padding-top: 40px;
        padding-bottom: 64px;
    }

    .bm-explorer .bm-card {
        padding: 20px;
    }

    .bm-explorer .bm-showing {
        margin-left: 0;
    }

    .bm-explorer .bm-kpi-value {
        font-size: 44px;
    }

    .bm-explorer .bm-pager-label {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bm-explorer *,
    .bm-explorer *::before,
    .bm-explorer *::after {
        animation: none !important;
        transition: none !important;
    }
}
