.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: 14px;
    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: 23px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.empty-state p {
    margin: 0;
    max-width: 34rem;
    color: var(--muted);
    font-size: 13px;
    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: 999px;
}

.marketplace-page .btn-solid {
    background: #20CB78;
    border-radius: 999px;
}

.marketplace-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 8px 0 24px;
    color: #6b7280;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}

.marketplace-pager a {
    color: var(--ink, #111827);
    font-weight: 700;
    text-decoration: none;
}

.marketplace-pager a:hover {
    color: var(--green-deep, #0f7a4a);
}

.marketplace-pager .is-disabled {
    color: #9ca3af;
    cursor: default;
}

.marketplace-pager-status {
    color: #6b7280;
    font-weight: 600;
}

.marketplace-trust {
    display: flex;
    align-items: center;
    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: 11px;
    line-height: 1.45;
    text-align: center;
}

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

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

.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: 20px;
    height: 20px;
}

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

.ask-hero-block h1 {
    margin: 0 0 10px;
    font-size: 35px;
    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: 13px;
}

.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: 12px;
    font-weight: 600;
}

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

.ask-meta {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    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: 18px;
}

.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: 12px;
}

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

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

.wanted-hero .eyebrow {
    margin: 0 0 8px;
    font-size: 10px;
    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-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
}

.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: #FAFBF8;
    min-height: 180px;
}

.wanted-page-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    color: var(--purple);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.wanted-page-card strong {
    font-family: 'Manrope', 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.4px;
}

.wanted-campus {
    color: var(--muted);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 400;
    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-family: 'Manrope', 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.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 {
        max-width: 11.6em;
        font-family: var(--font-heading);
        font-size: 27px;
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: -1.7px;
    }

    .marketplace-hero .lead {
        max-width: 34rem;
        font-family: var(--font-body);
        font-size: 12px;
        font-weight: 400;
        line-height: 1.7;
        color: #6b756f;
    }

    .marketplace-hero .btn-solid {
        font-family: var(--font-body);
        font-size: 10px;
        font-weight: 650;
    }

    .service-grid.marketplace-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 13px;
    }

    .service-card {
        border: 1px solid var(--line);
        border-radius: 16px;
    }

    .service-card .service-body {
        gap: 6px;
        padding: 10px 10px 12px;
    }

    .service-card .service-body strong {
        font-family: 'DM Sans', sans-serif;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.4;
        letter-spacing: -0.1px;
    }

    .service-card .price {
        font-family: 'Manrope', sans-serif;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: -0.4px;
        margin: 0;
    }

    .service-card .foot {
        font-family: var(--font-body);
        font-size: 8px;
        font-weight: 400;
        line-height: 1.45;
        gap: 4px;
        color: #7d897e;
    }

    .service-card .verified {
        font-family: var(--font-body);
        font-size: 8px;
        font-weight: 400;
        color: #53835e;
    }

    .service-card .skill-tag {
        font-family: var(--font-body);
        font-size: 7px;
        font-weight: 700;
        letter-spacing: 0.2px;
    }

    .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: 0 0 10px;
        font-family: var(--font-body);
        font-size: 10px;
        font-weight: 650;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: #67816c;
    }

    .ask-hero-block h1 {
        margin: 0 0 0;
        font-family: var(--font-heading);
        font-size: 29px;
        font-weight: 700;
        line-height: 1.38;
        letter-spacing: -1px;
        color: #18251f;
    }

    .ask-hero-block .lead {
        margin: 14px auto 20px;
        padding: 0 2px;
        font-family: var(--font-body);
        font-size: 12px;
        font-weight: 400;
        line-height: 1.7;
        color: #859078;
    }

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

    .ask-search input {
        font-family: var(--font-body);
        font-size: 12px;
        font-weight: 400;
        padding: 0 2px;
    }

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

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

    .ask-suggestions a {
        border: 1px solid var(--line);
        font-family: var(--font-body);
        font-size: 10px;
        font-weight: 400;
    }

    .ask-meta {
        padding: 0 2px;
        font-family: var(--font-body);
        font-size: 10px;
        font-weight: 400;
        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: 1px solid var(--line);
        border-radius: 14px;
    }

    .ask-match-copy strong {
        font-family: var(--font-heading);
        font-size: 13px;
        font-weight: 700;
        line-height: 1.25;
    }

    .ask-match-copy > span:not(.ask-kind):not(.verified) {
        font-family: var(--font-body);
        font-size: 10px;
        font-weight: 400;
    }

    .ask-match-price {
        grid-column: 2;
        justify-self: start;
        font-family: var(--font-heading);
        font-size: 13px;
        font-weight: 700;
    }

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

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

    .empty-state p {
        font-size: 12px;
    }

    .marketplace-trust {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        padding: 12px 14px;
        border-radius: 12px;
        font-size: 11px;
        line-height: 1.4;
        text-align: left;
    }

    .marketplace-trust svg {
        width: 18px;
        height: 18px;
        margin-top: 1px;
        flex: none;
    }

    .marketplace-trust span {
        flex: 0 1 auto;
        width: auto;
        max-width: 18.5rem;
        text-align: left;
    }

    .wanted-page-card {
        padding: 19px;
        gap: 10px;
    }

    .wanted-page-tag {
        font-size: 10px;
        font-weight: 750;
        letter-spacing: 1px;
    }

    .wanted-page-card strong {
        font-size: 19px;
        font-weight: 700;
        letter-spacing: -0.4px;
        line-height: 1.3;
    }

    .wanted-campus {
        font-size: 10px;
        font-weight: 400;
    }

    .wanted-budget {
        font-size: 11px;
        font-weight: 700;
    }

    .ask-suggestions a {
        font-size: 10px;
    }

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

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

    .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: 12px;
        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: 15px;
    }

    .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: 13px;
        line-height: 1.25;
    }

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

    .ask-match-copy .verified {
        font-size: 10px;
    }

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

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