/* ==========================================================================
   answers.css — the answer-first service pages and the homepage FAQ.

   These pages exist to be quoted: by people skimming, and by search and AI
   answer engines. So the shape is deliberate — a short "In short" answer up
   top, question-shaped headings, one idea per section, and FAQs as native
   <details> so every answer is in the HTML with JS off.
   Builds on legal.css (the reading column) and style.css tokens, so light
   and dark themes follow automatically.
   ========================================================================== */

.ans-hero .hero-inner { max-width: 860px; }
.ans-hero h1 { text-wrap: balance; }

.ans-doc { max-width: 760px; }

/* --- breadcrumb --- */
.ans-crumbs {
  margin: 0 0 22px;
  font-size: var(--text-caption);
  color: var(--mist);
}
.ans-crumbs a { color: var(--mist); text-decoration: none; }
.ans-crumbs a:hover { color: var(--accent); }
.ans-crumbs span[aria-current] { color: var(--ink); }
.ans-crumbs .sep { margin: 0 6px; opacity: .6; }

/* --- the answer box: the passage we most want quoted --- */
.ans-summary {
  margin: 0 0 14px;
  padding: 22px 24px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-strong);
  border-left: 3px solid var(--accent-fill);
  border-radius: var(--radius);
}
.ans-summary-label {
  margin: 0 0 8px !important;
  font-size: var(--text-caption);
  font-weight: var(--font-weight-semibold);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.ans-summary p:last-child { margin: 0; font-size: 1.04em; line-height: 1.62; }

.ans-meta {
  margin: 0 0 8px !important;
  font-size: var(--text-caption);
  color: var(--mist);
}

/* --- on-page contents --- */
.ans-toc {
  margin: 26px 0 8px;
  padding: 16px 20px;
  background: var(--fill-subtle);
  border-radius: var(--radius);
  font-size: var(--text-body-sm);
}
.ans-toc p { margin: 0 0 8px !important; font-weight: var(--font-weight-semibold); color: var(--ink); }
.ans-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.ans-toc li { margin-bottom: 6px; break-inside: avoid; }
.legal-doc .ans-toc a { text-decoration: none; }
.legal-doc .ans-toc a:hover { text-decoration: underline; }

/* --- process steps --- */
.ans-steps { margin: 0 0 18px; padding-left: 22px; }
.ans-steps li { margin-bottom: 12px; padding-left: 4px; }

/* --- price + comparison tables: first column reads as a label --- */
.ans-table td:first-child { color: var(--ink); min-width: 200px; }
.ans-table .ans-sub { font-size: var(--text-caption); color: var(--mist); line-height: 1.45; }
.ans-table td.num, .ans-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* --- FAQ (service pages and homepage) --- */
.ans-faq-list { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 10px; }
.ans-faq {
  background: var(--surface-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}
.ans-faq[open] { border-color: var(--accent-tint-strong); }
.ans-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: var(--font-weight-semibold);
  color: var(--ink);
  line-height: 1.4;
}
.ans-faq summary::-webkit-details-marker { display: none; }
.ans-faq summary h3 { margin: 0 !important; font: inherit; letter-spacing: normal; }
.ans-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 400;
  color: var(--mist);
  transition: transform .2s ease;
}
.ans-faq[open] summary::after { transform: rotate(45deg); color: var(--accent); border-color: var(--accent); }
.ans-faq summary:hover { color: var(--accent); }
.ans-faq summary:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; border-radius: var(--radius); }
.ans-faq .ans-faq-a { padding: 0 20px 18px; color: var(--mist); }
.ans-faq .ans-faq-a p { margin: 0; line-height: 1.65; }
.ans-faq .ans-faq-a a { color: var(--accent); }

/* --- closing call to action --- */
.ans-cta {
  margin: 48px 0 0;
  padding: 26px 24px;
  background: var(--surface-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.legal-doc .ans-cta h2 { margin: 0 0 8px; padding: 0; border: 0; }
.ans-cta p { color: var(--mist); }
.ans-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.legal-doc .ans-cta-row a.btn { text-decoration: none; }
.legal-doc .ans-cta-row a.btn-primary { color: var(--on-accent); }

/* --- related services --- */
.ans-related { margin-top: 36px; }
.legal-doc .ans-related h2 { font-size: var(--text-subheading); }
.ans-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.legal-doc .ans-related-grid a {
  display: block;
  padding: 16px 18px;
  background: var(--surface-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}
.legal-doc .ans-related-grid a span { display: block; margin-top: 4px; font-weight: 400; font-size: var(--text-caption); color: var(--mist); }
.legal-doc .ans-related-grid a:hover { border-color: var(--accent); opacity: 1; }

/* --- homepage: "at a glance" + FAQ chapter --- */
.home-answers .ans-glance {
  max-width: 760px;
  margin: 0 auto 36px;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink);
  text-align: center;
}
.home-answers .ans-faq-list { max-width: 760px; margin: 0 auto; }
.home-answers .ans-faq-a a { text-decoration: underline; text-underline-offset: 2px; }
.home-answers .ans-explore {
  max-width: 760px;
  margin: 28px auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.home-answers .ans-explore a {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--text-body-sm);
  color: var(--ink);
  background: var(--surface-white);
}
.home-answers .ans-explore a:hover { border-color: var(--accent); color: var(--accent); }

/* service cards on services.html: the new "Read the guide" link */
.service-guide-link { font-size: var(--text-body-sm); color: var(--accent); font-weight: var(--font-weight-semibold); }
.service-guide-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .ans-summary { padding: 18px 18px; }
  .ans-toc ol { columns: 1; }
  .ans-related-grid { grid-template-columns: 1fr; }
  .ans-faq summary { padding: 14px 16px; }
  .ans-faq .ans-faq-a { padding: 0 16px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ans-faq summary::after { transition: none; }
}

/* On the two featured cards the guide link sits on its own line above the
   pricing / question buttons, so it never pushes them onto a second row. */
.service-cta-row { flex-wrap: wrap; }
.service-cta-row .service-guide-link { flex: 0 0 100%; text-align: center; margin-bottom: 4px; }
