/* A quiet project index: type, photography and thin rules, not dashboard cards. */
.community-section {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
  padding-block: clamp(36px, 4.3vw, 64px);
  border-bottom: 1px solid var(--line);
}
.community-content { min-width: 0; }
.community-state { color: var(--secondary); padding-top: 5px; }
.community-state:empty, .review-feedback:empty, .project-description:empty { display: none; }
.community-link, .review-disclosure summary {
  width: fit-content;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--action);
  font: 500 15px/1.4 DM, Arial, sans-serif;
  cursor: pointer;
}
.community-link[hidden], .project-detail [hidden], .review-disclosure[hidden] { display: none; }
.community-link:hover, .review-disclosure summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 24px 18px; }
.project-list:empty { display: none; }
.project-card { background: transparent; border: 0; color: var(--primary); text-align: left; padding: 0; overflow-wrap: anywhere; }
.project-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; background: var(--surface); }
.project-caption { padding-block: 10px 2px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 17px; line-height: 1.3; }
.project-caption > :last-child { color: var(--action); }
.project-card:hover .project-caption > :first-child { text-decoration: underline; text-underline-offset: 4px; }
.community-review { margin: 0; overflow-wrap: anywhere; }
.community-review + .community-review { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.community-stars { color: var(--action); letter-spacing: .08em; line-height: 1; }
.community-review blockquote { margin: 10px 0 7px; white-space: pre-line; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.45; }
.community-review figcaption, .review-note, .project-photo-bar { color: var(--secondary); font-size: 14px; }
.review-disclosure { margin-top: 9px; }
.review-disclosure summary { list-style: none; }
.review-disclosure summary::-webkit-details-marker { display: none; }
.review-disclosure summary::after { content: '+'; font-size: 19px; font-weight: 400; }
.review-disclosure[open] summary::after { content: '−'; }
.review-disclosure form { margin-top: 9px; }
.review-note, .review-fields { margin-bottom: 16px; }
.review-fields { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.review-fields select {
  display: block; width: 100%; min-height: 45px; margin-top: 7px; padding: 10px 12px; font: inherit; font-size: 16px;
  background: #1a1a1a; color: var(--primary); border: 1px solid #505050; border-radius: 4px;
}
.review-disclosure summary:focus-visible, .review-fields select:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }
.review-feedback { margin-top: 12px; font-size: 14px; }
.project-detail {
  width: min(780px, calc(100% - 28px)); max-height: calc(100% - 28px); overflow: auto;
  border: 1px solid var(--line); border-radius: 4px; padding: clamp(16px, 3vw, 34px);
  background: var(--surface); color: var(--primary);
}
.project-detail::backdrop { background: #000c; }
.project-heading, .project-photo-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.project-heading { margin-bottom: 16px; }
.project-heading h2 { font-size: clamp(24px, 3vw, 35px); overflow-wrap: anywhere; }
.project-heading form { flex-shrink: 0; }
.project-image-wrap { background: var(--canvas); display: grid; place-items: center; aspect-ratio: 3/2; max-height: 52vh; }
.project-image-wrap img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.project-photo-error { color: var(--secondary); }
.project-photo-bar { min-height: 42px; }
.project-arrows { display: flex; gap: 2px; }
.project-arrows button { width: 40px; justify-content: center; font-size: 20px; }
.project-description { white-space: pre-line; overflow-wrap: anywhere; margin-top: 6px; }
@media (max-width: 850px) and (min-width: 701px) { .community-section { grid-template-columns: .75fr 1fr; } }
@media (max-width: 700px) {
  .community-section { grid-template-columns: 1fr; gap: 14px; padding-block: 34px; }
  .community-state { padding-top: 0; }
}
@media (max-width: 420px) { .review-fields { grid-template-columns: 1fr; } }
