.sellers-page {
    min-height: 65vh;
    padding: 28px 20px 72px;
    background: var(--paper, #f6f4ec);
}

.sellers-container {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.sellers-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 24px;
    min-height: 350px;
    overflow: hidden;
    padding: 24px 32px;
    border: 1px solid var(--line, #e7e2d3);
    border-radius: var(--radius-m, 14px);
    background-color: var(--paper, #f6f4ec);
    background-image: url('../../images/seller/background.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: var(--shadow-card, 0 1px 2px rgba(22, 35, 63, .06), 0 8px 24px -12px rgba(22, 35, 63, .18));
}

.sellers-eyebrow {
    margin: 0 0 8px;
    color: var(--teal, #1f8a70);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.sellers-hero-copy h1,
.seller-profile-copy h1 {
    margin: 0;
    color: var(--ink, #16233f);
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
}

.sellers-hero-description {
    max-width: 560px;
    margin: 12px 0 18px;
    color: var(--ink-soft, #445070);
    font-size: 16px;
    line-height: 1.6;
}

.sellers-hero-art {
    display: grid;
    min-width: 0;
    place-items: center;
}

.sellers-hero-art img {
    display: block;
    width: 100%;
    max-width: 590px;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.seller-search-form {
    width: min(500px, 100%);
}

.seller-search-form label,
.seller-sort-form label {
    display: block;
    margin-bottom: 7px;
    color: var(--ink, #16233f);
    font-size: 13px;
    font-weight: 600;
}

.seller-search-controls {
    display: flex;
    gap: 8px;
}

.seller-search-controls input,
.seller-sort-form select {
    min-width: 0;
    border: 1px solid var(--paper-line, #e4dfcf);
    border-radius: 6px;
    background: #fff;
    color: var(--ink, #16233f);
    font: inherit;
}

.seller-search-controls input {
    flex: 1;
    height: 44px;
    padding: 0 12px;
}

.seller-search-controls button {
    min-width: 90px;
    border: 0;
    border-radius: 6px;
    background: var(--teal, #1f8a70);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.seller-search-controls button:hover {
    background: #176b57;
}

.seller-search-controls input:focus-visible,
.seller-search-controls button:focus-visible,
.seller-sort-form select:focus-visible,
.seller-card-link:focus-visible,
.seller-note-link:focus-visible,
.sellers-pagination a:focus-visible,
.sellers-back-link:focus-visible {
    outline: 3px solid #f1b84b;
    outline-offset: 3px;
}

.sellers-results-heading,
.sellers-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 10px 0 18px;
}

.sellers-results-heading > p,
.sellers-section-heading > span {
    margin: 0;
    color: var(--ink-soft, #445070);
    font-size: 14px;
}

.seller-sort-form {
    min-width: 220px;
}

.seller-sort-form select {
    width: 100%;
    min-height: 40px;
    padding: 0 32px 0 10px;
}

.seller-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.seller-card {
    min-width: 0;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line, #e7e2d3);
    border-radius: 8px;
    background: var(--card, #fff);
    box-shadow: var(--shadow-card, 0 1px 2px rgba(22, 35, 63, .06), 0 8px 24px -12px rgba(22, 35, 63, .18));
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.seller-card:hover {
    transform: translateY(-2px);
    border-color: var(--teal, #1f8a70);
    box-shadow: var(--shadow-pop, 0 20px 45px -18px rgba(22, 35, 63, .35));
}

.seller-card-top {
    display: flex;
    align-items: center;
    min-height: 60px;
    margin: 20px 20px 15px;
}

.seller-avatar {
    display: grid;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid rgb(22 35 63 / 8%);
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    object-fit: cover;
}

.seller-avatar-tone-0 { background: #e3f0ea; color: #176b57; }
.seller-avatar-tone-1 { background: #fbe5df; color: #943a2d; }
.seller-avatar-tone-2 { background: #fff1c6; color: #5a4300; }
.seller-avatar-tone-3 { background: #e8e6fb; color: #4e4398; }
.seller-avatar-tone-4 { background: #e3eafb; color: #263e76; }

.seller-avatar-fallback {
    position: relative;
}

.seller-avatar-fallback::before {
    position: absolute;
    top: 17%;
    left: 50%;
    width: 27%;
    height: 27%;
    border-radius: 50%;
    background: currentColor;
    content: '';
    transform: translateX(-50%);
}

.seller-avatar-fallback::after {
    position: absolute;
    bottom: 14%;
    left: 50%;
    width: 52%;
    height: 28%;
    border-radius: 60% 60% 42% 42%;
    background: currentColor;
    content: '';
    transform: translateX(-50%);
}

.seller-card-name {
    overflow-wrap: anywhere;
    margin: 0 20px;
    color: var(--ink, #16233f);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.seller-card-name a {
    color: inherit;
    text-decoration: none;
}

.seller-card-name a:hover {
    color: var(--teal, #1f8a70);
}

.seller-expertise {
    margin: 10px 20px 0;
    color: var(--ink-soft, #445070);
    font-size: 14px;
    line-height: 1.5;
}

.seller-subjects {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 11px 20px 0;
}

.seller-subject-chip {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid var(--paper-line, #e4dfcf);
    border-radius: 999px;
    background: #f6f4ec;
    color: var(--ink-soft, #445070);
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.seller-subjects-more {
    position: relative;
}

.seller-subjects-more summary {
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid #b9d9cf;
    border-radius: 999px;
    background: #eaf5f0;
    color: #176b57;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    list-style: none;
}

.seller-subjects-more summary::-webkit-details-marker {
    display: none;
}

.seller-subjects-more summary:focus-visible {
    outline: 3px solid #f1b84b;
    outline-offset: 2px;
}

.seller-subjects-overflow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

.seller-card-footer {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 12px;
    margin: 18px 20px 20px;
}

.seller-card-metrics {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 30px;
    padding-top: 10px;
    border-top: 1px solid var(--line, #e7e2d3);
}

.seller-card-count {
    color: var(--teal, #1f8a70);
    font-size: 13px;
    font-weight: 700;
}

.seller-card-sales {
    display: inline-flex;
    min-height: 30px;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border: 1px solid #b9d9cf;
    border-radius: 999px;
    background: #eaf5f0;
    color: #176b57;
    font-size: 12px;
    font-weight: 700;
}

.seller-card-action {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--teal, #1f8a70);
    border-radius: 6px;
    background: var(--teal, #1f8a70);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.seller-card-action:hover {
    border-color: #176b57;
    background: #176b57;
    color: #fff;
}

.seller-card-action:focus-visible,
.seller-card-name a:focus-visible {
    outline: 3px solid #f1b84b;
    outline-offset: 3px;
}

.sellers-load-more-wrap {
    margin-top: 26px;
    text-align: center;
}

.sellers-load-more {
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid #176b57;
    border-radius: 6px;
    background: #176b57;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.sellers-load-more:hover:not(:disabled) {
    background: #105b49;
}

.sellers-load-more:focus-visible {
    outline: 3px solid #f1b84b;
    outline-offset: 3px;
}

.sellers-load-more:disabled {
    cursor: wait;
    opacity: .72;
}

.sellers-load-more-status {
    min-height: 20px;
    margin: 8px 0 0;
    color: #64716e;
    font-size: 13px;
}

.sellers-state,
.sellers-empty {
    margin: 0;
    padding: 30px 20px;
    border: 1px solid #e0e9e5;
    border-radius: 8px;
    background: #fff;
    color: #596964;
    text-align: center;
}

.sellers-error {
    border-color: #e4b6b0;
    color: #8d3328;
}

.sellers-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #176b57;
    font-weight: 700;
    text-decoration: none;
}

.sellers-back-link:hover {
    text-decoration: underline;
}

.seller-profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px 26px;
    border: 1px solid var(--line, #e7e2d3);
    border-radius: var(--radius-m, 14px);
    background: #fbfaf5;
    box-shadow: var(--shadow-card, 0 1px 2px rgba(22, 35, 63, .06), 0 8px 24px -12px rgba(22, 35, 63, .18));
}

.seller-avatar-large {
    width: 84px;
    height: 84px;
    flex-basis: 84px;
    font-size: 28px;
}

.seller-profile-copy h1 {
    font-size: 30px;
    overflow-wrap: anywhere;
}

.seller-subject,
.seller-note-count {
    margin: 7px 0 0;
    color: #176b57;
    font-size: 14px;
    font-weight: 700;
}

.seller-bio-preview {
    display: -webkit-box;
    max-width: 760px;
    margin: 12px 0 0;
    overflow: hidden;
    color: var(--ink-soft, #445070);
    line-height: 1.5;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.seller-bio-details {
    max-width: 760px;
    margin-top: 10px;
    color: var(--ink-soft, #445070);
}

.seller-bio-details summary {
    cursor: pointer;
    list-style: none;
}

.seller-bio-details summary::-webkit-details-marker {
    display: none;
}

.seller-bio-details summary:focus-visible {
    outline: 3px solid #f1b84b;
    outline-offset: 2px;
}

.seller-bio-details[open] summary .seller-bio-preview {
    display: none;
}

.seller-bio-read-more,
.seller-bio-read-less {
    color: var(--teal, #1f8a70);
    font-size: 13px;
    font-weight: 700;
}

.seller-bio-details[open] .seller-bio-read-more {
    display: none;
}

.seller-bio-read-less {
    display: none;
}

.seller-bio-details[open] .seller-bio-read-less {
    display: inline;
}

.seller-bio-details > p {
    margin: 9px 0 0;
    color: var(--ink-soft, #445070);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.seller-notes-section {
    margin-top: 26px;
}

.sellers-section-heading {
    align-items: end;
    margin-bottom: 14px;
}

.sellers-section-heading h2 {
    margin: 0;
    color: var(--ink, #16233f);
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 24px;
    font-weight: 700;
}

.seller-results-count {
    margin: 4px 0 0;
    color: var(--ink-soft, #445070);
    font-size: 13px;
}

.seller-note-filter-form {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) minmax(155px, 1fr) minmax(165px, 1fr) auto auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid var(--line, #e7e2d3);
    border-radius: var(--radius-s, 8px);
    background: var(--card, #fff);
}

.seller-note-search-field,
.seller-note-filter-field {
    min-width: 0;
}

.seller-note-filter-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink, #16233f);
    font-size: 12px;
    font-weight: 700;
}

.seller-note-filter-form input,
.seller-note-filter-form select {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--paper-line, #e4dfcf);
    border-radius: 6px;
    background: #fff;
    color: var(--ink, #16233f);
    font: inherit;
    font-size: 14px;
}

.seller-note-filter-form input:focus-visible,
.seller-note-filter-form select:focus-visible,
.seller-filter-submit:focus-visible,
.seller-filter-clear:focus-visible,
.seller-note-link:focus-visible,
.seller-resource-title a:focus-visible {
    outline: 3px solid #f1b84b;
    outline-offset: 2px;
}

.seller-filter-submit {
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid var(--teal, #1f8a70);
    border-radius: 6px;
    background: var(--teal, #1f8a70);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.seller-filter-submit:hover {
    border-color: #176b57;
    background: #176b57;
}

.seller-filter-clear {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    color: var(--ink-soft, #445070);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.seller-note-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.seller-note-card {
    display: flex;
    min-width: 0;
    min-height: 260px;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--line, #e7e2d3);
    border-radius: var(--radius-s, 8px);
    background: var(--card, #fff);
    box-shadow: var(--shadow-card, 0 1px 2px rgba(22, 35, 63, .06), 0 8px 24px -12px rgba(22, 35, 63, .18));
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.seller-note-card:hover {
    transform: translateY(-2px);
    border-color: var(--teal, #1f8a70);
    box-shadow: var(--shadow-pop, 0 20px 45px -18px rgba(22, 35, 63, .35));
}

.seller-resource-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.seller-document-mark {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 50px;
    flex: 0 0 46px;
    border: 1px solid #c8dacd;
    border-radius: 8px;
    background: #eaf5f0;
}

.seller-document-mark::before {
    position: absolute;
    top: 7px;
    left: 11px;
    width: 22px;
    height: 30px;
    border: 1px solid var(--teal, #1f8a70);
    border-radius: 3px;
    background: #fff;
    content: '';
}

.seller-document-mark::after {
    position: absolute;
    top: 8px;
    left: 25px;
    width: 7px;
    height: 7px;
    border-bottom: 1px solid var(--teal, #1f8a70);
    border-left: 1px solid var(--teal, #1f8a70);
    background: #eaf5f0;
    content: '';
}

.seller-document-mark > span {
    position: absolute;
    left: 15px;
    z-index: 1;
    width: 14px;
    height: 1px;
    background: #85a99c;
}

.seller-document-mark > span:nth-child(1) { top: 23px; }
.seller-document-mark > span:nth-child(2) { top: 28px; }
.seller-document-mark > span:nth-child(3) { top: 33px; }

.seller-resource-subject {
    margin: 14px 0 5px;
    color: var(--teal, #1f8a70);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.seller-note-price {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid #b9d9cf;
    border-radius: 999px;
    background: #eaf5f0;
    color: #176b57;
    font-size: 12px;
    font-weight: 700;
}

.seller-note-price.is-free {
    border-color: var(--teal, #1f8a70);
    background: var(--teal, #1f8a70);
    color: #fff;
}

.seller-resource-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 54px;
    margin: 0;
    color: var(--ink, #16233f);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.seller-resource-title a {
    color: inherit;
    text-decoration: none;
}

.seller-resource-title a:hover {
    color: var(--teal, #1f8a70);
}

.seller-resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
    color: var(--ink-soft, #445070);
    font-size: 12px;
}

.seller-resource-meta span + span::before {
    margin-right: 8px;
    color: var(--paper-line, #e4dfcf);
    content: '·';
}

.seller-note-link {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 13px;
    color: var(--teal, #1f8a70);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.seller-note-link:hover {
    color: #176b57;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.seller-notes-empty {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.seller-notes-empty h3,
.seller-notes-empty p {
    margin: 0;
}

.seller-notes-empty h3 {
    color: var(--ink, #16233f);
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 20px;
}

.seller-notes-empty p {
    max-width: 480px;
    color: var(--ink-soft, #445070);
}

.seller-notes-empty .seller-card-action {
    width: auto;
    margin-top: 5px;
    text-decoration: none;
}

.sellers-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 26px;
    color: #64716e;
    font-size: 14px;
}

.sellers-pagination a {
    padding: 9px 13px;
    border: 1px solid #cbd7d3;
    border-radius: 6px;
    background: #fff;
    color: #176b57;
    font-weight: 700;
    text-decoration: none;
}

.sellers-pagination a:hover {
    border-color: #176b57;
}

@media (max-width: 900px) {
    .seller-grid,
    .seller-note-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sellers-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
        gap: 14px;
        padding: 22px;
    }

    .seller-search-form {
        width: 100%;
    }

    .sellers-hero-copy h1 {
        font-size: 32px;
    }

    .seller-note-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .seller-note-search-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .sellers-page {
        padding: 28px 14px 52px;
    }

    .sellers-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        min-height: 0;
        padding: 16px;
        background-position: center;
    }

    .sellers-hero-copy h1 {
        font-size: 26px;
    }

    .sellers-hero-description {
        margin: 8px 0 12px;
        font-size: 14px;
    }

    .sellers-hero-art img {
        max-width: 260px;
    }

    .sellers-results-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .seller-sort-form {
        width: 100%;
    }

    .seller-note-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px;
    }

    .seller-note-search-field {
        grid-column: 1 / -1;
    }

    .seller-filter-submit,
    .seller-filter-clear {
        width: 100%;
    }

    .seller-grid,
    .seller-note-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .seller-card-link {
        padding: 17px;
    }

    .seller-profile-header {
        align-items: center;
        flex-direction: row;
        gap: 12px;
        padding: 14px;
    }

    .seller-profile-copy h1 {
        font-size: 22px;
    }

    .seller-avatar-large {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
        font-size: 21px;
    }

    .seller-note-copy h3 {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .sellers-site .site-header .container {
        display: flex;
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 8px 14px;
    }

    .sellers-site .site-header .logo {
        width: 100%;
        align-self: center;
    }

    .sellers-site .site-header .container > nav:first-of-type {
        display: flex;
        width: 100%;
        min-width: 0;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .sellers-site .site-header .container > nav:first-of-type a {
        flex: 0 0 auto;
        padding: 7px 10px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        white-space: nowrap;
    }

    .sellers-site .site-header .container > nav:first-of-type a.header-action-link {
        background: linear-gradient(135deg, #67b995 0%, #4f987f 52%, #3c4658 100%);
        color: #fff !important;
    }

    .sellers-site .site-header .nav-right {
        display: flex;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seller-card,
    .seller-card:hover,
    .seller-card-action,
    .seller-note-card,
    .seller-note-card:hover {
        scroll-behavior: auto;
        transition-duration: .01ms;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .seller-card,
    .seller-card:hover,
    .seller-note-card,
    .seller-note-card:hover,
    .sellers-load-more {
        scroll-behavior: auto;
        transition-duration: .01ms;
        transform: none;
    }
}
