/* FAQ page — content only (site header/footer unchanged) */

.faq-page {
  --faq-navy: #062b66;
  --faq-navy-dark: #031f4e;
  --faq-blue: #087fe8;
  --faq-blue-dark: #0067cd;
  --faq-turquoise: #19c7a4;
  --faq-ink: #082d66;
  --faq-body: #5f7492;
  --faq-ice: #f3f8fd;
  --faq-ice-strong: #eaf3fb;
  --faq-line: #d9e5f1;
  --faq-white: #ffffff;
  background: var(--faq-white);
  color: var(--faq-ink);
}

.faq-page a {
  color: inherit;
  text-decoration: none;
}

.faq-page button {
  color: inherit;
  font: inherit;
}

.faq-page .faq-section {
  width: min(100%, var(--container, 1480px));
  margin: 0 auto;
  padding: 48px 40px 40px;
  box-sizing: border-box;
}

.faq-page .faq-header {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.faq-page .faq-header .eyebrow {
  position: relative;
  width: max-content;
  margin: 0 auto 24px;
  color: var(--faq-blue);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.faq-page .faq-header .eyebrow::after {
  position: absolute;
  top: calc(100% + 11px);
  left: 50%;
  width: 40px;
  height: 2px;
  border-radius: 999px;
  background: #1098e8;
  content: "";
  transform: translateX(-50%);
}

.faq-page .faq-header h1 {
  margin: 0;
  color: #063b7a;
  font-size: clamp(1.46rem, 1.92vw, 2.31rem);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.faq-page .faq-intro {
  margin: 14px 0 0;
  color: var(--faq-body);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
}

.faq-page .faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.58fr) minmax(0, 1.42fr);
  gap: 28px;
  align-items: stretch;
}

.faq-page .coordinator-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid #dce8f3;
  border-radius: 18px;
  background: var(--faq-ice);
  box-shadow: 0 16px 36px rgba(6, 43, 102, 0.07);
}

.faq-page .coordinator-visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: #e9eff5;
}

.faq-page .coordinator-visual img {
  position: absolute;
  left: 15%;
  width: 74%;
  height: 102%;
  object-fit: cover;
  object-position: center 18%;
}

.faq-page .coordinator-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 20px 14px;
  background: var(--faq-navy);
  color: var(--faq-white);
  text-align: center;
}

.faq-page .coordinator-kicker {
  margin: 0 0 4px;
  color: rgba(216, 231, 248, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.faq-page .coordinator-content h2 {
  margin: 0;
  max-width: none;
  color: var(--faq-white);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 680;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: nowrap;
}

.faq-page .primary-button,
.faq-page .rail-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  border-radius: 8px;
  background: var(--faq-blue);
  color: var(--faq-white);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.faq-page .primary-button > span,
.faq-page .rail-button > span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.faq-page .primary-button svg,
.faq-page .rail-button svg {
  display: block;
  width: 15px;
  height: 15px;
  flex: none;
  margin: 0;
}

.faq-page .primary-button {
  width: min(100%, 240px);
  margin: 12px auto 0;
  padding: 0 14px 0 16px;
}

.faq-page .primary-button:hover,
.faq-page .rail-button:hover {
  background: var(--faq-blue-dark);
  transform: translateY(-1px);
}

.faq-page .primary-button:focus-visible,
.faq-page .rail-button:focus-visible,
.faq-page .contact-action:focus-visible,
.faq-page .category-tab:focus-visible,
.faq-page .faq-question:focus-visible {
  outline: 3px solid rgba(25, 199, 164, 0.5);
  outline-offset: 3px;
}

.faq-page .coordinator-contacts {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  width: 100%;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.23);
}

.faq-page .contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 0 14px;
  color: inherit;
  font-size: 12px;
  font-weight: 560;
  transition:
    color 180ms ease,
    opacity 180ms ease;
}

.faq-page .coordinator-contacts .contact-action {
  flex: 1 1 0;
  padding: 0 10px;
}

.faq-page .coordinator-contacts .contact-action + .contact-action {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.faq-page .contact-action:hover {
  color: #69d8ff;
}

.faq-page .contact-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  line-height: 1;
}

.faq-page .contact-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}

.faq-page .faq-content {
  min-width: 0;
}

.faq-page .category-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.faq-page .category-tab {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #cbdbea;
  border-radius: 10px;
  background: var(--faq-white);
  color: var(--faq-navy);
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.faq-page .category-tab:hover {
  border-color: var(--faq-blue);
  transform: translateY(-1px);
}

.faq-page .category-tab.is-active {
  border-color: var(--faq-navy);
  background: var(--faq-navy);
  color: var(--faq-white);
}

.faq-page .faq-accordion-scroll {
  position: relative;
  max-height: min(560px, 68vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #9bb8d6 transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 28px), transparent 100%);
}

.faq-page .faq-accordion-scroll[hidden] {
  display: none;
}

.faq-page .faq-accordion-scroll:not(.is-at-top) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}

.faq-page .faq-accordion-scroll.is-at-bottom {
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 28px), #000 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 28px), #000 100%);
}

.faq-page .faq-accordion-scroll.is-at-top.is-at-bottom {
  -webkit-mask-image: none;
  mask-image: none;
}

.faq-page .faq-accordion-scroll::-webkit-scrollbar {
  width: 6px;
}

.faq-page .faq-accordion-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.faq-page .faq-accordion-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #9bb8d6;
}

.faq-page .accordion {
  display: grid;
  gap: 8px;
}

.faq-page .faq-item {
  overflow: hidden;
  border: 1px solid var(--faq-line);
  border-radius: 12px;
  background: var(--faq-white);
  box-shadow: 0 4px 12px rgba(6, 43, 102, 0.025);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.faq-page .faq-item.is-open {
  border-color: #3898f2;
  background: var(--faq-ice);
  box-shadow: 0 8px 18px rgba(8, 127, 232, 0.07);
}

.faq-page .faq-question {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.faq-page .faq-number {
  color: var(--faq-blue);
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.faq-page .faq-question-text {
  color: var(--faq-navy);
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 680;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.faq-page .faq-toggle {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  justify-self: end;
}

.faq-page .faq-toggle span {
  position: absolute;
  top: 7px;
  left: 1px;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--faq-blue);
  transition: transform 180ms ease;
}

.faq-page .faq-toggle span:last-child {
  transform: rotate(90deg);
}

.faq-page .faq-toggle.is-open span:last-child {
  transform: rotate(0deg);
}

.faq-page .faq-toggle.is-open {
  transform: rotate(180deg);
}

.faq-page .faq-answer-shell {
  padding: 0 48px 16px 64px;
}

.faq-page .faq-answer-shell[hidden] {
  display: none;
}

.faq-page .faq-answer-shell p {
  margin: 0;
  color: var(--faq-body);
  font-size: 14px;
  line-height: 1.6;
}

.faq-page .contact-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  margin-top: 24px;
  padding: 20px 32px;
  border-radius: 14px;
  background: var(--faq-navy);
  color: var(--faq-white);
}

.faq-page .contact-rail-copy {
  flex: 1 1 auto;
}

.faq-page .contact-rail-copy h2 {
  margin: 0;
  color: var(--faq-white);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 680;
  letter-spacing: -0.02em;
}

.faq-page .contact-rail-copy p {
  margin: 6px 0 0;
  color: #d8e7f8;
  font-size: 14px;
}

.faq-page .contact-rail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex: 0 1 auto;
}

.faq-page .contact-rail-actions .contact-action {
  min-width: 0;
  min-height: 38px;
  padding: 0 18px;
}

.faq-page .contact-rail-actions .contact-action + .contact-action {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.faq-page .rail-button {
  width: auto;
  min-width: 160px;
  margin-left: 16px;
  padding: 0 16px 0 18px;
}

.faq-page .source-note {
  margin: 16px 0 0;
  color: #7588a3;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 1220px) {
  .faq-page .faq-section {
    padding-inline: 32px;
  }

  .faq-page .faq-layout {
    gap: 22px;
  }

  .faq-page .coordinator-content {
    padding-inline: 18px;
  }

  .faq-page .contact-action {
    gap: 6px;
    font-size: 12px;
  }

  .faq-page .contact-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .faq-page .contact-icon svg {
    width: 12px;
    height: 12px;
  }

  .faq-page .contact-rail {
    padding-inline: 24px;
  }

  .faq-page .contact-rail-actions .contact-action {
    padding: 0 14px;
  }
}

@media (max-width: 980px) {
  .faq-page .faq-section {
    padding-top: 40px;
  }

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

  .faq-page .coordinator-card {
    grid-template-columns: minmax(200px, 0.85fr) minmax(0, 1.15fr);
    grid-template-rows: auto;
    min-height: 260px;
  }

  .faq-page .coordinator-visual {
    min-height: 260px;
  }

  .faq-page .coordinator-content {
    justify-content: center;
    padding: 18px 20px 16px;
  }

  .faq-page .category-tabs {
    margin-top: 4px;
  }

  .faq-page .faq-accordion-scroll {
    max-height: min(520px, 62vh);
  }

  .faq-page .contact-rail {
    align-items: flex-start;
    flex-direction: column;
  }

  .faq-page .contact-rail-actions {
    width: 100%;
    flex-basis: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .faq-page .faq-section {
    padding: 32px 20px 24px;
  }

  .faq-page .faq-header {
    margin-bottom: 28px;
    text-align: left;
  }

  .faq-page .faq-header .eyebrow {
    margin-right: 0;
    margin-left: 0;
  }

  .faq-page .faq-header .eyebrow::after {
    left: 0;
    transform: none;
  }

  .faq-page .faq-header h1 {
    font-size: clamp(1.33rem, 6.2vw, 1.92rem);
    line-height: 1.08;
  }

  .faq-page .faq-intro {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.5;
  }

  .faq-page .coordinator-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .faq-page .coordinator-visual {
    min-height: 240px;
  }

  .faq-page .coordinator-content {
    padding: 14px 16px 12px;
  }

  .faq-page .coordinator-content h2 {
    white-space: normal;
    font-size: 15px;
  }

  .faq-page .coordinator-contacts {
    gap: 0;
  }

  .faq-page .coordinator-contacts .contact-action,
  .faq-page .contact-rail-actions .contact-action {
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
    padding: 0 8px;
  }

  .faq-page .category-tabs {
    display: flex;
    gap: 8px;
    margin-right: -20px;
    overflow-x: auto;
    padding-right: 20px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

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

  .faq-page .category-tab {
    min-width: max-content;
    min-height: 40px;
    padding-inline: 16px;
    font-size: 13px;
  }

  .faq-page .faq-accordion-scroll {
    max-height: min(480px, 58vh);
  }

  .faq-page .faq-question {
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    gap: 8px;
    min-height: 58px;
    padding: 8px 14px;
  }

  .faq-page .faq-number {
    font-size: 14px;
  }

  .faq-page .faq-question-text {
    font-size: 14px;
  }

  .faq-page .faq-answer-shell {
    padding: 0 36px 14px 50px;
  }

  .faq-page .faq-answer-shell p {
    font-size: 13px;
  }

  .faq-page .contact-rail {
    margin-top: 20px;
    padding: 22px 18px 18px;
  }

  .faq-page .contact-rail-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 0;
  }

  .faq-page .contact-rail-actions .contact-action {
    min-width: 0;
  }

  .faq-page .rail-button {
    grid-column: 1 / -1;
    width: 100%;
    margin: 4px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-page *,
  .faq-page *::before,
  .faq-page *::after {
    transition-duration: 0.01ms !important;
  }
}
