.mg-event-panel{margin-top:16px;padding:15px;border:1px solid #c8c1b540;border-radius:14px;background:#9991860a}
.mg-event-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;flex-wrap:wrap}
.mg-event-panel-head strong{font-size:.94rem;font-weight:650}
.mg-event-panel-head a{font-size:.77rem;color:inherit;text-underline-offset:3px}
.mg-event-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #96908729}
.mg-event-row:last-child{border-bottom:0}
.mg-event-icon{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:11px;background:#9790871c;font-size:1.35rem}
.mg-event-row-copy{display:grid;gap:3px;min-width:0;flex:1}
.mg-event-row-title{font-size:.89rem;font-weight:650;line-height:1.35}
.mg-event-row-meta{font-size:.75rem;opacity:.7}
.mg-event-empty{padding:12px 0;font-size:.86rem;opacity:.7}
.mg-event-pill{padding:3px 8px;border:1px solid #8e88833b;border-radius:15px;white-space:nowrap;font-size:.69rem;opacity:.8}

/* Dedicated Community Gatherings page.
   Reuses the main site's styles.css and hub.css variables, navigation and typography.
   Keep this surface neutral: no pink/red or green cast. */
body.mg-events-page{
  font-family:Quicksand,Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px;
  min-height:100vh;
  color:var(--text,#ebe6de);
  background:var(--page,#121212);
}
body.mg-events-page .page-shell{
  width:min(1360px,calc(100% - 24px));
  max-width:1360px;
  margin:0 auto;
  padding:34px 0 54px;
}
body.mg-events-page .site-header{
  align-items:flex-start;
  gap:18px;
  margin-bottom:17px;
}
body.mg-events-page .site-header-copy{min-width:0}
body.mg-events-page .site-header h1{
  font-weight:650;
  letter-spacing:-.035em;
}
body.mg-events-page .site-header .subtitle{
  max-width:820px;
  white-space:normal;
  color:var(--muted,#aaa49c);
  font-size:15px;
  font-weight:550;
  line-height:1.45;
}
body.mg-events-page .header-actions{
  display:flex;
  align-items:center;
  gap:12px;
}
body.mg-events-page .mg-header-emblem{
  display:grid;
  place-items:center;
  flex:0 0 70px;
  width:70px;
  height:70px;
  border:1px solid #373632;
  border-radius:11px;
  background:#131313;
  overflow:hidden;
  text-decoration:none;
}
body.mg-events-page .mg-header-emblem img{
  width:100%;height:100%;object-fit:contain;display:block;
}
body.mg-events-page .main-tabs{margin:0 0 24px}
body.mg-events-page .main-tab{font-weight:620}
body.mg-events-page .main-tab.is-active{color:var(--text,#ebe6de)}
body.mg-events-page .main-nav-dropdown .main-tab[aria-current="page"]{
  background:#282722;
  color:#ebe2d5;
}
body.mg-events-page .mg-events-content{min-width:0}
body.mg-events-page .mg-events-breadcrumb{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
  color:#908a81;
  font-size:12px;
  font-weight:600;
  margin:3px 0 14px;
}
body.mg-events-page .mg-events-breadcrumb a{color:#b7afa3;text-decoration:none}
body.mg-events-page .mg-events-breadcrumb a:hover{text-decoration:underline}
body.mg-events-page .mg-events-breadcrumb [aria-current="page"]{color:#d1c6ba}
body.mg-events-page .mg-events-hero{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:26px 29px;
  border-radius:17px;
  background:#1a1a19;
  border:1px solid #373532;
  box-shadow:none;
}
body.mg-events-page .mg-events-hero-copy{max-width:760px;min-width:0}
body.mg-events-page .mg-events-hero .eyebrow{
  color:#bcaa8d;
  font-size:11px;
  letter-spacing:.1em;
  margin:0 0 10px;
}
body.mg-events-page .mg-events-hero h2{
  margin:0;
  font:650 clamp(27px,3vw,37px)/1.15 Quicksand,system-ui,sans-serif;
  letter-spacing:-.035em;
  color:#eee7dc;
}
body.mg-events-page .mg-events-hero .mg-events-intro{
  margin:10px 0 0;
  color:#b6ada2;
  font:550 14px/1.6 Quicksand,system-ui,sans-serif;
}
body.mg-events-page .mg-events-hero-symbol{
  width:78px;
  height:78px;
  flex:0 0 78px;
  display:grid;
  place-items:center;
  border:1px solid #3e3b36;
  border-radius:17px;
  background:#20201e;
  color:#c7b394;
}
body.mg-events-page .mg-events-hero-symbol svg{
  width:38px;height:38px;stroke:currentColor;fill:none;
  stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;
}
body.mg-events-page .mg-events-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin:29px 0 15px;
}
body.mg-events-page .mg-events-toolbar .eyebrow{
  margin:0 0 7px;
  color:#b29d80;
  letter-spacing:.12em;
  font-size:10px;
}
body.mg-events-page .mg-events-toolbar h3{
  margin:0;
  color:#e5dcd1;
  font:650 21px/1.25 Quicksand,system-ui,sans-serif;
}
body.mg-events-page .mg-events-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px;
}
body.mg-events-page .mg-event-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  gap:12px;
  padding:19px 20px;
  background:#1a1b19;
  border:1px solid #363430;
  border-radius:14px;
  box-shadow:none;
  transition:border-color .16s ease,background .16s ease;
}
body.mg-events-page .mg-event-card:hover{
  border-color:#575148;
  background:#1d1e1b;
}
body.mg-events-page .mg-event-card-head{
  display:flex;
  align-items:center;
  gap:13px;
}
body.mg-events-page .mg-event-card-head .mg-event-icon{
  width:52px;height:52px;flex:0 0 52px;
  background:#242420;
  border:1px solid #373531;
  border-radius:12px;
  font-size:22px;
}
body.mg-events-page .mg-event-card h2{
  margin:0;
  color:#e9e1d6;
  font:650 18px/1.34 Quicksand,system-ui,sans-serif;
  letter-spacing:-.02em;
}
body.mg-events-page .mg-event-card p{
  margin:0;
  min-height:1.4em;
  color:#b1a99e;
  font:550 13px/1.55 Quicksand,system-ui,sans-serif;
}
body.mg-events-page .mg-event-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  color:#b9b1a6;
  font-size:12px;
  line-height:1.35;
}
body.mg-events-page .mg-event-card-meta span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  border:1px solid #35342f;
  border-radius:8px;
  padding:5px 9px;
  background:#222320;
}
body.mg-events-page .mg-event-card-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid #34332e;
}
body.mg-events-page .mg-event-help{
  color:#99938b;
  font:550 12px/1.5 Quicksand,system-ui,sans-serif;
}
body.mg-events-page .mg-events-footer-note{
  margin:17px 2px 0;
  color:#99938b;
  font-size:12px;
  line-height:1.6;
}
body.mg-events-page .mg-events-btn{
  appearance:none;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  min-height:36px;
  padding:8px 13px;
  border:1px solid #48443e;
  border-radius:9px;
  background:#252522;
  color:#dbd2c6;
  font:650 12px/1.3 Quicksand,system-ui,sans-serif;
  text-decoration:none;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
body.mg-events-page .mg-events-btn:hover{
  background:#302e29;
  border-color:#756654;
  color:#f1e8dd;
}
body.mg-events-page .mg-events-btn.primary{
  background:#302c25;
  border-color:#76664d;
  color:#ebdfcc;
}
body.mg-events-page .mg-events-btn.primary:hover{
  background:#413727;
  border-color:#a68c66;
}
body.mg-events-page .mg-events-btn.danger{
  margin-right:auto;
  color:#d3a9a1;
  border-color:#70534e;
  background:#28201f;
}
body.mg-events-page .mg-events-btn:disabled{opacity:.6;cursor:wait}
body.mg-events-page .mg-events-btn[hidden],
body.mg-events-page #mgEventsManage[hidden]{display:none!important}
body.mg-events-page .mg-event-empty{
  padding:23px;
  color:#aaa39a;
  font-size:13px;
}
body.mg-events-page .mg-event-editor{
  box-sizing:border-box;
  width:min(92vw,515px);
  max-height:min(90vh,780px);
  padding:0;
  overflow:auto;
  border:1px solid #49443c;
  border-radius:17px;
  background:#1c1c1a;
  color:#eee7dc;
  box-shadow:0 24px 75px #0009;
  font-family:Quicksand,system-ui,sans-serif;
}
body.mg-events-page .mg-event-editor::backdrop{
  background:rgba(0,0,0,.68);
  backdrop-filter:blur(3px);
}
body.mg-events-page .mg-event-editor form{
  display:grid;
  gap:14px;
  padding:25px;
}
body.mg-events-page .mg-event-editor h2{
  margin:0 0 4px;
  font-size:23px;
  font-weight:650;
  color:#eee7dc;
}
body.mg-events-page .mg-event-editor label{
  display:grid;
  gap:7px;
  font-size:12px;
  font-weight:650;
  color:#c7beb3;
}
body.mg-events-page .mg-event-editor input,
body.mg-events-page .mg-event-editor textarea,
body.mg-events-page .mg-event-editor select{
  box-sizing:border-box;
  width:100%;
  min-height:41px;
  height:auto;
  border:1px solid #47433c;
  border-radius:9px;
  background:#161715;
  color:#ece4d8;
  padding:10px 12px;
  font:550 14px/1.4 Quicksand,system-ui,sans-serif;
  outline:none;
}
body.mg-events-page .mg-event-editor :is(input,textarea,select):focus{
  border-color:#a38c68;
  box-shadow:0 0 0 3px rgba(185,157,108,.10);
}
body.mg-events-page .mg-event-editor textarea{min-height:77px;resize:vertical}
body.mg-events-page .mg-event-editor ::placeholder{color:#847e76}
body.mg-events-page .mg-event-editor input[type="date"],
body.mg-events-page .mg-event-editor input[type="time"]{color-scheme:dark}
body.mg-events-page .mg-two-col{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
body.mg-events-page .mg-form-actions{
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
  margin-top:4px;
}
body.mg-events-page .mg-event-error{
  min-height:1em;
  color:#d7a5a0;
  font-size:12px;
}
body.mg-events-page :is(a,button,input,textarea,select):focus-visible{
  outline:2px solid #b79b68;
  outline-offset:3px;
}
@media(min-width:701px){
  body.mg-events-page .mg-events-mobile-only{display:none!important}
}
@media(max-width:900px){
  body.mg-events-page .mg-header-emblem{width:58px;height:58px;flex-basis:58px}
  body.mg-events-page .mg-events-hero{padding:22px}
}
@media(max-width:700px){
  body.mg-events-page .page-shell{
    width:calc(100% - 24px)!important;
    padding:52px 0 40px;
  }
  body.mg-events-page .site-header{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    padding-top:0;
    gap:0!important;
    margin-bottom:14px;
  }
  body.mg-events-page .site-header-copy{grid-column:1/-1}
  body.mg-events-page .site-header h1{
    font-size:clamp(30px,8.2vw,44px);
    line-height:1.05;
  }
  body.mg-events-page .site-header .subtitle{
    margin-top:10px;
    font-size:13px;
    line-height:1.5;
  }
  body.mg-events-page .header-actions{
    position:absolute;
    top:0;
    right:0;
    z-index:80;
  }
  body.mg-events-page .mg-header-emblem{display:none}
  body.mg-events-page .main-tabs{display:none!important}
  body.mg-events-page .mg-events-breadcrumb{margin:7px 0 12px}
  body.mg-events-page .mg-events-hero{
    padding:21px 18px;
    border-radius:14px;
  }
  body.mg-events-page .mg-events-hero-symbol{display:none}
  body.mg-events-page .mg-events-hero h2{font-size:28px}
  body.mg-events-page .mg-events-toolbar{margin:25px 0 13px}
  body.mg-events-page .mg-events-grid{grid-template-columns:1fr}
  body.mg-events-page .mg-event-card{padding:16px}
  body.mg-events-page .mg-event-card h2{font-size:17px}
  body.mg-events-page .mg-event-editor form{padding:20px}
}
@media(max-width:400px){
  body.mg-events-page .mg-two-col{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  body.mg-events-page .mg-event-card,
  body.mg-events-page .mg-events-btn{transition:none}
}
