@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Instrument+Sans:wdth,wght@75..100,400..700&display=swap");

/**
 * Shared typography for content entered by editors.
 * Templates add .editor-content for component copy and .entry-content for
 * long-form pages, posts and SEO copy. The WordPress editor uses the same file.
 */

:root {
  --editorial-black: var(--color-black, #000);
  --editorial-white: var(--color-white, #fff);
  --editorial-yellow: var(--color-yellow, #ffe500);
  --editorial-green: var(--color-green, #009241);
  --editorial-paper: var(--color-paper, #f4f3ed);
  --editorial-border: var(--color-border, #cacac5);
}

body#tinymce,
.editor-styles-wrapper {
  color: rgb(0 0 0 / .78);
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.68;
}

body#tinymce {
  padding: 20px !important;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.entry-content {
    color: rgb(0 0 0 / .78);
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.5;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) > :first-child {
  margin-top: 0;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) > :last-child {
  margin-bottom: 0;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) > * + * {
  margin-top: 1.15em;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) p {
  margin-bottom: 0;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) h1,
:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) h2,
:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) h3,
:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) h4,
:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) h5,
:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) h6 {
  color: var(--editorial-black);
  font-weight: 700;
  font-variation-settings: "wdth" 90;
  letter-spacing: -.025em;
  line-height: 1.12;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) h1 {
  margin-top: 0;
  font-size: clamp(40px, 6vw, 72px);
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) h2 {
  margin-top: 1.25em;
  font-size: clamp(32px, 4vw, 54px);
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) h3 {
  margin-top: 1.35em;
  font-size: clamp(25px, 3vw, 36px);
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) h4 {
  margin-top: 1.45em;
  font-size: clamp(21px, 2vw, 27px);
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) h5 {
  margin-top: 1.5em;
  font-size: 1.08em;
}

:where(.entry-content, .editor-styles-wrapper, body#tinymce) h6 {
  margin-top: 1.5em;
  font-size: .92em;
  letter-spacing: .02em;
  text-transform: uppercase;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) ul,
:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) ol {
  margin-bottom: 0;
  padding-inline-start: clamp(1.35em, 3vw, 2em);
  list-style-position: outside;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) ul {
  list-style-type: disc;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) ol {
  list-style-type: decimal;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) ul ul {
  list-style-type: circle;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) ul ul ul {
  list-style-type: square;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) ol ol {
  list-style-type: lower-alpha;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) ol ol ol {
  list-style-type: lower-roman;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) li {
  padding-inline-start: .25em;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) li + li {
  margin-top: .65em;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) li > :is(ul, ol) {
  margin-top: .65em;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) li > p + p,
:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) li > p + :is(ul, ol),
:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) li > :is(h2, h3, h4, h5, h6) + :is(p, ul, ol) {
  margin-top: .6em;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) li > :is(h2, h3, h4, h5, h6):first-child {
  margin-top: 0;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) li::marker {
  color: var(--editorial-black);
  font-weight: 600;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) dl {
  margin-bottom: 0;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) dt {
  color: var(--editorial-black);
  font-weight: 700;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) dd {
  margin: .35em 0 1em;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--editorial-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) a:hover,
:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) a:focus-visible {
  color: var(--editorial-green);
  text-decoration-color: currentColor;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) blockquote {
  margin-inline: 0;
  padding: clamp(20px, 3vw, 32px);
  border-left: 6px solid var(--editorial-yellow);
  background: var(--editorial-paper);
  color: var(--editorial-black);
  font-size: 1.1em;
  font-weight: 600;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) blockquote > :first-child {
  margin-top: 0;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) blockquote > :last-child {
  margin-bottom: 0;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) hr {
  height: 1px;
  margin-block: clamp(32px, 5vw, 56px);
  border: 0;
  background: var(--editorial-border);
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) img,
:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) video,
:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) iframe {
  max-width: 100%;
  height: auto;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) figure {
  max-width: 100%;
  margin-inline: 0;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) .aligncenter {
  margin-inline: auto;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) .alignleft {
  margin-right: clamp(20px, 3vw, 36px);
  margin-bottom: 20px;
  float: left;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) .alignright {
  margin-left: clamp(20px, 3vw, 36px);
  margin-bottom: 20px;
  float: right;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce)::after {
  display: table;
  clear: both;
  content: "";
}

@media (max-width: 575px) {
  :where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) .alignleft,
  :where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) .alignright {
    margin-inline: 0;
    float: none;
  }
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) figcaption,
:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) .wp-caption-text {
  margin-top: 10px;
  color: rgb(0 0 0 / .6);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) th,
:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) td {
  min-width: 140px;
  padding: 12px 14px;
  border: 1px solid var(--editorial-border);
  text-align: left;
  vertical-align: top;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) th {
  background: var(--editorial-paper);
  color: var(--editorial-black);
  font-weight: 700;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) code,
:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) pre {
  font-family: "IBM Plex Mono", monospace;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) code {
  padding: .12em .35em;
  background: var(--editorial-paper);
  font-size: .9em;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) pre {
  max-width: 100%;
  padding: 20px;
  overflow-x: auto;
  background: var(--editorial-black);
  color: var(--editorial-white);
  font-size: .86em;
  line-height: 1.6;
  white-space: pre;
}

:where(.editor-content, .entry-content, .editor-styles-wrapper, body#tinymce) pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

/* Keep long-form typography stronger than component-level heading rules. */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--editorial-black);
  font-weight: 700;
  font-variation-settings: "wdth" 90;
  letter-spacing: -.025em;
  line-height: 1.12;
}

.entry-content h1 {
  margin-top: 0;
  font-size: clamp(40px, 6vw, 72px);
}

.entry-content h2 {
  margin-top: 1.25em;
  font-size: clamp(32px, 4vw, 54px);
}

.entry-content h3 {
  margin-top: 1.35em;
  font-size: clamp(25px, 3vw, 36px);
}

.entry-content h4 {
  margin-top: 1.45em;
  font-size: clamp(21px, 2vw, 27px);
}

.entry-content h5 {
  margin-top: 1.5em;
  font-size: 1.08em;
}

.entry-content h6 {
  margin-top: 1.5em;
  font-size: .92em;
  letter-spacing: .02em;
  text-transform: uppercase;
}

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

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

.entry-content ul ul {
  list-style-type: circle;
}

.entry-content ul ul ul {
  list-style-type: square;
}

.entry-content ol ol {
  list-style-type: lower-alpha;
}

.entry-content ol ol ol {
  list-style-type: lower-roman;
}

.entry-content li + li {
  margin-top: .65em;
}

.entry-content li > :is(h2, h3, h4, h5, h6):first-child {
  margin-top: 0;
}

/* Preserve the spacing and colours of component intros. */
.faq-block__intro > .editor-content {
  max-width: 390px;
  margin-top: 24px;
  font-size: 16px;
  line-height: 24px;
}

.contact-details__intro > .editor-content,
.contact-form__intro > .editor-content {
  max-width: 430px;
  margin-top: 24px;
  font-size: 16px;
  line-height: 24px;
}

.contact-form__intro > .editor-content,
.process-block__intro > .editor-content {
  color: rgb(255 255 255 / .7);
}

.contact-form .editor-content :is(h1, h2, h3, h4, h5, h6),
.process-block .editor-content :is(h1, h2, h3, h4, h5, h6),
.feature-icons .editor-content :is(h1, h2, h3, h4, h5, h6),
.image-text.is-dark .editor-content :is(h1, h2, h3, h4, h5, h6) {
  color: var(--editorial-white);
}

.process-block__intro > .editor-content {
    max-width: 371px;
    margin-top: 17px;
    font-size: 16px;
    line-height: 1.5;
}

@media (min-width: 992px) {
  .process-block__intro > .editor-content {
    margin-top: 33px;
  }
}
