/* Trinity SEO/AEO — sitewide accordion (crawler-readable, visitor-collapsed) */
.trinity-aeo-area {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.25rem 1.25rem 1.75rem;
  border-top: 1px solid rgba(233, 228, 219, 0.65);
  background: #f7f5f1;
  box-sizing: border-box;
}

.trinity-aeo-area__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.trinity-aeo-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 0.7rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: #5b6d4a;
  background: #fff;
  border: 1px solid #e9e4db;
  border-radius: 9999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.trinity-aeo-toggle:hover,
.trinity-aeo-toggle:focus-visible {
  color: #3e522d;
  border-color: #a2ad91;
  background: #f1f4ed;
  box-shadow: 0 4px 14px rgba(62, 82, 45, 0.08);
  outline: none;
}

.trinity-aeo-toggle__icon {
  display: inline-block;
  font-size: 0.7rem;
  transition: transform 0.28s ease;
}

.trinity-aeo-area.is-open .trinity-aeo-toggle__icon {
  transform: rotate(180deg);
}

/*
 * Keep markup in the DOM for crawlers/AI.
 * Collapse visually without removing nodes from the tree.
 */
.trinity-aeo-content {
  margin-top: 0;
  color: #5c5c5c;
  font-size: 0.9375rem;
  line-height: 1.75;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.45s ease, opacity 0.3s ease, margin 0.3s ease,
    visibility 0.3s;
}

.trinity-aeo-area.is-open .trinity-aeo-content {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px dashed #e9e4db;
  max-height: 8000px;
  opacity: 1;
  visibility: visible;
}

.trinity-aeo-content article + article {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(233, 228, 219, 0.8);
}

.trinity-aeo-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1f16;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.trinity-aeo-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #3e522d;
  margin: 1.15rem 0 0.45rem;
  line-height: 1.45;
}

.trinity-aeo-content p {
  margin: 0 0 0.75rem;
}

.trinity-aeo-content ul {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
}

.trinity-aeo-content li {
  margin-bottom: 0.35rem;
}

.trinity-aeo-content a {
  color: #3e522d;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.trinity-aeo-faq {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trinity-aeo-faq details {
  border: 1px solid #e9e4db;
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
}

.trinity-aeo-faq summary {
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #1a1f16;
  cursor: pointer;
  list-style: none;
}

.trinity-aeo-faq summary::-webkit-details-marker {
  display: none;
}

.trinity-aeo-faq details[open] summary {
  border-bottom: 1px solid #f1f4ed;
  color: #3e522d;
}

.trinity-aeo-faq details p {
  padding: 0 1rem 0.9rem;
  margin: 0;
  font-size: 0.875rem;
  color: #6b7562;
}

@media (max-width: 640px) {
  .trinity-aeo-toggle {
    max-width: 100%;
    font-size: 0.75rem;
    padding: 0.65rem 0.9rem;
  }
}
