/*
 * R49.33 verified answer-section layer.
 * The section is intentionally unframed and uses the established Ethos
 * graphite, paper, and restrained gold system.
 */

.ethos-seo-answers {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid rgba(201, 169, 110, 0.42);
  background:
    linear-gradient(118deg, rgba(201, 169, 110, 0.07), transparent 34%),
    #0a0a0a;
  color: #fbfaf7;
}

.ethos-seo-answers::after {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.72), transparent);
  content: "";
}

.ethos-seo-answers__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(56px, 8vw, 136px);
  width: min(100% - (2 * clamp(22px, 4vw, 64px)), 1360px);
  margin-inline: auto;
  padding-block: clamp(76px, 9vw, 132px);
}

.ethos-seo-answers__header {
  align-self: start;
}

.ethos-seo-answers__eyebrow {
  margin: 0 0 22px;
  color: #c9a96e;
  font: 500 11px/1.4 "Inter", system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ethos-seo-answers__header h2 {
  max-width: 14ch;
  margin: 0;
  color: #fbfaf7;
  font: 400 clamp(38px, 4.2vw, 68px)/1.02 "Playfair Display", Georgia, serif;
  letter-spacing: 0;
  text-wrap: balance;
}

.ethos-seo-answers__header > p:last-child {
  max-width: 46ch;
  margin: 30px 0 0;
  color: rgba(251, 250, 247, 0.66);
  font: 400 16px/1.75 "Inter", system-ui, sans-serif;
}

.ethos-seo-answers__list {
  border-top: 1px solid rgba(251, 250, 247, 0.22);
}

.ethos-seo-answers details {
  border-bottom: 1px solid rgba(251, 250, 247, 0.22);
}

.ethos-seo-answers summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 28px;
  align-items: center;
  min-height: 92px;
  padding: 25px 0;
  color: #fbfaf7;
  cursor: pointer;
  font: 400 clamp(20px, 2vw, 28px)/1.3 "Playfair Display", Georgia, serif;
  list-style: none;
}

.ethos-seo-answers summary::-webkit-details-marker {
  display: none;
}

.ethos-seo-answers summary > span:last-child {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(201, 169, 110, 0.68);
  border-radius: 50%;
}

.ethos-seo-answers summary > span:last-child::before,
.ethos-seo-answers summary > span:last-child::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: #c9a96e;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.ethos-seo-answers summary > span:last-child::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.ethos-seo-answers details[open] summary > span:last-child::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.ethos-seo-answers summary:focus-visible {
  outline: 2px solid #c9a96e;
  outline-offset: 8px;
}

.ethos-seo-answers details > div {
  max-width: 68ch;
  padding: 0 56px 30px 0;
}

.ethos-seo-answers details p {
  margin: 0;
  color: rgba(251, 250, 247, 0.72);
  font: 400 15px/1.75 "Inter", system-ui, sans-serif;
}

@media (max-width: 820px) {
  .ethos-seo-answers__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .ethos-seo-answers__header h2 {
    max-width: 16ch;
    font-size: clamp(36px, 10vw, 54px);
  }

  .ethos-seo-answers summary {
    min-height: 82px;
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .ethos-seo-answers__inner {
    width: min(100% - 40px, 1360px);
    padding-block: 68px;
  }

  .ethos-seo-answers__header > p:last-child {
    margin-top: 24px;
    font-size: 15px;
  }

  .ethos-seo-answers summary {
    grid-template-columns: minmax(0, 1fr) 24px;
    padding-block: 22px;
    font-size: 21px;
  }

  .ethos-seo-answers summary > span:last-child {
    width: 24px;
    height: 24px;
  }

  .ethos-seo-answers details > div {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ethos-seo-answers summary > span:last-child::before,
  .ethos-seo-answers summary > span:last-child::after {
    transition: none;
  }
}
