.page-faq {
  --faq-index-w: 236px;
  --faq-anchor-top: 96px;
  background: var(--cream);
}

.page-faq [hidden] {
  display: none !important;
}

/* ---------- Hero ---------- */

.page-faq .faq-hero {
  background: var(--cream);
  padding: 26px 0 0;
  border-bottom: var(--hair);
}

.page-faq .faq-hero .breadcrumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(10, 34, 51, 0.6);
  margin-bottom: 30px;
}

.page-faq .faq-hero .breadcrumbs a {
  color: var(--jade);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 127, 112, 0.35);
}

.page-faq .faq-hero .breadcrumbs span[aria-hidden] {
  margin: 0 8px;
  color: rgba(10, 34, 51, 0.35);
}

.page-faq .faq-hero .eyebrow {
  display: block;
  margin-bottom: 16px;
}

.page-faq .faq-hero__title {
  margin: 0 0 20px;
  font-size: clamp(30px, 7.2vw, 54px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--ink);
}

.page-faq .faq-hero__lead {
  margin: 0 0 26px;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}

.page-faq .faq-hero__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.page-faq .faq-hero__quick a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(10, 34, 51, 0.22);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s linear, border-color 0.18s linear, color 0.18s linear;
}

.page-faq .faq-hero__quick a:hover,
.page-faq .faq-hero__quick a:focus-visible {
  background: var(--jade);
  border-color: var(--jade);
  color: #fff;
}

.page-faq .faq-hero__media {
  margin: 0;
  position: relative;
  background: var(--jade-deep);
}

.page-faq .faq-hero__media::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34%;
  height: 6px;
  background: var(--orange);
}

.page-faq .faq-hero__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(190px, 38vw, 400px);
  object-fit: cover;
  object-position: center 62%;
}

/* ---------- Body grid ---------- */

.page-faq .faq-body {
  padding: 40px 0 72px;
  background: var(--cream);
}

.page-faq .faq-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

/* ---------- Index rail ---------- */

.page-faq .faq-index__title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--jade);
}

.page-faq .faq-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.page-faq .faq-index__list::-webkit-scrollbar {
  display: none;
}

.page-faq .faq-index__list li {
  flex: 0 0 auto;
  border-bottom: 2px solid var(--sand);
}

.page-faq .faq-index__list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s linear, color 0.18s linear;
}

.page-faq .faq-index__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
}

.page-faq .faq-index__list li:hover {
  border-bottom-color: var(--amber);
  background: rgba(255, 182, 39, 0.22);
}

.page-faq .faq-index__list a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Filter bar ---------- */

.page-faq .faq-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.page-faq .faq-filter .filter-chip {
  border: 1px solid rgba(10, 34, 51, 0.24);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-cn);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 15px;
  cursor: pointer;
  transition: background 0.18s linear, border-color 0.18s linear, color 0.18s linear;
}

.page-faq .faq-filter .filter-chip:hover {
  border-color: var(--jade);
  color: var(--jade);
}

.page-faq .faq-filter .filter-chip[aria-pressed="true"] {
  background: var(--jade);
  border-color: var(--jade);
  color: #fff;
}

.page-faq .faq-filter .filter-chip:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Groups ---------- */

.page-faq .faq-group {
  margin-bottom: 46px;
  scroll-margin-top: var(--faq-anchor-top);
}

.page-faq .faq-group__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 2px;
}

.page-faq .faq-group__num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
}

.page-faq .faq-group__name {
  margin: 0;
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- Figure inside export group ---------- */

.page-faq .faq-figure {
  margin: 0 0 2px;
  position: relative;
  background: var(--jade-deep);
}

.page-faq .faq-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(150px, 30vw, 230px);
  object-fit: cover;
  object-position: center 40%;
}

.page-faq .faq-figure__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  padding: 8px 14px;
  background: var(--amber);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
}

/* ---------- Accordion items ---------- */

.page-faq .faq-item {
  border-bottom: var(--hair);
  transition: background 0.18s linear, box-shadow 0.18s linear;
}

.page-faq .faq-item[open] {
  background: rgba(11, 127, 112, 0.055);
  box-shadow: inset 4px 0 0 var(--jade);
}

.page-faq .faq-item__q {
  position: relative;
  display: block;
  padding: 18px 46px 18px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
  transition: color 0.18s linear, padding-left 0.18s linear;
}

.page-faq .faq-item__q::-webkit-details-marker {
  display: none;
}

.page-faq .faq-item__q::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  color: var(--jade);
  border: 1px solid rgba(11, 127, 112, 0.4);
  transition: color 0.18s linear, border-color 0.18s linear;
}

.page-faq .faq-item__q:hover {
  color: var(--jade);
}

.page-faq .faq-item__q:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.page-faq .faq-item[open] .faq-item__q {
  color: var(--jade);
  padding-left: 18px;
}

.page-faq .faq-item[open] .faq-item__q::after {
  content: "–";
  color: var(--orange);
  border-color: rgba(255, 106, 19, 0.5);
}

.page-faq .faq-item__a {
  padding: 0 18px 22px 4px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
}

.page-faq .faq-item[open] .faq-item__a {
  padding-left: 18px;
}

.page-faq .faq-item__a p {
  margin: 0 0 10px;
}

.page-faq .faq-item__a p:last-child {
  margin-bottom: 0;
}

.page-faq .faq-lead {
  font-weight: 700;
  color: var(--ink);
}

.page-faq .faq-steps {
  counter-reset: faqstep;
  list-style: none;
  margin: 12px 0 12px;
  padding: 0;
}

.page-faq .faq-steps li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 10px;
  line-height: 1.8;
}

.page-faq .faq-steps li:last-child {
  margin-bottom: 0;
}

.page-faq .faq-steps li::before {
  counter-increment: faqstep;
  content: counter(faqstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  border: 1px solid rgba(255, 106, 19, 0.45);
}

/* ---------- Mid-page alert band ---------- */

.page-faq .faq-alert {
  position: relative;
  margin: 6px 0 46px;
  padding: 26px 22px 26px 30px;
  background: var(--wine);
  color: #fff;
  overflow: hidden;
}

.page-faq .faq-alert::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: var(--orange);
}

.page-faq .faq-alert::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transform: rotate(45deg);
}

.page-faq .faq-alert__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.page-faq .faq-alert__text {
  margin: 0;
  max-width: 44em;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Help block ---------- */

.page-faq .faq-help {
  scroll-margin-top: var(--faq-anchor-top);
  background: var(--jade-deep);
  color: #fff;
  padding: 34px 24px 38px;
  position: relative;
}

.page-faq .faq-help__label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.page-faq .faq-help__title {
  margin: 0 0 14px;
  font-size: clamp(22px, 4.6vw, 30px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

.page-faq .faq-help__text {
  margin: 0 0 26px;
  max-width: 42em;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.86);
}

.page-faq .faq-help__channels {
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.page-faq .faq-help__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.page-faq .faq-help__row dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.page-faq .faq-help__row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #fff;
  word-break: break-word;
}

.page-faq .faq-help__row dd a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 182, 39, 0.7);
  font-family: var(--font-mono);
  font-size: 14px;
}

.page-faq .faq-help__row dd a:hover,
.page-faq .faq-help__row dd a:focus-visible {
  color: var(--amber);
}

.page-faq .faq-help__cta {
  display: inline-block;
}

.page-faq .faq-help .btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- Wider screens ---------- */

@media (min-width: 640px) {
  .page-faq .faq-help {
    padding: 40px 40px 44px;
  }

  .page-faq .faq-help__row {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    align-items: baseline;
  }

  .page-faq .faq-item__q {
    font-size: 17px;
    padding-right: 60px;
  }
}

@media (min-width: 900px) {
  .page-faq .faq-hero {
    padding-top: 34px;
  }

  .page-faq .faq-body {
    padding: 56px 0 96px;
  }

  .page-faq .faq-body__grid {
    grid-template-columns: var(--faq-index-w) minmax(0, 1fr);
    gap: 0;
    align-items: start;
  }

  .page-faq .faq-index {
    position: sticky;
    top: var(--faq-anchor-top);
    padding-right: 34px;
  }

  .page-faq .faq-index__list {
    display: block;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-faq .faq-index__list li {
    border-bottom: 0;
    border-left: 2px solid var(--sand);
    transition: border-color 0.18s linear, background 0.18s linear;
  }

  .page-faq .faq-index__list li:hover {
    border-left-color: var(--amber);
    background: rgba(255, 182, 39, 0.22);
  }

  .page-faq .faq-index__list a {
    padding: 11px 12px 11px 16px;
  }

  .page-faq .faq-panel {
    border-left: var(--hair);
    padding-left: 46px;
  }

  .page-faq .faq-alert {
    padding: 30px 34px 30px 40px;
  }
}

@media (min-width: 1200px) {
  .page-faq .faq-panel {
    padding-left: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .faq-hero__quick a,
  .page-faq .faq-index__list li,
  .page-faq .faq-filter .filter-chip,
  .page-faq .faq-item,
  .page-faq .faq-item__q,
  .page-faq .faq-item__q::after {
    transition: none;
  }
}
