/* Still Kicking -- privacy-first member and staff Community v1 */

.gh-community-title{align-items:flex-end}
.gh-community-title h1{margin-bottom:2px}
.gh-community-title .btn{flex:0 0 auto}
.gh-community-title .btn-sm,.gh-community-moderation-actions .btn{min-height:44px}
.gh-community-composer .btn,.gh-community-comment-form .btn{min-height:44px}
.gh-community-title-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}

.gh-community-safety{
  margin:0 0 16px;
  border:1px solid color-mix(in srgb,var(--honey) 48%,var(--line));
  border-radius:16px;
  background:color-mix(in srgb,var(--honey) 13%,var(--surface));
  overflow:hidden;
}
.gh-community-safety summary{
  min-height:48px;
  padding:12px 15px;
  display:flex;
  align-items:center;
  gap:9px;
  cursor:pointer;
  color:var(--ink);
  font-weight:850;
  list-style:none;
}
.gh-community-safety summary::-webkit-details-marker{display:none}
.gh-community-safety summary::before{content:"ⓘ";color:var(--honey-text);font-size:18px}
.gh-community-safety summary::after{content:"+";margin-left:auto;color:var(--ink-soft);font-size:20px}
.gh-community-safety[open] summary::after{content:"−"}
.gh-community-safety>div{padding:0 15px 14px;color:var(--ink-soft);font-size:13px;line-height:1.55}
.gh-community-safety p{margin:7px 0 0}

.gh-community-state{display:grid;justify-items:center;gap:9px;min-height:180px;align-content:center}
.gh-community-state .sub{max-width:450px;line-height:1.5}
.gh-community-state .btn{margin-top:5px}
.gh-community-state-icon{font-size:34px;color:var(--honey-text)}
.gh-community-offline,.gh-community-restriction,.gh-community-undo,.gh-community-admin-safety{
  margin:0 0 14px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  background:var(--surface-2);
  color:var(--ink-soft);
  font-size:13px;
  line-height:1.45;
}
.gh-community-offline strong,.gh-community-admin-safety strong{color:var(--ink)}
.gh-community-undo{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--surface)}

.gh-community-join{padding:clamp(20px,5vw,34px);text-align:left}
.gh-community-join-art{
  width:58px;height:58px;border-radius:19px;display:grid;place-items:center;
  background:color-mix(in srgb,var(--mint) 42%,var(--surface));
  color:var(--ink);font-size:28px;margin-bottom:16px;
}
.gh-community-join h2{margin:0 0 7px;font-family:var(--font-display);font-size:clamp(24px,6vw,32px)}
.gh-community-join>p{color:var(--ink-soft);line-height:1.55;margin:0 0 20px;max-width:520px}
.gh-community-guidelines{margin:16px 0;padding:15px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line);font-size:13px;line-height:1.55}
.gh-community-guidelines p{margin:7px 0 0;color:var(--ink-soft)}
.gh-community-history-note{display:grid;gap:4px;margin:0 0 17px;padding:13px 14px;border:1px solid color-mix(in srgb,var(--mint) 55%,var(--line));border-radius:14px;background:color-mix(in srgb,var(--mint) 16%,var(--surface));color:var(--ink-soft);font-size:13px;line-height:1.45}
.gh-community-history-note strong{color:var(--ink)}
.gh-community-agree{align-items:flex-start;margin:14px 0 17px;line-height:1.45}
.gh-community-agree input{margin-top:3px;min-width:19px;min-height:19px}
.gh-community-left-note{text-align:left;margin:6px 0 0}

.gh-community-composer{padding:17px;margin-bottom:16px}
.gh-community-composer-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}
.gh-community-composer-title{min-width:0}
.gh-community-composer-identity{display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:0;max-width:55%;padding:8px 10px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.gh-community-composer.is-staff{border-color:color-mix(in srgb,var(--mint) 58%,var(--line));background:linear-gradient(145deg,color-mix(in srgb,var(--mint) 9%,var(--surface)),var(--surface) 56%)}
.gh-community-composer h2{font-family:var(--font-display);font-size:19px;margin:0}
.gh-community-composer-head p{font-size:12.5px;color:var(--ink-soft);margin:2px 0 0}
.gh-community-composer textarea,.gh-community-comment-form textarea{resize:vertical;line-height:1.5;min-height:98px}
.gh-community-compose-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:7px 1px 11px;color:var(--ink-soft);font-size:11.5px;line-height:1.4}
.gh-community-compose-meta span:first-child{max-width:430px}
.gh-community-compose-meta span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}
.gh-community-composer .msg,.gh-community-comment-form .msg{margin-bottom:10px}

.gh-community-feed{display:grid;gap:14px}
.gh-community-post{
  padding:17px;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
@media (hover:hover){
  .gh-community-post:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(32,48,44,.09);border-color:color-mix(in srgb,var(--mint) 38%,var(--line))}
}
.gh-community-author{display:flex;align-items:center;gap:10px;min-width:0}
.gh-community-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:14px;display:grid;place-items:center;border:1px solid rgba(32,48,44,.12);font-size:17px;color:#18322b}
.gh-community-avatar.avatar-1,.gh-community-avatar.avatar-7{background:#bdebd7}
.gh-community-avatar.avatar-2,.gh-community-avatar.avatar-8{background:#ffdc83}
.gh-community-avatar.avatar-3,.gh-community-avatar.avatar-9{background:#bfdff8}
.gh-community-avatar.avatar-4,.gh-community-avatar.avatar-10{background:#efcef1}
.gh-community-avatar.avatar-5,.gh-community-avatar.avatar-11{background:#ffb7a6}
.gh-community-avatar.avatar-6,.gh-community-avatar.avatar-12{background:#d8edaa}
.gh-community-avatar.is-staff{border-color:color-mix(in srgb,var(--mint) 72%,var(--ink));box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--surface) 74%,transparent),0 0 0 2px color-mix(in srgb,var(--mint) 25%,transparent)}
.gh-community-author-copy{display:grid;flex:1 1 auto;min-width:0}
.gh-community-author-name{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}
.gh-community-author-copy strong{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14.5px}
.gh-community-author-copy time{font-size:11.5px;color:var(--ink-soft);margin-top:2px}
.gh-community-staff-badge{display:inline-flex;align-items:center;min-height:22px;max-width:100%;padding:3px 7px;border:1px solid color-mix(in srgb,var(--mint) 72%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--mint) 25%,var(--surface));color:var(--ink);font-size:10px;font-weight:900;line-height:1.2;letter-spacing:.025em;white-space:normal}
.gh-community-more{margin-left:auto;position:relative;flex:0 0 auto}
.gh-community-more summary{list-style:none;width:44px;height:44px;border-radius:11px;display:grid;place-items:center;cursor:pointer;color:var(--ink-soft);font-weight:900;letter-spacing:1px}
.gh-community-more summary::-webkit-details-marker{display:none}
.gh-community-more summary:hover,.gh-community-more[open] summary{background:var(--surface-2);color:var(--ink)}
.gh-community-menu{position:absolute;right:0;top:44px;z-index:20;width:max-content;min-width:170px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 35px rgba(32,48,44,.17)}
.gh-community-menu button{display:block;width:100%;min-height:44px;border:0;background:transparent;color:var(--ink);text-align:left;padding:10px 11px;border-radius:8px;font:inherit;font-size:13px;font-weight:750;transition:transform .14s ease,background-color .14s ease}
.gh-community-menu button:hover:not([disabled]){background:var(--surface-2)}
.gh-community-menu button[disabled]{color:var(--ink-soft);opacity:.7}
.gh-community-body{margin:14px 0 15px;color:var(--ink);font-size:15.5px;line-height:1.58;white-space:pre-wrap;overflow-wrap:anywhere}
.gh-community-post-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--line)}
.gh-community-reactions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.gh-community-reaction,.gh-community-comments-link{
  min-height:44px;border:1px solid var(--line);background:var(--surface);color:var(--ink-soft);
  border-radius:999px;padding:7px 10px;font:inherit;font-size:12px;font-weight:800;
  display:inline-flex;align-items:center;gap:5px;
  transition:transform .14s ease,background-color .14s ease,border-color .14s ease,color .14s ease;
}
.gh-community-reaction:hover:not([disabled]),.gh-community-comments-link:hover{background:var(--surface-2);color:var(--ink)}
.gh-community-reaction.is-on{background:color-mix(in srgb,var(--mint) 32%,var(--surface));border-color:color-mix(in srgb,var(--mint) 60%,var(--line));color:var(--ink)}
.gh-community-reaction[disabled]{opacity:.58}
.gh-community-reaction-count{font-variant-numeric:tabular-nums}
.gh-community-comments-link{border-color:transparent;background:transparent;margin-left:auto}
.gh-community-load-more{display:flex;justify-content:center;padding:18px 0 2px}

.gh-community-back{margin-bottom:12px}
.gh-community-comments{margin-top:20px}
.gh-community-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 2px 10px}
.gh-community-section-head h2{font-family:var(--font-display);font-size:22px;margin:0}
.gh-community-section-head span{font-size:12px;color:var(--ink-soft);font-weight:800}
.gh-community-comment{padding:14px 3px;border-bottom:1px solid var(--line)}
.gh-community-comment .gh-community-avatar{width:36px;height:36px;flex-basis:36px;border-radius:12px;font-size:14px}
.gh-community-comment .gh-community-body{margin:10px 3px 10px;font-size:14.5px}
.gh-community-comment .gh-community-reaction{min-height:44px;padding:5px 9px}
.gh-community-no-comments{padding:26px 12px;text-align:center;display:grid;gap:4px;color:var(--ink-soft)}
.gh-community-no-comments strong{color:var(--ink)}
.gh-community-comments-more{display:flex;margin:16px auto 4px}
.gh-community-comment-form{padding:16px;margin-top:18px}
.gh-community-comment-form>label{font-family:var(--font-display);font-size:19px;color:var(--ink);margin-bottom:9px}
.gh-community-staff-compose-note{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:-2px 0 10px;padding:9px 10px;border-radius:12px;background:color-mix(in srgb,var(--mint) 18%,var(--surface));color:var(--ink-soft);font-size:12px;line-height:1.4}
.gh-community-staff-compose-note strong{color:var(--ink)}

.gh-community-dialog{max-width:560px;padding:22px}
.gh-community-dialog h2{font-family:var(--font-display);font-size:25px;margin:4px 42px 6px 0}
.gh-community-dialog-description{font-size:13px;line-height:1.5;margin:0 34px 16px 0}
.gh-community-dialog-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:14px}
.gh-community-leave-settings{margin:22px -4px -4px;padding:18px 4px 4px;border-top:1px solid var(--line)}
.gh-community-leave-settings h3{margin:0 0 5px;font:850 17px/1.25 var(--font-display);color:var(--ink)}
.gh-community-leave-settings p{margin:0 0 12px;color:var(--ink-soft);font-size:13px;line-height:1.45}
.gh-community-danger-outline{border-color:color-mix(in srgb,var(--clay) 65%,var(--line));color:var(--ink)}
.gh-community-restricted-leave{max-width:620px;margin:18px auto 0;padding:16px 18px;border:1.5px solid color-mix(in srgb,var(--clay) 65%,var(--line));border-radius:16px;background:var(--cream);text-align:center}
.gh-community-restricted-leave p{margin:0 0 12px;color:var(--ink-soft);font-size:13px;line-height:1.5}
.gh-community-leave-list{margin:14px 0;padding-left:22px;color:var(--ink-soft);font-size:13px;line-height:1.5}
.gh-community-leave-list li+li{margin-top:6px}
.gh-community-report-reasons{border:0;padding:0;margin:0 0 16px;display:grid;gap:7px}
.gh-community-report-reasons legend{font-size:13px;font-weight:800;margin-bottom:7px}
.gh-community-report-reasons label{display:flex;align-items:center;gap:9px;min-height:44px;padding:9px 11px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font-size:14px}
.gh-community-report-reasons input{width:18px;height:18px;margin:0}
.gh-community-report-reasons label:has(input:checked){background:color-mix(in srgb,var(--mint) 24%,var(--surface));border-color:color-mix(in srgb,var(--mint) 58%,var(--line))}

.gh-community-admin-safety{border-left:4px solid var(--clay);background:color-mix(in srgb,var(--clay) 8%,var(--surface))}
.gh-community-moderation-tabs{display:flex;gap:4px;padding:4px;margin:0 0 15px;background:var(--surface-2);border:1px solid var(--line);border-radius:14px;overflow-x:auto}
.gh-community-moderation-tabs button{flex:1 0 auto;min-width:44px;min-height:44px;border:0;background:transparent;color:var(--ink-soft);border-radius:10px;padding:8px 12px;font:inherit;font-size:13px;font-weight:850;transition:transform .14s ease,background-color .14s ease,color .14s ease}
.gh-community-moderation-tabs button.is-active{background:var(--surface);color:var(--ink);box-shadow:0 1px 5px rgba(32,48,44,.1)}
.gh-community-moderation-list{display:grid;gap:14px}
.gh-community-moderation-card{padding:18px;border-left:4px solid var(--line)}
.gh-community-moderation-card.is-urgent{border-left-color:var(--clay)}
.gh-community-moderation-card.is-focused{animation:gh-community-focus 1.4s ease}
.gh-community-moderation-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.gh-community-moderation-head h2{font-family:var(--font-display);font-size:20px;margin:7px 0 2px}
.gh-community-moderation-head p{font-size:12px;color:var(--ink-soft);margin:0}
.gh-community-moderation-labels{display:flex;gap:6px;flex-wrap:wrap}
.gh-community-priority{display:inline-flex;align-items:center;gap:5px}
.gh-community-priority>span{width:16px;height:16px;display:grid;place-items:center;border-radius:999px;background:var(--surface);color:var(--clay);font-size:11px;line-height:1}
.gh-community-assignee{display:flex;align-items:center;gap:6px;margin-top:8px;color:var(--ink-soft);font-size:12px;line-height:1.35}
.gh-community-assignee>span:first-child{width:20px;height:20px;display:grid;place-items:center;border-radius:999px;background:color-mix(in srgb,var(--mint) 35%,var(--surface));color:var(--ink);font-weight:900}
.gh-community-assignee.is-unassigned>span:first-child{background:var(--surface-2);color:var(--ink-soft)}
.gh-community-moderation-content{margin:14px 0;padding:14px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line)}
.gh-community-moderation-content blockquote{margin:8px 0;color:var(--ink);font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.gh-community-report-detail,.gh-community-resolution{margin:10px 0;font-size:13px;color:var(--ink-soft)}
.gh-community-report-detail p,.gh-community-resolution p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.gh-community-access-state{display:grid;gap:3px;margin:12px 0;padding:12px 14px;border:1px solid color-mix(in srgb,var(--clay) 48%,var(--line));border-radius:13px;background:color-mix(in srgb,var(--clay) 9%,var(--surface));color:var(--ink-soft);font-size:12.5px;line-height:1.4}
.gh-community-access-state strong{color:var(--ink)}
.gh-community-access-state.is-left{border-color:color-mix(in srgb,var(--sk-sky,#8ed8ff) 55%,var(--line));background:color-mix(in srgb,var(--sk-sky,#8ed8ff) 12%,var(--surface))}
.gh-community-access-state.is-conflict{border-color:color-mix(in srgb,var(--honey) 72%,var(--line));background:color-mix(in srgb,var(--honey) 18%,var(--surface))}
.gh-community-moderation-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}
.gh-community-danger{background:var(--clay);border-color:var(--clay)}
.gh-community-identity-result{margin:14px 0;padding:15px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.gh-community-identity-result strong{display:block;font-size:18px;margin:4px 0}
.gh-community-identity-result p{color:var(--ink-soft);font-size:13px;margin:4px 0 12px}

@keyframes gh-community-focus{
  0%,100%{box-shadow:0 1px 2px rgba(32,48,44,.05),0 8px 24px rgba(32,48,44,.06)}
  30%{box-shadow:0 0 0 4px color-mix(in srgb,var(--honey) 58%,transparent),0 12px 30px rgba(32,48,44,.12)}
}

/* Four member destinations remain usable down to narrow phone widths. */
.member-bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr))}

@media(max-width:640px){
  .gh-community-title{align-items:flex-start}
  .gh-community-title>.btn{margin-top:8px}
  .gh-community-title-actions{width:100%;justify-content:flex-start;margin-top:8px}
  .gh-community-title-actions .btn{flex:1 1 145px;white-space:normal}
  .gh-community-post{padding:15px}
  .gh-community-composer-head{align-items:flex-start;flex-direction:column}
  .gh-community-composer-identity{justify-content:flex-start;width:100%;max-width:none}
  .gh-community-body{font-size:15px}
  .gh-community-post-footer{align-items:flex-start}
  .gh-community-comments-link{width:100%;justify-content:center;margin-left:0;background:var(--surface-2);border-color:var(--line)}
  .gh-community-moderation-card{padding:15px}
  .gh-community-moderation-head .gh-community-avatar{display:none}
  .gh-community-moderation-actions .btn{flex:1 1 145px;white-space:normal}
}

@media(max-width:430px){
  .gh-community-compose-meta{display:grid;gap:5px}
  .gh-community-reactions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  .gh-community-reaction{justify-content:center;padding-left:6px;padding-right:6px}
  .gh-community-reaction>span:nth-child(2){font-size:11px}
  .gh-community-dialog-actions .btn{width:100%}
  .gh-community-leave-settings .btn{width:100%;white-space:normal}
  .gh-community-undo{align-items:flex-start}
  .gh-community-author-name{align-items:flex-start;flex-direction:column;gap:3px}
  .gh-community-author-copy strong{white-space:normal;overflow-wrap:anywhere}
  .gh-community-staff-badge{font-size:9.5px}
  .member-navbtn{font-size:11px}
}

body.bigtext .gh-community-body{font-size:18px}
body.bigtext .gh-community-compose-meta,body.bigtext .gh-community-author-copy time{font-size:14px}
body.bigtext .gh-community-staff-badge{min-height:26px;font-size:13px}
body.bigtext .gh-community-staff-compose-note{font-size:15px}
body.bigtext .gh-community-reaction,body.bigtext .gh-community-comments-link{font-size:14px;min-height:46px}
body.bigtext .gh-community-reaction>span:nth-child(2){font-size:14px}
body.bigtext .gh-community-moderation-head p{font-size:14px}
body.bigtext .gh-community-report-detail,body.bigtext .gh-community-resolution{font-size:15px}

@media(pointer:coarse){
  .gh-community-reaction,.gh-community-comments-link,.gh-community-more summary,.gh-community-menu button,.gh-community-moderation-tabs button{min-height:44px}
}

@media(hover:hover){
  .gh-community-reaction:hover:not([disabled]),.gh-community-comments-link:hover,.gh-community-moderation-tabs button:hover{transform:translateY(-1px)}
  .gh-community-menu button:hover:not([disabled]){transform:translateX(2px)}
}

@media(prefers-reduced-motion:reduce){
  .gh-community-post{transition:none}
  .gh-community-post:hover{transform:none}
  .gh-community-reaction,.gh-community-comments-link,.gh-community-menu button,.gh-community-moderation-tabs button{transition:none}
  .gh-community-reaction:hover,.gh-community-comments-link:hover,.gh-community-menu button:hover,.gh-community-moderation-tabs button:hover{transform:none}
  .gh-community-moderation-card.is-focused{animation:none;box-shadow:0 0 0 4px color-mix(in srgb,var(--honey) 58%,transparent)}
}
