/* Gualamba V29.9 RC1 · Staging only · compact discovery and honest ad layout. */
.g-v299-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.g-v299-discovery{position:relative;isolation:isolate;max-width:1180px;margin:0 auto 22px;padding:clamp(20px,3.5vw,38px);border:1px solid rgba(208,161,91,.25);border-radius:26px;background:linear-gradient(124deg,#1a4535,#0c251d 72%);box-shadow:0 15px 38px rgba(0,0,0,.12);color:#f7f4e9}
.g-v299-discovery-heading{max-width:730px}.g-v299-eyebrow{font-size:11px!important;letter-spacing:1.7px!important;font-weight:900!important;color:#efc889!important;margin:0 0 9px!important}
.g-v299-discovery :is(h1,h2){color:#fff;font-size:clamp(23px,3vw,37px);letter-spacing:-.9px;line-height:1.13;margin:0 0 7px}.g-v299-discovery-heading>p:last-child{color:#cadbd1;font-size:14px;line-height:1.5;margin:0 0 17px}
.g-v299-search{display:flex;align-items:stretch;gap:8px;border-radius:14px;background:#f8f8f2;padding:6px;border:1px solid #d3d8d0;box-shadow:0 10px 24px rgba(0,0,0,.09);max-width:850px}
.g-v299-search input[type=search]{font:600 15px/1.3 system-ui,sans-serif;min-width:0;flex:1;width:100%;background:transparent!important;border:0!important;box-shadow:none!important;color:#163629!important;padding:11px 13px!important;outline-offset:-2px}
.g-v299-search button{border:0;border-radius:10px;background:#cda15d;color:#153223;font-size:13px;font-weight:900;padding:12px 20px;white-space:nowrap;cursor:pointer;min-height:44px}.g-v299-search button:hover{background:#e1b878}
.g-v299-quick-filters,.g-v299-direct-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}
.g-v299-quick-filters button,.g-v299-direct-links button{border:1px solid rgba(232,232,218,.25);border-radius:999px;background:rgba(255,255,255,.07);padding:10px 14px;color:#f6f7f3;font-size:12px;font-weight:750;min-height:40px;cursor:pointer}
.g-v299-quick-filters button:hover,.g-v299-direct-links button:hover{background:#2c614b;border-color:rgba(255,255,255,.46)}
.g-v299-quick-filters button:last-child{border-color:#dbbd85;color:#f5d79c}
.g-v299-direct-links{border-top:1px solid rgba(255,255,255,.13);padding-top:13px;margin-top:15px}.g-v299-direct-links button{border-color:transparent;background:transparent;color:#d7dfd8;padding:7px 8px;font-size:11px}
/* The legacy giant hero and duplicative tile-strip have been replaced by the discovery bar. */
body:not(.g-primary-explore):not(.g-primary-account):not(.g-listing-detail-active) #inicio.hero{display:none!important}
#gPublicPreview .g-preview-strip,.dimension-tabs{display:none!important}
#gPublicPreview .g-public-hero{min-height:0!important;padding:20px 24px!important;margin-top:0}
#gPublicPreview .g-public-hero h2{font-size:clamp(22px,2.8vw,30px)!important;line-height:1.15!important}
#gPublicPreview .g-public-hero>div:first-child>p:not(.eyebrow){font-size:13px}
#gHomeDashboard .g-v299-discovery{margin-bottom:17px}
/* Give empty advertising sidebars back to the content. Keep valid ad cards visible. */
@media(min-width:981px){.portal-home-groups>.portal-group[open]>.portal-group-content.g-ad-layout:not(:has(>.g-ad:not([hidden]))){display:block!important;grid-template-columns:minmax(0,1fr)!important}
 .portal-home-groups>.portal-group[open]>.portal-group-content.g-ad-layout:has(>.g-ad:not([hidden])){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(245px,300px)!important;gap:22px!important}}
/* Improve numerical legibility in dark theme. */
html[data-theme="dark"] .market-value,html[data-theme="dark"] .market-card .market-value{color:#f1d59f!important;text-shadow:none!important}
html[data-theme="dark"] .market-label{color:#dbe8df!important}
/* Explore stays a first-class view, with a responsive listing grid. */
.g-primary-explore .g-explore-shell{max-width:1120px}
.g-primary-explore .g-explore-feed{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));align-items:stretch;gap:16px}
.g-primary-explore .g-explore-card{min-width:0}.g-primary-explore .g-explore-media{height:200px}
.g-v299-menu-more{margin-top:5px;border-top:1px solid rgba(255,255,255,.14)}.g-v299-menu-more summary{cursor:pointer;padding:12px 8px;color:inherit;font-weight:800}.g-v299-menu-more a{display:block;padding-left:19px}
@media(max-width:700px){#gPublicPreview{padding-top:12px!important}.g-v299-discovery{margin-bottom:14px;padding:18px 15px;border-radius:20px}.g-v299-search{flex-direction:column;gap:4px}.g-v299-search input[type=search]{min-height:45px}.g-v299-search button{width:100%}.g-v299-quick-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.g-v299-quick-filters button{text-align:center;padding:10px 7px}.g-v299-direct-links{gap:4px}.g-v299-direct-links button{font-size:11px;padding:8px}.g-primary-explore .g-explore-feed{grid-template-columns:1fr!important}.g-v299-discovery :is(h1,h2){font-size:26px}.g-home-dashboard.is-visible .g-v299-discovery{margin-left:0;margin-right:0}}
@media(prefers-reduced-motion:reduce){.g-v299-discovery *{scroll-behavior:auto!important}}

.g-v299-explore-back{margin-left:auto;flex:0 0 auto;border:1px solid rgba(234,215,181,.35);border-radius:12px;background:#1d4434;color:#f5f0e3;min-height:42px;padding:10px 15px;font-size:13px;font-weight:800;cursor:pointer}
.g-v299-explore-back:hover{background:#2b624a}
@media(max-width:600px){.g-primary-explore .g-explore-head{flex-direction:column;align-items:stretch;gap:11px}.g-v299-explore-back{margin-left:0;align-self:flex-start}}

/* V29.9.1: mobile news editorial cards are scannable, not tall posters. */
@media(max-width:760px){
  #newsGrid .news-card,#newsGrid .news-card.featured {min-height:0!important;padding:14px!important;}
  #newsGrid .news-card h3,#newsGrid .news-card.featured h3 {font-size:20px!important;line-height:1.2!important;margin-bottom:9px!important;}
  #newsGrid .news-card .news-image,#newsGrid .news-card.featured .news-image,
  #newsGrid .news-card .news-image-fallback {height:145px!important;max-height:145px!important;margin:0 0 12px!important;object-fit:cover!important;}
  #newsGrid .news-card .news-summary{font-size:13px!important;line-height:1.4!important;display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
  #newsGrid .news-card .news-meta{margin-bottom:9px!important}
  #newsGrid .news-card .news-source{font-size:11px!important;margin-bottom:11px!important}
}
