/* =========================================================================
   Long-form prose pages (privacy, terms, help, contact, etc.).
   Loaded only on non-home pages.
   ========================================================================= */

.page-content {
  padding: 4rem 5%;
}

.content-container {
  max-width: 760px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--grid-line);
}

.page-header h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* --- Prose typography --- */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink);
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-family: 'DM Serif Display', Georgia, serif;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.75rem;
  line-height: 1.2;
}
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.1rem; }
.prose h5, .prose h6 { font-size: 1rem; font-family: 'DM Sans', system-ui, sans-serif; font-weight: 600; }

.prose > h1:first-child,
.prose > h2:first-child,
.prose > h3:first-child { margin-top: 0; }

.prose p {
  margin: 0 0 1.2rem;
  color: var(--ink);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.prose a:hover { text-decoration-thickness: 2px; }

.prose strong { font-weight: 600; color: var(--ink); }
.prose em { font-style: italic; }

.prose ul, .prose ol {
  margin: 0 0 1.2rem 1.5rem;
  padding-left: 0;
}
.prose li {
  margin-bottom: 0.4rem;
}
.prose ul ul, .prose ol ol, .prose ul ol, .prose ol ul {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 0 0 1.2rem;
  color: var(--ink-muted);
  font-style: italic;
}

.prose code {
  background: var(--paper-warm);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.prose pre {
  background: var(--ink);
  color: var(--paper);
  padding: 1.25rem;
  border-radius: var(--r);
  overflow-x: auto;
  margin: 0 0 1.2rem;
}
.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--grid-line);
  margin: 2rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--grid-line);
}
.prose th { font-weight: 600; color: var(--ink-muted); }

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
  margin: 1rem 0;
}

/* Contact form on a content page (e.g. /contact/) needs a bit of width. */
.prose .contact-form { margin-top: 1.5rem; }
.prose .contact-form form { max-width: 520px; }

@media (max-width: 700px) {
  .page-content { padding: 2.5rem 5%; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.breadcrumbs a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
}
.breadcrumbs a:hover { color: var(--ink); border-bottom-color: var(--ink-muted); }
.breadcrumbs .sep { color: var(--grid-line); }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* ---------- Variant single page ---------- */
.variant-single .content-container,
.strategy-single .content-container { padding: 2.5rem 5%; max-width: 880px; }

.variant-single-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
}
.variant-single-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.variant-single-icon svg { width: 100%; height: 100%; display: block; }
.variant-single-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.1rem;
  margin: 0;
  line-height: 1.1;
}
.variant-single-short {
  margin: 0.4rem 0 1.75rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}
.variant-single-body { font-size: 1rem; }

.variant-related, .strategy-related {
  margin: 3rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grid-line);
}
.variant-related h2, .strategy-related h2 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.variant-related-list, .strategy-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.variant-related-list a, .strategy-related-list a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  background: var(--grid-bg, #f5f4ef);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink);
  text-decoration: none;
}
.variant-related-list a:hover, .strategy-related-list a:hover { background: var(--accent-soft, #ece9df); }
.variant-related-all, .strategy-related-all { font-weight: 500; }

.variant-cta, .strategy-cta {
  margin: 2.5rem 0 0;
  padding: 1.5rem;
  background: var(--grid-bg, #f5f4ef);
  border-radius: var(--r);
  text-align: center;
}
.variant-cta p, .strategy-cta p { margin: 0 0 0.75rem; }
.variant-cta p:last-child, .strategy-cta p:last-child { margin-bottom: 0; }

/* ---------- Strategy single page ---------- */
.strategy-single-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 0.5rem;
}
.strategy-single-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.1rem;
  margin: 0;
  line-height: 1.1;
}
.strategy-single-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.strategy-single-pill.cat-beginner { background: #e8f5ec; color: #207a3e; }
.strategy-single-pill.cat-medium   { background: #e6effd; color: #1f4fb8; }
.strategy-single-pill.cat-expert   { background: #fbe6f1; color: #99216b; }
.strategy-single-pill.cat-variant  { background: #fdf1e0; color: #a25a0c; }
.strategy-single-short {
  margin: 0.4rem 0 1.75rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}
.strategy-single-body { font-size: 1rem; }

@media (max-width: 700px) {
  .variant-single .content-container,
  .strategy-single .content-container { padding: 1.75rem 5%; }
  .variant-single-name, .strategy-single-name { font-size: 1.7rem; }
}
