/* Member-facing Events only; the approved Community home and owner review stay separate. */
#community[data-community-screen="events"],
#community[data-community-screen="event-submit"]{background:#f4f1e9;color:#243238}
#community[data-community-screen="events"] .community-shell,
#community[data-community-screen="event-submit"] .community-shell{padding-bottom:34px}

#community .community-events-head{max-width:660px;margin:4px auto 20px}
#community .community-events-head h1,
#community .community-events-head .community-screen-title{
  display:block;margin:0;color:#25343a;font-size:clamp(19px,5vw,23px);font-weight:900;line-height:1.16;letter-spacing:-.025em;overflow-wrap:anywhere;
}
#community .community-events-head small{margin-top:5px;color:#66747a;font-size:11px;letter-spacing:.12em}
#community .community-events-head .community-back{
  min-width:44px;min-height:44px;border-color:#bfc3bc;background:#faf7f0;color:#26343a;
  box-shadow:inset 1px 1px #fffdf8,0 4px 9px rgba(32,40,45,.08);
}
#community[data-community-screen="events"] .community-events-intro{
  max-width:660px;margin:0 auto 24px;color:#526168;font-size:16px;line-height:1.52;
}
#community[data-community-screen="events"] .community-event-list{max-width:660px;gap:20px;margin:0 auto}
#community[data-community-screen="events"] .community-event-card{
  display:grid;grid-template-columns:1fr;min-width:0;min-height:0;overflow:hidden;
  border:1px solid #c8c5bb;border-top-color:#fffdf8;border-left-color:#fffdf8;border-radius:18px;
  background:#faf7f0;color:#25343a;
  box-shadow:inset 1px 1px #fffdf8,inset -1px -1px #d3cec4,0 4px 0 #d4cfc4,0 10px 20px rgba(30,37,39,.09);
}
#community[data-community-screen="events"] .community-event-card img{
  display:block;width:100%;height:210px;min-height:0;padding:10px;object-fit:contain;
  border-bottom:1px solid #d5d1c8;background:#e9e5dc;
}
#community[data-community-screen="events"] .community-event-card>div{min-width:0;padding:21px 22px 22px;gap:9px}
#community[data-community-screen="events"] .community-event-card .community-kicker{margin:0;color:#187b8a;font-size:11px;line-height:1.3}
#community[data-community-screen="events"] .community-event-card h2{
  margin:0;color:#233137;font-size:clamp(21px,5.3vw,27px);line-height:1.18;letter-spacing:-.035em;overflow-wrap:anywhere;
}
#community[data-community-screen="events"] .community-event-card b{color:#2c6973;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
#community[data-community-screen="events"] .community-event-card b small{display:block;margin-top:2px;color:#607074;font-size:12px;letter-spacing:0}
#community[data-community-screen="events"] .community-event-card p:not(.community-kicker){color:#47585e;font-size:16px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}
#community[data-community-screen="events"] .community-event-card>div>small{margin:6px 0 0;color:#647177;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
#community[data-community-screen="events"] .community-event-card a{
  display:inline-flex;align-items:center;min-height:44px;max-width:100%;margin-top:5px;padding:7px 0;
  color:#176f7d;font-size:13px;line-height:1.35;text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere;
}
#community[data-community-screen="events"] .community-events-empty,
#community[data-community-screen="events"] .community-events-loading{
  padding:27px;border:1px solid #c9c7bd;border-top-color:#fffdf8;border-left-color:#fffdf8;
  border-radius:17px;background:#faf7f0;box-shadow:inset 1px 1px #fffdf8,0 7px 17px rgba(30,37,39,.07);
  color:#405158;font-size:15px;line-height:1.48;
}
#community[data-community-screen="events"] .community-events-empty b{color:#26373c;font-size:17px}
#community[data-community-screen="events"] .community-event-submit-wide{
  display:block;box-sizing:border-box;width:100%;max-width:660px;min-height:52px;margin:27px auto 0;font-size:14px;
}
#community[data-community-screen="events"] .community-events-disclaimer{
  max-width:660px;margin:14px auto 0;color:#5b696d;font-size:13px;line-height:1.5;
}

#community[data-community-screen="event-submit"] .community-event-form{
  box-sizing:border-box;max-width:660px;margin:0 auto;padding:clamp(23px,5vw,34px);
  border:1px solid #c8c5bb;border-top-color:#fffdf8;border-left-color:#fffdf8;border-radius:20px;
  background:#faf7f0;color:#25343a;
  box-shadow:inset 1px 1px #fffdf8,inset -1px -1px #d3cec4,0 4px 0 #d4cfc4,0 12px 22px rgba(30,37,39,.09);
}
#community[data-community-screen="event-submit"] .community-event-form-intro{position:relative;padding-top:3px}
#community[data-community-screen="event-submit"] .community-event-form-intro::before{
  content:"";position:absolute;top:calc(-1 * clamp(23px,5vw,34px));left:0;width:95px;height:4px;border-radius:0 0 4px 4px;background:#52b9bb;
}
#community[data-community-screen="event-submit"] .community-event-form-intro .community-kicker{color:#187b8a;font-size:11px}
#community[data-community-screen="event-submit"] .community-event-form-intro h1{
  margin:0;color:#243238;font-size:clamp(27px,6.8vw,36px);line-height:1.13;letter-spacing:-.045em;overflow-wrap:anywhere;
}
#community[data-community-screen="event-submit"] .community-event-form-intro p:last-child{
  max-width:470px;margin:12px 0 0;color:#526168;font-size:16px;line-height:1.52;
}
#community[data-community-screen="event-submit"] .community-event-group{
  min-width:0;margin:30px 0 0;padding:22px 0 0;border:0;border-top:1px solid #d0d0c8;
}
#community[data-community-screen="event-submit"] .community-event-group legend{
  width:100%;padding:0 0 2px;color:#257985;font-size:13px;font-weight:900;letter-spacing:.12em;
}
#community[data-community-screen="event-submit"] .community-event-group label{
  display:grid;min-width:0;gap:9px;margin:18px 0 0;color:#3b5057;
  font-size:14px;font-weight:900;line-height:1.4;letter-spacing:.075em;overflow-wrap:anywhere;
}
#community[data-community-screen="event-submit"] .community-event-group input,
#community[data-community-screen="event-submit"] .community-event-group select,
#community[data-community-screen="event-submit"] .community-event-group textarea{
  box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:52px;padding:13px 14px;
  border:1px solid #afb9b5;border-radius:12px;background:#fffdf9;color:#243238;
  font-size:16px;font-weight:500;line-height:1.4;letter-spacing:0;
}
#community[data-community-screen="event-submit"] .community-event-group textarea{min-height:150px;resize:vertical;line-height:1.5}
#community[data-community-screen="event-submit"] .community-event-group input[type="file"]{height:auto;min-height:58px;padding:11px;font-size:14px;overflow-wrap:anywhere}
#community[data-community-screen="event-submit"] .community-event-group input[type="file"]::file-selector-button{
  min-height:44px;margin-right:12px;padding:8px 12px;border:1px solid #aebbb8;border-radius:9px;background:#e7efea;color:#253e43;font:inherit;font-weight:800;
}
#community[data-community-screen="event-submit"] .community-event-group label small{color:#5b6a6e;font-size:13px;font-weight:500;line-height:1.45;letter-spacing:0}
#community[data-community-screen="event-submit"] .community-event-rules{
  margin:31px 0 0;padding:19px 20px;border:1px solid #c6cdc6;border-radius:14px;
  background:#edf1e9;color:#33484d;font-size:16px;line-height:1.52;
}
#community[data-community-screen="event-submit"] .community-event-rules b{color:#267783;font-size:12px;letter-spacing:.1em}
#community[data-community-screen="event-submit"] .community-event-rules ul{margin:12px 0 0;padding-left:20px}
#community[data-community-screen="event-submit"] .community-event-rules li+li{margin-top:8px}
#community[data-community-screen="event-submit"] .community-check{
  min-height:54px;margin:23px 0 0;color:#34474e;font-size:14px;line-height:1.4;
}
#community[data-community-screen="event-submit"] .community-check input{width:22px;height:22px;flex:0 0 22px}
#community[data-community-screen="event-submit"] .community-event-error{font-size:16px;line-height:1.5;color:#7c2825}
#community[data-community-screen="event-submit"] .community-event-form>button[type="submit"]{width:100%;min-height:54px;margin-top:22px;font-size:14px}
#community[data-community-screen="event-submit"] .community-event-time-help,
#community[data-community-screen="event-submit"] .community-event-submit-status{font-size:16px;line-height:1.5;color:#34474e;overflow-wrap:anywhere}
#community[data-community-screen="event-submit"] #communityCheckEventSubmission{width:100%;min-height:48px;margin-top:16px;font-size:14px}
#community[data-community-screen="event-submit"] [disabled]{opacity:.72;cursor:default}
#community[data-community-screen="event-submit"] :focus-visible,
#community[data-community-screen="state:eventsubmitted"] :focus-visible,
.community-sheet-backdrop[data-community-event-submit] :focus-visible{outline:3px solid #187b8a;outline-offset:4px}
#community[data-community-screen="state:eventsubmitted"] .community-event-submission-result{max-width:660px;margin:0 auto;padding:28px;background:#faf7f0;color:#25343a;font-family:Arial,Helvetica,sans-serif}
#community[data-community-screen="state:eventsubmitted"] .community-event-submission-result h2{font-size:26px;line-height:1.2;overflow-wrap:anywhere}
#community[data-community-screen="state:eventsubmitted"] .community-event-submission-result p{font-size:16px;line-height:1.5}
#community[data-community-screen="state:eventsubmitted"] .community-event-submission-result button{width:100%;min-height:48px;margin-top:16px;font-size:14px}
.community-sheet-backdrop[data-community-event-submit] .community-sheet{box-sizing:border-box;max-height:calc(100dvh - 24px);overflow:auto;padding-bottom:calc(24px + env(safe-area-inset-bottom));background:#faf7f0;color:#25343a;font-family:Arial,Helvetica,sans-serif}
.community-sheet-backdrop[data-community-event-submit] h2{font-size:26px;line-height:1.2;overflow-wrap:anywhere}
.community-sheet-backdrop[data-community-event-submit] p{font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.community-sheet-backdrop[data-community-event-submit] .community-event-submit-summary{padding:18px;border:1px solid #bfc7c0;border-radius:12px;background:#edf1e9;overflow-wrap:anywhere}
.community-sheet-backdrop[data-community-event-submit] button{min-width:44px;min-height:48px;font-size:14px}

@media(max-width:390px){
  #community[data-community-screen="events"] .community-event-card img{height:180px}
  #community[data-community-screen="events"] .community-event-card>div{padding:19px}
  #community[data-community-screen="event-submit"] .community-event-group input[type="file"]::file-selector-button{display:block;margin:0 0 8px}
}
@media(forced-colors:active){
  #community[data-community-screen="events"] .community-event-card,
  #community[data-community-screen="events"] .community-events-empty,
  #community[data-community-screen="event-submit"] .community-event-form,
  #community[data-community-screen="event-submit"] .community-event-rules{border:2px solid CanvasText;box-shadow:none}
  #community[data-community-screen="event-submit"] .community-event-form-intro::before{background:Highlight}
}
@media(prefers-reduced-motion:reduce){
  #community[data-community-screen="events"] *,#community[data-community-screen="event-submit"] *{scroll-behavior:auto!important;transition:none!important}
}

#community .community-events-home .community-event-card img{object-fit:contain;background:#e9e5dc}
#community .community-event-poster-fallback{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:166px;padding:20px;background:#e9e5dc;color:#47585e;font-size:16px;line-height:1.5;text-align:center}
#community .community-event-poster-fallback[hidden],#community .community-event-card img[hidden]{display:none!important}
#community .community-events-home .community-event-card p:not(.community-kicker){font-size:16px;line-height:1.5;overflow-wrap:anywhere}
#community .community-events-home .community-event-card b,#community .community-events-home .community-event-card small{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
#community .community-events-home .community-event-card a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;overflow-wrap:anywhere}
#community .community-events-home .community-events-empty,#community .community-events-home .community-events-loading{font-size:16px;line-height:1.5;color:#34474e}
#community .community-events-home [data-retry-events],#community[data-community-screen="events"] [data-retry-events]{min-height:48px;font-size:14px;margin-top:12px}
#community[data-community-screen="events"] .community-events-controls{max-width:660px;margin:0 auto 20px}
#community[data-community-screen="events"] #communityRefreshEvents{min-height:48px;font-size:14px}
#community[data-community-screen="events"] .community-events-count{margin:0;color:#47585e;font-size:16px;line-height:1.5}
#community[data-community-screen="events"] .community-event-card b,#community[data-community-screen="events"] .community-event-card b small,#community[data-community-screen="events"] .community-event-card>div>small,#community[data-community-screen="events"] .community-event-card a{font-size:14px;line-height:1.5}
#community[data-community-screen="events"] .community-event-card .community-event-online-details,#community[data-community-screen="events"] .community-event-card .community-event-contact{font-size:16px;line-height:1.5;overflow-wrap:anywhere}
#community[data-community-screen="events"] .community-event-card p strong{font-size:14px;color:#34474e}
#community[data-community-screen="events"] .community-events-empty,#community[data-community-screen="events"] .community-events-loading{font-size:16px;line-height:1.5}
#community[data-community-screen="events"] .community-events-empty p{margin:0}
#community[data-community-screen="events"] :focus-visible,#community .community-events-home :focus-visible{outline:3px solid #187b8a;outline-offset:4px}
