/* Custom Migration directory */

.cm-head {
  width: 100%;
  padding: 40px 0 20px;
}

.cm-head .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cm-head_block {
  max-width: 720px;
}

#main-content .cm-head_block h1 {
  margin-bottom: 20px;
  text-align: start;
}

.cm-head h1 span {
  font-weight: 700;
}

.cm-head_block p {
  margin-bottom: 28px;
  color: #182353;
  line-height: 1.5;
}

.cm-filters {
  background: #f1fcff;
  padding: 24px 0;
}

.cm-filters_label {
  margin: 0 0 12px;
  font-weight: 600;
  color: #182353;
}

.cm-filters_list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cm-filter {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #cfe8f1;
  border-radius: 4px;
  background: #fff;
  color: #182353;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.2;
}

.cm-filter:hover,
.cm-filter.is-active {
  border-color: #0596c4;
  color: #0596c4;
}

.cm-listing {
  padding: 40px 0 60px;
}

.cm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

.cm-card {
  background: #fff;
  border: 1px solid #e4eef3;
  border-radius: 6px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cm-card_title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.cm-card_title a {
  color: #182353;
  text-decoration: none;
}

.cm-card_title a:hover {
  color: #0596c4;
}

.cm-card_tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cm-card_tags a {
  display: inline-block;
  padding: 4px 8px;
  background: #f1fcff;
  color: #0596c4;
  font-size: 12px;
  text-decoration: none;
  border-radius: 3px;
}

.cm-card_excerpt {
  margin: 0;
  color: #44506b;
  line-height: 1.45;
  flex-grow: 1;
}

.cm-card_link {
  color: #0596c4;
  font-weight: 600;
  text-decoration: none;
}

.cm-card_link:hover {
  text-decoration: underline;
}

.cm-empty {
  color: #44506b;
}

.cm-single_header {
  padding: 36px 0 20px;
}

.cm-breadcrumb {
  margin: 0 0 12px;
  color: #44506b;
  font-size: 14px;
}

.cm-breadcrumb a {
  color: #0596c4;
  text-decoration: none;
}

.cm-single_header h1 {
  margin: 0 0 16px;
  text-align: start;
}

.cm-single_lead {
  max-width: 760px;
  color: #44506b;
  line-height: 1.5;
  margin: 12px 0 24px;
}

.cm-single_cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.cm-text-link {
  color: #0596c4;
  font-weight: 600;
  text-decoration: underline;
}

.cm-single_body {
  padding: 20px 0 60px;
  background: #f1fcff;
}

.cm-single_body .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 28px;
  align-items: start;
}

.cm-single_content {
  background: #fff;
  border-radius: 6px;
  padding: 28px;
  color: #182353;
  line-height: 1.55;
}

.cm-single_aside {
  background: #fff;
  border-radius: 6px;
  padding: 24px;
}

.cm-single_aside h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.cm-single_aside p {
  margin: 0 0 20px;
  color: #44506b;
  line-height: 1.45;
}

.pair-header .buttons .hero-secondary-link,
.single-supported-cart-header .hero-secondary-link {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

.pair-header .rotator-desc-extra,
.single-supported-cart-header .hero-custom-migration {
  margin-top: 10px;
  display: block;
}

@media (max-width: 900px) {
  .cm-single_body .container {
    grid-template-columns: 1fr;
  }
}
