/* Progressive chapters for the original long AQW homepage. */
.aqw-library{padding:72px 0 94px;background:linear-gradient(180deg,#06131b,#0b1722);color:#eef8f8;border-top:1px solid rgba(107,218,214,.18)}
.aqw-library-heading{max-width:760px;margin-bottom:28px}
.aqw-library-heading>span,.aqw-use-paths-head>span{display:block;color:#72dfd4;font-size:11px;font-weight:900;letter-spacing:.18em}
.aqw-library-heading h2,.aqw-use-paths-head h2{margin:12px 0 11px;font-size:clamp(29px,3.3vw,46px);line-height:1.12;letter-spacing:-.04em;color:#f4fbfc}
.aqw-library-heading p,.aqw-use-paths-head p{margin:0;color:#b3cbd1;font-size:15px;line-height:1.65}
.aqw-library-list{display:grid;gap:10px}
.aqw-library-chapter{border:1px solid rgba(138,198,207,.22);border-radius:16px;background:linear-gradient(125deg,rgba(17,43,53,.9),rgba(6,20,30,.95));overflow:hidden}
.aqw-library-chapter[open]{border-color:rgba(110,226,212,.48);box-shadow:0 16px 40px rgba(0,0,0,.14)}
.aqw-library-chapter>summary{display:grid;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:14px;min-height:96px;padding:16px 24px;list-style:none;cursor:pointer}
.aqw-library-chapter>summary::-webkit-details-marker{display:none}
.aqw-library-chapter>summary:hover{background:rgba(93,219,203,.055)}
.aqw-library-chapter>summary:focus-visible{outline:2px solid #f2ce7b;outline-offset:-5px}
.aqw-library-number{color:#72e1d2;font:900 12px/1 monospace}
.aqw-library-topic{display:flex;flex-direction:column;gap:5px;min-width:0}
.aqw-library-topic strong{color:#f3fbfc;font-size:18px;line-height:1.3}
.aqw-library-topic small{color:#a8c3c9;font-size:12px;line-height:1.45}
.aqw-library-toggle{display:inline-flex;align-items:center;gap:9px;color:#72e2d5;font-size:11px;font-weight:800;white-space:nowrap}
.aqw-library-toggle:after{content:'+';font-size:20px;line-height:1;font-weight:400}
.aqw-library-chapter[open] .aqw-library-toggle:after{content:'−'}
.aqw-library-content{border-top:1px solid rgba(127,194,201,.16);background:#06131b}
.aqw-library-shortcuts{display:flex;flex-wrap:wrap;gap:9px;padding:16px max(20px,calc((100vw - 1180px)/2));border-bottom:1px solid rgba(127,194,201,.14)}
.aqw-library-shortcuts a{display:inline-flex;min-height:34px;align-items:center;padding:6px 11px;border:1px solid rgba(112,227,214,.28);border-radius:999px;background:#102b33;color:#bdeee5;text-decoration:none;font-size:11px;font-weight:800}
.aqw-library-shortcuts a:hover{background:#18434b;color:#fff}
.aqw-library-content>section{scroll-margin-top:0}
.aqw-library-content>#home.v2-hero{min-height:0;padding:55px 0 50px}
.aqw-library-content>#home .v2-hero-grid{min-height:0;display:block;max-width:960px}
.aqw-library-content>#home h1{font-size:clamp(35px,4vw,56px);line-height:1.08}
.aqw-library-content>#home .hero-actions>:nth-child(n+3){display:none}
.aqw-library-content>#home .v2-hero-visual{display:none}
.aqw-use-paths{background:#071821;color:#f0f8f8}
.aqw-use-paths-head{max-width:760px;margin-bottom:24px}
.aqw-use-paths-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.aqw-use-paths-grid a{position:relative;display:flex;flex-direction:column;min-height:172px;padding:20px;border:1px solid rgba(116,211,205,.23);border-radius:14px;background:#0d2530;color:#e9f7f6;text-decoration:none}
.aqw-use-paths-grid a:hover{border-color:#76e7d9;background:#12323e}
.aqw-use-paths-grid a>span{color:#76e7d9;font:800 11px/1 monospace}
.aqw-use-paths-grid strong{display:block;margin-top:13px;font-size:17px}
.aqw-use-paths-grid p{margin:8px 0 15px;color:#a7c5cb;font-size:12px;line-height:1.55}
.aqw-use-paths-grid em{position:absolute;right:20px;bottom:16px;color:#80e7dc;font-size:18px;font-style:normal}
.aqw-use-paths-grid a:focus-visible,.aqw-library-shortcuts a:focus-visible{outline:2px solid #f2ce7b;outline-offset:3px}
.aqw-trial-rules{margin:12px 0 0;font-size:12px;line-height:1.55}
.aqw-trial-rules a{color:#067f77;font-weight:800;text-decoration:underline;text-underline-offset:3px}
@media(max-width:720px){.aqw-library{padding:55px 0 70px}.aqw-library-chapter>summary{grid-template-columns:27px minmax(0,1fr);min-height:90px;padding:15px;gap:9px}.aqw-library-toggle{grid-column:2}.aqw-library-shortcuts{padding:13px 18px}.aqw-library-content>#home.v2-hero{padding:48px 0}.aqw-library-content>#home .v2-hero-visual{display:none}.aqw-use-paths-grid{grid-template-columns:1fr}.aqw-use-paths-grid a{min-height:148px}}
@media print{.aqw-library-chapter,.aqw-library-chapter[open]{border:0;box-shadow:none}.aqw-library-chapter>summary{min-height:0;padding:12px 0}.aqw-library-shortcuts{display:none}}

/* A calmer chapter index with a visible scan path and clearer open state. */
.aqw-library{
  position:relative;
  isolation:isolate;
  padding:76px 0 96px;
  background:radial-gradient(800px 400px at 95% 0%,rgba(87,134,224,.075),transparent 75%),linear-gradient(180deg,#06131b,#0a1721);
}
.aqw-library-heading{max-width:820px;margin-bottom:30px}
.aqw-library-heading h2{font-size:clamp(32px,3.35vw,48px);line-height:1.12;text-wrap:balance}
.aqw-library-heading p{max-width:760px;line-height:1.7}
.aqw-library-list{gap:11px}
.aqw-library-chapter{
  --chapter-accent:#76e8d8;
  position:relative;
  border-color:rgba(132,203,214,.24);
  background:linear-gradient(120deg,rgba(18,47,58,.94),rgba(6,22,31,.96) 74%);
  box-shadow:inset 0 1px rgba(217,255,253,.035);
  transition:border-color .2s,background .2s,box-shadow .2s;
}
.aqw-library-chapter:nth-child(2),.aqw-library-chapter:nth-child(5){--chapter-accent:#88c9fa}
.aqw-library-chapter:nth-child(3),.aqw-library-chapter:nth-child(6){--chapter-accent:#c6b0fa}
.aqw-library-chapter:nth-child(4),.aqw-library-chapter:nth-child(7){--chapter-accent:#efd390}
.aqw-library-chapter:before{content:"";position:absolute;z-index:1;inset:0 auto 0 0;width:3px;background:linear-gradient(180deg,var(--chapter-accent),transparent);opacity:.58;pointer-events:none}
.aqw-library-chapter:hover{border-color:color-mix(in srgb,var(--chapter-accent) 43%,transparent)}
.aqw-library-chapter[open]{border-color:color-mix(in srgb,var(--chapter-accent) 55%,transparent);box-shadow:0 18px 42px rgba(0,0,0,.17)}
.aqw-library-chapter[open]:before{opacity:1}
.aqw-library-chapter>summary{grid-template-columns:52px minmax(0,1fr) auto;gap:17px;min-height:100px;padding:18px 24px}
.aqw-library-chapter>summary:hover{background:color-mix(in srgb,var(--chapter-accent) 4%,transparent)}
.aqw-library-number{display:grid;place-items:center;width:39px;height:39px;border:1px solid color-mix(in srgb,var(--chapter-accent) 34%,transparent);border-radius:11px;background:color-mix(in srgb,var(--chapter-accent) 10%,transparent);color:var(--chapter-accent);font:900 12px/1 monospace}
.aqw-library-topic{gap:6px}
.aqw-library-topic strong{font-size:19px;line-height:1.3}
.aqw-library-topic small{color:#b0c9d0;font-size:12.5px;line-height:1.5}
.aqw-library-toggle{justify-content:center;min-width:112px;min-height:35px;padding:5px 10px;border:1px solid rgba(130,214,217,.24);border-radius:8px;background:rgba(73,194,194,.07);color:var(--chapter-accent);font-size:11px}
.aqw-library-chapter[open] .aqw-library-toggle{background:color-mix(in srgb,var(--chapter-accent) 13%,transparent);border-color:color-mix(in srgb,var(--chapter-accent) 42%,transparent)}
.aqw-library-shortcuts{gap:10px}
.aqw-library-shortcuts a{min-height:36px;padding:7px 13px}
@media(max-width:720px){
  .aqw-library{padding:58px 0 73px}
  .aqw-library-heading{margin-bottom:25px}
  .aqw-library-heading h2{font-size:clamp(30px,8vw,36px)}
  .aqw-library-heading p{font-size:13.5px;line-height:1.65}
  .aqw-library-list{gap:10px}
  .aqw-library-chapter>summary{grid-template-columns:39px minmax(0,1fr);column-gap:12px;row-gap:8px;min-height:0;padding:17px 17px 18px}
  .aqw-library-number{width:33px;height:33px;border-radius:9px;font-size:11px}
  .aqw-library-topic{gap:4px}
  .aqw-library-topic strong{font-size:18px}
  .aqw-library-topic small{font-size:12px}
  .aqw-library-toggle{justify-self:start;min-width:0;min-height:30px;padding:4px 9px;font-size:10.5px}
}
@media(prefers-reduced-motion:reduce){.aqw-library-chapter{transition:none}}

/* Chapter rows share the same entrance pace as the guided cards. */
.aqw-library .aqw-enter-pending{transition:opacity .62s ease,transform .62s cubic-bezier(.2,.7,.2,1),border-color .2s,box-shadow .2s}
.aqw-library .aqw-enter-pending:not(.aqw-entered){opacity:0;transform:translate3d(0,18px,0)}
.aqw-library .aqw-enter-pending.aqw-entered{transition-delay:var(--aqw-enter-delay,0ms)}
.aqw-library-chapter .aqw-library-number,.aqw-library-chapter .aqw-library-toggle,.aqw-library-chapter .aqw-library-toggle:after{transition:transform .28s cubic-bezier(.2,.7,.2,1),background .22s,border-color .22s}
.aqw-library-chapter[open] .aqw-library-number{transform:scale(1.06)}
.aqw-library-chapter[open] .aqw-library-toggle:after{transform:rotate(90deg)}
.aqw-library-chapter[open] .aqw-library-shortcuts{animation:aqw-shortcuts-in .3s ease-out both}
@keyframes aqw-shortcuts-in{from{opacity:0;transform:translate3d(0,-6px,0)}to{opacity:1;transform:none}}
@media(hover:hover){.aqw-library-chapter>summary:hover .aqw-library-number{transform:scale(1.06)}.aqw-library-chapter>summary:hover .aqw-library-toggle{transform:translate3d(2px,0,0)}}
@media(prefers-reduced-motion:reduce){
  .aqw-library .aqw-enter-pending,.aqw-library-chapter .aqw-library-number,.aqw-library-chapter .aqw-library-toggle,.aqw-library-chapter .aqw-library-toggle:after{transition:none!important}
  .aqw-library .aqw-enter-pending:not(.aqw-entered){opacity:1;transform:none}
  .aqw-library-chapter[open] .aqw-library-shortcuts{animation:none}
}

/* Every topic is part of the page flow; chapter headers have no collapse control. */
.aqw-library-list{gap:28px}
.aqw-library-chapter-expanded{min-width:0;overflow:clip;border-color:color-mix(in srgb,var(--chapter-accent) 40%,transparent)}
.aqw-library-chapter-expanded:before{opacity:.9}
.aqw-library-chapter-head{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:16px;padding:27px clamp(18px,3vw,34px) 25px;background:linear-gradient(90deg,color-mix(in srgb,var(--chapter-accent) 9%,transparent),transparent 72%)}
.aqw-library-chapter-head .aqw-library-topic{display:block;min-width:0}
.aqw-library-chapter-head h3{margin:0;color:#f3fbfc;font-size:clamp(21px,2.2vw,29px);line-height:1.25;letter-spacing:-.025em;overflow-wrap:anywhere}
.aqw-library-chapter-head p{margin:8px 0 0;max-width:760px;color:#bbd0d5;font-size:14px;line-height:1.65;overflow-wrap:anywhere}
.aqw-library-chapter-expanded .aqw-library-content{min-width:0}
.aqw-library-chapter-expanded .aqw-library-content>section{position:relative;min-width:0;scroll-margin-top:82px}
.aqw-library-chapter-expanded .aqw-library-shortcuts{padding:16px clamp(18px,3vw,34px);gap:10px}
.aqw-library-chapter-expanded .aqw-library-shortcuts a{white-space:normal;overflow-wrap:anywhere}
.aqw-library-chapter-expanded .aqw-library-content>section+section{border-top:1px solid rgba(132,203,214,.13)}
@media(max-width:720px){
  .aqw-library-list{gap:18px}
  .aqw-library-chapter-head{grid-template-columns:33px minmax(0,1fr);gap:12px;padding:21px 17px 19px}
  .aqw-library-chapter-head h3{font-size:21px}
  .aqw-library-chapter-head p{font-size:12.5px}
  .aqw-library-chapter-expanded .aqw-library-shortcuts{padding:13px 17px;gap:8px}
  .aqw-library-chapter-expanded .aqw-library-content>section{scroll-margin-top:68px}
}
@media print{.aqw-library-chapter-head{padding:15px 0}.aqw-library-list{gap:16px}}
