/* Material World (mat-world.com) v4.0 - Native Swiss-Industrial Editorial Market Center */

/* Primary red CTA arrow safeguard */
.btn:not(.secondary) .mw-accent-arrow {
    color: #ffffff !important;
}

/* Two-tone editorial heading suffix (matches homepage "材料 工具箱") */
.mkt-muted-title {
    color: #9ea3aa;
    font-weight: 400;
    margin-left: 4px;
}

/* ---- 1. Homepage Horizontal Editorial Ledger Banner (inside .wrap) ---- */
.home-market-banner-wrap {
    padding: 44px 0 24px;
    border-bottom: 1px solid var(--line, #e3e5e7);
}

.home-market-banner-wrap .section-top {
    margin-bottom: 30px;
    align-items: center;
}

.home-market-banner-wrap .section-top .eyebrow {
    font-size: 10px;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
}

.home-market-banner-wrap .section-top h2 {
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 550;
    letter-spacing: -0.045em;
    line-height: 1.3;
    margin: 0;
    color: var(--ink, #292d32);
}

.hmb-title-main {
    font-size: 1.5em;
}

.hmb-title-sub {
    color: #b3b6bc;
}

.home-market-banner-wrap .section-top p {
    font-size: 13px;
    color: var(--muted, #70757c);
    margin-top: 10px;
}

.hmb-top-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.hmb-quick-cats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted, #70757c);
}

.hmb-quick-cats a {
    color: var(--muted, #70757c);
    text-decoration: none;
    transition: color 0.15s ease;
}

.hmb-quick-cats a:hover {
    color: var(--red, #ad2932);
}

.hmb-action-sep {
    color: var(--line, #e3e5e7);
    font-size: 12px;
}

.home-market-banner {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.hmb-ledger-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.hmb-cell {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    padding: 20px 16px 18px;
    background: #ffffff;
    border: 1px solid var(--line, #e3e5e7);
    border-radius: 3px;
    text-decoration: none;
    transition: border-color 180ms ease;
    min-width: 0;
}

.hmb-cell:hover {
    border-color: var(--red, #ad2932);
    background: #ffffff;
}

.hmb-cell-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.hmb-card-eyebrow {
    font-family: var(--mono, monospace);
    font-size: 10px;
    letter-spacing: 0.03em;
    color: var(--muted, #70757c);
    line-height: 1.5;
}

.hmb-card-idx {
    color: var(--red, #ad2932);
}

.hmb-name {
    font-size: 16.5px;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.45;
    color: var(--ink, #292d32);
    margin: 12px 0 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hmb-cell-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.hmb-price {
    font-family: var(--mono, monospace);
    font-variant-numeric: tabular-nums;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink, #292d32);
    line-height: 1.15;
    white-space: nowrap;
}

.hmb-price small {
    font-size: 10.5px;
    font-weight: 400;
    color: var(--muted, #70757c);
}

.hmb-foot-note {
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 12px;
    color: var(--muted, #70757c);
}

.mkt-quiet-link {
    color: var(--ink, #292d32);
    font-size: 12px;
    border-bottom: 1px solid #b4b8be;
    padding-bottom: 2px;
    transition: color 0.16s ease, border-color 0.16s ease;
    white-space: nowrap;
}

.mkt-quiet-link:hover {
    color: var(--red, #ad2932);
    border-color: var(--red, #ad2932);
}

/* ---- 2. Clean Typographic Change Indicators & Sparklines ---- */
.mkt-chg {
    display: inline-block;
    font-family: var(--mono, monospace);
    font-variant-numeric: tabular-nums;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.35;
}

.home-market-banner .mkt-chg {
    font-size: 11.5px;
}

.mkt-chg.up {
    color: var(--red, #ad2932);
}

.mkt-chg.down {
    color: #2f6f55;
}

.mkt-chg.flat {
    color: #9ea3aa;
}

.mkt-spark {
    display: block;
    flex-shrink: 0;
}

/* ---- 3. Native Swiss-Editorial Page Header (aligned to .wrap) ---- */
.mkt-page-head {
    padding: 26px 0 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.mkt-title-block .eyebrow {
    margin-bottom: 10px;
}

.mkt-page-head h1 {
    margin: 0;
    font-size: clamp(26px, 2.4vw, 32px);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.22;
    color: var(--ink, #292d32);
}

.mkt-h1-main {
    font-size: 1.38em;
    font-weight: 550;
    color: var(--ink, #292d32);
}

.mkt-h1-sub {
    color: #b3b6bc;
    font-weight: 400;
    margin-left: 4px;
}

.mkt-header-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 20px;
}

.mkt-fx-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.mkt-fx-item {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding-left: 14px;
    border-left: 1px solid var(--line, #e3e5e7);
    font-size: 12.5px;
    color: var(--muted, #70757c);
    text-decoration: none;
    white-space: nowrap;
}

.mkt-fx-item:first-child {
    padding-left: 0;
    border-left: none;
}

.mkt-fx-item:hover span {
    color: var(--red, #ad2932);
}

.mkt-fx-item b {
    font-family: var(--mono, monospace);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--ink, #292d32);
}

.mkt-seg-group {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--line, #e3e5e7);
    border-radius: 0;
    background: #ffffff;
}

.mkt-seg-btn {
    border: none;
    border-right: 1px solid var(--line, #e3e5e7);
    background: transparent;
    color: var(--muted, #70757c);
    font-family: var(--mono, monospace);
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 0;
    cursor: pointer;
    line-height: 1.35;
    white-space: nowrap;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.mkt-seg-btn:last-child {
    border-right: none;
}

.mkt-seg-btn:hover {
    color: var(--ink, #292d32);
    background: #f7f7f8;
}

.mkt-seg-btn.active {
    background: var(--ink, #292d32);
    color: #ffffff;
}

/* ---- 4. Split Workbench inside .wrap ---- */
.mkt-workbench-wrap {
    margin-bottom: 56px;
}

.mkt-split {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    border: 1px solid var(--line, #e3e5e7);
    border-top: 2px solid var(--ink, #292d32);
    border-radius: 0;
    background: #ffffff;
    overflow: hidden;
    height: 610px;
}

/* Left Watchlist Pane */
.mkt-watch-pane {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line, #e3e5e7);
    min-width: 0;
    min-height: 0;
    background: #ffffff;
}

.mkt-watch-filters {
    padding: 14px 16px 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line, #e3e5e7);
    flex-shrink: 0;
}

.mkt-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mkt-search-input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line, #e3e5e7);
    border-radius: 3px;
    padding: 8px 11px;
    font-size: 13.5px;
    background: #f7f7f8;
    color: var(--ink, #292d32);
    outline: none;
}

.mkt-search-input:focus {
    background: #ffffff;
    border-color: var(--ink, #292d32);
}

.mkt-count-tag {
    font-family: var(--mono, monospace);
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    color: var(--muted, #70757c);
    white-space: nowrap;
}

.mkt-cat-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 11px;
    padding-top: 11px;
    scrollbar-width: none;
}

.mkt-cat-pills::-webkit-scrollbar {
    display: none;
}

.mkt-cat-pill {
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted, #70757c);
    font-size: 12.5px;
    font-weight: 400;
    padding: 0 0 10px;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.12s ease, border-color 0.12s ease;
}

.mkt-cat-pill:hover {
    color: var(--ink, #292d32);
}

.mkt-cat-pill.active {
    color: var(--ink, #292d32);
    font-weight: 600;
    border-bottom-color: var(--red, #ad2932);
}

.mkt-watch-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

.mkt-watch-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    table-layout: fixed;
}

.mkt-watch-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f7f7f8;
    color: var(--muted, #70757c);
    font-weight: 500;
    font-size: 12px;
    padding: 9px 10px;
    border-bottom: 1px solid var(--line, #e3e5e7);
    text-align: left;
    white-space: nowrap;
    user-select: none;
}

.mkt-watch-table thead th.num,
.mkt-watch-table tbody td.num {
    text-align: right;
    font-family: var(--mono, monospace);
    font-variant-numeric: tabular-nums;
}

.mkt-sort-btn {
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    font-weight: 500;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.mkt-sort-btn:hover,
.mkt-sort-btn.is-sorted {
    color: var(--red, #ad2932);
}

.mkt-watch-table tbody tr {
    border-bottom: 1px solid var(--soft, #f0f1f3);
    cursor: pointer;
    height: 41px;
    transition: background-color 0.1s ease;
}

.mkt-watch-table tbody tr:hover {
    background: #f7f7f8;
}

.mkt-watch-table tbody tr.is-active {
    background: #f7f7f8;
    box-shadow: inset 2px 0 0 var(--red, #ad2932);
}

.mkt-watch-table tbody td {
    padding: 6px 10px;
    vertical-align: middle;
}

.mkt-w-name-cell {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
}

.mkt-w-sym {
    font-family: var(--mono, monospace);
    font-size: 11.5px;
    color: var(--muted, #70757c);
    width: 48px;
    flex: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mkt-w-name {
    font-weight: 500;
    font-size: 13.5px;
    color: var(--ink, #292d32);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mkt-cell-main-price {
    font-weight: 600;
    color: var(--ink, #292d32);
}

/* Right Chart Pane */
.mkt-chart-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #ffffff;
}

.mkt-inst-head {
    padding: 18px 22px 15px;
    border-bottom: 1px solid var(--line, #e3e5e7);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 18px;
    flex-shrink: 0;
    background: #ffffff;
}

.mkt-inst-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.mkt-inst-left h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 550;
    letter-spacing: -0.02em;
    color: var(--ink, #292d32);
}

.mkt-inst-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    font-family: var(--mono, monospace);
    font-size: 12px;
    color: var(--muted, #70757c);
}

.mkt-meta-dot {
    color: #c4c7cc;
}

.mkt-meta-mono[hidden],
.mkt-meta-dot[hidden] {
    display: none !important;
}

.mkt-inst-right {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.mkt-big-price {
    font-family: var(--mono, monospace);
    font-variant-numeric: tabular-nums;
    font-size: 25px;
    font-weight: 600;
    color: var(--ink, #292d32);
    line-height: 1.1;
}

.mkt-sub-price {
    font-family: var(--mono, monospace);
    font-variant-numeric: tabular-nums;
    font-size: 12.5px;
    color: var(--muted, #70757c);
}

.mkt-inline-detail {
    font-size: 13px;
    padding-bottom: 2px;
}

.mkt-ctrl-strip {
    padding: 10px 22px;
    background: #ffffff;
    border-bottom: 1px solid var(--line, #e3e5e7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    flex-shrink: 0;
}

.mkt-range-tabs {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.mkt-seg-btn[data-range] {
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    padding: 2px 2px 4px;
    color: var(--muted, #70757c);
    font-size: 12.5px;
}

.mkt-seg-btn[data-range]:hover {
    background: transparent;
    color: var(--ink, #292d32);
}

.mkt-seg-btn[data-range].active {
    background: transparent;
    color: var(--red, #ad2932);
    font-weight: 600;
    border-bottom-color: var(--red, #ad2932);
}

.mkt-intl-toggle[hidden] {
    display: none !important;
}

.mkt-intl-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--ink, #292d32);
    background: #ffffff;
    border: 1px solid var(--line, #e3e5e7);
    padding: 4px 10px;
    border-radius: 0;
    cursor: pointer;
    user-select: none;
}

.mkt-intl-toggle input {
    accent-color: var(--ink, #292d32);
    margin: 0;
}

.mkt-hud-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-family: var(--mono, monospace);
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    color: var(--muted, #70757c);
}

.mkt-hud-inline b {
    font-weight: 600;
    color: var(--ink, #292d32);
}

.mkt-chart-canvas {
    flex: 1;
    width: 100%;
    min-height: 300px;
    position: relative;
    background: #ffffff;
}

/* Single-Line Clean Engineering Chart Footer */
.mkt-chart-foot {
    padding: 13px 22px;
    background: #f7f7f8;
    border-top: 1px solid var(--line, #e3e5e7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 13px;
    color: var(--muted, #70757c);
    flex-shrink: 0;
}

.mkt-foot-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-width: 0;
}

.mkt-foot-sep {
    color: #c4c7cc;
}

.mkt-foot-links {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.mkt-foot-link {
    color: var(--ink, #292d32);
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.14s ease, border-color 0.14s ease;
    white-space: nowrap;
}

.mkt-foot-link:hover {
    color: var(--red, #ad2932);
    border-bottom-color: var(--red, #ad2932);
}

.mkt-quote-link {
    font-size: 13px;
    padding-bottom: 2px;
}

/* ---- 5. Full Archival Ledger & Quiet Disclaimer ---- */
.mkt-ledger-section {
    margin-top: 44px;
    border: 1px solid var(--line, #e3e5e7);
    border-top: 2px solid var(--ink, #292d32);
    border-radius: 0;
    background: #ffffff;
    overflow: hidden;
}

.mkt-ledger-head {
    padding: 18px 22px;
    background: #ffffff;
    border-bottom: 1px solid var(--line, #e3e5e7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.mkt-ledger-head h2 {
    margin: 0;
    font-size: 16.5px;
    font-weight: 550;
    color: var(--ink, #292d32);
}

.mkt-ledger-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mkt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    background: #ffffff;
}

.mkt-table thead th {
    background: #f7f7f8;
    color: var(--muted, #70757c);
    font-weight: 500;
    font-size: 12px;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line, #e3e5e7);
    white-space: nowrap;
}

.mkt-table thead th.num,
.mkt-table tbody td.num {
    text-align: right;
    font-family: var(--mono, monospace);
    font-variant-numeric: tabular-nums;
}

.mkt-table tbody tr {
    border-bottom: 1px solid var(--soft, #f0f1f3);
    cursor: pointer;
}

.mkt-table tbody tr:hover {
    background: #f7f7f8;
}

.mkt-table tbody td {
    padding: 10px 14px;
    vertical-align: middle;
}

.mkt-disclaimer-box {
    margin-top: 24px;
    padding: 16px 0 34px;
    background: transparent;
    border: none;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--muted, #70757c);
}

.mkt-bottom-cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---- 6. Single Commodity Detail Page ---- */
.mkt-detail-card {
    border: 1px solid var(--line, #e3e5e7);
    border-top: 2px solid var(--ink, #292d32);
    border-radius: 0;
    background: #ffffff;
    overflow: hidden;
}

.mkt-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--line, #e3e5e7);
    background: #ffffff;
}

.mkt-kpi-cell {
    padding: 18px 22px;
    border-right: 1px solid var(--line, #e3e5e7);
}

.mkt-kpi-cell:last-child {
    border-right: none;
}

.mkt-kpi-cell small {
    display: block;
    font-family: var(--mono, monospace);
    font-size: 11.5px;
    color: var(--muted, #70757c);
    margin-bottom: 6px;
}

.mkt-kpi-cell strong {
    font-family: var(--mono, monospace);
    font-variant-numeric: tabular-nums;
    font-size: 20px;
    font-weight: 600;
    color: var(--ink, #292d32);
}

.mkt-ssr-lead {
    margin: 0;
    padding: 14px 22px;
    background: #f7f7f8;
    border-bottom: 1px solid var(--line, #e3e5e7);
    font-size: 14px;
    line-height: 1.8;
    color: #4b5563;
}

.mkt-detail-canvas {
    height: 360px;
}

.mkt-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 24px;
    margin-top: 32px;
    align-items: start;
}

.mkt-two-col > * {
    min-width: 0;
}

.mkt-panel-card {
    background: #ffffff;
    border: 1px solid var(--line, #e3e5e7);
    border-top: 1px solid var(--ink, #292d32);
    border-radius: 0;
    padding: 24px 26px;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.mkt-panel-card h2 {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 550;
    color: var(--ink, #292d32);
}

.mkt-note-card {
    background: #f7f7f8;
    border: 1px solid var(--line, #e3e5e7);
    border-radius: 0;
    padding: 24px 26px;
    margin-top: 24px;
}

.mkt-note-card h2 {
    margin: 0 0 10px;
    font-size: 16.5px;
    font-weight: 550;
    color: var(--ink, #292d32);
}

.mkt-note-list {
    margin: 12px 0 0;
    padding-left: 18px;
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--muted, #70757c);
}

.mkt-note-list strong {
    color: var(--ink, #292d32);
    font-weight: 500;
}

.mkt-rel-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.mkt-peers-section {
    margin-top: 34px;
}

.mkt-peers-section h2 {
    font-size: 17px;
    font-weight: 550;
    margin: 0 0 14px;
    color: var(--ink, #292d32);
}

.mkt-peers-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.mkt-peer-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid var(--line, #e3e5e7);
    border-radius: 3px;
    text-decoration: none;
    transition: border-color 180ms ease;
    min-width: 0;
}

.mkt-peer-card:hover {
    border-color: var(--red, #ad2932);
}

.mkt-peer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-family: var(--mono, monospace);
    font-size: 11.5px;
    color: var(--muted, #70757c);
}

.mkt-peer-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink, #292d32);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mkt-peer-price {
    font-family: var(--mono, monospace);
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink, #292d32);
}

.mkt-faq-section {
    margin-top: 36px;
    margin-bottom: 44px;
}

.mkt-faq-section h2 {
    font-size: 17px;
    font-weight: 550;
    margin: 0 0 14px;
    color: var(--ink, #292d32);
}

.mkt-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mkt-faq-item {
    background: #ffffff;
    border: 1px solid var(--line, #e3e5e7);
    border-radius: 0;
    padding: 22px 24px;
}

.mkt-faq-item h3 {
    margin: 0 0 10px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink, #292d32);
}

.mkt-faq-item p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--muted, #70757c);
}

/* ---- 7. Responsive Breakpoints (Tablet & Mobile) ---- */
@media (max-width: 1120px) {
    .hmb-ledger-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .mkt-split {
        grid-template-columns: 360px minmax(0, 1fr);
    }
    .mkt-peers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .mkt-split {
        grid-template-columns: 1fr;
        height: auto;
    }
    .mkt-watch-pane {
        border-right: none;
        border-bottom: 1px solid var(--line, #e3e5e7);
        max-height: 340px;
    }
    .mkt-chart-canvas {
        height: 300px;
    }
    .mkt-two-col,
    .mkt-faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .home-market-banner-wrap {
        padding: 32px 0 20px;
    }
    .home-market-banner-wrap .section-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 20px;
    }
    .hmb-ledger-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .hmb-cell {
        padding: 14px 12px;
    }
    .hmb-name {
        font-size: 15px;
        margin: 8px 0 10px;
    }
    .hmb-price {
        font-size: 13.5px;
    }
    .mkt-page-head {
        padding: 18px 0 16px;
        gap: 12px;
    }
    .mkt-header-right {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }
    .mkt-fx-strip {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 12px;
        width: 100%;
    }
    .mkt-fx-item {
        border-left: none;
        padding-left: 0;
        font-size: 12px;
    }
    .mkt-watch-pane {
        max-height: 310px;
    }
    .mkt-watch-filters {
        padding: 12px 12px 0;
    }
    .mkt-inst-head {
        padding: 14px 14px 12px;
    }
    .mkt-inst-left h2 {
        font-size: 17px;
    }
    .mkt-big-price {
        font-size: 22px;
    }
    .mkt-ctrl-strip {
        padding: 10px 14px;
        gap: 8px 12px;
    }
    .mkt-hud-inline {
        font-size: 11.5px;
        gap: 6px 12px;
    }
    .mkt-chart-canvas,
    .mkt-detail-canvas {
        height: 270px;
        min-height: 270px;
    }
    .mkt-chart-foot {
        padding: 12px 14px;
        font-size: 12.5px;
    }
    .mkt-ledger-head {
        padding: 14px 14px;
    }
    .mkt-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mkt-kpi-cell {
        padding: 12px 14px;
        border-bottom: 1px solid var(--line, #e3e5e7);
    }
    .mkt-kpi-cell strong {
        font-size: 16px;
    }
    .mkt-ssr-lead {
        padding: 12px 14px;
        font-size: 13px;
    }
    .mkt-panel-card,
    .mkt-note-card,
    .mkt-faq-item {
        padding: 16px 16px;
    }
    .mkt-rel-products {
        grid-template-columns: 1fr;
    }
    .mkt-workbench-wrap .bottom-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 28px 0 44px;
    }
}

@media (max-width: 520px) {
    .mkt-watch-table {
        table-layout: fixed;
        width: 100%;
    }
    .mkt-watch-table col:nth-child(1) {
        width: 49% !important;
    }
    .mkt-watch-table col:nth-child(2) {
        width: 29% !important;
    }
    .mkt-watch-table col:nth-child(3) {
        width: 22% !important;
    }
    .mkt-watch-table col:nth-child(4),
    .mkt-watch-table th:nth-child(4),
    .mkt-watch-table td:nth-child(4) {
        display: none;
    }
    .mkt-watch-table thead th,
    .mkt-watch-table tbody td {
        padding: 6px 6px;
    }
    .mkt-w-sym {
        width: 34px;
        font-size: 10.5px;
    }
    .mkt-w-name {
        font-size: 12.5px;
    }
    .mkt-watch-table .mkt-chg {
        font-size: 11.5px;
    }
    .mkt-peers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .mkt-peer-card {
        padding: 12px 12px;
    }
}
