.m4-candidates {
  padding-top: 20px;
  padding-bottom: 40px;
  color: #171827;
  overflow-wrap: anywhere;
}
.m4-private {
  background: #fff6e8;
  border: 1px solid #e6c997;
  border-radius: 12px;
  padding: 16px;
  color: #60420e;
  font-size: 14px;
  line-height: 1.8;
}
.m4-local-nav,
.m4-genre-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.m4-local-nav a,
.m4-genre-nav a {
  padding: 10px 15px;
  border: 1px solid #dde2ef;
  border-radius: 10px;
  background: white;
  font-weight: 650;
}
.m4-candidates section {
  margin: 32px 0;
}
.m4-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.m4-section-heading span,
.m4-muted {
  font-size: 13px;
  color: #535d73;
}
.m4-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.m4-service-card {
  background: white;
  border: 1px solid #e2e6f0;
  border-radius: 15px;
  box-shadow: 0 6px 24px #1b2c5d08;
  overflow: hidden;
}
.m4-service-card img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  display: block;
}
.m4-featured-image {
  max-width: 860px;
  margin: 24px auto;
}
.m4-featured-image img {
  display: block;
  width: 100%;
  height: auto;
}
.m4-featured-image figcaption {
  font-size: 13px;
  color: #52627b;
}
.m4-service-card > div {
  padding: 20px;
}
.m4-service-card h2,
.m4-service-card h3 {
  font-size: 21px;
  margin: 12px 0;
  line-height: 1.6;
}
.m4-badge {
  display: inline-block;
  border-radius: 7px;
  background: #eeefff;
  color: #443291;
  font-size: 12px;
  padding: 5px 8px;
}
.m4-search {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 14px;
  align-items: end;
  background: #f6f7fb;
  border-radius: 14px;
  padding: 20px;
  margin: 22px 0;
}
.m4-search label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.m4-search input,
.m4-search select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #ced7e9;
  border-radius: 8px;
  padding: 10px;
  background: white;
  min-width: 0;
  color: #171827;
}
.m4-facts {
  background: #f7f8fc;
  border: 1px solid #e1e5f1;
  border-radius: 13px;
  overflow: hidden;
}
.m4-facts > div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #e1e5f1;
}
.m4-facts > div:last-child {
  border: 0;
}
.m4-facts dt {
  font-weight: 700;
}
.m4-facts dd {
  margin: 0;
  line-height: 1.8;
}
.m4-observations {
  padding: 0;
  list-style: none;
}
.m4-observations > li {
  padding: 18px;
  border: 1px solid #e1e5ef;
  margin-bottom: 12px;
  border-radius: 12px;
}
.m4-observations details {
  margin-top: 12px;
}
.m4-observations summary {
  cursor: pointer;
  font-size: 14px;
}
.m4-observations blockquote {
  margin: 12px 0;
  background: #f5f6fc;
  padding: 14px;
  font-size: 14px;
}
.m4-article {
  max-width: 850px;
  margin: 30px auto;
  font-size: 16px;
  line-height: 2;
}
.m4-article h2 {
  font-size: 25px;
  margin: 38px 0 18px;
  line-height: 1.6;
}
.m4-article h3 {
  font-size: 21px;
}
.m4-article .article-toc {
  margin: 28px 0;
  padding: 20px 24px;
  background: #f4f5ff;
  border-radius: 12px;
}
.m4-article pre {
  padding: 20px;
  border: 1px solid #d9dff4;
  border-radius: 10px;
  background: #f7f8fc;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.9;
}
.m4-article table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.m4-article th,
.m4-article td {
  padding: 12px;
  border: 1px solid #d9dff4;
  text-align: left;
  vertical-align: top;
}
.m4-article th {
  background: #f4f5ff;
}
.acg-contact input:not([type="checkbox"]),
.acg-contact textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #aeb9d1;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: #171827;
  font: inherit;
}
.acg-contact label { font-weight: 600; }
.acg-contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.acg-contact button { white-space: normal; }
.m4-article .notice {
  background: #f4f5ff;
  padding: 18px;
  border-radius: 10px;
  border: 1px solid #d9dff4;
}
.m4-article li {
  margin-bottom: 14px;
}
.m4-article small {
  font-size: 12px;
  color: #535d73;
}
.m4-review-links {
  padding: 22px;
  background: #f5f3ff;
  border-radius: 14px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.m4-review-links h2,
.m4-review-links p {
  flex-basis: 100%;
  margin: 0;
}
.m4-policies {
  padding: 24px;
  border: 1px solid #e1e5ef;
  border-radius: 14px;
}
.m4-policies nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.m4-readiness-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.m4-readiness-metrics p {
  background: #f4f5ff;
  border-radius: 12px;
  padding: 18px;
}
.m4-readiness-metrics strong {
  display: block;
  font-size: 30px;
  color: #4d36a8;
}
.m4-blockers {
  line-height: 1.9;
}
.m4-empty {
  padding: 30px;
  background: #f5f6fc;
  border-radius: 12px;
}
.m4-candidates .cj-banner {
  margin-top: 20px;
}
.m4-candidates .cj-comparison td {
  vertical-align: top;
}
.m4-candidates .cg-button {
  color: white;
}
@media (max-width: 900px) {
  .m4-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .m4-search {
    grid-template-columns: 1fr 1fr;
  }
  .m4-search button {
    grid-column: 1/-1;
  }
  .m4-facts > div {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}
@media (max-width: 600px) {
  .m4-grid {
    grid-template-columns: 1fr;
  }
  .m4-search {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .m4-facts > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .m4-readiness-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .m4-article {
    font-size: 15px;
  }
  .m4-article h2 {
    font-size: 22px;
  }
  .m4-policies {
    padding: 17px;
  }
  .m4-service-card img {
    height: 150px;
  }
  .m4-private {
    padding: 12px;
  }
  .m4-local-nav a,
  .m4-genre-nav a {
    font-size: 13px;
    padding: 9px 12px;
  }
}
.m4-primary-conditions {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #dddfea;
  border-radius: 0.75rem;
  overflow-wrap: anywhere;
}
.m4-primary-conditions summary {
  cursor: pointer;
  font-weight: 700;
}
.m4-primary-conditions blockquote {
  margin: 1rem 0;
  padding: 0.75rem;
  background: #f6f7fb;
}
