/**
 * Editor / rich-text content styles (.sdn-content).
 */

.sdn-content {
  color: #444;
  line-height: 1.6;
  font-size: 1.6rem;
}

.sdn-content > *:first-child {
  margin-top: 0;
}

.sdn-content > *:last-child {
  margin-bottom: 0;
}

.sdn-content b,
.sdn-content strong {
  font-weight: 700;
}

.sdn-content em,
.sdn-content i {
  font-style: italic;
}

.sdn-content h1,
.sdn-content h2,
.sdn-content h3,
.sdn-content h4,
.sdn-content h5,
.sdn-content h6 {
  margin: 0 0 2.4rem;
  color: #131313;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.sdn-content h1 {
  font-size: 3.2rem;
}

.sdn-content h2 {
  font-size: 2.8rem;
}

.sdn-content h3 {
  font-size: 2.4rem;
}

.sdn-content h4 {
  font-size: 2rem;
}

.sdn-content h5 {
  font-size: 1.8rem;
}

.sdn-content h6 {
  font-size: 1.6rem;
}

.sdn-content p {
  margin: 0 0 2.4rem;
}

.sdn-content a {
  color: #c5342d;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.sdn-content a:hover,
.sdn-content a:focus-visible {
  text-decoration: underline;
}

.sdn-content ul,
.sdn-content ol {
  margin: 0 0 2.4rem;
  padding-left: 2.4rem;
  list-style-position: outside;
}

.sdn-content ul {
  list-style-type: disc;
}

.sdn-content ol {
  list-style-type: decimal;
}

.sdn-content ul ul,
.sdn-content ol ul {
  list-style-type: circle;
  margin: 0.8rem 0;
}

.sdn-content ol ol,
.sdn-content ul ol {
  list-style-type: lower-latin;
  margin: 0.8rem 0;
}

.sdn-content li {
  margin-bottom: 0.8rem;
}

.sdn-content li:last-child {
  margin-bottom: 0;
}

.sdn-content img,
.sdn-content video,
.sdn-content iframe {
  display: block;
  max-width: 100% !important;
  height: auto;
  margin: 3.2rem 0;
  user-select: none;
}

.sdn-content figure {
  margin: 3.2rem 0;
  max-width: 100%;
}

.sdn-content figure img {
  margin: 0;
}

.sdn-content figcaption,
.sdn-content .wp-caption-text {
  margin: 0.8rem 0 0;
  padding: 0;
  color: #666;
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

.sdn-content .wp-caption {
  border: 0;
  padding: 0;
  max-width: 100%;
  margin: 3.2rem 0;
}

.sdn-content .wp-caption img {
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.sdn-content .alignleft {
  float: left;
  margin: 0.4rem 2.4rem 2.4rem 0;
}

.sdn-content .alignright {
  float: right;
  margin: 0.4rem 0 2.4rem 2.4rem;
}

.sdn-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.sdn-content .alignnone {
  margin: 3.2rem 0;
}

.sdn-content blockquote {
  position: relative;
  margin: 3.2rem 0;
  padding: 2.4rem;
  overflow: hidden;
  border: 0;
  border-radius: 0.8rem;
  background: rgba(197, 52, 45, 0.05);
  quotes: none;
}

.sdn-content blockquote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2.4rem;
  z-index: 0;
  width: 12.9rem;
  height: 10.4rem;
  background: url("../images/icons/icon-quote.svg") no-repeat top left / contain;
}

.sdn-content blockquote p,
.sdn-content blockquote ul,
.sdn-content blockquote ol {
  position: relative;
  z-index: 1;
}

.sdn-content blockquote p:not(:last-child) {
  margin-bottom: 1.6rem;
}

.sdn-content hr {
  margin: 3.2rem 0;
  border: 0;
  border-top: 1px solid #e9e9e5;
}

.sdn-content pre,
.sdn-content code {
  font-family: "IBM Plex Mono", monospace;
}

.sdn-content pre {
  margin: 3.2rem 0;
  padding: 1.6rem 2.4rem;
  overflow-x: auto;
  background: #f5f5f2;
  border: 1px solid #e9e9e5;
  font-size: 1.4rem;
  line-height: 1.5;
}

.sdn-content code {
  font-size: 0.9em;
}

.sdn-content pre code {
  font-size: inherit;
}

.sdn-content table {
  width: 100%;
  max-width: 100%;
  margin: 3.2rem 0;
  border-spacing: 0;
  border-collapse: collapse;
  border: 0.1rem solid #111;
  background: #fff;
}

.sdn-content .table-resp,
.sdn-content .sdn-table-wrap,
.sdn-content .wp-block-table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 3.2rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sdn-content .table-resp > table,
.sdn-content .sdn-table-wrap > table,
.sdn-content .wp-block-table > table {
  margin-top: 0;
  margin-bottom: 0;
}

.sdn-content table th,
.sdn-content table td {
  height: 4.8rem;
  padding: 1.2rem 1.6rem;
  text-align: center;
  vertical-align: middle;
  font-family: "Inter", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 2.4rem;
  color: #131313;
  border: 0.1rem solid #111;
  background: #fff;
}

.sdn-content table thead th {
  color: #fff;
  white-space: nowrap;
  background: #111;
  border-color: #111;
}

.sdn-content table thead th + th {
  border-left-color: #fff;
}

.sdn-content table tbody {
  background: #fff;
}

.sdn-content table tbody tr:last-child th,
.sdn-content table tbody tr:last-child td {
  border-bottom-color: #111;
}

.sdn-content .gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin: 3.2rem 0;
}

.sdn-content .gallery-item {
  margin: 0;
}

.sdn-content .gallery-icon img {
  margin: 0;
}

.sdn-content .wp-block-image,
.sdn-content .wp-block-gallery,
.sdn-content .wp-block-quote,
.sdn-content .wp-block-embed,
.sdn-content .wp-block-video {
  margin: 3.2rem 0;
}

.sdn-content .wp-block-image img {
  margin: 0;
}

@media screen and (max-width: 767px) {
  .sdn-content {
    font-size: 1.4rem;
  }

  .sdn-content .alignleft,
  .sdn-content .alignright {
    float: none;
    display: block;
    margin: 2.4rem 0;
  }

  .sdn-content table {
    min-width: 60rem;
  }
}
