.communities-page {
  --vinho: #79000d;
  --marfim: #fff0cb;
  --dourado: #c59534;
  --azul: #18273c;
}

.communities-shell { width: min(100%, 1024px); }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.group-symbol {
  display: block;
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.communities-page .history-masthead { height: clamp(104px, 15vw, 155px); }
.communities-page .history-brand-art { width: min(86%, 640px); }
.communities-panel {
  padding: 20px 14px 30px;
  background-image:
    url("assets/paper-grain.svg"),
    radial-gradient(ellipse at 50% 10%, #fff9e8, transparent 68%),
    linear-gradient(90deg, #f5dda6, #fff0cb 18%, #fff2d4 50%, #fff0cb 82%, #f5dda6);
}
.communities-intro {
  position: relative;
  gap: 5px;
  margin-bottom: 18px;
}
.communities-intro h1 {
  margin-inline: 30px;
  font-size: clamp(1.8rem, 7.8vw, 4.5rem);
}
.communities-intro .communities-subtitle {
  max-width: none;
  font-size: clamp(1.05rem, 3.8vw, 1.8rem);
  font-weight: 700;
}
.communities-intro .communities-description {
  max-width: 760px;
  margin: 2px 8px 5px;
  font-size: clamp(1rem, 3.5vw, 1.65rem);
  line-height: 1.3;
}
.communities-intro .intro-people,
.communities-intro .intro-church {
  position: absolute;
  object-fit: contain;
  height: auto;
  pointer-events: none;
}
.communities-intro .intro-people { left: 0; top: 42px; width: clamp(35px, 13vw, 136px); }
.communities-intro .intro-church { right: -8px; top: 22px; width: clamp(48px, 22vw, 226px); opacity: .58; }
.communities-page .community-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.community-column { display: grid; align-content: start; gap: 10px; min-width: 0; }
.communities-page .community-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 11px;
  border: 1px solid #c99b4e;
  border-radius: 19px;
  background: linear-gradient(120deg, rgba(255, 249, 233, .95), rgba(255, 238, 199, .92));
  box-shadow: 0 3px 3px rgba(123, 78, 21, .18), inset 0 1px 0 #fffdf4;
  break-inside: avoid;
}
.communities-page .community-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(190, 126, 52, .45);
  border-radius: 12px;
  color: #fff3d5;
  background: radial-gradient(ellipse at 35% 20%, #a61916, #7e0408 80%);
  box-shadow: inset 0 1px 2px rgba(255, 235, 173, .15);
}
.community-icon .group-symbol { width: 39px; height: 39px; }
.communities-page .community-card h2 {
  margin: 0 0 5px;
  color: var(--vinho);
  font-size: clamp(1.18rem, 4.3vw, 1.6rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.communities-page .community-card p { margin: 0; }
.community-copy { min-width: 0; }
.communities-page .community-detail {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 4px;
  color: #201c1b;
  font: 16px/1.28 var(--body-font);
}
.community-detail .group-symbol {
  width: 17px;
  height: 19px;
  color: var(--vinho);
}
.community-detail ul { margin: 4px 0 0; padding-left: 16px; }
.community-detail li + li { margin-top: 4px; }
.communities-page .community-note {
  margin-top: 4px;
  font: italic 16px/1.3 Georgia, serif;
}
.communities-page .bottom-nav { width: min(100%, 1024px); }
.communities-page .bottom-nav a { font-size: clamp(10px, 2.5vw, 16px); line-height: 1.1; }
.communities-page .bottom-nav .nav-icon { width: 28px; height: 28px; }
.communities-page .bottom-nav a.is-current { color: #f6c82f; }
.communities-page .bottom-nav a.is-current .nav-icon { stroke: #f6c82f; }
.communities-page .bottom-nav a.is-current::after { background: #f6c82f; }

@media (min-width: 780px) {
  .communities-panel { padding-inline: 26px; }
  .communities-page .community-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .communities-page .community-card { grid-template-columns: 66px minmax(0, 1fr); padding: 10px 12px; }
  .communities-page .community-icon { width: 66px; height: 58px; }
  .communities-intro .intro-people { left: 30px; }
  .communities-intro .intro-church { right: -8px; }
}

@media (max-width: 600px) {
  .communities-intro h1 { margin-inline: 42px; }
  .communities-intro .intro-people { top: 38px; width: 38px; }
  .communities-intro .intro-church { top: 30px; width: 65px; right: -10px; opacity: .42; }
}

@media (max-width: 360px) {
  .communities-panel { padding-inline: 10px; }
  .communities-page .community-card { grid-template-columns: 46px minmax(0, 1fr); gap: 9px; padding: 11px 9px; }
  .communities-page .community-icon { width: 46px; height: 50px; }
  .community-icon .group-symbol { width: 33px; height: 33px; }
}
