.nav-links a.is-active {
    color: var(--ink);
}

.marketplace-page {
    width: min(1360px, calc(100% - 40px));
    margin: 0 auto;
    padding: 36px 0 64px;
}

.marketplace-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.marketplace-hero h1 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.marketplace-hero .lead {
    margin: 0;
    max-width: 40rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.marketplace-filters {
    display: grid;
    grid-template-columns: 1.6fr 1fr auto;
    gap: 12px;
    margin-bottom: 22px;
}

.marketplace-filters input,
.marketplace-filters select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
    color: var(--ink);
}

.marketplace-filters select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    cursor: pointer;
}

.marketplace-grid {
    margin-bottom: 28px;
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin: 8px 0 28px;
    padding: 48px 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 0%, rgba(32, 203, 120, 0.12), transparent 55%),
        linear-gradient(180deg, #fff 0%, var(--soft) 100%);
    text-align: center;
}

.empty-state-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 4px;
    border-radius: 18px;
    background: var(--mint);
    color: var(--green-deep);
    box-shadow: inset 0 0 0 1px rgba(32, 203, 120, 0.18);
}

.empty-state-icon svg {
    width: 28px;
    height: 28px;
}

.empty-state h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.empty-state p {
    margin: 0;
    max-width: 34rem;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.empty-state-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.empty-state-actions .btn-solid,
.empty-state-actions .btn-ghost {
    min-height: 44px;
    border-radius: 12px;
}

.marketplace-pager {
    display: flex;
    justify-content: center;
    margin: 8px 0 24px;
}

.marketplace-trust {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--mint);
    color: var(--green-deep);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.marketplace-trust svg {
    width: 20px;
    height: 20px;
    flex: none;
    margin-top: 1px;
    color: var(--green-deep);
}

.marketplace-trust span {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 42rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.ask-page {
    max-width: 760px;
}

.ask-hero-block {
    text-align: center;
    padding: 28px 0 12px;
}

.ask-spark {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: var(--lavender);
    color: var(--purple);
    display: grid;
    place-items: center;
}

.ask-spark svg {
    width: 22px;
    height: 22px;
}

.ask-hero-block .eyebrow {
    margin: 0 0 8px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.ask-hero-block h1 {
    margin: 0 0 10px;
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.ask-hero-block .lead {
    margin: 0 auto 24px;
    max-width: 34rem;
    color: var(--muted);
    line-height: 1.5;
}

.ask-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 16px;
    max-width: 640px;
    min-height: 58px;
    padding: 6px 6px 6px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
}

.ask-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 1rem;
}

.ask-search button {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: var(--purple);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.ask-search button svg {
    width: 20px;
    height: 20px;
}

.ask-suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.ask-suggestions a {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
}

.ask-suggestions a:hover {
    border-color: #c9c4f0;
    background: #faf8ff;
}

.ask-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.ask-results {
    margin-top: 28px;
    display: grid;
    gap: 12px;
}

.ask-found {
    margin: 0 0 4px;
    color: var(--muted);
    font-weight: 600;
}

.ask-match {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.ask-match img,
.ask-match-fallback {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.ask-match-fallback {
    display: grid;
    place-items: center;
    background: var(--mint);
    color: var(--green-deep);
    font-weight: 800;
    font-size: 1.3rem;
}

.ask-match-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.ask-kind {
    width: fit-content;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--lavender);
    color: var(--purple);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.ask-match-copy strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ask-match-copy span {
    color: var(--muted);
    font-size: 0.9rem;
}

.ask-match-price {
    white-space: nowrap;
}

.wanted-hero {
    margin-bottom: 18px;
}

.wanted-hero .eyebrow {
    margin: 0 0 8px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
}

.wanted-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.wanted-toolbar p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.wanted-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.wanted-page-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    min-height: 180px;
}

.wanted-page-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    color: var(--purple);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wanted-page-tag svg {
    width: 16px;
    height: 16px;
}

.wanted-page-card strong {
    font-size: 1.05rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.wanted-campus {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.4;
}

.wanted-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 0;
}

.wanted-budget {
    font-weight: 800;
}

.wanted-go {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--lavender);
    color: var(--purple);
    display: grid;
    place-items: center;
}

.wanted-go .icon-arrow {
    width: 16px;
    height: 16px;
}

@media (max-width: 900px) {
    .marketplace-page {
        width: min(1360px, calc(100% - 24px));
        padding: 24px 0 48px;
    }

    .marketplace-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 22px;
    }

    .marketplace-hero h1 {
        font-size: 28px;
    }

    .ask-page {
        max-width: 100%;
    }

    .ask-hero-block {
        padding: 8px 0 4px;
    }

    .ask-spark {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
        border-radius: 12px;
    }

    .ask-hero-block .eyebrow {
        margin-bottom: 10px;
    }

    .ask-hero-block h1 {
        margin-bottom: 8px;
        font-size: 28px;
        line-height: 1.2;
    }

    .ask-hero-block .lead {
        margin: 0 auto 20px;
        padding: 0 2px;
        font-size: 15px;
        line-height: 1.5;
    }

    .ask-search {
        min-height: 44px;
        margin: 0 auto 12px;
        padding: 3px 3px 3px 14px;
        border-radius: 14px;
        gap: 6px;
    }

    .ask-search input {
        font-size: 14px;
        padding: 0 2px;
    }

    .ask-search button {
        width: 36px;
        height: 36px;
        flex: none;
    }

    .ask-search button svg {
        width: 16px;
        height: 16px;
    }

    .ask-meta {
        padding: 0 2px;
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .ask-results {
        margin-top: 22px;
        gap: 10px;
    }

    .ask-match {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
        border-radius: 14px;
    }

    .ask-match-price {
        grid-column: 2;
        justify-self: start;
    }

    .empty-state {
        padding: 36px 18px;
        border-radius: 16px;
    }

    .empty-state h2 {
        font-size: 20px;
    }

    .empty-state-actions {
        width: 100%;
    }

    .empty-state-actions .btn-solid,
    .empty-state-actions .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .marketplace-trust {
        justify-content: flex-start;
        padding: 14px;
        border-radius: 12px;
    }

    .marketplace-trust span {
        max-width: none;
    }

    .marketplace-filters {
        grid-template-columns: 1fr;
    }

    .wanted-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .wanted-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .ask-found {
        margin: 0 0 8px;
        font-size: 0.88rem;
        line-height: 1.35;
    }

    .ask-results {
        gap: 8px;
    }

    .ask-match {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
        align-items: start;
        border-radius: 12px;
    }

    .ask-match img,
    .ask-match-fallback {
        width: 52px;
        height: 52px;
        border-radius: 10px;
    }

    .ask-match-fallback {
        font-size: 1.1rem;
    }

    .ask-match-copy {
        gap: 3px;
    }

    .ask-kind {
        padding: 1px 7px;
        font-size: 10px;
    }

    .ask-match-copy strong {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.92rem;
        line-height: 1.25;
    }

    .ask-match-copy > span:not(.ask-kind):not(.verified) {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.72rem;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    .ask-match-copy .verified {
        font-size: 0.75rem;
    }

    .ask-match-price {
        grid-column: 2;
        margin-top: 2px;
        font-size: 0.92rem;
        line-height: 1.2;
    }
}

@media (min-width: 901px) and (max-width: 1100px) {
    .wanted-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
