.faq-page {
  color: #1f2933;
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1280px;
  padding: 24px;
}

.faq-hero,
.faq-section,
.faq-toc,
.faq-card,
.faq-step,
.faq-hero-card {
  background: #ffffff;
  border: 1px solid #d8e0e7;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(31, 41, 51, 0.06);
}

.faq-hero {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 340px;
  padding: 24px;
}

.faq-hero h1,
.faq-section h2,
.faq-card h3,
.faq-step h3,
.faq-hero-card strong {
  color: #1f2933;
  line-height: 1.15;
  margin: 0;
}

.faq-hero h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: 0;
}

.faq-section h2 {
  font-size: 24px;
  font-weight: 900;
}

.faq-card h3,
.faq-step h3 {
  font-size: 16px;
  font-weight: 900;
}

.faq-eyebrow {
  color: var(--unit4);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.faq-hero p,
.faq-section-head p,
.faq-card p,
.faq-step p,
.faq-hero-card span,
.faq-answer-list p {
  color: #566371;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.faq-hero p {
  font-size: 16px;
  margin-top: 12px;
  max-width: 860px;
}

.faq-hero-card {
  align-content: start;
  border-top: 4px solid var(--unit4);
  display: grid;
  gap: 10px;
  padding: 18px;
}

.faq-icon,
.faq-mini-icon,
.faq-step-number {
  align-items: center;
  border-radius: 5px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.faq-icon {
  background: #edf1f4;
  color: #566371;
  flex: 0 0 auto;
  font-size: 13px;
  height: 44px;
  width: 44px;
}

.faq-mini-icon {
  background: #edf1f4;
  color: #566371;
  font-size: 11px;
  height: 26px;
  margin-right: 8px;
  width: 32px;
}

.faq-icon-orange {
  background: #fff2e9;
  color: var(--unit4);
}

.faq-icon-blue {
  background: #eaf6fb;
  color: #237c9b;
}

.faq-icon-green {
  background: #e8f6ef;
  color: #16845c;
}

.faq-icon-muted {
  background: #edf1f4;
  color: #566371;
}

.faq-toc {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px;
}

.faq-toc a {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e5ebf0;
  border-radius: 5px;
  color: #1f2933;
  display: flex;
  font-size: 14px;
  font-weight: 900;
  min-height: 52px;
  padding: 10px;
  text-decoration: none;
}

.faq-toc a:hover {
  border-color: #3c8dbc;
  color: #0f5f86;
}

.faq-section {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.faq-section-head {
  align-items: center;
  display: flex;
  gap: 14px;
}

.faq-card-grid {
  display: grid;
  gap: 12px;
}

.faq-card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.faq-card {
  border-top: 3px solid #3c8dbc;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.faq-card:nth-child(2n) {
  border-top-color: var(--unit4);
}

.faq-card:nth-child(3n) {
  border-top-color: #00a65a;
}

.faq-card.small {
  min-height: 190px;
}

.faq-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.faq-card li {
  color: #31404c;
  font-size: 14px;
  line-height: 1.45;
}

.faq-step-list {
  display: grid;
  gap: 12px;
}

.faq-step-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-step {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 16px;
}

.faq-step-number {
  background: var(--unit4);
  color: #ffffff;
  font-size: 15px;
  height: 36px;
  width: 36px;
}

.faq-table-wrap {
  overflow-x: auto;
}

.faq-table {
  border-collapse: collapse;
  font-size: 14px;
  min-width: 820px;
  width: 100%;
}

.faq-table th,
.faq-table td {
  border-bottom: 1px solid #e5ebf0;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.faq-table th {
  background: #f8fafc;
  color: #566371;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.faq-table td:first-child {
  color: #1f2933;
  font-weight: 900;
  white-space: nowrap;
}

.faq-answer-list {
  display: grid;
  gap: 10px;
}

.faq-answer-list details {
  background: #ffffff;
  border: 1px solid #d8e0e7;
  border-radius: 6px;
  overflow: hidden;
}

.faq-answer-list summary {
  color: #1f2933;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  list-style: none;
  padding: 14px 16px;
}

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

.faq-answer-list summary::after {
  color: var(--unit4);
  content: "+";
  float: right;
  font-size: 18px;
  font-weight: 900;
}

.faq-answer-list details[open] summary::after {
  content: "-";
}

.faq-answer-list p {
  border-top: 1px solid #e5ebf0;
  padding: 13px 16px 15px;
}

.faq-note {
  background: #fff7e8;
  border: 1px solid #f6d399;
  border-radius: 6px;
  color: #7a4d0e;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
  padding: 13px 14px;
}

@media (max-width: 1100px) {
  .faq-hero,
  .faq-card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-card-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .faq-page {
    padding: 16px;
  }

  .faq-hero,
  .faq-toc,
  .faq-card-grid.two,
  .faq-card-grid.three,
  .faq-card-grid.four,
  .faq-step-list.compact {
    grid-template-columns: 1fr;
  }

  .faq-section-head {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .faq-page {
    padding: 12px;
  }

  .faq-hero,
  .faq-section {
    padding: 16px;
  }

  .faq-hero h1 {
    font-size: 30px;
  }

  .faq-step {
    grid-template-columns: 1fr;
  }
}
