.library-page main{min-width:0}
.library-page .page-hero{padding:42px 0 34px;gap:4vw}
.library-page .page-hero h1{font-size:clamp(36px,3.8vw,56px);margin:12px 0 16px}
.library-page .page-hero p{font-size:14px;line-height:1.7}
.library-page .hero-aside{max-width:330px}
.library-taxonomy{padding:43px 0 32px;border-bottom:1px solid #dce3dd}
.library-taxonomy__heading,.library-results__heading{display:flex;align-items:end;justify-content:space-between;gap:24px}
.library-taxonomy__heading h2,.library-results__heading h2{font-size:clamp(25px,2.5vw,34px);line-height:1.3;letter-spacing:-.04em;margin:8px 0 0}
.library-reset{background:transparent;border:0;border-bottom:1px solid #73917c;color:#1d4c32;padding:9px 0;font-size:13px;white-space:nowrap}
.library-reset[hidden]{display:none}
.library-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:27px}
.library-category{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;min-width:0;min-height:82px;padding:14px 17px;border:1px solid #d5dfd7;border-radius:6px;background:#f8faf8;color:#1c2d23;text-align:left;transition:background .18s,border-color .18s}
.library-category:hover{border-color:#8eaa97;background:#f0f5f0}
.library-category.is-active{background:#1e3b2c;border-color:#1e3b2c;color:#fff}
.library-category>span:first-child{font-size:16px;font-weight:680;line-height:1.35;overflow-wrap:anywhere}
.library-category__count{display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px;margin-top:11px;font-size:11px;opacity:.72}
.library-category__count i{font-size:14px;font-style:normal}
.library-category:focus-visible,.library-chip-grid button:focus-visible,.library-reset:focus-visible{outline:2px solid #9a482d;outline-offset:2px}
.library-subcategories{margin-top:23px;padding:18px 20px 20px;border:1px solid #dce5dd;border-radius:6px;background:#f7faf7}
.library-subcategories[hidden]{display:none}
.library-subcategories__heading{display:flex;align-items:baseline;gap:12px;margin-bottom:13px;color:#172c20}
.library-subcategories__heading strong{font-size:14px}
.library-subcategories__heading span{font-size:12px;color:#778a7d}
.library-chip-grid{display:flex;flex-wrap:wrap;gap:8px}
.library-chip-grid button{min-height:43px;padding:8px 14px;border:1px solid #d1ded3;border-radius:4px;background:#fff;color:#2f4537;font-size:13px;line-height:1.35;text-align:left;white-space:normal}
.library-chip-grid button:hover{border-color:#8dad96;background:#f1f7f1}
.library-chip-grid button.is-active{background:#1e3b2c;border-color:#1e3b2c;color:#fff}
.library-chip-grid button span{margin-left:4px;font-size:11px;opacity:.68;font-variant-numeric:tabular-nums}
.library-results{min-width:0;padding-top:39px}
.library-results__heading{margin-bottom:22px}
.library-results__scope{margin:0;color:#728477;font-size:12px;line-height:1.5;text-align:right}
.library-page .search-box{max-width:100%;height:52px}
.library-page .search-box button{min-width:90px}
.library-page .search-count{margin:17px 0 20px}
.library-page .search-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.library-page .search-empty{grid-column:1/-1;padding:32px;border-radius:6px;border:1px solid #d9e5db;background:#f7faf7;color:#21392b}
.library-page .search-empty strong{display:block;font-size:18px}
.library-page .search-empty p{color:#6f8274;line-height:1.7;margin:9px 0 20px}
.library-page .search-empty div{display:flex;flex-wrap:wrap;gap:10px}
.library-page .search-empty button,.library-page .search-empty a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 15px;border:1px solid #1e3b2c;border-radius:4px;background:#1e3b2c;color:#fff;font-size:13px;font-weight:650}
.library-page .search-empty a{background:#fff;color:#1e3b2c}
@media(max-width:1030px){
  .library-page .search-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .library-page .page-hero{padding:28px 0 25px;gap:8px}
  .library-page .page-hero h1{font-size:clamp(31px,7.8vw,39px);margin:10px 0 13px}
  .library-page .page-hero p{font-size:13px;line-height:1.65}
  .library-page .hero-aside{font-size:11px;line-height:1.6}
  .library-taxonomy{padding:31px 0 27px}
  .library-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:19px}
  .library-category{min-height:74px;padding:12px 13px}
  .library-category>span:first-child{font-size:14px}
  .library-subcategories{margin-top:17px;padding:15px}
  .library-page .search-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .library-page .gift-card__footer button,.library-page .gift-card__auto{min-height:44px}
}
@media(max-width:480px){
  .library-taxonomy__heading,.library-results__heading{align-items:start;flex-direction:column;gap:9px}
  .library-results__scope{text-align:left}
  .library-category-grid{gap:7px}
  .library-category{min-height:71px}
  .library-category>span:first-child{font-size:13px}
  .library-subcategories__heading{display:block}
  .library-subcategories__heading span{display:block;margin-top:3px}
  .library-chip-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .library-chip-grid button{width:100%;padding:8px 10px;font-size:12px}
  .library-page .search-grid{gap:12px}
  .library-page .search-box input{font-size:12px}
  .library-page .search-box button{min-width:70px;padding:0 12px}
  .library-page .search-empty{padding:24px 18px}
}
@media(prefers-reduced-motion:reduce){.library-category{transition:none}}
