/* Whitepaper library page. All rules scoped to #sgwpl. */
#sgwpl{
  --ink:#0f1d33; --navy:#1a2e4c; --blue:#3062a5; --teal:#17a2ac; --teal-lt:#2dc6cb; --pink:#B82850;
  --paper:#f5f6f8; --white:#fff; --line:#e1e6ee; --text:#1c2638; --grey:#5b6679; --muted:#8a94a6;
  --fh:"Anek Latin",system-ui,sans-serif; --fb:"Inter",system-ui,sans-serif;
  box-sizing:border-box; padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
}
#sgwpl *,#sgwpl *::before,#sgwpl *::after{box-sizing:inherit}

#sgwpl{background:var(--paper);color:var(--text);font:400 16px/1.6 var(--fb);-webkit-font-smoothing:antialiased}
#sgwpl button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
#sgwpl img{display:block;max-width:100%}
#sgwpl a{color:inherit}
#sgwpl :focus-visible{outline:2px solid var(--teal-lt);outline-offset:3px;border-radius:6px}
#sgwpl .wrap{max-width:1180px;margin:0 auto;padding:0 28px}

/* ---------------- hero ---------------- */
#sgwpl .hero{position:relative;overflow:hidden;color:#fff;background:
  radial-gradient(ellipse 50% 70% at 78% 30%,rgba(48,98,165,.55),transparent 70%),
  radial-gradient(ellipse 30% 40% at 72% 58%,rgba(23,162,172,.30),transparent 70%),
  linear-gradient(165deg,#1a2e4c 0%,#13233d 45%,#0b1628 100%)}
#sgwpl .hero::before{content:"";position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:56px 56px;
  -webkit-mask-image:radial-gradient(70% 90% at 70% 30%,#000,transparent 80%);mask-image:radial-gradient(70% 90% at 70% 30%,#000,transparent 80%)}
#sgwpl .hero .wrap{position:relative;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:40px;align-items:center;padding-top:96px;padding-bottom:104px}
#sgwpl .newflag{display:inline-flex;align-items:center;gap:10px;font:600 14px/1 var(--fb);color:#cfe0f2;margin-bottom:26px}
#sgwpl .newflag i{width:8px;height:8px;border-radius:50%;background:var(--pink);box-shadow:0 0 0 5px rgba(184,40,80,.22)}
#sgwpl .hero h1{font:700 clamp(46px,6.2vw,84px)/.96 var(--fh);letter-spacing:-.03em;margin:0 0 22px;max-width:9ch}
#sgwpl .hero .sub{font:500 clamp(19px,1.9vw,23px)/1.4 var(--fh);color:#dbe6f3;margin:0 0 18px;max-width:30ch}
#sgwpl .hero .lead{color:#a9b8cc;max-width:52ch;margin:0 0 34px;font-size:16.5px}
#sgwpl .facts{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 34px;padding:0;list-style:none}
#sgwpl .facts li{font-size:13.5px;color:#d5e1ee;padding:7px 13px;border-radius:99px;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
#sgwpl .facts li b{font-weight:600;color:#fff}
#sgwpl .cta-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
#sgwpl .btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:0 24px;border-radius:12px;font:600 15.5px/1 var(--fb);text-decoration:none;transition:background .2s,box-shadow .2s,transform .2s}
#sgwpl .btn svg{width:18px;height:18px;flex:none}
#sgwpl .btn-main{background:var(--teal);color:#fff;box-shadow:0 18px 40px -16px rgba(23,162,172,.8)}
#sgwpl .btn-main:hover{background:#12909a}
#sgwpl .btn-ghost{color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.28)}
#sgwpl .btn-ghost:hover{box-shadow:inset 0 0 0 1px rgba(255,255,255,.6)}
#sgwpl .btn:active{transform:translateY(1px)}

/* the featured book */
#sgwpl .stage{position:relative;display:flex;justify-content:center;perspective:1600px}
#sgwpl .stage::before{content:"";position:absolute;left:50%;top:50%;width:120%;height:120%;transform:translate(-50%,-46%);background:radial-gradient(closest-side,rgba(45,198,203,.28),transparent 70%);pointer-events:none}
#sgwpl .stage::after{content:"";position:absolute;left:12%;right:12%;bottom:-28px;height:40px;background:radial-gradient(closest-side,rgba(0,0,0,.55),transparent 75%);filter:blur(6px)}
#sgwpl .hbook{position:relative;width:min(380px,78%);transform:rotateY(-19deg) rotateX(4deg);transform-style:preserve-3d;animation:settle 1.1s cubic-bezier(.2,.7,.2,1) both}
@keyframes settle{from{transform:rotateY(-34deg) rotateX(8deg) translateY(24px);opacity:0}to{transform:rotateY(-19deg) rotateX(4deg);opacity:1}}
#sgwpl .hbook img{width:100%;border-radius:3px 7px 7px 3px;box-shadow:0 50px 90px -30px rgba(0,0,0,.8),0 20px 30px -18px rgba(0,0,0,.6)}
#sgwpl .hbook::before{content:"";position:absolute;top:1.5%;bottom:1.5%;right:-14px;width:16px;border-radius:0 5px 5px 0;transform:rotateY(60deg);transform-origin:left;
  background:repeating-linear-gradient(90deg,#f4f5f7 0 1px,#dcdfe5 1px 2px)}
#sgwpl .hbook::after{content:"";position:absolute;inset:0;border-radius:3px 7px 7px 3px;background:linear-gradient(90deg,rgba(0,0,0,.35) 0,rgba(255,255,255,.12) 1.6%,transparent 4%,transparent 70%,rgba(255,255,255,.08) 100%);pointer-events:none}
#sgwpl .deadline{position:absolute;right:-2%;top:10%;padding:12px 16px;border-radius:14px;background:#fff;color:var(--ink);box-shadow:0 24px 50px -24px rgba(0,0,0,.7);font-size:12.5px;line-height:1.35}
#sgwpl .deadline b{display:block;font:700 22px/1.05 var(--fh);color:var(--pink);letter-spacing:-.01em}

/* ---------------- library ---------------- */
#sgwpl .lib{padding:96px 0 40px}
#sgwpl .lib-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:24px 40px;margin-bottom:44px}
#sgwpl .lib-head h2{font:700 clamp(34px,4vw,50px)/1 var(--fh);letter-spacing:-.025em;color:var(--ink);margin:0 0 12px}
#sgwpl .lib-head p{margin:0;color:var(--grey);max-width:54ch}
#sgwpl .filters{display:inline-flex;padding:5px;border-radius:14px;background:#e9edf3;gap:4px}
#sgwpl .filters button{padding:10px 16px;border-radius:10px;font-weight:600;font-size:14.5px;color:var(--grey);transition:background .2s,color .2s,box-shadow .2s}
#sgwpl .filters button:hover{color:var(--ink)}
#sgwpl .filters button[aria-pressed="true"]{background:#fff;color:var(--ink);box-shadow:0 6px 16px -10px rgba(15,29,51,.45)}
#sgwpl .filters button span{color:var(--muted);font-weight:500;margin-left:4px}

#sgwpl .shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));row-gap:64px}
#sgwpl .item{position:relative;padding:0 26px;display:flex;flex-direction:column}
#sgwpl .item.hide{display:none}
#sgwpl .stand{position:relative;height:330px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:16px;margin:0 -26px;perspective:1100px}
#sgwpl .stand::after{content:"";position:absolute;left:0;right:0;bottom:0;height:16px;background:linear-gradient(180deg,#ffffff 0%,#e8ecf2 55%,#d6dce6 100%);box-shadow:0 14px 22px -12px rgba(15,29,51,.35)}
#sgwpl .item:first-child .stand::after,#sgwpl .item.rowstart .stand::after{border-radius:6px 0 0 6px}
#sgwpl .item.rowend .stand::after{border-radius:0 6px 6px 0}
#sgwpl .stand .floor{position:absolute;left:50%;bottom:14px;width:190px;height:18px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(closest-side,rgba(15,29,51,.32),transparent 80%);transition:transform .6s cubic-bezier(.2,.8,.2,1),opacity .6s;z-index:0}
#sgwpl .book{position:relative;z-index:1;width:200px;border-radius:2px 5px 5px 2px;transform-origin:50% 100%;transform-style:preserve-3d;
  transition:transform .6s cubic-bezier(.2,.8,.2,1),box-shadow .6s cubic-bezier(.2,.8,.2,1);box-shadow:0 26px 34px -20px rgba(15,29,51,.55),0 4px 8px -4px rgba(15,29,51,.3);cursor:pointer}
#sgwpl .book img{width:100%;border-radius:2px 5px 5px 2px}
#sgwpl .book::before{content:"";position:absolute;top:1.2%;bottom:1.2%;right:-6px;width:7px;border-radius:0 3px 3px 0;background:repeating-linear-gradient(90deg,#f6f7f9 0 1px,#d9dde4 1px 2px);transition:width .6s cubic-bezier(.2,.8,.2,1),right .6s cubic-bezier(.2,.8,.2,1)}
#sgwpl .book::after{content:"";position:absolute;inset:0;border-radius:2px 5px 5px 2px;background:linear-gradient(90deg,rgba(0,0,0,.28) 0,rgba(255,255,255,.14) 2%,transparent 5%);pointer-events:none}
#sgwpl .book .shine{position:absolute;inset:0;overflow:hidden;border-radius:2px 5px 5px 2px;pointer-events:none}
#sgwpl .book .shine::before{content:"";position:absolute;top:-20%;bottom:-20%;left:-60%;width:45%;transform:translateX(0) skewX(-18deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.42),transparent);opacity:0;transition:transform .9s cubic-bezier(.2,.8,.2,1),opacity .3s}
@media (hover:hover){
  #sgwpl .stand:hover .book,#sgwpl .book:focus-visible{transform:translateY(-16px) rotateY(-16deg) rotateX(3deg);box-shadow:18px 44px 50px -26px rgba(15,29,51,.6),0 8px 14px -8px rgba(15,29,51,.35)}
  #sgwpl .stand:hover .book::before,#sgwpl .book:focus-visible::before{width:11px;right:-10px}
  #sgwpl .stand:hover .book .shine::before,#sgwpl .book:focus-visible .shine::before{opacity:1;transform:translateX(390%) skewX(-18deg)}
  #sgwpl .stand:hover .floor{transform:translateX(-50%) scale(.72);opacity:.55}
  #sgwpl .item:hover .info h3{color:var(--blue)}
  #sgwpl .item:hover .dl{box-shadow:inset 0 0 0 1px var(--teal)}
}
#sgwpl .info h3{transition:color .3s}
#sgwpl .tag{position:absolute;left:34px;top:0;z-index:2;font-size:12px;font-weight:600;padding:5px 10px;border-radius:99px;background:var(--pink);color:#fff;box-shadow:0 8px 16px -8px rgba(184,40,80,.8)}
#sgwpl .info{flex:1;display:flex;flex-direction:column;padding:24px 4px 0}
#sgwpl .series{font-size:13px;font-weight:600;color:var(--teal);margin:0 0 6px}
#sgwpl .info h3{font:600 20px/1.2 var(--fh);letter-spacing:-.01em;color:var(--ink);margin:0 0 8px}
#sgwpl .info p{margin:0 0 14px;color:var(--grey);font-size:14.5px;line-height:1.55}
#sgwpl .meta{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:var(--muted);margin:0 0 16px}
#sgwpl .meta span{white-space:nowrap}
#sgwpl .dl{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:14.5px;color:var(--navy);padding:9px 14px 9px 12px;border-radius:10px;box-shadow:inset 0 0 0 1px var(--line);background:#fff;transition:box-shadow .2s,color .2s,background .2s;margin-top:auto}
#sgwpl .dl svg{width:17px;height:17px;color:var(--teal)}
#sgwpl .dl:hover{box-shadow:inset 0 0 0 1px var(--teal);color:var(--ink)}

/* ---------------- series ---------------- */
#sgwpl .compass{margin:88px 0 0;padding:72px 0 40px;background:#fff;border-top:1px solid var(--line)}
#sgwpl .compass .wrap{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:56px;align-items:start}
#sgwpl .compass h2{font:700 clamp(30px,3.4vw,42px)/1.05 var(--fh);letter-spacing:-.02em;color:var(--ink);margin:0 0 16px}
#sgwpl .compass p{color:var(--grey);margin:0 0 22px;max-width:44ch}
#sgwpl .editions{list-style:none;margin:0;padding:0;position:relative}
#sgwpl .editions::before{content:"";position:absolute;left:21px;top:22px;bottom:22px;width:2px;background:linear-gradient(var(--teal),var(--blue))}
#sgwpl .editions li{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:18px;align-items:center;padding:16px 0}
#sgwpl .editions li+li{border-top:1px solid #eef1f5}
#sgwpl .ed-no{position:relative;z-index:1;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font:700 17px/1 var(--fh);color:#fff;background:var(--navy);box-shadow:0 0 0 5px #fff}
#sgwpl .editions li:first-child .ed-no{background:var(--teal)}
#sgwpl .editions b{display:block;font:600 17px/1.3 var(--fh);color:var(--ink)}
#sgwpl .editions small{display:block;color:var(--muted);font-size:13.5px;margin-top:3px}
#sgwpl .editions button{font-weight:600;font-size:14px;color:var(--navy);padding:8px 12px;border-radius:9px;box-shadow:inset 0 0 0 1px var(--line);white-space:nowrap}
#sgwpl .editions button:hover{box-shadow:inset 0 0 0 1px var(--teal)}

#sgwpl .stay{padding:40px 0 104px;background:#fff}
#sgwpl .stay-card{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);align-items:center;gap:32px;border-radius:26px;padding:56px 60px;color:#fff;
  background:radial-gradient(ellipse 60% 90% at 85% 50%,rgba(48,98,165,.6),transparent 70%),radial-gradient(ellipse 35% 60% at 78% 80%,rgba(23,162,172,.3),transparent 70%),linear-gradient(160deg,#1a2e4c 0%,#13233d 50%,#0b1628 100%);
  box-shadow:0 50px 90px -40px rgba(11,22,40,.55),0 18px 36px -24px rgba(11,22,40,.35)}
#sgwpl .stay-card::before{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:48px 48px;-webkit-mask-image:radial-gradient(60% 100% at 80% 50%,#000,transparent 80%);mask-image:radial-gradient(60% 100% at 80% 50%,#000,transparent 80%)}
#sgwpl .stay-txt{position:relative}
#sgwpl .stay h2{font:700 clamp(30px,3.4vw,42px)/1.05 var(--fh);letter-spacing:-.02em;margin:0 0 14px;color:#fff}
#sgwpl .stay p{color:#b4c3d6;margin:0 0 28px;max-width:40ch;font-size:16.5px}
#sgwpl .fan{position:relative;height:260px}
#sgwpl .fan img{position:absolute;bottom:0;width:158px;border-radius:2px 5px 5px 2px;box-shadow:0 30px 50px -22px rgba(0,0,0,.85),0 6px 12px -6px rgba(0,0,0,.5)}
#sgwpl .fan .f1{left:calc(50% - 190px);transform:rotate(-10deg);transform-origin:bottom center}
#sgwpl .fan .f2{left:calc(50% - 90px);transform:rotate(-1deg) translateY(-14px);z-index:1}
#sgwpl .fan .f3{left:calc(50% + 10px);transform:rotate(9deg);transform-origin:bottom center;z-index:2}
@media (max-width:860px){
  #sgwpl .stay-card{grid-template-columns:1fr;padding:40px 28px 0;gap:8px;text-align:left}
  #sgwpl .fan{height:210px;overflow:hidden;margin:0 -28px}
  #sgwpl .fan img{width:126px;bottom:-40px}
  #sgwpl .fan .f1{left:calc(50% - 150px)}#sgwpl .fan .f2{left:calc(50% - 63px)}#sgwpl .fan .f3{left:calc(50% + 24px)}
}
@media (max-width:370px){#sgwpl .fan img{width:104px}#sgwpl .fan .f1{left:calc(50% - 124px)}#sgwpl .fan .f2{left:calc(50% - 52px)}#sgwpl .fan .f3{left:calc(50% + 20px)}}
@media (max-width:640px){#sgwpl .stay{padding:28px 0 72px}#sgwpl .stay-card{border-radius:22px;padding:34px 22px 0}#sgwpl .stay .btn{width:100%}#sgwpl .fan{margin:0 -22px}}



/* ---------------- modal ---------------- */
#sgwpl .ov{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(11,22,40,.62);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}
#sgwpl .ov.on{opacity:1;visibility:visible}
#sgwpl .dlg{position:relative;width:min(900px,100%);max-height:calc(100dvh - 48px);overflow:auto;display:grid;grid-template-columns:320px minmax(0,1fr);border-radius:22px;background:#fff;box-shadow:0 50px 100px -30px rgba(0,0,0,.6);transform:translateY(14px) scale(.985);transition:transform .3s cubic-bezier(.2,.7,.2,1)}
#sgwpl .ov.on .dlg{transform:none}
#sgwpl .dside{position:relative;padding:40px 34px;color:#fff;background:radial-gradient(ellipse 90% 70% at 50% 20%,rgba(48,98,165,.55),transparent 70%),linear-gradient(170deg,#1a2e4c,#0b1628);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
#sgwpl .dside .book{width:190px;cursor:default;box-shadow:0 34px 50px -24px rgba(0,0,0,.8)}
#sgwpl .dside .book,#sgwpl .dside .book:hover{transform:none}
#sgwpl .dside h3{font:600 19px/1.25 var(--fh);margin:26px 0 6px}
#sgwpl .dside p{margin:0;font-size:13.5px;color:#a9b8cc}
#sgwpl .dmain{padding:40px 40px 34px}
#sgwpl .x{position:absolute;right:16px;top:16px;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:var(--grey);background:#f1f4f8;z-index:2}
#sgwpl .x:hover{color:var(--ink);background:#e7ecf2}
#sgwpl .x svg{width:18px;height:18px}
#sgwpl .dmain h2{font:700 27px/1.1 var(--fh);letter-spacing:-.015em;color:var(--ink);margin:0 0 8px}
#sgwpl .dmain .intro{color:var(--grey);margin:0 0 24px;font-size:15px}
#sgwpl .grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px 14px}
#sgwpl .fld{display:flex;flex-direction:column;gap:6px;min-width:0}
#sgwpl .fld.full{grid-column:1/-1}
#sgwpl .fld label{font-size:13.5px;font-weight:600;color:var(--ink)}
#sgwpl .fld input{width:100%;min-width:0;height:48px;border-radius:11px;border:1px solid var(--line);background:#fbfcfd;padding:0 14px;font:400 16px var(--fb);color:var(--text);transition:border-color .2s,box-shadow .2s,background .2s}
#sgwpl .fld input::placeholder{color:#a5aebd}
#sgwpl .fld input:focus{outline:none;border-color:var(--teal);background:#fff;box-shadow:0 0 0 4px rgba(23,162,172,.14)}
#sgwpl .fld .err{display:none;font-size:12.5px;color:var(--pink)}
#sgwpl .fld.bad input{border-color:var(--pink);background:#fff7f9}
#sgwpl .fld.bad .err{display:block}
#sgwpl .consent{margin:18px 0 0;font-size:13px;line-height:1.55;color:var(--grey)}
#sgwpl .consent a{color:var(--navy);font-weight:600}
#sgwpl .submit{width:100%;margin-top:20px}
#sgwpl .submit[disabled]{opacity:.7;cursor:progress}
#sgwpl .ts{margin-top:16px;max-width:100%;overflow:hidden}
#sgwpl .ts:empty{display:none}
#sgwpl .ferr{display:none;margin:12px 0 0;font-size:13.5px;color:var(--pink)}
#sgwpl .ferr.on{display:block}
#sgwpl .known{display:none;align-items:center;gap:14px;padding:14px 16px;border-radius:14px;background:#f1f6fa;margin:0 0 20px}
#sgwpl .known.on{display:flex}
#sgwpl .known .av{flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font:600 15px var(--fh)}
#sgwpl .known div{flex:1;min-width:0;font-size:14px;color:var(--grey)}
#sgwpl .known b{display:block;color:var(--ink);font-weight:600}
#sgwpl .known button{font-size:13.5px;font-weight:600;color:var(--navy);text-decoration:underline;text-underline-offset:3px}
#sgwpl .done{display:none;text-align:left}
#sgwpl .done.on{display:block}
#sgwpl .done .ok{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#e6f6f6;color:var(--teal);margin-bottom:18px}
#sgwpl .done .ok svg{width:26px;height:26px}
#sgwpl .more{margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}
#sgwpl .more h4{font:600 15px var(--fh);color:var(--ink);margin:0 0 14px}
#sgwpl .more-list{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#sgwpl .more-list button{display:flex;gap:12px;align-items:center;text-align:left;padding:10px;border-radius:12px;box-shadow:inset 0 0 0 1px var(--line)}
#sgwpl .more-list button:hover{box-shadow:inset 0 0 0 1px var(--teal)}
#sgwpl .more-list img{width:44px;border-radius:2px 3px 3px 2px;box-shadow:0 8px 14px -8px rgba(15,29,51,.5)}
#sgwpl .more-list span{font:600 13.5px/1.3 var(--fh);color:var(--ink)}

@media (max-width:980px){
  #sgwpl .hero .wrap{grid-template-columns:1fr;padding-top:64px;padding-bottom:88px;gap:56px}
  #sgwpl .hero h1{max-width:none}
  #sgwpl .stage{order:-1}
  #sgwpl .hbook{width:min(300px,70%)}
  #sgwpl .shelf{grid-template-columns:repeat(2,minmax(0,1fr))}
  #sgwpl .compass .wrap{grid-template-columns:1fr;gap:28px}
}
@media (max-width:760px){
  #sgwpl .dlg{grid-template-columns:minmax(0,1fr);max-height:92dvh;border-radius:22px 22px 0 0;align-self:flex-end}
  #sgwpl .ov{padding:0;align-items:flex-end}
  #sgwpl .dside{flex-direction:row;padding:22px 22px;gap:16px;text-align:left;justify-content:flex-start}
  #sgwpl .dside .book{width:70px;flex:none;box-shadow:0 14px 24px -12px rgba(0,0,0,.8)}
  #sgwpl .dside h3{margin:0 0 4px;font-size:16px}
  #sgwpl .dmain{padding:24px 22px calc(24px + env(safe-area-inset-bottom,0px))}
  #sgwpl .x{background:rgba(255,255,255,.14);color:#fff}
}
@media (max-width:640px){
  #sgwpl .wrap{padding:0 18px}
  #sgwpl .hero .wrap{padding-top:44px;padding-bottom:64px;gap:40px}
  #sgwpl .hero h1{font-size:44px}
  #sgwpl .hero .lead{font-size:15.5px}
  #sgwpl .deadline{right:0;top:4%;padding:10px 12px}
  #sgwpl .deadline b{font-size:18px}
  #sgwpl .cta-row .btn{flex:1 1 100%}
  #sgwpl .lib{padding:64px 0 24px}
  #sgwpl .lib-head{margin-bottom:30px}
  #sgwpl .filters{display:flex;width:100%}
  #sgwpl .filters button{flex:1;padding:10px 6px;font-size:13.5px}
  #sgwpl .filters button span{display:none}
  #sgwpl .shelf{row-gap:44px}
  #sgwpl .item{padding:0 10px}
  #sgwpl .stand{margin:0 -10px}
  #sgwpl .stand{height:230px;padding-bottom:12px}
  #sgwpl .stand::after{height:12px}
  #sgwpl .book{width:138px}
  #sgwpl .stand .floor{width:130px}
  #sgwpl .tag{left:14px}
  #sgwpl .info{padding-top:18px}
  #sgwpl .info h3{font-size:16.5px}
  #sgwpl .info p{display:none}
  #sgwpl .meta{font-size:12.5px;gap:4px 10px;margin-bottom:12px}
  #sgwpl .dl{font-size:13.5px;padding:8px 11px}
  #sgwpl .compass{margin-top:64px;padding:52px 0 28px}
  #sgwpl .editions li{grid-template-columns:40px minmax(0,1fr);gap:14px}
  #sgwpl .editions button{grid-column:2;justify-self:start;margin-top:4px}
  #sgwpl .ed-no{width:40px;height:40px}
  #sgwpl .editions::before{left:19px}
  #sgwpl .grid2{grid-template-columns:1fr}
  #sgwpl .submit{position:sticky;bottom:calc(10px + env(safe-area-inset-bottom,0px));box-shadow:0 -10px 24px 8px #fff,0 18px 40px -16px rgba(23,162,172,.8)}
  #sgwpl .filters button{line-height:1.2}
  #sgwpl .more-list{grid-template-columns:1fr}
}
@media (max-width:370px){#sgwpl .book{width:118px}#sgwpl .stand{height:200px;margin:0 -6px}#sgwpl .item{padding:0 6px}}

@media (prefers-reduced-motion:reduce){#sgwpl *{animation:none!important;transition:none!important}}

#sgwpl h1,#sgwpl h2,#sgwpl h3,#sgwpl h4,#sgwpl p{text-transform:none}
