#community {
  --social-accent: #ffba62;
  --social-muted: #c4c3bc;
  --social-rule: #ffffff20;
  color: #f8f5ee;
  background: #141513;
  font: 400 16px/1.4 -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}
#community * { box-sizing: border-box; }
#community .social-preview [hidden] { display: none; }
#community .community-wrap {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 70px) 4%;
  container-type: inline-size;
  display: grid;
  grid-template-columns: 35% minmax(0, 1fr);
  align-items: start;
  gap: 4%;
}
#community :is(h2, h3, p, ul, dl, dd) { margin: 0; padding: 0; }
#community h2 {
  font-size: clamp(25px, 5cqw, 56px);
  line-height: 1.1;
  letter-spacing: -.05em;
  font-weight: 800;
}
#community h2::after { content: '.'; color: var(--social-accent); }
#community .community-intro p {
  margin-top: 12px;
  font-size: clamp(13px, 1.7cqw, 18px);
  color: var(--social-muted);
  white-space: nowrap;
}
#community kbd {
  display: inline-block;
  margin-left: 3px;
  padding: .13em .42em;
  border: 1px solid #66635b;
  border-bottom-width: 2px;
  border-radius: 4px;
  color: #fff5e3;
  background: #2b2c28;
  font: 600 .94em/1.12 ui-monospace, monospace;
}
#community .social-preview {
  background: #1e201f;
  border: 1px solid var(--social-rule);
  border-radius: 9px;
  overflow: hidden;
  container-type: inline-size;
}
#community button {
  min-height: 44px;
  padding: 0;
  border: none;
  color: var(--social-accent);
  background: transparent;
  font: 600 clamp(14px, 2.75cqw, 17px)/1.25 -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  cursor: pointer;
}
#community button:focus-visible { outline: 2px solid var(--social-accent); outline-offset: -3px; }
#community .social-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--social-rule);
}
#community .social-tabs button {
  color: var(--social-muted);
  min-height: clamp(46px, 10cqw, 56px);
}
#community .social-tabs button[aria-selected="true"] {
  color: var(--social-accent);
  box-shadow: inset 0 -2px var(--social-accent);
}
#community .social-tabs button:hover { background: #ffffff06; }
#community [role="tabpanel"] {
  padding: clamp(14px, 4cqw, 26px);
  font-size: clamp(14px, 3.1cqw, 17px);
}
#community .social-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  min-height: 26px;
  margin-bottom: 13px;
}
#community .social-heading h3 {
  font-weight: 700;
  font-size: clamp(17px, 3.8cqw, 22px);
  line-height: 1.2;
  letter-spacing: -.03em;
}
#community .social-heading span {
  color: var(--social-muted);
  font-size: clamp(12px, 2.75cqw, 15px);
}
#community .presence::before {
  content: '';
  display: inline-block;
  width: .53em;
  height: .53em;
  margin-right: .48em;
  border-radius: 50%;
  vertical-align: .1em;
  background: #a5d78e;
}
#community .conversation { display: flex; flex-direction: column; gap: 8px; }
#community .conversation p {
  align-self: start;
  max-width: 90%;
  padding: .56em .86em;
  background: #323634;
  border-radius: 12px 12px 12px 3px;
}
#community .conversation .mine {
  align-self: end;
  color: #ffe4b9;
  background: #57412b;
  border-radius: 12px 12px 3px 12px;
}
#community .quick-reply {
  display: flex;
  align-items: center;
  gap: .65em;
  margin: 14px 0 0 auto;
  padding: .65em 1em;
  border: 1px solid #ffba6266;
  border-radius: 9px;
  background: #ffba620a;
}
#community .quick-reply img { image-rendering: pixelated; }
#community .quick-reply:hover { background: #ffba621a; }
#community .crew div, #community .project-overview li {
  display: flex;
  align-items: center;
  gap: .7em;
  min-height: 42px;
  border-top: 1px solid var(--social-rule);
}
#community .crew div { justify-content: space-between; }
#community .crew dd, #community .finished { color: var(--social-muted); }
#community .project-switch { flex: none; margin-block: -9px; }
#community .project-switch:hover { color: #ffdda5; }
#community .project-overview li::before {
  content: '';
  width: .85em;
  height: .85em;
  border: 1px solid #898b83;
  border-radius: 3px;
}
#community .project-overview .finished::before {
  content: '✓';
  color: var(--social-accent);
  line-height: .85;
  border-color: transparent;
}
#community .project-discussion p + p { margin-top: 12px; }
#community .project-discussion strong { color: var(--social-accent); margin-right: .65em; }
@media (max-width: 799px) {
  #community .community-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #community .community-intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
  #community .community-intro p { margin-top: 0; }
}
@container (max-width: 325px) {
  #community .social-heading h3 { font-size: 16px; }
  #community .project-switch { font-size: 13px; }
}
#community .social-context { color: var(--social-muted); line-height: 1.5; margin-bottom: 16px; padding-bottom: 15px; border-bottom: 1px solid var(--social-rule); }
#community .story-caption { margin: 24px 0 12px; }
#community .story-caption h3 { font-size: clamp(18px,2.1cqw,24px); letter-spacing:-.03em; }
#community .story-caption p { white-space:normal; margin-top:6px; line-height:1.5; font-size:clamp(14px,1.65cqw,17px); }
#community small { color:#acada6; font-size:12px; }
#community .answers { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; justify-content:flex-end }
#community .answers button { border:1px solid #ffba6255; padding:9px 13px; border-radius:9px; text-align:left; }
#community .answers button:hover { background:#ffba6214 }
#community summary { cursor:pointer; padding:13px 0; color:var(--social-accent); }
#community .assignment { color:#ffe0b4; }
#community .work-map { position:relative; height:clamp(114px,30cqw,180px); background:linear-gradient(#13161555,#13161555),url(assets/city-atlas.png) center 72%/cover; image-rendering:pixelated; border-radius:6px; margin-bottom:12px }
#community .work-map span { position:absolute; left:10%; top:40%; width:42%; height:39%; display:grid; place-items:center; border:2px solid #ffbd64; background:#50381ad9; color:#fff1da; font-size:clamp(11px,2.8cqw,16px); }
#community .work-task.finished { text-decoration:line-through }
#community .work-result:not(:empty) { margin-top:12px; color:#bfdfa9 }
@media(max-width:799px){
 #community .story-caption { width:100%; margin:5px 0 0 }
 #community .story-caption h3 { display:none }
 #community .story-caption p { margin:0 }
}
