.rp-faq {
  --faq-accent: #fc0;
  --faq-surface: #f5f5f5;
}
.rp-faq section[id], .rp-faq details[id] { scroll-margin-top: 8px; }

.faq-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
}

.faq-hero-photo, .faq-hero::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.faq-hero-photo { object-fit: cover; object-position: 66% 50%; }
.faq-hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(0deg, #090909 0%, #09090958 25%, transparent 65%),
    linear-gradient(90deg, #090909 0%, #090909e8 25%, #09090982 54%, #09090908 86%);
}
.faq-hero:dir(rtl) .faq-hero-photo { transform: scaleX(-1); }
.faq-hero:dir(rtl)::after { transform: scaleX(-1); }

.faq-hero > .rp-wrap {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-block-size: clamp(540px, calc(100svh - var(--header-height)), 810px);
  padding-block-start: clamp(22px, 3.8vh, 46px);
}
.faq-hero .rp-breadcrumb { align-self: start; margin: 0; font-size: 12px; }
.faq-hero-copy { width: min(100%, 820px); align-self: center; padding-block: clamp(40px, 7vh, 88px); }
.rp-faq .faq-hero h1 {
  max-inline-size: 10em;
  font-size: clamp(56px, 6.5vw, 106px);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.faq-hero-copy > p { max-inline-size: 49ch; margin-block-start: 21px; font-size: clamp(15px, 1.25vw, 19px); }

.faq-hero .rp-faq-search { max-inline-size: 610px; margin-block-start: clamp(27px, 4vw, 42px); }
.faq-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.faq-search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  background: white;
  color: #181818;
  box-shadow: 0 12px 38px #0004;
}
.faq-search-field:focus-within { outline: 2px solid var(--faq-accent); outline-offset: 4px; }
.faq-search-icon {
  position: relative;
  inline-size: 16px;
  block-size: 16px;
  margin-inline: 21px 6px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}
.faq-search-icon::after {
  content: "";
  position: absolute;
  inline-size: 7px;
  block-size: 1.6px;
  inset: auto -5px -2px auto;
  background: currentColor;
  transform: rotate(47deg);
}
.faq-search-field input {
  inline-size: 100%;
  min-inline-size: 0;
  block-size: 61px;
  padding-inline: 12px;
  line-height: 1.4;
  color: #171717;
  background: transparent;
  border: 0;
  font-size: 16px;
  border-radius: 0;
}
.faq-search-field input:focus-visible { outline: none; }
.faq-search-field input::placeholder { color: #636363; }
.faq-search-submit {
  min-block-size: 49px;
  margin-inline-end: 6px;
  padding: 8px clamp(15px, 2vw, 27px);
  color: #080808;
  background: var(--faq-accent);
  font-weight: 700;
  font-size: 13px;
  transition: background .18s, color .18s;
}
.faq-search-submit:hover { background: #151515; color: white; }
.faq-search-submit:focus-visible { outline: 2px solid #151515; outline-offset: -4px; }
.faq-search-submit:hover:focus-visible { outline-color: white; }

.faq-hero-links {
  display: flex;
  justify-content: space-between;
  gap: 14px 28px;
  border-top: 1px solid #fff5;
  padding-block: 16px 19px;
  font-size: 13px;
  font-weight: 620;
}
.faq-hero-links a { display: flex; gap: 17px; align-items: center; min-block-size: 42px; }
.faq-hero-links span { color: var(--faq-accent); font-size: 19px; transition: transform .2s; }
.faq-hero-links a:hover span { transform: translateY(3px); }
.faq-hero-links a:last-child:hover span { transform: translateY(-3px); }

.faq-categories {
  padding-block: clamp(32px, 5vw, 68px);
  background: #131313;
}
.rp-faq .faq-categories h2 {
  margin-block-end: clamp(17px, 2.1vw, 28px);
  font-size: clamp(23px, 2.7vw, 40px);
}
.faq-categories nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.faq-topic {
  isolation: isolate;
  position: relative;
  display: grid;
  align-content: end;
  min-block-size: clamp(84px, 8.1vw, 123px);
  padding: 15px clamp(12px, 1.55vw, 23px);
  text-align: start;
  background: #272727;
  overflow: clip;
  color: #fff;
}
.faq-topic img, .faq-topic::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.faq-topic img { object-fit: cover; opacity: .7; transition: opacity .22s, transform .32s; }
.faq-topic::before {
  content: "";
  z-index: 0;
  background: linear-gradient(0deg, #080808 4%, #10101070 68%, #14141408),
    linear-gradient(90deg, #14141494, transparent 85%);
  pointer-events: none;
}
.faq-topic:dir(rtl)::before { transform: scaleX(-1); }
.faq-topic:hover img, .faq-topic[aria-pressed="true"] img { opacity: 1; }
.faq-topic:hover img { transform: scale(1.045); }
.faq-topic-copy { z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 7px 14px; }
.faq-topic-copy strong { font-size: clamp(13px, 1.28vw, 19px); font-weight: 710; line-height: 1.24; overflow-wrap: anywhere; }
.faq-topic-copy > span { color: #e3e3e3; font-size: 12px; font-variant-numeric: tabular-nums; }
.faq-topic[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  z-index: 2;
  background: var(--faq-accent);
}
.faq-topic[aria-pressed="true"] .faq-topic-copy > span { color: var(--faq-accent); }
.faq-topic[data-rp-faq-group=""]::before { background: none; }
.faq-topic[data-rp-faq-group=""][aria-pressed="true"] { color: #111; background: var(--faq-accent); }
.faq-topic[data-rp-faq-group=""][aria-pressed="true"] .faq-topic-copy > span { color: #3f3200; }
.faq-topic:focus-visible { outline: 2px solid white; outline-offset: -5px; }
.faq-topic[data-rp-faq-group=""][aria-pressed="true"]:focus-visible { outline-color: #151515; }

.faq-questions { padding-block: clamp(34px, 5vw, 78px); }
.faq-results {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-block-size: 44px;
  padding-block-end: 12px;
  margin-block-end: 12px;
}
.faq-results > p {
  font-size: 13px;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
}
.faq-results .rp-link { font-weight: 650; }
.faq-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 32px);
}
.faq-answer-grid[data-visible-groups="1"] { grid-template-columns: minmax(0, 1fr); }
.faq-group {
  --faq-answer-inset: clamp(14px, 2vw, 26px);
  background: var(--faq-surface);
  overflow-wrap: anywhere;
}
.rp-faq .faq-group > h2 {
  padding: clamp(18px, 2vw, 30px) var(--faq-answer-inset);
  font-size: clamp(21px, 2.15vw, 33px);
  line-height: 1.12;
}
.faq-answers { border-top: 1px solid #d8d8d8; }
.faq-answer { transition: background .2s; }
.faq-answer + .faq-answer { border-top: 1px solid #ddd; }
.faq-answer:hover, .faq-answer[open] { background: #ebebeb; }
.faq-answer:target { border-inline-start: 2px solid var(--faq-accent); }
.faq-answer > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-block-size: 65px;
  padding: 12px var(--faq-answer-inset);
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 620;
  line-height: 1.42;
}
.faq-answer > summary:focus-visible { outline-offset: -3px; }
.faq-expand {
  display: grid;
  place-items: center;
  position: relative;
  inline-size: 30px;
  block-size: 30px;
  color: #151515;
  transition: background .2s;
}
.faq-expand::before, .faq-expand::after { content: ""; grid-area: 1/1; background: currentColor; width: 12px; height: 1.5px; }
.faq-expand::after { transform: rotate(90deg); transition: transform .2s; }
.faq-answer[open] .faq-expand { background: var(--faq-accent); }
.faq-answer[open] .faq-expand::after { transform: rotate(0); }
.faq-answer-body { padding: 0 var(--faq-answer-inset) 22px; }
.faq-answer-body > [data-faq-answer-text] { max-inline-size: 75ch; }
.faq-answer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 25px; margin-block-start: 14px; }
.faq-answer-actions .rp-link { min-block-size: 42px; padding: 0; }
.faq-answer-actions .faq-ask { gap: 8px; }
.faq-answer-actions .faq-ask span { font-size: 15px; }
.faq-feedback { font-size: 12px; }
.faq-feedback:not(:empty) { margin-block-start: 9px; }
.faq-answer-body .rp-copy-fallback { margin-block-start: 10px; }
.faq-empty { padding-block: 32px; }
.faq-empty p { margin-block: 12px 18px; }

.faq-checklist { padding: clamp(34px, 4.2vw, 65px) 0; background: var(--faq-surface); }
.rp-faq .faq-checklist h2 { margin-block-end: 22px; font-size: clamp(24px, 2.35vw, 36px); }
.faq-checklist dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.faq-checklist dl > div { border-top: 1px solid #c9c9c9; padding-block-start: 16px; padding-inline-end: 16px; }
.faq-checklist dl > div + div { border-inline-start: 1px solid #c9c9c9; padding-inline-start: 16px; }
.faq-checklist dt { font-size: 15px; font-weight: 730; line-height: 1.4; }
.faq-checklist dd { margin: 8px 0 0; color: #515151; font-size: 13px; line-height: 1.58; }

.faq-next > .rp-wrap {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1fr);
  gap: clamp(24px, 7vw, 110px);
}
.rp-faq .faq-next h2 { max-inline-size: 12ch; font-size: clamp(32px, 4.1vw, 63px); }
.faq-next-links > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid #fff4;
}
.faq-next-links a:last-child { border-bottom: 1px solid #fff4; }
.faq-next-links a strong { display: block; font-size: clamp(15px, 1.45vw, 20px); line-height: 1.4; }
.faq-next-links a > span:first-child span { color: #fffb; font-size: 13px; }
.faq-next-links a > span:last-child { color: var(--faq-accent); font-size: 23px; transition: transform .2s; }
.faq-next-links a:hover strong { color: var(--faq-accent); }
.faq-next-links a:hover > span:last-child { transform: translateX(4px); }
.faq-next-links:dir(rtl) a > span:last-child { transform: scaleX(-1); }

.rp-faq .rp-request { border-top: 0; }
.rp-faq .rp-request-layout { align-items: start; gap: clamp(28px, 5vw, 82px); }
.rp-faq .rp-request-fields { padding: clamp(21px, 3vw, 45px); border: 0; background: var(--faq-surface); }
.rp-faq .rp-request-fields input, .rp-faq .rp-request-fields textarea { border-color: #c9c9c9; }
.rp-faq .rp-request-fields .rp-link { min-height: 42px; }

@media (max-width: 860px) {
  .faq-answer-grid { grid-template-columns: 1fr; }
  .faq-hero > .rp-wrap { min-block-size: clamp(500px, calc(88svh - var(--header-height)), 700px); }
  .rp-faq .faq-hero h1 { font-size: clamp(37px, 8.1vw, 68px); }
  .faq-next > .rp-wrap { grid-template-columns: 1fr; }
  .rp-faq .faq-next h2 { max-inline-size: none; }
}

@media (max-width: 550px) {
  .faq-hero-photo { object-position: 67% 50%; }
  .faq-hero::after {
    background: linear-gradient(0deg, #090909 0%, #090909a6 48%, #09090966 100%),
      linear-gradient(90deg, #090909ab, transparent);
  }
  .faq-hero-copy { padding-block: 40px 30px; }
  .rp-faq .faq-hero h1 { font-size: clamp(33px, 9.28vw, 49px); }
  .faq-hero-copy > p { margin-block-start: 15px; line-height: 1.6; }
  .faq-search-icon { margin-inline: 12px 2px; }
  .faq-search-field input { block-size: 56px; padding-inline: 10px 8px; }
  .faq-search-field input::placeholder { font-size: 12px; }
  .faq-search-submit { min-block-size: 44px; padding-inline: 12px; font-size: 12px; }
  .faq-hero-links { padding-block: 9px; font-size: 12px; }
  .faq-hero-links a { gap: 7px; }
  .faq-categories nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-topic { min-block-size: 75px; padding: 11px 10px; }
  .faq-topic-copy { gap: 7px; }
  .faq-topic-copy strong { font-size: 12px; }
  .faq-topic-copy > span { font-size: 11px; }
  .faq-answer > summary { min-block-size: 58px; }
  .faq-answer-actions { gap: 3px 15px; }
  .faq-checklist dl { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .faq-checklist dl > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-faq *, .rp-faq *::before, .rp-faq *::after { transition-duration: 0s; }
}
