/* Both church directories share this layer; keep the homepage and readers scoped out. */
body.cth-unified.cth-community-body {
  --cth-u-paper: #fffefb;
  --cth-u-ink: #172e31;
  --cth-u-muted: #758078;
  --cth-u-line: #dfe3d9;
  --cth-u-brand: #2d6958;
  background: #faf9f5;
  color: var(--cth-u-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.cth-unified.cth-community-body .cth-community-page {
  box-sizing: border-box;
  width: min(760px, calc(100% - 40px));
  padding-top: 0;
  padding-inline: 0 !important; /* Override the shared mobile reading gutters. */
}
body.cth-unified.cth-community-body .cth-community-page__header {
  box-sizing: border-box;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 4px;
  min-height: 64px;
  margin: 0 -20px 24px;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e5db;
}
body.cth-unified.cth-community-body .cth-community-page__header h1 {
  margin: 0;
  color: var(--cth-u-ink);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0;
}
body.cth-unified.cth-community-body .cth-community-back {
  color: #315e57;
  font-size: 30px;
  font-weight: 300;
}
body.cth-unified.cth-community-body .cth-title-info-button {
  position: static;
  margin: 0;
  width: 44px;
  height: 44px;
  color: #315e57;
}
body.cth-unified.cth-community-body .cth-community-page__kicker {
  margin: 0 0 7px;
  color: #8b7858;
  font-size: 12px;
  line-height: 1.6;
}
body.cth-unified.cth-community-body .cth-community-page__summary {
  margin: 0 0 22px;
  color: var(--cth-u-muted);
  font-size: 13px;
  line-height: 1.6;
}
body.cth-unified.cth-community-body .cth-community-page__controls {
  display: grid;
  gap: 0;
  margin: 0;
}
body.cth-unified.cth-community-body .cth-community-search {
  box-sizing: border-box;
  gap: 10px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 10px;
  color: #253b30;
}
body.cth-unified.cth-community-body .cth-community-search svg {
  flex: 0 0 18px;
  width: 18px;
  stroke: #6a7c71;
}
body.cth-unified.cth-community-body .cth-community-search input {
  box-sizing: border-box;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  font-size: 14px;
}
body.cth-unified.cth-community-body .cth-community-search input::placeholder { color: #6a7c71; }
body.cth-unified.cth-community-body .cth-community-search:focus-within {
  border-color: var(--cth-u-brand);
  outline: 2px solid var(--cth-u-brand);
  outline-offset: 2px;
  box-shadow: none;
}
body.cth-unified.cth-community-body .cth-community-search input:focus-visible { outline: 0; }
body.cth-unified.cth-community-body .cth-community-sort {
  gap: 0 24px;
  margin-top: 16px;
  padding: 0;
  border-bottom: 1px solid var(--cth-u-line);
}
body.cth-unified.cth-community-body .cth-community-sort button {
  padding: 0;
  color: #788177;
  font-size: 14px;
  font-weight: 500;
}
body.cth-unified.cth-community-body .cth-community-sort button[aria-pressed="true"] {
  color: #245d50;
  box-shadow: inset 0 -2px var(--cth-u-brand);
  font-weight: 650;
}
body.cth-unified.cth-community-body .cth-community-page__columns {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 5px 37px;
  color: #899085;
  font-size: 11px;
  line-height: 1.5;
}
body.cth-unified.cth-community-body .cth-community-page__columns > :last-child { text-align: right; }
body.cth-unified.cth-community-body .cth-community-page__results {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.cth-unified.cth-community-body .cth-community-page__row {
  box-sizing: border-box;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 85px;
  padding: 13px 0;
  border-top: 0;
  border-bottom: 1px solid #e4e6dd;
}
body.cth-unified.cth-community-body .cth-community-page__position {
  color: #9a9e94;
  font: italic 600 17px/1.2 Georgia, serif;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
body.cth-unified.cth-community-body .cth-community-page__position--1 { color: #a98746; font-size: 22px; }
body.cth-unified.cth-community-body .cth-community-page__position--2 { color: #7e8b91; font-size: 20px; }
body.cth-unified.cth-community-body .cth-community-page__position--3 { color: #aa7d59; font-size: 19px; }
body.cth-unified.cth-community-body .cth-community-page__identity { gap: 4px; }
body.cth-unified.cth-community-body .cth-community-page__identity strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body.cth-unified.cth-community-body .cth-community-page__identity span {
  color: #7b8479;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
body.cth-unified.cth-community-body .cth-community-page__count {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  min-width: 45px;
  color: #2c5e50;
  text-align: right;
}
body.cth-unified.cth-community-body .cth-community-page__count strong {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
body.cth-unified.cth-community-body .cth-community-page__count small { font-size: 11px; font-weight: 400; }
body.cth-unified.cth-community-body .cth-community-sort-note {
  margin: 17px 0 0;
  color: #8a8e82;
  font-size: 12px;
  line-height: 1.7;
}
body.cth-unified.cth-community-body .cth-community-page__state {
  box-sizing: border-box;
  min-height: 170px;
  padding: 24px 12px;
  color: var(--cth-u-muted);
  font-size: 13px;
  line-height: 1.7;
}
body.cth-unified.cth-community-body .cth-community-page__state strong { color: #405c50; font-weight: 500; }
body.cth-unified.cth-community-body :is(.cth-community-load-more, .cth-community-page__state button) {
  min-height: 44px;
  padding: 8px 16px;
  background: transparent;
  color: var(--cth-u-brand);
  font-size: 14px;
  font-weight: 500;
}
body.cth-unified.cth-community-body .cth-community-load-more:disabled { opacity: .55; }
body.cth-unified.cth-community-body .cth-community-load-more[hidden] { display: none; }
