.faq-page {
  --faq-ink: #102d35;
  --faq-muted: #68777a;
  --faq-line: #e5e9e5;
  --faq-gold: #fcbd0b;
  color: var(--faq-ink);
  background: #fbfaf7;
}

.faq-hero__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: clamp(290px, 31vw, 390px);
  padding-top: 46px;
  padding-bottom: 46px;
}

.faq-hero__copy {
  max-width: 760px;
}

.faq-hero__eyebrow,
.faq-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: #8b6b0b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.faq-hero__title {
  max-width: 760px;
}

.faq-hero__copy > p {
  max-width: 530px;
  margin: 17px 0 20px;
  color: #53666a;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.faq-hero__stamp {
  display: grid;
  width: clamp(120px, 15vw, 188px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  align-content: center;
  justify-items: center;
  gap: 4px;
  margin-right: clamp(18px, 7vw, 102px);
  border: 1px solid rgba(16, 45, 53, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.13), 0 0 0 26px rgba(16, 45, 53, 0.025);
  transform: rotate(8deg);
}

.faq-hero__stamp-mark {
  color: #ab8307;
  font-family: var(--font-heading);
  font-size: clamp(3.8rem, 7vw, 6.2rem);
  font-weight: 700;
  line-height: 0.9;
}

.faq-hero__stamp-caption {
  color: var(--faq-ink);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
}

.faq-guide {
  padding: clamp(58px, 8vw, 100px) 0 clamp(76px, 10vw, 132px);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(252, 189, 11, 0.065), transparent 35%),
    #fbfaf7;
}

.faq-guide__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 36px;
}

.faq-guide__heading h2 {
  margin: 0;
  color: var(--faq-ink);
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4.1vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.faq-guide__heading > p {
  max-width: 430px;
  margin: 0 0 4px;
  color: var(--faq-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.faq-search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  align-items: center;
  gap: 10px 38px;
  margin-bottom: 48px;
  padding: clamp(23px, 3.5vw, 38px) clamp(22px, 4.5vw, 52px);
  border-radius: 12px;
  color: #fff;
  background:
    radial-gradient(260px circle at 95% 0%, rgba(252, 189, 11, 0.14), transparent 76%),
    #102d35;
  box-shadow: 0 17px 44px rgba(16, 45, 53, 0.11);
}

.faq-search-panel__label {
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.faq-search-panel__input-wrap {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  transition: border-color 180ms ease, background 180ms ease;
}

.faq-search-panel__input-wrap:focus-within {
  border-color: var(--faq-gold);
  background: rgba(255, 255, 255, 0.13);
}

.faq-search-panel__input-wrap > svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  color: #f5c93d;
}

.faq-search-panel input {
  width: 100%;
  min-width: 0;
  height: 56px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: inherit;
}

.faq-search-panel input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.faq-search-panel input:focus-visible {
  outline: 0;
}

.faq-search-panel__clear {
  flex: 0 0 auto;
  padding: 7px 0 7px 8px;
  border: 0;
  color: #f5c93d;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
}

.faq-search-panel__clear:hover {
  color: #fff;
}

.faq-search-panel__clear:focus-visible,
.faq-topic-nav a:focus-visible,
.faq-help-card a:focus-visible,
.faq-empty a:focus-visible {
  outline: 2px solid var(--faq-gold);
  outline-offset: 4px;
}

.faq-search-panel__count {
  grid-column: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
}

.faq-search-panel__count strong {
  color: #fff;
  font-weight: 800;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(225px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 6vw, 82px);
}

.faq-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 17px;
}

.faq-topic-card,
.faq-help-card {
  padding: 24px;
  border: 1px solid #e9e9e3;
  border-radius: 9px;
  background: #fff;
}

.faq-topic-card__label {
  display: block;
  margin-bottom: 17px;
  color: #9a770d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.faq-topic-nav {
  display: grid;
  gap: 3px;
}

.faq-topic-nav a {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0ec;
  color: #405358;
  font-size: 0.89rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  transition: color 160ms ease, padding 160ms ease;
}

.faq-topic-nav a:last-child {
  border-bottom: 0;
}

.faq-topic-nav a:hover {
  padding-left: 4px;
  color: #8b6b0b;
}

.faq-topic-nav__count {
  display: grid;
  min-width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #66767a;
  background: #f5f5f1;
  font-size: 0.69rem;
  font-weight: 800;
}

.faq-help-card {
  overflow: hidden;
  background:
    radial-gradient(110px circle at 105% -3%, rgba(252, 189, 11, 0.18), transparent 80%),
    #f0f3ef;
}

.faq-help-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 50%;
  color: #92700b;
  background: #ffefba;
}

.faq-help-card__icon svg {
  width: 20px;
  height: 20px;
}

.faq-help-card h3 {
  margin: 0 0 8px;
  color: var(--faq-ink);
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.faq-help-card p {
  margin: 0;
  color: var(--faq-muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.faq-help-card a,
.faq-empty a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: #846504;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.faq-help-card a svg {
  width: 17px;
  height: 17px;
  transition: transform 160ms ease;
}

.faq-help-card a:hover svg {
  transform: translateX(3px);
}

.faq-results {
  min-width: 0;
}

.faq-category {
  scroll-margin-top: 28px;
}

.faq-category + .faq-category {
  margin-top: clamp(42px, 6vw, 76px);
}

.faq-category__header {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 19px;
}

.faq-category__number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #e8d9a6;
  border-radius: 50%;
  color: #987509;
  font-family: var(--font-heading);
  font-size: 0.91rem;
  font-weight: 800;
}

.faq-category__overline {
  display: block;
  margin-bottom: 5px;
  color: #a08017;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.faq-category__header h2 {
  margin: 0;
  color: var(--faq-ink);
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.faq-category__header p {
  margin: 7px 0 0;
  color: var(--faq-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.faq-accordion {
  border-top: 1px solid var(--faq-line);
}

.faq-item {
  border-bottom: 1px solid var(--faq-line);
  background: rgba(255, 255, 255, 0.48);
  transition: background 180ms ease;
}

.faq-item[hidden],
.faq-category[hidden],
.faq-empty[hidden] {
  display: none !important;
}

.faq-item[open] {
  background: #fff;
}

.faq-item summary {
  display: flex;
  min-height: 69px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 19px;
  color: var(--faq-ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #b18a0b;
  outline-offset: -3px;
}

.faq-item__question {
  font-size: 0.97rem;
  font-weight: 720;
  line-height: 1.55;
}

.faq-item__toggle {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e2e5df;
  border-radius: 50%;
  color: #886908;
  background: #fff;
}

.faq-item__toggle::before,
.faq-item__toggle::after {
  position: absolute;
  width: 11px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease;
}

.faq-item__toggle::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-item__toggle::after {
  transform: rotate(0);
}

.faq-item__answer {
  padding: 0 68px 23px 19px;
  color: var(--faq-muted);
  font-size: 0.91rem;
  line-height: 1.8;
  animation: faq-reveal 190ms ease both;
}

.faq-item__answer p {
  margin: 0;
}

.faq-item__tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 3px;
  color: #7b610d;
  background: #fbf3d9;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.faq-empty {
  padding: 58px 25px;
  border: 1px dashed #d9ded8;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.faq-empty__mark {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #8c6d0c;
  background: #fbf3d9;
  font-size: 1.65rem;
  font-weight: 700;
}

.faq-empty h2 {
  margin: 16px 0 7px;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.faq-empty p {
  margin: 0;
  color: var(--faq-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-empty a {
  margin-top: 13px;
}

@keyframes faq-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .faq-sidebar {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.75fr);
  }

  .faq-topic-nav {
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }

  .faq-topic-nav a:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .faq-hero__content {
    min-height: 300px;
    padding-top: 37px;
    padding-bottom: 37px;
  }

  .faq-hero__eyebrow {
    max-width: 270px;
    font-size: 0.65rem;
  }

  .faq-hero__copy > p {
    max-width: 330px;
    margin-top: 13px;
    font-size: 0.95rem;
  }

  .faq-hero__stamp {
    position: absolute;
    right: 12px;
    bottom: 25px;
    width: 81px;
    margin: 0;
    opacity: 0.62;
  }

  .faq-hero__stamp-mark {
    font-size: 3rem;
  }

  .faq-hero__stamp-caption {
    font-size: 0.43rem;
  }

  .faq-guide {
    padding-top: 54px;
  }

  .faq-guide__heading {
    display: block;
    margin-bottom: 26px;
  }

  .faq-guide__heading > p {
    margin-top: 17px;
    font-size: 0.92rem;
  }

  .faq-search-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    margin-bottom: 31px;
    padding: 23px 19px;
  }

  .faq-search-panel__label {
    font-size: 1.08rem;
  }

  .faq-search-panel input {
    height: 51px;
    font-size: 0.86rem;
  }

  .faq-search-panel__count {
    grid-column: 1;
  }

  .faq-sidebar {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .faq-topic-card,
  .faq-help-card {
    padding: 20px;
  }

  .faq-topic-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-topic-nav a:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px solid #f0f0ec;
  }

  .faq-category__header {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .faq-category__number {
    width: 39px;
    height: 39px;
    font-size: 0.78rem;
  }

  .faq-category__header p {
    font-size: 0.81rem;
  }

  .faq-item summary {
    min-height: 65px;
    gap: 12px;
    padding: 16px 12px;
  }

  .faq-item__question {
    font-size: 0.91rem;
  }

  .faq-item__toggle {
    width: 27px;
    height: 27px;
  }

  .faq-item__answer {
    padding: 0 48px 20px 12px;
    font-size: 0.87rem;
    line-height: 1.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-page *,
  .faq-page *::before,
  .faq-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
