.faq-intro {
  padding-block: clamp(30px, 5vw, 72px);
  background: #f2f5ee;
  color: #24382c;
}

.faq-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(22px, 6vw, 88px);
  align-items: center;
}

.faq-kicker {
  display: inline-block;
  margin-block-end: 5px;
  color: #a6531c;
  font: 600 15px/1.2 var(--font-display);
  letter-spacing: .08em;
}

.faq-intro h1 {
  margin: 0;
  font: 600 clamp(34px, 5vw, 66px)/1.21 var(--font-thai);
}

.faq-intro h1 + p {
  margin: 10px 0 0;
  color: #526453;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
}

.faq-search label {
  display: block;
  margin-block-end: 7px;
  font-size: 14px;
  font-weight: 600;
}

.faq-search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 56px;
  padding-inline: 15px 5px;
  gap: 10px;
  border: 1px solid #b5c5b4;
  border-radius: 12px;
  background: #fff;
}

.faq-search-field:focus-within {
  outline: 2px solid #a6531c;
  outline-offset: 2px;
}

.faq-search-field > i { color: #546e58; }

.faq-search-field input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #24382c;
  font: 400 16px/1.5 var(--font-thai);
}

.faq-search-field input::placeholder { color: #617161; opacity: 1; }
.faq-search-field input::-webkit-search-cancel-button { display: none; }

.faq-clear {
  min-height: 44px;
  padding-inline: 12px;
  border: 0;
  border-radius: 8px;
  background: #eef2eb;
  color: #24382c;
  font: 500 14px/1.25 var(--font-thai);
  cursor: pointer;
}

.faq-clear:hover { background: #e1e8dd; }

.faq-search-status {
  min-height: 1.5em;
  margin: 5px 0 0;
  color: #526453;
  font-size: 13px;
  line-height: 1.5;
}

.faq-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(235px, .34fr);
  align-items: start;
  gap: clamp(24px, 5vw, 70px);
  padding-block: clamp(30px, 5vw, 64px) clamp(44px, 7vw, 90px);
}

.faq-workspace .faq-list { min-width: 0; border-top: 0; }
.faq-workspace .pe-faq-group { margin: 0 0 clamp(30px, 5vw, 56px); }
.faq-workspace .pe-faq-group:last-child { margin: 0; }

.faq-workspace .pe-faq-group h2 {
  margin: 0;
  padding-block-end: 12px;
  border-bottom: 2px solid #d4e0d2;
  color: #24382c;
  font: 600 clamp(22px, 2.5vw, 30px)/1.4 var(--font-thai);
}

.faq-workspace .faq-list details {
  border-bottom: 1px solid #dce4d8;
  background: #fff;
}

.faq-workspace .faq-list details[open] { background: #f2f5ee; }

.faq-workspace .faq-list summary {
  min-height: 62px;
  padding: 12px clamp(10px, 2vw, 20px);
  gap: 12px;
  color: #28352b;
  font: 500 clamp(16px, 1.45vw, 18px)/1.56 var(--font-thai);
}

.faq-workspace .faq-list details > summary::after { content: none; }
.faq-workspace .faq-list summary::-webkit-details-marker { display: none; }
.faq-workspace .faq-list summary:hover { background: #f2f5ee; }

.faq-toggle {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border: 1px solid #d5e0d3;
  border-radius: 50%;
  background: #fff;
  color: #354b38;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
}

.faq-toggle::after { transform: rotate(90deg); }

.faq-workspace .faq-list details[open]:not([data-disclosure-motion="closing"]) .faq-toggle {
  border-color: #c3d1bf;
  background: #e1e9df;
  color: #24382c;
}

.faq-workspace .faq-list details[open]:not([data-disclosure-motion="closing"]) .faq-toggle::after {
  opacity: 0;
  transform: rotate(90deg) scaleX(0);
}

.faq-answer { padding: 0 clamp(10px, 2vw, 20px) 19px; }

.faq-workspace .faq-list .faq-answer p {
  max-width: 68ch;
  margin: 0;
  color: #465a49;
  font-size: 15px;
  line-height: 1.8;
}

.faq-answer a {
  color: #2b533a;
  font-weight: 600;
}

.faq-workspace .faq-list summary:focus-visible,
.faq-clear:focus-visible,
.faq-answer a:focus-visible,
.faq-contact:focus-visible {
  outline: 2px solid #a6531c;
  outline-offset: 2px;
}

.faq-workspace .faq-list summary:focus-visible { outline-offset: -3px; }

.faq-empty {
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid #dce4d8;
  border-radius: 12px;
  background: #f2f5ee;
}

.faq-empty h2,
.faq-support h2 {
  margin: 0 0 6px;
  color: #24382c;
  font: 600 21px/1.35 var(--font-thai);
}

.faq-empty p,
.faq-support p {
  margin: 0;
  color: #526453;
  font-size: 15px;
  line-height: 1.65;
}

.faq-support {
  position: sticky;
  top: calc(var(--materials-anchor-offset, 130px) + 20px);
  padding: 23px;
  border: 1px solid #dce4d8;
  border-top: 3px solid #a6531c;
  border-radius: 12px;
  background: #f7f8f5;
}

.faq-contact {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin-block-start: 14px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #24382c;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.faq-contact:hover { background: #354c3b; color: #fff; }
.faq-contact i { font-size: 12px; }

body[data-page="faq"] .materials-section-nav[hidden],
.faq-workspace [hidden],
.faq-intro [hidden] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-workspace .faq-list summary,
  .faq-workspace .faq-toggle {
    transition: background-color 140ms ease-out, border-color 140ms ease-out;
  }

  .faq-toggle::after { transition: transform 140ms ease-out, opacity 140ms ease-out; }
}

@media (max-width: 720px) {
  .faq-intro-inner,
  .faq-workspace { grid-template-columns: minmax(0, 1fr); }
  .faq-intro { padding-block: 29px 16px; }
  .faq-intro-inner { gap: 18px; }
  .faq-workspace { gap: 28px; padding-block-start: 24px; }
  .faq-support { position: static; }
}

@media (max-width: 370px) {
  .faq-intro h1 { font-size: 30px; }
  body[data-page="faq"] .materials-section-nav a { padding-inline: 7px; }
}
