/* Case-study library: extends the existing Wrightway Energy theme. */
:focus-visible{outline:3px solid var(--cyan);outline-offset:5px}
.skip-link{position:fixed;left:1rem;top:-6rem;z-index:100;background:var(--lime);color:var(--bg);padding:.8rem 1.2rem;border-radius:8px}.skip-link:focus{top:1rem}
.nav a[aria-current="page"]{color:var(--lime)}
.library-hero{padding:152px 0 66px}.hero-intro{max-width:900px}.hero-intro h1{font:800 clamp(2.8rem,5.7vw,4.7rem)/1.04 var(--display);letter-spacing:-.045em;margin:0 0 1.6rem}.library-lede{max-width:760px;font-size:clamp(1.05rem,1.7vw,1.24rem);line-height:1.7;color:#b2c8bc}.hero-meta{display:flex;flex-wrap:wrap;gap:1.4rem;margin-top:1.8rem;color:var(--muted);font-size:.82rem}.hero-meta span::before{content:"+";color:var(--emerald);margin-right:.5rem;font-weight:700}
.free-feature{display:grid;grid-template-columns:1fr 1.03fr;border:1px solid rgba(163,230,53,.32);border-radius:var(--radius);margin-top:3.5rem;background:linear-gradient(125deg,#112a1f,#0a1812);overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.18)}.free-feature-copy{padding:clamp(1.5rem,3vw,2.5rem)}.free-badge{font-size:.68rem;font-weight:700;letter-spacing:.16em;color:var(--lime);margin-bottom:1.4rem}.free-feature h2{font:700 clamp(1.9rem,3.2vw,2.55rem)/1.08 var(--display);letter-spacing:-.035em;margin-bottom:1.2rem}.free-feature-copy>p:not(.free-badge):not(.free-note){font-size:.98rem;color:#b2c8bc;max-width:35rem}.feature-actions{display:flex;align-items:center;flex-wrap:wrap;gap:1.2rem;margin-top:1.9rem}.feature-actions .btn{font-size:.87rem;padding:.8rem 1.1rem}.report-link{font-size:.84rem;text-decoration:underline;text-underline-offset:4px;color:var(--text)}.free-feature .free-note{color:var(--muted);font-size:.72rem;line-height:1.7;margin-top:1.15rem}.free-feature-image{background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:1.4rem .7rem .85rem}.free-feature-image img{display:block;width:100%;height:auto;max-height:340px;object-fit:contain}.free-feature-image figcaption{color:#5e7568;font-size:.66rem;margin-top:.7rem;text-align:center;letter-spacing:.02em}
.included-section{padding:48px 0 65px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:rgba(14,31,23,.4)}.included-intro h2,.catalog-heading h2,.faq-layout h2,.library-contact h2{font:700 clamp(1.8rem,3vw,2.6rem)/1.1 var(--display);letter-spacing:-.035em}.included-intro .section-tag{margin-bottom:.6rem}.included-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:1.8rem;margin-top:2.5rem}.included-grid>div{border-top:1px solid var(--line);padding-top:1rem}.included-grid span{font:500 .7rem var(--body);color:var(--emerald)}.included-grid h3{font:600 .98rem/1.3 var(--display);margin:.65rem 0 .5rem}.included-grid p{font-size:.81rem;line-height:1.7;color:var(--muted)}
.catalog-section{padding:95px 0 85px;scroll-margin-top:80px}.catalog-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:2rem}.catalog-heading .section-tag{margin-bottom:.7rem}.catalog-heading>p{font-size:.88rem;color:var(--muted)}.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:2.2rem 0 1.5rem}.filter-buttons{display:flex;flex-wrap:wrap;gap:.5rem}.filter-buttons button{font:500 .78rem var(--body);color:var(--muted);background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:.65rem 1rem;cursor:pointer;transition:background .2s,color .2s}.filter-buttons button:hover{color:var(--text);border-color:var(--emerald)}.filter-buttons button[aria-pressed="true"]{color:var(--bg);background:var(--lime);border-color:var(--lime)}#case-count{font-size:.77rem;white-space:nowrap;color:var(--muted)}
.study-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}.study-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--surface);transition:border-color .2s,transform .2s}.study-card[hidden]{display:none}.study-card:hover{border-color:rgba(52,211,153,.5);transform:translateY(-3px)}.study-image{position:relative;background:#fff;aspect-ratio:2.05/1;display:grid;place-items:center;overflow:hidden}.study-image img{display:block;width:100%;height:100%;object-fit:contain;max-height:280px;padding:.75rem}.case-number{position:absolute;left:1rem;top:1rem;border-radius:999px;background:#112a1f;color:#e9f3ec;padding:.27rem .65rem;font-size:.62rem;font-weight:700;letter-spacing:.1em}.study-copy{padding:1.6rem;display:flex;flex:1;flex-direction:column}.study-category{font-size:.65rem;text-transform:uppercase;letter-spacing:.14em;color:var(--emerald);font-weight:600;margin-bottom:.65rem}.study-copy h3{font:700 clamp(1.25rem,2vw,1.55rem)/1.2 var(--display);letter-spacing:-.025em;max-width:95%;margin-bottom:.9rem}.study-copy h3 span{color:var(--lime)}.study-description{color:#a8bfb1;font-size:.87rem;line-height:1.7;flex:1}.study-bottom{border-top:1px solid var(--line);margin-top:1.6rem;padding-top:1.2rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}.study-price{font:700 1.65rem/1 var(--display)}.free-price{color:var(--lime)}.purchase-note{display:block;font-size:.65rem;color:var(--muted);margin-top:.5rem}.study-bottom .btn{font-size:.79rem;padding:.7rem 1rem;white-space:nowrap}.study-bottom .btn--ghost:hover{background:var(--surface-2);border-color:var(--emerald)}
.faq-section{padding:75px 0 85px;border-top:1px solid var(--line);background:rgba(14,31,23,.35)}.faq-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:4rem}.faq-layout>div>p:not(.section-tag){margin-top:1.3rem;max-width:23rem;font-size:.9rem;color:var(--muted)}.faq-list details{border-bottom:1px solid var(--line);padding:1.15rem 0}.faq-list details:first-child{border-top:1px solid var(--line)}.faq-list summary{font:600 .96rem/1.5 var(--display);cursor:pointer;padding-right:1rem;color:var(--text)}.faq-list p{color:#a8bfb1;font-size:.86rem;line-height:1.8;margin-top:.85rem;padding-right:1.4rem}.faq-list a{text-decoration:underline;text-underline-offset:3px;color:var(--emerald)}
.library-contact{text-align:center;padding:90px 0 100px}.library-contact p:not(.section-tag){color:var(--muted);margin:1.3rem auto 1.8rem;max-width:35rem}.library-contact .btn{font-size:.9rem}.footer-meta{color:var(--muted)}
@media(min-width:1300px){.study-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.study-copy{padding:1.4rem}.study-bottom{align-items:flex-start;flex-direction:column;gap:1rem}.study-bottom .btn{width:100%}.study-copy h3{font-size:1.4rem;min-height:3.4rem}.study-image{aspect-ratio:1.85/1}}
@media(max-width:1000px){.included-grid{grid-template-columns:repeat(3,1fr)}.free-feature{grid-template-columns:1fr 1fr}.feature-actions{gap:1rem}.feature-actions .btn{font-size:.8rem}.faq-layout{gap:2.5rem}.study-copy{padding:1.3rem}}
@media(max-width:860px){.library-hero{padding-top:125px}.free-feature{grid-template-columns:1fr}.free-feature-image{grid-row:1;min-height:230px;padding:1.5rem}.free-feature-image img{max-height:270px}.free-feature-copy{padding:2rem}.hero-intro h1{font-size:clamp(2.6rem,7vw,3.8rem)}.catalog-heading{align-items:flex-start;flex-direction:column;gap:1rem}.catalog-toolbar{align-items:flex-start;flex-direction:column}.faq-layout{grid-template-columns:1fr;gap:2rem}.faq-layout>div>p:not(.section-tag){max-width:40rem}.study-bottom{align-items:flex-start;flex-direction:column}.study-bottom .btn{width:100%}.catalog-section{padding-block:65px}.included-section{padding-top:40px}.nav ul{max-height:calc(100dvh - 80px);overflow:auto}}
@media(max-width:580px){.study-grid{grid-template-columns:1fr;gap:1.3rem}.library-hero{padding:115px 0 45px}.hero-intro h1{font-size:2.7rem}.hero-meta{gap:.6rem 1.1rem;font-size:.72rem}.library-lede{font-size:1rem}.free-feature{margin-top:2.3rem}.free-feature-copy{padding:1.5rem}.free-feature h2{font-size:2.1rem}.free-feature-copy>p:not(.free-badge):not(.free-note){font-size:.9rem}.free-feature-image{padding:1rem .3rem;min-height:200px}.free-feature-image img{max-height:220px}.free-feature .free-note{font-size:.67rem}.included-grid{grid-template-columns:1fr 1fr;gap:1.4rem}.included-grid>div:last-child{grid-column:1/-1;max-width:19rem}.study-copy{padding:1.5rem}.study-copy h3{font-size:1.5rem}.study-bottom{flex-direction:row;align-items:center}.study-bottom .btn{width:auto;font-size:.76rem}.filter-buttons{gap:.45rem}.filter-buttons button{padding:.6rem .75rem;font-size:.7rem}.faq-section{padding-block:55px}.library-contact{padding-block:65px}.library-contact h2{font-size:2rem}.footer-inner{gap:1rem}.footer-meta{font-size:.77rem}}
@media(prefers-reduced-motion:reduce){.study-card,.filter-buttons button{transition:none}.study-card:hover{transform:none}}
@media(max-width:860px){.nav ul{visibility:hidden}.nav ul.open{visibility:visible}}

.refinerycanvas-section{padding-top:48px}.refinerycanvas-card{display:flex;align-items:center;justify-content:space-between;gap:2.5rem;padding:clamp(1.5rem,3vw,2.5rem);border:1px solid rgba(52,211,153,.32);border-radius:var(--radius);background:linear-gradient(120deg,#112a1f,#0a1812)}.refinerycanvas-card>div{max-width:44rem}.refinerycanvas-card .section-tag{margin-bottom:.8rem}.refinerycanvas-card h2{font:700 clamp(1.6rem,2.6vw,2.1rem)/1.15 var(--display);letter-spacing:-.03em;margin-bottom:1rem}.refinerycanvas-card p:not(.section-tag){font-size:.94rem;line-height:1.8;color:#b2c8bc}.refinerycanvas-card .btn{flex-shrink:0;font-size:.87rem;white-space:nowrap}@media(max-width:860px){.refinerycanvas-card{align-items:flex-start;flex-direction:column;gap:1.5rem}}
