:root{--ink:#12283d;--muted:#5b6c7a;--line:#dce4eb;--blue:#174fa0;--accent:#d84d26;--paper:#f4f7fa;--radius:16px}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font:17px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}a{color:var(--blue);text-underline-offset:4px}a:hover{color:var(--accent)}button,input,select{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #ee9d32;outline-offset:4px}h1,h2,h3,p{margin-top:0}h1,h2{font-family:Georgia,"Times New Roman",serif;line-height:1.12;letter-spacing:-.025em}h1{font-size:clamp(2.25rem,4.2vw,4.5rem);font-weight:500}h2{font-size:clamp(1.8rem,2.5vw,2.6rem);font-weight:500}h3{font-size:1.12rem;line-height:1.4}img{max-width:100%;height:auto}.wrap{width:min(1240px,calc(100% - 64px));margin:auto}.preview{background:#edf2f6;font-size:.875rem;text-align:center;padding:8px 16px;color:#425567}.header{border-bottom:1px solid var(--line)}.nav{display:flex;align-items:center;gap:32px;min-height:94px}.brand{font-family:Georgia,serif;font-weight:bold;font-size:2.4rem;color:var(--ink);text-decoration:none;letter-spacing:-.08em}.brand-note{font-size:.82rem;line-height:1.3;display:block;letter-spacing:0;font-family:Arial,sans-serif;font-weight:400;margin-top:-8px}.nav-link{text-decoration:none;color:var(--ink);font-size:.94rem}.cart-link{margin-left:auto;text-decoration:none;border:1px solid var(--line);padding:10px 20px;border-radius:40px;color:var(--ink)}.crumbs{font-size:.875rem;color:var(--muted);margin:28px 0 32px}.crumbs a{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:.13em;font-size:.8rem;font-weight:600;color:var(--accent);margin-bottom:18px}.hero{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;padding:60px 0 70px}.hero h1{margin-bottom:24px}.intro{font-size:1.13rem;max-width:580px;color:#445869}.hero-art{background:#e8eff7;min-height:390px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius);position:relative;overflow:hidden}.hero-art:before{content:'';position:absolute;width:300px;height:300px;border:1px solid #b2c6dd;border-radius:50%;left:-100px;top:60px}.hero-art img{height:310px;width:auto;filter:drop-shadow(15px 20px 14px #143c6e33);position:relative;transform:rotate(-5deg)}.hero-caption{position:absolute;right:20px;bottom:20px;font-size:.8rem;line-height:1.5;width:140px;color:#3c5878}.actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:24px 0}.button{display:inline-flex;justify-content:center;align-items:center;border:1px solid var(--blue);background:var(--blue);color:#fff;border-radius:8px;text-decoration:none;padding:13px 20px;font-size:.94rem;font-weight:600;line-height:1.35;min-height:48px}.button:hover{background:#103d7e;color:#fff}.button.secondary{color:var(--blue);background:#fff}.button.secondary:hover{background:#eef4fb}.button:disabled{border-color:var(--line);background:#e8edf2;color:#6b7781;cursor:default}.section{padding:48px 0;border-top:1px solid var(--line)}.section-top{display:flex;justify-content:space-between;align-items:baseline;gap:24px;margin-bottom:24px}.section-top h2{margin:0}.question-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.question{display:block;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:26px;min-height:210px;transition:box-shadow .2s,transform .2s}.question:hover{box-shadow:0 8px 24px #152f4c12;transform:translateY(-3px)}.question small{color:var(--muted)}.question h3{margin:18px 0 12px;font-size:1.2rem}.question p{font-size:.94rem;color:var(--muted);margin:0}.search{display:flex;gap:12px;margin:24px 0 32px}.search input[type=search]{flex:1;min-width:0;border:1px solid #a9bac9;border-radius:8px;padding:12px 16px;background:white}.search label{display:flex;align-items:center;gap:8px;font-size:.94rem}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:36px 28px}.product{display:flex;flex-direction:column;min-width:0}.coverbox{background:var(--paper);height:250px;display:flex;align-items:center;justify-content:center;border-radius:12px;margin-bottom:18px}.coverbox img{max-height:215px;max-width:80%;object-fit:contain;filter:drop-shadow(5px 6px 6px #182d3f22)}.product a{text-decoration:none;color:var(--ink)}.product h3{font-size:1rem;margin-bottom:8px}.product .author{font-size:.875rem;color:var(--muted);margin-bottom:10px}.price{font-size:1.4rem;font-weight:650;letter-spacing:-.02em}.stock{font-size:.875rem;color:#26704b}.absent{color:var(--muted)}.product-bottom{margin-top:auto}.small{font-size:.875rem;color:var(--muted)}.book-hero{display:grid;grid-template-columns:330px 1fr;gap:70px;padding-bottom:52px;align-items:start}.book-cover{background:var(--paper);border-radius:16px;padding:32px;display:flex;justify-content:center}.book-cover img{width:260px;box-shadow:10px 15px 30px #213e5c24}.book-info h1{font-size:clamp(2.2rem,3.5vw,3.6rem);margin:16px 0 24px}.book-author{font-size:1.2rem;color:var(--blue)}.facts{display:flex;gap:10px 22px;flex-wrap:wrap;color:var(--muted);font-size:.94rem;margin-bottom:22px}.book-info .price{font-size:2.1rem}.book-note{max-width:650px;font-size:.94rem;color:var(--muted)}.description{max-width:850px;font-size:1.1rem}.chapter-list{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:0 40px}.chapter-list li{padding:14px 0;border-bottom:1px solid var(--line);display:flex;gap:16px;align-items:baseline}.chapter-list .number{font-size:.85rem;color:var(--muted);width:24px;flex:none}.chapter-list span:last-child{color:var(--muted)}.chapter-list .ready{font-weight:650}.article-layout{display:grid;grid-template-columns:minmax(0,760px) 290px;gap:70px;align-items:start}.article h1{font-size:clamp(2.2rem,3.7vw,3.6rem);margin-bottom:24px}.article .lead{font-size:1.3rem;line-height:1.6;color:#355571;border-left:3px solid var(--accent);padding:4px 0 4px 24px;margin:30px 0}.article h2{font-family:inherit;font-size:1.35rem;font-weight:650;letter-spacing:0;margin:36px 0 16px}.article p{line-height:1.85}.source{background:var(--paper);padding:24px;border-radius:12px;margin:36px 0;font-size:.94rem}.buybox{position:sticky;top:28px;background:var(--paper);padding:24px;border-radius:12px}.buybox img{height:180px;display:block;margin:0 auto 20px}.buybox h3{font-family:Georgia,serif;font-size:1.3rem}.buybox .actions{display:grid;margin-bottom:0}.buybox form,.buybox .button{width:100%}.article-toc{padding:20px 24px;border:1px solid var(--line);border-radius:12px;margin:26px 0}.article-toc a{display:block;margin:8px 0}.cart-row{display:grid;grid-template-columns:90px 1fr auto;gap:24px;align-items:center;border-bottom:1px solid var(--line);padding:24px 0}.cart-row img{max-height:110px;display:block}.cart-summary{margin:32px 0;background:var(--paper);padding:30px;border-radius:12px;max-width:600px;margin-left:auto}.cart-row input[type=number]{width:80px;padding:8px;border:1px solid #a9bac9;border-radius:6px}.pagination{display:flex;gap:14px;align-items:center;justify-content:center;margin:40px 0}.footer{margin-top:60px;border-top:1px solid var(--line);padding:36px 0 90px;font-size:.875rem;color:var(--muted)}.footer .wrap{display:flex;gap:32px;justify-content:space-between}.notice{background:#f2f5f8;border:1px solid var(--line);padding:18px 22px;border-radius:10px;margin:24px 0}.mobile-buy{display:none}.empty-cover{font-family:Georgia,serif;font-size:3rem;color:#a9b7c4}.error{max-width:700px;padding:60px 0}.skip{position:absolute;left:-10000px}.skip:focus{left:16px;top:16px;background:white;padding:12px;z-index:9}@media(max-width:900px){.wrap{width:calc(100% - 40px)}.nav{gap:20px}.hero{gap:30px}.hero-art{min-height:320px}.hero-art img{height:250px}.hero-caption{display:none}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.book-hero{grid-template-columns:250px 1fr;gap:32px}.article-layout{grid-template-columns:minmax(0,1fr);gap:30px}.buybox{display:none}.mobile-buy{display:flex;position:fixed;bottom:0;left:0;right:0;background:white;border-top:1px solid var(--line);padding:12px 20px calc(12px + env(safe-area-inset-bottom));gap:10px;z-index:5;box-shadow:0 -3px 18px #152c3f12}.mobile-buy form{flex:1}.mobile-buy .button{width:100%;font-size:.85rem;padding:12px}.question-grid{gap:12px}.question{padding:20px}.article{max-width:760px}.footer{padding-bottom:110px}}@media(max-width:600px){body{font-size:16px}.wrap{width:calc(100% - 32px)}.nav{min-height:82px;gap:18px}.brand{font-size:2rem}.brand-note{font-size:.7rem}.nav-link{font-size:.875rem}.nav .optional{display:none}.cart-link{padding:8px 12px;font-size:.85rem}.hero{grid-template-columns:1fr;padding:36px 0;gap:24px}.hero h1{font-size:2.7rem}.hero-art{min-height:270px}.hero-art img{height:230px}.intro{font-size:1rem}.section{padding:32px 0}.section-top{display:block}.section-top a{display:inline-block;margin-top:14px}.question-grid{grid-template-columns:1fr}.question{min-height:0}.question h3{margin-top:8px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 16px}.coverbox{height:190px}.coverbox img{max-height:160px}.search{flex-wrap:wrap}.search input[type=search]{flex-basis:65%}.search label{width:100%}.book-hero{grid-template-columns:1fr;gap:28px}.book-cover{padding:24px;max-width:270px;margin:auto}.book-cover img{max-height:270px;width:auto}.book-info h1{font-size:2.3rem}.chapter-list{grid-template-columns:1fr}.crumbs{margin:20px 0;font-size:.8rem}.article h1{font-size:2.3rem}.article .lead{font-size:1.15rem;padding-left:16px}.article p{line-height:1.8}.cart-row{grid-template-columns:60px 1fr;gap:16px}.cart-row .price{grid-column:2}.cart-summary{padding:22px}.footer .wrap{display:block}.footer .wrap p{margin-bottom:12px}.price{font-size:1.25rem}.product .button{font-size:.8rem;padding:10px}.facts{font-size:.85rem}.notice{padding:16px}.actions .button{flex:1}.article-toc{padding:18px}.header .nav-link{display:none}.header .nav-link:not(.optional){display:block}.nav{flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.brand{flex:1}.header .nav-link:not(.optional){order:3;flex-basis:100%;padding-top:8px;border-top:1px solid var(--line)}}

.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.85fr);gap:60px;align-items:start}.checkout-form{max-width:620px}.checkout-form label{display:block;margin-bottom:18px;font-size:.94rem}.checkout-form input:not([type=checkbox]),.checkout-form select,.checkout-form textarea{display:block;width:100%;margin-top:6px;padding:12px;border:1px solid #a9bac9;border-radius:8px;background:white;color:var(--ink)}.checkout-form h2{font-family:inherit;font-size:1.3rem;margin-top:30px}.checkout-form h2:first-child{margin-top:0}.checkout-form .consent{display:flex;align-items:flex-start;gap:10px;margin:28px 0}.checkout-form .consent input{margin-top:6px;flex:none}.checkout-summary{background:var(--paper);padding:28px;border-radius:14px;margin-bottom:30px}.checkout-summary h2{font-size:1.5rem}.review-line{display:flex;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);padding:16px 0}.review-line strong{white-space:nowrap}.review-line small{display:block;color:var(--muted)}@media(max-width:800px){.checkout-layout{grid-template-columns:1fr;gap:28px}.checkout-summary{grid-row:1;padding:20px}.review-line{gap:14px;font-size:.94rem}}

.catalog-filters{align-items:end;flex-wrap:wrap;gap:16px}.catalog-filters label{display:block;font-size:.875rem;color:var(--muted)}.catalog-filters .search-query{flex:1;min-width:240px}.catalog-filters input[type=search],.catalog-filters select{display:block;width:100%;margin-top:6px;min-height:48px;border:1px solid #a9bac9;border-radius:8px;padding:10px 12px;color:var(--ink);background:white}.catalog-filters .stock-filter{display:flex;gap:8px;align-items:center;min-height:48px}.reset-filters{padding-bottom:12px}.product-bottom form,.product-bottom .button{width:100%}.product-bottom .button{margin-top:12px;font-size:.875rem;padding:10px;min-height:44px}.remove-link{color:var(--muted);border:0;background:none;padding:12px 0;text-decoration:underline;cursor:pointer}.remove-link:hover{color:var(--accent)}.cart-warning{color:#a32d20;font-size:.94rem}@media(max-width:600px){.catalog-filters{display:block}.catalog-filters label{margin-bottom:14px}.catalog-filters .search-query{min-width:0}.catalog-filters .stock-filter{width:100%}.catalog-filters .button{width:100%}.reset-filters{display:block;text-align:center;margin-top:12px}}

/* Modern KDU: one type family, compact shelving, publisher's mark as a graphic. */
:root{--ink:#242326;--muted:#737078;--line:#e7e4e6;--blue:#754b4d;--accent:#754b4d;--paper:#f5f3f4;--radius:14px;--brand:#754b4d}body{background:#fff;font-family:Arial,Helvetica,sans-serif;line-height:1.5;color:var(--ink)}h1,h2,h3,.brand,.price,.empty-cover{font-family:inherit;letter-spacing:-.035em}h1,h2{font-weight:650}h1{font-size:38px}h2{font-size:28px}a:hover{color:#573436}.wrap{width:min(1320px,calc(100% - 64px))}.preview{background:#f5f3f4;color:#777079;padding:4px 16px;font-size:11px}.header{background:#fff;border-bottom:1px solid var(--line)}.nav{min-height:105px;gap:26px;flex-wrap:nowrap}.brand{display:flex;align-items:center;gap:12px;flex:none;text-decoration:none}.brand img{width:58px;height:64px;object-fit:contain}.brand-type{font-size:33px;line-height:1;font-weight:750;letter-spacing:-.05em;color:var(--brand)}.brand-note{font-size:10px;font-family:inherit;line-height:1.2;margin:5px 0 0;letter-spacing:0;font-weight:500;color:#524b51}.catalog-button{display:flex;align-items:center;gap:10px;padding:13px 18px;background:var(--brand);color:white;text-decoration:none;border-radius:10px;font-size:14px;font-weight:600}.catalog-button:hover{background:#5d373a;color:white}.header-search{display:flex;flex:1;min-width:0;background:#f5f3f4;border:1px solid transparent;border-radius:10px;overflow:hidden}.header-search:focus-within{border-color:var(--brand)}.header-search input{min-width:0;width:100%;background:transparent;border:0;padding:14px 16px;color:var(--ink);font-size:14px}.header-search button{border:0;background:none;display:flex;align-items:center;padding:0 16px;color:var(--brand)}.cart-link{display:flex;align-items:center;gap:9px;border:0;border-radius:0;padding:12px 0 12px 10px;color:var(--ink);font-size:13px;margin-left:0;white-space:nowrap}.button{border-radius:9px;border-color:var(--brand);background:var(--brand);font-size:13px;font-weight:600;padding:12px 17px;min-height:44px}.button:hover{background:#5c3639}.button.secondary{color:var(--brand);background:#f4eeee}.button.secondary:hover{background:#e9dfe0}.text-link{display:inline-flex;align-items:center;gap:12px;font-size:13px;font-weight:600;color:var(--brand);text-decoration:none;padding:8px 0}.text-link:hover{text-decoration:underline}.eyebrow{font-size:12px;text-transform:none;letter-spacing:0;color:var(--brand);margin-bottom:16px;font-weight:600}.home-heading{padding:28px 0 24px}.home-heading h1{font-size:25px;line-height:1.25;margin:0 0 7px}.home-heading p{font-size:13px;color:var(--muted);margin:0}.book-discovery{display:grid;grid-template-columns:.88fr 1.3fr;background:#f5f2f1;border-radius:18px;overflow:hidden;min-height:475px}.discovery-visual{background:#754b4d;position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;overflow:hidden;min-height:475px}.editorial-label{position:absolute;top:25px;left:26px;border:1px solid #ffffff66;border-radius:30px;padding:5px 12px;color:#fff;font-size:11px;z-index:2}.graphic-orbit{position:absolute;border:1px solid #e4c8bd55;border-radius:50%;width:490px;height:490px;z-index:-1;transform:rotate(-35deg) scaleX(.55)}.orbit-one{left:-130px;top:-105px}.orbit-two{right:-130px;bottom:-155px;transform:rotate(40deg) scaleX(.5)}.discovery-visual:after{content:'';position:absolute;width:200px;height:200px;background:url('/assets/kdu-emblem.png') center/contain no-repeat;right:-42px;top:40px;opacity:.13;filter:brightness(0) invert(1);z-index:-1}.discovery-cover{display:block;transform:rotate(-5deg);margin-top:25px}.discovery-cover img{height:310px;width:auto;max-width:280px;display:block;filter:drop-shadow(15px 24px 14px #24101655)}.visual-signature{position:absolute;bottom:21px;left:27px;color:#efdddf;letter-spacing:.16em;font-size:10px}.discovery-body{padding:32px 40px 28px}.discovery-body h2{font-size:46px;line-height:1.04;letter-spacing:-.05em;margin:0 0 17px;font-weight:700}.discovery-intro{font-size:14px;color:#666068;max-width:470px;margin-bottom:0;line-height:1.6}.discovery-actions{display:flex;align-items:center;gap:22px;margin:20px 0 22px}.discovery-questions{border-top:1px solid #dcd2d3;padding-top:16px}.discovery-questions h3{font-size:11px;color:#797079;letter-spacing:0;font-weight:500;margin:0 0 6px}.discovery-questions>a{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:13px;font-weight:500;color:#3c3339;text-decoration:none;border-bottom:1px solid #e5dedf;padding:9px 0;line-height:1.35}.discovery-questions>a:last-child{border:0}.discovery-questions>a:hover{color:var(--brand)}.discovery-questions>a>span:last-child{color:var(--brand)}.section{padding:32px 0;border-top:0}.section-top{align-items:center;margin-bottom:17px}.section-top h2{font-size:26px;margin:0;font-weight:650}.shelf-topics{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 26px}.shelf-topics a{font-size:12px;padding:7px 13px;border-radius:30px;background:#f5f3f4;color:#60545b;text-decoration:none}.shelf-topics a:hover{background:#ebe1e2;color:var(--brand)}.grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:32px 28px}.product{position:relative;min-width:0}.coverbox{height:230px;background:none;justify-content:flex-start;align-items:flex-end;border-radius:0;margin-bottom:14px;padding:0}.coverbox img{max-width:100%;max-height:230px;object-fit:contain;filter:drop-shadow(3px 4px 3px #27161f19)}.product h3{font-size:13px;font-weight:500;line-height:1.4;letter-spacing:0;margin:5px 0 9px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.product .author{font-size:11px;color:#8a8189;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0}.product .price{font-size:19px;font-weight:700;letter-spacing:-.035em}.product .stock{font-size:11px;color:#647a60;margin:3px 0}.product-bottom .button{border-radius:8px;font-size:12px;margin-top:10px;min-height:38px;padding:8px}.product-bottom{margin-top:auto}.product-promo{position:absolute;top:0;left:0;padding:4px 8px;border-radius:6px;font-size:11px;font-weight:600;color:white;background:var(--brand);z-index:2}.product-promo.sale{background:#a94350}.footer{margin-top:24px;padding:26px 0 35px;background:#f7f6f6;border-top:1px solid var(--line)}.footer p{font-size:12px;line-height:1.7;margin:0}.book-author{color:var(--brand)}.book-info h1,.article h1{font-family:inherit;font-size:36px;font-weight:650}.article .lead{color:#5c5058}.article h2{font-family:inherit}.question h3,.buybox h3{font-family:inherit}.question{border-radius:12px}.book-cover{background:#f6f4f5}.book-cover img{border-radius:2px}.source,.buybox,.cart-summary,.checkout-summary{background:#f6f4f5}.catalog-filters input[type=search],.catalog-filters select,.checkout-form input:not([type=checkbox]),.checkout-form select,.checkout-form textarea{border-radius:9px;border-color:#d7d0d5}.cart-row h3{letter-spacing:0}.article .lead{border-color:var(--brand)}
@media(max-width:1100px){.nav{gap:18px}.grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:28px 22px}.book-discovery{grid-template-columns:.85fr 1.2fr}.discovery-body{padding:30px}.discovery-body h2{font-size:41px}.discovery-cover img{height:280px}.coverbox,.coverbox img{max-height:210px}.coverbox{height:210px}}
@media(max-width:800px){.nav{gap:16px;flex-wrap:wrap;padding:15px 0}.brand{flex:1}.brand img{width:44px;height:48px}.brand-type{font-size:28px}.brand-note{font-size:9px}.catalog-button{order:3;font-size:13px;padding:12px 15px}.header-search{order:4;flex-basis:60%}.cart-link{font-size:12px}.book-discovery{grid-template-columns:.8fr 1.2fr}.discovery-body{padding:25px}.discovery-body h2{font-size:35px}.discovery-intro{font-size:13px}.discovery-visual{min-height:430px}.discovery-cover img{height:250px;max-width:90%}.editorial-label{left:16px;top:18px;font-size:10px}.discovery-actions{gap:13px;flex-wrap:wrap}.discovery-questions>a{font-size:12px}.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 20px}.coverbox{height:205px}.coverbox img{max-height:205px}.home-heading h1{font-size:23px}}
@media(max-width:600px){.wrap{width:calc(100% - 32px)}.nav{min-height:0;gap:12px}.brand{gap:9px}.brand img{width:40px;height:44px}.brand-type{font-size:26px}.brand-note br{display:none}.brand-note{max-width:150px;line-height:1.3;font-size:9px;margin-top:4px}.catalog-button{padding:11px 12px;gap:7px;font-size:12px;border-radius:9px}.header-search{flex:1;flex-basis:55%;border-radius:9px}.header-search input{font-size:12px;padding:11px 9px}.header-search button{padding:0 11px}.cart-link{padding:8px 0;gap:6px}.cart-link span{font-size:11px}.home-heading{padding:22px 0 18px}.home-heading h1{font-size:21px;line-height:1.2}.home-heading p{font-size:11px;line-height:1.5}.book-discovery{grid-template-columns:1fr;border-radius:14px;min-height:0}.discovery-visual{min-height:260px;max-height:260px}.discovery-cover{margin-top:15px;transform:rotate(-7deg)}.discovery-cover img{height:220px;max-width:100%}.editorial-label{top:18px;left:18px}.visual-signature{bottom:17px;left:18px;font-size:9px}.graphic-orbit{width:400px;height:400px}.discovery-visual:after{width:145px;height:145px;right:5px;top:75px}.discovery-body{padding:24px}.discovery-body .eyebrow{font-size:11px;margin-bottom:12px}.discovery-body h2{font-size:34px;line-height:1.04;max-width:320px;margin-bottom:14px}.discovery-body h2 br{display:none}.discovery-intro{font-size:12px;line-height:1.65}.discovery-actions{margin:16px 0 20px;gap:16px}.discovery-actions .button{flex:none;font-size:12px;padding:11px 13px}.discovery-actions .text-link{font-size:12px;gap:5px}.discovery-questions{padding-top:14px}.discovery-questions h3{font-size:10px}.discovery-questions>a{font-size:12px;padding:11px 0}.section{padding:26px 0}.section-top{display:flex;gap:12px;margin-bottom:14px;align-items:baseline}.section-top h2{font-size:21px}.section-top>.text-link{font-size:11px;gap:4px;white-space:nowrap;margin:0}.shelf-topics{gap:6px;margin-bottom:20px}.shelf-topics a{font-size:11px;padding:6px 10px}.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:25px 14px}.coverbox{height:150px;margin-bottom:10px}.coverbox img{max-height:150px}.product h3{font-size:11px;line-height:1.4;-webkit-line-clamp:3;margin:4px 0 8px}.product .author{font-size:9px;-webkit-line-clamp:2}.product .price{font-size:16px}.product .stock{font-size:10px}.product-bottom .button{font-size:10px;min-height:34px;padding:7px 4px;margin-top:7px}.footer{margin-top:16px;padding:22px 0 35px}.footer .wrap{display:block}.footer p{font-size:11px}.footer .wrap p{margin-bottom:12px}.book-info h1,.article h1{font-size:28px}.preview{font-size:10px;padding:4px 8px}.product-promo{font-size:9px;padding:3px 5px}}
@media(max-width:360px){.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px}.coverbox{height:185px}.coverbox img{max-height:185px}.product h3{font-size:12px}.product .author{font-size:10px}.product-bottom .button{font-size:11px}.section-top{flex-wrap:wrap;gap:3px}.brand-note{max-width:125px}.discovery-body{padding:20px}.discovery-actions{gap:9px}}
@media(max-width:600px){.brand{min-width:190px}.discovery-cover{margin-top:36px}.discovery-cover img{height:195px}.visual-signature{display:none}}
/* Знак с подписью под фигурой — единый вертикальный логотип. */
.nav{min-height:138px}.brand{flex-direction:column;gap:4px;width:140px;min-width:140px;flex:none;padding:10px 0}.brand img{width:74px;height:81px}.brand .brand-note{font-family:inherit;font-size:11px;font-weight:600;line-height:1.2;letter-spacing:0;text-align:center;margin:0;color:var(--brand);max-width:none}.brand .brand-note br{display:block}.catalog-link{color:var(--ink);font-size:14px;font-weight:500;text-decoration:none;padding:12px 0;white-space:nowrap}.catalog-link:hover{color:var(--brand);text-decoration:underline;text-underline-offset:5px}
@media(max-width:800px){.nav{min-height:0;gap:16px}.brand{width:108px;min-width:108px;flex:none;padding:0}.brand img{width:56px;height:61px}.brand .brand-note{font-size:10px}.catalog-link{font-size:13px}.header-search{order:4;flex-basis:100%}.cart-link{margin-left:auto}}
@media(max-width:600px){.nav{gap:12px;padding:12px 0}.brand{width:100px;min-width:100px;flex:none;gap:3px}.brand img{width:50px;height:55px}.brand .brand-note{font-size:9px;line-height:1.2;max-width:none}.catalog-link{font-size:12px;padding:10px 0}.header-search{flex-basis:100%}.cart-link{margin-left:auto}}
/* Тёплая шапка в две строки; фирменный цвет — в знаке и акцентах. */
:root{--ink:#302922;--muted:#80756a;--line:#eae2d6;--paper:#fff8ec}.preview{background:#f5eddf;color:#817466}.header{background:#fff4df;border-bottom:1px solid #eee0c8}.nav{min-height:136px;gap:44px}.header-menu{display:flex;align-items:center;flex:1;gap:32px}.header-menu a{font-size:14px;font-weight:500;color:#514234;text-decoration:none;white-space:nowrap}.header-menu a:hover{color:var(--brand);text-decoration:underline;text-underline-offset:5px}.header-menu a span{font-size:12px;color:#9b7d5d}.cart-link{margin-left:auto;color:#514234}.search-row{padding-bottom:20px}.header-search{background:#fffdf9;border:1px solid #e9dac1;border-radius:12px;width:100%;max-width:none}.header-search input{padding:14px 18px;color:#514234}.header-search input::placeholder{color:#9b8b79}.header-search button{color:#8f633f;padding:0 20px}.book-discovery{margin-top:28px;background:#fffbf4}.discovery-visual{background:linear-gradient(135deg,#ffe8b9 0%,#ffd291 65%,#ffc47b 100%)}.editorial-label{background:#fff9eeaa;border-color:#b97e3d55;color:#82552c}.graphic-orbit{border-color:#c1874355}.discovery-visual:after{opacity:.09;filter:none}.visual-signature{color:#966432}.discovery-questions{border-color:#e8ddca}.discovery-questions>a{border-color:#eee6d8;color:#504438}.discovery-questions h3{color:#93806c}.discovery-intro{color:#80715f}.discovery-body h1{font-size:46px;line-height:1.04;letter-spacing:-.05em;margin:0 0 17px;font-weight:700}.shelf-topics a{background:#fff4e0;color:#8d633b}.shelf-topics a:hover{background:#ffe3b3;color:#66431e}.footer{background:#fff8ed;border-color:#eee2d0}.source,.buybox,.cart-summary,.checkout-summary{background:#fff8ed}.book-cover{background:#fff8ed}.stock{color:#647a60}
@media(max-width:1100px){.nav{gap:24px}.header-menu{gap:22px}.header-menu a{font-size:13px}.discovery-body h1{font-size:41px}}
@media(max-width:800px){.nav{flex-wrap:wrap;gap:12px 25px;padding:14px 0;min-height:0}.header-menu{order:3;flex-basis:100%;justify-content:space-between;gap:12px;border-top:1px solid #e9dac1;padding-top:14px}.header-menu a{font-size:12px}.search-row{padding-bottom:16px}.header-search{flex-basis:auto}.discovery-body h1{font-size:35px}}
@media(max-width:600px){.nav{padding:12px 0;gap:12px 18px}.header-menu{overflow-x:auto;justify-content:flex-start;gap:22px;padding:12px 0 3px}.header-menu a{font-size:12px;flex:none}.header-search input{font-size:13px;padding:12px 14px}.header-search button{padding:0 14px}.search-row{padding-bottom:15px}.book-discovery{margin-top:20px}.discovery-body h1{font-size:34px;line-height:1.04;max-width:320px;margin-bottom:14px}.discovery-body h1 br{display:none}}

@font-face{font-family:Manrope;font-style:normal;font-weight:400;font-display:swap;src:url(/assets/manrope-400.ttf) format("truetype")}@font-face{font-family:Manrope;font-style:normal;font-weight:500;font-display:swap;src:url(/assets/manrope-500.ttf) format("truetype")}@font-face{font-family:Manrope;font-style:normal;font-weight:600;font-display:swap;src:url(/assets/manrope-600.ttf) format("truetype")}@font-face{font-family:Manrope;font-style:normal;font-weight:700;font-display:swap;src:url(/assets/manrope-700.ttf) format("truetype")}
body,button,input,select,textarea,h1,h2,h3,.brand,.brand-note,.price,.empty-cover,.buybox h3,.question h3{font-family:Manrope,Arial,sans-serif!important}h1,h2{font-weight:700;letter-spacing:-.04em}.discovery-body h1{letter-spacing:-.045em;line-height:1.12}.product h3{font-weight:500;line-height:1.5}.header-menu a{font-weight:500}.brand .brand-note{font-weight:700}
/* Шапка — самостоятельная плашка, а не сплошная заливка верха. */
.header{background:#fff;border:0;padding-top:18px}.header .nav{background:#fff0d3;border:1px solid #f1dfbd;border-radius:22px;padding:12px 25px;min-height:138px;gap:30px}.header-menu{gap:12px}.header-menu a{background:#fffdf9;border:1px solid #f6e8d0;border-radius:12px;padding:13px 22px;text-align:center;color:#754b4d;font-weight:600;font-size:13px}.header-menu a:hover{background:white;border-color:#d9b985;text-decoration:none}.header-menu a span{color:inherit}.header .cart-link{padding:12px;color:#754b4d}.header .search-row{padding:16px 0 0}.header-search{background:#faf9f6;border-color:#eae5dc}.header .brand{padding:0}.book-discovery{margin-top:24px}
@media(max-width:1100px){.header .nav{gap:20px;padding:14px 20px}.header-menu{gap:8px}.header-menu a{padding:12px 13px;font-size:12px}}
@media(max-width:800px){.header{padding-top:14px}.header .nav{gap:14px 20px;padding:16px 20px;border-radius:18px;min-height:0}.header-menu{border-top:0;padding:0;justify-content:flex-start;flex-wrap:wrap;overflow:visible;gap:9px}.header-menu a{font-size:12px;padding:10px 15px}.header .search-row{padding:14px 0 0}.header .cart-link{padding:8px 0}}
@media(max-width:600px){.header{padding-top:12px}.header .nav{padding:16px;border-radius:17px;gap:15px 16px}.header-menu{display:grid;grid-template-columns:1fr 1fr;gap:8px;flex-basis:100%;width:100%}.header-menu a{font-size:11px;line-height:1.4;white-space:normal;padding:10px 8px;display:flex;align-items:center;justify-content:center;gap:4px;min-height:39px;border-radius:9px}.header-menu a span{font-size:10px}.header .cart-link{margin-left:auto}.header .search-row{padding-top:12px}.book-discovery{margin-top:18px}}
/* Композиция старой шапки: цвета и графика взяты из действующей темы Drupal. */
.legacy-header{padding-top:16px;background:#fff}.legacy-frame{overflow:hidden;border-radius:12px}.legacy-band{background:#193950;display:flex;align-items:center;gap:30px;padding:17px 30px 12px;min-height:172px}.legacy-brand{display:flex;flex-direction:column;align-items:center;width:125px;flex:none;text-decoration:none;gap:5px}.legacy-brand img{height:106px;width:auto;display:block}.legacy-brand span{font-size:10px;line-height:1.2;text-align:center;font-weight:600;color:#fff}.legacy-title{flex:1}.legacy-title>a{font-size:31px;line-height:1.2;color:#e28b08;font-weight:700;text-decoration:none;letter-spacing:-.025em}.legacy-title p{font-size:15px;color:#fff;margin:14px 0 0}.legacy-contact{display:flex;flex-direction:column;gap:6px;text-align:right}.legacy-contact>a{color:#fff;font-size:23px;font-weight:700;text-decoration:none;white-space:nowrap}.legacy-contact span{color:#c7d3dc;font-size:11px}.legacy-band .cart-link{display:flex;flex-direction:column;justify-content:center;gap:8px;color:#fff;background:#5b5c5c;border-radius:4px;padding:17px 15px;margin:0;font-size:12px;min-width:82px}.legacy-band .cart-link svg{width:30px;height:30px}.legacy-book-edge{height:38px;background:url('/assets/book-edge.png') center/100% 100% no-repeat}.legacy-navigation{background:#e6e6e6;padding:0 24px;border-top:1px dashed #a9a9a9}.legacy-navigation .header-menu{display:flex;justify-content:space-around;flex-wrap:wrap;gap:0;padding:0;border:0}.legacy-navigation .header-menu a{background:none;border:0;border-radius:0;padding:15px 22px;color:#393939;font-size:14px;font-weight:500}.legacy-navigation .header-menu a:hover{color:#754b4d;background:#f0f0f0}.legacy-header .search-row{padding:16px 0 0}.legacy-header .header-search{background:#faf9f6}
@media(max-width:1100px){.legacy-band{gap:22px;padding:18px 22px}.legacy-title>a{font-size:27px}.legacy-contact>a{font-size:18px}.legacy-title p{font-size:13px}.legacy-brand{width:105px}.legacy-navigation .header-menu a{font-size:13px;padding:14px 16px}}
@media(max-width:800px){.legacy-band{flex-wrap:wrap;gap:17px 20px}.legacy-brand{width:88px}.legacy-brand img{height:88px}.legacy-title{flex-basis:calc(100% - 130px)}.legacy-title>a{font-size:27px}.legacy-title p{font-size:12px}.legacy-contact{flex:1;text-align:left;padding-left:8px}.legacy-band .cart-link{flex-direction:row;padding:10px 14px;min-width:0}.legacy-band .cart-link svg{width:22px;height:22px}.legacy-navigation{padding:0 12px}.legacy-navigation .header-menu{display:flex;gap:0;justify-content:flex-start}.legacy-navigation .header-menu a{padding:12px 14px;font-size:12px}.legacy-book-edge{height:27px}}
@media(max-width:600px){.legacy-header{padding-top:12px}.legacy-frame{border-radius:10px}.legacy-band{padding:16px;gap:15px}.legacy-brand{width:70px}.legacy-brand img{height:75px}.legacy-brand span{font-size:8px}.legacy-title{flex-basis:calc(100% - 90px)}.legacy-title>a{font-size:22px}.legacy-title p{font-size:11px;line-height:1.5;margin-top:9px;max-width:190px}.legacy-contact{padding:0}.legacy-contact>a{font-size:16px}.legacy-contact span{font-size:9px}.legacy-band .cart-link{font-size:11px;padding:9px 11px;gap:7px}.legacy-navigation{padding:4px}.legacy-navigation .header-menu{display:grid;grid-template-columns:1fr 1fr;gap:0}.legacy-navigation .header-menu a{font-size:11px;padding:10px 6px;min-height:38px}.legacy-book-edge{height:23px}.legacy-header .search-row{padding-top:12px}}
/* Фигура без нижней подписи, название издательства уже рядом. */
.legacy-brand{width:140px}.legacy-brand img{height:130px}.legacy-band{min-height:174px}
@media(max-width:800px){.legacy-brand{width:104px}.legacy-brand img{height:105px}.legacy-title{flex-basis:calc(100% - 130px)}}
@media(max-width:600px){.legacy-brand{width:80px}.legacy-brand img{height:88px}.legacy-title{flex-basis:calc(100% - 100px)}}
/* Навигация по задачам посетителя и первые содержательные разделы. */
.legacy-navigation .header-menu a{padding:15px 18px;font-size:13px}.legacy-contact>a.legacy-contact-more{font-size:11px;font-weight:400;color:#c7d3dc;text-decoration:underline;text-underline-offset:3px}.information-page{padding:0 0 25px}.information-page h1{font-size:38px;margin-bottom:18px}.page-intro{font-size:18px;line-height:1.65;color:#74685d;max-width:800px;margin-bottom:32px}.task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.task-card{padding:26px;background:#fff8ec;border:1px solid #eee4d2;border-radius:14px;min-width:0}.task-card h2{font-size:21px;margin-bottom:14px;line-height:1.25}.task-card p{font-size:14px;line-height:1.75;color:#74685d;margin-bottom:14px}.task-card .text-link{font-size:13px;overflow-wrap:anywhere}.partners-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.action-panel{display:flex;gap:36px;align-items:center;justify-content:space-between;padding:30px;margin:28px 0;border:1px solid #e7e0d6;border-radius:14px}.action-panel>div{max-width:800px}.action-panel h2{font-size:24px;margin-bottom:14px}.action-panel p{font-size:15px;color:#74685d;line-height:1.7;margin-bottom:12px}.action-panel .button{flex:none}.action-panel p:last-child{margin-bottom:0}.information-page .small{font-size:12px}
@media(max-width:800px){.legacy-navigation .header-menu a{padding:12px 13px;font-size:12px}.task-grid{grid-template-columns:1fr}.action-panel{display:block;padding:25px}.action-panel>.button{margin-top:20px}.task-card{padding:23px}}
@media(max-width:600px){.legacy-navigation .header-menu{display:flex;flex-wrap:wrap;justify-content:center}.legacy-navigation .header-menu a{font-size:11px;min-height:38px;padding:10px 11px}.information-page h1{font-size:28px;line-height:1.2}.page-intro{font-size:15px;margin-bottom:24px}.task-card h2{font-size:20px}.action-panel{padding:21px}.action-panel h2{font-size:22px}.action-panel p{font-size:14px}}
/* Более собранная ширина, ориентир — основная колонка главной BookOnLime. */
.wrap{width:min(1170px,calc(100% - 64px))}
@media(max-width:900px){.wrap{width:calc(100% - 40px)}}
@media(max-width:600px){.wrap{width:calc(100% - 32px)}}
/* Завершающий блок — пара к верхней обложке. */
.closing-footer{margin-top:46px;padding-bottom:30px;background:#fff}.closing-frame{background:#193950;border-radius:0 0 12px 12px;overflow:hidden}.closing-book-edge{height:35px;background:url('/assets/book-edge.png') center/100% 100% no-repeat;transform:rotate(180deg)}.closing-body{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:45px;padding:34px 36px 30px}.closing-brand>a:first-child{display:inline-block;color:#e28b08;font-size:25px;font-weight:700;text-decoration:none;letter-spacing:-.035em}.closing-brand p{font-size:12px;color:#d6e0e7;margin:10px 0 22px}.closing-brand a.closing-phone{font-size:18px;font-weight:600;color:#fff;text-decoration:none;white-space:nowrap}.closing-links{display:flex;flex-direction:column;gap:13px;padding-top:5px}.closing-links a{font-size:12px;color:#f0f3f6;text-decoration:none;line-height:1.5}.closing-links a:hover{color:#ffc36b;text-decoration:underline;text-underline-offset:4px}.closing-bottom{border-top:1px solid #ffffff26;display:flex;justify-content:space-between;gap:18px;padding:18px 36px 22px;color:#adc0ce;font-size:10px;line-height:1.6}
@media(max-width:800px){.closing-body{grid-template-columns:1fr 1fr;gap:28px;padding:28px}.closing-brand{grid-column:1/-1}.closing-brand p{margin-bottom:13px}.closing-bottom{padding:17px 28px 22px;flex-wrap:wrap}.closing-footer{padding-bottom:110px}.closing-book-edge{height:27px}}
@media(max-width:600px){.closing-footer{margin-top:30px}.closing-body{padding:24px 22px;gap:23px 17px}.closing-brand>a:first-child{font-size:23px}.closing-brand p{font-size:11px}.closing-brand a.closing-phone{font-size:17px}.closing-links a{font-size:11px}.closing-links{gap:13px}.closing-bottom{display:flex;flex-direction:column;gap:7px;padding:16px 22px 21px;font-size:9px}.closing-book-edge{height:23px}}
/* Обложка на белом фоне: спокойная рамка вместо цветной декорации. */
.book-discovery{min-height:420px;border:1px solid #e5e2dd;background:#fffcf7}.discovery-visual{background:#fff;min-height:420px;border-right:1px solid #e8e4df}.discovery-visual:after,.discovery-visual .graphic-orbit{display:none}.editorial-label{background:#fff;border:1px solid #ded8d0;color:#75604e}.visual-signature{color:#85796e}.discovery-cover img{height:280px;filter:drop-shadow(6px 10px 8px #2d242421)}.discovery-body{padding:25px 36px 21px}.discovery-body h1{font-size:42px}.discovery-actions{margin:17px 0 18px}.discovery-questions{padding-top:13px}.discovery-questions>a{padding:8px 0}
@media(max-width:1100px){.discovery-body{padding:25px 28px}.discovery-body h1{font-size:38px}.discovery-cover img{height:260px}}
@media(max-width:800px){.discovery-body{padding:24px}.discovery-body h1{font-size:34px}.discovery-cover img{height:235px}}
@media(max-width:600px){.book-discovery{min-height:0}.discovery-visual{min-height:245px;max-height:245px;border-right:0;border-bottom:1px solid #e8e4df}.discovery-cover{margin-top:15px}.discovery-cover img{height:183px}.editorial-label{font-size:10px;top:15px;left:16px}.visual-signature{display:block;font-size:8px;bottom:12px;left:16px}.discovery-body{padding:23px}.discovery-body h1{font-size:32px}.discovery-actions{margin:17px 0 18px}.discovery-questions>a{padding:10px 0}}
/* Единый светлый тёплый тон поиска, презентации и навигации. */
:root{--surface-warm:#f8f6f1;--surface-warm-line:#e5e0d7}
.header-search,.legacy-header .header-search{background:var(--surface-warm);border-color:var(--surface-warm-line)}
.book-discovery,.discovery-visual{background:var(--surface-warm);border-color:var(--surface-warm-line)}
.discovery-body{background:var(--surface-warm)}
.discovery-visual{border-right:0}
.editorial-label{background:var(--surface-warm);border-color:#ded8cd}
.legacy-navigation{background:var(--surface-warm);border-color:#d5cec2}
.legacy-navigation .header-menu a:hover{background:#efebe2}
@media(max-width:600px){.discovery-visual{border-bottom:0}}

/* Страницы раскрытой книги совпадают с тёплой заливкой меню. */
.legacy-book-edge,.closing-book-edge{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201024%2048%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22%23e5a047%22%20d%3D%22M0%200H1024V48H0Z%22%2F%3E%3Cpath%20fill%3D%22%23f8f6f1%22%20d%3D%22M0%2020C190%202%20484-12%20512%2046C540-12%20834%202%201024%2020V48H0Z%22%2F%3E%3C%2Fsvg%3E")}
.legacy-navigation{border-top:0}
/* Единый оранжевый акцент: книжная линия, название издательства, действия. */
:root{--action-orange:#e5a047;--action-orange-hover:#d89236;--action-ink:#302719}
.legacy-title>a,.closing-brand>a:first-child{color:var(--action-orange)}
.button,.product-bottom .button,.legacy-band .cart-link{background:var(--action-orange);border-color:var(--action-orange);color:var(--action-ink)}
.button:hover,.product-bottom .button:hover,.legacy-band .cart-link:hover{background:var(--action-orange-hover);border-color:var(--action-orange-hover);color:var(--action-ink)}
.button.secondary,.product-bottom .button.secondary{background:#fff3df;border-color:var(--action-orange);color:#704919}
.button.secondary:hover,.product-bottom .button.secondary:hover{background:#ffe5bc;border-color:var(--action-orange-hover);color:#50320e}
.button:disabled,.button:disabled:hover{background:#ece7df;border-color:#ded6cb;color:#948b7f}
.header-search button{color:#8a5819}.header-search button:hover{background:#fff0d8}
.shelf-topics a{background:#fff0d8;color:#80501a}.shelf-topics a:hover{background:#ffe1b4;color:#5b380e}
.remove-link:hover{color:#925b1b}
/* Более выразительный оранжевый книжный профиль. */
.legacy-book-edge,.closing-book-edge{height:56px}
@media(max-width:800px){.legacy-book-edge,.closing-book-edge{height:42px}}
@media(max-width:600px){.legacy-book-edge,.closing-book-edge{height:34px}}
/* Проба тёплого графита вместо синего, согласована владельцем. */
.legacy-band,.closing-frame{background:#34312e}
.legacy-title p,.closing-brand p{color:#e3ddd5}
.legacy-contact>a.legacy-contact-more{color:#d3c8b9}
.closing-links a{color:#f2ece4}
.closing-bottom{color:#c0b6a9}
/* Примерка выбранного варианта3: белый контур на графите. */
.legacy-brand img{mix-blend-mode:lighten;object-fit:contain}
/* Увеличенный меловой знак и общая нижняя линия содержимого шапки. */
.legacy-band{align-items:flex-end;padding-top:18px;padding-bottom:20px;gap:30px}
.legacy-brand{position:relative;width:140px;height:150px;overflow:hidden;align-self:center;display:block}
.legacy-brand img{height:195px;width:auto;max-width:none;position:absolute;top:-14px;left:50%;transform:translateX(-50%)}
.legacy-title{padding-bottom:6px}.legacy-title>a{line-height:1.2}.legacy-title p{margin-top:6px;line-height:20px}
.legacy-contact{padding-bottom:6px;gap:6px}.legacy-contact>a:first-child{line-height:28px}.legacy-contact>a.legacy-contact-more{line-height:16px}
.legacy-band .cart-link{margin-bottom:8px}
@media(max-width:1100px){.legacy-band{gap:22px}.legacy-brand{width:130px}.legacy-title p{line-height:19px}}
@media(max-width:800px){.legacy-brand{width:104px;height:120px}.legacy-brand img{height:156px;top:-11px}.legacy-title{flex-basis:calc(100% - 140px);padding-bottom:6px}.legacy-title p{line-height:18px}.legacy-contact{padding-bottom:0}.legacy-band .cart-link{margin-bottom:0;align-self:flex-end}.legacy-band{gap:16px 22px}}
@media(max-width:600px){.legacy-band{padding:17px 16px;gap:17px 15px}.legacy-brand{width:85px;height:104px}.legacy-brand img{height:135px;top:-10px}.legacy-title{flex-basis:calc(100% - 100px);padding-bottom:4px}.legacy-title p{margin-top:5px;line-height:17px}.legacy-contact{padding-bottom:0;gap:4px}.legacy-contact>a:first-child{line-height:22px}.legacy-contact>a.legacy-contact-more{line-height:14px}}
/* Девять равных пунктов навигации. */
.legacy-navigation{padding:12px 15px}
.legacy-navigation .header-menu{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:8px;padding:0;overflow:visible}
.legacy-navigation .header-menu a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:10px 4px;border:1px solid #ddd5c8;border-radius:8px;background:#fffdf8;color:#514434;font-size:11px;line-height:1.3;font-weight:600;text-align:center;white-space:nowrap;text-decoration:none}
.legacy-navigation .header-menu a:hover{background:#fff0d8;border-color:#e5a047;color:#684316}
.legacy-navigation .header-menu a:focus-visible{outline:2px solid #e5a047;outline-offset:2px}
#libraries,#wholesale{scroll-margin-top:24px}
@media(max-width:1000px){.legacy-navigation .header-menu{grid-template-columns:repeat(3,minmax(0,1fr))}.legacy-navigation .header-menu a{font-size:12px}}
@media(max-width:600px){.legacy-navigation{padding:10px}.legacy-navigation .header-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.legacy-navigation .header-menu a{font-size:11px;padding:10px 3px;min-height:42px;border-radius:7px}}
@media(max-width:360px){.legacy-navigation .header-menu a{font-size:10px}}
/* Тёплые тактильные кнопки с оранжевым нижним акцентом. */
.legacy-navigation .header-menu a{background:#f7e8cf;border-color:#d8ba8d;border-bottom:3px solid #e5a047;color:#493520;box-shadow:0 2px 3px #6d4d1812;font-weight:700}
.legacy-navigation .header-menu a:hover{background:#e5a047;border-color:#d18e35;color:#302719;box-shadow:0 2px 4px #6d4d1829}
.legacy-navigation .header-menu a:active{background:#d99236;box-shadow:none}
/* Чуть крупнее и свободнее надписи на равных кнопках меню. */
.legacy-navigation .header-menu a{font-size:12px;letter-spacing:.025em}
@media(max-width:1000px){.legacy-navigation .header-menu a{font-size:13px;letter-spacing:.025em}}
@media(max-width:600px){.legacy-navigation .header-menu a{font-size:12px;letter-spacing:.02em}}
@media(max-width:360px){.legacy-navigation .header-menu a{font-size:11px;letter-spacing:.015em}}
/* Обложки сохраняют собственные пропорции, без растяжения. */
.coverbox img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
.buybox img{width:auto;height:180px;max-width:100%;object-fit:contain}
.discovery-questions>a.all-chapters{display:inline-flex;margin-top:8px;padding:5px 0;font-weight:700;color:#8b591f;border:0;font-size:12px}
#contents{scroll-margin-top:24px}
/* Дайджест целой главы: оглавление, объяснение, схемы и книга рядом. */
.chapter-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:52px;align-items:start;padding-bottom:20px}.chapter-digest{min-width:0}.chapter-digest h1{font-size:45px;line-height:1.1;margin:12px 0 16px}.chapter-subtitle{font-size:23px;line-height:1.45;color:#655c50;max-width:780px;margin-bottom:25px}.chapter-lead{font-size:18px;line-height:1.85;border-left:3px solid #e5a047;padding-left:22px;margin-bottom:30px}.chapter-toc{padding:24px 26px;background:#f8f6f1;border:1px solid #e5e0d7;border-radius:12px;margin:28px 0 40px}.chapter-toc h2{font-size:19px;margin-bottom:14px}.chapter-toc>a{display:block;font-size:14px;line-height:1.55;padding:7px 0;color:#65513a;text-decoration:none}.chapter-toc>a:hover{text-decoration:underline;color:#8a5819}.digest-section{padding:0 0 28px;margin:0 0 24px;border-bottom:1px solid #e8e3dc;scroll-margin-top:24px}.digest-section-head h2,.digest-section>h2{font-size:26px;line-height:1.3;margin:0 0 12px}.digest-section-head>a{font-size:11px;color:#8d775e;text-decoration:none;display:inline-block;margin:0 0 20px}.digest-section p{font-size:16px;line-height:1.9;margin-bottom:18px}.formula{padding:18px 22px;background:#fff2da;border-left:3px solid #e5a047;border-radius:0 8px 8px 0;font-size:17px;line-height:1.8;overflow-wrap:anywhere;margin:24px 0}.digest-figure{margin:28px 0 10px}.digest-figure img{width:100%;height:auto;display:block;border:1px solid #e5e0d7;border-radius:12px}.digest-figure figcaption{font-size:12px;line-height:1.7;color:#8c7f70;margin-top:12px}.chapter-aside{position:sticky;top:24px;min-width:0}.chapter-purchase{background:#f8f6f1;border:1px solid #e5e0d7;border-radius:12px;padding:22px}.chapter-purchase>img{display:block;width:auto;height:195px;max-width:100%;object-fit:contain;margin:0 auto 20px}.chapter-purchase h2{font-size:21px;line-height:1.25;margin-bottom:15px}.chapter-purchase .price{font-size:25px}.chapter-purchase .actions{display:grid;gap:10px;margin:17px 0}.chapter-purchase form,.chapter-purchase .button{width:100%}.chapter-purchase .small{font-size:11px;line-height:1.7}.chapter-navigation{padding:15px 8px}.chapter-navigation a{display:block;font-size:12px;line-height:1.6;padding:8px 0;color:#75593b;text-decoration:none}.chapter-navigation a:hover{text-decoration:underline}.self-check{border:1px solid #e5e0d7;background:#f8f6f1;border-radius:9px;margin:12px 0;overflow:hidden}.self-check summary{font-size:14px;line-height:1.6;font-weight:600;padding:16px 18px;cursor:pointer}.self-check p{padding:0 18px 16px;font-size:14px;line-height:1.8;margin:0}.chapter-related a{display:block;padding:13px 0;color:#75593b;font-size:14px;line-height:1.6}.chapter-bottom-navigation{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;margin-top:28px}.chapter-bottom-navigation a{font-size:13px;color:#75593b}.chapter-entry-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.chapter-entry-grid>a{padding:24px;border:1px solid #e5d5bb;background:#fff5e2;border-radius:12px;text-decoration:none;color:#34312e}.chapter-entry-grid small{font-size:11px;color:#9a7542}.chapter-entry-grid h3{font-size:25px;margin:8px 0 12px}.chapter-entry-grid p{font-size:14px;line-height:1.7;color:#7c6d5a;margin-bottom:17px}.chapter-entry-grid span{font-size:12px;font-weight:700;color:#8c581a}.chapter-list .ready small{display:block;font-size:10px;color:#9b7746;font-weight:400;margin:3px 0}.chapter-digest .source{font-size:12px;line-height:1.8}.chapter-digest .source p{margin:12px 0}
@media(max-width:1000px){.chapter-layout{grid-template-columns:minmax(0,1fr) 240px;gap:30px}.chapter-purchase{padding:19px}.chapter-subtitle{font-size:21px}}
@media(max-width:800px){.chapter-layout{display:block}.chapter-aside{position:static;margin:32px 0 0}.chapter-purchase{display:none}.chapter-navigation{border:1px solid #e5e0d7;padding:16px 22px;border-radius:12px}.chapter-digest h1{font-size:38px}.chapter-subtitle{font-size:20px}.chapter-lead{font-size:17px}.chapter-entry-grid{grid-template-columns:1fr}}
@media(max-width:600px){.chapter-digest h1{font-size:33px}.chapter-subtitle{font-size:19px}.chapter-lead{font-size:16px;line-height:1.8;padding-left:17px}.chapter-toc{padding:20px;margin:24px 0 30px}.chapter-toc>a{font-size:13px}.digest-section-head h2,.digest-section>h2{font-size:23px;line-height:1.35}.digest-section p{font-size:15px;line-height:1.9}.formula{font-size:15px;padding:15px 17px}.digest-figure figcaption{font-size:11px}.self-check summary{font-size:13px;padding:14px}.self-check p{font-size:13px}.chapter-digest .source{font-size:11px;padding:20px}.chapter-entry-grid>a{padding:22px}.chapter-entry-grid h3{font-size:24px}}
@media(max-width:900px){.mobile-buy{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:10px}.mobile-buy form{min-width:0;width:100%}.mobile-buy .button{min-width:0;width:100%;min-height:48px;padding:12px 8px;font-size:12px}}
/* Читательский интерфейс: явные входы без служебных подписей и подчёркиваний. */
a,a:hover,a:focus,.text-link,.text-link:hover,.chapter-toc>a:hover,.chapter-navigation a:hover,.closing-links a:hover,.legacy-contact>a.legacy-contact-more{text-decoration:none!important}
.text-link{font-weight:700}.chapter-toc>a,.chapter-navigation a,.chapter-bottom-navigation a{font-weight:600}
.explore-book{border-width:1px;background:#fff0d8!important;color:#704919!important;box-shadow:0 2px 0 #e5a04733}
.chapter-list{gap:0 30px}.chapter-list li{padding:0;display:block;border-bottom:1px solid #e5e0d7}
.chapter-open,.chapter-closed{display:flex;align-items:center;gap:16px;width:100%;min-height:68px;padding:16px 12px;line-height:1.45}
.chapter-open{font-size:16px;font-weight:700;color:#754b4d;border-radius:8px;transition:background .15s}
.chapter-open:hover{background:#fff0d8;color:#8c581b}.chapter-open .chapter-arrow{margin-left:auto;flex:none;color:#a97839;font-size:18px}
.chapter-closed{font-size:16px;color:#82786d}.chapter-open .number,.chapter-closed .number{font-size:12px;font-weight:400;color:#a08e79;width:24px;flex:none}
.chapter-list .chapter-open>span:last-child{color:#a97839}.chapter-list .chapter-closed>span:last-child{color:#82786d}
@media(max-width:600px){.chapter-open,.chapter-closed{min-height:62px;padding:14px 8px;font-size:15px;gap:12px}.explore-book{flex-basis:100%!important}}
.chapter-digest .source{background:transparent;border-top:1px solid #e5e0d7;border-radius:0;padding:18px 0;margin:28px 0 18px;font-size:12px;color:#837767}.chapter-digest .source p{margin:0 0 8px}.chapter-digest .source a{font-weight:600}.digest-section-head{margin-bottom:20px}

/* Примерка приглушённого зелёного по выбору владельца 29.11.2026. */
.legacy-band,.closing-frame{background:#34483f}
.legacy-band{min-height:0;padding-top:14px;padding-bottom:14px}
.legacy-brand{height:130px;width:124px}
.legacy-brand img{height:172px;top:-12px;filter:grayscale(1) contrast(3);mix-blend-mode:screen}
.legacy-title p,.closing-brand p{color:#e8e9df}
.legacy-contact>a.legacy-contact-more{color:#d5dccc}
.closing-bottom{color:#ccd4c7}
@media(max-width:800px){.legacy-brand{height:114px;width:104px}.legacy-brand img{height:148px;top:-10px}.legacy-band{padding-top:14px;padding-bottom:14px}}
@media(max-width:600px){.legacy-brand{height:96px;width:85px}.legacy-brand img{height:125px;top:-9px}.legacy-band{padding:14px 16px;gap:14px 15px}}
/* Иллюстрации книги сохраняют пропорции; полный рисунок открывается нажатием. */
.figure-zoom{display:block;background:#fff;border-radius:12px;overflow:hidden}
.digest-figure img{max-height:560px;object-fit:contain;background:#fff;padding:12px}
.figure-explanation{margin-top:14px;border:1px solid #e5e0d7;background:#f8f6f1;border-radius:9px;overflow:hidden}.figure-explanation summary{font-size:14px;line-height:1.6;font-weight:600;padding:14px 18px;cursor:pointer}.figure-explanation p{padding:0 18px;font-size:14px;line-height:1.8;margin:0 0 14px}.figure-zoom-link{display:inline-block;margin-top:12px;font-size:13px;font-weight:700;color:#75593b}
.chapter-related a small{display:block;font-size:12px;line-height:1.65;font-weight:400;color:#7c7163;margin-top:5px}
@media(max-width:600px){.digest-figure img{padding:7px;max-height:520px}}

/* Book worlds: readable source examples and full nested contents. */
.code-sample{font-family:ui-monospace,monospace;font-size:15px;line-height:1.7;background:#f8f6f1;padding:20px;border-radius:12px;overflow:auto;white-space:pre}
.book-contents-branch{padding:20px 0;border-bottom:1px solid #e3ded4}.book-contents-branch summary{font-weight:700;font-size:19px;cursor:pointer}.book-contents-branch li{margin:12px 0;line-height:1.6}.book-contents-branch a{font-weight:700;text-decoration:none}

.mobile-buy.single-buy{grid-template-columns:1fr}

/* Shared chapter practice: separate the self-check heading from text and reader links. */
#practice.digest-section>h3{margin:28px 0 16px}

/* Book page layout audit: shared rhythm, safe wrapping, consistent purchase actions. */
.book-info,.article{min-width:0}
.book-info h1,.article h1{line-height:1.22;overflow-wrap:anywhere}
.chapter-digest h1,.digest-section h2,.digest-section h3,.book-contents-branch summary{overflow-wrap:anywhere}
.book-info .actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));align-items:stretch;max-width:680px;gap:12px}
.book-info .actions>form{display:flex;min-width:0;margin:0}
.book-info .actions .button{width:100%;height:100%;min-height:48px;white-space:normal;text-align:center}
.book-cover{min-width:0}
.book-cover img{width:auto;height:auto;max-width:100%;max-height:380px;object-fit:contain}
.chapter-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.chapter-list li,.chapter-open,.chapter-closed{min-width:0}
.chapter-open>span:not(.number),.chapter-closed>span:not(.number){min-width:0;overflow-wrap:anywhere}
.chapter-open .number,.chapter-closed .number{width:30px}
.digest-section>h3{margin:24px 0 16px;line-height:1.4}
.digest-section>p:last-child{margin-bottom:0}
.digest-figure{margin:28px 0 18px}
.figure-zoom{display:flex;justify-content:center;align-items:center}
.digest-figure img{width:auto;max-width:100%;height:auto;max-height:560px;object-fit:contain}
.chapter-bottom-navigation{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px 24px}
.chapter-bottom-navigation a{line-height:1.65;overflow-wrap:anywhere}
.chapter-digest .source,.article .source,.book-contents-branch li,.article-toc a{overflow-wrap:anywhere}
.book-contents-branch summary{line-height:1.5}
.article .source{background:transparent;border-top:1px solid var(--surface-warm-line);border-radius:0;padding:20px 0;margin:32px 0 24px;font-size:12px;line-height:1.8}
.article .source p{margin:10px 0}
@media(max-width:900px){
 .chapter-layout{display:block}
 .chapter-aside{position:static;margin:32px 0 0}
 .chapter-purchase{display:none}
 .chapter-navigation{border:1px solid var(--surface-warm-line);padding:16px 22px;border-radius:12px}
 .closing-footer{padding-bottom:140px}
 .mobile-buy .button{height:100%;text-align:center}
}
@media(max-width:600px){
 .book-info .actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .book-info .actions>:first-child{grid-column:1/-1}
 .book-info .actions>:last-child:nth-child(2){grid-column:1/-1}
 .book-cover img{max-height:270px}
 .chapter-list{grid-template-columns:minmax(0,1fr)}
 .digest-figure img{max-height:520px}
 .chapter-bottom-navigation{grid-template-columns:1fr}
}

/* Shelf covers follow BookOnLime PDF cards: 160x217, compact 137x186. */
.grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:32px 24px}
.product>a{display:flex;flex-direction:column;min-width:0}
.product .coverbox{display:flex;align-items:flex-end;justify-content:flex-start;width:160px;max-width:100%;height:217px;min-height:217px;max-height:none;margin:0 0 14px;padding:0;background:none;border-radius:0;flex:none}
.product .coverbox img{display:block;width:100%;height:217px;min-height:217px;max-height:none;max-width:100%;object-fit:fill;filter:drop-shadow(3px 4px 3px #27161f19)}
.product .coverbox .empty-cover{display:flex;align-items:center;justify-content:center;width:100%;height:217px;border:1px solid #ded8ce;background:var(--surface-warm);font-size:28px}
.product .author{font-size:11px;line-height:1.4;min-height:30.8px;margin:0 0 6px}
.product h3{font-size:13px;line-height:1.5;min-height:58.5px;margin:0 0 12px}
.product-bottom{padding-top:0}
.product-bottom .button{min-height:44px;font-size:12px;text-align:center}
@media(max-width:600px){
 .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 18px}
 .product .coverbox{width:137px;height:186px;min-height:186px;margin-bottom:12px}
 .product .coverbox img,.product .coverbox .empty-cover{height:186px;min-height:186px}
 .product .author{font-size:11px;min-height:30.8px}
 .product h3{font-size:12px;min-height:54px}
 .product-bottom .button{font-size:11px}
}

/* Stock labels have equal line boxes, so available/absent cards share a price baseline. */
.product-bottom .price{line-height:30px;min-height:30px}
.product-bottom>.stock,.product-bottom>.small{font-size:11px;line-height:20px;min-height:20px;margin:0}

/* Breadcrumb trail is one line on every page, scrollable without widening the document. */
.crumbs{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#d8ba8d transparent;font-size:13px;line-height:22px;padding:4px 2px 9px;margin:24px 0 28px;-webkit-overflow-scrolling:touch}
.crumbs a{display:inline-block;white-space:nowrap;color:#75593b;font-weight:600;padding:2px 0}
.crumbs a:hover{color:#8a5819}
.crumbs:focus-visible{outline:2px solid var(--action-orange);outline-offset:3px;border-radius:3px}
@media(max-width:600px){.crumbs{font-size:12px;margin:20px 0 24px}}

/* One shared navigation model: complete desktop rows and one horizontal mobile shelf. */
.book-shelf{grid-template-columns:repeat(6,minmax(0,1fr));min-width:0}
.pagination{display:flex;flex-wrap:nowrap;justify-content:center;gap:8px;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;padding:8px 3px 14px;scrollbar-width:thin;scrollbar-color:#d8ba8d transparent;white-space:nowrap}
.pagination a,.pagination span{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:42px;min-height:44px;padding:8px 12px;border:1px solid #e5e0d7;border-radius:8px;line-height:1.4;font-size:13px}
.pagination .current-page{background:var(--action-orange);border-color:var(--action-orange);color:var(--action-ink);font-weight:700}
.pagination a:hover{background:#fff0d8;border-color:var(--action-orange)}
.pagination .page-gap{border-color:transparent;min-width:24px;padding:8px 2px}
.book-shelf:focus-visible,.pagination:focus-visible{outline:2px solid var(--action-orange);outline-offset:3px;border-radius:4px}
.is-scrollable{cursor:grab}
.is-scrollable a{cursor:inherit}
.is-dragging,.is-dragging *{cursor:grabbing!important;user-select:none!important}
@media(max-width:1199px) and (min-width:800px){.book-shelf{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px), (pointer:coarse){
 .book-shelf{display:grid;grid-template-columns:none;grid-template-rows:1fr;grid-auto-flow:column;grid-auto-columns:154px;gap:20px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-left:3px;padding:8px 3px 18px;scrollbar-width:thin;scrollbar-color:#d8ba8d transparent;-webkit-overflow-scrolling:touch}
 .book-shelf>.product{scroll-snap-align:start}
 .pagination{justify-content:flex-start;overscroll-behavior-x:contain}
}

.shelf-controls{display:flex;justify-content:flex-end;gap:10px;margin:4px 0 20px}.shelf-controls[hidden]{display:none}.shelf-controls button{min-width:48px;min-height:44px;padding:6px 16px;font-size:24px;line-height:1;background:#fff0d8;color:#63451f;border:1px solid #d8ba8d;border-radius:8px}.shelf-controls button:disabled{opacity:.35;cursor:default}

.catalog-page-controls{display:flex;align-items:center;justify-content:center;gap:24px;flex-wrap:wrap;margin:20px 0}.catalog-page-controls .pagination{margin:0}.catalog-row-control{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:13px}.catalog-row-control select{min-height:44px;min-width:68px;padding:8px;border:1px solid #d8ba8d;border-radius:8px;background:#fffaf1;color:#4d3b28}@media(max-width:1100px),(pointer:coarse){.catalog-row-control{display:none}.catalog-page-controls{display:block}}

/* Keyboard focus in the header/footer: warm emphasis without a rectangular outline. */
.legacy-header a:focus-visible,.legacy-navigation .header-menu a:focus-visible,.closing-footer a:focus-visible{outline:none;box-shadow:none;border-radius:5px;background-color:rgba(242,174,70,.16);color:#ffd18d;text-shadow:0 0 14px rgba(242,174,70,.24)}
.legacy-navigation .header-menu a:focus-visible,.legacy-header .cart-link:focus-visible{background-color:#f4bd68;color:#352919;text-shadow:none}

/* Book-card actions keep their natural width on computers and tablets. */
@media(min-width:601px){.book-info .actions{display:flex;flex-wrap:wrap;align-items:center;max-width:100%;gap:12px}.book-info .actions>form{flex:0 0 auto;width:auto;max-width:100%}.book-info .actions .button{flex:0 0 auto;width:auto;height:auto;min-height:48px;padding:13px 20px}}

/* Online volumes belong to one verified paper set. */
.online-volumes{flex:0 0 100%;min-width:0;margin-top:8px}
.online-volumes>p{margin:0 0 12px;font-size:15px;line-height:1.5;color:var(--muted,#786e63)}
.online-volumes>.actions{margin:0}
@media(max-width:600px){.book-info .online-volumes>.actions{grid-template-columns:1fr}}

/* Audience-first browsing and a controlled subject tree. */
.browse-panel{margin:32px 0;padding:26px;background:#f9f6ef;border:1px solid #e5ddce;border-radius:18px;scroll-margin-top:20px}.browse-panel h2{font-size:22px;margin:0 0 15px}.browse-panel .section-top{margin:23px 0 12px}.browse-panel .section-top h2{margin:0}.audience-choices,.marker-chips,.selected-markers{display:flex;flex-wrap:wrap;gap:8px}.audience-choices a,.marker-chips a,.selected-markers a{display:inline-flex;align-items:center;min-height:32px;padding:5px 11px;border:1px solid #ded5c5;border-radius:8px;background:#fff;color:#4b4438;text-decoration:none;font-size:13px;line-height:1.4}.audience-choices a{min-height:42px;font-size:15px}.audience-choices a.is-selected,.audience-choices a:hover,.selected-markers a{background:#f9e4c1;border-color:#e1a14a;color:#48351e}.subject-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.subject-choices a{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;padding:14px 16px;border:1px solid #e5ddce;border-radius:10px;text-decoration:none;color:#33473c;font-weight:700}.subject-choices small,.topic-branch small{font-size:13px;font-weight:500;color:#877a65}.marker-chips{margin:12px 0}.marker-chips a:hover{border-color:#d89d48;background:#fff2da}.compact-markers{gap:5px;margin:9px 0;min-height:26px}.compact-markers a{font-size:11px;min-height:25px;padding:3px 7px}.more-markers{font-size:13px;margin:4px 0 14px}.more-markers summary{cursor:pointer;color:#72542e}.selected-markers{margin:0 0 20px}.selected-markers a{gap:8px}.author-link{color:inherit;text-decoration:none}.author-link:hover{color:#a5671a}.coverbox,.book-cover{position:relative}.novelty-badge{position:absolute;left:9px;top:9px;padding:4px 9px;border-radius:6px;font:600 12px/1.5 Arial,sans-serif;color:#fff;background:#375849;z-index:1}.catalog-workspace{display:grid;grid-template-columns:235px minmax(0,1fr);gap:26px;align-items:start}.catalog-sidebar{position:sticky;top:18px;min-width:0;border:1px solid #e5ddce;border-radius:14px;background:#f9f6ef;padding:18px}.discovery-filter-panel>summary{font-size:18px;font-weight:700;cursor:pointer;min-height:38px}.discovery-filter-panel .catalog-filters{display:flex;flex-direction:column;align-items:stretch;gap:14px;margin:12px 0 0}.discovery-filter-panel .catalog-filters label{font-size:13px;min-width:0;width:auto;max-width:100%}.discovery-filter-panel .catalog-filters input[type=search],.discovery-filter-panel .catalog-filters select{width:100%;min-width:0;font-size:14px;padding:10px;min-height:44px}.discovery-filter-panel .stock-filter{display:flex;flex-direction:row;align-items:center;gap:9px}.catalog-results{min-width:0}.catalog-title{margin-top:20px}.catalog-title h1{margin-bottom:0}.catalog-result-count{margin:0 0 18px;font-size:15px;color:#766b59}.topic-directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:40px}.topic-branch{border:1px solid #e5ddce;border-radius:14px;padding:20px;background:#fffdf8}.topic-branch h2{font-size:20px;line-height:1.35;margin:0 0 14px}.topic-branch a{display:block;padding:6px 0;text-decoration:none;color:#344a3c}.topic-branch h2 a{padding:0}.topic-branch a:hover{color:#a46a20}.product .product-bottom{margin-top:auto}
@media(min-width:1101px) and (pointer:fine){.catalog-results .book-shelf{grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 18px}}
@media(max-width:1100px),(pointer:coarse){.catalog-workspace{display:block}.catalog-sidebar{position:static;margin-bottom:20px}.discovery-filter-panel .catalog-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.topic-directory{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.browse-panel{padding:18px;margin:24px 0}.subject-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.subject-choices a{padding:12px;font-size:14px;min-height:65px}.audience-choices a{font-size:13px;padding:7px 9px;min-height:40px}.topic-directory{grid-template-columns:1fr}.discovery-filter-panel .catalog-filters{grid-template-columns:1fr}.catalog-title h1{font-size:30px}.catalog-sidebar{padding:14px}.marker-chips a{font-size:12px}.compact-markers a{font-size:11px}.catalog-title{align-items:center}.catalog-title .text-link{font-size:13px;white-space:nowrap}}
.digest-figure .figure-explanation summary:has(> img) {
  padding: clamp(16px, 2vw, 24px);
}
.digest-figure .figure-explanation summary > img {
  display: block;
  margin: clamp(16px, 2vw, 24px) auto 0;
}
.digest-figure .figure-explanation:has(summary > img) > p {
  padding-inline: clamp(16px, 2vw, 24px);
}

.figure-mobile { display: none; }
@media (max-width: 600px) {
  .digest-figure img:has(+ .figure-mobile),
  .digest-figure .figure-explanation summary > img:has(+ .figure-mobile) { display: none; }
  .digest-figure .figure-mobile {
    display: block;
    background: #f8f6ef;
    color: #34483f;
    padding: 16px;
    border-radius: 8px;
    text-align: left;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
  }
  .figure-explanation summary .figure-mobile { margin-top: 18px; }
  .figure-mobile-title, .figure-mobile-row, .figure-mobile-note { display: block; }
  .figure-mobile-title { font-weight: 700; }
  .figure-mobile-row { margin-top: 12px; border-top: 1px solid #cfc7b8; padding-top: 10px; }
  .figure-mobile-row strong { display: block; }
  .figure-mobile-note { margin-top: 14px; }
}

/* Source headings and their companion readings share one numbered entry. */
#contents .chapter-list {
  --number-column: 2.25rem;
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
}
#contents .chapter-list > li {
  padding: .8rem 0;
}
#contents .chapter-list .chapter-open,
#contents .chapter-list .chapter-closed {
  display: grid;
  grid-template-columns: var(--number-column) minmax(0, 1fr);
  gap: 0;
  align-items: baseline;
  min-height: 0;
  padding: .18rem .25rem;
  border-radius: 3px;
  line-height: 1.4;
}
#contents .chapter-list .number {
  width: auto;
  color: #776a5d;
  font-variant-numeric: tabular-nums;
}
#contents .chapter-list .number + span {
  color: #303a32;
  font-size: 1rem;
  font-weight: 650;
}
#contents .chapter-list .chapter-open > span:only-child {
  grid-column: 2;
  color: #88551f;
  font-size: .9rem;
  font-weight: 500;
}
#contents .chapter-list .chapter-open:hover {
  background: transparent;
}
#contents .chapter-list .chapter-open:hover > span:last-child {
  color: #714313;
}
#contents .chapter-list .chapter-open:focus-visible {
  outline: 2px solid #87541f;
  outline-offset: 1px;
}

#contents .chapter-list .chapter-open:has(.chapter-arrow) {
  grid-template-columns: var(--number-column) minmax(0, 1fr) auto;
}
#contents .chapter-list .chapter-arrow { padding-inline-start: .5rem; }
#contents .chapter-list :is(.chapter-open,.chapter-closed):has(.number:empty) {
  grid-template-columns: 0 minmax(0,1fr);
}
#contents > div.book-contents-branch,
#contents details.book-contents-branch {
  padding: 0;
  border: 0;
}
#contents .book-contents-branch ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
#contents > .book-contents-branch > ul {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: clamp(1.5rem,4vw,3.5rem);
  align-items: start;
}
#contents .book-contents-branch li {
  min-width: 0;
  margin: 0;
  padding: .8rem .25rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
}
#contents .book-contents-branch :is(summary,li > a,li > span) {
  color: #303a32;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
  padding-block: .18rem;
}
#contents .book-contents-branch li > :is(a,span) { display: block; }
#contents .book-contents-branch summary::marker { color: #776a5d; }
#contents .book-contents-branch details > :is(p,ul) {
  margin: .35rem 0 0;
  padding-inline-start: 1rem;
}
#contents .book-contents-branch details > p a {
  color: #88551f;
  font-size: .9rem;
  font-weight: 500;
}
#contents .book-contents-branch details li { padding-block: .45rem; }
#contents .book-contents-branch details li:last-child { border-bottom: 0; }
#contents .book-contents-branch :is(a,summary):hover { color: #714313; }
#contents .book-contents-branch :is(a,summary):focus-visible {
  outline: 2px solid #87541f;
  outline-offset: 1px;
}
@media (max-width: 760px) {
  #contents > .book-contents-branch > ul { grid-template-columns: minmax(0,1fr); }
}

/* Shared reading rhythm for flat and nested book contents. */
#contents .contents-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: clamp(1.5rem,4vw,3.5rem);
  align-items: stretch;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
#contents .contents-list > li {
  padding: .68rem .25rem;
  border-bottom: 1px solid var(--line);
  margin: 0;
  min-width: 0;
  line-height: 1.4;
}
#contents .chapter-list :is(.chapter-open,.chapter-closed) { padding-inline: 0; }
#contents .chapter-list .digest-link { margin-top: .12rem; }
#contents .chapter-list li:has(.number:empty) .digest-link,
#contents .chapter-list li > .digest-link:only-child { grid-template-columns: 0 minmax(0,1fr); }
#contents .contents-list a:focus-visible,
#contents .contents-list summary:focus-visible { outline: 2px solid #87541f; outline-offset: 2px; }
@media (max-width: 760px) {
  #contents .contents-list { grid-template-columns: minmax(0,1fr); }
}

#contents .contents-group { margin-top: clamp(1.5rem, 3vw, 2.75rem); }
#contents .contents-group > h3 {
    margin: 0 0 .45rem;
    padding: .65em .85em;
    border-inline-start: .22rem solid var(--action-orange);
    background: var(--surface-warm);
    color: #274037;
    font-size: clamp(1.16rem, 1rem + .65vw, 1.5rem);
    line-height: 1.25;
}
#contents .original-title { display: block; margin-top: .22rem; color: #625c52; font-weight: 400; font-size: .9rem; line-height: 1.45; }

#contents li.series-intro { grid-column: 1 / -1; padding-block: .3rem .65rem; }
#contents .series-intro .chapter-open,
#contents .series-chapter .chapter-open { display: block; height: auto; min-height: 0; }
#contents .series-entry { display: block; }
#contents .series-entry strong { color: #304037; font-size: 1rem; line-height: 1.4; }
#contents .series-intro .series-entry strong { color: #705234; }
#contents .series-entry small { display: block; font-weight: 400; line-height: 1.45; }
#contents .series-number { margin-bottom: .18rem; color: #716251; font-size: .82rem; }
#contents .series-question { margin-top: .2rem; color: #615b52; font-size: .92rem; }
#contents .series-chapter a:hover strong, #contents .series-intro a:hover strong { color: #804809; }
