:root{--kg-green:#079447;--kg-dark:#064F2C;--kg-deep:#073523;--kg-light:#EAF5EE;--kg-text:#202722}
body{overflow-x:hidden}.kg-header{background:#fff;border-bottom:1px solid #e9eeeb}.kg-header-inner{padding:18px 24px 10px}.kg-brand-row{margin:0!important}.kg-brand{gap:16px}.kg-brand .wp-block-site-title{font-size:26px!important;font-weight:750;line-height:1.05;margin:0}.kg-brand .wp-block-site-tagline{margin:4px 0 0;color:#59635d}.kg-header-motto{font-size:25px;margin:0;color:var(--kg-green)}.kg-nav{margin-top:8px;font-size:15px}.kg-nav .wp-block-navigation-item__content{padding:10px 0;text-decoration:none}.kg-nav .current-menu-item>.wp-block-navigation-item__content{color:var(--kg-green);box-shadow:inset 0 -2px var(--kg-green)}
.kg-script{font-family:"Brush Script MT","Segoe Script","URW Chancery L",cursive;font-weight:600}.kg-hero{color:#fff}.kg-hero .wp-block-cover__background{background:linear-gradient(90deg,rgba(3,52,31,.82) 0%,rgba(3,52,31,.48) 48%,rgba(3,52,31,.16) 100%)!important}.kg-hero-content{padding:90px 24px 48px}.kg-eyebrow{font-size:12px;font-weight:800;letter-spacing:.14em;margin:0 0 6px}.kg-eyebrow.green{color:var(--kg-green)}.kg-hero-title{font-size:clamp(48px,6vw,82px);color:#fff!important;margin:.05em 0}.kg-hero-sub{font-size:22px;font-weight:650}.kg-hero .wp-block-button__link{background:var(--kg-green);color:#fff;border:1px solid #fff;padding:14px 20px}.kg-hero .is-style-outline .wp-block-button__link{background:#fff;color:var(--kg-dark);border-color:#fff}.kg-anchor{font-size:30px;text-align:right;margin:48px 0 0;color:#fff;transform:rotate(-4deg)}
.kg-section{padding:58px 24px}.kg-section h2,.kg-events h2,.kg-join h2{font-size:clamp(32px,4vw,46px);margin:.1em 0 .55em}.kg-news-query .wp-block-post-template{gap:22px}.kg-card{height:100%;border:1px solid #e1e7e3;border-radius:7px;overflow:hidden;background:#fff;box-shadow:0 6px 20px rgba(5,55,32,.07)}.kg-card>*:not(.wp-block-post-featured-image){margin-left:18px;margin-right:18px}.kg-card .wp-block-post-featured-image{margin:0 0 14px}.kg-card .wp-block-post-title{margin-top:6px}.kg-card .wp-block-post-title a{color:var(--kg-deep);text-decoration:none}.kg-card .wp-block-post-excerpt{margin-bottom:18px}.kg-events{padding:30px 24px;background:linear-gradient(135deg,var(--kg-dark),var(--kg-green));color:#fff}.kg-events h2{color:#fff}.kg-event-grid{margin:0!important}.kg-event-grid .wp-block-column{border-left:1px solid rgba(255,255,255,.3);padding-left:22px}.kg-event-grid p{font-size:17px;margin:0}.kg-event-grid strong{font-size:21px}.kg-rounded img,.kg-tile{border-radius:7px}.kg-tile{overflow:hidden}.kg-tile h3{color:#fff;margin:0;position:absolute;bottom:18px;left:18px;font-size:20px}.kg-join{padding:42px 24px;background:linear-gradient(135deg,var(--kg-dark),var(--kg-green));color:#fff}.kg-join h2{color:#fff}.kg-footer{padding:28px 24px;background:#fff;border-top:1px solid #e3e8e5}.wp-block-button__link{transition:transform .15s ease,opacity .15s ease}.wp-block-button__link:hover{transform:translateY(-1px);opacity:.92}
@media(max-width:900px){.kg-header-inner{padding:10px 16px}.kg-brand-row{display:flex!important}.kg-brand-row>.wp-block-column:first-child{flex-basis:85%!important}.kg-motto-col{display:none}.kg-logo img{width:58px!important}.kg-brand .wp-block-site-title{font-size:19px!important}.kg-brand .wp-block-site-tagline{display:none}.kg-nav{margin-top:0}.kg-nav .wp-block-navigation__responsive-container-open{display:flex}.kg-hero{min-height:650px!important}.kg-hero-content{padding:220px 20px 34px;align-items:flex-start}.kg-hero-title{font-size:52px}.kg-hero-sub{font-size:18px}.kg-hero .wp-block-buttons{display:grid;width:100%}.kg-hero .wp-block-button,.kg-hero .wp-block-button__link{width:100%;text-align:center}.kg-anchor{text-align:left;font-size:27px;margin-top:32px}.kg-news-query .wp-block-post-template{grid-template-columns:1fr!important}.kg-events .wp-block-columns,.kg-section>.wp-block-columns,.kg-group-grid{display:block}.kg-event-grid .wp-block-column{border-left:0;border-top:1px solid rgba(255,255,255,.25);padding:15px 0}.kg-section{padding:42px 18px}.kg-events,.kg-join{padding:34px 18px}.kg-group-grid>.wp-block-column{margin-bottom:14px}}
@media(max-width:520px){.kg-brand{gap:10px}.kg-logo img{width:52px!important}.kg-brand .wp-block-site-title{font-size:17px!important}.kg-hero-title{font-size:44px}.kg-header .wp-block-navigation__responsive-container.is-menu-open{background:linear-gradient(160deg,var(--kg-dark),var(--kg-green));color:#fff;padding:28px}.kg-header .wp-block-navigation__responsive-container.is-menu-open a{color:#fff;font-size:21px}.kg-header .wp-block-navigation__responsive-container-close{color:#fff}}

/* v0.2: corrected hero + tighter responsive header */
.kg-hero .wp-block-cover__image-background{object-position:center 48%!important}
@media(max-width:900px){
  .kg-header-inner{padding:8px 14px!important}
  .kg-brand-row{margin:0!important;min-height:72px}
  .kg-brand-row>.wp-block-column:first-child{flex-basis:auto!important;flex-grow:1}
  .kg-logo img{width:56px!important;height:56px!important;object-fit:contain}
  .kg-brand{gap:12px!important}
  .kg-brand .wp-block-site-title{font-size:21px!important;line-height:1.08!important;max-width:235px}
  .kg-brand .wp-block-site-tagline,.kg-motto-col{display:none!important}
  .kg-nav{position:absolute;right:18px;top:27px;margin:0!important}
  .kg-header-inner{position:relative}
  .kg-nav .wp-block-navigation__responsive-container-open{width:42px;height:42px;align-items:center;justify-content:center}
  .kg-nav .wp-block-navigation__responsive-container-open svg{width:32px;height:32px}
  .kg-hero{min-height:520px!important}
  .kg-hero .wp-block-cover__image-background{object-position:center center!important}
  .kg-hero .wp-block-cover__background{background:linear-gradient(0deg,rgba(3,52,31,.90) 0%,rgba(3,52,31,.58) 48%,rgba(3,52,31,.08) 78%)!important}
  .kg-hero-content{padding:205px 20px 28px!important;min-height:520px;display:flex;flex-direction:column;justify-content:flex-end;box-sizing:border-box}
  .kg-eyebrow{font-size:11px;line-height:1.35}
  .kg-hero-title{font-size:clamp(40px,12vw,52px)!important;line-height:.95!important;max-width:560px;margin:.12em 0 .22em!important}
  .kg-hero-sub{font-size:18px!important;line-height:1.3;margin:0 0 16px!important}
  .kg-hero .wp-block-buttons{display:grid!important;grid-template-columns:1fr 1fr;width:100%;gap:10px}
  .kg-hero .wp-block-button,.kg-hero .wp-block-button__link{width:100%;box-sizing:border-box}
  .kg-hero .wp-block-button__link{padding:12px 14px!important;font-size:15px}
  .kg-anchor{font-size:24px!important;text-align:right!important;margin:16px 4px 0!important;line-height:1.05}
}
@media(max-width:520px){
  .kg-header-inner{padding:7px 12px!important}
  .kg-brand-row{min-height:66px}
  .kg-logo img{width:50px!important;height:50px!important}
  .kg-brand .wp-block-site-title{font-size:18px!important;max-width:205px}
  .kg-nav{right:12px;top:22px}
  .kg-hero{min-height:500px!important}
  .kg-hero-content{min-height:500px;padding:185px 18px 24px!important}
  .kg-hero-title{font-size:43px!important}
  .kg-hero-sub{font-size:17px!important}
  .kg-hero .wp-block-buttons{grid-template-columns:1fr!important}
  .kg-anchor{font-size:22px!important;margin-top:12px!important}
}

/* v0.3: mobile polish */
@media(max-width:900px){
  .kg-section h2,.kg-events h2,.kg-join h2{font-size:40px!important;line-height:1.04!important}
  .kg-section{padding-top:36px!important;padding-bottom:36px!important}
  .kg-events,.kg-join{padding-top:30px!important;padding-bottom:30px!important}
  .kg-section .wp-block-button__link,.kg-join .wp-block-button__link{padding:12px 18px!important;min-height:0!important}
  .kg-section .wp-block-buttons{gap:10px!important}
}
@media(max-width:520px){
  .kg-hero{min-height:465px!important}
  .kg-hero .wp-block-cover__image-background{object-position:48% 55%!important}
  .kg-hero-content{min-height:465px!important;padding:155px 18px 20px!important}
  .kg-hero-title{font-size:39px!important;line-height:1!important}
  .kg-hero-sub{font-size:16px!important;line-height:1.25!important}
  .kg-hero .wp-block-button__link{padding:11px 14px!important;font-size:15px!important}
  .kg-anchor{display:none!important}
  .kg-section{padding:32px 18px!important}
  .kg-section h2,.kg-events h2,.kg-join h2{font-size:36px!important;line-height:1.05!important;overflow-wrap:normal;word-break:normal}
  .kg-events h2{margin-bottom:18px!important}
  .kg-events .kg-event-grid p{font-size:16px!important}
  .kg-events .kg-event-grid strong{font-size:19px!important}
  .kg-section p{line-height:1.55}
  .kg-section .wp-block-button,.kg-section .wp-block-button__link,.kg-join .wp-block-button,.kg-join .wp-block-button__link{width:auto!important}
  .kg-section .wp-block-button__link,.kg-join .wp-block-button__link{padding:11px 16px!important;font-size:16px!important}
  .kg-section .wp-block-buttons{justify-content:flex-start!important}
  .kg-rounded{margin-top:20px!important}
}


/* =========================================================
   v0.4 – approved desktop header + fuller mockup fidelity
   ========================================================= */
.kg-header{
  background:#fff;
  border-bottom:1px solid #e8ece9;
  position:relative;
  z-index:20;
}
.kg-header-inner{
  min-height:104px;
  padding:12px 24px 10px!important;
  gap:30px;
}
.kg-brand{
  gap:14px!important;
  flex:0 0 auto;
}
.kg-logo{
  flex:0 0 auto;
  margin:0!important;
}
.kg-logo img{
  width:82px!important;
  height:82px!important;
  object-fit:contain;
}
.kg-brand-text{
  min-width:235px;
}
.kg-brand .wp-block-site-title{
  max-width:260px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:24px!important;
  line-height:.98!important;
  font-weight:700!important;
  letter-spacing:-.02em;
  margin:0!important;
}
.kg-brand .wp-block-site-title a{
  color:var(--kg-deep);
  text-decoration:none;
}
.kg-brand .wp-block-site-tagline{
  font-size:12px!important;
  line-height:1.25!important;
  margin:6px 0 0!important;
  color:#4e5752;
}
.kg-header-right{
  flex:1 1 auto;
  display:flex!important;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:8px!important;
}
.kg-header-top{
  width:100%;
  gap:18px!important;
}
.kg-header-motto{
  margin:0!important;
  color:var(--kg-green)!important;
  font-size:24px!important;
  white-space:nowrap;
}
.kg-socials{
  margin:0!important;
  gap:10px!important;
}
.kg-socials .wp-social-link{
  background:transparent!important;
}
.kg-socials .wp-social-link a{
  padding:3px!important;
}
.kg-nav{
  margin:0!important;
  width:100%;
}
.kg-nav .wp-block-navigation__container{
  gap:24px!important;
}
.kg-nav .wp-block-navigation-item__content{
  padding:7px 0 8px!important;
  color:#1e2521;
  font-size:14px;
  white-space:nowrap;
}
.kg-nav .wp-block-navigation-item__content:hover{
  color:var(--kg-green);
}
.kg-nav .current-menu-item>.wp-block-navigation-item__content{
  color:var(--kg-green);
  box-shadow:inset 0 -2px var(--kg-green);
}
.kg-nav .wp-block-navigation__submenu-icon{
  width:11px;
  height:11px;
}
.kg-hero{
  margin-top:0!important;
}
.kg-group-grid{
  gap:16px!important;
}
.kg-group-grid .wp-block-column{
  min-width:0;
}
.kg-tile{
  min-height:190px!important;
}
.kg-tile h3{
  right:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:17px!important;
}
.kg-gallery{
  padding-top:42px!important;
  padding-bottom:42px!important;
}
.kg-gallery-strip{
  gap:10px!important;
}
.kg-gallery-strip figure{
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:5px;
}
.kg-gallery-strip img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.kg-footer-inner{
  gap:24px;
}
.kg-footer-brand{
  gap:10px!important;
}
.kg-footer-links{
  margin:0!important;
  font-size:13px;
}
.kg-footer-links a{
  color:#404a44;
  text-decoration:none;
}
.kg-footer-social{
  gap:14px!important;
}
.kg-footer-motto{
  margin:0!important;
  color:var(--kg-green);
  font-size:17px;
  white-space:nowrap;
}

/* Prevent the logged-in admin bar from being mistaken for site header.
   WordPress itself handles its offset; this only keeps our header layout stable. */
.admin-bar .kg-header{z-index:19}

@media (max-width:1050px) and (min-width:901px){
  .kg-header-inner{gap:18px}
  .kg-brand .wp-block-site-title{font-size:21px!important;max-width:225px}
  .kg-brand-text{min-width:205px}
  .kg-header-motto{font-size:20px!important}
  .kg-nav .wp-block-navigation__container{gap:15px!important}
  .kg-nav .wp-block-navigation-item__content{font-size:13px}
}

@media(max-width:900px){
  .kg-header-inner{
    min-height:76px!important;
    padding:8px 15px!important;
    display:flex!important;
    align-items:center!important;
  }
  .kg-brand{gap:10px!important}
  .kg-logo img{
    width:56px!important;
    height:56px!important;
  }
  .kg-brand-text{min-width:0}
  .kg-brand .wp-block-site-title{
    font-family:Georgia,"Times New Roman",serif;
    font-size:19px!important;
    line-height:1.02!important;
    max-width:230px!important;
  }
  .kg-brand .wp-block-site-tagline{display:none!important}
  .kg-header-right{
    position:static!important;
    display:block!important;
    flex:0 0 52px!important;
  }
  .kg-header-top{display:none!important}
  .kg-nav{
    position:static!important;
    width:auto!important;
    margin:0!important;
  }
  .kg-nav .wp-block-navigation__responsive-container-open{
    display:flex!important;
    width:44px!important;
    height:44px!important;
    align-items:center;
    justify-content:center;
    padding:0!important;
  }
  .kg-nav .wp-block-navigation__responsive-container-open svg{
    width:31px!important;
    height:31px!important;
  }
  .kg-header .wp-block-navigation__responsive-container.is-menu-open{
    background:linear-gradient(160deg,var(--kg-dark),var(--kg-green))!important;
    color:#fff!important;
    padding:30px 24px!important;
  }
  .kg-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{
    padding-top:56px!important;
  }
  .kg-header .wp-block-navigation__responsive-container.is-menu-open a{
    color:#fff!important;
    font-size:21px!important;
  }
  .kg-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{
    gap:0!important;
    width:100%;
  }
  .kg-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item{
    width:100%;
    border-bottom:1px solid rgba(255,255,255,.2);
    padding:10px 0;
  }
  .kg-header .wp-block-navigation__responsive-container-close{color:#fff!important}
  .kg-group-grid{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
  }
  .kg-footer-inner{
    align-items:flex-start!important;
  }
}
@media(max-width:620px){
  .kg-brand .wp-block-site-title{
    font-size:17px!important;
    max-width:205px!important;
  }
  .kg-logo img{
    width:52px!important;
    height:52px!important;
  }
  .kg-group-grid{
    grid-template-columns:1fr!important;
  }
  .kg-gallery-strip{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
  }
  .kg-gallery-strip figure:last-child{
    display:none;
  }
  .kg-footer-inner{
    display:block!important;
  }
  .kg-footer-links{
    margin:18px 0!important;
  }
  .kg-footer-social{
    justify-content:space-between;
  }
}


/* =========================================================
   v0.5 – dynamic news, native event management, gallery/mobile polish
   ========================================================= */

.kg-section-head{
  gap:24px!important;
  margin-bottom:22px;
}
.kg-section-head h2{margin-bottom:0!important}
.kg-head-link{margin:0 0 5px!important}
.kg-head-link a{
  color:var(--kg-green);
  font-weight:700;
  text-decoration:none;
}

/* NEWS */
.kg-news-section{padding-top:42px!important;padding-bottom:46px!important}
.kg-news-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.kg-news-card{
  border:1px solid #e1e7e3;
  border-radius:5px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 3px 12px rgba(8,47,28,.05);
  min-width:0;
}
.kg-news-image{
  display:block;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#eaf5ee;
}
.kg-news-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s ease;
}
.kg-news-card:hover .kg-news-image img{transform:scale(1.025)}
.kg-news-body{padding:13px 14px 15px}
.kg-news-date{
  display:flex;
  align-items:center;
  gap:5px;
  font-size:12px;
  color:#627068;
  margin-bottom:6px;
}
.kg-icon{width:1em;height:1em;display:inline-block;flex:0 0 auto}
.kg-news-card h3{
  font-size:21px!important;
  line-height:1.12!important;
  margin:0 0 7px!important;
}
.kg-news-card h3 a{
  color:var(--kg-deep);
  text-decoration:none;
}
.kg-news-card p{
  font-size:14px;
  line-height:1.42;
  color:#465049;
  margin:0 0 8px;
}
.kg-readmore{
  color:var(--kg-green);
  font-size:14px;
  font-weight:700;
  text-decoration:none;
}
.kg-news-empty{
  padding:18px 20px;
  border:1px dashed #b8cabf;
  border-radius:6px;
  background:var(--kg-pale);
  color:#45544b;
  line-height:1.5;
}

/* EVENTS */
.kg-events{
  padding:0!important;
  background:linear-gradient(105deg,var(--kg-dark),var(--kg-green));
  color:#fff;
}
.kg-events-inner{
  min-height:128px;
  display:grid;
  grid-template-columns:1.25fr 2.6fr auto;
  align-items:center;
  gap:24px;
  padding:19px 0;
}
.kg-events-heading{
  display:flex;
  align-items:center;
  gap:15px;
}
.kg-calendar-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  border:2px solid rgba(255,255,255,.9);
  border-radius:8px;
  font-size:24px;
  flex:0 0 auto;
}
.kg-calendar-icon .kg-icon{
  width:24px;
  height:24px;
}
.kg-events-heading h2{
  color:#fff!important;
  font-size:31px!important;
  line-height:1.05!important;
  margin:3px 0 3px!important;
}
.kg-events-heading p{
  margin:0;
  opacity:.9;
  font-size:13px;
}
.kg-events-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.kg-event{
  border-left:1px solid rgba(255,255,255,.28);
  padding:4px 20px;
  min-width:0;
}
.kg-event-date{
  font-size:20px;
  font-weight:800;
  margin-bottom:5px;
}
.kg-event-title{
  font-size:16px;
  font-weight:700;
  margin-bottom:4px;
}
.kg-event-location{
  display:flex;
  align-items:center;
  gap:5px;
  font-size:12px;
  opacity:.9;
}
.kg-event-location .kg-icon{width:13px;height:13px}
.kg-all-events{
  display:inline-flex;
  white-space:nowrap;
  padding:12px 16px;
  border-radius:5px;
  background:#fff;
  color:var(--kg-deep);
  text-decoration:none;
  font-weight:700;
}

/* ABOUT */
.kg-about p{max-width:650px}
.kg-about .wp-block-buttons{margin-top:22px}

/* GROUPS */
.kg-group-grid a{
  color:#fff!important;
  text-decoration:none!important;
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* GALLERY */
.kg-gallery{padding-top:40px!important;padding-bottom:46px!important}
.kg-gallery-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
}
.kg-gallery-grid img{
  display:block;
  width:100%;
  height:118px;
  object-fit:cover;
  border-radius:5px;
}

/* JOIN */
.kg-join-inner{min-height:170px}
.kg-join h2{margin-bottom:8px!important}

/* FOOTER */
.kg-footer{border-top:1px solid #e6ebe7}
.kg-footer-inner{padding-top:22px!important;padding-bottom:22px!important}

/* Mobile / Tablet */
@media(max-width:900px){
  .kg-news-grid{grid-template-columns:1fr 1fr}
  .kg-news-grid .kg-news-card:nth-child(3){grid-column:1/-1;max-width:520px}
  .kg-events-inner{
    grid-template-columns:1fr;
    gap:14px;
    padding:26px 0;
  }
  .kg-events-list{grid-template-columns:repeat(3,1fr)}
  .kg-all-events{justify-self:start}
  .kg-gallery-grid{grid-template-columns:repeat(3,1fr)}
  .kg-gallery-grid img{height:130px}
  .kg-join-inner{min-height:0;padding-top:10px;padding-bottom:10px}
}

@media(max-width:620px){
  .kg-header-inner{min-height:68px!important}
  .kg-logo img{width:48px!important;height:48px!important}
  .kg-brand .wp-block-site-title{font-size:16px!important;max-width:195px!important}
  .kg-nav .wp-block-navigation__responsive-container-open{width:40px!important;height:40px!important}

  .kg-hero{min-height:430px!important}
  .kg-hero-content{min-height:430px!important;padding:140px 16px 17px!important}
  .kg-hero-title{font-size:37px!important}
  .kg-hero-sub{font-size:15px!important}
  .kg-hero .wp-block-button__link{padding:10px 12px!important;font-size:14px!important}

  .kg-section{padding:28px 18px!important}
  .kg-section h2,.kg-events h2,.kg-join h2{
    font-size:34px!important;
    line-height:1.04!important;
  }
  .kg-section-head{display:block!important;margin-bottom:18px}
  .kg-head-link{margin-top:10px!important}

  .kg-news-grid{grid-template-columns:1fr}
  .kg-news-grid .kg-news-card:nth-child(3){grid-column:auto;max-width:none}
  .kg-news-card h3{font-size:19px!important}
  .kg-news-body{padding:12px 13px 14px}

  .kg-events{padding:0 18px!important}
  .kg-events-inner{padding:24px 0}
  .kg-events-heading h2{font-size:32px!important}
  .kg-events-list{grid-template-columns:1fr}
  .kg-event{
    border-left:0;
    border-top:1px solid rgba(255,255,255,.25);
    padding:15px 0;
  }
  .kg-event-date{font-size:18px}
  .kg-event-title{font-size:16px}
  .kg-all-events{width:100%;justify-content:center;box-sizing:border-box}

  .kg-about .wp-block-columns{gap:26px!important}
  .kg-about p{font-size:18px!important;line-height:1.5!important}

  .kg-group-grid{gap:14px!important}
  .kg-tile{min-height:210px!important}

  .kg-gallery-grid{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .kg-gallery-grid img{height:112px}

  .kg-join{padding:30px 18px!important}
  .kg-join-inner{display:block!important}
  .kg-join .wp-block-buttons{margin-top:18px}
  .kg-join .wp-block-button,.kg-join .wp-block-button__link{width:100%!important;box-sizing:border-box}

  .kg-footer-inner{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:15px!important}
  .kg-footer-links{margin:0!important}
  .kg-footer-social{width:100%;justify-content:flex-start!important;flex-wrap:wrap!important}
  .kg-footer-motto{white-space:normal}
}

/* =========================================================
   v0.7 – visual alignment with approved homepage mockup
   ========================================================= */
@media (min-width:901px){
  .kg-header-inner{min-height:96px!important;padding:8px 24px!important}
  .kg-logo img{width:72px!important;height:72px!important}
  .kg-brand .wp-block-site-title{font-size:22px!important;max-width:250px}
  .kg-brand .wp-block-site-tagline{font-size:11px!important;margin-top:4px!important}
  .kg-header-motto{font-size:22px!important}
  .kg-nav .wp-block-navigation__container{gap:20px!important}
  .kg-nav .wp-block-navigation-item__content{font-size:13px!important;padding:5px 0 7px!important}

  .kg-hero{min-height:430px!important}
  .kg-hero-content{padding:155px 24px 26px!important;min-height:430px;box-sizing:border-box}
  .kg-hero-title{font-size:60px!important;line-height:.96!important;max-width:780px}
  .kg-hero-sub{font-size:19px!important;margin:8px 0 13px!important}
  .kg-hero .wp-block-button__link{padding:11px 16px!important;font-size:14px!important}
  .kg-anchor{font-size:25px!important;margin:22px 25px 0 0!important}

  .kg-section{padding:30px 24px!important}
  .kg-section h2,.kg-join h2{font-family:Georgia,"Times New Roman",serif;font-size:30px!important;line-height:1.06!important;letter-spacing:-.02em}
  .kg-section-head{margin-bottom:14px!important}
  .kg-eyebrow{font-size:10px!important;margin-bottom:4px!important}
  .kg-head-link{font-size:12px!important}

  .kg-news-section{padding-top:24px!important;padding-bottom:28px!important}
  .kg-news-grid{gap:14px!important}
  .kg-news-card{box-shadow:0 3px 10px rgba(8,47,28,.045)}
  .kg-news-image{aspect-ratio:2.25/1}
  .kg-news-body{padding:9px 12px 11px!important}
  .kg-news-date{font-size:10px!important;margin-bottom:3px!important}
  .kg-news-card h3{font-family:Georgia,"Times New Roman",serif;font-size:17px!important;line-height:1.08!important;margin-bottom:4px!important}
  .kg-news-card p{font-size:12px!important;line-height:1.3!important;margin-bottom:5px!important}
  .kg-readmore{font-size:12px!important}

  .kg-events-inner{min-height:102px!important;padding:12px 0!important;grid-template-columns:1.18fr 2.8fr auto!important;gap:16px!important}
  .kg-calendar-icon{width:38px!important;height:38px!important;border-radius:6px!important}
  .kg-calendar-icon .kg-icon{width:20px!important;height:20px!important}
  .kg-events-heading{gap:11px!important}
  .kg-events-heading h2{font-family:Georgia,"Times New Roman",serif;font-size:25px!important;margin:1px 0 2px!important}
  .kg-events-heading p{font-size:11px!important}
  .kg-event{padding:2px 14px!important}
  .kg-event-date{font-size:16px!important;margin-bottom:3px!important}
  .kg-event-title{font-size:13px!important;line-height:1.18!important;margin-bottom:3px!important}
  .kg-event-location{font-size:10px!important}
  .kg-all-events{padding:10px 14px!important;font-size:12px!important}

  .kg-about{padding-top:28px!important;padding-bottom:26px!important}
  .kg-about .wp-block-columns{gap:38px!important}
  .kg-about .wp-block-column:first-child{flex-basis:39%!important}
  .kg-about .wp-block-column:last-child{flex-basis:61%!important}
  .kg-about p{font-size:13px!important;line-height:1.42!important;margin-top:9px!important}
  .kg-about .wp-block-buttons{margin-top:12px!important;gap:9px!important}
  .kg-about .wp-block-button__link{font-size:12px!important;padding:9px 13px!important}
  .kg-about .kg-rounded img{max-height:255px;object-fit:cover;width:100%}

  .kg-groups{padding-top:20px!important;padding-bottom:22px!important}
  .kg-groups h2{margin-bottom:12px!important}
  .kg-group-grid{gap:12px!important}
  .kg-tile{min-height:135px!important}
  .kg-tile h3{font-size:14px!important;bottom:12px!important;left:13px!important;right:13px!important}

  .kg-gallery{padding-top:20px!important;padding-bottom:22px!important}
  .kg-gallery .kg-section-head{margin-bottom:10px!important}
  .kg-gallery-grid{gap:8px!important}
  .kg-gallery-grid img{height:82px!important}

  .kg-join{padding:0 24px!important}
  .kg-join-inner{min-height:112px!important}
  .kg-join h2{font-size:27px!important;margin:2px 0 4px!important;color:#fff}
  .kg-join p{font-size:12px!important;margin:0!important}
  .kg-join .wp-block-button__link{font-size:12px!important;padding:10px 14px!important;background:#fff!important;color:var(--kg-deep)!important;border-color:#fff!important}

  .kg-footer{padding:12px 24px!important}
  .kg-footer-inner{padding-top:8px!important;padding-bottom:8px!important}
}

/* v0.7 mobile: preserve the responsive structure, but reduce oversized typography/spacing */
@media(max-width:620px){
  .kg-hero{min-height:405px!important}
  .kg-hero-content{min-height:405px!important;padding:126px 16px 16px!important}
  .kg-hero-title{font-size:34px!important}
  .kg-hero-sub{font-size:14px!important}
  .kg-section{padding:25px 18px!important}
  .kg-section h2,.kg-events h2,.kg-join h2{font-size:31px!important}
  .kg-news-section{padding-top:25px!important;padding-bottom:26px!important}
  .kg-events-inner{padding:20px 0!important}
  .kg-events-heading h2{font-size:29px!important}
  .kg-event{padding:12px 0!important}
  .kg-about p{font-size:16px!important}
  .kg-tile{min-height:190px!important}
  .kg-join{padding:26px 18px!important}
}


/* =========================================================
   v0.8 – decorative carnival polish + mobile compactness
   ========================================================= */

/* Hero: a touch closer to the approved reference */
@media (min-width: 901px){
  .kg-hero{min-height:500px!important}
  .kg-hero-content{
    max-width:1180px!important;
    padding-top:118px!important;
    padding-bottom:34px!important;
  }
  .kg-hero-title{font-size:58px!important}
  .kg-hero-sub{font-size:18px!important}
}

/* Event ribbon: confetti + large tone-on-tone club motif */
.kg-events{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.kg-events::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background-image:
    url("../images/confetti.svg"),
    url("../images/confetti.svg");
  background-repeat:no-repeat,no-repeat;
  background-position:left -35px center,right -70px center;
  background-size:350px auto,350px auto;
  opacity:.7;
  pointer-events:none;
}
.kg-events::after{
  content:"";
  position:absolute;
  width:310px;
  height:310px;
  right:-55px;
  top:50%;
  transform:translateY(-50%) rotate(-10deg);
  z-index:-1;
  background:url("../images/logo.png") center/contain no-repeat;
  opacity:.075;
  filter:grayscale(1) brightness(4);
  pointer-events:none;
}
.kg-events-inner{position:relative;z-index:1}

/* Join ribbon: subtle cheering crowd + confetti edge */
.kg-join{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.kg-join::before{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:82%;
  z-index:-2;
  background:url("../images/crowd-silhouette.svg") bottom center/100% 100% no-repeat;
  pointer-events:none;
}
.kg-join::after{
  content:"";
  position:absolute;
  width:320px;
  height:120px;
  right:5%;
  top:-24px;
  z-index:-1;
  background:url("../images/confetti.svg") center/contain no-repeat;
  opacity:.32;
  transform:rotate(6deg);
  pointer-events:none;
}
.kg-join-inner{position:relative;z-index:1}

/* Subtle green-watermark treatment to the gallery area */
.kg-gallery{
  position:relative;
  overflow:hidden;
}
.kg-gallery::after{
  content:"";
  position:absolute;
  width:240px;
  height:240px;
  right:-95px;
  bottom:-115px;
  background:url("../images/logo.png") center/contain no-repeat;
  opacity:.028;
  pointer-events:none;
}

/* Small celebratory accents around groups */
.kg-groups{
  position:relative;
  overflow:hidden;
}
.kg-groups::before{
  content:"";
  position:absolute;
  width:220px;
  height:90px;
  left:-70px;
  top:12px;
  background:url("../images/confetti.svg") center/contain no-repeat;
  opacity:.18;
  pointer-events:none;
}

/* Desktop density */
@media (min-width: 901px){
  .kg-news-section{padding-top:30px!important;padding-bottom:34px!important}
  .kg-about{padding-top:34px!important;padding-bottom:34px!important}
  .kg-groups{padding-top:28px!important;padding-bottom:30px!important}
  .kg-gallery{padding-top:26px!important;padding-bottom:32px!important}
  .kg-join{padding-top:24px!important;padding-bottom:24px!important}
}

/* Mobile: deliberate, compact version rather than stacked desktop */
@media(max-width:620px){
  .kg-hero{min-height:392px!important}
  .kg-hero-content{
    min-height:392px!important;
    padding:120px 14px 14px!important;
  }
  .kg-hero-title{
    font-size:33px!important;
    line-height:1.02!important;
  }
  .kg-hero-sub{
    font-size:14px!important;
    line-height:1.3!important;
    margin-bottom:12px!important;
  }
  .kg-hero .wp-block-buttons{gap:8px!important}
  .kg-hero .wp-block-button__link{
    min-height:44px!important;
    padding:9px 12px!important;
    font-size:13px!important;
  }

  .kg-section{
    padding-top:24px!important;
    padding-bottom:24px!important;
  }
  .kg-section h2,
  .kg-events h2,
  .kg-join h2{
    font-size:30px!important;
    line-height:1.02!important;
    letter-spacing:-.02em;
  }
  .kg-eyebrow{
    font-size:12px!important;
    letter-spacing:.14em!important;
  }

  .kg-news-section{padding-top:22px!important;padding-bottom:24px!important}
  .kg-news-image{aspect-ratio:16/8.7}
  .kg-news-card h3{
    font-size:18px!important;
    line-height:1.08!important;
  }
  .kg-news-body{padding:10px 11px 12px!important}
  .kg-news-card p{
    font-size:14px!important;
    line-height:1.38!important;
  }
  .kg-news-date{font-size:12px!important}

  .kg-events{padding:0 14px!important}
  .kg-events::before{
    background-position:left -90px top 8px,right -120px bottom 8px;
    background-size:220px auto,220px auto;
    opacity:.35;
  }
  .kg-events::after{
    width:190px;height:190px;
    right:-85px;top:48%;
    opacity:.055;
  }
  .kg-events-inner{
    padding:18px 0!important;
    gap:10px!important;
  }
  .kg-events-heading{gap:10px!important}
  .kg-calendar-icon{
    width:40px!important;
    height:40px!important;
  }
  .kg-events-heading h2{font-size:29px!important}
  .kg-events-heading p{font-size:12px!important}
  .kg-event{padding:11px 0!important}
  .kg-event-date{font-size:17px!important}
  .kg-event-title{font-size:15px!important}
  .kg-event-location{font-size:12px!important}
  .kg-all-events{
    padding:10px 12px!important;
    min-height:44px!important;
  }

  .kg-about p{
    font-size:16px!important;
    line-height:1.45!important;
  }
  .kg-about .wp-block-buttons{margin-top:14px!important}
  .kg-about .wp-block-button__link{
    padding:9px 12px!important;
    font-size:13px!important;
  }

  .kg-groups{padding-top:22px!important;padding-bottom:22px!important}
  .kg-groups::before{display:none}
  .kg-tile{min-height:178px!important}

  .kg-gallery{padding-top:20px!important;padding-bottom:22px!important}
  .kg-gallery-grid img{height:100px!important}
  .kg-gallery::after{display:none}

  .kg-join{
    padding:24px 14px!important;
  }
  .kg-join::before{
    height:68%;
    opacity:.9;
  }
  .kg-join::after{
    width:190px;
    right:-30px;
    top:-12px;
    opacity:.18;
  }
  .kg-join p{
    font-size:15px!important;
    line-height:1.4!important;
  }
  .kg-join .wp-block-button__link{
    padding:10px 12px!important;
    font-size:14px!important;
  }

  .kg-footer-inner{
    padding-top:16px!important;
    padding-bottom:16px!important;
  }
  .kg-footer-brand p{font-size:12px!important}
  .kg-footer-motto{font-size:14px!important}
}


/* =========================================================
   v0.9 – hero matched more closely to the approved reference
   ========================================================= */
@media (min-width: 901px){
  .kg-hero{
    min-height:382px!important;
    height:382px!important;
  }
  .kg-hero .wp-block-cover__image-background{
    object-position:center 58%!important;
  }
  .kg-hero .wp-block-cover__background{
    background:linear-gradient(
      90deg,
      rgba(4,41,24,.62) 0%,
      rgba(4,41,24,.42) 36%,
      rgba(4,41,24,.20) 64%,
      rgba(4,41,24,.10) 100%
    )!important;
    opacity:1!important;
  }
  .kg-hero-content{
    min-height:382px!important;
    max-width:1200px!important;
    padding:104px 0 26px!important;
    display:flex!important;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    position:relative;
  }
  .kg-hero-content > *{max-width:760px}
  .kg-hero .kg-eyebrow{
    font-size:13px!important;
    letter-spacing:.15em!important;
    margin:0 0 8px!important;
  }
  .kg-hero-title{
    font-size:62px!important;
    line-height:.98!important;
    margin:0 0 8px!important;
    max-width:760px!important;
  }
  .kg-hero-sub{
    font-size:18px!important;
    line-height:1.2!important;
    margin:0 0 16px!important;
  }
  .kg-hero .wp-block-buttons{
    gap:10px!important;
    margin-top:0!important;
  }
  .kg-hero .wp-block-button__link{
    padding:10px 16px!important;
    min-height:44px!important;
    font-size:14px!important;
  }
  .kg-anchor{
    position:absolute!important;
    right:0!important;
    bottom:18px!important;
    width:310px!important;
    max-width:none!important;
    min-height:88px;
    margin:0!important;
    display:flex!important;
    align-items:center;
    justify-content:center;
    padding:12px 34px 12px 28px!important;
    box-sizing:border-box;
    color:#fff!important;
    font-size:25px!important;
    line-height:1.05!important;
    text-align:center!important;
    transform:rotate(-3deg);
    background:url("../images/brush-green.svg") center/100% 100% no-repeat;
    text-shadow:0 2px 3px rgba(0,0,0,.16);
  }
  .kg-anchor::after{
    content:"⚓";
    display:inline-block;
    margin-left:8px;
    font-family:Arial,sans-serif;
    font-size:28px;
    color:#fff;
    transform:rotate(3deg);
  }
}
.kg-header{box-shadow:0 1px 0 rgba(0,0,0,.03)}

@media (max-width: 620px){
  .kg-hero{
    min-height:410px!important;
    height:auto!important;
  }
  .kg-hero .wp-block-cover__image-background{
    object-position:52% 56%!important;
  }
  .kg-hero .wp-block-cover__background{
    background:linear-gradient(
      180deg,
      rgba(4,41,24,.08) 0%,
      rgba(4,41,24,.16) 28%,
      rgba(4,41,24,.60) 100%
    )!important;
    opacity:1!important;
  }
  .kg-hero-content{
    min-height:410px!important;
    padding:146px 14px 16px!important;
    justify-content:flex-end!important;
  }
  .kg-hero-title{
    font-size:34px!important;
    line-height:1!important;
    max-width:100%!important;
  }
  .kg-hero .kg-eyebrow{
    font-size:11px!important;
    margin-bottom:7px!important;
  }
  .kg-hero-sub{
    font-size:14px!important;
    margin-bottom:12px!important;
  }
  .kg-anchor{display:none!important}
}
@media (min-width:621px) and (max-width:900px){
  .kg-hero{min-height:440px!important}
  .kg-hero .wp-block-cover__image-background{
    object-position:center 57%!important;
  }
}


/* =========================================================
   v0.10 – final hero alignment refinements
   ========================================================= */
@media (min-width:901px){
  /* Put all hero copy on the same content axis as the sections below. */
  .kg-hero-content{
    width:min(1200px, calc(100% - 64px))!important;
    max-width:1200px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:0!important;
    padding-right:0!important;
  }

  /* Prevent earlier child rules from shifting the button row. */
  .kg-hero-content > .wp-block-buttons{
    width:auto!important;
    max-width:760px!important;
    margin-left:0!important;
    margin-right:0!important;
    align-self:flex-start!important;
    justify-content:flex-start!important;
  }

  /* Keep copy aligned consistently. */
  .kg-hero .kg-eyebrow,
  .kg-hero-title,
  .kg-hero-sub{
    margin-left:0!important;
    margin-right:0!important;
    align-self:flex-start!important;
  }

  /* Reference-style brush treatment at lower right. */
  .kg-anchor{
    right:-6px!important;
    bottom:10px!important;
    width:365px!important;
    min-height:102px!important;
    padding:14px 38px 14px 32px!important;
    font-size:26px!important;
    transform:rotate(-4deg)!important;
  }

  /* The existing anchor in the content is retained; no duplicate CSS anchor. */
  .kg-anchor::after{
    content:none!important;
    display:none!important;
  }

  /* Slight crop refinement: keep the group more central. */
  .kg-hero .wp-block-cover__image-background{
    object-position:center 61%!important;
  }
}

@media (min-width:621px) and (max-width:900px){
  .kg-hero .wp-block-cover__image-background{
    object-position:48% 59%!important;
  }
}

@media (max-width:620px){
  /* Keep the successful mobile composition, only refine the crop. */
  .kg-hero .wp-block-cover__image-background{
    object-position:47% 60%!important;
  }
}


/* =========================================================
   v0.11 – dynamic admin-editable homepage markup
   ========================================================= */
.kg-wide{width:min(1200px,calc(100% - 48px));margin-inline:auto}
.kg-hero-dynamic{
  position:relative;
  min-height:382px;
  height:382px;
  background-image:var(--kg-hero-image);
  background-size:cover;
  background-position:center 61%;
  color:#fff;
  overflow:hidden;
}
.kg-hero-dynamic .kg-hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(4,41,24,.62),rgba(4,41,24,.42) 36%,rgba(4,41,24,.20) 64%,rgba(4,41,24,.10));
}
.kg-hero-dynamic .kg-hero-content{
  position:relative;z-index:1;
  width:min(1200px,calc(100% - 64px));
  min-height:382px;margin:auto;padding:104px 0 26px!important;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;box-sizing:border-box
}
.kg-hero-buttons{display:flex;gap:10px}
.kg-hero-btn{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;border-radius:6px;font-weight:700;text-decoration:none;box-sizing:border-box}
.kg-hero-btn-primary{background:var(--kg-green);color:#fff;border:1px solid #fff}
.kg-hero-btn-secondary{background:#fff;color:var(--kg-dark);border:1px solid #fff}
.kg-about-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:52px;align-items:center}
.kg-about-image{display:block;width:100%;aspect-ratio:16/8.7;object-fit:cover;border-radius:7px}
.kg-inline-buttons{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}
.kg-mini-btn{display:inline-flex;padding:10px 16px;border-radius:6px;text-decoration:none;font-weight:700}
.kg-mini-btn.primary{background:var(--kg-green);color:#fff}
.kg-mini-btn.secondary{background:#fff;color:var(--kg-dark);border:1px solid var(--kg-dark)}
.kg-group-grid-dynamic{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.kg-group-card{position:relative;display:block;height:170px;border-radius:7px;overflow:hidden;color:#fff;text-decoration:none;background:#173b27}
.kg-group-card:after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.38)}
.kg-group-card img{width:100%;height:100%;object-fit:cover}
.kg-group-card span,.kg-group-card b{position:absolute;z-index:2;bottom:16px}
.kg-group-card span{left:16px;font-size:17px;font-weight:700}
.kg-group-card b{right:16px;font-size:20px}
.kg-join-button{display:inline-flex;background:#fff;color:var(--kg-dark);padding:12px 18px;border-radius:6px;text-decoration:none;font-weight:700;white-space:nowrap}
.kg-header-top-custom,.kg-footer-extras{display:flex;align-items:center;gap:18px}
.kg-header-top-custom{justify-content:flex-end}
.kg-header-top-custom .kg-header-motto{margin:0}
.kg-social-custom{display:flex;gap:10px;align-items:center}
.kg-social-custom a{color:var(--kg-green);display:inline-flex;width:23px;height:23px}
.kg-social-custom svg{width:100%;height:100%}
.kg-footer-extras .kg-footer-motto{margin:0}
@media(max-width:900px){
  .kg-header-top-custom{display:none}
  .kg-about-grid{grid-template-columns:1fr}
  .kg-group-grid-dynamic{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .kg-wide{width:calc(100% - 36px)}
  .kg-hero-dynamic{min-height:410px;height:auto;background-position:47% 60%}
  .kg-hero-dynamic .kg-hero-overlay{background:linear-gradient(180deg,rgba(4,41,24,.08),rgba(4,41,24,.16) 28%,rgba(4,41,24,.60))}
  .kg-hero-dynamic .kg-hero-content{width:calc(100% - 28px);min-height:410px;padding:146px 0 16px!important;justify-content:flex-end}
  .kg-hero-buttons{display:grid;width:100%;gap:8px}
  .kg-hero-btn{width:100%;justify-content:center}
  .kg-group-grid-dynamic{grid-template-columns:1fr}
  .kg-group-card{height:178px}
  .kg-footer-extras{flex-wrap:wrap}
}


/* v0.13 – separate mobile hero image */
@media(max-width:620px){
  .kg-hero-dynamic{
    background-image:var(--kg-hero-image-mobile);
    background-position:center center;
  }
}


/* v0.14 – mobile hero: CTAs below image so the group remains visible */
.kg-hero-mobile-actions{display:none}
@media(max-width:620px){
  .kg-hero-dynamic{min-height:365px;height:365px;background-position:center center}
  .kg-hero-dynamic .kg-hero-content{width:calc(100% - 28px);min-height:365px;padding:145px 0 24px!important;justify-content:flex-end}
  .kg-hero-dynamic .kg-hero-buttons{display:none!important}
  .kg-hero-dynamic .kg-anchor{display:none!important}
  .kg-hero-mobile-actions{display:grid;grid-template-columns:1fr;gap:10px;padding:14px 14px 18px;background:#fff}
  .kg-hero-mobile-actions .kg-hero-btn{width:100%;min-height:52px;justify-content:center;font-size:16px}
  .kg-hero-mobile-actions .kg-hero-btn-primary{border-color:var(--kg-green)}
  .kg-hero-mobile-actions .kg-hero-btn-secondary{border:1px solid #dfe6e1}
}

/* v0.15 – compact mobile hero and side-by-side CTAs */
@media(max-width:620px){
  .kg-hero-dynamic{
    min-height:330px!important;
    height:330px!important;
    background-position:center bottom!important;
  }
  .kg-hero-dynamic .kg-hero-content{
    min-height:330px!important;
    width:calc(100% - 28px)!important;
    padding:110px 0 18px!important;
    justify-content:flex-end!important;
  }
  .kg-hero-dynamic .kg-eyebrow{
    font-size:10px!important;
    margin-bottom:5px!important;
  }
  .kg-hero-dynamic .kg-hero-title{
    font-size:31px!important;
    line-height:1!important;
    margin:.08em 0 .18em!important;
  }
  .kg-hero-dynamic .kg-hero-sub{
    font-size:14px!important;
    line-height:1.2!important;
    margin:0!important;
  }
  .kg-hero-mobile-actions{
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    padding:10px 14px 12px!important;
  }
  .kg-hero-mobile-actions .kg-hero-btn{
    min-height:44px!important;
    padding:9px 8px!important;
    font-size:13px!important;
    line-height:1.15!important;
    text-align:center!important;
  }
}

/* =========================================================
   v0.16 – mobile header alignment + compact hero actions
   ========================================================= */
@media(max-width:620px){
  /* Treat logo + club name as one clearly left-aligned brand unit. */
  .kg-header-inner{
    width:100%!important;
    max-width:none!important;
    min-height:82px!important;
    padding:9px 22px!important;
    margin:0!important;
    box-sizing:border-box!important;
    justify-content:space-between!important;
    gap:12px!important;
  }
  .kg-brand{
    flex:1 1 auto!important;
    min-width:0!important;
    margin:0!important;
    gap:12px!important;
    justify-content:flex-start!important;
  }
  .kg-logo,
  .kg-logo figure{
    margin:0!important;
  }
  .kg-logo img{
    width:58px!important;
    height:58px!important;
    display:block!important;
  }
  .kg-brand-text{
    margin:0!important;
    padding:0!important;
    min-width:0!important;
  }
  .kg-brand .wp-block-site-title{
    font-size:18px!important;
    line-height:1.02!important;
    max-width:205px!important;
    margin:0!important;
    text-align:left!important;
  }
  .kg-header-right{
    flex:0 0 44px!important;
    width:44px!important;
    margin:0 0 0 auto!important;
  }
  .kg-nav .wp-block-navigation__responsive-container-open{
    width:44px!important;
    height:44px!important;
    margin:0!important;
  }

  /* Keep CTAs outside the photo, but use one compact horizontal row. */
  .kg-hero-mobile-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:10px!important;
    padding:16px 22px 18px!important;
    margin:0!important;
    background:#fff!important;
  }
  .kg-hero-mobile-actions .kg-hero-btn{
    width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    padding:10px 8px!important;
    font-size:13px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    justify-content:center!important;
    text-align:center!important;
  }
  .kg-news-section{
    padding-top:26px!important;
  }
}

@media(max-width:390px){
  .kg-header-inner{padding-left:16px!important;padding-right:16px!important}
  .kg-logo img{width:54px!important;height:54px!important}
  .kg-brand .wp-block-site-title{font-size:17px!important;max-width:190px!important}
  .kg-hero-mobile-actions{padding-left:16px!important;padding-right:16px!important;gap:8px!important}
  .kg-hero-mobile-actions .kg-hero-btn{font-size:12px!important;padding-left:6px!important;padding-right:6px!important}
}


/* =========================================================
   v0.17 – short mobile CTA labels + tighter action strip
   ========================================================= */
@media(max-width:620px){
  .kg-hero-mobile-actions{
    display:flex!important;
    flex-direction:row!important;
    align-items:stretch!important;
    gap:8px!important;
    padding:14px 22px 8px!important;
  }
  .kg-hero-mobile-actions .kg-hero-btn{
    flex:1 1 0!important;
    width:auto!important;
    min-width:0!important;
    min-height:46px!important;
    padding:9px 6px!important;
    margin:0!important;
    font-size:14px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }
  .kg-news-section{padding-top:18px!important;}
}
@media(max-width:390px){
  .kg-hero-mobile-actions{padding-left:16px!important;padding-right:16px!important;}
  .kg-hero-mobile-actions .kg-hero-btn{font-size:13px!important;}
}

/* v0.18 – cleaner desktop header: hero carries the motto */
@media(min-width:901px){
  .kg-header-top-custom:has(.kg-social-custom:empty){display:none}
  .kg-header-right{display:flex;align-items:center;gap:22px}
  .kg-header-right .kg-header-top-custom{margin:0}
  .kg-header-right .kg-nav{margin-top:0}
}

/* =========================================================
   v0.19 – Termine overview
   ========================================================= */
.kg-subpage-hero{padding:72px 24px 48px;background:linear-gradient(180deg,var(--kg-light,#eef7f0),#fff)}
.kg-subpage-hero h1{margin:5px 0 14px;color:var(--kg-deep,#073523);font-family:Georgia,'Times New Roman',serif;font-size:clamp(40px,5vw,68px);line-height:1.02;letter-spacing:-.025em}
.kg-subpage-intro{max-width:760px;margin:0;color:#425248;font-size:19px;line-height:1.6}
.kg-events-page-content{padding:20px 24px 90px}
.kg-events-page-list{max-width:1180px;margin:0 auto}
.kg-events-month{margin-top:42px}
.kg-events-month>h2{margin:0 0 16px;color:var(--kg-deep,#073523);font-family:Georgia,'Times New Roman',serif;font-size:30px;text-transform:capitalize}
.kg-event-row{display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:26px;align-items:center;padding:24px 26px;margin:0 0 12px;border:1px solid #dfe7e1;border-radius:12px;background:#fff;box-shadow:0 8px 26px rgba(7,53,35,.045)}
.kg-event-day{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:76px;border-right:1px solid #dfe7e1;color:var(--kg-green,#079447)}
.kg-event-day-number{font-size:34px;font-weight:800;line-height:1}
.kg-event-day-name{margin-top:5px;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.kg-event-row-main h3{margin:0 0 7px;font-family:Georgia,'Times New Roman',serif;font-size:24px;line-height:1.15}
.kg-event-row-main h3 a{color:var(--kg-deep,#073523);text-decoration:none}
.kg-event-row-location{color:#557064;font-size:14px;font-weight:650}
.kg-event-row-main p{max-width:760px;margin:9px 0 0;color:#536158;line-height:1.55}
.kg-event-row-link{white-space:nowrap;color:var(--kg-green,#079447);font-weight:750;text-decoration:none}
.kg-event-row:hover{border-color:rgba(7,148,71,.35);box-shadow:0 10px 30px rgba(7,53,35,.08)}
.kg-events-page-empty{margin-top:38px;padding:30px;border-radius:12px;background:var(--kg-light,#eef7f0);color:var(--kg-deep,#073523)}
.kg-events-page-empty p{margin:8px 0 0}
@media(max-width:760px){
 .kg-subpage-hero{padding:46px 22px 32px}
 .kg-subpage-hero h1{font-size:42px}
 .kg-subpage-intro{font-size:17px}
 .kg-events-page-content{padding:6px 18px 58px}
 .kg-events-month{margin-top:32px}
 .kg-events-month>h2{font-size:27px}
 .kg-event-row{grid-template-columns:64px minmax(0,1fr);gap:16px;padding:19px 16px}
 .kg-event-day{min-height:64px}
 .kg-event-day-number{font-size:28px}
 .kg-event-row-main h3{font-size:21px}
 .kg-event-row-link{grid-column:2;margin-top:-3px;font-size:14px}
}

/* =========================================================
   v0.20 – individual event pages
   ========================================================= */
.kg-event-single-hero{padding:72px 24px 46px;background:linear-gradient(180deg,var(--kg-light,#eef7f0),#fff)}
.kg-event-single-hero-inner{max-width:1180px}
.kg-event-single-hero h1{max-width:950px;margin:5px 0 26px;color:var(--kg-deep,#073523);font-family:Georgia,'Times New Roman',serif;font-size:clamp(42px,5vw,68px);line-height:1.04;letter-spacing:-.025em}
.kg-event-single-meta{display:flex;flex-wrap:wrap;gap:14px 36px;padding-top:4px}
.kg-event-single-meta-item{display:flex;align-items:flex-start;gap:11px;color:#425248;font-size:16px;line-height:1.45}
.kg-event-single-meta-item strong{color:var(--kg-deep,#073523);font-size:13px;letter-spacing:.08em;text-transform:uppercase}
.kg-event-single-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;margin-top:2px;border-radius:50%;background:var(--kg-green,#079447);color:#fff;font-weight:800}
.kg-event-single-content-wrap{padding:20px 24px 90px}
.kg-event-single-content{max-width:1180px}
.kg-event-single-content .wp-block-post-content{max-width:860px;margin:0!important;color:#26352c;font-size:19px;line-height:1.75}
.kg-event-single-content .wp-block-post-content p{margin-top:0;margin-bottom:1.35em}
.kg-event-back{max-width:860px;margin:42px 0 0!important;padding-top:24px;border-top:1px solid #dfe7e1}
.kg-event-back a{color:var(--kg-green,#079447);font-weight:750;text-decoration:none}
@media(max-width:760px){
 .kg-event-single-hero{padding:46px 22px 34px}
 .kg-event-single-hero h1{font-size:42px;margin-bottom:22px}
 .kg-event-single-meta{display:grid;gap:12px}
 .kg-event-single-content-wrap{padding:12px 22px 58px}
 .kg-event-single-content .wp-block-post-content{font-size:17px;line-height:1.7}
}


/* =========================================================
   v0.23 – groups: reliable four-column desktop layout
   The homepage switches to the single-column mobile layout
   only at 620px and below. This avoids desktop/zoom states
   accidentally falling into the old two-column tablet grid.
   ========================================================= */
@media (min-width:621px){
  .kg-groups .kg-wide{
    width:min(1200px,calc(100% - 64px))!important;
    margin-inline:auto!important;
  }
  .kg-groups .kg-group-grid-dynamic{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:16px!important;
    width:100%!important;
  }
  .kg-groups .kg-group-card{
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    aspect-ratio:16/8!important;
    margin:0!important;
  }
}

@media (max-width:620px){
  .kg-groups .kg-group-grid-dynamic{
    grid-template-columns:1fr!important;
  }
}


/* =========================================================
   v0.24 – fix WordPress auto-paragraphing inside groups grid
   WordPress had inserted <br> nodes between shortcode cards.
   Those became anonymous CSS-grid items and occupied columns,
   making four cards look like a 2×2 layout.
   ========================================================= */
.kg-group-grid-dynamic > br,
.kg-group-grid-dynamic > p:empty {
  display:none!important;
}

@media (min-width:621px){
  .kg-groups .kg-group-grid-dynamic{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    column-gap:16px!important;
    row-gap:16px!important;
  }
  .kg-groups .kg-group-card{
    grid-column:auto!important;
    grid-row:auto!important;
  }
}


/* =========================================================
   v0.25 – kompaktere vertikale Abstände auf der Startseite
   ========================================================= */
@media (min-width:901px){
  /* Weniger Leerraum vor dem Gruppenbereich */
  .kg-section.kg-groups{
    padding-top:72px!important;
    padding-bottom:48px!important;
  }

  /* Galerie etwas näher an die Gruppen heranholen */
  .kg-section.kg-gallery{
    padding-top:32px!important;
  }
}


/* =========================================================
   v0.26 – Abstand zwischen Startseiten-Shortcodes korrigieren
   Ursache: WordPress-Block-Layout kann den direkten
   Shortcode-Blöcken zusätzliche Flow-/Block-Gaps geben.
   ========================================================= */

/* Die Startseiten-Shortcodes sollen ohne externen Block-Abstand
   direkt aufeinander folgen. Die Sections steuern ihren Abstand selbst. */
body.home .wp-site-blocks > .wp-block-shortcode,
body.home main > .wp-block-shortcode,
body.home .wp-block-post-content > .wp-block-shortcode {
  margin-block-start:0!important;
  margin-block-end:0!important;
}

/* Auch der WordPress-"flow"-Abstand zwischen aufeinanderfolgenden
   Shortcode-Blöcken wird explizit neutralisiert. */
body.home .wp-block-shortcode + .wp-block-shortcode {
  margin-block-start:0!important;
}

/* Abstand Unsere KG -> Unsere Gruppen bewusst kompakt */
body.home .kg-about {
  padding-bottom:18px!important;
  margin-bottom:0!important;
}
body.home .kg-groups {
  padding-top:18px!important;
  margin-top:0!important;
}

/* Mobil noch kompakter, ohne das Layout der Inhalte zu verändern */
@media (max-width:620px){
  body.home .kg-about {
    padding-bottom:12px!important;
  }
  body.home .kg-groups {
    padding-top:18px!important;
  }
}

/* Desktop */
@media (min-width:901px){
  body.home .kg-about {
    padding-bottom:18px!important;
  }
  body.home .kg-groups {
    padding-top:22px!important;
  }
}

/* v0.27: small desktop spacing refinements */
@media (min-width:901px){
  .kg-join-button{margin-top:18px}
  .kg-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content{
    padding:10px 18px!important;
  }
}

/* v0.29: Tablet – Terminbereich am Seitenraster ausrichten */
@media (min-width:621px) and (max-width:1100px){
  body.home .kg-events-inner{
    box-sizing:border-box;
    width:100%;
    padding-left:5.5vw!important;
    padding-right:5.5vw!important;
  }
}

/* =========================================================
   v0.30 – Tablet-Header: mobile Navigation bis 1200px
   Auf Tablets reicht der Platz fuer Logo + komplette Desktop-Navigation
   nicht zuverlaessig. Deshalb bis 1200px nur Hamburger anzeigen.
   ========================================================= */
@media (max-width:1200px){
  .kg-header-inner{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    flex-wrap:nowrap!important;
    padding-left:24px!important;
    padding-right:24px!important;
  }

  .kg-brand-row{
    flex:1 1 auto!important;
    min-width:0!important;
    margin:0!important;
  }

  .kg-header-right{
    flex:0 0 auto!important;
    display:block!important;
    width:auto!important;
    min-width:52px!important;
    margin:0!important;
  }

  .kg-header-top,
  .kg-header-top-custom{
    display:none!important;
  }

  .kg-nav{
    position:static!important;
    margin:0!important;
  }

  /* Geschlossene Desktop-Menueleiste auf Tablet vollstaendig ausblenden */
  .kg-nav .wp-block-navigation__responsive-container:not(.is-menu-open){
    display:none!important;
  }

  /* Stattdessen Hamburger anzeigen */
  .kg-nav .wp-block-navigation__responsive-container-open{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:48px!important;
    height:48px!important;
    padding:0!important;
  }

  .kg-nav .wp-block-navigation__responsive-container-open svg{
    width:34px!important;
    height:34px!important;
  }

  /* Geoeffnetes Overlay bleibt voll funktionsfaehig */
  .kg-header .wp-block-navigation__responsive-container.is-menu-open{
    display:flex!important;
    position:fixed!important;
  }
}

/* Erst ab 1201px wieder die vollstaendige Desktop-Navigation */
@media (min-width:1201px){
  .kg-nav .wp-block-navigation__responsive-container-open{
    display:none!important;
  }
  .kg-nav .wp-block-navigation__responsive-container:not(.is-menu-open){
    display:block!important;
  }
}

/* v0.31 – Compact, fully clickable event archive cards */
.kg-events-page-list .kg-event-row{
  display:grid;grid-template-columns:70px minmax(0,1fr) 24px;
  align-items:center;gap:18px;padding:16px 20px;min-height:94px;
  margin-bottom:10px;color:inherit;text-decoration:none;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.kg-events-page-list .kg-event-day{min-height:55px}
.kg-events-page-list .kg-event-day-number{font-size:31px}
.kg-events-page-list .kg-event-row-main{display:flex;flex-direction:column;gap:5px;min-width:0}
.kg-events-page-list .kg-event-row-title{font-family:Georgia,'Times New Roman',serif;font-size:23px;line-height:1.18;font-weight:700;color:var(--kg-deep,#073523)}
.kg-events-page-list .kg-event-row-location{display:block;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.kg-events-page-list .kg-event-row-arrow{justify-self:end;font-size:25px;font-weight:700;color:var(--kg-green,#079447)}
.kg-events-page-list .kg-event-row:focus-visible{outline:3px solid var(--kg-green,#079447);outline-offset:3px}
@media(max-width:760px){
 .kg-events-page-list .kg-event-row{grid-template-columns:48px minmax(0,1fr) 18px;gap:12px;padding:13px 12px;min-height:78px;margin-bottom:9px}
 .kg-events-page-list .kg-event-day{min-height:48px}
 .kg-events-page-list .kg-event-day-number{font-size:27px}
 .kg-events-page-list .kg-event-day-name{font-size:11px}
 .kg-events-page-list .kg-event-row-title{font-size:18px}
 .kg-events-page-list .kg-event-row-location{font-size:13px}
 .kg-events-page-list .kg-event-row-arrow{font-size:20px}
}
