.community {
  padding: 7rem 8vw;
  background: #f5f3ee;
  color: #111;
  scroll-margin-top: 100px;
}

.community-intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem 7vw;
  align-items: end;
}

.community-intro .eyebrow { grid-column: 1 / -1; margin: 0; }
.community-intro h2 {
  margin: 0;
  font: 900 clamp(3.2rem, 6vw, 5.8rem)/0.9 Inter, Arial, sans-serif;
  letter-spacing: -0.06em;
}
.community-intro > p:last-child { margin: 0; color: #555; font-size: 1.05rem; line-height: 1.75; }

.community-published { margin-top: 5rem; }
.community-subhead { display: flex; align-items: end; justify-content: space-between; gap: 2rem; border-bottom: 3px solid #111; padding-bottom: 1rem; }
.community-subhead h3 { margin: 0.35rem 0 0; font: 900 clamp(2rem, 3vw, 3.2rem)/1 Inter, Arial, sans-serif; letter-spacing: -0.045em; }
.community-subhead .btn { flex: 0 0 auto; }

.review-grid, .community-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.review-card { display: flex; flex-direction: column; min-height: 100%; background: #fff; border: 2px solid #111; box-shadow: 6px 6px 0 #111; overflow: hidden; }
.review-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 2px solid #111; }
.review-card-copy { padding: 1.5rem; }
.review-stars { margin: 0 0 0.7rem; color: #e32320; font-size: 1.15rem; letter-spacing: 0.08em; }
.review-card blockquote { margin: 0; font-size: 1rem; line-height: 1.65; }
.review-card cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 900; }

.community-photo-card { position: relative; margin: 0; overflow: hidden; background: #111; border: 2px solid #111; box-shadow: 6px 6px 0 #e32320; }
.community-photo-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.community-photo-card figcaption { padding: 1rem; color: #fff; line-height: 1.45; }
.community-photo-card figcaption b { display: block; color: #ff5b55; margin-top: 0.35rem; }
.community-empty { grid-column: 1 / -1; margin: 0; padding: 2rem; border: 2px dashed #aaa; color: #666; text-align: center; }

.community-submit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 6rem; }
.community-form { padding: 2rem; background: #fff; border: 2px solid #111; box-shadow: 7px 7px 0 #111; }
.community-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.community-form.photo-form { background: #111; color: #fff; box-shadow: 7px 7px 0 #e32320; }
.community-form h3 { margin: 0.65rem 0 1.5rem; font: 900 2.25rem/1 Inter, Arial, sans-serif; letter-spacing: -0.045em; }
.community-form label, .community-form legend { display: block; font-size: 0.82rem; font-weight: 900; letter-spacing: 0.055em; text-transform: uppercase; }
.community-form label small { font-weight: 700; letter-spacing: 0; text-transform: none; }
.community-form input:not([type="radio"]):not([type="checkbox"]), .community-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.9rem 1rem;
  border: 2px solid currentColor;
  border-radius: 0;
  background: #fff;
  color: #111;
  font: 700 1rem/1.4 Inter, Arial, sans-serif;
}
.community-form textarea { resize: vertical; min-height: 7rem; }
.community-form label + label, .community-form fieldset + label, .community-form label + fieldset { margin-top: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row label + label { margin-top: 0; }
.rating-field { margin: 1.2rem 0 0; padding: 0; border: 0; }
.rating-options { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.55rem; }
.rating-options label { cursor: pointer; }
.rating-options input { position: absolute; opacity: 0; }
.rating-options span { display: block; padding: 0.55rem 0.72rem; border: 2px solid #111; background: #fff; color: #111; }
.rating-options input:checked + span, .rating-options input:focus-visible + span { background: #ffd51f; box-shadow: 3px 3px 0 #111; }
.community-form input[type="file"] { padding: 0.7rem; }
.community-form label > small { display: block; margin-top: 0.45rem; color: #666; line-height: 1.5; }
.photo-form label > small { color: #ccc; }
.consent { display: grid !important; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; margin: 1.35rem 0; font-size: 0.74rem !important; line-height: 1.5; text-transform: none !important; }
.consent input { width: 1.15rem; height: 1.15rem; margin: 0.05rem 0 0; accent-color: #e32320; }
.community-form .btn { width: 100%; }
.form-lede { margin: -0.65rem 0 1.4rem; color: #ccc; line-height: 1.6; }
.form-status { min-height: 1.5rem; margin: 1rem 0 0; font-weight: 800; line-height: 1.45; }
.form-status.success { color: #14833b; }
.photo-form .form-status.success { color: #ffd51f; }
.form-status.error { color: #c81714; }
.photo-form .form-status.error { color: #ff7a75; }

@media (max-width: 900px) {
  .review-grid, .community-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .community { padding: 5rem 6vw; }
  .community-intro, .community-submit-grid { grid-template-columns: 1fr; }
  .community-intro .eyebrow { grid-column: 1; }
  .community-subhead { align-items: stretch; flex-direction: column; }
  .community-subhead .btn { width: 100%; }
  .review-grid, .community-photo-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-row label + label { margin-top: 1.2rem; }
}
