/* Local author-studio polish: preserve controls, handlers, URLs and commerce state. */
.wp-block-group:has(> .wp-block-post-content > .storybd-library){padding-top:0!important}
#storybd-library-stories .storybd-library-reader-primary{background:#22304a!important;color:#fff!important;border-color:#273651!important}
:is(.storybd-library,.cxc-catalogue,.cxrc-reader-ready){--cxu-ink:#20283d;--cxu-muted:#58647a;--cxu-pink:#e7196b;--cxu-line:#e4e6ee}
:is(.storybd-library,.cxc-catalogue,.cxrc-reader-ready) :is(a,button,summary,input,textarea,select):focus-visible{outline:3px solid #1673c9!important;outline-offset:4px!important}
:is(.storybd-library,.cxc-catalogue,.cxrc-reader-ready) :is(button,a){-webkit-tap-highlight-color:transparent}
:is(.storybd-library,.cxc-catalogue,.cxrc-reader-ready) :is(h1,h2,h3){text-wrap:balance}
.storybd-v7.storybd-library[data-storybd-library-layout]{padding-top:38px!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-dashboard-head{gap:24px!important;margin-bottom:24px!important;padding-top:0!important;align-items:center!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-heading-copy h1{font-size:clamp(28px,3vw,40px)!important;line-height:1.12!important;margin:0 0 12px!important;letter-spacing:-.04em!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-heading-copy>p{display:block!important;font-size:14px!important;line-height:1.6!important;color:#e3e7f1!important;margin:0 0 16px!important}
.cxu-library-nav{display:flex;flex-wrap:wrap;gap:8px 18px}
.cxu-library-nav a{font-size:12px!important;line-height:1.5;color:#fff!important;text-decoration:none!important;display:inline-flex;align-items:center;min-height:38px;border-bottom:1px solid #ffffff40}
.cxu-library-nav a:hover{border-color:#ffda73;color:#ffda73!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-credit-card{padding:18px 20px!important;border:1px solid #ffffff40!important;border-radius:18px!important;box-shadow:none!important;gap:14px!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-credit-summary>strong{font-size:13px!important;line-height:1.3!important;color:#48556d!important;font-weight:500!important;display:block!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-credit-balance{font-size:30px!important;line-height:1!important;font-weight:850!important;display:inline!important;color:#20283d!important;margin-right:5px}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-credit-summary :is(p,em){font-size:11px!important;font-weight:400!important;line-height:1.5!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-credit-add{font-size:11px!important;min-height:42px!important;padding:12px 18px!important;box-shadow:none!important;text-transform:none!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-created-notice{min-height:0!important;padding:20px 24px!important;margin:0 auto 26px!important;border-radius:18px!important;border:1px solid #f0dfb1!important;box-shadow:0 5px 16px #111b3510!important;display:flex!important;align-items:center!important;gap:24px!important;background:linear-gradient(110deg,#fff6d6,#fffdf6 60%,#e8fbff)!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-created-copy{flex:1!important;min-width:0!important}
.storybd-v7.storybd-library[data-storybd-library-layout] #storybd-library-created-title{font-family:inherit!important;font-size:clamp(19px,2vw,25px)!important;line-height:1.2!important;letter-spacing:-.02em!important;text-shadow:none!important;-webkit-text-stroke:0!important;text-transform:none!important;margin:0 0 6px!important;font-weight:800!important;color:#20283d!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-created-copy p{font-size:13px!important;line-height:1.5!important;font-weight:400!important;color:#526077!important;margin:0!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-created-dialogue{width:auto!important;flex:none!important;font-size:13px!important;line-height:1.35!important;min-height:46px!important;padding:13px 20px!important;border:0!important;border-radius:12px!important;box-shadow:3px 3px 0 #20283d!important;transform:none!important;text-transform:none!important;background:#ee2071!important;color:#fff!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-confetti{opacity:.2!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-created-kicker{display:none!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-featured{border-radius:22px!important;overflow:visible!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-reader-primary{min-height:92px!important;border:1px solid #273651!important;border-radius:16px!important;box-shadow:0 5px 18px #142b4220!important;background:#22304a!important;padding:18px 20px!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-reader-primary .storybd-library-reader-copy strong{color:#fff!important;font-size:21px!important;line-height:1.2!important;font-weight:800!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-reader-primary .storybd-library-reader-copy small{color:#dce4f2!important;font-size:12px!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .cxa-sales-launch{min-height:92px;padding:18px 20px!important;box-shadow:none!important;border-radius:16px!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .cxa-sales-launch strong{font-size:21px!important;line-height:1.2!important;color:#35243e!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .cxrc-author-row{display:grid!important;grid-template-columns:1fr 1fr!important;align-items:start!important;gap:16px!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .cxrc-author-row:has(.cxa-sales-launch[hidden]){grid-template-columns:1fr!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .cxa-sales-content{padding:26px!important;gap:22px!important;border-top-width:3px!important;border-radius:18px!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .cxa-sales-heading{padding-bottom:14px;border-bottom:1px solid #e6ddec}
.storybd-v7.storybd-library[data-storybd-library-layout] .cxa-sales-heading h2{font-size:24px!important;font-style:normal!important;color:#30233e!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .cxa-profile-strip{border-radius:14px!important;box-shadow:none!important;background:#fff!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .cxa-author-share-card{padding:18px!important;border-radius:14px!important;box-shadow:none!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .cxa-author-share-copy h3{font-size:18px!important;line-height:1.3!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .cxa-version-card{border-radius:14px!important;background:#fff!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .cxa-version-card:has(.cxa-version-toggle input:checked){border-color:#e74d8a!important;box-shadow:0 0 0 1px #e74d8a20!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .cxa-option-heading p{color:#59667a!important;font-size:12px!important}
.storybd-v7.storybd-library[data-storybd-library-layout] .storybd-planche-dialogue-needed-badge{top:52px!important;right:10px!important;font-size:10px!important;padding:8px 10px!important;max-width:calc(100% - 20px)!important;min-height:32px!important}
.cxu-badge-disclosure{margin:28px auto!important;max-width:1180px;border:1px solid #ffffff40;border-radius:18px;background:#ffffff0d;color:white;padding:0 22px}
.cxu-badge-disclosure>summary{min-height:74px;display:flex;align-items:center;gap:12px;cursor:pointer;font-size:18px;font-weight:700;list-style:none}
.cxu-badge-disclosure>summary::-webkit-details-marker{display:none}.cxu-badge-disclosure>summary>span{color:#ffda73;font-size:28px}.cxu-badge-disclosure>summary small{font-size:12px;font-weight:400;color:#dce3ef;margin-left:auto}.cxu-badge-disclosure>summary b{font-size:24px}.cxu-badge-disclosure[open]>summary b{transform:rotate(45deg)}
.cxu-badge-disclosure .storybd-library-badges{margin:0!important}
/* Discovery: the filters guide the choice without pushing every book below several screens. */
.cxc-catalogue .cxc-hero{padding:27px 34px;border-radius:22px;display:grid;grid-template-columns:1fr auto;gap:8px 30px;align-items:center}
.cxc-catalogue .cxc-eyebrow{grid-column:1/-1;font-size:10px;letter-spacing:.14em}
.cxc-catalogue .cxc-hero h1{font-size:clamp(30px,3.6vw,46px);line-height:1.08;letter-spacing:-.04em;margin:6px 0!important;max-width:700px;grid-column:1}
.cxc-catalogue .cxc-hero h1 br{display:none}.cxc-catalogue .cxc-hero h1 em:before{content:' '}
.cxc-catalogue .cxc-hero p{font-size:14px;line-height:1.6;margin:4px 0;grid-column:1;max-width:600px}.cxc-catalogue .cxc-hero p br{display:none}
.cxc-catalogue .cxc-hero-tags{margin:0;grid-column:2;grid-row:2/4;display:flex;flex-direction:column;align-items:flex-start;gap:6px;position:relative;z-index:1}
.cxc-catalogue .cxc-hero-tags span{font-size:11px;padding:7px 10px;background:#ffffffb8}
.cxc-catalogue .cxc-hero:after{font-size:160px;right:15%;top:0;opacity:.2}
.cxc-catalogue .cxc-discovery-filters{padding:20px 22px;margin:20px 0;border-radius:18px;box-shadow:none}
.cxc-catalogue .cxc-discovery-filters legend{font-size:13px;margin-bottom:10px}
.cxc-catalogue .cxc-filter-chip{min-height:38px;padding:8px 11px}
.cxc-catalogue .cxc-filter-chip b{font-size:11px}.cxc-catalogue .cxc-category-options{gap:7px}
.cxc-catalogue .cxc-discovery-filters .cxc-style-filter{margin-top:18px;padding-top:10px}
.cxc-catalogue .cxc-style-options{display:flex;overflow-x:auto;gap:10px;padding:3px 3px 10px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#c89ab6 #faf6fb}
.cxc-catalogue .cxc-style-choice{flex:0 0 108px;scroll-snap-align:start;border-radius:10px}
.cxc-catalogue .cxc-style-choice img,.cxc-catalogue .cxc-style-art{height:68px;object-fit:cover}
.cxc-catalogue .cxc-style-choice b{font-size:10px;padding:7px 3px}
.cxc-catalogue .cxc-style-filter legend:after{content:' · Faites défiler →';font-size:10px;font-weight:400;color:#6a5874}
.cxc-catalogue .cxc-filter-bottom{padding-top:14px;margin-top:10px;gap:10px}
.cxc-catalogue .cxc-filter-status{font-size:12px;line-height:1.4;margin:12px 0 0;color:#62506d}
.cxc-catalogue .cxc-results{margin:25px 0 18px}
.cxc-catalogue .cxc-card{border-radius:18px}.cxc-catalogue .cxc-card-body{padding:20px}.cxc-catalogue .cxc-card h3{font-size:23px}
.cxc-catalogue .cxc-scores{margin:17px 0;padding:11px 0}.cxc-catalogue .cxc-author{color:#63506e}
.cxc-catalogue .cxc-prices{font-size:13px;gap:10px}.cxc-catalogue .cxc-discover{min-height:46px;border-radius:11px!important;font-size:14px!important}
/* Reading first. Sharing remains after the pages, then author discovery and ratings. */
.storybd-v7.cxrc-reader-ready .cxrc-reader-intro{padding-top:24px;padding-bottom:18px}
.storybd-v7.cxrc-reader-ready .cxrc-reader-intro h1{font-size:clamp(29px,3.5vw,43px)!important;line-height:1.15!important;font-weight:750!important}
.storybd-v7.cxrc-reader-ready .cxrc-read-link{border-radius:999px;background:#ffdb64;color:#20283d!important;text-decoration:none;font-size:13px;padding:12px 22px;min-height:44px;box-shadow:0 3px 0 #141e3440}
.storybd-v7.cxrc-reader-ready .cxs-book-info{margin-top:0;margin-bottom:24px;border-radius:14px;padding:18px 22px;box-shadow:none;background:#fffaf2}
.storybd-v7.cxrc-reader-ready .cxs-book-info p{font-size:14px!important;line-height:1.65!important}
.storybd-v7.cxrc-reader-ready #cxrr-share-card{margin:28px auto;padding:24px;background:#202c46;border:1px solid #ffffff2e;border-radius:18px}
.storybd-v7.cxrc-reader-ready #cxrr-share-card h2{position:static!important;font-size:21px!important;color:#fff!important;text-shadow:none!important;-webkit-text-stroke:0!important;transform:none!important;animation:none!important;margin:0 0 10px!important;line-height:1.35!important}
.storybd-v7.cxrc-reader-ready #cxrr-share-card h2:before,.storybd-v7.cxrc-reader-ready #cxrr-share-card h2:after{content:none!important}
.storybd-v7.cxrc-reader-ready #cxrr-share-card .cxrr-reward-line{color:#e1e7f1!important;line-height:1.5!important}
.storybd-v7.cxrc-reader-ready #cxrr-share-card .cxrr-share-btn{background:#fff!important;color:#24334b!important;border:1px solid #dfe4ed!important;min-height:46px}
.storybd-v7.cxrc-reader-ready #cxrr-share-card .cxrr-share-btn strong{color:#24334b!important;text-shadow:none!important}
body .cxrc-buybar{gap:18px;padding:10px 20px calc(10px + env(safe-area-inset-bottom,0px));box-shadow:0 -5px 22px #0002}
body .cxrc-buybar strong{font-size:17px}body .cxrc-buybar .cxrc-button{font-size:14px;min-height:46px;padding:11px 18px}
.cxrc-reader-ready .cxa-locked-copy{border-radius:20px!important;box-shadow:0 14px 60px #172b4240!important}
@media(max-width:760px){
 .cxc-catalogue .cxc-category-options{display:grid;grid-template-rows:repeat(2,auto);grid-auto-flow:column;grid-auto-columns:max-content;overflow-x:auto;max-width:100%;padding:3px 3px 10px;scrollbar-width:thin;scrollbar-color:#c89ab6 #faf6fb}
 .cxc-catalogue .cxc-category-filter legend:after{content:' · Faites défiler →';font-size:10px;font-weight:400;color:#6a5874}
 .wp-block-post-content:has(> .storybd-library){padding-left:0!important;padding-right:0!important}
 .wp-block-post-content:has(> .storybd-reader){padding-left:0!important;padding-right:0!important}
 .cxc-catalogue .cxc-filter-chip{min-height:42px}
 .storybd-v7.storybd-library[data-storybd-library-layout]{padding-top:24px!important}
 .storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-dashboard-head{gap:18px!important}
 .storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-credit-card{padding:16px!important}
 .storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-created-notice{padding:18px!important;gap:14px!important;flex-wrap:wrap!important}
 .storybd-v7.storybd-library[data-storybd-library-layout] .storybd-library-created-dialogue{width:100%!important}
 .storybd-v7.storybd-library[data-storybd-library-layout] .cxrc-author-row{grid-template-columns:1fr!important;gap:12px!important}
 .storybd-v7.storybd-library[data-storybd-library-layout] .cxa-sales-content{padding:17px!important;gap:16px!important}
 .storybd-v7.storybd-library[data-storybd-library-layout] .cxa-sales-heading h2{font-size:21px!important}
 .cxu-badge-disclosure{padding:0 16px}.cxu-badge-disclosure>summary{font-size:15px;flex-wrap:wrap;gap:8px}.cxu-badge-disclosure>summary small{font-size:11px}
 .cxc-catalogue .cxc-hero{padding:24px;grid-template-columns:1fr;gap:7px}.cxc-catalogue .cxc-hero-tags{grid-column:1;grid-row:auto;flex-direction:row;flex-wrap:wrap;gap:5px;margin-top:5px}
 .cxc-catalogue .cxc-hero-tags span{font-size:10px;padding:6px 8px}.cxc-catalogue .cxc-hero h1{font-size:34px}.cxc-catalogue .cxc-hero p{font-size:13px}
 .cxc-catalogue .cxc-discovery-filters{padding:17px 14px}.cxc-catalogue .cxc-style-choice{flex-basis:96px}.cxc-catalogue .cxc-filter-bottom{flex-direction:column;align-items:flex-start}
 .cxc-catalogue .cxc-filter-reset{min-height:38px;padding:7px 0}.cxc-catalogue .cxc-cover-stage{height:300px}
 .storybd-v7.cxrc-reader-ready .cxrc-reader-intro{padding-top:16px}.storybd-v7.cxrc-reader-ready .cxrc-reader-intro p{font-size:12px!important;line-height:1.6!important}
 .storybd-v7.cxrc-reader-ready .cxs-book-info{padding:15px}.storybd-v7.cxrc-reader-ready .cxs-book-info p{font-size:13px!important}
 .storybd-v7.cxrc-reader-ready #cxrr-share-card{padding:20px 14px}.storybd-v7.cxrc-reader-ready #cxrr-share-card .cxrr-share-actions{gap:7px}
 .storybd-v7.cxrc-reader-ready #cxrr-share-card .cxrr-share-btn{padding:9px;font-size:12px!important}
 body .cxrc-buybar{gap:8px 12px;padding:9px 12px calc(9px + env(safe-area-inset-bottom,0px))}body .cxrc-buybar strong{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.cxu-badge-disclosure summary b{transition:none}}
