.resource-card { display: flex; flex-direction: column; }
.resource-card .card-content { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.resource-card .resource-meta { line-height: 1.55; margin-bottom: 8px; }
.resource-card .buyer-card-subjects { margin: 8px 0; color: var(--ink); font-size: .875rem; line-height: 1.5; }
.buyer-card-file-details,.buyer-card-standards { font-size: .82rem; line-height: 1.55; color: var(--muted); margin: 4px 0; overflow-wrap: anywhere; }
.resource-card .card-bottom { margin-top: auto; padding-top: 12px; }
.buyer-card-rating { display: inline-flex; gap: 5px; align-items: center; color: var(--ink); font-size: .875rem; }
.buyer-card-rating>span { color: #a46d27; }
.resource-card .buyer-card-description { display: none; }
.resource-list-view .resource-card { display: grid; }
.resource-list-view .buyer-card-description { display: block; margin: 12px 0; line-height: 1.65; font-size: .95rem; }
.resource-list-view .resource-card h3 { margin-bottom: 7px; }
.resource-list-view .card-bottom { flex-direction: row; align-items: center; }
.buyer-facet,.buyer-more-filters { margin: 20px 0; border-top: 1px solid var(--line); padding-top: 16px; }
.buyer-facet>summary,.buyer-more-filters>summary { font-weight: 700; cursor: pointer; line-height: 1.5; }
.buyer-facet-options { max-height: 260px; overflow-y: auto; margin-top: 12px; padding: 3px; }
.buyer-facet-options label { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; line-height: 1.5; padding: 7px 0; }
.buyer-facet-options input { margin-top: 4px; flex-shrink: 0; }
.buyer-filter-help { font-size: .85rem; line-height: 1.6; margin-top: 12px; }
.buyer-more-filters .filter-group { margin-top: 18px; }
.buyer-more-filters .filter-group input { width: 100%; border: 1px solid #ccd5c8; border-radius: 6px; padding: 10px; min-width: 0; }
.buyer-product-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 48px; }
.buyer-product-gallery { width: 100%; max-width: 540px; }
.buyer-product-gallery .buyer-gallery-main { padding: 0; background: #f6f7f2; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.buyer-product-gallery .buyer-gallery-main .resource-cover { width: 100%; max-width: 100%; margin: 0; }
.buyer-gallery-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; font-size: .875rem; color: var(--muted); }
.buyer-gallery-tools .text-button { font-size: .875rem; padding: 0; }
.buyer-gallery-thumbnails { display: flex; gap: 10px; margin: 14px 0 20px; }
.buyer-gallery-thumbnails button { width: 80px; height: 80px; border: 2px solid transparent; padding: 3px; background: #fff; border-radius: 7px; }
.buyer-gallery-thumbnails button[aria-pressed=true] { border-color: var(--green); }
.buyer-gallery-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.buyer-preview-button { width: 100%; text-align: center; margin-top: 18px; }
.buyer-product-info h1 { font-size: clamp(1.75rem,2.5vw,2.4rem); line-height: 1.3; margin-bottom: 14px; }
.buyer-product-info .creator-byline { flex-wrap: wrap; margin: 12px 0; padding-bottom: 12px; }
.buyer-product-info .product-seller strong { display: inline; }
.buyer-product-info .creator-follow { min-height: 40px; padding: 7px 12px; font-size: .875rem; }
.buyer-purchase-panel>.button.primary { width: 100%; }
.buyer-purchase-panel .resource-purchase-actions { flex-direction: column; align-items: stretch; }
.buyer-product-info .buyer-purchase-panel { background: transparent; padding: 0 0 24px; margin: 22px 0 24px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.buyer-purchase-panel .product-price { margin-bottom: 16px; }
.buyer-purchase-panel .text-button { margin-top: 12px; }
.buyer-highlights h2 { font-size: 1.3rem; margin: 0 0 18px; }
.buyer-highlight-list { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.buyer-highlight-list>div { display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 12px; font-size: .95rem; line-height: 1.65; }
.buyer-highlight-list dt { font-weight: 700; }
.buyer-highlight-list dd { margin: 0; overflow-wrap: anywhere; }
.buyer-highlight-list a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.buyer-highlight-list .buyer-linked-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.buyer-linked-tags a { background: var(--sage); border-radius: 5px; padding: 2px 8px; text-decoration: none; }
.buyer-sample-label { font-size: .8rem; color: var(--muted); }
.buyer-product-navigation { position: sticky; top: 0; z-index: 12; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 24px; padding: 16px 0; margin-top: 40px; border-block: 1px solid var(--line); background: #fffffff5; backdrop-filter: blur(8px); }
.buyer-product-nav-title { display: flex; gap: 20px; min-width: 0; align-items: center; }
.buyer-product-nav-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buyer-product-nav-title>span { white-space: nowrap; font-weight: 700; }
.buyer-product-section-links { display: flex; gap: 24px; flex-wrap: wrap; font-size: .9rem; }
.buyer-product-section-links a { text-decoration: underline; text-underline-offset: 5px; }
.buyer-sticky-actions { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.buyer-sticky-actions p,.buyer-sticky-actions .button.secondary { display: none; }
.buyer-sticky-actions .button { margin: 0; min-height: 42px; padding: 9px 16px; font-size: .9rem; }
.buyer-product-description,.buyer-standards-section,.buyer-product-section .resource-community-section { scroll-margin-top: 135px; }
.buyer-product-description { margin-top: 36px; max-width: 900px; }
.buyer-product-description h2,.buyer-standards-section h2 { font-size: 1.6rem; }
.buyer-standard { border-bottom: 1px solid var(--line); padding: 16px 0; }
.buyer-standard summary { cursor: pointer; color: var(--green); font-weight: 700; }
.buyer-standard p { margin: 12px 0; }
.buyer-standards-section { margin-top: 36px; max-width: 900px; }
.buyer-image-dialog { padding: 44px 20px 20px; border: 0; border-radius: 12px; width: min(900px,92vw); max-width: 92vw; max-height: 92vh; }
.buyer-image-dialog img { display: block; width: 100%; max-width: 100%; max-height: 75vh; object-fit: contain; }
.buyer-image-dialog::backdrop,.buyer-preview-dialog::backdrop { background: #14291fd1; }
.buyer-preview-dialog { padding: 0; width: min(1000px,94vw); max-height: 92vh; border: 0; border-radius: 12px; overflow-y: auto; }
.buyer-preview-dialog .dialog-heading { gap: 24px; }
.buyer-preview-dialog .dialog-heading h2 { font-size: 1.2rem; line-height: 1.5; }
.buyer-preview-toolbar { display: flex; flex-wrap: wrap; gap: 24px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.buyer-preview-pagination { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 16px; }
.buyer-preview-pagination .button { min-height: 40px; padding: 8px 12px; }
.buyer-preview-status { padding: 0 24px; text-align: center; }
.buyer-preview-image { padding: 0 20px 20px; background: #f5f6f1; }
.buyer-preview-image img { display: block; width: 100%; height: auto; }
.buyer-sample-preview { padding: 24px; }
@media(max-width:900px) { .buyer-product-layout { gap: 28px; } .buyer-highlight-list>div { grid-template-columns: 105px minmax(0,1fr); } .buyer-product-nav-title strong { max-width: 400px; } }
@media(max-width:760px) {
    .buyer-product-layout { display: flex; flex-direction: column; gap: 28px; }
    .buyer-product-gallery { max-width: 100%; }
    .buyer-product-gallery .buyer-gallery-main { max-width: 450px; margin-inline: auto; }
    .buyer-highlight-list>div { grid-template-columns: 115px minmax(0,1fr); }
    .buyer-product-navigation { gap: 10px; padding: 12px 0; }
    .buyer-product-nav-title { display: none; }
    .buyer-product-section-links { flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding: 6px 0; font-size: .82rem; }
    .buyer-product-section-links a { white-space: nowrap; }
    .buyer-sticky-actions { grid-row: 1; }
    .buyer-sticky-actions::before { content: attr(data-price); display: block; text-align: right; font-size: .85rem; font-weight: 700; margin-bottom: 4px; }
    .buyer-sticky-actions .button { font-size: .8rem; padding: 8px; max-width: 135px; }
    .buyer-product-description,.buyer-standards-section,.buyer-product-section .resource-community-section { scroll-margin-top: 100px; }
    .buyer-preview-pagination { gap: 10px; font-size: .875rem; }
    .buyer-preview-dialog .dialog-heading { padding: 16px; }
    .resource-list-view .card-bottom { gap: 12px; }
}
.library-book.library-cover{width:96px;height:96px;background:#fff;border:1px solid var(--line);overflow:hidden}
.library-cover img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:760px){.library-book.library-cover{width:72px;height:72px}}
.environment-notice{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px 14px;padding:10px 20px;background:#fff0cf;color:#573d08;text-align:center;font-size:.875rem;line-height:1.5;border-bottom:1px solid #e2c789}
.environment-notice strong{letter-spacing:.06em;white-space:nowrap}
@media(max-width:600px){.environment-notice{display:block;padding:7px 12px;font-size:.75rem}.environment-notice strong{margin-right:8px}}
.resource-description.rich-description { white-space: normal; }

.registration-terms{margin-top:20px}.registration-terms .remember{align-items:flex-start;line-height:1.5}.registration-terms input[type=checkbox]{margin-top:4px;flex-shrink:0}
