/* AGROTEKA site polish — intentionally limited to existing branded templates. */
body.agcore-enabled .wp-site-blocks>main,body.agcore-enabled .wp-site-blocks>.wp-block-group{margin-block-start:0}
body.agcore-enabled .wp-site-blocks>footer{display:none!important}
body.agcore-enabled .agcore-footer{border-top:12px solid #f5f1e8!important;margin-top:0!important}
body.agcore-enabled .wp-site-blocks{border-bottom:0!important}
body.agcore-enabled .wp-site-blocks>main:last-child{margin-bottom:0!important}
.agt-wrap .agt-hero{background:linear-gradient(120deg,#214b39 0%,#173b2d 72%,#102d23 100%)}
.agt-wrap .agt-hero h1{margin-bottom:clamp(32px,5vw,62px)}
.agt-wrap .agt-hero-index{margin-top:clamp(38px,6vw,75px)}
.agt-wrap .agt-intro{padding-top:clamp(55px,7vw,90px);padding-bottom:clamp(55px,7vw,90px)}
.agt-wrap .agt-final{margin-bottom:0!important}
.agabout .agabout-hero{padding-top:clamp(55px,7vw,90px);padding-bottom:clamp(55px,7vw,90px)}
.agabout .agabout-section{padding-top:clamp(65px,8vw,105px);padding-bottom:clamp(65px,8vw,105px)}
.agabout .agabout-hero h1{margin-top:clamp(42px,6vw,70px);margin-bottom:clamp(48px,7vw,80px)}
.agt-wrap .agpol-arrow-icon,.agpol-arrow-icon{display:inline-block;width:12px;height:12px;position:relative;margin-left:8px;vertical-align:middle;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor}
.agt-wrap .agpol-arrow-icon:after,.agpol-arrow-icon:after{content:'';position:absolute;width:15px;height:1.5px;background:currentColor;top:5px;right:-2px;transform:rotate(-45deg);transform-origin:center}
.agpol-arrow:after{content:'↗';display:inline-block;font-family:Arial,sans-serif;font-size:1em;margin-left:9px;color:inherit}
.agpol-gift{background:#e4e9df;color:#173b2d;padding:clamp(36px,6vw,72px) clamp(20px,5vw,76px);border-block:1px solid #cad6c8}
.agpol-gift-inner{max-width:1170px;margin:auto}.agpol-gift-meta{font-size:11px;font-weight:750;letter-spacing:.16em;margin-bottom:20px}
.agpol-gift h2{font-size:clamp(31px,4.5vw,64px);line-height:1.09;letter-spacing:-.05em;max-width:920px;margin:0 0 18px;font-weight:650}
.agpol-gift h2 em{font-family:Georgia,serif;font-weight:400}.agpol-gift-lead{font-size:clamp(17px,2vw,22px);max-width:840px;line-height:1.5}
.agpol-gift-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 35px;margin:25px 0}
.agpol-gift-grid p{border-top:1px solid #adbfaf;padding:14px 0 0;font-size:15px;line-height:1.5}
.agpol-gift-note{font-size:13px;line-height:1.55;max-width:780px;opacity:.85}
.agpol-card-gift{font-size:10px;letter-spacing:.1em;font-weight:800;color:#28563d;margin:0 0 12px}
@media(max-width:650px){.agpol-gift-grid{grid-template-columns:1fr;gap:0}.agpol-gift-grid p{margin:0;padding:12px 0}.agpol-gift{padding-block:36px}}

/* v1.0.1: keep the actual Core navigation visible above full-bleed custom templates. */
html body.agcore-enabled #agcore-top.agcore-top{display:block!important;visibility:visible!important;opacity:1!important;position:fixed!important;z-index:2147482000!important;top:0!important;left:0!important;right:0!important;transform:none!important}
html body.admin-bar.agcore-enabled #agcore-top.agcore-top{top:32px!important}
@media(max-width:782px){html body.admin-bar.agcore-enabled #agcore-top.agcore-top{top:46px!important}}
html body.agcore-enabled #agcore-panel.agcore-panel{z-index:2147482002!important}
html body.agcore-enabled .agcore-overlay{z-index:2147482001!important}
/* Prevent the template header and its leftover borders/spacing from rendering. */
body.agcore-enabled .wp-site-blocks>header,body.agcore-enabled .wp-site-blocks>footer,body.agcore-enabled .wp-site-blocks>.wp-block-template-part{display:none!important}
body.agcore-enabled .wp-site-blocks{padding-top:var(--agcore-header,72px)!important;padding-bottom:0!important;margin-bottom:0!important;border:0!important}
body.agcore-enabled .wp-site-blocks>.wp-block-group:last-child:empty{display:none!important}
body.agcore-enabled .wp-site-blocks>main{margin-block-start:0!important;margin-block-end:0!important}
body.agcore-enabled .agcore-footer{border-top:12px solid #f5f1e8!important;box-shadow:none!important;outline:none!important}
body.agcore-enabled .agcore-footer:before,body.agcore-enabled .agcore-footer:after{content:none!important}
body.agcore-enabled .aglib,body.agcore-enabled .agabout{margin-top:0!important;margin-bottom:0!important}
/* Hide duplicated theme site-title/navigation within content wrappers, not the Core logo. */
body.agcore-enabled .wp-site-blocks>.wp-block-group:has(> .wp-block-site-title){display:none!important}

/* v1.0.2 — real header fallback, tidy footer and compact bonus */
body.agcore-enabled .agcore-footer{border-top:1px solid rgba(245,241,232,.20)!important;margin-top:0!important}
body.agcore-enabled .wp-site-blocks{border:0!important}
body.agcore-enabled .wp-site-blocks>header,body.agcore-enabled .wp-site-blocks>footer{display:none!important}
body.agcore-enabled .aglib,body.agcore-enabled .agabout{border-top:0!important}
body.agcore-enabled .aglib:before,body.agcore-enabled .agabout:before{display:none!important}
body.agcore-enabled .aglib-outro,body.agcore-enabled .agabout-cta,body.agcore-enabled .agp-end{margin-bottom:0!important}
/* Legal links are their own section; do not insert a conspicuous cream bar. */
body.agcore-enabled .agcore-footer{box-shadow:none!important}
.agpol-gift{padding:clamp(26px,3.4vw,48px) clamp(20px,4vw,55px)!important}
.agpol-gift-layout{display:grid;grid-template-columns:minmax(145px,240px) minmax(0,1fr);gap:clamp(22px,4vw,56px);align-items:start;max-width:1100px;margin:auto}
.agpol-gift-cover{width:100%;max-width:240px;display:block;box-shadow:0 14px 28px #1637292b}
.agpol-gift-copy h2{font-size:clamp(29px,3.1vw,48px)!important;margin:8px 0 14px!important}
.agpol-gift-copy .agpol-gift-lead{font-size:clamp(16px,1.5vw,20px);line-height:1.48;margin:0 0 12px}
.agpol-gift-copy .agpol-gift-grid{margin:14px 0;gap:6px 18px}
.agpol-gift-copy .agpol-gift-grid p{font-size:14px;padding-top:9px}
@media(max-width:650px){.agpol-gift-layout{grid-template-columns:1fr;gap:19px}.agpol-gift-cover{width:118px}.agpol-gift-copy h2{font-size:clamp(28px,7vw,37px)!important}.agpol-gift-copy .agpol-gift-grid{grid-template-columns:1fr}}

/* v1.0.3: restrained bonus placement and footer seams. */
body.agp-single-product .agpol-gift{scroll-margin-top:110px;background:#f5f1e8!important;border:1px solid #d9ded4!important;border-radius:0!important;padding:24px clamp(18px,3vw,38px)!important;color:#203e31!important}
body.agp-single-product .agpol-gift-layout{display:grid;grid-template-columns:110px minmax(0,1fr);gap:22px;align-items:center;max-width:1050px}
body.agp-single-product .agpol-gift-cover{width:110px;max-width:110px;box-shadow:0 5px 14px #14283f19}
body.agp-single-product .agpol-gift-meta{font-size:10px;letter-spacing:.13em;margin:0 0 8px}
body.agp-single-product .agpol-gift h2{font-size:clamp(18px,2.1vw,27px)!important;line-height:1.2!important;letter-spacing:-.025em!important;margin:0 0 9px!important;font-weight:650!important}
body.agp-single-product .agpol-gift-copy>p{font-size:clamp(13px,1.25vw,16px);line-height:1.5;margin:0 0 8px;max-width:680px}
body.agp-single-product .agpol-gift-copy>.agpol-gift-note{font-size:12px;opacity:.75;margin:0}
body.agp-single-product .agpol-gift-teaser{display:inline-block;color:#d9e3c9;font-size:clamp(12px,1.2vw,15px);line-height:1.45;text-decoration:underline;text-decoration-color:#d9e3c970;text-underline-offset:4px;margin:10px 0 3px}
body.agp-single-product .agpol-gift-teaser:hover{color:#fff}
body.agcore-enabled .agcore-footer{border-top:1px solid rgba(245,241,232,.16)!important}
body.agcore-enabled .agp-end,body.agcore-enabled .agabout-cta,body.agcore-enabled .aglib-outro,body.agcore-enabled .agt-final{border-bottom:0!important;box-shadow:none!important;outline:none!important}
body.agcore-enabled .agp-end+*,body.agcore-enabled .agabout-cta+*,body.agcore-enabled .aglib-outro+*{margin-top:0!important}
body.agcore-enabled .agcore-footer:before,body.agcore-enabled .agcore-footer:after{display:none!important}
body.agcore-enabled .agpol-card-gift{display:none!important}
@media(max-width:650px){body.agp-single-product .agpol-gift{padding:18px 15px!important}body.agp-single-product .agpol-gift-layout{grid-template-columns:83px minmax(0,1fr);gap:14px;align-items:start}body.agp-single-product .agpol-gift-cover{width:83px;max-width:83px}body.agp-single-product .agpol-gift h2{font-size:18px!important}body.agp-single-product .agpol-gift-copy>p{font-size:12px}body.agp-single-product .agpol-gift-copy>.agpol-gift-note{font-size:11px}}

/* v1.1.0: collection cards, editorial ease meter, and whole-card carousel */
.aglib-grid .aglib-card{background:#f5f1e8;padding:clamp(16px,2vw,28px);border:1px solid #d9dfd5;display:flex;flex-direction:column;gap:0}
.aglib-grid .aglib-card-body{display:flex;flex-direction:column;flex:1;padding:24px 4px 4px}
.aglib-grid .aglib-card-bottom{margin-top:auto;padding-top:20px}
.aglib-grid{gap:clamp(28px,4vw,52px)!important}
.agpol-ease{padding:15px 0;margin:14px 0 18px;border-top:1px solid #d9dfd5;color:#1b4431;max-width:460px}
.agpol-ease-top{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:10px}
.agpol-ease-top span{font-size:10px;letter-spacing:.08em;font-weight:700}
.agpol-ease-top strong{font-size:18px;white-space:nowrap;font-weight:750}
.agpol-ease-bar{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px}
.agpol-ease-bar i{height:7px;background:linear-gradient(to right,#658d6b var(--fill),#d8e0d6 var(--fill));border-radius:1px}
.agpol-ease small{display:block;margin-top:9px;font-size:11px;color:#617669}
.agpol-ease-mini{padding:10px 0;margin:9px 0 13px;border-top:0}
.agpol-ease-mini .agpol-ease-top span{font-size:9px}
.agpol-ease-mini .agpol-ease-top strong{font-size:13px}
.agpol-ease-mini .agpol-ease-bar i{height:5px}
.agpol-carousel .agt-grid{display:block!important}
.agpol-carousel .agt-card{max-width:760px;margin-inline:auto}
.agpol-carousel .agt-card[hidden]{display:none!important}
.agpol-carousel-controls{display:flex;align-items:center;justify-content:center;gap:22px;padding-top:22px}
.agpol-carousel-controls button{width:46px;height:46px;border:1px solid #b4c3b4;background:#edf2e9;color:#214b39;border-radius:50%;font-size:22px;cursor:pointer}
.agpol-carousel-count{font-size:13px;letter-spacing:.15em;font-weight:700;color:#214b39}
.agpol-progress{position:fixed;top:0;left:0;height:3px;width:0;background:#9bbd91;z-index:2147483000;pointer-events:none}
body.admin-bar .agpol-progress{top:32px}
@media(max-width:782px){body.admin-bar .agpol-progress{top:46px}}
@media(max-width:600px){.aglib-grid .aglib-card{padding:15px}.aglib-grid{gap:34px!important}.agpol-carousel .agt-card{width:100%}}

/* v1.1.1 — mobile containment and full-bleed editorial sections */
.agpol-ease,.agpol-ease *{box-sizing:border-box}
.agpol-ease{width:100%;max-width:100%;min-width:0;clear:both}
.agpol-ease-top,.agpol-ease-bar{width:100%;min-width:0}
.agpol-ease-top span{min-width:0;overflow-wrap:anywhere}
.agpol-ease-bar{grid-template-columns:repeat(10,minmax(0,1fr))}
body.agp-single-product .agp > .agpol-ease,body.single-product .agp > .agpol-ease{padding:20px clamp(20px,5vw,76px);margin:0;max-width:none}
.aglib-grid .aglib-card{min-width:0;overflow:hidden}
.aglib-grid .aglib-cover{width:100%;min-width:0;max-width:100%;flex:0 0 auto;overflow:hidden;position:relative}
.aglib-grid .aglib-cover img,.aglib-grid .aglib-cover picture{max-width:100%!important;min-width:0!important;max-height:100%!important;object-fit:contain!important;transform:none!important;position:static!important;inset:auto!important;margin:auto!important}
.aglib-grid .aglib-cover img{width:100%!important;height:100%!important}
@media(max-width:767px){
  /* Escape the WordPress theme's narrow content column, without removing inner reading gutters. */
  body.agt-home-active .agt-wrap,body .aglib-wrap,body.agp-single-product .agp{width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}
  body.agt-home-active .agt-wrap,body .aglib-wrap{overflow-x:clip}
  .aglib-grid .aglib-cover{aspect-ratio:4/5!important;padding:clamp(12px,4vw,22px)!important}
  .aglib-grid .aglib-card{padding:clamp(12px,3.5vw,16px)!important}
  body.agp-single-product .agp > .agpol-ease,body.single-product .agp > .agpol-ease{padding:20px 22px}
}

/* v1.2.0 — contained ease meter in custom product templates. */
@media(max-width:767px){
  body.agp-single-product .agp > .agpol-ease,
  body.single-product .agp > .agpol-ease,
  body.single-product main > .agpol-ease,
  body.single-product main [class*="-end"] > .agpol-ease{
    box-sizing:border-box!important;width:auto!important;max-width:calc(100% - 36px)!important;
    margin:18px!important;padding:18px 0!important;
    min-width:0!important;overflow:hidden!important;
  }
  body.single-product .agpol-ease-top,body.single-product .agpol-ease-bar{max-width:100%!important}
  body.single-product .agpol-ease-top span{font-size:clamp(10px,2.6vw,13px)!important;line-height:1.4}
  body.single-product .agpol-ease-top strong{font-size:clamp(17px,4.5vw,24px)!important}
  body.agcore-enabled .agcore-to-top{right:12px!important;bottom:76px!important;width:44px!important;height:44px!important}
}
/* Footer links: readable wrapping, never spill outside viewport. */
body.agcore-enabled .agcore-footer,body.agcore-enabled .agcore-footer *{box-sizing:border-box}
body.agcore-enabled .agcore-footer a{overflow-wrap:anywhere}
body.agcore-enabled .agpol-footer-articles{display:block;margin-top:12px}
/* Dedicated article index, visually aligned with the editorial palette. */
.agpol-articles{background:#f5f1e8;color:#203e31;padding:clamp(48px,7vw,90px) 20px;min-height:55vh}
.agpol-articles-inner{max-width:1120px;margin:auto}
.agpol-articles-eyebrow{font-size:12px;letter-spacing:.18em;font-weight:700}
.agpol-articles h1{font-size:clamp(36px,6vw,72px);line-height:1.06;letter-spacing:-.045em;margin:22px 0}
.agpol-articles-intro{font-size:clamp(16px,2vw,22px);line-height:1.5;max-width:700px}
.agpol-articles-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:45px}
.agpol-article-card{background:#fff;border:1px solid #d9dfd5;min-width:0}
.agpol-article-card a{display:block;padding:22px;text-decoration:none;color:inherit;height:100%;box-sizing:border-box}
.agpol-article-card img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;margin-bottom:20px}
.agpol-article-date{font-size:12px;color:#617669}
.agpol-article-card h2{font-size:clamp(21px,2.2vw,28px);line-height:1.2;margin:13px 0}
.agpol-article-card p{font-size:15px;line-height:1.6}
.agpol-article-more{font-size:14px;font-weight:700}
.agpol-articles-pagination{margin-top:28px;display:flex;gap:15px}
@media(max-width:800px){.agpol-articles-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.agpol-articles-grid{grid-template-columns:1fr}.agpol-articles{padding-inline:18px}}

/* v1.3.0 — contained editorial meters, single cohesive footer */
body.single-product .agpol-ease-frame{box-sizing:border-box!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:22px clamp(20px,5vw,72px)!important;margin:0!important;overflow:hidden!important;background:#f9f8f4}
body.single-product .agpol-ease-frame>.agpol-ease{box-sizing:border-box!important;display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
body.single-product .agpol-ease-frame .agpol-ease-top,body.single-product .agpol-ease-frame .agpol-ease-bar{width:100%!important;max-width:100%!important;min-width:0!important}
body.single-product .agpol-ease-frame .agpol-ease-bar{display:grid!important;grid-template-columns:repeat(10,minmax(0,1fr))!important}
body.single-product .agpol-ease-frame .agpol-ease-bar i{min-width:0!important}
.agcore-footer .agl-legal-links.agpol-legal-in-footer{box-sizing:border-box!important;display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;gap:8px 22px!important;width:100%!important;margin:26px 0 20px!important;padding:22px 0!important;border-top:1px solid rgba(245,240,231,.2)!important;border-bottom:1px solid rgba(245,240,231,.2)!important;background:transparent!important;text-align:center!important}
.agcore-footer .agl-legal-links.agpol-legal-in-footer a{display:inline-block!important;margin:0!important;font-size:clamp(12px,2.8vw,14px)!important;line-height:1.6!important;text-decoration-thickness:1px!important}
@media(max-width:767px){body.single-product .agpol-ease-frame{padding:22px 20px!important}body.single-product .agpol-ease-frame>.agpol-ease{margin:0!important;padding:0!important;max-width:100%!important;width:100%!important}.agcore-footer .agl-legal-links.agpol-legal-in-footer{gap:10px 16px!important;margin:22px 0!important;padding:20px 0!important}}
