/*
 * Market Watch public styles.
 *
 * Styles the market analysis landing page, product detail views, compact GPU
 * spec-page panels, price-lane cards, mini charts, and homepage spotlight.
 */
.ncmw-hero {
    background: linear-gradient(180deg, #101720, #0b0f14);
    color: #f4f7fb;
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.ncmw-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(1.25rem, 4vw, 2.5rem);
    align-items: center;
}

.ncmw-hero h1 {
    max-width: 820px;
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: clamp(2rem, 4.2vw, 4rem);
    line-height: 1.04;
}

.ncmw-hero p {
    max-width: 760px;
    margin: 0;
    color: #c7d0da;
    font-size: 1.08rem;
}

.ncmw-hero__panel {
    display: grid;
    gap: 0.55rem;
    border: 1px solid rgba(118, 185, 0, 0.42);
    border-radius: 8px;
    background: rgba(18, 25, 35, 0.86);
    padding: 1rem;
    color: #dce5ee;
}

.ncmw-hero__panel strong {
    color: #fff;
}

.ncmw-market {
    padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.ncmw-market-search {
    display: grid;
    gap: 0.42rem;
    max-width: 720px;
    margin: 0 0 1rem;
}

.ncmw-market-search label {
    color: #465462;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ncmw-market-search__box {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
}

.ncmw-market-search input[type="search"] {
    min-width: 0;
    width: 100%;
    border: 1px solid #cfd9e2;
    border-radius: 6px;
    background: #fff;
    color: #102633;
    font-size: 0.98rem;
    font-weight: 800;
    padding: 0.62rem 0.75rem;
}

.ncmw-market-search input[type="search"]:focus {
    border-color: #63b821;
    box-shadow: 0 0 0 3px rgba(99, 184, 33, 0.16);
    outline: 0;
}

.ncmw-market-search button {
    border: 1px solid #102633;
    border-radius: 6px;
    background: #102633;
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    padding: 0.62rem 0.9rem;
}

.ncmw-market-search button:hover,
.ncmw-market-search button:focus {
    background: #63b821;
    border-color: #63b821;
    color: #061107;
}

.ncmw-market-search__suggestions {
    position: absolute;
    top: calc(100% + 0.32rem);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 320px;
    overflow-y: auto;
    border: 1px solid #d9e1e8;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(11, 15, 20, 0.16);
    list-style: none;
    margin: 0;
    padding: 0.28rem;
}

.ncmw-market-search__suggestions[hidden] {
    display: none;
}

.ncmw-market-search__suggestions li {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    border-radius: 4px;
    color: #102633;
    cursor: pointer;
    padding: 0.48rem 0.55rem;
}

.ncmw-market-search__suggestions li[aria-selected="true"],
.ncmw-market-search__suggestions li:hover,
.ncmw-market-search__suggestions li:focus {
    background: #eef8e8;
}

.ncmw-market-search__suggestions strong {
    min-width: 0;
    overflow: hidden;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ncmw-market-search__suggestions span {
    flex: 0 0 auto;
    color: #6a7785;
    font-size: 0.78rem;
    font-weight: 900;
}

.ncmw-popular-pills {
    display: grid;
    gap: 0.55rem;
    margin: 0 0 1rem;
}

.ncmw-popular-pills__head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    align-items: baseline;
    color: #6a7785;
    font-size: 0.82rem;
}

.ncmw-popular-pills__head strong {
    color: #102633;
    font-size: 0.86rem;
    font-weight: 900;
}

.ncmw-popular-pills__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
}

.ncmw-popular-pill {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 36px;
    max-width: 100%;
    border: 1px solid #c8d6e0;
    border-radius: 999px;
    background: #fff;
    color: #102633;
    padding: 0.3rem 0.62rem 0.3rem 0.36rem;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(11, 15, 20, 0.05);
}

.ncmw-popular-pill:hover,
.ncmw-popular-pill:focus {
    border-color: #63b821;
    background: #eef8e8;
    color: #102633;
}

.ncmw-popular-pill span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    background: #102633;
    color: #fff;
    padding: 0.14rem 0.42rem;
    font-size: 0.7rem;
    font-weight: 900;
}

.ncmw-popular-pill strong {
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(26ch, 55vw);
    overflow: hidden;
    font-size: 0.84rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ncmw-popular-pill b {
    flex: 0 0 auto;
    margin-left: auto;
    color: #2d7d19;
    font-size: 0.86rem;
    font-weight: 900;
    white-space: nowrap;
}

.ncmw-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
}

.ncmw-filter-row a {
    border: 1px solid #d9e1e8;
    border-radius: 6px;
    background: #fff;
    color: #102633;
    padding: 0.48rem 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.ncmw-filter-row a.is-active,
.ncmw-filter-row a:hover,
.ncmw-filter-row a:focus {
    border-color: #63b821;
    background: #63b821;
    color: #061107;
}

.ncmw-filter-row--regions {
    margin-top: -0.65rem;
}

.ncmw-filter-row--regions a {
    font-size: 0.88rem;
    padding: 0.38rem 0.62rem;
}

.ncmw-tax-note {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    align-items: center;
    border: 1px solid #d9e1e8;
    border-left: 4px solid #48a6a7;
    border-radius: 8px;
    background: #f8fafc;
    color: #425363;
    padding: 0.75rem 0.9rem;
    margin: 0 0 1rem;
}

.ncmw-tax-note__copy {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    min-width: 0;
}

.ncmw-tax-note__copy strong {
    flex: 0 0 auto;
    color: #102633;
}

.ncmw-tax-legend {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.ncmw-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.72rem;
}

.ncmw-summary-grid--detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.ncmw-product-detail {
    display: grid;
    gap: 1rem;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    background: #fff;
    color: #102633;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 28px rgba(11, 15, 20, 0.08);
}

.ncmw-product-detail__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.ncmw-product-detail__head h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.1;
}

.ncmw-product-detail__head p {
    margin: 0;
    color: #6a7785;
}

.ncmw-subtle-link {
    flex: 0 0 auto;
    border: 1px solid #d9e1e8;
    border-radius: 6px;
    background: #f8fafc;
    color: #102633;
    padding: 0.45rem 0.65rem;
    font-weight: 800;
    text-decoration: none;
}

.ncmw-subtle-link:hover,
.ncmw-subtle-link:focus {
    border-color: #63b821;
    color: #2d7d19;
}

.ncmw-product-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.ncmw-product-kpis div {
    display: grid;
    gap: 0.25rem;
    border: 1px solid #e6ecf2;
    border-radius: 6px;
    background: #f8fafc;
    padding: 0.65rem;
}

.ncmw-product-kpis span {
    color: #6a7785;
    font-size: 0.78rem;
    font-weight: 800;
}

.ncmw-product-kpis strong {
    font-size: 1.1rem;
}

.ncmw-sample-strip {
    display: grid;
    gap: 0.65rem;
    border: 1px solid #e6ecf2;
    border-radius: 8px;
    background: #f8fafc;
    padding: 0.75rem;
}

.ncmw-sample-strip__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem 0.8rem;
    color: #6a7785;
    font-size: 0.8rem;
}

.ncmw-sample-strip__head strong {
    color: #102633;
    font-size: 0.86rem;
}

.ncmw-sample-strip__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.55rem;
}

.ncmw-sample-chip {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
    border: 1px solid #d9e1e8;
    border-radius: 6px;
    background: #fff;
    padding: 0.58rem;
}

.ncmw-sample-chip div {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: baseline;
}

.ncmw-sample-chip strong {
    color: #102633;
    font-size: 1rem;
}

.ncmw-sample-chip span,
.ncmw-sample-chip p,
.ncmw-sample-chip small {
    color: #6a7785;
    font-size: 0.74rem;
    font-weight: 800;
}

.ncmw-sample-chip p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ncmw-source-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    color: #6a7785;
    font-size: 0.86rem;
}

.ncmw-source-strip b {
    border: 1px solid #d9e1e8;
    border-radius: 999px;
    background: #fff;
    color: #102633;
    padding: 0.2rem 0.5rem;
}

.ncmw-summary-card {
    display: grid;
    gap: 0.85rem;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    background: #fff;
    color: #102633;
    padding: 1rem;
    box-shadow: 0 10px 28px rgba(11, 15, 20, 0.08);
}

.ncmw-clickable-card {
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ncmw-clickable-card:hover,
.ncmw-clickable-card:focus {
    border-color: #63b821;
    box-shadow: 0 14px 34px rgba(11, 15, 20, 0.12);
    outline: none;
    transform: translateY(-1px);
}

.ncmw-clickable-card:focus-visible {
    outline: 3px solid rgba(99, 184, 33, 0.35);
    outline-offset: 3px;
}

.ncmw-card-top,
.ncmw-card-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
}

.ncmw-component-pill,
.ncmw-region-pill,
.ncmw-tax-pill,
.ncmw-trend {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0.24rem 0.58rem;
    font-size: 0.78rem;
    font-weight: 900;
}

.ncmw-component-pill {
    background: #102633;
    color: #fff;
}

.ncmw-region-pill {
    background: #e9eef3;
    color: #102633;
}

.ncmw-tax-pill {
    background: #ecf8f7;
    color: #176b6c;
}

.ncmw-tax-pill--tax-excluded {
    background: #fff7df;
    color: #7a4f00;
}

.ncmw-tax-pill--vat-included,
.ncmw-tax-pill--tax-included {
    background: #e8f6df;
    color: #255f14;
}

.ncmw-tax-pill--mixed {
    background: #eef3f6;
    color: #465462;
}

.ncmw-tax-pill--unknown {
    background: #f7fafc;
    color: #6a7785;
}

.ncmw-summary-card h2 {
    margin: 0;
    color: #102633;
    font-size: 1.15rem;
    line-height: 1.25;
}

.ncmw-summary-card:hover h2,
.ncmw-summary-card:focus h2 {
    color: #2d7d19;
}

.ncmw-product-market-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 100%;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    background: #fff;
    color: #102633;
    padding: 1rem;
    box-shadow: 0 10px 28px rgba(11, 15, 20, 0.08);
}

/* Price lanes keep retail, active used listings, sold listings, and refurbished
   samples visually distinct while retaining equal-height card layouts. */
.ncmw-product-market-card__head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: start;
}

.ncmw-product-market-card__head h2 {
    margin: 0;
    color: #102633;
    font-size: 1.15rem;
    line-height: 1.25;
}

.ncmw-product-market-card:hover .ncmw-product-market-card__head h2,
.ncmw-product-market-card:focus .ncmw-product-market-card__head h2 {
    color: #2d7d19;
}

.ncmw-market-sample-pill {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #eef3f6;
    color: #425363;
    padding: 0.22rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.ncmw-product-market-card__msrp {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    border: 1px solid #e6ecf2;
    border-radius: 6px;
    background: #f8fafc;
    padding: 0.55rem 0.65rem;
    color: #6a7785;
    font-size: 0.84rem;
    font-weight: 800;
}

.ncmw-product-market-card__msrp strong {
    color: #102633;
}

.ncmw-product-market-card__hero-price {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem 1rem;
    align-items: start;
    border: 1px solid #dbe7d4;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(99, 184, 33, 0.12), transparent 42%),
        linear-gradient(180deg, #f8fcf5, #fff);
    padding: 0.9rem;
}

.ncmw-product-market-card__hero-main {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.ncmw-product-market-card__hero-main span,
.ncmw-product-market-card__hero-range span {
    color: #5e6d5a;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ncmw-product-market-card__hero-main strong {
    color: #102633;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 950;
    line-height: 0.95;
}

.ncmw-product-market-card__hero-main small {
    color: #536273;
    font-size: 0.9rem;
    font-weight: 850;
}

.ncmw-product-market-card__hero-side {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.ncmw-product-market-card__hero-range {
    display: grid;
    grid-column: 1 / -1;
    gap: 0.38rem;
}

.ncmw-product-market-card__hero-range div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
}

.ncmw-product-market-card__hero-range strong {
    color: #102633;
    font-size: 0.95rem;
    font-weight: 950;
}

.ncmw-product-market-card__hero-range .ncmw-range-bar {
    height: 20px;
    background: #d9e6d2;
}

.ncmw-product-market-card--compact {
    gap: 0.55rem;
    min-height: 0;
    padding: 0.72rem;
}

.ncmw-product-market-card--compact .ncmw-card-top {
    gap: 0.35rem;
}

.ncmw-product-market-card--compact .ncmw-component-pill,
.ncmw-product-market-card--compact .ncmw-region-pill {
    min-height: 22px;
    padding: 0.15rem 0.45rem;
    font-size: 0.68rem;
}

.ncmw-product-market-card--compact h2 {
    margin: 0;
    color: #102633;
    font-size: 0.98rem;
    line-height: 1.22;
}

.ncmw-product-market-card--compact:hover h2,
.ncmw-product-market-card--compact:focus h2 {
    color: #2d7d19;
}

.ncmw-compact-price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
}

.ncmw-compact-price-row div {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
}

.ncmw-compact-price-row span {
    color: #6a7785;
    font-size: 0.72rem;
    font-weight: 900;
}

.ncmw-compact-price-row strong {
    color: #102633;
    font-size: 1.28rem;
    font-weight: 950;
    line-height: 1;
}

.ncmw-compact-price-row .ncmw-tax-pill {
    min-height: 22px;
    padding: 0.14rem 0.42rem;
    font-size: 0.68rem;
    white-space: nowrap;
}

.ncmw-compact-lanes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
}

.ncmw-compact-lane {
    display: inline-flex;
    gap: 0.32rem;
    align-items: baseline;
    border-left: 3px solid #8392a0;
    border-radius: 4px;
    background: #f8fafc;
    color: #425363;
    padding: 0.22rem 0.36rem;
    font-size: 0.72rem;
    font-weight: 900;
}

.ncmw-compact-lane--new-retail {
    border-left-color: #2d7d19;
}

.ncmw-compact-lane--new-asking {
    border-left-color: #48a6a7;
}

.ncmw-compact-lane--used-asking {
    border-left-color: #f59e0b;
}

.ncmw-compact-lane--used-sold {
    border-left-color: #6d5bd0;
}

.ncmw-compact-lane--refurbished {
    border-left-color: #64748b;
}

.ncmw-compact-lane b {
    color: #102633;
}

.ncmw-compact-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
    border-top: 1px solid #e6ecf2;
    color: #6a7785;
    padding-top: 0.55rem;
    font-size: 0.72rem;
    font-weight: 850;
}

.ncmw-compact-card-meta > span:not(.ncmw-trend) {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
}

.ncmw-compact-card-meta .ncmw-trend {
    min-height: 22px;
    padding: 0.14rem 0.42rem;
    font-size: 0.68rem;
}

.ncmw-market-lanes {
    display: grid;
    gap: 0.6rem;
    align-content: start;
    flex: 1 1 auto;
}

.ncmw-summary-grid--detail .ncmw-product-market-card {
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.35rem);
}

.ncmw-summary-grid--detail .ncmw-product-market-card__head h2 {
    font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.ncmw-summary-grid--detail .ncmw-market-lanes {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.8rem;
}

.ncmw-summary-grid--detail .ncmw-market-lane {
    gap: 0.62rem;
    padding: 0.85rem;
}

.ncmw-summary-grid--detail .ncmw-market-lane__head strong {
    font-size: 1.05rem;
}

.ncmw-summary-grid--detail .ncmw-market-lane__head b {
    font-size: 1.22rem;
}

.ncmw-summary-grid--detail .ncmw-range-bar {
    height: 18px;
}

.ncmw-market-lane {
    display: grid;
    gap: 0.45rem;
    border: 1px solid #e6ecf2;
    border-left: 4px solid #8392a0;
    border-radius: 6px;
    background: #f8fafc;
    padding: 0.68rem;
}

.ncmw-market-lane--new-retail {
    border-left-color: #2d7d19;
}

.ncmw-market-lane--new-asking {
    border-left-color: #48a6a7;
}

.ncmw-market-lane--used-asking {
    border-left-color: #f59e0b;
}

.ncmw-market-lane--used-sold {
    border-left-color: #6d5bd0;
}

.ncmw-market-lane--refurbished {
    border-left-color: #64748b;
}

.ncmw-market-lane__head,
.ncmw-market-lane__range > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
}

.ncmw-market-lane__head > div:first-child {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.ncmw-market-lane__head strong {
    color: #102633;
    font-size: 0.98rem;
}

.ncmw-market-lane__head b {
    color: #102633;
    font-size: 1.08rem;
    white-space: nowrap;
}

.ncmw-market-lane__price {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.45rem;
    text-align: right;
}

.ncmw-market-lane__price .ncmw-tax-pill {
    min-height: 21px;
    padding: 0.14rem 0.45rem;
    font-size: 0.7rem;
    white-space: nowrap;
}

.ncmw-market-lane__head span,
.ncmw-market-lane__range span,
.ncmw-market-lane small {
    color: #6a7785;
    font-size: 0.78rem;
    font-weight: 800;
}

.ncmw-market-lane__range {
    display: grid;
    gap: 0.28rem;
}

.ncmw-market-lane__range strong {
    color: #465462;
    font-size: 0.84rem;
    white-space: nowrap;
}

.ncmw-market-lane--empty {
    border-style: dashed;
    border-left-color: #b9c5d0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.9)),
        repeating-linear-gradient(135deg, rgba(131, 146, 160, 0.12) 0, rgba(131, 146, 160, 0.12) 1px, transparent 1px, transparent 9px);
    color: #7b8794;
}

.ncmw-market-lane--empty strong {
    color: #465462;
}

.ncmw-market-lane--empty .ncmw-market-lane__head span,
.ncmw-market-lane--empty small {
    color: #82909e;
}

.ncmw-market-lane__price--empty b {
    color: #9aa7b4;
}

.ncmw-card-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0;
}

.ncmw-card-stats div {
    min-width: 0;
}

.ncmw-card-stats dt {
    color: #6a7785;
    font-size: 0.78rem;
    font-weight: 800;
}

.ncmw-card-stats dd {
    margin: 0.1rem 0 0;
    font-size: 1.04rem;
    font-weight: 900;
}

.ncmw-card-meta {
    border-top: 1px solid #d9e1e8;
    padding-top: 0.75rem;
    color: #566371;
    font-size: 0.88rem;
}

.ncmw-chart-stack {
    display: grid;
    gap: 0.65rem;
}

.ncmw-mini-chart {
    display: grid;
    gap: 0.35rem;
    border: 1px solid #e6ecf2;
    border-radius: 6px;
    background: #f8fafc;
    padding: 0.65rem;
}

.ncmw-mini-chart__head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: baseline;
    color: #465462;
    font-size: 0.82rem;
    font-weight: 800;
}

.ncmw-mini-chart__head strong {
    color: #102633;
    white-space: nowrap;
}

.ncmw-mini-chart small {
    color: #6a7785;
}

.ncmw-msrp-bar,
.ncmw-range-bar {
    position: relative;
    height: 16px;
    border-radius: 999px;
    background: #e6ecf2;
    overflow: hidden;
}

/* The mini charts are CSS-only summaries. PHP writes the percentages as custom
   properties so no public charting dependency is required. */
.ncmw-msrp-bar__axis {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #102633;
    opacity: 0.42;
    transform: translateX(-1px);
    z-index: 2;
}

.ncmw-msrp-bar__fill {
    position: absolute;
    top: 3px;
    bottom: 3px;
    width: var(--ncmw-msrp-width);
    border-radius: 999px;
    background: #63b821;
}

.ncmw-mini-chart--msrp.is-above .ncmw-msrp-bar__fill {
    left: 50%;
    background: #f59e0b;
}

.ncmw-mini-chart--msrp.is-below .ncmw-msrp-bar__fill {
    right: 50%;
    background: #63b821;
}

.ncmw-range-bar__track {
    position: absolute;
    inset: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #63b821, #f59e0b);
}

.ncmw-range-bar__marker {
    position: absolute;
    top: 1px;
    bottom: 1px;
    left: var(--ncmw-range-pos);
    width: 4px;
    border-radius: 999px;
    background: #102633;
    transform: translateX(-2px);
    z-index: 2;
}

.ncmw-range-bar--empty .ncmw-range-bar__track {
    background: linear-gradient(90deg, #d9e1e8, #edf2f6);
    filter: blur(0.15px);
}

.ncmw-range-bar--empty .ncmw-range-bar__marker {
    background: #b9c5d0;
    opacity: 0.55;
}

.ncmw-trend.is-up {
    background: #fff4d7;
    color: #7a4f00;
}

.ncmw-trend.is-down {
    background: #e8f6df;
    color: #255f14;
}

.ncmw-trend.is-flat {
    background: #e9eef3;
    color: #465462;
}

.ncmw-observations {
    margin-top: clamp(1.5rem, 4vw, 3rem);
}

.ncmw-section-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.ncmw-section-head h2 {
    margin: 0;
}

.ncmw-table-wrap {
    overflow-x: auto;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    background: #fff;
}

.ncmw-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.ncmw-table th,
.ncmw-table td {
    border-bottom: 1px solid #e6ecf2;
    padding: 0.72rem 0.8rem;
    text-align: left;
    vertical-align: top;
}

.ncmw-table th {
    background: #f5f7fa;
    color: #465462;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.ncmw-table tr:last-child td {
    border-bottom: 0;
}

.ncmw-disclaimer,
.ncmw-empty p {
    color: #6a7785;
}

.ncmw-market-legend {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 0.8rem 1rem;
    border-top: 1px solid #d9e1e8;
    color: #6a7785;
    font-size: 0.73rem;
    line-height: 1.45;
    margin-top: clamp(1.4rem, 3vw, 2.25rem);
    padding-top: 0.85rem;
}

.ncmw-market-legend__group {
    display: grid;
    gap: 0.42rem;
    align-content: start;
}

.ncmw-market-legend strong {
    color: #465462;
    font-size: 0.76rem;
}

.ncmw-market-legend ul {
    display: grid;
    gap: 0.28rem 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.ncmw-market-legend li {
    display: flex;
    gap: 0.38rem;
    min-width: 0;
}

.ncmw-market-legend b {
    color: #465462;
    font-weight: 900;
}

.ncmw-market-legend p {
    margin: 0;
}

.ncmw-market-legend__swatch {
    display: inline-block;
    flex: 0 0 auto;
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 2px;
    margin-top: 0.25rem;
    background: #8392a0;
}

.ncmw-market-legend__swatch--new-retail {
    background: #2d7d19;
}

.ncmw-market-legend__swatch--new-asking {
    background: #48a6a7;
}

.ncmw-market-legend__swatch--used-asking {
    background: #f59e0b;
}

.ncmw-market-legend__swatch--used-sold {
    background: #6d5bd0;
}

.ncmw-market-legend__swatch--refurbished {
    background: #64748b;
}

.ncmw-market-legend__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
}

.ncmw-market-legend__fineprint {
    grid-column: 1 / -1;
    color: #82909e;
    font-size: 0.7rem;
}

.ncmw-empty {
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    background: #fff;
    padding: 1.2rem;
}

.ncmw-home-spotlight {
    background:
        linear-gradient(135deg, rgba(118, 185, 0, 0.18), transparent 36%),
        linear-gradient(180deg, #0f1620, #101720);
    color: #f4f7fb;
    padding: clamp(1.5rem, 4vw, 2.75rem) 0;
}

.ncmw-home-spotlight__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
    gap: clamp(1rem, 4vw, 2rem);
    align-items: center;
}

.ncmw-home-spotlight h2 {
    margin: 0 0 0.65rem;
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    line-height: 1.1;
}

.ncmw-home-spotlight p {
    max-width: 760px;
    margin: 0 0 1rem;
    color: #c7d0da;
}

.ncmw-home-spotlight__cards {
    display: grid;
    gap: 0.65rem;
}

.ncmw-home-spotlight__cards a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.2rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    padding: 0.75rem;
    text-decoration: none;
}

.ncmw-home-spotlight__cards span,
.ncmw-home-spotlight__cards small {
    min-width: 0;
}

.ncmw-home-spotlight__cards strong {
    grid-row: span 2;
    align-self: center;
    color: #b8f274;
}

.ncmw-home-spotlight__cards small {
    color: #c7d0da;
}

.ncmw-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid #63b821;
    border-radius: 6px;
    background: #63b821;
    color: #061107;
    padding: 0.55rem 0.85rem;
    font-weight: 900;
    text-decoration: none;
}

.ncmw-link-button:hover,
.ncmw-link-button:focus {
    background: #7dd63a;
    color: #061107;
}

.ncmw-gpu-panel {
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    background: #fff;
    color: #102633;
    margin: 1.25rem 0 0;
    padding: 0;
}

.ncmw-gpu-panel__shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: start;
}

.ncmw-gpu-market-details {
    min-width: 0;
}

.ncmw-gpu-market-summary {
    display: flex;
    align-items: center;
    gap: 0.58rem;
    min-height: 58px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    list-style: none;
}

.ncmw-gpu-market-summary::-webkit-details-marker {
    display: none;
}

.ncmw-gpu-market-summary::before {
    content: "\25B8";
    display: inline-flex;
    flex: 0 0 1.7rem;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border: 1px solid #b8d9b0;
    border-radius: 999px;
    background: #eef8eb;
    color: #2d7d19;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.ncmw-gpu-market-summary:hover::before,
.ncmw-gpu-market-summary:focus-visible::before {
    border-color: #63b821;
    background: #63b821;
    color: #fff;
}

.ncmw-gpu-market-details[open] > .ncmw-gpu-market-summary::before {
    transform: rotate(90deg);
}

.ncmw-gpu-market-summary__title {
    flex: 1 1 auto;
    color: #102633;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.25;
}

.ncmw-gpu-market-pill {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #eef3f6;
    color: #425363;
    padding: 0.22rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.ncmw-gpu-market-pill--muted {
    background: #f7fafc;
    color: #6a7785;
}

.ncmw-gpu-market-link {
    align-self: center;
    justify-self: end;
    margin-right: 1rem;
    border: 1px solid #63b821;
    border-radius: 6px;
    background: #63b821;
    color: #061107;
    padding: 0.48rem 0.7rem;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.ncmw-gpu-market-link:hover,
.ncmw-gpu-market-link:focus {
    background: #7dd63a;
    color: #061107;
}

.ncmw-gpu-market-detail-body {
    padding: 0 1rem 1rem;
}

.ncmw-gpu-market-details:not([open]) > .ncmw-gpu-market-detail-body {
    display: none !important;
}

.ncmw-gpu-panel__intro {
    max-width: 62ch;
    margin: 0 0 0.8rem;
    color: #6a7785;
    font-size: 0.9rem;
}

.ncmw-gpu-panel__listings {
    display: grid;
    gap: 0.55rem;
}

.ncmw-gpu-listing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    border: 1px solid #e6ecf2;
    border-radius: 6px;
    background: #fff;
    padding: 0.7rem;
}

.ncmw-gpu-listing__main,
.ncmw-gpu-listing__price {
    display: grid;
    gap: 0.16rem;
}

.ncmw-gpu-listing__main {
    min-width: 0;
}

.ncmw-gpu-listing__main strong,
.ncmw-gpu-listing__main a {
    color: #102633;
}

.ncmw-gpu-listing__main span,
.ncmw-gpu-listing__main small,
.ncmw-gpu-listing__price span {
    color: #6a7785;
}

.ncmw-gpu-listing__price {
    justify-items: end;
    text-align: right;
}

.ncmw-gpu-listing__price strong {
    font-size: 1.05rem;
}

.ncmw-menu-item > a {
    min-height: 36px;
}

@media (max-width: 820px) {
    .ncmw-hero__inner,
    .ncmw-home-spotlight__inner {
        grid-template-columns: 1fr;
    }

    .ncmw-card-stats {
        grid-template-columns: 1fr;
    }

    .ncmw-market-legend,
    .ncmw-market-legend ul {
        grid-template-columns: 1fr;
    }

    .ncmw-product-detail__head {
        display: grid;
    }

    .ncmw-product-market-card__hero-price {
        grid-template-columns: 1fr;
    }

    .ncmw-product-market-card__hero-side {
        justify-content: flex-start;
    }

    .ncmw-product-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ncmw-gpu-panel__shell,
    .ncmw-gpu-listing {
        grid-template-columns: 1fr;
        display: grid;
    }

    .ncmw-gpu-market-summary {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .ncmw-gpu-market-summary__title {
        flex-basis: calc(100% - 2.3rem);
    }

    .ncmw-gpu-market-link {
        justify-self: start;
        margin: 0 1rem 1rem;
    }

    .ncmw-gpu-listing__price {
        justify-items: start;
        text-align: left;
    }

    .ncmw-tax-note {
        display: grid;
    }
}

@media (max-width: 520px) {
    .ncmw-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ncmw-popular-pill {
        width: 100%;
    }

    .ncmw-product-kpis {
        grid-template-columns: 1fr;
    }

    .ncmw-product-market-card__head,
    .ncmw-market-lane__head,
    .ncmw-market-lane__range > div:first-child {
        display: grid;
    }

    .ncmw-market-search__box {
        grid-template-columns: 1fr;
    }

    .ncmw-market-search__suggestions {
        max-height: 260px;
    }

    .ncmw-market-search__suggestions li {
        display: grid;
        gap: 0.12rem;
    }

    .ncmw-market-lane__head b,
    .ncmw-market-lane__range strong {
        white-space: normal;
    }
}
