/* AGROTEKA Core — all selectors scoped to plugin or AGROTEKA front end. */
body.agcore-enabled{--agcore-green:#1b3b2d;--agcore-cream:#f5f1e8;--agcore-sage:#dfe7d8;--agcore-header:72px;overflow-x:clip}
body.agcore-enabled .wp-site-blocks>header,body.agcore-enabled .wp-site-blocks>.wp-block-template-part:has(>header),body.agcore-enabled .wp-site-blocks>.wp-block-template-part:has(header),body.agcore-enabled .wp-site-blocks>footer,body.agcore-enabled .wp-site-blocks>.wp-block-template-part:has(>footer),body.agcore-enabled .wp-site-blocks>.wp-block-template-part:has(footer){display:none!important}
body.agcore-enabled .wp-site-blocks{padding-top:var(--agcore-header)!important}
body.agcore-enabled .wp-site-blocks>main{margin-block-start:0!important}
body.agcore-enabled .wp-site-blocks>.wp-block-group:first-child:has(.wp-block-site-title){display:none!important}
body.agcore-enabled .wp-site-blocks .wp-block-post-content{max-width:none}
.agcore-top,.agcore-panel,.agcore-footer,.agcore-to-top{font-family:Arial,Helvetica,sans-serif;box-sizing:border-box}
.agcore-top *,.agcore-panel *,.agcore-footer *,.agcore-to-top *{box-sizing:border-box}
.agcore-top{position:fixed;z-index:100010;top:0;left:0;right:0;height:var(--agcore-header);background:#fdfbf6;border-bottom:1px solid rgba(27,59,45,.14);color:var(--agcore-green);transition:height .2s ease,box-shadow .2s ease}
body.admin-bar .agcore-top{top:32px}
.agcore-top.agcore-scrolled{height:62px;box-shadow:0 4px 18px rgba(0,0,0,.07)}
.agcore-top-inner{height:100%;max-width:1480px;margin:0 auto;padding:0 clamp(20px,4vw,64px);display:flex;align-items:center;justify-content:space-between;gap:15px}
.agcore-logo{color:var(--agcore-green)!important;text-decoration:none!important;font-size:clamp(22px,2.2vw,29px);font-weight:800;letter-spacing:-.07em;line-height:1.1;white-space:nowrap}
.agcore-logo span,.agcore-footer-brand>a span{color:#849f83}
.agcore-toggle{display:flex;align-items:center;gap:16px;cursor:pointer;border:0!important;background:transparent!important;color:var(--agcore-green)!important;min-height:48px;padding:8px 0 8px 14px;font:700 11px Arial,sans-serif;letter-spacing:.13em}
.agcore-burger{display:grid;gap:6px;width:26px}.agcore-burger i{height:2px;background:currentColor;display:block;width:100%}
.agcore-overlay{position:fixed;inset:0;z-index:100015;background:rgba(8,24,17,.55)}
.agcore-overlay[hidden]{display:none!important}
.agcore-panel{position:fixed;z-index:100020;right:0;top:0;bottom:0;width:min(100%,530px);height:100dvh;background:var(--agcore-cream);color:var(--agcore-green);padding:clamp(22px,4vw,48px);display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;box-shadow:-10px 0 60px rgba(0,0,0,.12);transform:translateX(105%);visibility:hidden;transition:transform .28s ease,visibility .28s}
.agcore-panel.agcore-open{transform:translateX(0);visibility:visible}
.agcore-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;letter-spacing:.16em;font-weight:700}
.agcore-close{font-size:39px;line-height:1;width:48px;height:48px;display:grid;place-items:center;cursor:pointer;background:transparent!important;border:0!important;color:var(--agcore-green)!important;padding:0}
.agcore-nav{display:flex;flex-direction:column;margin:auto 0;gap:clamp(12px,3vh,30px);padding:48px 0}
.agcore-nav a{font-size:clamp(30px,5vw,49px);line-height:1.13;letter-spacing:-.055em;font-weight:600;color:var(--agcore-green)!important;text-decoration:none!important;overflow-wrap:break-word}
.agcore-nav a:hover,.agcore-nav a:focus-visible{color:#648267!important}
.agcore-panel-bottom{border-top:1px solid #b8c8b8;padding-top:24px}.agcore-panel-bottom p{font-family:Georgia,serif;font-style:italic;font-size:20px;margin:0 0 16px}.agcore-panel-bottom a{color:inherit!important;font-size:16px;text-decoration:underline!important}
body.agcore-menu-open{overflow:hidden!important}
.agcore-footer{background:var(--agcore-green);color:var(--agcore-cream);padding:clamp(56px,8vw,105px) 0 28px;margin:0;position:relative;z-index:1}
.agcore-footer-inner{max-width:1480px;padding:0 clamp(22px,5vw,72px);margin:0 auto}
.agcore-footer-top{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);gap:clamp(35px,5vw,80px);padding-bottom:80px}
.agcore-footer-brand>a{font-size:clamp(43px,6vw,86px);line-height:1;letter-spacing:-.085em;font-weight:800;text-decoration:none!important;color:var(--agcore-cream)!important;white-space:nowrap}
.agcore-footer-brand>p{font:italic clamp(19px,2vw,25px) Georgia,serif;margin:22px 0}.agcore-footer-desc{max-width:360px;color:#c9d8cb;line-height:1.7;font-size:15px}
.agcore-footer-col{display:flex;flex-direction:column;gap:18px;align-items:flex-start}.agcore-footer-col h2{font:700 11px Arial,sans-serif!important;letter-spacing:.15em;color:#b4c8b4!important;margin:0 0 12px!important}
.agcore-footer-col a{font-size:16px;color:var(--agcore-cream)!important;text-decoration:none!important;overflow-wrap:anywhere}.agcore-footer-col a:hover{text-decoration:underline!important}.agcore-footer-col p{color:#c9d8cb;font-size:15px;line-height:1.6;margin:0}
.agcore-footer-bottom{border-top:1px solid rgba(245,241,232,.27);padding-top:25px;display:flex;justify-content:space-between;gap:15px;font-size:12px;color:#c9d8cb}
.agcore-to-top{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));width:48px;height:48px;border:1px solid #c9d8cb;border-radius:50%;background:var(--agcore-green);color:var(--agcore-cream);z-index:100005;display:grid;place-items:center;cursor:pointer;box-shadow:0 5px 18px rgba(0,0,0,.18);opacity:0;pointer-events:none;transform:translateY(12px);transition:opacity .2s,transform .2s}
.agcore-to-top[hidden]{display:none!important}.agcore-to-top.agcore-visible{opacity:1;pointer-events:auto;transform:translateY(0)}
body.agcore-menu-open .agcore-to-top{opacity:0;pointer-events:none}
/* Final visual corrections for existing AGROTEKA sections only */
body.agcore-enabled .agt-wrap .agt-feature-content h2,body.agcore-enabled .agt-wrap .agt-intro-text h2,body.agcore-enabled .aglib h1,body.agcore-enabled .aglib h2,body.agcore-enabled .aglib p{max-width:100%}
body.agcore-enabled .aglib-outro p{overflow-wrap:normal;word-break:normal}
body.agcore-enabled .agt-wrap .agt-btn span,body.agcore-enabled .agt-wrap .agt-card-link span,body.agcore-enabled .aglib-link span{font-family:Arial,sans-serif;font-variant-emoji:text}
@media(max-width:780px){.agcore-footer-top{grid-template-columns:1fr 1fr}.agcore-footer-brand{grid-column:1/-1}.agcore-footer-top{padding-bottom:55px}}
@media(max-width:600px){body.agcore-enabled{--agcore-header:64px}.agcore-top.agcore-scrolled{height:58px}.agcore-top-inner{padding:0 21px}.agcore-logo{font-size:24px}.agcore-toggle-label{display:none}.agcore-panel{padding:22px 24px max(28px,env(safe-area-inset-bottom))}.agcore-nav a{font-size:clamp(29px,8.3vw,42px)}.agcore-footer{padding-top:65px}.agcore-footer-inner{padding:0 23px}.agcore-footer-top{grid-template-columns:1fr;gap:40px}.agcore-footer-brand{grid-column:auto}.agcore-footer-brand>a{font-size:clamp(45px,12vw,67px)}.agcore-footer-bottom{flex-direction:column;gap:12px}.agcore-to-top{right:20px;bottom:max(28px,env(safe-area-inset-bottom));width:46px;height:46px}.aglib-hero{padding-top:55px!important;padding-bottom:52px!important}.aglib-hero h1{overflow-wrap:anywhere}.aglib-outro p{font-size:clamp(34px,10vw,43px)!important;line-height:1.14!important}.aglib-books{padding-bottom:78px!important}.agt-wrap .agt-feature-content h2{overflow-wrap:normal}.agc .agc-section{padding-left:22px;padding-right:22px}}
@media(max-width:782px){body.admin-bar .agcore-top{top:46px}}
@media(prefers-reduced-motion:reduce){.agcore-top,.agcore-panel,.agcore-to-top{transition:none!important}}

/* v1.1 — compact editorial navigation and footer */
.agcore-panel{width:min(88vw,390px);padding:24px 26px max(28px,env(safe-area-inset-bottom))}
.agcore-nav{margin:35px 0 auto;gap:0;padding:0}
.agcore-nav a{font-size:clamp(19px,2.4vw,25px);font-weight:600;letter-spacing:-.035em;line-height:1.3;padding:12px 0;border-bottom:1px solid rgba(27,59,45,.11)}
.agcore-panel-head{font-size:9px}.agcore-close{font-size:32px;width:36px;height:36px}
.agcore-panel-bottom{padding-top:16px;margin-top:24px}.agcore-panel-bottom p{font-size:16px;margin:0 0 12px}.agcore-panel-bottom a{font-size:14px}
.agcore-footer{padding:42px 0 22px}
.agcore-footer-top{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr);gap:28px;padding-bottom:32px}
.agcore-footer-brand>a{font-size:clamp(36px,4vw,54px)}
.agcore-footer-brand>p{font-size:18px;margin:12px 0}
.agcore-footer-desc{font-size:13px;line-height:1.5}
.agcore-footer-col{gap:10px}.agcore-footer-col h2{margin-bottom:5px!important;font-size:10px!important}
.agcore-footer-col a{font-size:14px}.agcore-footer-col p{font-size:13px;line-height:1.5}
.agcore-footer-bottom{padding-top:18px;font-size:11px}
@media(max-width:780px){.agcore-footer-top{grid-template-columns:1fr 1fr;gap:24px;padding-bottom:25px}.agcore-footer-brand{grid-column:1/-1}}
@media(max-width:600px){.agcore-panel{width:min(88vw,360px);padding:22px 23px max(24px,env(safe-area-inset-bottom))}.agcore-nav{margin:28px 0 auto}.agcore-nav a{font-size:21px;padding:11px 0}.agcore-footer{padding:34px 0 20px}.agcore-footer-inner{padding:0 22px}.agcore-footer-top{grid-template-columns:1fr 1fr;gap:25px 15px;padding-bottom:26px}.agcore-footer-brand{grid-column:1/-1}.agcore-footer-brand>a{font-size:43px}.agcore-footer-brand>p{font-size:17px;margin:10px 0}.agcore-footer-desc{font-size:13px;max-width:310px}.agcore-footer-col{gap:10px}.agcore-footer-col a{font-size:13px}.agcore-footer-col p{font-size:12px}.agcore-footer-bottom{gap:7px}.agcore-to-top{width:42px;height:42px}}
@media(max-width:380px){.agcore-panel{width:91vw}.agcore-nav a{font-size:19px}.agcore-footer-top{grid-template-columns:1fr}.agcore-footer-brand{grid-column:auto}}
