.community-featured {
  padding-block: clamp(42px, 5vw, 72px);
  border-block-end: 1px solid var(--rule);
  background: #f7f3e9;
}
.community-featured h2 { margin-block-end: clamp(14px, 2vw, 24px); font-size: clamp(33px, 3.6vw, 53px); }
.community-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(10px, 1.3vw, 18px);
}
.community-card {
  --community-ink: #72453d;
  --community-line: #b78678;
  --community-wash: #f2e7dc;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(15px, 2vw, 26px);
  border: 1px solid #dcd0bf;
  border-radius: 9px;
  color: var(--ink);
  background: linear-gradient(160deg, var(--community-wash), #fffdf7 66%);
  box-shadow: 0 2px 6px #372a2910;
  text-decoration: none;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.community-card[data-tradition="judaism"] { --community-ink: #455641; --community-line: #8d9780; --community-wash: #ebede0; }
.community-card[data-tradition="islam"] { --community-ink: #375653; --community-line: #749696; --community-wash: #e5eee7; }
.community-card[data-tradition="hinduism"] { --community-ink: #824a2e; --community-line: #b4876c; --community-wash: #f7e9da; }
.community-card[data-tradition="buddhism"] { --community-ink: #6a532d; --community-line: #a68b56; --community-wash: #f5ebd6; }
.community-card[data-tradition="taoism"] { --community-ink: #405758; --community-line: #7f9797; --community-wash: #e8eeea; }
.community-card[data-tradition="confucianism"] { --community-ink: #654867; --community-line: #a084a0; --community-wash: #efe7ef; }
.community-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  color: var(--community-ink);
  font-size: 12px;
  font-weight: 700;
}
.community-kind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
}
.community-kind .icon { width: 14px; height: 14px; fill: #a64b4066; stroke: #8b3c34; }
.community-quote {
  overflow-wrap: anywhere;
  margin-block: 12px 14px;
  font: 400 clamp(22px, 2vw, 29px)/1.28 var(--serif);
  letter-spacing: -.025em;
}
.community-source {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-block-start: auto;
  padding-block-start: 10px;
  border-block-start: 1px solid #dcd0bf;
  overflow-wrap: anywhere;
}
.community-reference { display: block; color: var(--community-ink); font-size: 13px; font-weight: 700; }
.community-edition { display: block; color: var(--muted); font-size: 12px; }
.community-read-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  height: 31px;
  border: 1px solid var(--community-line);
  border-radius: 50%;
  color: var(--community-ink);
}
.community-read-arrow .icon { width: 15px; height: 15px; }
.community-credit {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-block-start: 12px;
  font-size: 12px;
}
.community-portrait {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--community-ink);
  background: var(--community-wash);
  font-size: 11px;
  font-weight: 700;
}
.community-portrait img { position: absolute; inset: 0; border-radius: inherit; }
.community-credit-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 9px; overflow-wrap: anywhere; }
.community-name { font-weight: 700; }
.community-credit time { color: var(--muted); }

@media (min-width: 700px) {
  .community-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .community-quote { margin-block: 15px 20px; }
  .community-card { min-height: 214px; }
}
@media (hover: hover) and (pointer: fine) {
  .community-card:hover {
    border-color: var(--community-line);
    box-shadow: 0 4px 15px #372a2918;
  }
  .community-card:hover .community-reference { text-decoration: underline; }
  .community-card:hover .community-read-arrow { background: var(--community-wash); }
}
