﻿/* Restore the original Lumbu palette and typography without changing navigation. */
:root:not([data-neruli-theme="noite"]){--bg:#FAF5E9;--surface:#FFFEFA;--surface-2:#F1E8D6;--primary:#2D6240;--lr-primary-dark:#214D31;--on-primary:#FFFFFF;--ink:#202D28;--muted:#667064;--line:#E3DDCE;--lr-tint:#EDF0E5;--lume:#E9B83E;--umb:#2D6240;--terracotta:#A7442A;--barro:#A7442A}
:root{--font-reading:'Alegreya',Georgia,serif;--font-interface:'Alegreya Sans',Arial,sans-serif}
html[data-neruli-theme],html[data-neruli-theme] body{font-family:var(--font-interface)!important}
html[data-neruli-theme] :is(button,input,select,textarea,kbd,.bookauthor,.avatar,.lumbu-nav,.header-nav-group>summary,.home-reading-updated){font-family:var(--font-interface)!important}
html[data-neruli-theme] :is(h1,h2,h3,.booktitle,.profile-name,.lumbu-origin,.lumbu-words dt,.metric-tile b){font-family:var(--font-reading)!important}
html[data-neruli-theme] .is-home :is(.lumbu-welcome h1,.section-head h2,.booktitle){font-family:var(--font-reading)!important}
html[data-neruli-theme] .is-home .lumbu-stat strong{font-family:var(--font-reading)!important}
html:not([data-neruli-theme=noite]) .is-home .lumbu-hero{background:var(--surface-2)!important;border-color:var(--line)}
html[data-neruli-theme=noite] .is-home .lumbu-hero{background:var(--surface-2)!important;border-color:var(--line)}
html[data-neruli-theme=noite] .is-home .lumbu-hero :is(h2,p,.lumbu-eyebrow,.lumbu-hero-note){color:var(--ink)!important}
.lumbu-layout.lumbu-layout-topnav{max-width:1480px;padding-inline:clamp(28px,5vw,88px)}
@media(min-width:1200px){.lumbu-top-inner{max-width:1800px;padding-inline:clamp(28px,4vw,72px)!important}}
@media(max-width:600px){.lumbu-layout.lumbu-layout-topnav{padding-inline:22px}.lumbu-top-inner{padding-inline:22px!important}}

/* Compact wallet, keeping an accessible touch target. */
html[data-neruli-theme] .lumbu-account-area .trocados-wallet{padding:5px 9px;gap:5px;border-radius:9px;min-height:44px;font-size:.8125rem!important}
.lumbu-account-area .trocados-wallet strong{font-size:.875rem!important;margin-left:3px}
.lumbu-account-area .trocados-wallet svg{width:16px;height:16px}

/* Soft outline around each home shelf book. */
html[data-neruli-theme] .is-home .lumbu-home-shelf .book{border:1px solid var(--line)!important;border-radius:10px!important;padding:10px!important;background:var(--surface)!important;overflow:hidden;box-shadow:none!important}
.is-home .lumbu-home-shelf .book .bookbody{padding:10px 2px 2px}

/* Compact home quotations without clipping text or removing actions. */
html[data-neruli-theme] .is-home .home-quote-panel{padding:14px 18px!important}
.is-home .home-quote-panel .section-head{margin-bottom:4px!important;min-height:44px}
.is-home .home-quote-panel .section-head h2::before{font-size:28px;margin-right:8px}
.is-home .home-quote-panel .home-quote-slide{min-height:0;padding:0}
html[data-neruli-theme] .is-home .home-quote-panel .citation-card{grid-template-columns:64px minmax(0,1fr);gap:14px!important;padding:6px 0!important;min-height:0!important}
.is-home .home-quote-panel .citation-art{width:56px;height:80px;border-radius:5px}
.is-home .home-quote-panel .citation-content h3{margin:0 0 2px;line-height:1.35}
.is-home .home-quote-panel .citation-author{margin:0 0 5px!important;line-height:1.4;font-size:.8125rem!important}
html[data-neruli-theme] .is-home .home-quote-panel .citation-content blockquote{margin:4px 0!important;padding:3px 0 3px 10px!important;font-size:21px!important;line-height:1.45!important}
.is-home .home-quote-panel .citation-theme{padding:0 6px;font-size:.75rem;line-height:1.4}
.is-home .home-quote-panel .citation-reflection{margin:4px 0;line-height:1.45}
.is-home .home-quote-panel .citation-utility-actions{margin-top:8px;gap:8px}
html[data-neruli-theme] .is-home .home-quote-panel .citation-utility-actions button{min-height:44px;padding:7px 12px!important;font-size:.8125rem!important}
.is-home .home-quote-panel .home-quote-nav{margin-top:0!important;padding:4px 0 0;gap:10px}
@media(min-width:1000px){.is-home .home-quote-panel .citation-utility-actions{padding-right:240px}.is-home .home-quote-panel .home-quote-nav{position:absolute;bottom:20px;right:18px;padding:0}.is-home .home-quote-panel .home-quote-position{font-size:.8125rem}}
@media(max-width:600px){html[data-neruli-theme] .is-home .home-quote-panel{padding:12px 14px!important}html[data-neruli-theme] .is-home .home-quote-panel .citation-card{grid-template-columns:40px minmax(0,1fr);gap:10px!important}.is-home .home-quote-panel .citation-art{width:40px;height:60px}html[data-neruli-theme] .is-home .home-quote-panel .citation-content blockquote{font-size:19px!important}.is-home .home-quote-panel .home-quote-nav{padding-top:8px}}

/* The personal profile card belongs only to the home, on its left. */
.home-with-profile{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start}
.home-with-profile:not(:has(.home-profile-column)){grid-template-columns:minmax(0,1fr)}
.home-primary,.home-profile-column{min-width:0}
.home-own-profile{margin:0!important;padding:22px!important;border:1px solid var(--line)!important;border-radius:12px;background:var(--surface)!important;box-shadow:none}
.home-own-profile h3{overflow-wrap:anywhere;line-height:1.4;margin:16px 0 6px}
.home-own-profile>p{margin-bottom:16px}
.home-own-profile .trocados-wallet{max-width:100%;white-space:normal;min-height:44px;padding:8px 10px;font-size:.875rem}
.home-own-profile .trocados-wallet strong{white-space:nowrap}
.home-own-profile .roda-profile-counts{gap:8px;margin:20px 0}
.home-own-profile .roda-profile-counts button{min-width:0;min-height:44px;padding:5px;text-align:left}
.home-own-profile .roda-profile-counts span{font-size:.8125rem}
.home-own-profile>button[data-social-action]{min-height:44px;max-width:100%;white-space:normal}
@media(max-width:1100px){.home-with-profile{grid-template-columns:minmax(0,1fr)}.home-own-profile{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:6px 16px;padding:18px!important;align-items:center}.home-own-profile>.lumbu-eyebrow{display:none}.home-own-profile>.roda-avatar{grid-column:1;grid-row:1/4;width:60px;height:60px}.home-own-profile>h3{grid-column:2;grid-row:1;margin:0}.home-own-profile>p{grid-column:2;grid-row:2;margin:0}.home-own-profile>.trocados-wallet{grid-column:3;grid-row:1/3}.home-own-profile>.roda-profile-counts{grid-column:2;grid-row:3;margin:0}.home-own-profile>button[data-social-action]{grid-column:3;grid-row:3}}
@media(max-width:600px){.home-own-profile{grid-template-columns:56px minmax(0,1fr);gap:8px 12px}.home-own-profile>.roda-avatar{width:52px;height:52px;grid-row:1/3}.home-own-profile>.trocados-wallet{grid-column:1/-1;grid-row:3;justify-content:center}.home-own-profile>.roda-profile-counts{grid-column:1/-1;grid-row:4;justify-content:center}.home-own-profile>button[data-social-action]{grid-column:1/-1;grid-row:5;justify-self:center}}
.home-primary .lumbu-welcome{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px}
html[data-neruli-theme] .home-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;white-space:nowrap;background:var(--lr-tint);color:var(--primary);border:1px solid var(--line);border-radius:9px;font-size:.875rem!important;margin-left:auto}
.home-theme-toggle svg{width:20px;height:20px}
.home-primary .lumbu-date{margin-left:0}
@media(max-width:900px){.home-primary .lumbu-welcome>div:first-child{flex:1 1 100%}.home-primary .home-theme-toggle{margin-left:0}.home-primary .lumbu-date{margin-left:auto}}

/* Keep gossip and sound controls next to each other. */
.lumbu-top-actions>.fofocas-control{margin-right:-4px}
.lumbu-top-actions>.notification-sound-toggle{margin-left:0}

/* Five home shortcuts; wallet moves out of the header to free navigation space. */
.is-home .lumbu-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
html[data-neruli-theme] .is-home .lumbu-stat{min-width:0;padding:16px 14px}
.is-home .lumbu-stat-title{white-space:normal;overflow-wrap:normal}
.is-home .lumbu-stat strong{font-variant-numeric:tabular-nums}
.header-main-nav>.header-nav-link[data-page="Explorar Sertão"]>span{display:inline}
html[data-neruli-theme] .header-main-nav>.header-nav-link[data-page="Explorar Sertão"]{width:auto;gap:8px;padding:10px 12px;white-space:nowrap}
@media(max-width:1100px){.is-home .lumbu-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){.is-home .lumbu-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.is-home .lumbu-stat:last-child{grid-column:1/-1}}

/* One panel for friendship tabs and reader search. */
.cactos-discovery-panel{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:18px 22px;margin-bottom:24px;min-width:0}
.cactos-discovery-panel>.roda-tabs{border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none;margin:0;padding:0 0 12px;display:flex;gap:8px;flex-wrap:wrap;overflow:visible}
.cactos-discovery-panel>.cactos-search{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:end;margin:0;padding:18px 0 0;border:0;border-radius:0;background:transparent;box-shadow:none}
.cactos-discovery-panel .cactos-search .field{margin:0;min-width:0}
.cactos-discovery-panel .cactos-search label{display:block;margin-bottom:8px}
.cactos-discovery-panel .cactos-search>button{min-height:44px;margin:0;align-self:end}
.cactos-discovery-panel .cactos-input-wrap input{min-height:44px}
@media(max-width:600px){.cactos-discovery-panel{padding:14px}.cactos-discovery-panel>.roda-tabs{gap:5px}.cactos-discovery-panel>.roda-tabs button{padding:8px 10px;min-height:44px;font-size:.875rem!important;white-space:normal}.cactos-discovery-panel>.cactos-search{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cactos-discovery-panel .cactos-search .field{grid-column:1/-1}.cactos-discovery-panel .cactos-search>button{width:100%}}

/* Conversation feed: integrated controls, light cards and responsive interaction. */
.roda-feed-view{max-width:1220px;margin-inline:auto}
.roda-feed-view>.roda-heading{margin-bottom:20px;align-items:center}
.roda-feed-view>.roda-heading .lumbu-eyebrow{display:none}
.roda-feed-view>.roda-heading h1{font-size:28px!important;margin-bottom:6px}
.roda-feed-view>.roda-heading p{font-size:1rem;color:var(--muted);margin:0}
.roda-feed-view>.roda-layout{grid-template-columns:minmax(0,1fr) 240px;gap:24px;align-items:start}
.roda-feed-view .roda-main{min-width:0}
html[data-neruli-theme] .roda-feed-view :is(.roda-composer,.roda-post){padding:22px!important;border:1px solid var(--line)!important;border-radius:14px;box-shadow:none!important;background:var(--surface)!important;margin-bottom:18px}
.roda-feed-view .roda-composer-heading{gap:12px;margin-bottom:14px;align-items:center}
.roda-feed-view .roda-composer-heading strong{font-family:var(--font-reading);font-size:1.25rem;line-height:1.4;font-weight:600}
.roda-feed-view .roda-composer-heading div>span{font-size:.875rem;line-height:1.5}
.roda-feed-view .roda-composer textarea{min-height:88px;max-height:220px;padding:14px;border:1px solid var(--line);border-radius:10px;line-height:1.6;background:var(--surface);resize:vertical}
.roda-compose-counter{display:flex;justify-content:flex-end;margin:3px 0 8px;color:var(--muted);font-size:.75rem;line-height:1.5;font-variant-numeric:tabular-nums}
.roda-feed-view .roda-compose-options{gap:16px;margin:12px 0;align-items:center;flex-wrap:wrap}
.roda-feed-view .roda-compose-options select{min-height:44px;border-radius:8px}
.roda-feed-view .roda-book-attach{margin:10px 0;border-block:1px solid var(--line)}
.roda-feed-view .roda-book-attach summary{min-height:44px;padding-block:10px;font-size:.9375rem}
.roda-feed-view .roda-compose-bottom{margin-top:14px;gap:12px}
.roda-feed-view .roda-compose-bottom>button{min-height:44px;border-radius:10px;padding:10px 18px}
.roda-feed-toolbar{margin:0 0 18px;padding:10px 14px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.roda-feed-toolbar>.roda-tabs{display:flex;gap:4px;flex-wrap:wrap;overflow:visible;border:0;margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid var(--line);background:transparent;box-shadow:none;border-radius:0}
.roda-feed-toolbar>.roda-tabs button{min-height:44px;padding:9px 12px;border:0;border-radius:8px;font-size:.9375rem!important;line-height:1.4}
.roda-feed-toolbar>.roda-tabs button.active{background:var(--lr-tint);color:var(--primary);box-shadow:inset 0 -2px 0 var(--primary)}
.roda-feed-toolbar>.roda-search{display:flex;align-items:center;gap:10px;margin:0;padding:0;border:0;background:transparent}
.roda-feed-toolbar .roda-search input{min-width:0;flex:1;min-height:44px;border-radius:8px;border:1px solid var(--line);background:var(--surface)}
.roda-feed-toolbar .roda-search button{width:44px;min-width:44px;min-height:44px;padding:8px;border-radius:8px}
.roda-feed-toolbar .roda-search button:disabled{opacity:.5;cursor:progress}
.roda-feed-view .roda-post-header{gap:12px;align-items:flex-start}
.roda-feed-view .roda-person-link{min-width:0;text-align:left;max-width:100%}
.roda-feed-view .roda-person-link>span{min-width:0;overflow-wrap:anywhere}
.roda-feed-view .roda-person-link strong{font-size:1rem;line-height:1.4}
.roda-feed-view .roda-person-link small{font-size:.8125rem;line-height:1.5}
.roda-feed-view .roda-post-text{font-size:1.0625rem;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:18px 0}
.roda-feed-view .roda-post-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--line)}
.roda-feed-view .roda-post-actions button{min-height:44px;border-radius:9px;font-size:.875rem!important;padding:8px 12px}
.roda-feed-view .roda-post-actions [aria-pressed=true]{background:var(--lr-tint);color:var(--primary)}
.roda-feed-view .roda-empty{padding:30px 22px;border:1px dashed var(--line);border-radius:14px;background:var(--surface);text-align:center}
.roda-feed-view .roda-empty>span{display:none}
.roda-feed-view .roda-empty h3{font-size:1.375rem!important;line-height:1.4;margin-bottom:8px}
.roda-feed-view .roda-empty p{max-width:55ch;margin-inline:auto;line-height:1.6;color:var(--muted)}
.roda-feed-view .roda-load-more{display:block;min-height:44px;width:100%;border:1px solid var(--line);border-radius:10px;margin-top:16px}
.roda-feed-view .roda-aside{position:static}
.roda-feed-view .roda-side-note{padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--surface);box-shadow:none}
.roda-feed-view .roda-side-note>span{display:none}
.roda-feed-view .roda-side-note h3{font-size:1.375rem!important;line-height:1.4}
@media(max-width:980px){.roda-feed-view>.roda-layout{display:block}.roda-feed-view .roda-aside{display:none}}
@media(max-width:600px){html[data-neruli-theme] .roda-feed-view :is(.roda-composer,.roda-post){padding:16px!important}.roda-feed-view>.roda-heading h1{font-size:25px!important}.roda-feed-toolbar{padding:8px 10px 12px}.roda-feed-toolbar>.roda-tabs{gap:4px}.roda-feed-toolbar>.roda-tabs button{padding:8px 10px;font-size:.875rem!important}.roda-feed-view .roda-post-text{font-size:1rem;line-height:1.65}.roda-feed-view .roda-compose-bottom{flex-direction:row;flex-wrap:wrap}.roda-feed-view .roda-compose-bottom>button{margin-left:auto}}

/* Four reading indicators; the balance remains in the profile and Bodega. */
.is-home .lumbu-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:960px){.is-home .lumbu-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.is-home .lumbu-stat:last-child{grid-column:auto}}

/* Keep the home balance aligned in its narrow profile column. */
.home-own-profile .trocados-wallet{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:14px!important}
.home-own-profile .trocados-wallet strong{margin-left:0;font-variant-numeric:tabular-nums}
.home-own-profile .trocados-wallet svg{width:18px;height:18px}
