/* The setup library uses self-contained cards, with space instead of rules. */
.guides-library{padding-top:60px;padding-bottom:100px;overflow-wrap:anywhere}
.library-page.guides-library .guides-intro{max-width:850px;margin:0 0 32px}
.guides-library .guides-intro h1{max-width:18ch;font-size:clamp(2.5rem,5vw,3.65rem);line-height:1.08}
.guides-intro>p{max-width:62ch;line-height:1.7}
.guides-library .library-section{scroll-margin-top:28px}
.guides-library .library-section+.library-section{margin-top:76px}
.library-section-heading{margin-bottom:28px}
.library-section-heading h2{font-size:clamp(1.7rem,3vw,2.25rem);line-height:1.2;max-width:32ch}
.library-section-heading p{color:var(--muted);margin-top:10px;font-size:16px}
.library-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.library-card{position:relative;min-width:0;display:flex;flex-direction:column;background:var(--field);border-radius:16px;box-shadow:0 3px 10px #24242c06,0 10px 30px #24242c06;overflow-wrap:anywhere}
.library-card-media{aspect-ratio:1.6;background:var(--soft);border-radius:16px 16px 0 0;overflow:hidden;padding:12px}
.library-card-media img{width:100%;height:100%;object-fit:contain;border-radius:8px}
.library-card-body{padding:25px;display:flex;flex-direction:column;flex:1;min-width:0}
.library-card h3{font-size:25px;line-height:1.25;letter-spacing:-.025em}
.library-card h3 a{text-decoration:none}
.library-card h3 a::after{content:"";position:absolute;inset:0;border-radius:16px}
.library-card h3 a:focus-visible{outline:0}
.library-card:has(a:focus-visible){outline:3px solid var(--focus);outline-offset:5px}
.library-card:hover{box-shadow:0 4px 14px #24242c0b,0 12px 32px #24242c12}
.library-card:hover h3{text-decoration:underline;text-underline-offset:5px}
.library-card-body>p{font-size:15px;line-height:1.75;color:var(--muted);margin-top:15px}
.library-card-footer{display:flex;flex-direction:column;align-items:flex-start;gap:16px;margin-top:auto;padding-top:25px;font-size:13px}
.library-card-action{font-weight:650;font-size:14px}
.library-card-footer .card-categories{flex:0 1 auto;color:var(--muted);font-size:12px;gap:6px}
.library-card-footer .card-category{padding:3px 9px;background:var(--soft);border-radius:5px}
.library-card-footer .card-category+.card-category::before{content:none}
.library-collections{display:grid;gap:20px}
.library-collection{min-width:0;background:var(--soft);border-radius:18px;padding:26px 28px}
.library-collection>summary{display:flex;align-items:center;gap:22px;list-style:none;min-height:72px;border-radius:8px}
.library-collection>summary::-webkit-details-marker{display:none}
.collection-symbol{display:flex;align-items:center;justify-content:center;width:64px;height:64px;flex-shrink:0;background:var(--paper);border-radius:12px;color:var(--ink)}
.collection-symbol svg{width:32px;height:32px}
.collection-summary{display:flex;flex-direction:column;gap:7px;min-width:0}
.collection-title{font-family:var(--font-heading),sans-serif;font-size:29px;font-weight:650;line-height:1.2;letter-spacing:-.025em}
.collection-description{font-size:15px;color:var(--muted);line-height:1.6}
.collection-toggle{width:42px;height:42px;margin-left:auto;flex-shrink:0;border-radius:50%;background:var(--paper);position:relative}
.collection-toggle::before,.collection-toggle::after{content:"";position:absolute;background:currentColor;top:20px;left:13px;width:16px;height:2px}
.collection-toggle::after{transform:rotate(90deg)}
.library-collection[open] .collection-toggle::after{display:none}
.collection-content{padding-top:30px}
.product-guide-grid{gap:20px}
.library-product-card .library-card-media{aspect-ratio:2.1;padding:18px;background:var(--field)}
.library-product-card h3{font-size:23px}
.library-product-card .library-card-body{padding:22px}
.collection-browse{display:inline-flex;align-items:center;min-height:44px;margin-top:24px;font-size:14px;font-weight:550}
.guide-search{max-width:560px;margin-bottom:28px}
.guide-search label{display:block;font-size:15px;font-weight:550;margin-bottom:9px}
.guide-search-input{position:relative}
.guide-search-input>svg{position:absolute;width:20px;height:20px;left:14px;top:14px;color:var(--muted)}
.guide-search-status{font-size:13px;color:var(--muted);margin-top:10px;min-height:21px}
.guide-search-empty{font-size:16px;line-height:1.7}
.guide-search-reset{display:block;margin-top:12px}
:root[data-theme=dark] .library-card{box-shadow:none}
:root[data-theme=dark] .library-card:hover:not(:has(a:focus-visible)){outline:1px solid var(--muted);outline-offset:2px}
@media(max-width:1000px){.library-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.guides-library{padding-top:34px;padding-bottom:60px}.guides-library .guides-intro{margin-bottom:28px}.guides-intro h1{font-size:40px}.guides-library .library-section+.library-section{margin-top:50px}.library-section-heading{margin-bottom:22px}.library-section-heading h2{font-size:28px}.library-section-heading p{font-size:15px}.library-card-grid{grid-template-columns:1fr;gap:22px}.library-card-body{padding:22px}.library-card h3{font-size:25px}.library-collection{padding:20px 18px}.library-collection>summary{gap:13px;align-items:flex-start}.collection-symbol{width:44px;height:44px;border-radius:9px}.collection-symbol svg{width:26px;height:26px}.collection-title{font-size:25px}.collection-description{font-size:14px}.collection-toggle{width:28px;height:28px;margin-top:6px}.collection-toggle::before,.collection-toggle::after{top:13px;left:7px;width:14px}.collection-content{padding-top:25px}.product-guide-grid{gap:16px}.library-product-card .library-card-body{padding:20px}.library-product-card h3{font-size:23px}.guide-search input{font-size:16px}.guide-search-input>svg{top:14px}}
@media(forced-colors:active){.library-card,.library-collection,.collection-toggle{border:1px solid CanvasText}.library-card:has(a:focus-visible){outline-color:Highlight}}
@media(max-width:650px){.library-page.guides-library .guides-intro{margin-bottom:28px}.guides-library .guides-intro h1{font-size:clamp(2.35rem,10vw,2.5rem)}}
