/* Shared editorial rhythm; scoped to the library and research market only. */
.v5.library-lounge,.v5.market-bookshop{--paper:#f7f8f5;--ink:#20362f;--muted:#596b62;--line:#dbe4dc;--accent:#245c46;--selected:#e5f1e8;--on-accent:#fff;color-scheme:light;background:var(--paper)}
.v5.market-bookshop{--paper:#fcf8f1;--ink:#382b24;--muted:#79675b;--line:#e8dfd2;--accent:#9c432d;--selected:#f5e6dc;--surface:#fffdfa}
.library-lounge .site-head,.market-bookshop .site-head,.library-lounge main,.market-bookshop main,.library-lounge .site-foot,.market-bookshop .site-foot{width:min(1180px,calc(100% - 64px))}
.library-lounge .mbx-head,.market-bookshop .mbx-head{background:var(--surface);border-bottom:1px solid var(--line)}
.library-lounge .site-head,.market-bookshop .site-head{min-height:80px;gap:24px}.library-lounge .brand,.market-bookshop .brand{font-size:20px;letter-spacing:-.7px}.library-lounge .mbx-nav,.market-bookshop .mbx-nav{gap:22px}.library-lounge .mbx-nav a,.market-bookshop .mbx-nav a{font-size:14px;font-weight:650}
.library-lounge main,.market-bookshop main{padding-top:44px}.editorial-hero{display:grid;grid-template-columns:1.12fr 1fr;gap:56px;align-items:center;padding:22px 0 42px}.editorial-eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:11px;letter-spacing:2px;font-weight:800;color:var(--accent);margin-bottom:22px}.editorial-eyebrow:before{content:'';width:26px;height:2px;background:currentColor}
.v5 .editorial-hero h1{font-size:clamp(38px,4.4vw,60px);line-height:1.21;font-weight:800;letter-spacing:-3px;word-break:keep-all;overflow-wrap:normal}.editorial-hero h1 em{font-style:normal;color:var(--accent)}.editorial-hero .hero-copy{font-size:16px;line-height:1.85;margin-top:22px;max-width:470px;word-break:keep-all}.hero-small{display:block;font-size:12px;font-weight:650;color:var(--muted);margin-top:20px}.library-lounge .search{max-width:none;background:white;border:1px solid #ccdcd1;padding:10px 18px;border-radius:14px;box-shadow:0 8px 24px #234c3610;gap:0;margin:26px 0 0}.library-lounge .search>span{font-size:11px;color:var(--muted);letter-spacing:.4px}.library-lounge .search input{border:0;padding:7px 0;background:transparent;outline-offset:2px;min-height:38px;font-size:16px}
.topic-shelf{display:grid;grid-template-columns:1fr 1fr;gap:14px}.topic-tile{min-height:174px;display:flex;flex-direction:column;justify-content:space-between;border-radius:20px;padding:23px;text-decoration:none;transition:transform .18s,box-shadow .18s;color:#25463a!important;background:#e0eee4}.topic-tile:nth-child(2){background:#eae5f7;color:#544378!important}.topic-tile:nth-child(3){background:#faedcb;color:#775d21!important}.topic-tile:nth-child(4){background:#e1ecf5;color:#315671!important}.topic-tile:hover{transform:translateY(-4px);box-shadow:0 10px 20px #213d3010}.topic-number{font-size:11px;letter-spacing:1.5px;font-weight:750;opacity:.7}.topic-tile strong{font-size:25px;line-height:1.2;letter-spacing:-1px}.topic-tile small{display:block;font-size:12px;font-weight:500;margin-top:8px;line-height:1.5}.topic-arrow{align-self:flex-end;font-size:19px;line-height:1}
.library-welcome{display:grid;grid-template-columns:repeat(3,1fr);gap:0;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;margin:0 0 34px}.library-welcome a{padding:21px 25px;text-decoration:none;color:var(--ink);display:grid;gap:6px}.library-welcome a+a{border-left:1px solid var(--line)}.library-welcome a:hover{background:#edf4ee}.library-welcome b{font-size:15px}.library-welcome span{font-size:12px;color:var(--muted);line-height:1.6}
.library-lounge .picker{background:#fff;border:1px solid var(--line);border-radius:20px;padding:23px 25px;gap:22px;margin:0 0 42px}.library-lounge .picker fieldset{padding:0;border:0;background:none;border-radius:0}.library-lounge .picker legend{padding:0;margin-bottom:12px;font-size:11px;color:#738276}.library-lounge .picker legend b{font-size:14px}.library-lounge .choices{display:flex;flex-wrap:wrap;gap:8px}.library-lounge .choice{width:auto;min-height:42px;border-radius:10px;padding:9px 15px;border-color:#e5eae5;background:#fafbf9}.library-lounge .choice strong{font-size:13px}.library-lounge .choice small{font-size:11px}.library-lounge .choice[aria-pressed=true]{background:#245c46;color:#fff;border-color:#245c46}.library-lounge .choice[aria-pressed=true] small{color:#e3efe5}.library-lounge .axis-card{border:0;background:none}.library-lounge .axis-card>a{font-size:11px;margin:5px 6px 0}.library-lounge .axis-card .choice{border:1px solid #e5eae5;background:#fafbf9}.library-lounge .axis-card:has([aria-pressed=true]){background:none}.library-lounge .axis-card .choice[aria-pressed=true]{background:#245c46}
.library-lounge .results .section-head{margin-bottom:22px}.section-kicker{display:block;color:var(--accent);font-size:11px;letter-spacing:1.6px;font-weight:750;margin-bottom:9px}.library-lounge .section-head h2,.market-bookshop .section-head h2{font-size:28px;letter-spacing:-1.2px}.library-lounge #result-count{font-size:12px;border:1px solid var(--line);border-radius:999px;padding:6px 12px;background:#fff}.library-lounge .card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.library-lounge .resource-card{position:relative;padding:25px;border-radius:16px;border-color:#e0e6df;gap:12px;transition:transform .18s,box-shadow .18s}.library-lounge .resource-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px #2f4c3610}.library-lounge .resource-card:before{content:'';position:absolute;left:25px;right:25px;top:0;height:4px;background:#aacdb6;border-radius:0 0 4px 4px}.library-lounge .resource-card[data-area=admission]:before{background:#c4b4e7}.library-lounge .resource-card[data-area=study]:before{background:#e5ce8c}.library-lounge .resource-card[data-area=future]:before{background:#a4c7de}.library-lounge .resource-card h3{font-size:19px;line-height:1.55;letter-spacing:-.55px}.library-lounge .resource-card .description{-webkit-line-clamp:2;font-size:13px;line-height:1.8}.library-lounge .resource-card .meta{font-size:11px;line-height:1.7}.library-lounge .badge{border-radius:6px;font-size:10px;padding:4px 8px}.library-lounge .resource-card .actions{border-top:1px solid #eaf0e8;padding-top:15px;margin-top:10px}.library-lounge .action{font-size:12px;border-radius:8px}.library-lounge .supplement{background:#edf1e9;padding:28px;border-radius:20px}.library-lounge .supplement h2{font-size:23px;margin-bottom:18px}.library-lounge .supplement details{border-color:#dbe4d6;border-radius:10px}
.market-bookshop .editorial-hero{border-bottom:0;padding-bottom:20px;gap:45px}.market-bookshop .hero-copy{color:#79675b}.market-bookshop .hero-link{display:inline-flex;gap:28px;align-items:center;margin-top:26px;background:#9c432d;color:white;text-decoration:none;padding:13px 23px;border-radius:9px;font-size:13px;font-weight:750}.market-bookshop .hero-link:hover{background:#7f3323}.book-shelf{display:flex;justify-content:center;align-items:flex-end;gap:20px;padding:35px 20px 32px;background:#f0e9df;border-radius:100px 100px 16px 16px;min-height:300px;border-bottom:7px solid #d6c5b1}.book-shelf a{display:flex;align-items:center;justify-content:center;flex:1;max-width:142px;min-width:0;transition:transform .2s}.book-shelf a:nth-child(2){transform:translateY(-18px)}.book-shelf a:hover{transform:translateY(-8px)}.book-shelf a:nth-child(2):hover{transform:translateY(-26px)}.book-shelf img{width:100%;height:210px;object-fit:contain;filter:drop-shadow(5px 10px 6px #49362424)}.book-shelf-note{font-size:11px!important;letter-spacing:1.5px;text-align:center;margin-top:14px!important}
.market-bookshop .jump{border-top:1px solid #e5d9c8;border-bottom:1px solid #e5d9c8;display:flex;justify-content:space-between;gap:20px;padding:21px 8px;margin:15px 0 40px}.market-bookshop .jump a{text-decoration:none;color:var(--muted);font-size:13px;font-weight:700;min-height:44px}.market-bookshop .jump a:hover{color:var(--accent)}.market-bookshop .jump span{color:#ad8e73;font-size:10px;margin-right:8px}.market-bookshop .mall-section{margin-top:46px;scroll-margin-top:25px}.market-bookshop .section-head{align-items:center}.market-bookshop .section-head>a{font-size:12px}.market-bookshop .book-toolbar{display:flex;justify-content:space-between;gap:25px;align-items:center;margin-bottom:22px}.market-bookshop .search{margin:0;display:flex;align-items:center;gap:12px;flex:1;max-width:520px;font-size:12px}.market-bookshop .search input{flex:1;min-width:0;border-radius:10px;background:white;padding:11px 15px;border-color:#e6dccc}.market-bookshop #book-status{font-size:12px;white-space:nowrap}.market-bookshop #books,.market-bookshop #mall-related-books{grid-template-columns:repeat(4,minmax(0,1fr));gap:25px}.market-bookshop .resource-card{background:transparent;border:0;border-radius:0;padding:0;gap:10px}.market-bookshop .resource-card .book-cover{height:230px;aspect-ratio:auto;object-fit:contain;padding:22px;background:#f1ebe2;border-radius:10px;transition:transform .2s}.market-bookshop .resource-card:hover .book-cover{transform:translateY(-4px)}.market-bookshop .resource-card h3{font-size:16px;line-height:1.55;letter-spacing:-.4px;margin-top:3px}.market-bookshop .resource-card .meta{font-size:11px;line-height:1.7}.market-bookshop .resource-card .actions{margin-top:3px}.market-bookshop .resource-card .action{font-size:11px;min-height:44px;background:white;border-color:#e1d4c4;padding:7px 11px;border-radius:7px}.book-details{font-size:11px;color:var(--muted)}.book-details summary{cursor:pointer;min-height:44px;padding:6px 0}.book-details p{font-size:11px;line-height:1.75}.market-bookshop .mall-section:not(#mall-books){padding-top:36px;border-top:1px solid #e5d9c8}.market-bookshop .mall-section:not(#mall-books) .resource-card{padding:20px;border:1px solid #e5d9c8;background:#fffdfa;border-radius:12px}.market-bookshop #our-services .service-group>h3{font-size:16px;color:var(--muted);margin:22px 0 14px}.market-bookshop .more{display:flex;margin:30px auto 0;min-width:220px;background:transparent;border-radius:9px}.library-lounge .site-foot,.market-bookshop .site-foot{padding-block:30px;font-size:12px;margin-top:20px}
@media(max-width:960px){.editorial-hero{gap:28px}.v5 .editorial-hero h1{font-size:43px;letter-spacing:-2px}.topic-tile{padding:19px;min-height:157px}.library-lounge .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.market-bookshop #books,.market-bookshop #mall-related-books{grid-template-columns:repeat(3,minmax(0,1fr))}.book-shelf{gap:12px}.book-shelf img{height:175px}}
@media(max-width:700px){.library-lounge .site-head,.market-bookshop .site-head,.library-lounge main,.market-bookshop main,.library-lounge .site-foot,.market-bookshop .site-foot{width:calc(100% - 36px)}.library-lounge .site-head,.market-bookshop .site-head{padding:16px 0;gap:12px}.library-lounge .mbx-nav,.market-bookshop .mbx-nav{gap:12px;flex-wrap:wrap}.library-lounge .mbx-nav a,.market-bookshop .mbx-nav a{font-size:12px}.library-lounge main,.market-bookshop main{padding-top:25px}.editorial-hero{grid-template-columns:1fr;padding:10px 0 25px;gap:27px}.editorial-eyebrow{font-size:10px;letter-spacing:1.4px;margin-bottom:17px}.v5 .editorial-hero h1{font-size:39px;letter-spacing:-2.1px}.editorial-hero .hero-copy{font-size:14px;margin-top:16px}.topic-tile{min-height:145px;border-radius:15px;padding:19px}.topic-tile strong{font-size:23px}.topic-shelf{gap:11px}.library-welcome{grid-template-columns:1fr;margin-bottom:25px}.library-welcome a{padding:16px 20px;grid-template-columns:1fr 1.6fr;align-items:center;gap:15px}.library-welcome a+a{border-left:0;border-top:1px solid var(--line)}.library-lounge .picker{padding:20px 17px;border-radius:15px;gap:20px}.library-lounge .choice{padding:8px 11px}.library-lounge .choice strong{font-size:12px}.library-lounge .section-head h2,.market-bookshop .section-head h2{font-size:24px}.library-lounge .card-grid{grid-template-columns:1fr;gap:15px}.library-lounge .resource-card{padding:23px}.library-lounge .supplement{padding:23px 18px}.book-shelf{min-height:250px;padding:26px 25px;border-radius:70px 70px 12px 12px;gap:17px}.book-shelf img{height:180px}.market-bookshop .jump{gap:12px;justify-content:flex-start;flex-wrap:wrap;padding:18px 0;margin-bottom:32px}.market-bookshop .jump a{font-size:12px;min-height:44px;display:inline-flex;align-items:center}.market-bookshop .jump span{margin-right:5px}.market-bookshop #books,.market-bookshop #mall-related-books{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}.market-bookshop .resource-card .book-cover{height:185px;padding:15px}.market-bookshop .resource-card h3{font-size:14px}.market-bookshop .resource-card .meta{font-size:10px}.market-bookshop .book-toolbar{align-items:flex-start;flex-direction:column;gap:12px}.market-bookshop .search{width:100%;font-size:11px}.market-bookshop #book-status{margin:0}.market-bookshop .mall-section{margin-top:34px}.market-bookshop .mall-section:not(#mall-books) .card-grid{grid-template-columns:1fr}.market-bookshop .hero-link{margin-top:20px}}
@media(prefers-reduced-motion:reduce){.topic-tile,.book-shelf a,.market-bookshop .book-cover,.library-lounge .resource-card{transition:none!important;transform:none!important}}

.market-scene{margin:0;position:relative;min-width:0}.market-scene>img{display:block;width:100%;height:335px;object-fit:cover;border-radius:100px 100px 14px 14px}.market-scene figcaption{position:relative;margin:-65px 22px 0 auto;width:75%;padding:22px 25px;background:#f4eadb;border:1px solid #e5d6c0;box-shadow:0 8px 22px #59432b0d;border-radius:10px}.market-scene figcaption span{display:block;font-size:9px;letter-spacing:1.5px;color:#9c432d;font-weight:750;margin-bottom:10px}.market-scene figcaption strong{font-size:20px;line-height:1.6;letter-spacing:-.6px}.market-bookshop .resource-card .book-info-panel{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:22px;background:#eee6da;color:#65503b;border-radius:10px}.book-info-panel>span{font-size:8px;letter-spacing:1px}.book-info-panel>strong{font-size:23px;line-height:1.4;letter-spacing:-.8px;word-break:keep-all;font-weight:750}.book-info-panel>small{font-size:11px}.market-bookshop #books>.resource-card:nth-child(4n+2) .book-info-panel{background:#e5ecdf;color:#526342}.market-bookshop #books>.resource-card:nth-child(4n+3) .book-info-panel{background:#eee0d8;color:#805542}.market-bookshop #books>.resource-card:nth-child(4n) .book-info-panel{background:#e4e7ed;color:#4e5d77}@media(max-width:700px){.market-scene>img{height:260px;border-radius:60px 60px 12px 12px}.market-scene figcaption{margin-top:-45px;padding:17px 20px}.market-scene figcaption strong{font-size:18px}.market-bookshop .resource-card .book-info-panel{padding:17px}.book-info-panel>strong{font-size:20px}}

@media(max-width:700px){.library-lounge .site-head,.market-bookshop .site-head{position:relative;min-height:110px}.library-lounge .site-head .mbx-nav,.market-bookshop .site-head .mbx-nav{width:100%;justify-content:space-between;gap:4px}.library-lounge .site-head .mbx-nav a[href*="view=login"],.market-bookshop .site-head .mbx-nav a[href*="view=login"],.library-lounge .site-head .mbx-nav a[href*="member.html"],.market-bookshop .site-head .mbx-nav a[href*="member.html"]{position:absolute;right:0;top:13px;font-size:11px}}

.topic-tile strong,.topic-tile small{word-break:keep-all}.market-bookshop .resource-card .actions{margin-top:auto;padding-top:12px}

/* Both collections share a quiet, warm bookshop entrance. */
.v5.library-lounge{--paper:#fcf8f1;--ink:#382b24;--muted:#716054;--line:#e8dfd2;--accent:#93452f;--selected:#f5e6dc;--surface:#fffdfa}
.library-lounge .editorial-hero,.market-bookshop .editorial-hero{padding:28px 0 32px;gap:48px}
.library-lounge .search{border-color:#dfd1bf;box-shadow:0 8px 24px #6e4b2610}
.library-topics{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:12px 0 30px}
.library-topics .topic-tile{min-height:142px;padding:20px;border-radius:8px 18px 18px 8px;border-left:7px solid #9a6b50;background:#eee5d7;color:#594435!important;box-shadow:0 5px 0 #ded0bd}
.library-topics .topic-tile:nth-child(2){background:#e5e9dd;border-left-color:#72805e}.library-topics .topic-tile:nth-child(3){background:#f2e5d9;border-left-color:#b08360}.library-topics .topic-tile:nth-child(4){background:#e5e7e8;border-left-color:#70828e}
.library-topics .topic-tile strong{font-size:20px}.library-topics .topic-number{font-size:10px}
.library-lounge .choice[aria-pressed=true],.library-lounge .axis-card .choice[aria-pressed=true]{background:#93452f;border-color:#93452f}
.library-lounge .library-welcome a:hover{background:#faf4eb}.library-lounge .picker legend{color:#776556}
.library-lounge .resource-card{padding:18px;background:#fffdfa;border-color:#e5d9c8;box-shadow:0 3px 0 #eadfce;overflow:hidden}
.library-lounge .resource-card:before{display:none}
.library-lounge .resource-card .resource-preview{width:100%;height:190px;object-fit:contain;background:#f1eade;border-radius:8px;padding:12px}
.resource-paper{min-height:170px;padding:18px 20px 15px 25px;display:flex;flex-direction:column;justify-content:space-between;gap:14px;background:linear-gradient(90deg,#d9c4a9 0 6px,#f0e6d7 6px 9px,#f7efe4 9px);border:1px solid #e4d7c5;border-radius:3px 9px 9px 3px;color:#604c38;box-shadow:3px 4px 0 #e9decd}
.resource-paper>span{font-size:10px;letter-spacing:1px}.resource-paper>strong{font-size:19px;line-height:1.5;font-weight:650;word-break:keep-all}.resource-paper>small{font-size:10px;color:#7e6d5d}
.library-lounge .resource-card .actions{margin-top:auto;border-color:#e8dfd2}.library-lounge .resource-card h3{font-size:17px}
.library-lounge .supplement{background:#f1e9dd}.library-lounge .supplement details{border-color:#ddd0bd;background:#fffdfa}
.library-lounge .service-shelf{margin-top:32px;background:transparent;border-top:1px solid #e1d4c2;border-radius:0;padding:28px 0 0}.service-shelf>p{font-size:13px;color:var(--muted)}
.hero-bookcase .book-shelf{padding:28px 20px 22px;min-height:270px;gap:16px;border-radius:70px 70px 12px 12px;background:#eee3d2;border-bottom-color:#b7956b;box-shadow:0 10px 25px #6c4f2412}.hero-bookcase .book-shelf img{height:195px}
.hero-cover-fallback{padding:20px;font-size:16px;line-height:1.5;color:#604c38}
.library-lounge .axis-card>a{display:none}
.reading-desk{margin:22px 0 0;display:grid;grid-template-columns:116px 1fr;align-items:center;gap:18px;padding:12px;background:#f3ebdf;border:1px solid #e4d7c4;border-radius:12px}.reading-desk img{width:116px;height:72px;object-fit:cover;border-radius:6px}.reading-desk figcaption{font-size:13px;line-height:1.7;color:#705b47}
@media(max-width:900px){.library-lounge .editorial-hero,.market-bookshop .editorial-hero{gap:28px}.library-topics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.library-lounge .editorial-hero,.market-bookshop .editorial-hero{grid-template-columns:1fr;padding-top:10px;gap:25px}.library-topics{gap:12px;margin-top:0}.library-topics .topic-tile{min-height:142px;padding:15px}.library-topics .topic-tile strong{font-size:18px}.library-lounge .resource-card .resource-preview{height:160px}.resource-paper{min-height:150px}.hero-bookcase .book-shelf{min-height:230px;padding:22px 15px 15px}.hero-bookcase .book-shelf img{height:165px}.library-scene>img{height:230px}.library-lounge .service-shelf{margin-top:24px}}
.worksheet-window{min-width:0;background:#eee5d6;border-radius:18px;padding:22px 22px 12px;border-bottom:5px solid #b7956b}.inside-pages{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.inside-pages a{display:block;min-width:0}.inside-pages img{display:block;width:100%;height:280px;object-fit:contain;filter:drop-shadow(2px 5px 4px #49362424)}.worksheet-window>p{font-size:11px;text-align:center;margin-top:10px;line-height:1.5}
.inside-link{display:flex;align-items:center;gap:14px;margin-top:14px;padding:10px 14px;background:#f2e9db;border:1px solid #e4d7c4;border-radius:8px;text-decoration:none;font-size:12px;line-height:1.5}.inside-link img{width:55px;height:70px;object-fit:cover;object-position:top}.inside-link strong{font-weight:650}.worksheet-inside{margin:12px 0}.worksheet-inside img{display:block;width:min(100%,420px);height:auto;margin:auto}.worksheet-inside figcaption{text-align:center;font-size:11px;color:var(--muted);margin-top:8px}
/* Compact information rhythm, matching the production cards. */
.library-lounge .card-grid,.market-bookshop .card-grid{gap:12px;align-items:stretch}.library-lounge .card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.library-lounge .resource-card,.market-bookshop .mall-section .resource-card{padding:12px;gap:6px;border:1px solid #e5d9c8;border-radius:8px;background:#fffdfa;box-shadow:none}
.library-lounge .resource-card h3,.market-bookshop .resource-card h3{font-size:15px;line-height:1.4;margin:0;letter-spacing:-.3px;word-break:keep-all}.library-lounge .resource-card p,.market-bookshop .resource-card p{margin:0;font-size:12px;line-height:1.5}.library-lounge .resource-card .description{-webkit-line-clamp:2;line-height:1.5}.library-lounge .resource-card .meta,.market-bookshop .resource-card .meta{font-size:11px;line-height:1.45}
.library-lounge .resource-card .resource-preview{height:185px;padding:4px;object-fit:contain;object-position:top center;border-radius:4px;background:#f3ecdf}.library-lounge .resource-card .actions,.market-bookshop .resource-card .actions{margin-top:2px;padding-top:6px;gap:5px;border-top:1px solid #eee4d7}
.market-bookshop .resource-card .book-cover{height:170px;padding:9px;margin:0}.market-bookshop #books,.market-bookshop #mall-related-books{gap:12px}.market-bookshop .resource-card .book-info-panel{height:auto;min-height:65px;padding:10px;gap:4px;justify-content:flex-start;background:#f1ece4!important}.book-info-panel>strong{font-size:14px;line-height:1.4}.book-info-panel>span{font-size:9px}.book-info-panel>small{font-size:10px}
.book-details summary{min-height:28px;padding:3px 0;line-height:1.5}.book-details p{line-height:1.45!important}.library-lounge .resource-card .action,.market-bookshop .resource-card .action{min-height:34px;padding:6px 9px;line-height:1.4;font-size:11px}
.market-bookshop .mall-section{margin-top:28px}.market-bookshop .mall-section:not(#mall-books){padding-top:24px}.library-lounge .editorial-hero,.market-bookshop .editorial-hero{padding-bottom:24px}.library-lounge .library-welcome{margin-bottom:22px}.library-lounge .picker{margin-bottom:24px;padding:18px;gap:16px}.library-topics .topic-tile{min-height:120px;padding:16px}.library-lounge .section-head,.market-bookshop .section-head{margin-bottom:14px}
@media(max-width:1050px){.library-lounge .card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.inside-pages img{height:235px}}
@media(max-width:700px){.library-lounge .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inside-pages img{height:225px}.worksheet-window{padding:16px 12px 10px}.market-bookshop #books,.market-bookshop #mall-related-books{gap:12px}.library-lounge .resource-card,.market-bookshop .mall-section .resource-card{padding:10px;gap:6px}.market-bookshop .resource-card .book-cover{height:155px;padding:6px}.library-lounge .resource-card .action,.market-bookshop .resource-card .action{min-height:44px}.book-details summary{min-height:36px}.library-topics .topic-tile{min-height:120px}}
@media(max-width:480px){.library-lounge .card-grid{grid-template-columns:1fr}.library-lounge .resource-card .resource-preview{height:230px}.inside-pages img{height:190px}}

.library-lounge .preview-trigger{display:block;width:100%;border:0;padding:0;background:transparent;cursor:pointer}.library-lounge .preview-trigger:hover img{box-shadow:0 2px 9px #634a2226}.library-lounge .preview-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.library-lounge .resource-card .actions,.market-bookshop .resource-card .actions{margin-top:auto}.library-lounge .resource-card h3,.market-bookshop .resource-card h3{min-height:2.8em}
/* Natural card height: never reserve an empty title row or push buttons away. */
.library-lounge .card-grid,.market-bookshop .card-grid{align-items:start}
.library-lounge .resource-card h3,.market-bookshop .resource-card h3{min-height:0;line-height:1.3;margin:0}
.library-lounge .resource-card .actions,.market-bookshop .resource-card .actions{margin-top:0;padding-top:5px}
.library-lounge .resource-card,.market-bookshop .mall-section .resource-card{gap:5px}
.market-bookshop .resource-card .meta,.market-bookshop .resource-card .description,.library-lounge .resource-card .meta{line-height:1.4}
.market-bookshop .resource-card .description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.service-visual{margin:0;position:relative;width:100%;min-width:0}.market-bookshop .resource-card .service-visual img{display:block;width:100%;height:130px;aspect-ratio:auto;object-fit:cover;object-position:top center;border:1px solid #e7dfd4;border-radius:5px}
.service-visual figcaption{position:absolute;right:4px;bottom:4px;max-width:calc(100% - 8px);padding:2px 5px;background:#fffdf2ed;color:#655444;font-size:9px;line-height:1.35;border-radius:3px}
.market-bookshop .service-card .actions{border-top:1px solid #eee4d7}.market-bookshop .service-card h3{font-size:15px}
.market-bookshop .mall-section:not(#mall-books){margin-top:24px;padding-top:18px}
/* A real cabinet silhouette, with a quieter reading room beyond it. */
.market-bookshop .editorial-hero{grid-template-columns:1fr 1.12fr;gap:42px;align-items:center}
.cabinet-scene{padding:16px 19px 20px;border:10px solid #ae8058;border-radius:8px 8px 3px 3px;background:linear-gradient(90deg,#c9a27b22,transparent 12%,#c9a27b11 85%,#98704533),#ead9bf;box-shadow:inset 0 3px 14px #6541262b,0 16px 30px #61442314;position:relative}
.cabinet-top{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 0 12px;color:#694d37}.cabinet-top>span{font-size:9px;letter-spacing:1.6px;font-weight:800}.cabinet-top small{font-size:9px}
.cabinet-row{position:relative;padding:19px 8px 0;border-bottom:12px solid #ab7951;box-shadow:0 6px 7px -5px #53351c88;margin-bottom:13px}.shelf-label{position:absolute;top:0;left:3px;font-size:9px;color:#6f5239;letter-spacing:.7px}
.cabinet-scene .book-shelf{background:none;border:0;border-radius:0;box-shadow:none;min-height:0;padding:0 5px;gap:17px;align-items:end}.cabinet-scene .book-shelf a{flex:1;min-width:0;max-width:28%;transform:rotate(-2deg)}.cabinet-scene .book-shelf a:nth-child(2){transform:rotate(1deg)}.cabinet-scene .book-shelf a:nth-child(3){transform:rotate(-1deg)}.cabinet-scene .book-shelf img{height:145px;max-width:100%;object-fit:contain;object-position:bottom;filter:drop-shadow(5px 2px 3px #43250e35);border-radius:1px}
.digital-shelf{display:flex;align-items:end;gap:21px;padding-top:25px;margin-bottom:0}.hero-ebook{display:block;flex:0 0 88px;transform:rotate(-3deg)}.hero-ebook img{width:88px;height:125px;object-fit:cover;box-shadow:5px 2px 0 #fdf9ee,7px 3px 0 #8d7456,10px 6px 12px #402c2130}
.hero-phone{position:relative;display:flex;flex-direction:column;width:83px;flex:0 0 83px;height:151px;background:#242322;padding:12px 4px 7px;border-radius:13px;box-shadow:5px 5px 10px #402c2133;text-decoration:none;transform:rotate(4deg)}.hero-phone img{width:100%;height:116px;object-fit:cover;object-position:top left;background:#fff;border-radius:5px}.phone-camera{position:absolute;top:5px;left:34px;width:16px;height:3px;border-radius:3px;background:#777}.phone-caption{font-size:6px;text-align:center;color:#fff7e7;padding-top:4px}.shelf-message{font-size:13px;line-height:1.7;color:#795c43;margin-bottom:16px}.shelf-message strong{font-family:Georgia,serif;color:#513821;font-size:17px}.shelf-message>span{display:block;font-size:8px;margin-top:8px}
.market-bookshop .mall-section{padding:24px!important;border-radius:10px;border:1px solid #e4d7c7;margin:30px 0!important;background:#fffcf7}.market-bookshop #mall-books{border-top:4px solid #a57c4b}.market-bookshop #mall-ebooks{background:#f0f1e9;border-color:#d8ddcb;border-top:4px solid #778461}.market-bookshop #mall-materials{background:#f4ece3;border-color:#e3d2c0;border-top:4px solid #b28c69}.market-bookshop #mall-courses{background:#edf1f0;border-color:#d4dfdd;border-top:4px solid #6b8c87}.market-bookshop #mall-services{background:#f0edf4;border-color:#ded7e6;border-top:4px solid #8f7f9f}
.room-heading{margin-bottom:18px}.room-heading>span{font-size:9px;letter-spacing:1.5px;font-weight:800;color:#84735f}.room-heading h2{font-size:24px;margin:7px 0 5px;letter-spacing:-.8px}.room-heading p{font-size:12px;color:#80786d;line-height:1.5;margin:0}
.market-bookshop .card-grid{align-items:stretch}.market-bookshop .resource-card{height:100%;min-width:0;box-sizing:border-box}.market-bookshop .resource-card .actions{margin-top:auto;padding-top:7px}.market-bookshop .resource-card h3{min-height:0}.market-bookshop .resource-card .description{margin-bottom:4px}
.market-bookshop .product-visual{margin:0;display:flex;align-items:center;justify-content:center;height:190px;background:#e9dfd1;border-radius:4px;padding:9px;overflow:hidden;position:relative}.market-bookshop .product-visual img{height:100%;width:100%;object-fit:contain;filter:drop-shadow(4px 4px 3px #42301b24)}.product-visual figcaption{position:absolute;bottom:3px;right:5px;background:#fffaf0ed;color:#796753;font-size:8px;padding:2px 4px;border-radius:2px}.service-title-icon{width:21px!important;height:21px!important;display:inline-block!important;object-fit:contain;margin-right:6px;vertical-align:middle;flex-shrink:0}.market-bookshop .service-card h3{display:flex;align-items:center}.market-bookshop .service-card .description{min-height:2.8em}.market-bookshop .service-card .meta{overflow-wrap:anywhere}
.market-bookshop .product-visual .product-inside{position:absolute;right:10px;bottom:18px;width:61px;height:85px;object-fit:cover;object-position:top;background:#fff;border:2px solid #fff;transform:rotate(5deg);box-shadow:0 2px 6px #34251530}.product-visual figcaption{z-index:1}
@media(max-width:400px){.digital-shelf{gap:24px}.digital-shelf .shelf-message{display:none}.cabinet-top small{display:none}}
/* Compact catalogue: cover beside the facts, no flex spacer below them. */
.floor-sign{display:flex;align-items:center;flex-wrap:wrap;gap:8px 15px;margin:32px 0 12px;padding:13px 0;border-top:1px solid #c9b69c;border-bottom:1px solid #dfd3c2;scroll-margin-top:20px}.floor-sign strong{font-size:22px;color:#6e4b32;letter-spacing:-.7px}.floor-sign>span{font-size:12px;color:#746654}.floor-sign>a{margin-left:auto;font-size:11px;text-decoration:none}
.market-bookshop #books,.market-bookshop #mall-related-books,.market-bookshop #ebooks,.market-bookshop #mall-products{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:10px}
.market-bookshop .book-card,.market-bookshop .product-card{display:grid;grid-template-columns:76px minmax(0,1fr);grid-auto-rows:min-content;align-content:start;gap:5px 10px;height:auto!important;padding:10px!important;border-radius:6px}
.market-bookshop .book-card>.book-cover,.market-bookshop .product-card>.product-visual{grid-column:1;grid-row:1 / span 6;width:76px!important;height:112px!important;margin:0!important;padding:0!important;object-fit:contain;border-radius:2px;background:transparent;align-self:start}
.market-bookshop .product-card>.product-visual img{width:100%;height:100%;object-fit:contain}.market-bookshop .product-card>.product-visual .product-inside{width:24px;height:34px;right:0;bottom:3px;border-width:1px}.product-card>.product-visual figcaption{font-size:6px;bottom:0;padding:1px 2px}
.market-bookshop .book-card>h3,.market-bookshop .product-card>h3{grid-column:2;font-size:13px;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0}
.market-bookshop .book-card>p,.market-bookshop .product-card>p,.market-bookshop .book-card>details,.market-bookshop .product-card>details,.market-bookshop .book-card>.actions,.market-bookshop .product-card>.actions{grid-column:2;margin:0!important}
.market-bookshop .book-card .meta,.market-bookshop .product-card .meta{font-size:10px;line-height:1.35}.market-bookshop .book-card .description,.market-bookshop .product-card .description{font-size:11px;line-height:1.4;margin:0;min-height:0}
.market-bookshop .book-card>.meta:nth-of-type(2){display:none}.market-bookshop .book-card .actions,.market-bookshop .product-card .actions{margin-top:0!important;padding-top:5px;align-self:start}.market-bookshop .book-card .action,.market-bookshop .product-card .action{min-height:28px;padding:4px 6px;font-size:10px;line-height:1.35}.market-bookshop .book-card summary,.market-bookshop .product-card summary{min-height:20px;font-size:10px;padding:1px 0}
.market-bookshop .mall-section{padding:18px!important;margin:16px 0!important}.room-heading{margin-bottom:13px}.market-bookshop .book-toolbar{margin-bottom:12px}.market-bookshop .service-card{gap:5px;height:auto}.market-bookshop .service-card .actions{margin-top:0!important}.market-bookshop .service-card .description{min-height:0}
@media(max-width:1000px){.market-bookshop #books,.market-bookshop #mall-related-books,.market-bookshop #ebooks,.market-bookshop #mall-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.market-bookshop #books,.market-bookshop #mall-related-books,.market-bookshop #ebooks,.market-bookshop #mall-products{grid-template-columns:1fr}.market-bookshop .book-card,.market-bookshop .product-card{grid-template-columns:75px minmax(0,1fr)}.market-bookshop .book-card .action,.market-bookshop .product-card .action{min-height:36px;padding:7px}.floor-sign strong{font-size:20px}.floor-sign>a{width:100%;margin-left:0}.market-bookshop .mall-section{padding:12px!important}}
#book-video-dialog{width:min(92vw,490px);max-height:94vh;border:1px solid #cdbda6;border-radius:12px;padding:14px;background:#fffdf8;color:#342e26}#book-video-dialog::backdrop{background:#16120dd1}.video-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.video-dialog-head h2{font-size:14px;line-height:1.4;margin:0}.video-dialog-head button{flex-shrink:0;min-height:36px;border:1px solid #d6c5ad;background:#fffaf1;border-radius:5px;padding:6px 10px;color:#5d442c}#book-video-player{display:block;max-width:100%;width:auto;height:min(67vh,640px);margin:0 auto;background:#181714}#book-video-dialog>p{font-size:10px;color:#796b5c;margin:10px 0 0}
.product-visual[role="button"]{cursor:zoom-in}#cover-dialog{width:min(94vw,570px);max-height:95vh;padding:12px;border:1px solid #d1c2ad;border-radius:9px;background:#fffdf8}#cover-dialog::backdrop{background:#16120dd1}#cover-dialog-image{display:block;max-width:100%;max-height:82vh;width:auto;height:auto;margin:auto;object-fit:contain}
@media(max-width:1050px){.market-bookshop .editorial-hero{gap:24px}.shelf-message{display:none}.cabinet-scene .book-shelf img{height:125px}}
@media(max-width:700px){.market-bookshop .editorial-hero{grid-template-columns:1fr}.cabinet-scene{width:100%;box-sizing:border-box;max-width:470px;margin:auto}.cabinet-scene .book-shelf img{height:145px}.shelf-message{display:block}.market-bookshop .mall-section{padding:15px!important;margin:23px 0!important}.room-heading h2{font-size:21px}.market-bookshop .product-visual{height:170px}.market-bookshop .resource-card .actions{gap:4px}.market-bookshop .service-card .description{min-height:0}}

/* Catalog review: compact preparation shelf, ordered jump navigation, accessible mobile targets. */
#ebooks{display:flex!important;overflow-x:auto;gap:8px;padding-bottom:8px;scroll-snap-type:x proximity}
#ebooks .product-card{flex:0 0 246px;grid-template-columns:64px 1fr!important;padding:8px;scroll-snap-align:start}
#ebooks .product-visual{width:64px!important;height:90px!important;min-height:0!important}
#ebooks .product-visual img{width:100%;height:100%;object-fit:contain}
#mall-ebooks .room-heading{margin-bottom:8px}#mall-ebooks .room-heading p{margin:4px 0}
.pending-products{padding:14px;border:1px solid #dfcdbb;border-radius:12px;background:#fcf8f2;margin-top:12px}
.pending-products summary{cursor:pointer;font-weight:700}.pending-products ul{columns:2;line-height:1.65;padding-left:20px}
@media(max-width:600px){.jump{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:6px}.jump a{white-space:nowrap;flex:0 0 auto;min-height:44px;display:flex;align-items:center}.market-bookshop .actions a,.market-bookshop .actions button,.market-bookshop details>summary,.market-library .actions a,.market-library .actions button{min-height:44px!important;box-sizing:border-box;align-items:center}.market-bookshop .book-shelf .placeholder{font-size:11px;writing-mode:horizontal-tb;overflow:hidden}.pending-products ul{columns:1}}

@media(max-width:600px){.market-bookshop .editorial-hero{gap:16px;padding-top:8px;padding-bottom:16px}.cabinet-scene{padding:10px 14px 14px;border-width:8px}.cabinet-scene .book-shelf img{height:112px}.cabinet-row{margin-bottom:9px}.hero-phone{height:124px;width:68px;flex-basis:68px}.hero-phone img{height:92px}.hero-ebook{flex-basis:70px}.hero-ebook img{width:70px;height:100px}.shelf-message{display:none!important}.cabinet-top small,.phone-caption{display:none}#mall-ebooks{padding-top:10px!important;padding-bottom:10px!important}#mall-ebooks .room-heading>span{display:none}#mall-ebooks .room-heading h2{font-size:18px;margin:0}#mall-ebooks .room-heading p{font-size:11px;line-height:1.4}#ebooks{padding-bottom:4px}}
