/* Shared styles for answer-first article sections:
   reference tables, FAQ accordions and checklists.
   Used by selected blog and docs pages. Load before nav.css. */

/* ---------- Reference tables ---------- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--rule-2, #444);
  border-radius: var(--radius-card, 8px);
}

.table-scroll table.seo-table,
.docs-page .table-scroll table.seo-table {
  display: table;
  width: 100%;
  min-width: 560px;
  max-width: none;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.seo-table caption {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-3, #888);
  caption-side: bottom;
}

.seo-table th,
.seo-table td,
.docs-page .seo-table th,
.docs-page .seo-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid var(--rule-2, #444);
}

.seo-table thead th,
.docs-page .seo-table thead th {
  background: var(--ink-3, #282828);
  color: var(--text, #fff);
  font-weight: 600;
  white-space: nowrap;
}

.seo-table tbody th {
  color: var(--text, #fff);
  font-weight: 600;
}

.seo-table td {
  color: var(--text-2, #ccc);
}

.seo-table tbody tr:last-child th,
.seo-table tbody tr:last-child td {
  border-bottom: 0;
}

.seo-table code {
  overflow-wrap: anywhere;
  font-size: 0.85em;
}

.seo-table td a,
.seo-table th a {
  overflow-wrap: anywhere;
}

/* ---------- Checklists ---------- */
ul.seo-checklist {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 1.5rem;
}

ul.seo-checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

ul.seo-checklist li::before {
  content: "\2713";
  position: absolute;
  left: 0.2rem;
  top: 0;
  font-weight: 700;
  color: var(--good, #34d399);
}

/* ---------- FAQ accordions ---------- */
.faq-list {
  margin: 1.5rem 0 1rem;
}

.faq-list details {
  border-top: 1px solid var(--rule-2, #444);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--rule-2, #444);
}

.faq-list summary {
  position: relative;
  padding: 1rem 2.4rem 1rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text, #fff);
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--pink-3, #ff3d8b);
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list summary:focus-visible {
  outline: 2px solid var(--pink-3, #ff3d8b);
  outline-offset: 2px;
}

.faq-list details p,
.faq-list details ul,
.faq-list details ol {
  margin: 0 0 1rem;
  color: var(--text-2, #ccc);
  line-height: 1.65;
}

/* ---------- Answer-first summary (docs pages without .callout) ---------- */
.answer-first {
  background: var(--ink-2, #282828);
  border: 1px solid var(--rule-2, #444);
  border-left: 3px solid var(--pink, #ED166C);
  border-radius: var(--radius-card, 8px);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.answer-first p {
  margin: 0 0 0.75rem;
  color: var(--text, #fff);
  line-height: 1.65;
}

.answer-first p:last-child {
  margin-bottom: 0;
}

/* Keep jump-link targets clear of the site header */
.docs-content [id],
.blog-post .content [id] {
  scroll-margin-top: 90px;
}

@media (max-width: 600px) {
  .seo-table th,
  .seo-table td,
  .docs-page .seo-table th,
  .docs-page .seo-table td {
    padding: 0.6rem 0.75rem;
  }
}
