/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */

/**
 * @file
 * Text Content.
 */

/*
 * Media query breakpoints.
 * Processed by postcss/postcss-custom-media.
 */

/* Navigation related breakpoints */

/* Grid related breakpoints */

/* Grid shifts from 6 to 14 columns. */

/* Width of the entire grid maxes out. */

.text-content,
.cke_editable,
.paragraph--type--text {
  color: var(--color-text-neutral-medium);
  font-family: var(--font-sans);
  font-size: 1.375rem;
  line-height: var(--sp1-5);
  line-height: var(--sp2);

  /*
    @todo

    text-decoration-thickness is supported by FF & Safari
    text-underline-offset is supported by Safari

    text-decoration-color supported by Chrome, FF, & Safari
  */
}

.text-content a:where(:not(.button)),
.cke_editable a:where(:not(.button)),
.paragraph--type--text a:where(:not(.button)) {
  text-decoration: underline;
  color: var(--color--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.1875rem;
  overflow-wrap: break-word;
}

.text-content a:where(:not(.button)):hover,
.cke_editable a:where(:not(.button)):hover,
.paragraph--type--text a:where(:not(.button)):hover {
  /*       text-decoration: underline;
      color: var(--color--black);
      text-decoration-color: var(--color--primary-80); */
}

.text-content p:where(:not(.like_h3, .like_h2)),
.cke_editable p:where(:not(.like_h3, .like_h2)),
.paragraph--type--text p:where(:not(.like_h3, .like_h2)) {
  margin-block-start: var(--sp);
  margin-block-end: var(--sp);
}

.text-content p:where(:not(.like_h3, .like_h2)):first-child,
.cke_editable p:where(:not(.like_h3, .like_h2)):first-child,
.paragraph--type--text p:where(:not(.like_h3, .like_h2)):first-child {
  margin-block-start: 0;
}

.text-content p:where(:not(.like_h3, .like_h2)):last-child,
.cke_editable p:where(:not(.like_h3, .like_h2)):last-child,
.paragraph--type--text p:where(:not(.like_h3, .like_h2)):last-child {
  margin-block-end: 0;
}

@media (min-width: 43.75rem) {

  .text-content p:where(:not(.like_h3, .like_h2)),
  .cke_editable p:where(:not(.like_h3, .like_h2)),
  .paragraph--type--text p:where(:not(.like_h3, .like_h2)) {
    margin-block-start: var(--sp1);
    margin-block-end: var(--sp1);
  }
}

.text-content code,
.cke_editable code,
.paragraph--type--text code {
  background-color: var(--color--gray-100);
}

.text-content pre code,
.cke_editable pre code,
.paragraph--type--text pre code {
  display: block;
  overflow: auto;
  padding-block: var(--sp);
  padding-inline-start: var(--sp);
  padding-inline-end: var(--sp);
  color: var(--color-text-neutral-soft);
}

.text-content blockquote,
.cke_editable blockquote,
.paragraph--type--text blockquote {
  position: relative;
  margin-block: var(--sp2);
  margin-inline-start: 0;
  margin-inline-end: 0;
  padding-inline-start: var(--sp2);
  letter-spacing: -0.01em;
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  line-height: var(--sp2);
}

.text-content blockquote:before,
.cke_editable blockquote:before,
.paragraph--type--text blockquote:before {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  content: "\201C";
  color: var(--color--primary-60);
  font-size: 3.375rem;
}

.text-content blockquote:after,
.cke_editable blockquote:after,
.paragraph--type--text blockquote:after {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: var(--sp0-5);
  height: calc(100% - 1.875rem);
  margin-inline-start: 0.25rem;
  content: "";
  background: var(--color--gray-100);
}

@media (min-width: 43.75rem) {

  .text-content blockquote,
  .cke_editable blockquote,
  .paragraph--type--text blockquote {
    font-size: 2rem;
    line-height: var(--sp3);
  }
}

@media (min-width: 62.5rem) {

  .text-content blockquote,
  .cke_editable blockquote,
  .paragraph--type--text blockquote {
    font-size: 1.375rem;
    line-height: calc(3.5 * var(--sp));
  }
}

@media (min-width: 43.75rem) {

  .text-content,
  .cke_editable,
  .paragraph--type--text {
    font-size: 1.375rem;
    line-height: var(--sp2);
  }
}

.paragraph--type--text:not(.path-frontpage) h2,
.paragraph--type--text:not(.path-frontpage) .like_h2 {
  font-family: var(--font-sans);
  font-weight: normal;
}

.paragraph--type--text:not(.path-frontpage) h3,
.paragraph--type--text:not(.path-frontpage) .like_h3 {
  font-family: var(--font-sans);
}

.path-frontpage .paragraph--type--text h2 {
  font-family: var(--font-serif);
  font-weight: bold;
}

/**
 * Special colors for footer that has a dark background.
 */

.site-footer .text-content {
  color: inherit;
}

.site-footer .text-content * {
  color: inherit;
}

.site-footer .text-content a {
  text-decoration: underline;
  color: var(--color--white);
  box-shadow: none;
}

.site-footer .text-content a:hover {
  text-decoration: none;
  color: var(--color--white);
  box-shadow: none;
}

/**
 * Decrease font-size for blockquote placed in sidebar region.
 */

@media (min-width: 62.5rem) {

  .region--sidebar .text-content blockquote {
    font-size: 1.5rem;
    line-height: var(--sp2);
  }
}
