/* Simple content page: title + rich text (site/templates/page.php).
   Typography follows the place detail panel: Mammane titles, red Roboto
   Mono text on white. */

.content-page-body {
  background: #fff;
}

.content-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

.content-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  text-decoration: none;
}

.content-page__back:hover {
  color: var(--color-text-darkpurple);
}

.content-page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.content-page__title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.1;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .content-page__title {
    font-size: 3rem;
  }
}

/* ---------- Content blocks: text, headings and images ---------- */

.content-page__text {
  line-height: 1.6;
}

.content-page__text > * + * {
  margin-top: 1rem;
}

.content-page__text h2,
.content-page__text h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin-top: 2.5rem;
  /* Mammane only has capitals (its lowercase glyphs are empty). */
  text-transform: uppercase;
}

.content-page__text h2 {
  font-size: 1.75rem;
}

.content-page__text h3 {
  font-size: 1.375rem;
}

.content-page__text ul,
.content-page__text ol {
  padding-left: 1.5rem;
}

.content-page__text a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.content-page__text a:hover {
  color: var(--color-text-darkpurple);
}

.content-page__text blockquote {
  padding-left: 1rem;
  border-left: 3px solid var(--color-text-primary);
  font-style: italic;
}

.content-page__text blockquote footer {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 700;
}

/* Images get a little more room around them. */
.content-page__text figure {
  margin-block: 2rem;
}

.content-page__text img {
  display: block;
  width: 100%;
  height: auto;
}

.content-page__text figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.content-page__text li + li {
  margin-top: 0.25rem;
}

.content-page__text hr {
  border: none;
  border-top: 2px dashed #9ca3af; /* like the dividers in the place panel */
  margin-block: 2.5rem;
}
