/**
 * @file
 * Typography.
 */

:root {
  --border-spacing: 1rem;
}

h1,
h2,
h3,
.heading {
  font-weight: var(--font-weight-bold);
}

h1 {
  font-size: var(--font-size-h1);
  margin-bottom: var(--spacer-m);
}

h2 {
  font-size: var(--font-size-h2);
  margin-bottom: var(--spacer-m);
}

h3 {
  font-size: var(--font-size-h3);
  margin-bottom: var(--spacer-s);
}

.heading {
  font-size: var(--font-size-heading);
  margin-bottom: var(--spacer-m);
}

.text-content {
  font-size: var(--font-size-m);
}

.text-content p {
  margin-bottom: var(--spacer-m);
}

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

.text-content p iframe {
  max-width: 100%;
}

.text-content ul,
.text-content ol {
  margin-left: var(--spacer-m);
  margin-bottom: var(--spacer-m);
  list-style: initial;
}

.text-content li:not(:last-child) {
  margin-bottom: var(--spacer-s);
}

.text-content strong {
  font-weight: var(--font-weight-bold);
}

.text-content blockquote {
  margin-bottom: var(--spacer-l);
  padding: var(--spacer-l) var(--spacer-xl);
}

.text-content blockquote p {
  font-weight: 400;
  font-size: var(--font-size-l);
}

.text-align-center {
  text-align: center;
}

.text-align-left {
  text-align: left;
}

.text-align-right {
  text-align: right;
}

.text-align-justify {
  text-align: justify;
}

.text-content table {
  border-collapse: collapse;
  border: 1px solid var(--border-color);
  width: 100%;
}

.text-content table caption {
  color: var(--color-gray);
  margin-bottom: var(--spacer-m);
}

.text-content table thead {
  background-color: var(--base-color-light);
}

.text-content table td,
.text-content table th {
  border: 1px solid var(--border-color);
  padding: var(--border-spacing);
}

@media screen and (max-width: 756px) {
  .text-content p iframe {
    max-height: 280px;
  }
}
