/* GUALAMBA RC7.9 — first viewport refinement. Desktop / mobile, guest / signed-in. */
:root{--g79-gold:#dbb478;--g79-pale:#f4f1e8;--g79-forest:#0b241b}
/* Equal, quiet content width on desktop. Do not override public modules. */
#gPublicPreview.g78-public,#gHomeDashboard.g-home-dashboard{max-width:1370px;margin-inline:auto}
#gPublicPreview .g78-first-view{isolation:isolate;position:relative;background:linear-gradient(90deg,rgba(5,29,21,.96) 0%,rgba(9,35,25,.89) 58%,rgba(8,29,23,.61) 100%),url('/assets/home/home-hero-gualamba.jpg') center 45%/cover;box-shadow:0 23px 60px rgba(0,0,0,.22)}
#gPublicPreview .g78-first-view h1{letter-spacing:-.055em!important}
#gPublicPreview .g78-pulse{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-color:rgba(240,220,173,.3)}
#gPublicPreview .g78-search:focus-within,#gHomeDashboard .g-v299-search:focus-within{outline:3px solid #dfb76c;outline-offset:3px}
#gPublicPreview .g78-door{transition:transform .18s ease,border-color .18s ease}
/* Quiet institutional story instead of a second oversized hero */
#gPublicPreview .portal-intro{position:relative;min-height:0!important;height:auto!important;display:block!important;max-width:1200px!important;margin:24px 0 30px!important;padding:28px 27px!important;background:#102b20!important;border:1px solid rgba(226,193,143,.16)!important;border-radius:18px!important;box-shadow:none!important}
#gPublicPreview .portal-intro:before{width:30px;height:3px;margin-bottom:13px}
#gPublicPreview .portal-intro h2{max-width:none;font-size:clamp(19px,2vw,26px)!important;letter-spacing:-.6px!important;margin:0 0 9px!important}
#gPublicPreview .portal-intro>p:last-child{max-width:1000px;color:#c1d2c5!important;font-size:13px!important;line-height:1.75!important}
#gPublicPreview .portal-intro a{color:#e9c78e!important;text-decoration-color:rgba(232,194,136,.5)!important}
/* Redesigned logged-in first viewport. Existing search/filter/module handlers unchanged. */
#gHomeDashboard .g-home-welcome{margin-bottom:18px}
#gHomeDashboard .g79-signed-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(250px,.63fr);gap:clamp(18px,2vw,32px);align-items:stretch;isolation:isolate;overflow:hidden;min-height:0;padding:clamp(24px,3vw,42px)!important;border-radius:27px!important;border:1px solid rgba(217,179,117,.25)!important;background:radial-gradient(circle at 80% 10%,rgba(65,120,85,.2),transparent 44%),linear-gradient(120deg,#0a2a1f,#0a241b)!important;box-shadow:0 22px 58px rgba(0,0,0,.18)!important;color:#f7f8ef}
#gHomeDashboard .g79-signed-hero:before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(220,184,125,.12) .5px,transparent .5px);background-size:16px 16px;opacity:.18;pointer-events:none}
#gHomeDashboard .g79-signed-main{position:relative;z-index:2;min-width:0}
#gHomeDashboard .g79-signed-hero .g-v299-discovery-heading{margin:0 0 29px}
#gHomeDashboard .g79-signed-hero .g-v299-eyebrow{color:#e4c18c!important;letter-spacing:2px!important;font-weight:850!important;font-size:10px!important;margin:0 0 17px!important}
#gHomeDashboard .g79-signed-hero .g-v299-discovery-heading h2{font:800 clamp(35px,3.3vw,56px)/1.08 Manrope,system-ui,sans-serif!important;letter-spacing:-.055em!important;color:#f8faf2!important;margin:0 0 14px!important;max-width:700px;text-wrap:balance}
#gHomeDashboard .g79-signed-hero .g-v299-discovery-heading h2 em{font-style:normal;color:#e3c18e}
#gHomeDashboard .g79-signed-hero .g-v299-discovery-heading>p:last-child{font:500 clamp(13px,1.15vw,16px)/1.6 Manrope,system-ui,sans-serif!important;max-width:570px;color:#c1d5c9!important;margin:0!important}
#gHomeDashboard .g79-search-label{font:850 10px/1.4 Manrope,system-ui,sans-serif;letter-spacing:1.3px;color:#e6d5b6;margin:0 0 10px}
#gHomeDashboard .g79-search-panel .g-v299-search{display:flex;align-items:stretch;gap:5px;max-width:790px;padding:6px!important;background:#f9f7f1!important;border-radius:15px!important;border:0!important}
#gHomeDashboard .g79-search-panel .g-v299-search input{min-width:0;min-height:48px;flex:1;border:0!important;border-radius:9px!important;background:#f9f7f1!important;color:#17352a!important;font:600 14px Manrope,system-ui,sans-serif!important;box-shadow:none!important}
#gHomeDashboard .g79-search-panel .g-v299-search input::placeholder{color:#82958b!important;opacity:1}
#gHomeDashboard .g79-search-panel .g-v299-search button{min-height:48px;padding:10px 20px!important;white-space:nowrap;border:0!important;border-radius:11px!important;background:#d6ad6d!important;color:#173124!important;font:850 13px Manrope,system-ui,sans-serif!important}
#gHomeDashboard .g79-search-panel .g-v299-search button:hover{background:#e9c88c!important}
#gHomeDashboard .g79-search-panel .g-v299-quick-filters{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0 0!important}
#gHomeDashboard .g79-search-panel .g-v299-quick-filters button{display:flex;align-items:center;gap:10px;justify-content:space-between;min-height:42px;padding:9px 13px!important;border:1px solid rgba(234,243,229,.23)!important;border-radius:10px!important;background:rgba(255,255,255,.055)!important;color:#eef5ef!important;font:750 12px Manrope,system-ui,sans-serif!important;white-space:nowrap}
#gHomeDashboard .g79-search-panel .g-v299-quick-filters button:last-child{border-color:rgba(223,191,126,.57)!important;color:#e8cb95!important}
#gHomeDashboard .g79-search-panel .g-v299-quick-filters button:hover{background:rgba(255,255,255,.13)!important}
#gHomeDashboard .g79-signed-hero .g-v299-direct-links{display:flex;flex-wrap:wrap;align-items:center;gap:7px 20px;padding:20px 0 0!important;margin:22px 0 0!important;border-top:1px solid rgba(207,227,211,.16)!important}
#gHomeDashboard .g79-signed-hero .g-v299-direct-links button{display:inline-flex;gap:6px;align-items:center;min-height:34px;padding:5px 0!important;border:0!important;background:transparent!important;color:#c9d9ce!important;font:700 11px Manrope,system-ui,sans-serif!important}
#gHomeDashboard .g79-signed-hero .g-v299-direct-links button:hover{color:#efd09b!important}
#gHomeDashboard .g79-signed-aside{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:space-between;min-height:380px;overflow:hidden;padding:22px;border:1px solid rgba(226,199,145,.3);border-radius:21px;background:linear-gradient(180deg,rgba(10,39,27,.1),rgba(5,18,15,.76)),url('/assets/home/home-hero-gualamba.jpg') 60% center/cover}
#gHomeDashboard .g79-aside-top{display:flex;flex-direction:column;gap:9px;color:#f0dbb4;font:850 9px/1.4 Manrope,system-ui,sans-serif;letter-spacing:1.4px}
#gHomeDashboard .g79-small-line{display:block;width:31px;height:3px;border-radius:99px;background:#edca91}
#gHomeDashboard .g79-signed-aside>p{margin:auto 0 0;max-width:255px;color:#fff;font:650 clamp(17px,1.65vw,25px)/1.32 Manrope,system-ui,sans-serif;letter-spacing:-.6px;text-shadow:0 2px 14px #081f19}
#gHomeDashboard .g79-signed-aside>p strong{color:#e9c68b;font-weight:850}
#gHomeDashboard .g79-aside-foot{display:flex;flex-wrap:wrap;gap:5px;justify-content:space-between;margin-top:20px;padding-top:13px;border-top:1px solid rgba(235,242,225,.25);font:800 9px Manrope,system-ui,sans-serif;letter-spacing:1px;color:#e6e7da}
#gHomeDashboard .g79-modules-head,#gHomeDashboard .g79-commercial-head{display:flex;justify-content:space-between;align-items:end;gap:22px;margin:32px 0 17px}
#gHomeDashboard .g79-modules-head span,#gHomeDashboard .g79-commercial-head span{font:850 10px Manrope,system-ui,sans-serif;letter-spacing:1.55px;color:#ddb77c}
#gHomeDashboard .g79-modules-head h2,#gHomeDashboard .g79-commercial-head h2{font:800 clamp(23px,2.15vw,30px)/1.22 Manrope,system-ui,sans-serif;letter-spacing:-.85px;color:#f1f6ef;margin:8px 0 0}
#gHomeDashboard .g79-modules-head>p{max-width:320px;margin:0;color:#b7cbbd;font-size:12px;line-height:1.6}
#gHomeDashboard .g-home-grid.g-home-grid-final{margin-bottom:30px}
#gHomeDashboard .g79-commercial-head{margin:26px 0 13px}
/* Beef remains findable, but moves below information modules and the active insumos service. */
#gPublicPreview .g-beef-home-promo,#gHomeDashboard .g-beef-home-promo{min-height:0!important;padding:16px 20px!important;border-radius:17px!important;border-color:rgba(209,173,115,.2)!important;background:linear-gradient(110deg,#10281e,#142a20)!important;box-shadow:none!important;opacity:.9}
#gPublicPreview .g-beef-home-promo__mark,#gHomeDashboard .g-beef-home-promo__mark{width:55px!important;min-width:55px!important;height:55px!important}
#gPublicPreview .g-beef-home-promo__copy h2,#gHomeDashboard .g-beef-home-promo__copy h2{font-size:20px!important;line-height:1.3!important}
#gPublicPreview .g-beef-home-promo__copy p,#gHomeDashboard .g-beef-home-promo__copy p{font-size:11px!important;line-height:1.6!important}
#gPublicPreview .g-beef-home-promo__link,#gHomeDashboard .g-beef-home-promo__link{min-height:40px!important;padding:10px 13px!important;font-size:11px!important;background:rgba(215,183,120,.13)!important;color:#ebd2a2!important;border:1px solid rgba(225,192,132,.4)!important}
#gHomeDashboard .g-insumos-home-promo{margin:0 0 24px!important}
/* Reduce obstructive floating install CTA, keep existing functionality and visibility guarantee. */
#pwaInstallBtn:not([hidden]){right:auto!important;left:15px!important;bottom:14px!important;min-height:34px!important;padding:8px 12px!important;max-width:190px!important;border-radius:11px!important;background:#d7b57b!important;color:#153327!important;font:800 11px/1.25 Manrope,system-ui,sans-serif!important;box-shadow:0 4px 12px rgba(0,0,0,.28)!important}
@media(max-width:1100px){#gHomeDashboard .g79-signed-hero{grid-template-columns:minmax(0,1fr) minmax(210px,.48fr)}#gHomeDashboard .g79-signed-aside{min-height:340px}#gHomeDashboard .g79-search-panel .g-v299-quick-filters button{font-size:11px!important}}
@media(max-width:850px){#gHomeDashboard .g79-signed-hero{grid-template-columns:1fr}#gHomeDashboard .g79-signed-aside{display:none}#gHomeDashboard .g79-signed-hero .g-v299-discovery-heading h2{max-width:680px}}
@media(max-width:700px){
 #gPublicPreview .g78-first-view{background-position:65% center}
 #gPublicPreview .portal-intro{padding:20px 18px!important;margin:19px 0 27px!important}
 #gHomeDashboard .g79-signed-hero{padding:25px 20px!important;border-radius:21px!important}
 #gHomeDashboard .g79-signed-hero .g-v299-discovery-heading{margin:0 0 22px}
 #gHomeDashboard .g79-signed-hero .g-v299-discovery-heading h2{font-size:clamp(32px,8.4vw,43px)!important;line-height:1.08!important;letter-spacing:-1.5px!important}
 #gHomeDashboard .g79-signed-hero .g-v299-discovery-heading>p:last-child{font-size:13px!important}
 #gHomeDashboard .g79-search-panel .g-v299-search{display:flex;flex-direction:column;gap:5px}
 #gHomeDashboard .g79-search-panel .g-v299-search input{width:100%;min-height:46px;font-size:13px!important;padding:10px 12px!important}
 #gHomeDashboard .g79-search-panel .g-v299-search button{width:100%;min-height:46px}
 #gHomeDashboard .g79-search-panel .g-v299-quick-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 #gHomeDashboard .g79-search-panel .g-v299-quick-filters button{white-space:normal;min-width:0;text-align:left;min-height:45px;font-size:11px!important}
 #gHomeDashboard .g79-signed-hero .g-v299-direct-links{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;margin-top:18px!important;padding-top:15px!important}
 #gHomeDashboard .g79-signed-hero .g-v299-direct-links button{font-size:10px!important;text-align:left}
 #gHomeDashboard .g79-modules-head{display:block;margin:27px 0 14px}
 #gHomeDashboard .g79-modules-head>p{max-width:none;margin:9px 0 0}
 #gHomeDashboard .g79-commercial-head h2{font-size:22px}
 #gPublicPreview .g-beef-home-promo,#gHomeDashboard .g-beef-home-promo{padding:14px!important}
 #pwaInstallBtn:not([hidden]){left:max(10px,env(safe-area-inset-left))!important;bottom:calc(5.4rem + env(safe-area-inset-bottom))!important;padding:8px 10px!important;font-size:10px!important;max-width:160px!important}
}
@media(max-width:380px){#gHomeDashboard .g79-signed-hero{padding:20px 16px!important}#gHomeDashboard .g79-signed-hero .g-v299-discovery-heading h2{font-size:31px!important}}
@media(prefers-reduced-motion:reduce){#gPublicPreview .g78-door{transition:none!important}}
/* Compact and legible personalised greeting; the hero is the primary headline. */
#gHomeDashboard.g-home-dashboard.is-visible{padding-top:18px!important}
#gHomeDashboard .g-home-welcome{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;max-width:none!important;margin:0 0 18px!important;padding:0!important}
#gHomeDashboard .g-home-welcome .eyebrow,#gHomeDashboard .g-home-welcome p:not(.eyebrow){display:none!important}
#gHomeDashboard .g-home-welcome h2{margin:0!important;font:750 clamp(16px,1.5vw,21px)/1.4 Manrope,system-ui,sans-serif!important;letter-spacing:-.3px!important;color:#ecf3e9!important}
#gHomeDashboard .g-home-profile-chip{color:#d8e3da!important;border-color:rgba(219,235,212,.2)!important;background:rgba(12,34,24,.82)!important}
@media(max-width:700px){#gHomeDashboard.g-home-dashboard.is-visible{padding-top:12px!important}#gHomeDashboard .g-home-welcome{flex-direction:row!important;margin-bottom:13px!important}#gHomeDashboard .g-home-welcome h2{font-size:14px!important}#gHomeDashboard .g-home-profile-chip{font-size:9px!important}}
