/*
 * CY GEO knowledge-page additions.
 * All rules are scoped to existing page body classes to avoid global regressions.
 */

.cy-product-knowledge-page .geo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.cy-product-knowledge-page .geo-breadcrumb a {
  color: #557083;
  text-decoration: none;
}

.cy-product-knowledge-page .geo-breadcrumb a:hover {
  color: #1768af;
}

.cy-product-knowledge-page .geo-breadcrumb strong {
  color: #28465e;
  font-weight: 600;
}

.cy-product-knowledge-page .geo-page-role {
  margin: 8px 0 0;
  color: #667789;
  font-size: 13px;
  letter-spacing: .03em;
}

.cy-product-knowledge-page .geo-knowledge-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 24px;
  overflow: hidden;
  border: 1px solid #dce5ed;
  border-radius: 8px;
  background: #dce5ed;
}

.cy-product-knowledge-page .geo-knowledge-nav a {
  padding: 12px 10px;
  background: #fff;
  color: #24455f;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.cy-product-knowledge-page .geo-knowledge-nav a:hover,
.cy-product-knowledge-page .geo-knowledge-nav a:focus {
  background: #edf6fd;
  color: #1768af;
}

.cy-product-knowledge-page #product-overview,
.cy-product-knowledge-page #product-details,
.cy-product-knowledge-page #source-verification,
.cy-product-knowledge-page #geo-inquiry {
  scroll-margin-top: 24px;
}

.cy-product-knowledge-page .geo-summary > div {
  grid-template-columns: 112px 1fr;
}

.cy-product-knowledge-page .geo-summary span {
  font-weight: 600;
}

.cy-product-knowledge-page #product-overview {
  padding: 22px;
  border: 1px solid #dce6ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(25, 62, 96, .07);
}

.cy-product-knowledge-page .showproleft .title {
  font-size: 25px;
  line-height: 1.45;
}

.cy-product-knowledge-page .geo-datasheet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #0d63b8;
  border-radius: 6px;
  background: linear-gradient(135deg, #1676ce, #0a559e);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 6px 14px rgba(13, 99, 184, .18);
  transition: transform .18s, box-shadow .18s, background .18s;
}

.cy-product-knowledge-page .geo-datasheet-button:hover,
.cy-product-knowledge-page .geo-datasheet-button:focus {
  background: linear-gradient(135deg, #0d63b8, #084985);
  box-shadow: 0 9px 18px rgba(13, 99, 184, .24);
  transform: translateY(-1px);
}

.cy-product-knowledge-page .geo-knowledge-section {
  margin-top: 4px;
}

.cy-product-knowledge-page .slideTxtBox .hd .arrow {
  display: none;
}

.cy-product-knowledge-page .slideTxtBox .bd .geo-content-block {
  margin: 0;
  padding: 25px 28px 30px;
  min-height: 120px;
  list-style: none;
}

.cy-product-knowledge-page .geo-content-block > :first-child {
  margin-top: 0 !important;
}

.cy-product-knowledge-page .geo-content-block > :last-child {
  margin-bottom: 0 !important;
}

.cy-product-knowledge-page .geo-source-verification {
  margin: 28px 0;
  padding: 25px 28px;
  border: 1px solid #d8e4ed;
  border-radius: 10px;
  background: linear-gradient(145deg, #f7fbfe, #fff);
}

.cy-product-knowledge-page .geo-source-verification__head p {
  margin: 0 0 5px;
  color: #2471ac;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}

.cy-product-knowledge-page .geo-source-verification__head h2 {
  margin: 0;
  color: #173c59;
  font-size: 23px;
  line-height: 1.4;
}

.cy-product-knowledge-page .geo-source-verification__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.cy-product-knowledge-page .geo-source-verification__grid > div {
  padding: 16px 18px;
  border: 1px solid #e1e9f0;
  border-radius: 7px;
  background: #fff;
}

.cy-product-knowledge-page .geo-source-verification__grid strong {
  display: block;
  margin-bottom: 6px;
  color: #234e6d;
}

.cy-product-knowledge-page .geo-source-verification__grid p {
  margin: 0;
  color: #526779;
  line-height: 1.75;
}

.cy-product-knowledge-page .geo-source-rules {
  margin: 18px 0 0;
  padding: 15px 18px 15px 38px;
  border-left: 4px solid #d79a2f;
  background: #fff9ed;
  color: #5a5141;
  line-height: 1.75;
}

.cy-product-knowledge-page .geo-source-rules li + li {
  margin-top: 5px;
}

.cy-product-knowledge-page .geo-help-modules {
  display: grid;
  gap: 20px;
  margin: 28px 0;
}

.cy-product-knowledge-page .geo-help-card {
  overflow: hidden;
  border: 1px solid #d9e5ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 62, 98, .06);
}

.cy-product-knowledge-page .geo-help-card[hidden] {
  display: none !important;
}

.cy-product-knowledge-page .geo-help-card__head {
  padding: 22px 26px 18px;
  border-bottom: 1px solid #e4ebf2;
  background: linear-gradient(135deg, #f0f7fd, #fbfdff);
}

.cy-product-knowledge-page .geo-help-card__head > span {
  display: block;
  margin-bottom: 4px;
  color: #1670bb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}

.cy-product-knowledge-page .geo-help-card__head h2 {
  margin: 0;
  color: #163e5d;
  font-size: 23px;
  line-height: 1.4;
}

.cy-product-knowledge-page .geo-help-card__head p {
  margin: 7px 0 0;
  color: #627688;
  line-height: 1.7;
}

.cy-product-knowledge-page .geo-help-card__body {
  padding: 22px 26px;
  color: #2e4659;
  font-size: 15px;
  line-height: 1.8;
}

.cy-product-knowledge-page .geo-help-card__body > :first-child {
  margin-top: 0 !important;
}

.cy-product-knowledge-page .geo-help-card__body > :last-child {
  margin-bottom: 0 !important;
}

.cy-product-knowledge-page .geo-faq-content p {
  margin: 0;
}

.cy-product-knowledge-page .geo-faq-content .geo-faq-question {
  margin-top: 18px;
  padding: 12px 16px;
  border-left: 4px solid #1972bb;
  background: #f2f8fd;
  color: #0d568e;
  font-weight: 700;
}

.cy-product-knowledge-page .geo-faq-content .geo-faq-question:first-child {
  margin-top: 0;
}

.cy-product-knowledge-page .geo-faq-content .geo-faq-answer {
  padding: 10px 16px 2px;
  color: #425b6e;
}

.cy-product-knowledge-page .geo-support-content table {
  width: 100%;
  margin: 18px 0 0;
  border-collapse: collapse;
}

.cy-product-knowledge-page .geo-support-content td,
.cy-product-knowledge-page .geo-support-content th {
  padding: 12px 14px;
  border: 1px solid #dfe7ee;
  text-align: left;
  vertical-align: top;
}

.cy-product-knowledge-page .geo-support-content tr:nth-child(odd) {
  background: #f7fafc;
}

.cy-product-knowledge-page .geo-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 26px 24px;
}

.cy-product-knowledge-page .geo-help-actions a {
  display: inline-flex;
  min-height: 44px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
}

.cy-product-knowledge-page .geo-datasheet-button--large {
  min-height: 44px;
  padding: 0 20px;
}

.cy-product-knowledge-page .geo-support-inquiry {
  border: 1px solid #0d63b8;
  background: #fff;
  color: #0d63b8;
}

.cy-product-knowledge-page .geo-support-phone {
  border: 1px solid #d8e1e9;
  background: #f7f9fb;
  color: #38556c;
}

.detail-article-page .geo-article-models {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 4px 16px;
  margin: 18px 0 22px;
  padding: 16px 18px;
  border: 1px solid #dbe5ed;
  border-left: 4px solid #2370ad;
  border-radius: 6px;
  background: #f7fafc;
}

.detail-article-page .geo-article-models > span {
  grid-row: 1 / span 2;
  color: #52697b;
  font-weight: 600;
}

.detail-article-page .geo-article-models > strong {
  color: #173e5d;
  font-size: 17px;
}

.detail-article-page .geo-article-models > p {
  margin: 2px 0 0;
  color: #637586;
  line-height: 1.65;
}

.detail-article-page .geo-article-basis {
  margin: 28px 0;
  padding: 22px 25px;
  border: 1px solid #eadfc8;
  border-radius: 8px;
  background: #fffbf3;
}

.detail-article-page .geo-article-basis > span {
  color: #9a6a21;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}

.detail-article-page .geo-article-basis h2 {
  margin: 5px 0 10px;
  color: #4a3b27;
  font-size: 21px;
}

.detail-article-page .geo-article-basis p,
.detail-article-page .geo-article-basis ul {
  color: #645a4b;
  line-height: 1.75;
}

.detail-article-page .geo-article-basis p {
  margin: 0;
}

.detail-article-page .geo-article-basis ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.cy-product-list-page .met_module3_list ul.lists_1 li.geo-product-card {
  height: auto;
  min-height: 0;
}

.cy-product-list-page .met_module3_list ul.lists_1 li.geo-product-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cy-product-list-page .geo-product-card .product_detail {
  position: static;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 230px;
  padding: 18px;
  box-sizing: border-box;
}

.cy-product-list-page .geo-product-card__type {
  display: block;
  height: auto;
  min-height: 19px;
  margin: 0 0 7px;
  color: #2672aa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}

.cy-product-list-page .geo-product-card .product_detail h2 {
  display: -webkit-box;
  overflow: hidden;
  height: 54px;
  min-height: 54px;
  margin: 0;
  color: #163d5b;
  font-size: 19px;
  line-height: 27px;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cy-product-list-page .geo-product-card__title {
  display: -webkit-box;
  overflow: hidden;
  height: 44px;
  min-height: 44px;
  margin: 7px 0 0;
  color: #526779;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cy-product-list-page .geo-product-card__summary {
  display: -webkit-box;
  overflow: hidden;
  height: 40px;
  min-height: 40px;
  margin: 9px 0 0;
  color: #71808d;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cy-product-list-page .geo-product-card__link {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #e8eef3;
  color: #1768af;
  font-size: 13px;
  font-weight: 700;
}

.cy-product-list-page .geo-product-card__link i {
  position: static;
  color: inherit;
  font-style: normal;
}

@media only screen and (max-width: 850px) {
  .cy-product-knowledge-page .geo-knowledge-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cy-product-knowledge-page .geo-summary > div {
    grid-template-columns: 96px 1fr;
  }

  .cy-product-knowledge-page .geo-source-verification__grid {
    grid-template-columns: 1fr;
  }

  .cy-product-knowledge-page #product-overview {
    padding: 17px;
  }

  .detail-article-page .geo-article-models {
    grid-template-columns: 1fr;
  }

  .detail-article-page .geo-article-models > span {
    grid-row: auto;
  }
}

@media only screen and (max-width: 600px) {
  .cy-product-knowledge-page .geo-knowledge-nav a {
    padding: 11px 8px;
    font-size: 13px;
  }

  .cy-product-knowledge-page .slideTxtBox .bd .geo-content-block,
  .cy-product-knowledge-page .geo-source-verification,
  .cy-product-knowledge-page .geo-help-card__head,
  .cy-product-knowledge-page .geo-help-card__body {
    padding: 18px;
  }

  .cy-product-knowledge-page .geo-source-verification__head h2 {
    font-size: 20px;
  }

  .cy-product-list-page .met_module3_list ul.lists_1 li.geo-product-card {
    min-height: 0;
  }

  .cy-product-list-page .geo-product-card .product_detail {
    min-height: 178px;
    padding: 13px;
  }

  .cy-product-list-page .geo-product-card__type,
  .cy-product-list-page .geo-product-card__title,
  .cy-product-list-page .geo-product-card__link {
    display: flex;
  }

  .cy-product-list-page .geo-product-card .product_detail h2 {
    height: 60px;
    min-height: 60px;
    font-size: 14px;
    line-height: 20px;
    -webkit-line-clamp: 3;
  }

  .cy-product-list-page .geo-product-card__title {
    height: 40px;
    min-height: 40px;
    font-size: 13px;
    line-height: 20px;
  }

  .cy-product-list-page .geo-product-card__summary {
    display: none;
  }

  .cy-product-list-page .geo-product-card__link {
    height: auto;
    min-height: 24px;
    font-size: 12px;
  }

  .cy-product-list-page .geo-product-card__link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cy-product-knowledge-page .geo-help-actions {
    padding: 0 18px 20px;
  }

  .cy-product-knowledge-page .geo-help-actions a {
    width: 100%;
  }
}
