.market-hero {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    color: #17384f;
}

.market-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    align-items: center;
    gap: clamp(36px, 6vw, 82px);
    min-height: 484px;
    padding-block: 48px 42px;
}

.market-hero-copy { max-width: 620px; }

.market-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border: 1px solid #b8dce9;
    border-radius: 99px;
    background: #ffffffa8;
    color: #38657c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
}

.market-eyebrow i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f47721;
    box-shadow: 0 0 0 4px #f477211a;
}

.market-hero-copy h1 {
    max-width: 600px;
    margin: 21px 0 13px;
    color: #123d58;
    font: 800 clamp(40px, 4.3vw, 58px)/1.08 Inter, sans-serif;
    letter-spacing: -2.2px;
}

.market-hero-copy h1 em {
    color: #e66b1b;
    font-style: normal;
}

.market-hero-copy > p {
    max-width: 490px;
    margin: 0 0 24px;
    color: #3d5a6e;
    font-size: 15px;
    line-height: 1.65;
}

.market-hero .hero-search {
    width: 100%;
    max-width: 590px;
    height: 62px;
    gap: 4px;
    padding: 7px;
    border: 1px solid #d6e8f1;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 12px 30px #15547718;
}

.market-hero .hero-search > span {
    display: grid;
    width: 43px;
    flex: 0 0 43px;
    place-items: center;
    color: #608196;
    font-size: 23px;
}

.market-hero .hero-search input {
    min-width: 0;
    width: 100%;
    padding: 0 8px;
    color: #17384f;
    font-size: 13px;
}

.market-hero .hero-search input::placeholder { color: #5a7a8e; }

.market-hero .hero-search button {
    height: 46px;
    flex: 0 0 auto;
    padding: 0 20px;
    border-radius: 6px;
    background: #f47721;
    box-shadow: 0 5px 12px #f4772130;
    font-size: 12px;
    transition: background .15s, transform .15s;
}

.market-hero .hero-search select {
    height: 46px;
    min-width: 132px;
    flex: 0 0 auto;
    padding: 0 10px;
    border: 1px solid #d6e8f1;
    border-radius: 6px;
    background: #f8fbfd;
    color: #17384f;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.market-hero .hero-search select:focus {
    outline: none;
    border-color: #f47721;
    box-shadow: 0 0 0 3px #f4772122;
}

@media (max-width: 680px) {
    .market-hero .hero-search select { min-width: 96px; font-size: 10px; padding-inline: 6px; }
}

.market-popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #3d5a6e;
    font-size: 11px;
}

.market-popular b { margin-right: 2px; color: #31566d; font-weight: 700; }

.market-popular a {
    padding: 5px 10px;
    border: 1px solid #c8e1ec;
    border-radius: 99px;
    background: #ffffffa6;
    color: #426b81;
    transition: border-color .15s, background .15s, color .15s;
}

.market-popular a:hover { border-color: #f3a06b; background: #fff; color: #d76517; }

.market-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 20px; }
.market-actions a { display: inline-flex; align-items: center; gap: 7px; color: #225d7c; font-size: 12px; font-weight: 800; }
.market-actions a:first-child { color: #d76517; }
.market-actions a:hover { text-decoration: underline; text-underline-offset: 3px; }

.market-opportunity-links {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 16px;
    left: 16px;
    display: flex;
    gap: 9px;
    transform: translateY(-50%);
}

.market-opportunity-link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1 1 0;
    padding: 10px;
    border: 1px solid #d9e8ef;
    border-radius: 8px;
    background: #fff;
    color: #21465e;
    box-shadow: 0 5px 16px #1554770d;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.market-opportunity-link:hover {
    transform: translateY(-2px);
    border-color: #9dcbd8;
    box-shadow: 0 9px 22px #15547717;
}

.market-opportunity-link > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.market-opportunity-link strong {
    font-size: 10px;
    line-height: 1.3;
}

.market-opportunity-link small {
    color: #708799;
    font-size: 9px;
}

.market-opportunity-icon {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    place-items: center;
    border-radius: 50%;
    background: #eaf5f8;
    color: #168b83;
    font-size: 17px;
    font-weight: 800;
}

.market-opportunity-link > b {
    margin-left: auto;
    color: #d76517;
}

.market-opportunity-page {
    padding-block: 35px 70px;
}

.market-opportunity-back {
    display: inline-flex;
    margin-bottom: 18px;
    color: #426b81;
    font-size: 12px;
    font-weight: 700;
}

.market-opportunity-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    min-height: 370px;
    padding: clamp(24px, 5vw, 58px);
    border: 1px solid #d7e8ef;
    border-radius: 15px;
    background: linear-gradient(120deg, #f3fbfd, #fff 68%);
    box-shadow: 0 18px 48px #15547712;
}

.market-opportunity-content {
    max-width: 660px;
}

.market-opportunity-content h1 {
    margin: 24px 0 12px;
    color: #123d58;
    font: 800 clamp(32px, 4vw, 48px)/1.12 Inter, sans-serif;
    letter-spacing: -1.5px;
}

.market-opportunity-content > p {
    max-width: 600px;
    color: #496577;
    font-size: 15px;
    line-height: 1.75;
}

.market-opportunity-content ul {
    display: grid;
    gap: 10px;
    margin: 22px 0;
    padding: 0;
    color: #34566d;
    font-size: 13px;
    list-style: none;
}

.market-opportunity-content li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.market-opportunity-content li span {
    color: #168b83;
    font-weight: 800;
}

.market-opportunity-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 25px;
}

.market-opportunity-secondary {
    color: #225d7c;
    font-size: 12px;
    font-weight: 700;
}

.market-opportunity-illustration {
    display: grid;
    width: 180px;
    height: 180px;
    flex: 0 0 180px;
    place-items: center;
    border: 1px solid #d3e8ee;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 35%, #e8f6f8);
    color: #168b83;
    font-size: 88px;
    font-weight: 700;
}

.buyer-opportunity .market-opportunity-illustration {
    color: #e4772f;
    background: radial-gradient(circle, #fff 35%, #fff2e8);
    border-color: #f2dfd0;
}

.market-hero-image {
    position: relative;
    min-width: 0;
    height: 370px;
    overflow: hidden;
    border: 7px solid #ffffffb8;
    border-radius: 16px;
    background: #c6e2ed;
    box-shadow: 0 24px 55px #15547725;
}

.market-hero-image::after {
    position: absolute;
    inset: 48% 0 0;
    background: linear-gradient(transparent, #092b43b8);
    content: "";
    pointer-events: none;
}

.market-hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

.market-image-caption {
    position: absolute;
    z-index: 1;
    right: 20px;
    bottom: 18px;
    left: 20px;
    display: grid;
    gap: 3px;
    color: #fff;
}

.market-image-caption strong { font: 700 17px Inter, sans-serif; }
.market-image-caption span { color: #e1edf3; font-size: 11px; }

.market-stats { position: relative; z-index: 1; border-top: 1px solid #cce4ee; background: #ffffffb8; }
.market-stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 19px; }
.market-stats-row > div { display: grid; gap: 2px; padding-inline: 22px; border-right: 1px solid #d9e8ef; }
.market-stats-row > .market-stat-link { display: grid; gap: 2px; padding-inline: 22px; border-right: 1px solid #d9e8ef; color: inherit; text-decoration: none; }
.market-stats-row > .market-stat-link:hover strong { color: #d56c25; }
.market-stats-row > div:first-child { padding-left: 0; }
.market-stats-row > .market-stat-link:first-child { padding-left: 0; }
.market-stats-row > div:last-child { border-right: 0; }
.market-stats-row strong { color: #155477; font: 800 16px Inter, sans-serif; }
.market-stats-row span { color: #3d5a6e; font-size: 11px; }

.market-directory-page { min-height: 65vh; padding-block: 32px 64px; }
.market-directory-heading { margin: 8px 0 24px; }
.market-directory-heading h1 { margin: 12px 0 7px; color: #123d58; font: 800 clamp(30px, 4vw, 42px)/1.12 Inter, sans-serif; letter-spacing: -1.2px; }
.market-directory-heading > p { margin: 0; color: #526f83; font-size: 13px; }
.market-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.market-directory-card { display: flex; min-width: 0; flex-direction: column; padding: 18px; border: 1px solid #d6e8f1; border-radius: 8px; background: #fff; box-shadow: 0 8px 22px #1554770b; }
.market-directory-card h2 { margin: 7px 0; color: #17384f; font: 700 16px/1.35 Inter, sans-serif; }
.market-directory-card > p { flex: 1; margin: 0 0 16px; color: #526f83; font-size: 11px; line-height: 1.6; white-space: pre-wrap; }
.market-directory-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 10px; border-top: 1px solid #e8f0f4; color: #708799; font-size: 9px; }
.market-directory-card-link { align-self: flex-start; margin-top: 14px; color: #d76517; font-size: 10px; font-weight: 800; }
.market-directory-empty { grid-column: 1/-1; padding: 36px 20px; border: 1px dashed #c7dfeb; border-radius: 8px; background: #f8fcfe; text-align: center; }
.market-directory-empty h2 { margin: 0 0 7px; color: #17384f; font: 700 16px Inter, sans-serif; }
.market-directory-empty p { margin: 0 0 15px; color: #617e91; font-size: 11px; }

.market-hero-main {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 0;
}

.market-hero-copy { display: none; }

.market-hero-main > .market-hero-image {
    width: 100%;
    height: clamp(320px, 42vw, 350px);
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 900px) {
    .market-hero-main { grid-template-columns: minmax(0, 1fr) minmax(290px, .85fr); gap: 30px; min-height: 430px; }
    .market-hero-image { height: 320px; }
    .market-hero-copy h1 { font-size: clamp(37px, 5vw, 48px); }
    .market-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .market-hero-main { display: block; min-height: 0; padding-block: 36px 30px; }
    .market-hero-copy { max-width: none; }
    .market-hero-copy h1 { margin-top: 17px; font-size: clamp(36px, 10vw, 46px); letter-spacing: -1.5px; }
    .market-hero-copy > p { margin-bottom: 18px; font-size: 13px; }
    .market-hero .hero-search { height: 55px; }
    .market-hero .hero-search > span { width: 32px; flex-basis: 32px; padding: 0; }
    .market-hero .hero-search input { padding-inline: 3px; font-size: 11px; }
    .market-hero .hero-search button { height: 41px; padding-inline: 12px; font-size: 10px; }
    .market-popular { gap: 7px; margin-top: 12px; font-size: 10px; }
    .market-popular b { flex-basis: 100%; }
    .market-popular a { padding: 4px 9px; }
    .market-actions { gap: 10px 17px; margin-top: 16px; }
    .market-actions a { font-size: 11px; }
    .market-opportunity-panel { align-items: flex-start; flex-direction: column-reverse; gap: 20px; padding: 24px; }
    .market-opportunity-illustration { width: 92px; height: 92px; flex-basis: 92px; font-size: 44px; }
    .market-opportunity-content h1 { margin-top: 18px; font-size: 32px; }
    .market-opportunity-content > p { font-size: 13px; }
    .market-hero-image { height: 230px; margin-top: 27px; border-width: 5px; border-radius: 12px; }
    .market-opportunity-links { right: 9px; left: 9px; gap: 6px; }
    .market-opportunity-link { gap: 6px; padding: 7px; border-radius: 6px; }
    .market-opportunity-link strong { font-size: 8px; }
    .market-opportunity-link small { display: none; }
    .market-opportunity-icon { width: 25px; height: 25px; flex-basis: 25px; font-size: 14px; }
    .market-opportunity-link > b { font-size: 10px; }
    .market-image-caption { right: 14px; bottom: 13px; left: 14px; }
    .market-image-caption strong { font-size: 14px; }
    .market-stats-row { grid-template-columns: 1fr 1fr; gap: 14px 0; padding-block: 16px; }
    .market-stats-row > div { padding-inline: 12px; }
    .market-stats-row > div:nth-child(2) { border-right: 0; }
    .market-stats-row > div:first-child { padding-left: 0; }
    .market-stats-row strong { font-size: 14px; }
    .market-stats-row span { font-size: 10px; }
    .market-directory-page { padding-block: 24px 44px; }
    .market-directory-grid { grid-template-columns: 1fr; gap: 10px; }
    .market-directory-card { padding: 15px; }
}

@media (max-width: 680px) {
    .market-hero-main > .market-hero-image {
        height: clamp(240px, 70vw, 360px);
    }
}

.market-opportunity-links {
    top: auto;
    right: 24px;
    bottom: 24px;
    left: auto;
    width: min(440px, calc(100% - 48px));
    transform: none;
}

.market-opportunity-link {
    min-height: 48px;
    padding: 8px 11px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    box-shadow: 0 5px 16px #102f3c55;
}

.market-opportunity-link.distributor-link { background: #e96d1f; }
.market-opportunity-link.buyer-link { background: #087c78; }
.market-opportunity-link:hover { filter: brightness(1.08); }
.market-opportunity-link strong { color: #fff; font-size: 11px; }
.market-opportunity-link small { color: #ffffffdf; font-size: 9px; }
.market-opportunity-icon { background: #ffffff2b; color: #fff; }
.market-opportunity-link > b { color: #fff; }

@media (max-width: 680px) {
    .market-opportunity-links {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        gap: 7px;
    }

    .market-opportunity-link {
        min-height: 44px;
        gap: 6px;
        padding: 7px 8px;
    }

    .market-opportunity-link strong { font-size: 9px; }
    .market-opportunity-link small { display: none; }
    .market-opportunity-icon { width: 23px; height: 23px; flex-basis: 23px; font-size: 13px; }
}
