themes/olivero/css/components/text-content.css
/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */

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

.text-content,
.cke_editable {
  color: var(--color-text-neutral-medium);
  font-family: var(--font-serif);
  line-height: var(--sp1-5);

  /*
    @todo

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

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

:is(.text-content, .cke_editable) a:where(:not(.button)) {
  color: var(--color-text-primary-medium);
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  overflow-wrap: break-word;
}

@supports (box-shadow: none) {
  :is(.text-content, .cke_editable) a:where(:not(.button)) {
    transition: box-shadow 0.3s cubic-bezier(0.55, 0.085, 0, 0.99);
    -webkit-text-decoration: none;
    text-decoration: none;
    box-shadow: inset 0 -2px 0 0 var(--color--primary-50);
  }

  :is(:is(.text-content, .cke_editable) a:where(:not(.button))):hover {
    -webkit-text-decoration: underline;
    text-decoration: underline;
    color: var(--color--black);
    box-shadow: inset 0 -2em 0 0 var(--color--primary-80);
    text-decoration-color: var(--color--primary-80);
  }
}

:is(.text-content, .cke_editable) p {
  margin-block-start: var(--sp);
  margin-block-end: var(--sp);
}

:is(:is(.text-content, .cke_editable) p):first-child {
  margin-block-start: 0;
}

:is(:is(.text-content, .cke_editable) p):last-child {
  margin-block-end: 0;
}

@media (min-width: 43.75rem) {
  :is(.text-content, .cke_editable) p {
    margin-block-start: var(--sp2);
    margin-block-end: var(--sp2);
  }
}

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

:is(.text-content, .cke_editable) 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);
}

:is(.text-content, .cke_editable) 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);
}

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

:is(:is(.text-content, .cke_editable) 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) {
  :is(.text-content, .cke_editable) blockquote {
    font-size: 2rem;
    line-height: var(--sp3);
  }
}

@media (min-width: 62.5rem) {
  :is(.text-content, .cke_editable) blockquote {
    font-size: 2.5rem;
    line-height: var(--sp3-5);
  }
}

@media (min-width: 43.75rem) {
  .text-content,
  .cke_editable {
    font-size: 1.125rem;
    line-height: var(--sp2);
  }
}

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

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

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

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

:is(:is(.site-footer .text-content) a):hover {
  -webkit-text-decoration: none;
  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);
  }
}
