/*
 * content.css: styling for generated SEO/AEO content pages.
 * Loaded alongside legal.css, which provides the base type, colors,
 * .site-nav, and print rules. This file adds only content-specific
 * elements: breadcrumbs, answer callout, tables, FAQ blocks, the app
 * CTA, and the hub-page card grid.
 */

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumb .sep {
  margin: 0 0.4rem;
  opacity: 0.6;
}

/* Answer-first callout: the direct answer engines can lift verbatim. */
.answer {
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  padding: 0.875rem 1.125rem;
  border-radius: 0 6px 6px 0;
  margin: 0 0 1.75rem;
}

.answer p { margin: 0; }
.answer p + p { margin-top: 0.625rem; }

p.updated {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

/* Tables (currency, spell slots, comparison matrices). */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}

th, td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  font-weight: 600;
  white-space: nowrap;
}

tbody tr:last-child td { border-bottom: none; }

/* FAQ blocks (also emit FAQPage JSON-LD). */
.faq { margin-top: 2.5rem; }

.faq-item {
  border-top: 1px solid var(--rule);
  padding: 1.125rem 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--rule); }

.faq-item h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.faq-item .faq-answer > :first-child { margin-top: 0; }
.faq-item .faq-answer > :last-child { margin-bottom: 0; }

/* App call-to-action. */
.cta {
  margin: 2.75rem 0 0;
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  text-align: center;
}

.cta p {
  margin: 0 0 1rem;
  color: var(--fg);
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6875rem 1.375rem;
  border-radius: 8px;
}

.cta-button:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

/* Related-links footer within content. */
.related {
  margin-top: 2.5rem;
}

.related h2 { font-size: 1.125rem; }

.related ul { list-style: none; padding: 0; }

.related li { margin-bottom: 0.5rem; }

/* Hub pages: section landing grids. */
.hub-lead {
  font-size: 1.0625rem;
  color: var(--fg);
  margin: 0 0 2rem;
}

.hub-section { margin-bottom: 2.5rem; }

.hub-section h2 {
  margin-bottom: 1rem;
}

.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

@media (min-width: 34rem) {
  .hub-grid { grid-template-columns: 1fr 1fr; }
}

.hub-card {
  display: block;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.125rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.hub-card:hover {
  text-decoration: none;
  border-color: var(--accent);
}

.hub-card .hub-card-title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.375rem;
  color: var(--fg);
}

.hub-card .hub-card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
