/*
 * Roar Panther — Search the Stone Knowledge Base
 */

.rp-stone-knowledge {
  --rp-faq-bg: #fcfaf6;
  --rp-faq-text: #29241f;
  --rp-faq-muted: #6d655d;
  --rp-faq-bronze: var(--rp-accent, #a87542);
  --rp-faq-line: rgba(104, 79, 52, 0.14);
  width: 100%;
  overflow: hidden;
  padding-block: clamp(34px, 4.5vh, 58px);
  color: var(--rp-faq-text);
  background:
    radial-gradient(circle at 88% 82%, rgba(226, 207, 179, 0.18), transparent 29%),
    linear-gradient(180deg, #fdfbf8 0%, #fbf7f0 100%);
  font-family: var(--font-sans, "Questrial", sans-serif);
}

.rp-stone-knowledge__container {
  display: grid;
  gap: clamp(16px, 2vh, 24px);
}

.rp-stone-knowledge__header {
  display: grid;
  gap: 10px;
}

.rp-stone-knowledge__eyebrow {
  margin: 0;
  color: var(--rp-faq-bronze);
  font: 500 0.71rem/1.4 var(--font-sans, "Questrial", sans-serif);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.rp-stone-knowledge h2 {
  max-width: 17ch;
  margin: 0;
  color: var(--rp-faq-text);
  font: 300 clamp(2.3rem, 4vw, 5rem)/0.98 var(--font-display, "Questrial", sans-serif);
  letter-spacing: -0.048em;
}

.rp-stone-knowledge__header > p:last-child {
  max-width: 62ch;
  margin: 0;
  color: var(--rp-faq-muted);
  font: 400 0.97rem/1.6 var(--font-sans, "Questrial", sans-serif);
}

.rp-stone-knowledge__search {
  position: relative;
  display: flex;
  align-items: center;
}

.rp-stone-knowledge__search input {
  box-sizing: border-box;
  width: 100%;
  min-height: 68px;
  padding: 16px 104px 16px 22px;
  border: 1px solid rgba(104, 79, 52, 0.17);
  border-radius: 5px;
  outline: 0;
  background: rgba(255, 255, 255, 0.62);
  color: #39332d;
  font: 400 0.95rem/1.4 var(--font-sans, "Questrial", sans-serif);
  box-shadow: 0 8px 20px rgba(77, 55, 34, 0.035);
  transition:
    border-color 230ms ease,
    box-shadow 230ms ease,
    background 230ms ease;
}

.rp-stone-knowledge__search input:focus {
  border-color: rgba(168, 117, 66, 0.68);
  background: #fffdfa;
  box-shadow: 0 0 0 4px rgba(168, 117, 66, 0.08);
}

.rp-stone-knowledge__search input::-webkit-search-cancel-button {
  display: none;
}

.rp-stone-knowledge__search-icon {
  position: absolute;
  right: 22px;
  width: 31px;
  height: 31px;
  color: #96612d;
  pointer-events: none;
}

.rp-stone-knowledge__search-icon svg,
.rp-stone-knowledge__support svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rp-stone-knowledge__clear {
  appearance: none;
  position: absolute;
  right: 65px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(168, 117, 66, 0.08);
  color: #75502c;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.rp-stone-knowledge__clear[hidden] {
  display: none;
}

.rp-stone-knowledge__categories {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.rp-stone-knowledge__categories::-webkit-scrollbar {
  display: none;
}

.rp-stone-knowledge__categories button {
  appearance: none;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid rgba(104, 79, 52, 0.15);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.52);
  color: #403a34;
  cursor: pointer;
  font: 500 0.76rem/1.3 var(--font-sans, "Questrial", sans-serif);
  transition:
    border-color 230ms ease,
    background 230ms ease,
    color 230ms ease,
    transform 230ms ease;
}

.rp-stone-knowledge__categories button:hover {
  border-color: rgba(168, 117, 66, 0.44);
  background: rgba(248, 240, 228, 0.75);
}

.rp-stone-knowledge__categories button.is-active {
  border-color: var(--rp-faq-bronze);
  background: var(--rp-faq-bronze);
  color: #fffdf9;
}

.rp-stone-knowledge__status {
  min-height: 18px;
  margin-top: -8px;
  color: #827970;
  font: 400 0.67rem/1.35 var(--font-sans, "Questrial", sans-serif);
}

.rp-stone-knowledge__accordion {
  border: 1px solid rgba(104, 79, 52, 0.14);
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}

.rp-stone-knowledge__item {
  position: relative;
  border-bottom: 1px solid var(--rp-faq-line);
  background: rgba(255, 255, 255, 0.2);
  transition:
    background 300ms ease,
    opacity 350ms ease,
    transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-stone-knowledge__item:last-child {
  border-bottom: 0;
}

.rp-stone-knowledge__item[hidden] {
  display: none;
}

.rp-stone-knowledge__item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--rp-faq-bronze);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-stone-knowledge__item.is-open {
  background: rgba(248, 239, 225, 0.48);
}

.rp-stone-knowledge__item.is-open::before {
  transform: scaleY(1);
}

.rp-stone-knowledge__item h3 {
  margin: 0;
}

.rp-stone-knowledge__question {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  min-height: 60px;
  padding: 14px 20px 14px 22px;
  border: 0;
  background: transparent;
  color: #332e29;
  cursor: pointer;
  font: 500 0.91rem/1.38 var(--font-sans, "Questrial", sans-serif);
  text-align: left;
}

.rp-stone-knowledge__item.is-open .rp-stone-knowledge__question {
  color: #6f4721;
}

.rp-stone-knowledge__toggle {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.rp-stone-knowledge__toggle i,
.rp-stone-knowledge__toggle b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background: #9a642f;
  transform: translate(-50%, -50%);
  transition:
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 260ms ease;
}

.rp-stone-knowledge__toggle b {
  transform: translate(-50%, -50%) rotate(90deg);
}

.rp-stone-knowledge__item.is-open .rp-stone-knowledge__toggle b {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.rp-stone-knowledge__item.is-open .rp-stone-knowledge__toggle i {
  transform: translate(-50%, -50%) rotate(180deg);
}

.rp-stone-knowledge__answer {
  height: 0;
  overflow: hidden;
  transition: height 370ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-stone-knowledge__answer[hidden] {
  display: none;
}

.rp-stone-knowledge__answer > div {
  padding: 0 62px 17px 22px;
}

.rp-stone-knowledge__answer p {
  max-width: 92ch;
  margin: 0;
  color: #6c645c;
  font: 400 0.8rem/1.62 var(--font-sans, "Questrial", sans-serif);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 290ms ease 70ms,
    transform 330ms cubic-bezier(0.22, 1, 0.36, 1) 70ms;
}

.rp-stone-knowledge__item.is-open .rp-stone-knowledge__answer p {
  opacity: 1;
  transform: translateY(0);
}

.rp-stone-knowledge__item.is-entering {
  animation: rp-faq-row-enter 470ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--rp-faq-index, 0) * 35ms);
}

.rp-stone-knowledge__no-results {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 36px 20px;
  border: 1px solid var(--rp-faq-line);
  background: rgba(255, 255, 255, 0.42);
  text-align: center;
}

.rp-stone-knowledge__no-results[hidden] {
  display: none;
}

.rp-stone-knowledge__no-results h3 {
  margin: 0;
  font: 300 1.55rem/1.15 var(--font-display, "Questrial", sans-serif);
}

.rp-stone-knowledge__no-results p {
  margin: 0;
  color: var(--rp-faq-muted);
  font-size: 0.8rem;
}

.rp-stone-knowledge__no-results > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.rp-stone-knowledge__no-results a,
.rp-stone-knowledge__support > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 43px;
  padding: 10px 17px;
  border: 1px solid rgba(168, 117, 66, 0.6);
  background: var(--rp-faq-bronze);
  color: #fffdf9;
  font: 500 0.71rem/1.3 var(--font-sans, "Questrial", sans-serif);
  text-decoration: none;
}

.rp-stone-knowledge__no-results a + a {
  background: transparent;
  color: #754b24;
}

.rp-stone-knowledge__footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.54fr) minmax(0, 0.46fr);
  align-items: end;
  min-height: 145px;
}

.rp-stone-knowledge__support {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  max-width: 650px;
  min-height: 88px;
  padding: 15px 18px;
  border: 1px solid var(--rp-faq-line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.56);
}

.rp-stone-knowledge__support > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 11px;
  border: 1px solid rgba(168, 117, 66, 0.28);
  border-radius: 50%;
  color: #9b6632;
}

.rp-stone-knowledge__support p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.rp-stone-knowledge__support strong {
  color: #38322d;
  font: 500 0.92rem/1.3 var(--font-sans, "Questrial", sans-serif);
}

.rp-stone-knowledge__support small {
  color: #756d65;
  font: 400 0.74rem/1.35 var(--font-sans, "Questrial", sans-serif);
}

.rp-stone-knowledge__view-all {
  position: absolute;
  bottom: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #815326;
  font: 500 0.67rem/1.3 var(--font-sans, "Questrial", sans-serif);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.rp-stone-knowledge__decoration {
  position: absolute;
  right: -2%;
  bottom: -58px;
  z-index: 1;
  width: min(49vw, 628px);
  margin: 0;
  pointer-events: none;
}

.rp-stone-knowledge__decoration img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
  mix-blend-mode: multiply;
}

.rp-stone-knowledge :focus-visible {
  outline: 2px solid var(--rp-faq-bronze);
  outline-offset: 3px;
}

.rp-stone-knowledge:not(.is-visible) .rp-stone-knowledge__eyebrow,
.rp-stone-knowledge:not(.is-visible) h2,
.rp-stone-knowledge:not(.is-visible) .rp-stone-knowledge__header > p:last-child,
.rp-stone-knowledge:not(.is-visible) .rp-stone-knowledge__search,
.rp-stone-knowledge:not(.is-visible) .rp-stone-knowledge__categories,
.rp-stone-knowledge:not(.is-visible) .rp-stone-knowledge__item,
.rp-stone-knowledge:not(.is-visible) .rp-stone-knowledge__support,
.rp-stone-knowledge:not(.is-visible) .rp-stone-knowledge__decoration {
  opacity: 0;
  transform: translateY(14px);
}

.rp-stone-knowledge__eyebrow,
.rp-stone-knowledge h2,
.rp-stone-knowledge__header > p:last-child,
.rp-stone-knowledge__search,
.rp-stone-knowledge__categories,
.rp-stone-knowledge__item,
.rp-stone-knowledge__support,
.rp-stone-knowledge__decoration {
  transition:
    opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rp-stone-knowledge.is-visible h2 { transition-delay: 60ms; }
.rp-stone-knowledge.is-visible .rp-stone-knowledge__header > p:last-child { transition-delay: 100ms; }
.rp-stone-knowledge.is-visible .rp-stone-knowledge__search { transition-delay: 150ms; }
.rp-stone-knowledge.is-visible .rp-stone-knowledge__categories { transition-delay: 210ms; }
.rp-stone-knowledge.is-visible .rp-stone-knowledge__item:nth-child(1) { transition-delay: 260ms; }
.rp-stone-knowledge.is-visible .rp-stone-knowledge__item:nth-child(2) { transition-delay: 300ms; }
.rp-stone-knowledge.is-visible .rp-stone-knowledge__item:nth-child(3) { transition-delay: 340ms; }
.rp-stone-knowledge.is-visible .rp-stone-knowledge__item:nth-child(4) { transition-delay: 380ms; }
.rp-stone-knowledge.is-visible .rp-stone-knowledge__item:nth-child(5) { transition-delay: 420ms; }
.rp-stone-knowledge.is-visible .rp-stone-knowledge__item:nth-child(6) { transition-delay: 460ms; }
.rp-stone-knowledge.is-visible .rp-stone-knowledge__support { transition-delay: 520ms; }
.rp-stone-knowledge.is-visible .rp-stone-knowledge__decoration { transition-delay: 580ms; }

@keyframes rp-faq-row-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Short laptops, including 1366 × 768. */
@media (min-width: 901px) and (max-height: 850px) {
  .rp-stone-knowledge {
    padding-block: 20px 14px;
  }

  .rp-stone-knowledge__container {
    gap: 12px;
  }

  .rp-stone-knowledge__header {
    gap: 6px;
  }

  .rp-stone-knowledge h2 {
    font-size: clamp(2.05rem, 3.45vw, 3.7rem);
  }

  .rp-stone-knowledge__header > p:last-child {
    font-size: 0.85rem;
  }

  .rp-stone-knowledge__search input {
    min-height: 54px;
  }

  .rp-stone-knowledge__categories button {
    min-height: 40px;
    padding-block: 8px;
  }

  .rp-stone-knowledge__status {
    margin-top: -7px;
  }

  .rp-stone-knowledge__question {
    min-height: 48px;
    padding-block: 10px;
    font-size: 0.82rem;
  }

  .rp-stone-knowledge__answer > div {
    padding-bottom: 12px;
  }

  .rp-stone-knowledge__answer p {
    font-size: 0.73rem;
    line-height: 1.48;
  }

  .rp-stone-knowledge__footer {
    min-height: 105px;
  }

  .rp-stone-knowledge__support {
    min-height: 74px;
    padding-block: 10px;
  }

  .rp-stone-knowledge__decoration {
    bottom: -52px;
    width: min(45vw, 500px);
  }
}

/* Tablet. */
@media (max-width: 900px) {
  .rp-stone-knowledge {
    padding-block: clamp(56px, 8vw, 82px);
  }

  .rp-stone-knowledge h2 {
    max-width: 15ch;
  }

  .rp-stone-knowledge__search input {
    min-height: 62px;
  }

  .rp-stone-knowledge__categories {
    margin-right: calc(var(--rp-container-padding, 20px) * -1);
    padding-right: var(--rp-container-padding, 20px);
  }

  .rp-stone-knowledge__footer {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .rp-stone-knowledge__support {
    max-width: 100%;
  }

  .rp-stone-knowledge__decoration {
    display: none;
  }

  .rp-stone-knowledge__view-all {
    position: static;
    margin-top: 14px;
  }
}

/* Mobile. */
@media (max-width: 640px) {
  .rp-stone-knowledge {
    padding-block: 54px 44px;
  }

  .rp-stone-knowledge__container {
    gap: 16px;
  }

  .rp-stone-knowledge h2 {
    font-size: clamp(2.15rem, 11vw, 3.5rem);
  }

  .rp-stone-knowledge__header > p:last-child {
    font-size: 0.92rem;
  }

  .rp-stone-knowledge__search input {
    min-height: 56px;
    padding-left: 15px;
    padding-right: 92px;
    font-size: 0.88rem;
  }

  .rp-stone-knowledge__search-icon {
    right: 16px;
    width: 27px;
    height: 27px;
  }

  .rp-stone-knowledge__clear {
    right: 54px;
  }

  .rp-stone-knowledge__categories button {
    min-height: 44px;
    padding-inline: 16px;
  }

  .rp-stone-knowledge__status {
    font-size: 0.63rem;
  }

  .rp-stone-knowledge__question {
    min-height: 56px;
    padding: 12px 14px;
    font-size: 0.82rem;
  }

  .rp-stone-knowledge__answer > div {
    padding: 0 42px 15px 14px;
  }

  .rp-stone-knowledge__answer p {
    font-size: 0.76rem;
  }

  .rp-stone-knowledge__support {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .rp-stone-knowledge__support > span {
    width: 42px;
    height: 42px;
    padding: 9px;
  }

  .rp-stone-knowledge__support > a {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
  }

  .rp-stone-knowledge__no-results > div {
    flex-direction: column;
    width: 100%;
  }

  .rp-stone-knowledge__no-results a {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-stone-knowledge *,
  .rp-stone-knowledge *::before,
  .rp-stone-knowledge *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .rp-stone-knowledge__answer {
    transition: none !important;
  }
}
