/**
 * Content Pages
 * Shared prose styles for About, FAQ, Privacy, Support - and the static
 * intro block on the homepage. Reuses .container/.info-section/.back-button
 * from main.css and result.css; this file only adds typography and the
 * FAQ accordion.
 */

.page-hero {
  margin-bottom: var(--spacing-xl);
}

.page-hero h1 {
  font-family: var(--font-family-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--spacing-sm);
}

.page-hero p {
  color: var(--color-text-light);
  font-size: var(--font-size-lg);
  max-width: 640px;
}

.prose h2 {
  font-family: var(--font-family-display);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0 0 var(--spacing-md);
}

.prose h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  margin: var(--spacing-lg) 0 var(--spacing-sm);
}

.prose p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
  max-width: 720px;
}

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

.prose ul,
.prose ol {
  margin: 0 0 var(--spacing-md) var(--spacing-lg);
  list-style: disc;
  max-width: 720px;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose strong {
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
}

.prose code {
  font-family: var(--font-family-mono);
  font-size: 0.9em;
  background: var(--color-bg-dark-2);
  padding: 2px 6px;
  border-radius: var(--border-radius-sm);
}

/* FAQ accordion - native <details>, works with JS off and is fully crawlable */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-md) 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-lg);
  color: var(--color-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-md);
}

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

.faq-item summary::after {
  content: '+';
  font-family: var(--font-family-mono);
  font-size: 1.25rem;
  color: var(--color-primary-light);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: var(--spacing-md);
  color: var(--color-text-light);
  max-width: 720px;
  line-height: 1.6;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-width: 320px;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius);
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.contact-list a:hover {
  border-color: var(--color-primary);
  background: var(--color-glass-hover);
}

/* Static intro block on the homepage - crawlable copy above the interactive
   pool list, so the page has real content even with JS off. */
.intro-section {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--box-shadow);
}

.intro-section h2 {
  font-family: var(--font-family-display);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.intro-section p {
  color: var(--color-text-light);
  max-width: 720px;
  margin-bottom: var(--spacing-md);
}

.intro-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
  list-style: none;
  margin: 0 0 var(--spacing-md);
}

.intro-features strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 2px;
}

.intro-features span {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.intro-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  font-size: var(--font-size-sm);
}

/* Fallback message shown when JavaScript can't run - the interactive list
   and live pool data need it, so say so and point to a page that doesn't. */
.noscript-banner {
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid rgba(217, 164, 65, 0.4);
  color: var(--color-warning);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.noscript-banner a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .faq-item summary {
    font-size: var(--font-size-base);
  }
}
