.rcf-cer-profile,
.rcf-cer-directory {
  --rcf-ink: #25303a;
  --rcf-green: #20c956;
  --rcf-blue: #386fb3;
  box-sizing: border-box;
  width: min(1100px, calc(100% - 32px));
  margin: 32px auto;
  color: var(--rcf-ink);
  font-family: "Neue Haas Grotesk Display", "Helvetica Neue", Arial, sans-serif;
}

.rcf-cer-profile *,
.rcf-cer-directory * {
  box-sizing: border-box;
}

.rcf-cer-profile__hero {
  padding: clamp(26px, 5vw, 48px);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #25303a, #17212c);
}

.rcf-cer-profile__eyebrow {
  color: var(--rcf-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rcf-cer-profile h1 {
  margin: 12px 0 14px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

.rcf-cer-profile__status {
  display: inline-flex;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: #f0f5f8;
  font-size: 14px;
}

.rcf-cer-profile__location {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .78);
}

.rcf-cer-profile__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.rcf-cer-profile__stats > div,
.rcf-cer-profile__card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #e3e9ed;
  border-radius: 18px;
  background: #fff;
}

.rcf-cer-profile__stats > div {
  background: #f4f7f9;
}

.rcf-cer-profile__stats strong {
  display: block;
  color: var(--rcf-blue);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.rcf-cer-profile__stats span,
.rcf-cer-profile__card span {
  display: block;
  margin-top: 7px;
  color: #66727d;
}

.rcf-cer-profile__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rcf-cer-profile__card--wide {
  grid-column: 1 / -1;
}

.rcf-cer-profile__card span {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.rcf-cer-profile__card strong {
  display: block;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.rcf-cer-profile__note {
  margin: 18px 0 0;
  padding: 0 2px;
  color: #68747e;
  font-size: 13px;
  line-height: 1.65;
}

.rcf-cer-profile__note a {
  color: #256943;
}

.rcf-cer-directory__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.rcf-cer-directory__search {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #d7e0e6;
  border-radius: 12px;
  background: #fff;
  color: var(--rcf-ink);
  font: inherit;
}

.rcf-cer-directory__search:focus-visible {
  outline: 3px solid rgba(32, 201, 86, .28);
  border-color: #15803d;
}

.rcf-cer-directory__count {
  margin: 12px 0;
  color: #66727d;
  font-size: 14px;
}

.rcf-cer-directory__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rcf-cer-directory__card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #e1e8ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(37, 48, 58, .05);
}

.rcf-cer-directory__location {
  margin: 0 0 10px;
  color: #237a42;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rcf-cer-directory__card h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.rcf-cer-directory__card h2 a {
  color: var(--rcf-ink);
  text-decoration: none;
}

.rcf-cer-directory__facts {
  margin: 12px 0 20px;
  color: #66727d;
  font-size: 14px;
}

.rcf-cer-directory__link {
  margin-top: auto;
  color: #176b38;
  font-weight: 700;
  text-decoration: none;
}

.rcf-cer-directory__link:hover,
.rcf-cer-directory__card h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rcf-cer-directory__no-results,
.rcf-cer-directory__empty {
  padding: 18px;
  border-radius: 14px;
  background: #f4f7f9;
  color: #59636c;
}

@media (max-width: 850px) {
  .rcf-cer-directory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .rcf-cer-profile__stats,
  .rcf-cer-profile__grid,
  .rcf-cer-directory__grid {
    grid-template-columns: 1fr;
  }

  .rcf-cer-profile__card--wide {
    grid-column: auto;
  }
}
