.ahfm-faq,
.ahfm-faq *,
.ahfm-faq *::before,
.ahfm-faq *::after {
  box-sizing: border-box;
}

.ahfm-faq {
  --ahfm-gold: var(--gold, #b58a54);
  --ahfm-gold-dark: var(--gold-dark, #8a6130);
  --ahfm-gold-dim: var(--gold-dim, rgba(181, 138, 84, 0.26));
  --ahfm-ink: var(--ink, #37291d);
  --ahfm-muted: var(--navy-mid, #5d4936);
  --ahfm-index-column: clamp(42px, 4vw, 56px);
  --ahfm-row-gap: clamp(20px, 2.5vw, 34px);
  width: 100%;
  padding-block: clamp(88px, 9vw, 140px);
  color: var(--ahfm-ink);
  font-family: "Jost", sans-serif;
}

.ahfm-faq__shell {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-inline: 0;
  container-type: inline-size;
}

.ahfm-faq__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(540px, 1.28fr);
  gap: clamp(72px, 8.5vw, 136px);
  align-items: stretch;
}

.ahfm-faq__intro,
.ahfm-faq__list {
  min-width: 0;
}

.ahfm-faq__list {
  align-self: start;
}

.ahfm-faq__intro-inner {
  position: sticky;
  top: var(--sticky-content-offset, 106px);
}

.ahfm-faq__heading {
  max-width: 100%;
  margin: 0;
  color: var(--ahfm-ink);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(46px, 3.5vw, 58px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.ahfm-faq__contact {
  display: inline-flex;
  min-height: 44px;
  margin-top: clamp(28px, 2.5vw, 36px);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--ahfm-gold-dim);
  color: var(--ahfm-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    border-color 200ms ease,
    color 200ms ease;
}

.ahfm-faq__contact svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ahfm-faq__contact:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--ahfm-gold-dark);
  outline-offset: 5px;
}

.ahfm-faq__list {
  border-top: 1px solid var(--ahfm-gold-dim);
}

.ahfm-faq__item,
.ahfm-faq__item[open],
.ahfm-faq__item.is-open {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ahfm-gold-dim);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ahfm-faq__item {
  transition: border-color 240ms ease;
}

.ahfm-faq__item.is-open,
.ahfm-faq:not(.is-enhanced) .ahfm-faq__item[open] {
  border-bottom-color: rgba(181, 138, 84, 0.48);
}

.ahfm-faq__question {
  position: relative;
  display: grid;
  grid-template-columns: var(--ahfm-index-column) minmax(0, 1fr) 44px;
  gap: var(--ahfm-row-gap);
  min-height: 92px;
  padding: 26px 0;
  align-items: center;
  color: var(--ahfm-ink);
  cursor: pointer;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(21px, 0.55vw + 17px, 26px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.012em;
  list-style: none;
  overflow-wrap: anywhere;
}

.ahfm-faq__question::-webkit-details-marker {
  display: none;
}

.ahfm-faq__question::marker {
  content: "";
}

.ahfm-faq__question:focus-visible {
  outline: none;
}

.ahfm-faq__question:focus-visible .ahfm-faq__question-text {
  border-radius: 2px;
  outline: 2px solid var(--ahfm-gold-dark);
  outline-offset: 6px;
}

.ahfm-faq__number {
  display: flex;
  width: 100%;
  min-height: 28px;
  padding-right: clamp(12px, 1.4vw, 20px);
  align-items: center;
  align-self: center;
  border-right: 1px solid var(--ahfm-gold-dim);
  color: var(--ahfm-gold-dark);
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  transition: color 200ms ease;
}

.ahfm-faq__question-text {
  transition: color 200ms ease;
}

.ahfm-faq__indicator {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ahfm-gold-dark);
  transform: rotate(0deg);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ahfm-faq__indicator::before,
.ahfm-faq__indicator::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 1px;
  background: currentColor;
  transform-origin: center;
}

.ahfm-faq__indicator::after {
  transform: rotate(90deg);
}

.ahfm-faq__item.is-open .ahfm-faq__indicator,
.ahfm-faq:not(.is-enhanced) .ahfm-faq__item[open] .ahfm-faq__indicator {
  transform: rotate(45deg);
}

.ahfm-faq__panel {
  height: auto;
}

.ahfm-faq.is-enhanced .ahfm-faq__panel {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    height 380ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
}

.ahfm-faq.is-enhanced .ahfm-faq__item.is-open .ahfm-faq__panel {
  opacity: 1;
}

.ahfm-faq__answer {
  max-width: 68ch;
  margin-right: calc(44px + var(--ahfm-row-gap));
  margin-left: calc(var(--ahfm-index-column) + var(--ahfm-row-gap));
  padding: 2px 0 clamp(30px, 3vw, 40px) clamp(16px, 1.8vw, 24px);
  border-left: 1px solid var(--ahfm-gold-dim);
  color: var(--ahfm-muted);
  font-size: clamp(14.5px, 0.22vw + 13.7px, 16px);
  font-weight: 400;
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.ahfm-faq.is-enhanced .ahfm-faq__answer {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 260ms ease 40ms,
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ahfm-faq.is-enhanced .ahfm-faq__item.is-open .ahfm-faq__answer {
  opacity: 1;
  transform: translateY(0);
}

.ahfm-faq__answer > :first-child {
  margin-top: 0;
}

.ahfm-faq__answer > :last-child {
  margin-bottom: 0;
}

.ahfm-faq__answer p,
.ahfm-faq__answer ul,
.ahfm-faq__answer ol,
.ahfm-faq__answer blockquote {
  margin: 0 0 1em;
}

.ahfm-faq__answer ul,
.ahfm-faq__answer ol {
  padding-left: 1.25em;
}

.ahfm-faq__answer li + li {
  margin-top: 0.45em;
}

.ahfm-faq__answer a {
  color: var(--ahfm-ink);
  text-decoration-color: var(--ahfm-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.ahfm-faq__answer a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--ahfm-gold-dark);
  outline-offset: 3px;
}

.ahfm-editor-notice {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid rgba(181, 138, 84, 0.42);
  border-radius: 8px;
  background: var(--ivory, #fbf5ea);
  color: var(--ink, #37291d);
  font-family: "Jost", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

@media (hover: hover) and (pointer: fine) {
  .ahfm-faq__contact:hover {
    border-color: var(--ahfm-gold-dark);
    color: var(--ahfm-gold-dark);
  }

  .ahfm-faq__contact:hover svg {
    transform: translateX(3px);
  }

  .ahfm-faq__question:hover .ahfm-faq__question-text,
  .ahfm-faq__question:hover .ahfm-faq__number {
    color: var(--ahfm-gold-dark);
  }
}

@media (max-width: 1100px) {
  .ahfm-faq__layout {
    grid-template-columns: minmax(250px, 0.68fr) minmax(480px, 1.32fr);
    gap: clamp(48px, 6vw, 76px);
  }

  .ahfm-faq__heading {
    font-size: clamp(44px, 4.7vw, 56px);
  }
}

@media (max-width: 900px) {
  .ahfm-faq {
    padding-block: clamp(72px, 10vw, 100px);
  }

  .ahfm-faq__layout {
    grid-template-columns: 1fr;
    gap: clamp(52px, 8vw, 72px);
  }

  .ahfm-faq__intro-inner {
    position: static;
  }

  .ahfm-faq__heading {
    max-width: 14ch;
    font-size: clamp(44px, 7vw, 60px);
  }

}

@media (min-width: 901px) and (max-height: 760px) {
  .ahfm-faq__intro-inner {
    position: static;
  }
}

@media (max-width: 640px) {
  .ahfm-faq {
    --ahfm-index-column: 34px;
    --ahfm-row-gap: clamp(10px, 3vw, 14px);
    align-self: start;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding-block: clamp(58px, 16vw, 76px);
  }

  .ahfm-faq__shell,
  .ahfm-faq__layout {
    height: auto;
    min-height: 0;
  }

  .ahfm-faq__layout {
    align-items: start;
    gap: 44px;
  }

  .ahfm-faq__heading {
    max-width: 15ch;
    font-size: clamp(38px, 11vw, 49px);
    line-height: 0.98;
  }

  .ahfm-faq__contact {
    margin-top: 24px;
    font-size: 11.5px;
  }

  .ahfm-faq__question {
    grid-template-columns: var(--ahfm-index-column) minmax(0, 1fr) 44px;
    min-height: 72px;
    padding: 19px 0;
    font-size: clamp(18px, 5.25vw, 21px);
    line-height: 1.2;
  }

  .ahfm-faq__number {
    min-height: 24px;
    padding-right: 10px;
    font-size: 11px;
  }

  .ahfm-faq__answer {
    margin-right: calc(44px + var(--ahfm-row-gap));
    margin-left: calc(var(--ahfm-index-column) + var(--ahfm-row-gap));
    padding: 0 0 27px 14px;
    font-size: 14.5px;
    line-height: 1.76;
  }
}

@media (max-width: 360px) {
  .ahfm-faq {
    --ahfm-index-column: 32px;
    --ahfm-row-gap: 8px;
  }

  .ahfm-faq__question {
    min-height: 68px;
    padding-block: 18px;
    font-size: 18px;
  }

  .ahfm-faq__number {
    padding-right: 8px;
  }

  .ahfm-faq__answer {
    margin-right: 0;
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ahfm-faq__contact,
  .ahfm-faq__contact svg,
  .ahfm-faq__item,
  .ahfm-faq__number,
  .ahfm-faq__question-text,
  .ahfm-faq__indicator,
  .ahfm-faq.is-enhanced .ahfm-faq__panel,
  .ahfm-faq.is-enhanced .ahfm-faq__answer {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

@media print {
  .ahfm-faq {
    padding-block: 32px;
  }

  .ahfm-faq__layout {
    display: block;
  }

  .ahfm-faq__intro-inner {
    position: static;
  }

  .ahfm-faq__contact,
  .ahfm-faq__indicator {
    display: none;
  }

  .ahfm-faq__list {
    margin-top: 28px;
  }

  .ahfm-faq__item,
  .ahfm-faq__item:not([open]) > .ahfm-faq__panel,
  .ahfm-faq.is-enhanced .ahfm-faq__panel {
    display: block !important;
    height: auto !important;
    opacity: 1 !important;
  }

  .ahfm-faq__answer {
    opacity: 1 !important;
    transform: none !important;
  }
}
