/* Content comes first. Keep the established purple brand and mobile navigation. */
.community-hero {
  padding: 34px 32px 30px;
  border-bottom: 1px solid var(--line);
}
.community-hero .hero-inner {
  max-width: 1100px;
  margin: auto;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 36px;
  align-items: center;
}
.community-hero .eyebrow {
  margin-bottom: 12px;
}
.community-hero h1 {
  font-size: clamp(29px, 3.4vw, 43px);
  line-height: 1.14;
  max-width: 750px;
  letter-spacing: -1.5px;
}
.community-hero .subtitle {
  margin-top: 14px;
  font-size: 17px;
  max-width: 640px;
}
.hero-share .button {
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  min-height: 48px;
  width: 100%;
}
.hero-share p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 10px;
}
.community-hero .hero-stats {
  max-width: 1100px;
  margin: 20px auto 0;
}
.community-layout {
  max-width: 1164px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  padding-top: 24px;
}
.community-stream {
  min-width: 0;
}
.community-stream .toolbar {
  margin: 0 0 14px;
  gap: 12px;
}
.community-stream .chips {
  margin-bottom: 18px;
}
.projects-grid.feed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.community-post {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  overflow: hidden;
}
.post-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
}
.post-author .card-author {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.post-author .card-author > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.post-author strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}
.post-author small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
  line-height: 1.5;
}
.post-author .rank {
  position: static;
  background: var(--soft);
  color: var(--primary);
  font-size: 13px;
  padding: 5px 8px;
  border-radius: 8px;
}
.community-post .card-body {
  padding: 15px 20px 18px;
}
.community-post h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  overflow-wrap: anywhere;
}
.community-post .card-summary {
  font-size: 15px;
  line-height: 1.6;
  min-height: 0;
  max-height: none;
  -webkit-line-clamp: 3;
  margin: 10px 0 12px;
}
.community-post .tool-badges {
  margin: 0;
}
.community-post .project-cover {
  height: auto;
  aspect-ratio: auto;
  border-radius: 0;
  border-top: 1px solid var(--line);
  background: var(--soft);
  display: block;
}
.community-post .project-cover img {
  display: block;
  width: 100%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
}
.post-video {
  display: block;
  width: 100%;
  max-height: 400px;
  background: #151127;
}
.post-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}
.post-actions .button {
  font-size: 12px;
  padding: 8px 10px;
  gap: 6px;
  min-height: 34px;
}
.post-actions svg {
  width: 16px;
  height: 16px;
}
.post-actions .active {
  background: var(--soft);
  border-color: var(--primary);
  color: var(--primary);
}
.how-made {
  font-size: 12px;
  color: var(--primary);
  margin-left: auto;
  line-height: 1.6;
}
.community-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
}
.community-sidebar .panel {
  padding: 22px;
}
.community-sidebar .eyebrow {
  font-size: 10px;
  margin-bottom: 12px;
}
.community-sidebar h2 {
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.community-sidebar p {
  font-size: 13px;
  line-height: 1.7;
}
.share-prompts {
  display: grid;
  gap: 0;
  margin: 18px 0;
}
.share-prompts a {
  font-size: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.share-prompts span {
  color: var(--primary);
}
.community-note .text-button {
  margin-top: 15px;
  display: inline-block;
}
.community-stream .empty-state {
  padding: 30px 24px;
  margin-top: 0;
}
.community-stream .empty-state .empty-mark {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}
.community-stream .empty-state h2 {
  font-size: 26px;
}
.community-stream .empty-state p {
  font-size: 15px;
}
.quick-share-wrap {
  max-width: 820px;
}
.quick-share-wrap .page-head h1 {
  font-size: clamp(25px, 4.4vw, 36px);
  line-height: 1.2;
}
.quick-details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 17px;
}
.quick-details summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.quick-details[open] > .form-stack {
  margin-top: 18px;
}
.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.quick-share-wrap textarea[name='description'] {
  min-height: 150px;
}
#comments,
#how-i-made-it {
  scroll-margin-top: 110px;
}
@media (min-width: 651px) {
  .projects-grid:not(.feed-grid) {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}
@media (max-width: 950px) {
  .community-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .community-sidebar {
    display: none;
  }
  .community-hero .hero-inner {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 22px;
  }
  .community-hero {
    padding: 27px 28px;
  }
  .community-hero h1 {
    font-size: 34px;
  }
}
@media (max-width: 650px) {
  .community-hero {
    padding: 25px 18px 22px;
  }
  .community-hero .hero-inner {
    display: block;
  }
  .community-hero .eyebrow {
    font-size: 10px;
    margin-bottom: 10px;
  }
  .community-hero h1 {
    font-size: 31px;
    letter-spacing: -1px;
    max-width: none;
  }
  .community-hero .subtitle {
    font-size: 15px;
    line-height: 1.5;
    margin-top: 10px;
  }
  .hero-share {
    margin-top: 16px;
  }
  .hero-share .button {
    width: auto;
    max-width: 100%;
    font-size: 13px;
    padding: 11px 17px;
    min-height: 0;
  }
  .hero-share p {
    font-size: 11px;
    max-width: 330px;
    margin-top: 8px;
  }
  .community-layout {
    display: block;
    padding: 18px 14px 30px;
  }
  .community-stream .chips {
    margin-right: 0;
    padding-right: 0;
  }
  .community-stream .tabs {
    gap: 7px;
  }
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .projects-grid.feed-grid {
    gap: 14px;
  }
  .community-post {
    border-radius: 15px;
  }
  .post-author {
    padding: 15px 15px 0;
  }
  .post-author .avatar {
    width: 30px;
    height: 30px;
  }
  .community-post .card-body {
    padding: 14px 15px 16px;
  }
  .community-post h3 {
    font-size: 20px;
  }
  .community-post .card-summary {
    font-size: 14px;
  }
  .post-actions {
    padding: 12px;
    gap: 6px;
  }
  .post-actions .button {
    padding: 7px 8px;
    font-size: 11px;
  }
  .post-actions .action-label {
    display: none;
  }
  .how-made {
    font-size: 11px;
  }
  .community-post .project-cover img {
    max-height: 320px;
  }
  .community-stream .empty-state {
    padding: 27px 18px;
  }
  .community-stream .empty-state h2 {
    font-size: 23px;
  }
  .quick-share-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .quick-share-wrap .panel {
    padding: 19px;
  }
  .quick-share-wrap .page-head h1 {
    font-size: 27px;
  }
  .quick-actions .button {
    font-size: 13px;
  }
  .quick-share-wrap .checkbox {
    font-size: 13px;
  }
  .quick-share-wrap .form-grid {
    gap: 16px;
  }
}
