/* Local FAQ modal — matches Hudson River Inlay palette */
.hri-faq-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(64, 33, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hri-faq-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.hri-faq-dialog {
  position: relative;
  width: min(720px, 100%);
  height: 60vh;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  background: #ede8e0;
  background-image: url("../images/44443.jpg");
  background-repeat: repeat;
  color: #000;
  box-shadow: 0 12px 40px rgba(64, 33, 0, 0.35);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.hri-faq-overlay.is-open .hri-faq-dialog {
  transform: translateY(0);
}

.hri-faq-header {
  flex: 0 0 auto;
  padding: 28px 48px 14px 32px;
  text-align: center;
  border-bottom: 1px solid #402100;
}

.hri-faq-title-wrap {
  display: inline-block;
  max-width: calc(100% - 8px);
  text-align: center;
}

.hri-faq-title {
  margin: 0;
  display: block;
  font-family: "xr9_Catamaran1", Catamaran, Arial, sans-serif;
  font-weight: bold;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  text-align: center;
}

.hri-faq-rules {
  display: block;
  width: 100%;
  margin: 4px 0 0;
  border: 0;
  border-top: 2px solid #402100;
  border-bottom: 1px solid #402100;
  height: 4px;
  background: transparent;
  box-sizing: content-box;
}

.hri-faq-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #402100;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.hri-faq-close:hover,
.hri-faq-close:focus {
  color: #000;
  outline: none;
}

.hri-faq-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 8px 20px 20px;
  scrollbar-width: thin;
  scrollbar-color: #774e2b #d2dcde;
  text-align: left;
}

.hri-faq-item {
  border-bottom: 1px solid rgba(64, 33, 0, 0.22);
}

.hri-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 16px 8px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: #000;
}

.hri-faq-question > span:first-child {
  flex: 1 1 auto;
  text-align: left;
  font-weight: bold;
}

.hri-faq-question:hover,
.hri-faq-question:focus {
  color: #402100;
  outline: none;
}

.hri-faq-chevron {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid #402100;
  border-bottom: 1.5px solid #402100;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 4px;
}

.hri-faq-item.is-open .hri-faq-chevron {
  transform: rotate(225deg);
  margin-top: 6px;
}

.hri-faq-answer {
  display: none;
  padding: 0 28px 18px 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.55;
  color: #1a1a1a;
  text-align: left;
}

.hri-faq-item.is-open .hri-faq-answer {
  display: block;
}

.hri-faq-answer a {
  color: #402100;
  text-decoration: underline;
  font-weight: bold;
}

.hri-faq-answer img {
  display: block;
  max-width: min(320px, 100%);
  height: auto;
  margin: 14px 0 0;
}

body.hri-faq-locked {
  overflow: hidden;
}

@media (max-width: 560px) {
  .hri-faq-header {
    padding: 24px 40px 12px 18px;
  }

  .hri-faq-body {
    padding: 4px 12px 16px;
  }

  .hri-faq-question {
    font-size: 15px;
    padding: 14px 4px;
  }

  .hri-faq-answer {
    font-size: 14px;
    padding-right: 12px;
  }
}
