@import url('../shell/site.css');
@import url('./transition.css');
@import url('./illustrated-cards.css');
@import url('./category-shell.css?v=20261121-category-r4');
body{background:#f4f7f8;color:#17202b;}
.collection-hero{position:relative;isolation:isolate;overflow:hidden;color:#f4f7f8;background:#08283f;}
.hero-art,.hero-wash{position:absolute;inset:0;z-index:-1;pointer-events:none;}
.hero-art{inset:-5%;transform:translateY(var(--hero-drift,0));}
.hero-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:60% 50%;}
.hero-wash{background:linear-gradient(90deg,#041a2ed9 0%,#041a2e90 36%,#041a2e15 69%,transparent);}
.collection .eyebrow{color:#18776a;}.collection-hero .eyebrow{color:#66ded0;}
.collection-scene{position:relative;width:100%;height:340px;transform:translateY(var(--parallax,0));pointer-events:none;}
.collection-scene svg{display:block;width:100%;height:100%;overflow:visible;}
.collection-scene.scene-cube{max-width:280px;justify-self:center;}
.collection-scene.scene-guide-books{height:390px;}
.guide-volumes{position:relative;width:100%;height:100%;}
.guide-book-plane{position:absolute;left:var(--x);top:var(--y);width:var(--w);z-index:var(--z);transform:translateY(var(--volume-parallax,0)) rotate(var(--tilt));}
.guide-book{width:100%;aspect-ratio:var(--book-ratio);animation:guide-drift 8.5s ease-in-out var(--delay) infinite;}
.guide-book svg{filter:drop-shadow(0 3px 2px #000d1b80) drop-shadow(var(--shadow-x) var(--shadow-y) var(--shadow-blur) rgba(0,12,24,var(--shadow-alpha)));width:100%;height:100%;}
@keyframes guide-drift{0%,100%{transform:translateY(4px) rotate(-.4deg);}50%{transform:translateY(-4px) rotate(.4deg);}}
[data-guide-books][data-paused=true] .guide-book,html[data-portal-state=arriving] .guide-book{animation-play-state:paused;}
.resource-art.is-book{height:190px;background:linear-gradient(130deg,#dceae9,#edf4f1);}
.resource-art.is-book svg{height:154px;width:132px;filter:drop-shadow(0 8px 8px #15374726);}
.resource-section{padding-block:35px 80px;scroll-margin-top:105px;}
.resource-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;}
.resource-card{overflow:hidden;border:1px solid #d6e2e4;border-radius:5px 24px 5px 24px;background:#fff;}
.resource-art{height:140px;background:#e5f0ed;color:#207e79;display:flex;align-items:center;justify-content:center;}.resource-card:not(.illustrated-card):nth-child(2n) .resource-art{background:#e6eef3;color:#2b7189;}.resource-art svg{width:80%;height:110px;}
.resource-copy{padding:27px 28px 22px;}.resource-meta{font-size:10px;color:#477478;letter-spacing:.06em;text-transform:uppercase;margin:0 0 12px;}.resource-meta span{letter-spacing:0;text-transform:none;}
.resource-copy h3{font-size:clamp(25px,2.5vw,34px);letter-spacing:-.04em;line-height:1.2;margin:0 0 13px;}.resource-copy h3 a:hover{color:#006d62;}
.resource-copy>p:not(.resource-meta){font-size:15px;line-height:1.75;color:#4c646e;min-height:53px;margin:0 0 15px;}
.resource-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 24px;}.resource-actions a{display:inline-flex;align-items:center;gap:26px;min-height:44px;font-size:13px;font-weight:650;color:#006b60;}.resource-actions a:hover{text-decoration:underline;text-underline-offset:4px;}
.resource-grid[data-count="1"]{grid-template-columns:1fr;}.resource-grid[data-count="1"] .resource-card:not(.illustrated-card){display:grid;grid-template-columns:.8fr 1.2fr;}.resource-grid[data-count="1"] .resource-card:not(.illustrated-card) .resource-art{height:100%;min-height:230px;}.resource-grid[data-count="1"] .resource-card:not(.illustrated-card) .resource-art svg{height:150px;}
@media(max-width:850px){.collection-scene{height:280px;}}
@media(max-width:600px){.collection-scene{height:190px;transform:none;}.collection-scene.scene-cube{height:175px;max-width:210px;align-self:center;}.scene-screen{height:230px;}.hero-art img{object-position:67% 50%;}.hero-wash{background:linear-gradient(#041a2ec9 0%,#041a2e99 48%,#041a2e10 100%);}.resource-section{padding-block:20px 45px;}.resource-grid{grid-template-columns:1fr;gap:22px;}.resource-copy{padding:24px;}.resource-copy h3{font-size:28px;}.resource-copy>p:not(.resource-meta){min-height:0;}.resource-grid[data-count="1"] .resource-card{display:block;}.resource-grid[data-count="1"] .resource-art{min-height:0;height:140px;}.resource-grid[data-count="1"] .resource-art svg{height:110px;}}
@media(prefers-reduced-motion:reduce){.collection-scene,.hero-art{transform:none;}}

@media(max-width:600px){.collection-scene.scene-guide-books{height:260px;}.resource-art.is-book{height:175px;}.resource-art.is-book svg{height:145px;}}
@media(prefers-reduced-motion:reduce){.guide-book{animation:none;transform:none;}.guide-book-plane{transform:rotate(var(--tilt));}}

.collection-props{position:relative;width:100%;height:100%;}
.collection-prop-plane{position:absolute;width:51%;left:0;top:5%;z-index:var(--z);transform:translateY(var(--volume-parallax,0)) rotate(var(--tilt));}
.collection-prop-plane:nth-child(2){left:46%;top:20%;}
.collection-props.is-single .collection-prop-plane{width:58%;left:23%;top:0;}
.collection-prop{width:100%;height:310px;animation:guide-drift 8.5s ease-in-out var(--delay) infinite;}
.collection-prop svg{filter:drop-shadow(0 3px 2px #000d1b80) drop-shadow(12px 24px 17px #000c1875);}
[data-floating-props][data-paused=true] .collection-prop,html[data-portal-state=arriving] .collection-prop{animation-play-state:paused;}
.scene-collection-props{height:360px;}
@media(max-width:850px) and (min-width:601px){.collection-props.is-single .collection-prop-plane{width:75%;left:12%;}.collection-prop{height:270px;}}
@media(max-width:600px){.scene-collection-props{height:260px;}.collection-prop{height:220px;}.collection-props.is-single .collection-prop-plane{width:55%;left:25%;}.collection-prop-plane:nth-child(2){top:10%;}}
@media(prefers-reduced-motion:reduce){.collection-prop{animation:none;transform:none;}.collection-prop-plane{transform:rotate(var(--tilt));}}

/* Site catalogue density: keep the shared card design and every actual link. */
@media(max-width:600px){
 .collection-scene.scene-guide-books{height:220px;}
 .guide-volumes{width:92%;margin-inline:auto;}
 .scene-collection-props{height:200px;}
 .collection-prop{height:180px;}
 .illustrated-library .resource-section{padding-block:22px 32px;}
 .resource-grid{gap:18px;}
 .illustrated-card .card-link{min-height:300px;padding:22px;gap:10px 14px;grid-template-columns:minmax(0,1fr) 92px;}
 .illustrated-card h3{font-size:28px;}
 .illustrated-card .resource-art.is-prop,.illustrated-card .resource-art.is-prop :is(svg,img){width:92px;height:130px;}
 .illustrated-card.is-featured .card-link{min-height:320px;padding:22px;gap:10px 14px;grid-template-columns:minmax(0,1fr) 92px;}
 .illustrated-card.is-featured h3{font-size:30px;}
 .illustrated-card.is-featured .resource-art.is-prop,.illustrated-card.is-featured .resource-art.is-prop :is(svg,img){width:92px;height:130px;}
}
