.color-library .section-shell,
.color-library .product-breadcrumb-shell { width: var(--sanfu-shell); }
.color-library .eyebrow { font-size: var(--sanfu-type-eyebrow); font-weight: var(--sanfu-weight-semibold); }
.color-library__hero { padding-block: var(--sanfu-section-small) var(--sanfu-space-6); }
.color-library__hero h1 { max-width: 14ch; margin: 0 0 var(--sanfu-space-3); font-size: var(--sanfu-type-h1); font-weight: var(--sanfu-weight-medium); letter-spacing: -.02em; line-height: var(--sanfu-leading-h1); }
.color-library__hero > p:last-child { max-width: var(--sanfu-container-reading); margin-bottom: 0; font-size: var(--sanfu-type-body-large); line-height: var(--sanfu-leading-body); }
.color-library__filters { position: sticky; z-index: 20; top: 0; padding-block: .8rem; border-top: var(--product-rule); border-bottom: var(--product-rule); background: color-mix(in srgb, var(--sanfu-warm-white) 96%, transparent); backdrop-filter: blur(12px); }
.color-filter { display: flex; flex-wrap: wrap; gap: var(--sanfu-space-1); }
.color-filter__button { min-height: var(--sanfu-touch-target); display: inline-flex; flex: 0 0 auto; align-items: center; gap: var(--sanfu-space-2); padding: 0 var(--sanfu-space-3); border: 1px solid color-mix(in srgb, var(--sanfu-graphite) 28%, transparent); border-radius: var(--sanfu-radius-control); background: transparent; color: inherit; font: inherit; font-size: var(--sanfu-type-small); font-weight: var(--sanfu-weight-medium); cursor: pointer; }
.color-filter__button span:last-child { opacity: .62; font-size: var(--sanfu-type-meta); }
.color-filter__button.is-active { border-color: var(--sanfu-deep-teal); background: var(--sanfu-deep-teal); color: var(--sanfu-white); }
.color-filter__button:focus-visible { outline: 3px solid color-mix(in srgb, var(--sanfu-deep-teal) 24%, transparent); outline-offset: 2px; }
.color-library__groups { padding-block: var(--sanfu-space-8); }
.color-library__group { padding-block: var(--sanfu-space-8); border-top: var(--product-rule); }
.color-library__group:first-child { padding-top: 0; border-top: 0; }
.color-library__group-header { display: flex; justify-content: space-between; gap: var(--sanfu-space-5); align-items: end; margin-bottom: var(--sanfu-space-5); }
.color-library__group-header h2 { margin-bottom: var(--sanfu-space-1); font-size: var(--sanfu-type-h2); font-weight: var(--sanfu-weight-semibold); letter-spacing: -.012em; line-height: var(--sanfu-leading-h2); }
.color-library__group-header p:last-child { margin-bottom: 0; }
.color-library__group-header .text-link { min-height: var(--sanfu-touch-target); display: inline-flex; align-items: center; font-size: var(--sanfu-type-small); font-weight: var(--sanfu-weight-medium); }
.color-library__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sanfu-space-5) var(--sanfu-space-3); }
.color-library .color-tile__meta { gap: .2rem; padding-top: var(--sanfu-space-2); font-size: var(--sanfu-type-meta); }
.color-library .color-tile__meta strong { font-size: var(--sanfu-type-nav); font-weight: var(--sanfu-weight-medium); line-height: 1.4; }
.color-tile__action { width: max-content; margin-top: .15rem; padding-bottom: .1rem; border-bottom: 1px solid transparent; font-size: var(--sanfu-type-eyebrow); font-weight: var(--sanfu-weight-medium); letter-spacing: .05em; opacity: .64; text-transform: uppercase; transition: border-color 180ms ease, opacity 180ms ease; }
.color-tile__link:hover .color-tile__action,
.color-tile__link:focus-visible .color-tile__action { border-color: currentColor; opacity: 1; }
.color-library__empty { padding-block: var(--sanfu-space-8); border-top: var(--product-rule); }

@media (max-width: 1040px) {
  .color-library__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .color-library__hero { padding-block: var(--sanfu-section-small) var(--sanfu-space-5); }
  .color-library__filters { width: 100%; padding-inline: .75rem; }
  .color-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .color-library__group-header { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .color-library__groups { padding-block: var(--sanfu-section-default); }
  .color-library__group { padding-block: var(--sanfu-section-default); }
  .color-library__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sanfu-space-5) var(--sanfu-space-2); }
  .color-library .color-tile__meta strong { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  .color-tile__action { transition: none; }
}
