/* Collection families share controls and product details, with a distinct accent per shelf. */
.shelf-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 24px}
[data-theme=home],.collection[data-section=home]{--shelf:#235b7a;--shelf-wash:#e8f1f1;--shelf-border:#b9d1d6}
[data-theme=tools],.collection[data-section=tools]{--shelf:#7a4a10;--shelf-wash:#f4ebdc;--shelf-border:#d8c3a2}
[data-theme=tech],.collection[data-section=tech]{--shelf:#5142a1;--shelf-wash:#eeecfb;--shelf-border:#c6c1e9}
[data-theme=books],.collection[data-section=books]{--shelf:#805043;--shelf-wash:#f5eee4;--shelf-border:#dfc9b7}
.shelf-link{position:relative;display:grid;grid-template-columns:1fr auto;align-content:start;gap:6px;padding:21px 18px 18px;min-height:154px;background:var(--shelf-wash);border:1px solid var(--shelf-border);border-radius:18px;text-decoration:none;color:var(--shelf);isolation:isolate}
.shelf-icon{display:block;grid-column:1/-1;width:34px;height:34px;margin-bottom:9px}.shelf-icon svg{width:100%;height:100%}
.shelf-name{font-size:16px;line-height:1.35;font-weight:800;letter-spacing:-.025em;grid-column:1/-1}.shelf-status{font-size:13px;line-height:1.5;color:var(--shelf)}.shelf-arrow{font-size:19px;line-height:1;align-self:center;justify-self:end}
.shelf-link[aria-current=true]{outline:2px solid var(--shelf);outline-offset:3px}.shelf-link[data-theme=tools]{border-radius:8px}.shelf-link[data-theme=tech]{background-image:radial-gradient(#5142a115 1px,transparent 1px);background-size:10px 10px}.shelf-link[data-theme=books]{border-radius:8px 19px 19px 8px;border-left:5px solid var(--shelf-border)}
.shelf-overview{display:flex;gap:14px;align-items:center;margin:0 0 20px;line-height:1.5}.shelf-overview button{padding:10px 0;min-height:44px;font-size:14px;font-weight:700;background:transparent;text-decoration:underline;text-underline-offset:5px;color:#35557c}.shelf-overview button[aria-pressed=true]{text-decoration:none;color:#101d35}.shelf-overview>span{font-size:13px;color:#596b81;border-left:1px solid #c5d0de;padding-left:14px;scroll-margin-top:24px}
.shelf-intro{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:1fr 130px;gap:24px;align-items:center;padding:32px;margin:0 0 24px;background:var(--shelf-wash);border:1px solid var(--shelf-border);border-radius:20px;color:var(--shelf)}
.shelf-intro .eyebrow{color:var(--shelf);font-size:11px;margin-bottom:12px}.shelf-intro h3{font-size:clamp(28px,3vw,40px);line-height:1.1;letter-spacing:-.04em;margin:0 0 12px;color:#18283a}.shelf-intro p:last-child{font-size:16px;line-height:1.7;max-width:640px;margin:0;color:#435364}.shelf-intro svg{width:120px;height:120px;opacity:.65;transform:rotate(-7deg)}
.collection[data-section=tools] .shelf-intro{border-radius:8px;border-left:6px solid var(--shelf);background-image:repeating-linear-gradient(90deg,transparent,transparent 39px,#7a4a1006 40px)}
.collection[data-section=tools] .shelf-intro h3{font-weight:800;letter-spacing:-.035em}
.collection[data-section=tech] .shelf-intro{background-image:radial-gradient(ellipse at 100% 0,#c7c4ff80,transparent 70%)}
.collection[data-section=tech] .shelf-intro svg{transform:none}.collection[data-section=books] .shelf-intro{border-radius:6px 22px 22px 6px;border-left:7px solid #c9ad8e;box-shadow:inset 4px 0 #fff8;background-image:repeating-linear-gradient(0deg,transparent,transparent 27px,#80504306 28px)}
.collection[data-section=books] .shelf-intro h3,.product-card[data-shelf=books] .product-story-title{font-family:Georgia,'Times New Roman',serif;font-weight:500;letter-spacing:-.025em}
.collection:not([data-section=all]) .categories button[aria-pressed=true]{background:var(--shelf);border-color:var(--shelf)}
.collection:not([data-section=all]) .empty-state{border-color:var(--shelf-border);background:linear-gradient(140deg,#fff,var(--shelf-wash));border-style:solid}.empty-state p{max-width:550px;margin:0 auto 12px;font-size:16px}.empty-state .primary{font-size:14px}
.product-card[data-shelf=tools]{border-radius:9px}.product-card[data-shelf=tech]{border-color:#d4cfee}.product-card[data-shelf=books]{background:#fffdf8;border-color:#e1d4c3}.product-card[data-shelf=books] .product-image img{object-fit:contain;background:#eee5d6}
@media(hover:hover) and (pointer:fine){html[data-motion=on] .shelf-link{transition:transform .25s var(--ease),box-shadow .25s var(--ease)}html[data-motion=on] .shelf-link:hover{transform:translateY(-3px);box-shadow:0 8px 18px #11233f0c}}
@media(max-width:900px){.shelf-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.shelf-link{min-height:142px}}
@media(max-width:700px){.shelf-nav{gap:12px;margin-bottom:20px}.shelf-link{padding:17px 14px 14px;min-height:154px}.shelf-name{font-size:16px}.shelf-status{font-size:13px}.shelf-icon{width:32px;height:32px;margin-bottom:6px}.shelf-overview{gap:12px;align-items:center}.shelf-overview button{flex:none;font-size:13px}.shelf-overview>span{font-size:13px;padding-left:12px}.shelf-intro{padding:24px 21px;display:block}.shelf-intro>div:first-child{position:relative;z-index:1}.shelf-intro h3{font-size:32px;max-width:250px}.shelf-intro p:last-child{font-size:16px}.shelf-intro svg{position:absolute;right:12px;top:14px;width:80px;height:80px;opacity:.12}.shelf-intro .eyebrow{max-width:230px;font-size:10px}.categories button{font-size:13px}.result-row{font-size:13px}.result-row button{font-size:13px}.empty-state h3{font-size:25px;line-height:1.25}.collection{scroll-margin-top:14px}}
@media(max-width:360px){.shelf-name{font-size:15px}.shelf-link{padding:15px 11px;min-height:150px}.shelf-overview{gap:9px}.shelf-overview>span{font-size:12px;padding-left:9px}}

.collection[data-empty=true] .browse-tools,.collection[data-empty=true] .filter-row,.collection[data-empty=true] .result-row{display:none}.shelf-topics{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.shelf-topics span{font-size:13px;line-height:1.5;border:1px solid var(--shelf-border);padding:6px 10px;border-radius:7px;background:#ffffff70}.shelf-intro #shelf-description{font-size:16px;line-height:1.7;color:#435364;margin:0;max-width:640px}
