.hbs-br-link {
  color: #6f9eb4;
  text-decoration: none;
  border-bottom: 1px dotted rgba(111, 158, 180, 0.75);
  transition: color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hbs-br-link:hover,
.hbs-br-link:focus,
.hbs-br-link.is-active {
  color: #4f859e;
  border-bottom-color: rgba(79, 133, 158, 0.95);
  box-shadow: inset 0 -0.45em 0 rgba(111, 158, 180, 0.09);
  outline: none;
}

.hbs-br-popup {
  position: absolute;
  z-index: 999999;
  display: none;
  width: min(410px, calc(100vw - 24px));
  background: #fffdfb;
  color: #463d35;
  border: 1px solid #ddd7ca;
  border-radius: 16px;
  box-shadow: 0 20px 55px rgba(25, 27, 29, 0.18);
  overflow: hidden;
  font-family: Georgia, 'Times New Roman', serif;
}

.hbs-br-popup.is-visible { display: block; }

.hbs-br-popup__header {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #e4ded2;
  background: linear-gradient(90deg, rgba(255, 233, 241, 0.92), rgba(255, 249, 226, 0.95));
}

.hbs-br-popup__emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f7efe4;
  color: #f47a07;
  font-size: 14px;
  line-height: 1;
}

.hbs-br-popup__heading { text-align: center; min-width: 0; }
.hbs-br-popup__title { color: #6f9eb4; font-size: 1.08rem; font-weight: 700; line-height: 1.2; }
.hbs-br-popup__subtitle { margin-top: 3px; color: #8f8678; font-size: 0.78rem; letter-spacing: 0.02em; text-transform: uppercase; }

.hbs-br-popup__close,
.hbs-br-popup__copy { appearance: none; border: 0; cursor: pointer; }
.hbs-br-popup__close { width: 30px; height: 30px; border-radius: 999px; background: transparent; color: #a2917a; font-size: 22px; line-height: 1; }
.hbs-br-popup__close:hover,
.hbs-br-popup__close:focus { background: rgba(111, 158, 180, 0.1); color: #6f9eb4; outline: none; }

.hbs-br-popup__content { max-height: 320px; overflow: auto; padding: 16px; font-size: 1.07rem; line-height: 1.65; }
.hbs-br-verse,
.hbs-br-loading,
.hbs-br-error,
.hbs-br-truncated { margin: 0 0 0.8em; }
.hbs-br-verse:last-child,
.hbs-br-loading:last-child,
.hbs-br-error:last-child,
.hbs-br-truncated:last-child { margin-bottom: 0; }
.hbs-br-verse-num { color: #7b7367; font-size: 0.82em; font-weight: 700; margin-right: 0.25em; }
.hbs-br-loading,
.hbs-br-truncated { color: #7b7367; font-style: italic; }
.hbs-br-error { color: #9a5c5c; }

.hbs-br-popup__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 14px;
  border-top: 1px solid #e4ded2;
  background: #f8f5ee;
}
.hbs-br-popup__copy { padding: 7px 12px; border-radius: 999px; background: #7a566e; color: #fffaf2; font-size: 0.84rem; font-weight: 700; }
.hbs-br-popup__copy:hover,
.hbs-br-popup__copy:focus { background: #6f9eb4; color: #fff; outline: none; }
.hbs-br-popup__copy:disabled { cursor: not-allowed; opacity: 0.6; }
.hbs-br-popup__provider { color: #8f8678; font-size: 0.76rem; text-align: right; max-width: 240px; }

@media (max-width: 600px) {
  .hbs-br-popup { width: calc(100vw - 20px); }
  .hbs-br-popup__content { max-height: 50vh; }
  .hbs-br-popup__footer { align-items: flex-start; flex-direction: column; }
  .hbs-br-popup__provider { text-align: left; max-width: none; }
}
