/* Community entry and home visual pass. The existing access and feed controls remain in community-phase-2.css. */
#community .community-entry-back{
  min-height:44px;
  padding:9px 4px;
  border:0;
  background:transparent;
  box-shadow:none;
}

#community .community-image{
  position:relative;
  margin:0;
  padding:3px;
  border:1px solid #adb0aa;
  border-top-color:#fffdf8;
  border-left-color:#fffdf8;
  border-radius:22px;
  background:#d8d5cc;
  box-shadow:inset 1px 1px #fff,0 3px 0 #c8c5bc,0 17px 34px rgba(20,25,30,.19);
  overflow:hidden;
}
#community .community-image::after{
  inset:3px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(9,13,17,.56),transparent 38%,rgba(9,13,17,.12) 56%,rgba(9,13,17,.72));
}
#community .community-image img{
  border-radius:18px;
}
#community .community-image-home{
  height:clamp(300px,47vw,380px);
}
#community .community-image-setup{
  height:clamp(300px,47vw,380px);
}
#community .community-image-home img,
#community .community-image-setup img{object-position:center 48%}
#community .community-hero-copy{
  position:absolute;
  z-index:1;
  inset:3px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:clamp(20px,4vw,34px);
  color:#fffdf8;
  pointer-events:none;
}
#community .community-hero-eyebrow{
  font-size:11px;
  font-weight:900;
  letter-spacing:.18em;
}
#community .community-image .community-hero-copy h1{
  display:block;
  max-width:100%;
  margin:3px 0 0;
  padding:0;
  background:none;
  -webkit-background-clip:border-box;
  background-clip:border-box;
  color:#fffdf8;
  filter:none;
  font-size:clamp(34px,8.3vw,75px);
  line-height:.95;
  letter-spacing:-.065em;
  text-shadow:0 3px 14px rgba(0,0,0,.38);
  overflow-wrap:anywhere;
}
#community .community-hero-copy p{
  max-width:470px;
  margin:auto 0 0;
  color:#fffdf8;
  font-size:clamp(20px,3.5vw,28px);
  font-weight:900;
  line-height:1.06;
  letter-spacing:-.04em;
  text-shadow:0 2px 12px rgba(0,0,0,.8);
}

#community .community-home-head{padding:2px 0 8px}
#community .community-home-tools{margin-bottom:12px}
#community .community-setup>.community-lead{margin:0}
#community .community-home-head .community-lead{
  max-width:600px;
  color:#515a60;
  font-size:15px;
  line-height:1.48;
}
#community .community-notification-button{
  min-height:44px;
  border-color:#b9bfbc;
  background:#f8f6f1;
  color:#263039;
  padding:9px 12px;
  font-size:10px;
  box-shadow:inset 1px 1px #fff,0 5px 12px rgba(27,31,34,.1);
}
#community .community-support-link{
  min-height:52px;
  margin:20px 0 0;
  padding:13px 16px;
  border:1px solid #bfc3be;
  border-left:4px solid #c34c5f;
  border-radius:14px;
  background:#f8f6f1;
  box-shadow:inset 1px 1px #fff,0 7px 17px rgba(27,31,34,.1);
  color:#263039;
  font-size:12px;
  font-weight:900;
}
#community .community-support-link::after{content:none}
#community .community-support-link:hover{background:#fffdf8;filter:none}

#community .community-action-card{
  margin-top:24px;
  border-color:#d1d2cd;
  box-shadow:inset 1px 1px #fff,inset -1px -1px #d1cdc4,0 12px 28px rgba(27,31,34,.12);
}
#community .community-action-card p{font-size:14px}
#community .community-action{
  --action-accent:#67d4e0;
  min-height:116px;
  border:1px solid #59646b;
  border-top-color:#79848a;
  border-left-color:#79848a;
  border-right-color:#11191f;
  border-bottom-color:#11191f;
  background:#20272d;
  gap:7px;
  box-shadow:inset 1px 1px rgba(255,255,255,.1),inset -1px -1px rgba(0,0,0,.3),0 7px 17px rgba(20,25,30,.16);
}
#community .community-action::before{
  inset:9px auto 9px 0;
  width:3px;
  border:0;
  border-radius:0 3px 3px 0;
  background:var(--action-accent);
  -webkit-mask:none;
  mask:none;
  opacity:.85;
}
#community .community-action svg{
  width:42px;
  height:42px;
  padding:10px;
  border-color:#738087;
  border-radius:12px;
  background:#11191f;
  box-shadow:inset 1px 1px rgba(255,255,255,.12),0 4px 9px rgba(0,0,0,.2);
  stroke:var(--action-accent);
  stroke-width:2.2;
}
#community .community-action b{font-size:13px;line-height:1.2}
#community .community-action small{color:#c8d0d3;font-size:12px;line-height:1.3}
#community .community-action[data-compose="checkin"]{--action-accent:#70d4e6}
#community .community-action[data-compose="win"]{--action-accent:#67d4e0}
#community .community-action[data-compose="tough"]{--action-accent:#f0a0a2}
#community .community-action[data-compose="ask"]{--action-accent:#b5a7dc}
#community .community-action:hover,
#community .community-action:focus-visible{border-color:var(--action-accent);background:#293238;filter:none}

@media(max-width:390px){
  #community .community-image-home,
  #community .community-image-setup{height:310px}
  #community .community-hero-copy{padding:22px 18px}
  #community .community-image .community-hero-copy h1{font-size:clamp(28px,7.7vw,34px)}
  #community .community-hero-copy p{font-size:20px}
  #community .community-action{min-height:112px}
}
@media(forced-colors:active){
  #community .community-image,
  #community .community-action{border:2px solid CanvasText;box-shadow:none}
  #community .community-image::after{background:Canvas;opacity:.8}
  #community .community-image .community-hero-copy h1,
  #community .community-hero-copy p,
  #community .community-hero-eyebrow{color:CanvasText;text-shadow:none}
  #community .community-action:focus-visible{outline:3px solid Highlight;box-shadow:none}
}

/* Keep navigation close to the shared header and avoid stacking grid + button gaps. */
#community:is([data-community-screen="setup"],[data-community-screen="home"]) .community-shell{padding-top:8px}
#community[data-community-screen="setup"] .community-setup{gap:12px}
#community[data-community-screen="setup"] .community-entry-back{margin-bottom:0}
