/* Guarantee core topic page. */
.bh-core-page {
  padding: 42px 0 60px;
  color: #293341;
  background: #f5f7fa;
}

.bh-core-page,
.bh-core-page * {
  box-sizing: border-box;
}

.bh-core-hero {
  display: flex;
  gap: 38px;
  padding: 34px;
  border: 1px solid #e6ebf1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(22, 48, 71, 0.08);
}

.bh-core-media {
  position: relative;
  flex: 0 0 38%;
  min-height: 330px;
  overflow: hidden;
  border-radius: 10px;
  background: #153e59;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.bh-core-media::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.08));
  content: "";
  pointer-events: none;
}

.bh-core-media iframe,
.bh-core-media video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.bh-core-overview {
  min-width: 0;
  flex: 1;
}

.bh-core-heading {
  padding-bottom: 15px;
  border-bottom: 1px solid #e8edf2;
}

.bh-core-heading span,
.bh-core-section-title span {
  display: block;
  margin-bottom: 5px;
  color: #a98545;
  font: 12px/1.4 Arial, sans-serif;
  letter-spacing: 2px;
}

.bh-core-heading h1 {
  margin: 0;
  color: #173f5b;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.45;
}

.bh-core-summary {
  min-height: 86px;
  padding: 16px 0 12px;
  color: #5a6572;
  font-size: 15px;
  line-height: 1.9;
}

.bh-core-summary p {
  margin: 0;
}

.bh-core-categories {
  border-top: 1px solid #edf0f4;
}

.bh-core-category-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 55px;
  padding: 9px 0;
  border-bottom: 1px solid #edf0f4;
}

.bh-core-category-label {
  flex: 0 0 74px;
  padding-top: 8px;
  color: #34495a;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
}

.bh-core-category-links {
  display: flex;
  min-width: 0;
  max-height: 38px;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
  overflow: hidden;
}

.bh-core-category-links a,
.bh-core-modal-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border: 1px solid #dce6ed;
  border-radius: 5px;
  color: #315267;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
  background: #f4f8fa;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.bh-core-category-links a:hover,
.bh-core-modal-links a:hover {
  border-color: #1d6888;
  color: #fff;
  background: #1d6888;
  transform: translateY(-1px);
}

.bh-core-more {
  min-width: 58px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-size: 13px;
  line-height: 36px;
  cursor: pointer;
  background: #1d6888;
}

.bh-core-more:hover {
  background: #164f69;
}

.bh-core-more[hidden] {
  display: none;
}

.bh-core-section {
  margin-top: 28px;
  padding: 32px 36px 38px;
  border: 1px solid #e6ebf1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(22, 48, 71, 0.06);
}

.bh-core-section-title {
  position: relative;
  margin-bottom: 25px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8edf2;
}

.bh-core-section-title::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 72px;
  height: 3px;
  background: #1d6888;
  content: "";
}

.bh-core-section-title h2 {
  margin: 0;
  color: #173f5b;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.45;
}

.bh-core-guide,
.bh-core-content {
  color: #4b5866;
  font-size: 15px;
  line-height: 1.9;
}

.bh-core-guide img,
.bh-core-content img {
  max-width: 100%;
  height: auto !important;
}

.bh-core-guide table,
.bh-core-content table {
  width: 100% !important;
}

.bh-core-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bh-core-modal.is-open {
  display: flex;
}

.bh-core-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 24, 35, 0.68);
}

.bh-core-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 92vw);
  max-height: 78vh;
  overflow: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.bh-core-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e8edf2;
  background: #fff;
}

.bh-core-modal-head h3 {
  margin: 0;
  color: #173f5b;
  font-size: 20px;
}

.bh-core-modal-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #647382;
  font-size: 26px;
  line-height: 32px;
  cursor: pointer;
  background: #f0f3f6;
}

.bh-core-modal-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 24px;
}

body.bh-core-modal-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .bh-core-page {
    padding: 20px 0 35px;
  }

  .bh-core-page > .container {
    width: auto;
    margin: 0 12px;
  }

  .bh-core-hero {
    display: block;
    padding: 14px;
    border-radius: 9px;
  }

  .bh-core-media {
    width: 100%;
    min-height: 0;
    margin-bottom: 20px;
    padding-top: 62.5%;
    border-radius: 7px;
  }

  .bh-core-heading h1 {
    font-size: 22px;
  }

  .bh-core-summary {
    min-height: 0;
    font-size: 14px;
    line-height: 1.8;
  }

  .bh-core-category-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 50px;
  }

  .bh-core-category-label {
    padding-top: 7px;
    font-size: 14px;
  }

  .bh-core-category-links {
    max-height: 80px;
    gap: 7px;
  }

  .bh-core-category-links a,
  .bh-core-modal-links a {
    min-height: 35px;
    padding: 7px 11px;
    font-size: 13px;
  }

  .bh-core-section {
    margin-top: 18px;
    padding: 22px 15px 25px;
    border-radius: 9px;
  }

  .bh-core-section-title {
    margin-bottom: 18px;
  }

  .bh-core-section-title h2 {
    font-size: 20px;
  }

  .bh-core-guide,
  .bh-core-content {
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.8;
    -webkit-overflow-scrolling: touch;
  }

  .bh-core-modal-dialog {
    width: 94vw;
    max-height: 82vh;
  }

  .bh-core-modal-head {
    padding: 15px 16px;
  }

  .bh-core-modal-head h3 {
    font-size: 18px;
  }

  .bh-core-modal-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 16px;
  }
}
