/* FLT-741 Step 2B: FAQ presentation. Navbar and footer rules stay in landing-2026.css. */
html {
  scrollbar-gutter: stable;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: #fff;
  color: #302d2b;
  font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

#faq-main {
  flex: 1 0 auto;
}

.faq-site-nav {
  height: 0;
}

.faq-layout {
  max-width: 920px;
  margin: 0 auto;
  padding: 120px 40px 72px;
}

.faq-layout h1 {
  margin: 0 0 28px;
  color: #302d2b;
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.25;
}

.faq-search {
  position: relative;
}

.faq-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.faq-search input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 12px 52px 12px 16px;
  border: 1px solid #dfd8d1;
  border-radius: 10px;
  background: #fff;
  color: #302d2b;
  font: inherit;
}

.faq-search input::-webkit-search-decoration,
.faq-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.faq-search input:focus {
  outline: none;
}

.faq-search input:focus-visible {
  outline: none;
  border-color: #a89f96;
}

.faq-search-submit {
  position: absolute;
  top: 50%;
  right: 2px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #706962;
  transform: translateY(-50%);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-search-submit:focus {
  outline: none;
}

.faq-search-submit:focus-visible {
  outline: 1px solid #a89f96;
  outline-offset: 0;
}

.faq-search-icon {
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.faq-tabs {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.faq-tab {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: #f3f3f2;
  color: #706962;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.faq-tab.is-active {
  background: #224244;
  color: #fff;
}

.faq-tab:focus-visible,
.faq-trigger:focus-visible {
  outline: 3px solid #4d7972;
  outline-offset: 3px;
}

.faq-list {
  margin-top: 8px;
}

.faq-item {
  border-bottom: 1px solid #efeae4;
  scroll-margin-top: 88px;
}

.faq-item[hidden] {
  display: none;
}

.faq-question {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: inherit;
}

.faq-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  grid-template-areas:
    "category chevron"
    "question chevron";
  column-gap: 16px;
  row-gap: 4px;
  width: 100%;
  padding: 18px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-trigger:active {
  background: transparent;
}

.faq-category {
  grid-area: category;
  color: #4d7972;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.faq-question-text {
  grid-area: question;
  color: #302d2b;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.45;
}

.faq-chevron {
  grid-area: chevron;
  align-self: center;
  justify-self: end;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #706962;
  border-bottom: 1.5px solid #706962;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(225deg);
}

.faq-answer {
  padding: 0 28px 18px 0;
  color: #302d2b;
  line-height: 1.75;
}

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

.faq-answer-label {
  margin-top: 14px;
  font-weight: 600;
}

.faq-cta a {
  color: #224244;
  font-weight: 600;
  text-underline-offset: 3px;
}

.faq-empty {
  margin: 28px 0 0;
  color: #706962;
}

.faq-footer {
  padding: 28px 22px 32px;
  color: #706962;
  text-align: center;
}

.faq-footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-footer-social a {
  display: inline-flex;
  line-height: 0;
}

.faq-footer-social img {
  display: block;
  width: 38px;
  height: 38px;
}

.faq-footer-copy {
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: #706962;
}

.faq-footer a:focus-visible {
  outline: 3px solid #4d7972;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .faq-layout {
    padding: 88px 22px 48px;
  }

  .faq-layout h1 {
    margin-bottom: 22px;
    font-size: 32px;
  }

  .faq-search input {
    font-size: 16px;
  }

  .faq-tabs {
    margin-inline: -22px;
    padding-inline: 22px;
    scroll-padding-inline: 22px;
    scroll-snap-type: x proximity;
  }

  .faq-tab {
    scroll-snap-align: start;
  }

  .faq-trigger {
    padding: 14px 0;
  }

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

  .faq-answer {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-chevron {
    transition: none;
  }
}
