/* Rantey premium dark final pass: loaded at end of body to override legacy inline page CSS */
:root{
 --rd-bg:#071522;--rd-bg2:#0a1b2a;--rd-panel:#0d2131;--rd-panel2:#10283a;
 --rd-border:#29465b;--rd-border2:#36566d;--rd-text:#f5f0e7;--rd-muted:#a8b8c4;
 --rd-gold:#f1b64d;--rd-gold2:#ffd37b;--rd-green:#66d8b0;--rd-red:#ff7373;
}
html,body{background:#071522!important;color:var(--rd-text)!important}
main{background:transparent!important}
main p,main li,main dd{color:#d2dde5}

/* HOME: erase remaining cream / burgundy */
body .home-tools,
body .guest-library-hero,
body .guest-categories,
body .guest-how,
body .guest-seo-copy,
body .guest-feature-grid article,
body .guest-how-steps article,
body .activity-panel,
body .category-shortcuts,
body .announcements,
body .home-community{
 background:linear-gradient(180deg,#0e2233,#0a1c2b)!important;
 border-color:var(--rd-border)!important;
 color:var(--rd-text)!important;
 box-shadow:0 14px 34px rgba(0,0,0,.2)!important
}
body .home-welcome h1,body .home-welcome h2,
body .guest-library-hero h1,body .guest-library-hero h2,
body .guest-feature-grid h2,body .guest-how h2,body .guest-seo-copy h2{color:#fff!important}
body .home-welcome p,body .guest-library-hero p,body .guest-feature-grid p,
body .guest-how p,body .guest-how span,body .guest-seo-copy p{color:#afc0cc!important}
body .home-header-stats>div{
 background:#0a1c2a!important;border-color:#2c4b61!important;box-shadow:none!important
}
body .home-header-stats b{color:var(--rd-gold2)!important}
body .home-header-stats span{color:#9eb0bd!important}
body .welcome-links a,body .home-auth-actions a,
body .guest-library-actions a,body .guest-final-cta a{
 background:#0b1e2d!important;border-color:#355269!important;color:#e9f0f4!important
}
body .welcome-links a:first-child,
body .home-auth-actions .home-auth-signup,
body .guest-library-actions .primary{
 background:linear-gradient(135deg,var(--rd-gold),var(--rd-gold2))!important;
 border-color:var(--rd-gold)!important;color:#1f1608!important
}
body .home-membership,body .home-membership--free{
 background:radial-gradient(circle at 90% 10%,rgba(241,182,77,.13),transparent 28%),linear-gradient(135deg,#102638,#0b1d2c)!important;
 border-color:#655431!important;color:#fff!important;box-shadow:0 14px 32px rgba(0,0,0,.2)!important
}
body .home-membership__intro h2{color:#fff!important}
body .home-membership__intro p,
body .home-membership__quota span,body .home-membership__limits span{color:#b6c5cf!important}
body .home-membership__intro>span{color:var(--rd-gold)!important}
body .home-membership__quota b,body .home-membership__limits b,
body .home-membership__quota--unlimited b{color:var(--rd-gold2)!important}
body .home-membership__limits>div{border-color:#3a4e5d!important}
body .home-membership__cta{background:var(--rd-gold)!important;color:#211607!important}
body .guest-final-cta{
 background:radial-gradient(circle at 85% 20%,rgba(241,182,77,.18),transparent 35%),linear-gradient(135deg,#0e2638,#132e42)!important;
 border:1px solid #6a5834!important;color:#fff!important
}
body .guest-final-cta h2,body .guest-final-cta p{color:#fff!important}
body .guest-final-cta a{background:var(--rd-gold)!important;border-color:var(--rd-gold)!important;color:#201607!important}
body .lock-badge{background:#122b3e!important;color:var(--rd-gold)!important;box-shadow:0 10px 30px rgba(0,0,0,.3)!important}

/* BOOK CARDS: deep navy + gold everywhere, including trend sections */
body .book-card{background:linear-gradient(180deg,#102638,#0b1e2e)!important;border-color:#213d51!important}
body .book-card .book-cover{background:#071522!important}
body .book-card-body{background:transparent!important}
body .book-card-category{color:var(--rd-gold)!important}
body .book-card h3,body .book-card h3 a,body .trend-section .book-card h3{color:#fff!important}
body .book-card-author,body .trend-section .book-card-author{color:#9fb1bf!important}
body .book-card .card-metrics span,body .trend-section .book-card .card-metrics span{
 background:#0a1b29!important;border-color:#244155!important;color:#9eb1be!important
}
body .book-card .card-metrics b,body .trend-section .book-card .card-metrics b{color:var(--rd-gold2)!important}
body .book-card-link{color:var(--rd-gold2)!important}

/* CHAT: completely replace WhatsApp-green / cream legacy palette */
body .rchat{
 background:#0b1d2b!important;border-color:#2a475c!important;
 box-shadow:0 18px 42px rgba(0,0,0,.28)!important
}
body .rchat-head{
 background:radial-gradient(circle at 82% 10%,rgba(241,182,77,.16),transparent 32%),linear-gradient(135deg,#102a3c,#0c2030)!important;
 border-bottom:1px solid #3f4c44!important;color:#fff!important
}
body .rchat-avatar{
 background:linear-gradient(135deg,var(--rd-gold),var(--rd-gold2))!important;
 color:#1e1507!important;box-shadow:0 0 0 4px rgba(241,182,77,.1)!important
}
body .rchat-head h2{color:#fff!important}
body .rchat-head p{color:#b7c7d2!important}
body .rchat-status{color:#dce7ed!important}
body .rchat-status i{background:var(--rd-gold)!important;box-shadow:0 0 0 4px rgba(241,182,77,.13)!important}
body .rchat-content{background:#0a1b29!important}
body .rchat-wallpaper{
 background-color:#091a28!important;
 background-image:radial-gradient(circle at 16px 16px,rgba(241,182,77,.035) 2px,transparent 2px),radial-gradient(circle at 42px 42px,rgba(126,173,203,.035) 2px,transparent 2px)!important
}
body .rchat-loading{color:#92a7b6!important}
body .rchat-online{
 background:#0d2232!important;border-color:#29475b!important
}
body .rchat-online-title{color:var(--rd-gold2)!important}
body .rchat-online-title i{background:var(--rd-gold)!important;box-shadow:0 0 0 3px rgba(241,182,77,.12)!important}
body .rchat-online-title b{background:#182e3e!important;color:var(--rd-gold2)!important}
body .rchat-online-list>p,body .rchat-online-note{color:#8fa4b3!important}
body .rchat-online-member{color:#dbe5eb!important}
body .rchat-online-member:hover{background:#132c3d!important}
body .rchat-online-avatar,body .rchat-mini-avatar{
 background:#17384d!important;color:var(--rd-gold2)!important;border:1px solid #36566b!important
}
body .rchat-row.admin .rchat-mini-avatar{background:#3a2a17!important;border-color:#8e6a2a!important}
body .rchat-bubble{
 background:#112a3b!important;color:#edf3f6!important;
 border:1px solid #29495e!important;box-shadow:0 5px 14px rgba(0,0,0,.16)!important
}
body .rchat-row.mine .rchat-bubble{
 background:linear-gradient(135deg,#26331e,#363b1d)!important;
 border-color:#71602f!important;color:#fff!important
}
body .rchat-name{color:#77c9ec!important}
body .rchat-row.admin .rchat-name{color:var(--rd-gold2)!important}
body .rchat-badge,body .rchat-row.mine .rchat-badge{
 background:#223749!important;color:#d7e4eb!important
}
body .rchat-quote{background:#0a1d2b!important;border-left-color:var(--rd-gold)!important}
body .rchat-quote b{color:var(--rd-gold2)!important}
body .rchat-quote span,body .rchat-meta{color:#91a5b4!important}
body .rchat-tool{color:#9db1bf!important}
body .rchat-tool:hover{background:#193245!important}
body .rchat-like.active{background:#3d2029!important;color:#ff9bad!important}
body .rchat-reply-preview{
 background:#0d2232!important;border-color:#29475b!important
}
body .rchat-reply-preview>div{border-left-color:var(--rd-gold)!important}
body .rchat-reply-preview b{color:var(--rd-gold2)!important}
body .rchat-reply-preview span,body .rchat-reply-preview button{color:#9eb1be!important}
body .rchat-compose{
 background:#081826!important;border-top-color:#29475b!important
}
body .rchat-compose textarea{
 background:#102638!important;border-color:#31516a!important;color:#fff!important
}
body .rchat-compose textarea:focus{border-color:var(--rd-gold)!important;box-shadow:0 0 0 3px rgba(241,182,77,.08)!important}
body .rchat-compose>span{color:#718797!important}
body .rchat-compose>button{
 background:linear-gradient(135deg,var(--rd-gold),#e9a438)!important;color:#201607!important
}
body .rchat-note{
 background:#081826!important;color:#839aaa!important
}
body .rchat-blocked-note{background:#311f20!important;color:#ffb4ad!important}
body .rchat-offline-note{background:#2a2417!important;color:#e9d39c!important}
body .rchat-guest{
 background:#0a1b29!important;border-top:1px solid #29475b!important
}
body .rchat-guest p{color:#aebfca!important}
body .rchat-guest a{background:var(--rd-gold)!important;color:#201607!important}
body .rchat-attach-button,body .rchat-record-button,body .rchat-image-picker,
body .rchat-admin-presence,body .rchat-offline-toggle{
 background:#102638!important;border-color:#35566c!important;color:var(--rd-gold2)!important
}
body .rchat-attach-menu{
 background:#0d2232!important;border-color:#35566c!important;box-shadow:0 12px 30px rgba(0,0,0,.3)!important
}
body .rchat-attach-menu label{color:#d9e4ea!important}
body .rchat-attach-menu label:hover{background:#173044!important}
body .rchat-attachment{
 background:#102638!important;border-color:#35566c!important;color:#dfe8ed!important
}
body .rchat-pinned{
 background:#292515!important;border-bottom-color:#725b2d!important;color:#f2dba3!important
}
body .rchat-message-link{color:#8bd5f2!important}
body .rchat-admin-toggle{background:#2c2617!important;border-color:#80642b!important;color:#f0d497!important}
body .rchat-admin-clear{background:#321d1f!important;border-color:#78454a!important;color:#ffaaa5!important}
body .rchat-online-member.admin,
body .rchat-online-member.bibliophile,
body .rchat-online-member.supporter{
 background:linear-gradient(135deg,#102638,#122c3d)!important;
 border-color:#405b6d!important;box-shadow:none!important
}
body .rchat-online-member.admin .rchat-online-name,
body .rchat-online-member.bibliophile .rchat-online-name,
body .rchat-online-member.supporter .rchat-online-name{color:#fff!important}
body .rchat-founder-badge,body .rchat-supporter-badge,body .rchat-bibliophile-badge,
body .rchat-message-supporter-badge{background:#3b3019!important;color:#ffd77e!important}

/* Rantey AI block */
body .rai{
 background:#0b1d2b!important;border-color:#2b485d!important;box-shadow:0 16px 38px rgba(0,0,0,.24)!important
}
body .rai-head{background:#0e2233!important;border-color:#29475b!important}
body .rai-head h2,body .rai-head h3{color:#fff!important}
body .rai-head p{color:#9fb2bf!important}
body .rai-logo{background:linear-gradient(135deg,var(--rd-gold),var(--rd-gold2))!important;color:#211707!important}
body .rai-suggestions,body .rai-form,body .rai-note,body .rai-locked-copy{background:#091a28!important}
body .rai-suggestions button{
 background:#102638!important;border-color:#315069!important;color:#dce6ec!important
}
body .rai-suggestions button:hover{background:#173145!important;border-color:#715f38!important;color:#fff!important}
body .rai-form textarea{
 background:#102638!important;border-color:#31516a!important;color:#fff!important;box-shadow:none!important
}
body .rai-form textarea:focus{border-color:var(--rd-gold)!important;box-shadow:0 0 0 3px rgba(241,182,77,.08)!important}
body .rai-form button{background:var(--rd-gold)!important;color:#201607!important}
body .rai-answer{background:#0d2232!important;border-color:#29475b!important}
body .rai-answer__title{color:var(--rd-gold2)!important}
body .rai-answer__body{color:#dce7ed!important}
body .rai-books a{background:#132c3d!important;color:var(--rd-gold2)!important}
body .rai-note{color:#8298a7!important}
body .rai-locked-copy p{color:#a8bac6!important}
body .rai-locked-copy a{background:var(--rd-gold)!important;color:#201607!important}
body .rai-locked-copy .rai-secondary{background:#102638!important;color:#e3ebf0!important;border-color:#315069!important}

/* Community leaders / referral / misc home modules */
body .community-leaders{
 background:linear-gradient(135deg,#0d2232,#10293b)!important;border-color:#314d61!important
}
body .community-leader-card{
 background:#0a1b29!important;border-color:#29475b!important;color:#edf3f6!important
}
body .community-leader-copy span{color:var(--rd-gold)!important}
body .community-leader-copy small{color:#95a9b7!important}
body .community-leader-score{color:var(--rd-gold2)!important}
body .community-leader-crown{background:var(--rd-gold)!important;color:#201607!important}
body .community-leader-avatar{background:#17384c!important;color:#fff!important}
body .referral-card{
 background:linear-gradient(135deg,#102638,#0b1d2c)!important;border-color:#5f5133!important;box-shadow:none!important
}
body .referral-reward{background:#3a2e18!important;color:var(--rd-gold2)!important}
body .referral-reward span{color:#d9c28e!important}
body .referral-link-box{background:#0a1b29!important;border-color:#394d55!important}
body .referral-link-box label{color:#cfc1a0!important}
body .referral-link-box input{background:#102638!important;border-color:#315069!important;color:#fff!important}
body .referral-link-box button{background:var(--rd-gold)!important;color:#201607!important}

/* Generic old white panels in public-facing page modules */
body .corporate-hero,body .corporate-grid article,body .corporate-cta,
body .contact-cards a,body .policy-layout>nav,body .policy-content,
body .message-compose,body .message-card,body .message-list,body .profile-box{
 background:linear-gradient(180deg,#0e2233,#0a1c2b)!important;
 border-color:#29475b!important;color:#e8eff3!important
}
body .corporate-hero>p,body .corporate-grid p,body .corporate-content p,
body .contact-cards small,body .policy-content p{color:#aebfca!important}
body .corporate-hero nav,body .corporate-hero nav a,body .contact-cards span{color:var(--rd-gold2)!important}
body .corporate-content,body .process-card{background:#0a1b29!important;color:#fff!important}
body .policy-layout>nav a{color:#d7e1e8!important}
body .policy-layout>nav a:hover{background:#132d40!important;color:var(--rd-gold2)!important}

/* Footer: remove brown completely */
body footer.rf{
 margin-top:72px!important;background:#06111b!important;color:#dce5ea!important;
 border-top:1px solid rgba(241,182,77,.28)!important
}
body .rf-top{border-bottom-color:#233b4c!important}
body .rf-logo{color:#fff!important}
body .rf-logo b{color:#fff!important}
body .rf-logo>span>span,body .rf-note,body .rf-col p{color:#9fb1bd!important}
body .rf-grid{color:#dce5ea!important}
body .rf h2{color:var(--rd-gold)!important}
body .rf a{color:#dce6ed!important}
body .rf-col>a:hover{color:var(--rd-gold2)!important}
body .rf-pills span{border-color:#355069!important;color:#aebfca!important;background:#0b1c2a!important}
body .rf-social{background:#102638!important;border:1px solid #35546a!important;color:#fff!important}
body .rf-tg,body .rf-wa{background:#102638!important}
body .rf-social:hover{border-color:var(--rd-gold)!important;background:#153146!important}
body .rf-bottom{border-top-color:#233b4c!important;color:#8399a8!important}
body .rf-bottom a{color:#bdcbd4!important}

/* Cookie + pagination + notices */
body .cookie-banner{background:#0d2232!important;border-color:#36536a!important;color:#e9f0f4!important}
body .cookie-banner p{color:#aebfca!important}
body .cookie-banner button{background:var(--rd-gold)!important;color:#211607!important}
body .rantey-pagination a,body .rantey-pagination span{
 background:#0d2232!important;border-color:#315069!important;color:#dce6ed!important;box-shadow:none!important
}
body .rantey-pagination a:hover{background:#132d40!important;border-color:var(--rd-gold)!important;color:var(--rd-gold2)!important}
body .rantey-pagination .is-current{background:var(--rd-gold)!important;border-color:var(--rd-gold)!important;color:#201607!important}
body .rantey-pagination .is-disabled{background:#0a1a27!important;color:#708795!important}
body .rantey-pagination-summary{color:#879ba9!important}
body .notice{background:#102f2a!important;color:#a8e5cf!important;border:1px solid #28594e!important}
body .alert{background:#351f20!important;color:#ffb3ad!important;border:1px solid #704247!important}

/* Force old burgundy tools/search/footer fragments into premium shell */
body .converter-header-link{background:#081826!important;border-bottom-color:#1f3647!important}
body .converter-header-link a{background:#0d2232!important;border-color:#29475b!important;color:#e7eef2!important}
body .converter-header-link a span{background:#18384d!important;color:var(--rd-gold)!important}
body .converter-header-link a small,body .converter-tools-note{color:#8fa4b2!important}

/* Mobile polish */
@media(max-width:720px){
 body .rchat{width:calc(100% - 28px)!important;margin:14px auto 26px!important}
 body .rchat-online{border-left:0!important;border-top:1px solid #29475b!important}
 body footer.rf{margin-top:46px!important}
}

/* Homepage composition to match approved mockup */
body .rp-home-hero{
 width:min(1180px,calc(100% - 40px));margin:26px auto 18px;
 min-height:360px;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);
 border:1px solid #29475c;border-radius:20px;overflow:hidden;
 background:
   radial-gradient(circle at 78% 18%,rgba(241,182,77,.10),transparent 30%),
   linear-gradient(135deg,#0b1e2e 0%,#0b1d2b 52%,#10283a 100%);
 box-shadow:0 18px 44px rgba(0,0,0,.28)
}
body .rp-home-hero__copy{padding:44px 46px;display:flex;flex-direction:column;justify-content:center}
body .rp-home-hero__copy h1{
 margin:8px 0 14px;color:#fff!important;font-family:"Playfair Display",Georgia,serif!important;
 font-size:clamp(2.6rem,5vw,4.9rem)!important;line-height:.96!important;letter-spacing:-.045em!important
}
body .rp-home-hero__copy h1 em{color:var(--rd-gold)!important;font-style:normal}
body .rp-home-hero__copy>p{max-width:650px;margin:0;color:#b9c8d2!important;font-size:1.05rem;line-height:1.6}
body .rp-hero-search{
 display:grid;grid-template-columns:minmax(0,1fr) 56px;margin-top:24px;max-width:660px;
 border:1px solid #3a586f;border-radius:12px;overflow:hidden;background:#0b1b29
}
body .rp-hero-search input{height:54px;padding:0 16px;border:0!important;background:transparent!important;color:#fff!important;outline:0}
body .rp-hero-search button{border:0;background:linear-gradient(135deg,var(--rd-gold),var(--rd-gold2));color:#201607;font-size:1.35rem;cursor:pointer}
body .rp-popular-searches{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:12px}
body .rp-popular-searches>span{color:#72899a;font-size:.7rem}
body .rp-popular-searches a{padding:5px 9px;border:1px solid #314f65;border-radius:999px;color:#aebfca;text-decoration:none;font-size:.68rem}
body .rp-popular-searches a:hover{border-color:var(--rd-gold);color:var(--rd-gold2)}
body .rp-home-hero .home-auth-actions{margin-top:18px}

body .rp-home-hero__visual{
 position:relative;min-height:360px;padding:36px;display:flex;align-items:flex-end;justify-content:center;
 background:
   linear-gradient(90deg,rgba(7,21,34,.05),rgba(7,21,34,.32)),
   radial-gradient(circle at 62% 44%,rgba(255,185,74,.23),transparent 18%),
   linear-gradient(150deg,#132639,#2d241a 62%,#0d1b27);
 isolation:isolate
}
body .rp-home-hero__visual:before{
 content:"";position:absolute;inset:0;
 background:
  linear-gradient(90deg,transparent 0 15%,rgba(255,255,255,.03) 15% 16%,transparent 16% 30%,rgba(255,255,255,.025) 30% 31%,transparent 31%),
  linear-gradient(180deg,transparent 65%,rgba(0,0,0,.28));
 z-index:-1
}
body .rp-home-hero__visual p{
 position:absolute;left:38px;top:45px;margin:0;color:#f3e5ca!important;
 font:italic 1.7rem/1.35 "Playfair Display",Georgia,serif;transform:rotate(-6deg);opacity:.95
}
body .rp-glow{position:absolute;right:18%;top:14%;width:120px;height:120px;border-radius:50%;background:rgba(255,180,73,.13);filter:blur(18px)}
body .rp-book-stack{position:relative;width:270px;height:190px;margin-bottom:25px}
body .rp-book-stack>span{position:absolute;right:0;height:26px;border-radius:4px;background:linear-gradient(180deg,#5d4027,#2b2118);border:1px solid #8b6236;box-shadow:0 8px 14px rgba(0,0,0,.28)}
body .rp-book-stack>span:nth-child(1){bottom:0;width:250px}
body .rp-book-stack>span:nth-child(2){bottom:29px;width:220px;right:8px}
body .rp-book-stack>span:nth-child(3){bottom:58px;width:245px;right:2px}
body .rp-book-stack>span:nth-child(4){bottom:87px;width:205px;right:15px}
body .rp-book-stack>span:nth-child(5){bottom:116px;width:235px;right:5px}
body .rp-cup{position:absolute;left:-48px;bottom:6px;width:82px;height:66px;display:grid;place-items:center;border:1px solid #865d34;border-radius:8px 8px 24px 24px;background:#2a211a;font-size:2.3rem;box-shadow:0 12px 20px rgba(0,0,0,.28)}

body .rp-stats{
 width:min(1180px,calc(100% - 40px));margin:0 auto 20px;
 display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid #29475c;border-radius:14px;overflow:hidden;background:#0a1b29
}
body .rp-stats>div{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;align-items:center;column-gap:12px;padding:16px 20px;border-right:1px solid #233d50}
body .rp-stats>div:last-child{border-right:0}
body .rp-stats>div>span{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1px solid #5d522f;color:var(--rd-gold);font-size:1.05rem}
body .rp-stats b{color:#fff;font-size:1.24rem;line-height:1.1}
body .rp-stats small{color:#93a7b5;font-size:.68rem;margin-top:3px}

body .section{
 width:min(1180px,calc(100% - 40px))!important;
 padding:28px 0!important;margin-left:auto!important;margin-right:auto!important
}
body .section-title{margin-bottom:16px!important}
body .section-title h2{font-size:1.65rem!important}
body .section-title>div{position:relative;padding-left:14px}
body .section-title>div:before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:3px;border-radius:99px;background:var(--rd-gold)}
body .section .books{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important}
body .section .book-card-body{min-height:145px!important;padding:11px!important}
body .section .book-card h3{font-size:.84rem!important}
body .section .book-card .card-metrics{margin-top:8px!important}
body .section .book-card-link{padding-top:8px!important}

body .rp-feature-banners{
 width:min(1180px,calc(100% - 40px));margin:14px auto 28px;
 display:grid;grid-template-columns:1fr 1fr;gap:16px
}
body .rp-feature-banner{
 min-height:150px;padding:24px 28px;border:1px solid #314d61;border-radius:16px;text-decoration:none;
 display:flex;align-items:center;overflow:hidden;position:relative;color:#fff!important;
 background:linear-gradient(135deg,#102638,#0a1b29)
}
body .rp-feature-banner:after{content:"";position:absolute;right:-30px;bottom:-40px;width:180px;height:180px;border-radius:50%;background:rgba(241,182,77,.09)}
body .rp-feature-banner div{position:relative;z-index:1}
body .rp-feature-banner span{display:inline-grid;place-items:center;width:42px;height:42px;border:1px solid #6a5934;border-radius:50%;color:var(--rd-gold);font-size:1.2rem}
body .rp-feature-banner h3{margin:9px 0 4px;color:var(--rd-gold2)!important;font:700 1.25rem "Playfair Display",Georgia,serif!important}
body .rp-feature-banner p{margin:0 0 12px;color:#c4d1d9!important;font-size:.82rem}
body .rp-feature-banner b{display:inline-flex;padding:7px 11px;border:1px solid #7f6b40;border-radius:8px;color:#fff;font-size:.72rem}
body .rp-audio{background:radial-gradient(circle at 85% 45%,rgba(241,182,77,.15),transparent 24%),linear-gradient(135deg,#102638,#151d25)}
body .rp-premium{background:radial-gradient(circle at 82% 38%,rgba(241,182,77,.23),transparent 25%),linear-gradient(135deg,#102638,#1a1e24)}

body .rchat,body .rai{width:min(1180px,calc(100% - 40px))!important}

@media(max-width:1100px){
 body .rp-home-hero{grid-template-columns:1fr .8fr}
 body .section .books{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:820px){
 body .rp-home-hero{grid-template-columns:1fr}
 body .rp-home-hero__visual{min-height:260px}
 body .rp-stats{grid-template-columns:repeat(2,1fr)}
 body .rp-stats>div:nth-child(2){border-right:0}
 body .rp-stats>div:nth-child(-n+2){border-bottom:1px solid #233d50}
 body .rp-feature-banners{grid-template-columns:1fr}
 body .section .books{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:620px){
 body .rp-home-hero,body .rp-stats,body .rp-feature-banners,body .section,body .rchat,body .rai{width:calc(100% - 28px)!important}
 body .rp-home-hero__copy{padding:28px 20px}
 body .rp-home-hero__copy h1{font-size:2.6rem!important}
 body .rp-home-hero__visual{min-height:220px;padding:20px}
 body .rp-home-hero__visual p{left:22px;top:25px;font-size:1.3rem}
 body .rp-book-stack{transform:scale(.82);transform-origin:bottom center}
 body .rp-stats>div{padding:13px 11px;column-gap:8px}
 body .rp-stats>div>span{width:32px;height:32px}
 body .rp-stats b{font-size:1rem}
 body .rp-stats small{font-size:.6rem}
 body .section .books{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .section-title{align-items:flex-start!important;gap:10px!important}
 body .section-title>a{font-size:.68rem!important}
}

/* 2026-09-23 complete public theme normalization */
body main{
 --panel:#0d2131;--panel2:#10283a;--border:#29465b;--muted:#a7b8c4;--gold:#f1b64d;--gold2:#ffd37b;
 color:#edf3f6!important
}
body main h1,body main h2,body main h3,body main h4,body main h5,body main h6{color:#f7f1e8!important}
body main p,body main li,body main dd,body main figcaption{color:#c7d4dc!important}
body main dt,body main small,body main time{color:#91a6b5!important}
body main strong,body main b{color:inherit}
body main a:not(.book-card>a):not(.shopier-btn):not(.button-link):not(.home-membership__cta){text-decoration-color:rgba(241,182,77,.45)}
body main code,body main pre{background:#071522!important;color:#dbe6ec!important;border-color:#29465b!important}
body main blockquote{background:#0a1b29!important;color:#d8e2e8!important;border-color:var(--gold)!important}
body main table{background:#0a1b29!important;color:#dce6ec!important;border-color:#29465b!important}
body main th{background:#102638!important;color:#ffd37b!important;border-color:#29465b!important}
body main td{background:#0d2131!important;color:#d6e0e6!important;border-color:#233f53!important}
body main details{background:#0b1d2b!important;border-color:#29465b!important;color:#dce6ec!important}
body main summary{color:#eef4f7!important}
body main select,body main input,body main textarea{background:#0b1d2b!important;border-color:#31516a!important;color:#fff!important}
body main input::placeholder,body main textarea::placeholder{color:#748b9b!important}

/* universal public panel families */
body :where(
 .page-head,.corporate-hero,.directory-head,.directory-search,.directory-result-note,
 .kr-hero,.kr-form-card,.kr-panel,.kr-sheet,.kr-row,.kr-search-warning,.kr-duplicate-note,
 .rec-hero,.rec-compose,.rec-post,.rec-book,
 .docreq-hero,.docreq-submit-card,.docreq-notice,.docreq-history,.docreq-row,
 .my-profile-hero,.membership-status-card,.profile-library,.profile-panel,.profile-card,.report-card,
 .public-profile-hero,.public-profile-stats>div,
 .chat-shell,.chat-header,.chat-message,.chat-compose,
 .cv-hero,.cv-card,.cv-guide,.cv-note,.cv-jobs,.cv-job,.cv-content,
 .pdf-hero,.pdf-how,.pdf-tool,.pdf-privacy,
 .dmca-head,.dmca-side,.dmca-form,.dmca-contact,
 .audio-library__hero,.audio-card,
 .request-card,.request-panel,.request-show-card,
 .recommendation-card,.recommendation-panel,
 .message-box,.message-card,.message-list,
 .reader-shell,.reader-panel,
 .social-card,.social-panel,
 .content-card,.info-card,.stat-card
){
 background:linear-gradient(180deg,#0f2435,#0a1b29)!important;
 border-color:#29465b!important;
 color:#eaf1f4!important;
 box-shadow:0 12px 30px rgba(0,0,0,.18)!important
}

/* headings / muted text in all major modules */
body :where(
 .kr-page,.rec-page,.docreq-page,.my-profile-page,.public-profile-page,.chat-page,
 .cv-page,.pdf-suite,.dmca-page,.audio-library,.directory,.reader-page
) :where(h1,h2,h3,h4,b,strong){color:#f7f1e8!important}
body :where(
 .kr-page,.rec-page,.docreq-page,.my-profile-page,.public-profile-page,.chat-page,
 .cv-page,.pdf-suite,.dmca-page,.audio-library,.directory,.reader-page
) :where(p,li,small,time,span:not(.eyebrow):not(.badge):not([class*="status"])){color:#afc0cb}

/* gold accents */
body :where(
 .kr-page,.rec-page,.docreq-page,.my-profile-page,.public-profile-page,.chat-page,
 .cv-page,.pdf-suite,.dmca-page,.audio-library,.directory,.reader-page
) .eyebrow,
body :where(.kr-page,.rec-page,.docreq-page,.cv-page,.pdf-suite,.dmca-page,.audio-library) [class*="kicker"],
body :where(.kr-page,.rec-page,.docreq-page,.cv-page,.pdf-suite,.dmca-page) [class*="number"]{color:#f1b64d!important}

/* buttons */
body main :where(button,.kr-submit,.kr-login-button,.rec-compose button,.docreq-page button,.cv-button,.pdf-tool .action,.dmca-submit,.chat-send,.profile-follow-button){
 border-color:#705b35!important
}
body main :where(.kr-submit,.rec-compose button,.docreq-submit-card button,.cv-button,.dmca-submit,.chat-send){
 background:linear-gradient(135deg,#f1b64d,#ffd37b)!important;color:#211607!important
}
body main :where(.outline,.ghost,.secondary,.soft){
 background:#102638!important;color:#dce6ec!important;border-color:#36556c!important
}

/* request pages */
body .kr-step,body .kr-tab,body .kr-book-icon,body .kr-status,body .kr-total{
 background:#102638!important;border-color:#315069!important;color:#dce6ec!important
}
body .kr-tab.active,body .kr-tab:hover{background:#26301c!important;color:#ffd37b!important;border-color:#77622f!important}
body .kr-row:hover,body .kr-sheet:hover{background:#132d40!important}
body .kr-book-icon{color:#f1b64d!important}
body .kr-author,body .kr-meta,body .kr-date{color:#91a6b5!important}

/* messages */
body .chat-page{background:transparent!important}
body .chat-shell{overflow:hidden!important}
body .chat-header{border-bottom-color:#29465b!important}
body .chat-back,body .chat-thread-actions button{background:#102638!important;color:#dce6ec!important;border-color:#36556c!important}
body .chat-avatar{background:#17384d!important;color:#ffd37b!important}
body .chat-message.mine{background:#2d321c!important;border-color:#705f31!important;color:#fff!important}
body .chat-message.theirs{background:#10283a!important;border-color:#29475c!important;color:#e8eff3!important}
body .chat-message p{color:inherit!important}
body .chat-compose{background:#091a28!important}
body .chat-compose textarea{background:#102638!important}
body .chat-attach-label,body .chat-record-button{background:#102638!important;border-color:#36556c!important;color:#ffd37b!important}

/* recommendations */
body .rec-post{background:#0d2131!important}
body .rec-meta{color:#92a7b5!important}
body .rec-book{background:#091a28!important}
body .rec-vote,body .rec-comment-link{background:#102638!important;border-color:#315069!important;color:#cbd8df!important}
body .rec-vote.active{background:#3a3019!important;border-color:#786231!important;color:#ffd37b!important}

/* document request */
body .docreq-plan,body .docreq-source,body .docreq-status,body .docreq-usage{
 background:#102638!important;border-color:#315069!important;color:#dce6ec!important
}
body .docreq-label,body .docreq-live-limit{color:#ffd37b!important}

/* profile */
body .my-profile-avatar,body .public-profile-avatar{border-color:#a37a35!important;box-shadow:0 0 0 4px rgba(241,182,77,.08)!important}
body .profile-badges span,body .public-profile-badges span{background:#102638!important;border-color:#36556c!important;color:#dfe8ed!important}
body .membership-status-card{background:linear-gradient(135deg,#102638,#181f25)!important;border-color:#6c5833!important}
body .membership-days{color:#ffd37b!important}
body .profile-library-head,body .profile-panel h2{border-color:#29465b!important}
body .profile-book-row{border-color:#233f53!important}
body .profile-danger{background:#301d20!important;border-color:#704247!important;color:#ffb1ab!important}

/* converter / PDF tools */
body .cv-hero,body .pdf-hero{
 background:radial-gradient(circle at 85% 20%,rgba(241,182,77,.13),transparent 28%),linear-gradient(135deg,#0d2232,#102a3c)!important
}
body .cv-pills span,body .pdf-meta span{
 background:#102638!important;border-color:#36556c!important;color:#d8e4ea!important
}
body .cv-drop,body .cv-field,body .pdf-tool .fields,body .pdf-tool .field{
 background:#091a28!important;border-color:#315069!important;color:#dce6ec!important
}
body .cv-job-state,body .pdf-status{background:#2b2818!important;color:#f1d79c!important}
body .pdf-tool.is-locked{opacity:.74!important}

/* DMCA / legal */
body .dmca-breadcrumb a{color:#c9d6de!important}
body .dmca-head-label,body .dmca-section h2{color:#f1b64d!important}
body .dmca-steps li{border-color:#29465b!important}
body .dmca-check{background:#091a28!important;border-color:#29465b!important}

/* audio */
body .audio-library__hero{
 background:radial-gradient(circle at 86% 18%,rgba(241,182,77,.14),transparent 30%),linear-gradient(135deg,#0d2232,#10283a)!important
}
body .audio-library__hero-icon{background:#2f2b19!important;color:#ffd37b!important;border-color:#7a6534!important}
body .audio-card__body{background:#0d2131!important}
body .audio-card h2,body .audio-card h3{color:#fff!important}
body .audio-card p{color:#aebfca!important}

/* directory and taxonomy pages */
body .directory-grid>a,body .directory-grid article,
body .taxonomy-card,body .author-card,body .category-card,body .publisher-card{
 background:#0d2131!important;border-color:#29465b!important;color:#e9f0f4!important
}
body .directory-grid>a:hover,body .taxonomy-card:hover,body .author-card:hover,body .category-card:hover{
 background:#122b3e!important;border-color:#796538!important
}
body .directory-grid p,body .taxonomy-card p,body .author-card p{color:#9fb1be!important}

/* listing / category result areas */
body .listing-shell,body .listing-layout,body .listing-main,body .taxonomy-shell{background:transparent!important;color:#eaf1f4!important}
body .filter-sidebar,body .filters,body .filter-panel,body .listing-sidebar{
 background:#0b1d2b!important;border-color:#29465b!important;color:#dce6ec!important
}
body .filter-sidebar h2,body .filters h2,body .filter-panel h2{color:#fff!important}
body .filter-sidebar a,body .filters a{color:#b9c8d2!important}
body .filter-sidebar a.active,body .filters a.active{background:#f1b64d!important;color:#211607!important}
body .filter-chip,body .tag-chip{background:#102638!important;border-color:#36556c!important;color:#d6e2e8!important}

/* author and taxonomy hero normalizer */
body .author-hero,body .category-hero,body .publisher-hero,body .taxonomy-hero{
 background:radial-gradient(circle at 84% 18%,rgba(241,182,77,.13),transparent 28%),linear-gradient(135deg,#0d2232,#10283a)!important;
 border-color:#29465b!important;color:#fff!important
}
body .author-hero p,body .category-hero p,body .publisher-hero p,body .taxonomy-hero p{color:#b8c7d2!important}

/* static corporate pages */
body .corporate-grid article,body .contact-cards a,body .corporate-cta,body .policy-layout>nav,body .policy-content{
 background:#0d2131!important;border-color:#29465b!important;color:#eaf1f4!important
}
body .corporate-grid p,body .contact-cards small,body .policy-content p{color:#aebfca!important}
body .corporate-content,body .process-card{background:#091a28!important;color:#fff!important}
body .feature-number,body .contact-cards span,body .process-card a{color:#f1b64d!important}

/* generic legacy white/brown UI class normalization */
body main :where(.empty-state,.empty-line,.empty-box,[class*="empty"]){
 color:#91a6b5!important
}
body main :where(.badge,[class*="-badge"]):not(.premium-book-badge):not(.trend-badge):not(.rnav-message-badge){
 border-color:#526071
}
body main :where(.panel-heading,.section-heading,[class*="-head"]){border-color:#29465b}
body main :where(.tabs,.tab-list,[class*="-tabs"]){border-color:#29465b!important}
body main :where(.tabs button,.tab-list button,[class*="-tab"]){color:#b4c4ce}
body main :where(.tabs button.active,.tab-list button.active,[class*="-tab"].active){color:#201607}

/* RanteyAi standalone page */
body .rai-page-hero{
 width:min(1180px,calc(100% - 40px));margin:28px auto 10px;padding:38px 42px;
 display:flex;align-items:center;justify-content:space-between;gap:28px;
 border:1px solid #5d4e31;border-radius:20px;
 background:radial-gradient(circle at 86% 18%,rgba(241,182,77,.17),transparent 28%),linear-gradient(135deg,#0d2232,#102a3c);
 box-shadow:0 18px 42px rgba(0,0,0,.24)
}
body .rai-page-hero h1{margin:4px 0 8px;font:800 clamp(2.6rem,5vw,4.6rem)/1 "Playfair Display",Georgia,serif!important;color:#fff!important}
body .rai-page-hero p{max-width:720px;margin:0;color:#b8c7d2!important}
body .rai-page-hero>a{flex:0 0 auto;padding:12px 16px;border-radius:10px;background:#f1b64d;color:#211607!important;text-decoration:none;font-weight:900}
body .rai-page-hero+.rai{margin-top:16px!important}

/* chat top placement */
body .rp-home-hero+.rchat{margin-top:18px!important;margin-bottom:18px!important}

/* prevent legacy cream page sections */
body main .section.muted{background:transparent!important}
body main .page-head{background:#0d2131!important}
body main .form-card{background:#0d2131!important;border-color:#29465b!important}
body main .form-card input,body main .form-card textarea,body main .form-card select{background:#091a28!important;border-color:#315069!important;color:#fff!important}

/* final text contrast */
body main .prose{color:#d1dde4!important}
body main .prose p,body main .prose li{color:#d1dde4!important}
body main .prose a{color:#ffd37b!important}
body main .prose h2,body main .prose h3,body main .prose h4{color:#fff!important}

@media(max-width:720px){
 body .rai-page-hero{width:calc(100% - 28px);padding:26px 20px;align-items:flex-start;flex-direction:column}
 body .rai-page-hero>a{width:100%;text-align:center}
}

/* Remove old global pre-header stats; stats now live inside the new homepage composition */
body>.top-stats-bar{display:none!important}

/* Header compression to match the approved mockups */
body .rnav{min-height:64px!important;padding:8px 0!important;gap:14px!important}
body .rnav-menu{gap:2px!important;flex-wrap:nowrap!important}
body .rnav-link,body .rnav-logout button{min-height:36px!important;padding:6px 7px!important;font-size:.76rem!important}
body .rnav-icon{width:22px!important;height:22px!important;flex-basis:22px!important;font-size:.7rem!important}
@media(min-width:1181px){
 body .rnav{width:min(1180px,calc(100% - 40px))!important}
 body .rnav-brand{font-size:1.25rem!important}
 body .rnav-brand span::before{font-size:1.25rem!important}
 body .rnav-brand img{width:38px!important;height:38px!important}
}
