/* Shared Gutenberg presentation for the editor and published content. */
:is(.entry-content, .editor-styles-wrapper) {
  color: #252a27;
  font-family: 'Fira Sans', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.72;
}

:is(.entry-content, .editor-styles-wrapper) > * {
  margin-block-start: 0;
  margin-block-end: 1.35rem;
}

:is(.entry-content, .editor-styles-wrapper) > *:last-child {
  margin-bottom: 0;
}

:is(.entry-content, .editor-styles-wrapper) :where(h1, h2, h3, h4, h5, h6) {
  margin-block: 1.45em 0.55em;
  color: #252a27;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

:is(.entry-content, .editor-styles-wrapper) h1 {
  font-size: clamp(3.4rem, 5.2vw, 4.8rem);
}

:is(.entry-content, .editor-styles-wrapper) h2 {
  font-size: clamp(2.05rem, 2.7vw, 2.8rem);
}

:is(.entry-content, .editor-styles-wrapper) h3 {
  font-size: clamp(1.65rem, 2.35vw, 2.2rem);
}

:is(.entry-content, .editor-styles-wrapper) h4 {
  font-size: clamp(1.35rem, 1.7vw, 1.7rem);
}

:is(.entry-content, .editor-styles-wrapper) h5 {
  font-size: 1.16rem;
  letter-spacing: -0.015em;
}

:is(.entry-content, .editor-styles-wrapper) h6 {
  color: #19744c;
  font-family: 'Fira Sans', Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

:is(.entry-content, .editor-styles-wrapper) > :where(h1, h2, h3, h4, h5, h6):first-child,
:is(.entry-content, .editor-styles-wrapper) .wp-block-column > :where(h1, h2, h3, h4, h5, h6):first-child,
:is(.entry-content, .editor-styles-wrapper) .wp-block-group__inner-container > :where(h1, h2, h3, h4, h5, h6):first-child {
  margin-top: 0;
}

:is(.entry-content, .editor-styles-wrapper) :where(h1, h2, h3, h4, h5, h6) + :where(p, ul, ol, blockquote, .wp-block-buttons) {
  margin-top: 0;
}

:is(.entry-content, .editor-styles-wrapper) p {
  margin-block: 0 1.35rem;
}

:is(.entry-content, .editor-styles-wrapper) p + :where(h1, h2, h3, h4, h5, h6),
:is(.entry-content, .editor-styles-wrapper) :where(ul, ol, blockquote, figure, table, pre) + :where(h1, h2, h3, h4, h5, h6) {
  margin-top: 1.65em;
}

:is(.entry-content, .editor-styles-wrapper) a:not(.wp-element-button) {
  color: #19744c;
  font-weight: 600;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

:is(.entry-content, .editor-styles-wrapper) :where(ul, ol) {
  margin-block: 0 1.5rem;
  padding-inline-start: 1.45rem;
}

:is(.entry-content, .editor-styles-wrapper) :where(ul, ol) :where(ul, ol) {
  margin-block: 0.55rem 0;
}

:is(.entry-content, .editor-styles-wrapper) li {
  margin-bottom: 0.42rem;
  padding-inline-start: 0.18rem;
}

:is(.entry-content, .editor-styles-wrapper) li::marker {
  color: #19744c;
  font-weight: 700;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-columns {
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-block: 2rem 2.75rem;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-column > *:last-child {
  margin-bottom: 0;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-column > h2 {
  font-size: clamp(1.85rem, 2.2vw, 2.4rem);
}

:is(.entry-content, .editor-styles-wrapper) blockquote,
:is(.entry-content, .editor-styles-wrapper) .wp-block-quote {
  position: relative;
  margin-block: 2.5rem;
  padding: clamp(1.65rem, 3.5vw, 2.35rem) clamp(1.6rem, 4vw, 2.6rem);
  padding-inline-start: clamp(4.7rem, 8vw, 6rem);
  border: 1px solid rgba(25, 116, 76, 0.14);
  border-radius: clamp(1.35rem, 3vw, 1.85rem);
  background: linear-gradient(145deg, #fbfdfc 0%, #f2f8f5 100%);
  box-shadow: 0 18px 48px rgba(28, 69, 52, 0.065);
}

:is(.entry-content, .editor-styles-wrapper) blockquote::before,
:is(.entry-content, .editor-styles-wrapper) .wp-block-quote::before {
  content: '\201c';
  position: absolute;
  inset-block-start: clamp(1.6rem, 3.5vw, 2.2rem);
  inset-inline-start: clamp(1.45rem, 3.2vw, 2.15rem);
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(25, 116, 76, 0.12);
  border-radius: 50%;
  place-items: center;
  padding-block-end: 0.22rem;
  color: #397e5e;
  background: rgba(232, 244, 237, 0.82);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

:is(.entry-content, .editor-styles-wrapper) blockquote p,
:is(.entry-content, .editor-styles-wrapper) .wp-block-quote p {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.56;
  letter-spacing: -0.018em;
}

:is(.entry-content, .editor-styles-wrapper) :where(blockquote, .wp-block-quote) p + p {
  margin-top: 0.9rem;
}

:is(.entry-content, .editor-styles-wrapper) :where(blockquote, .wp-block-quote) :where(em, i) {
  font-style: normal;
}

:is(.entry-content, .editor-styles-wrapper) :where(blockquote, .wp-block-quote) :where(strong, b) {
  font-weight: 600;
}

:is(.entry-content, .editor-styles-wrapper) blockquote cite,
:is(.entry-content, .editor-styles-wrapper) .wp-block-quote cite {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
  color: #52645a;
  font-family: 'Fira Sans', Arial, sans-serif;
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

:is(.entry-content, .editor-styles-wrapper) blockquote cite::before,
:is(.entry-content, .editor-styles-wrapper) .wp-block-quote cite::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  flex: 0 0 auto;
  background: rgba(25, 116, 76, 0.35);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-pullquote {
  margin-block: 3rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 6vw, 4.5rem);
  border: 1px solid rgba(25, 116, 76, 0.12);
  border-radius: clamp(1.5rem, 3vw, 2rem);
  background: #f7faf8;
  text-align: center;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-pullquote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-pullquote blockquote::before {
  display: none;
}

:is(.entry-content, .editor-styles-wrapper) :where(figure, .wp-block-image, .wp-block-gallery, .wp-block-video, .wp-block-embed) {
  margin-block: 2rem 2.5rem;
}

:is(.entry-content, .editor-styles-wrapper) :where(.wp-block-image img, .wp-block-gallery img, .wp-block-video video) {
  border-radius: 1.1rem;
}

:is(.entry-content, .editor-styles-wrapper) :where(figcaption, .wp-element-caption) {
  margin-top: 0.65rem;
  color: #66716b;
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: center;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-gallery {
  gap: 0.85rem;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-buttons {
  gap: 0.75rem;
  margin-block: 1.75rem 2rem;
}

:is(.entry-content, .editor-styles-wrapper) :where(.wp-block-button__link, .wp-element-button) {
  min-height: 48px;
  padding: 0.78rem 1.35rem;
  border: 2px solid #19744c;
  border-radius: 999px;
  color: #fff;
  background: #19744c;
  box-shadow: 0 9px 24px rgba(25, 116, 76, 0.16);
  font-family: 'Fira Sans', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

:is(.entry-content, .editor-styles-wrapper) :where(.wp-block-button__link, .wp-element-button):hover {
  border-color: #105638;
  background: #105638;
  transform: translateY(-1px);
}

:is(.entry-content, .editor-styles-wrapper) .is-style-outline > :where(.wp-block-button__link, .wp-element-button) {
  color: #19744c;
  background: transparent;
  box-shadow: none;
}

:is(.entry-content, .editor-styles-wrapper) .is-style-outline > :where(.wp-block-button__link, .wp-element-button):hover {
  color: #fff;
  background: #19744c;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-separator {
  width: clamp(5rem, 16vw, 8rem);
  height: 0;
  margin: 3.5rem auto;
  border: 0;
  border-top: 1px solid rgba(25, 116, 76, 0.22);
  background: transparent;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-separator.is-style-wide {
  width: 100%;
  border-top-color: rgba(25, 116, 76, 0.15);
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-separator.is-style-dots {
  width: auto;
  height: auto;
  border: 0;
  color: rgba(25, 116, 76, 0.48);
  background: transparent;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-separator.is-style-dots::before {
  padding-inline-start: 0.55em;
  font-size: 1.05rem;
  letter-spacing: 0.55em;
}

:is(.entry-content, .editor-styles-wrapper) :where(.wp-block-table, table) {
  margin-block: 2rem 2.5rem;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-table {
  overflow-x: auto;
  border: 1px solid #dce7e0;
  border-radius: 1rem;
}

:is(.entry-content, .editor-styles-wrapper) table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

:is(.entry-content, .editor-styles-wrapper) :where(th, td) {
  padding: 0.9rem 1rem;
  border: 1px solid #dce7e0;
  text-align: left;
  vertical-align: top;
}

:is(.entry-content, .editor-styles-wrapper) th {
  color: #174832;
  background: #eef6f1;
  font-weight: 700;
}

:is(.entry-content, .editor-styles-wrapper) :where(pre, .wp-block-code) {
  overflow-x: auto;
  margin-block: 2rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid #cfe0d7;
  border-radius: 0.9rem;
  color: #eaf5ef;
  background: #17382a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.65;
}

:is(.entry-content, .editor-styles-wrapper) :not(pre) > code {
  padding: 0.15em 0.38em;
  border-radius: 0.35rem;
  color: #105638;
  background: #e8f2ed;
  font-size: 0.9em;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-preformatted {
  white-space: pre-wrap;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-media-text {
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-block: 2.5rem 3rem;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-media-text__media img {
  border-radius: 1.1rem;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-cover {
  overflow: hidden;
  margin-block: 2.5rem;
  border-radius: 1.25rem;
}

:is(.entry-content, .editor-styles-wrapper) details,
:is(.entry-content, .editor-styles-wrapper) .wp-block-details {
  margin-block: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid #d5e3dc;
  border-radius: 0.85rem;
  background: #fff;
}

:is(.entry-content, .editor-styles-wrapper) summary {
  color: #174832;
  cursor: pointer;
  font-weight: 700;
}

:is(.entry-content, .editor-styles-wrapper) summary + * {
  margin-top: 1rem;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-block: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid #dce7e0;
  border-radius: 0.85rem;
  background: #f7faf8;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-file__button {
  margin-left: auto;
  border-radius: 999px;
  background: #19744c;
  font-weight: 700;
}

:is(.entry-content, .editor-styles-wrapper) .wp-block-group.has-background {
  margin-block: 2.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 1.25rem;
}

@media (max-width: 700px) {
  :is(.entry-content, .editor-styles-wrapper) {
    font-size: 1rem;
  }

  :is(.entry-content, .editor-styles-wrapper) h1 {
    font-size: clamp(2.55rem, 13vw, 3.55rem);
  }

  :is(.entry-content, .editor-styles-wrapper) h2 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  :is(.entry-content, .editor-styles-wrapper) h3 {
    font-size: clamp(1.55rem, 7.5vw, 2rem);
  }

  :is(.entry-content, .editor-styles-wrapper) .wp-block-columns {
    gap: 2rem;
  }

  :is(.entry-content, .editor-styles-wrapper) blockquote,
  :is(.entry-content, .editor-styles-wrapper) .wp-block-quote {
    padding: 4.65rem 1.35rem 1.55rem;
    border-radius: 1.35rem;
  }

  :is(.entry-content, .editor-styles-wrapper) blockquote::before,
  :is(.entry-content, .editor-styles-wrapper) .wp-block-quote::before {
    inset-block-start: 1.25rem;
    inset-inline-start: 1.25rem;
  }

  :is(.entry-content, .editor-styles-wrapper) blockquote p,
  :is(.entry-content, .editor-styles-wrapper) .wp-block-quote p {
    font-size: 1.2rem;
    line-height: 1.55;
  }

  :is(.entry-content, .editor-styles-wrapper) .wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
    padding: 1.25rem 0 0;
  }
}
