:root {
  --eeca-page-bg: var(--wp--preset--color--eeca-page-bg);
  --eeca-surface: var(--wp--preset--color--eeca-surface);
  --eeca-forest: var(--wp--preset--color--eeca-forest);
  --eeca-forest-hover: var(--wp--custom--eeca--color--forest-hover);
  --eeca-forest-active: var(--wp--custom--eeca--color--forest-active);
  --eeca-forest-strong: var(--wp--custom--eeca--color--forest-strong);
  --eeca-forest-border: var(--wp--custom--eeca--color--forest-border);
  --eeca-forest-tint: var(--wp--custom--eeca--color--forest-tint);
  --eeca-sage: var(--wp--preset--color--eeca-sage);
  --eeca-sage-soft: var(--wp--preset--color--eeca-sage-soft);
  --eeca-sky: var(--wp--preset--color--eeca-sky);
  --eeca-sky-strong: var(--wp--custom--eeca--color--sky-strong);
  --eeca-sky-border: var(--wp--custom--eeca--color--sky-border);
  --eeca-sky-tint: var(--wp--custom--eeca--color--sky-tint);
  --eeca-amber: var(--wp--preset--color--eeca-amber);
  --eeca-amber-strong: var(--wp--custom--eeca--color--amber-strong);
  --eeca-amber-border: var(--wp--custom--eeca--color--amber-border);
  --eeca-amber-tint: var(--wp--custom--eeca--color--amber-tint);
  --eeca-blush: var(--wp--preset--color--eeca-blush);
  --eeca-blush-strong: var(--wp--custom--eeca--color--blush-strong);
  --eeca-blush-border: var(--wp--custom--eeca--color--blush-border);
  --eeca-blush-tint: var(--wp--custom--eeca--color--blush-tint);
  --eeca-active-soft: var(--wp--custom--eeca--color--active-soft);
  --eeca-logo-blue: var(--wp--custom--eeca--color--logo-blue);
  --eeca-text: var(--wp--preset--color--eeca-text);
  --eeca-text-secondary: var(--wp--preset--color--eeca-text-secondary);
  --eeca-text-muted: var(--wp--preset--color--eeca-text-muted);
  --eeca-border: var(--wp--preset--color--eeca-border);
  --eeca-focus: var(--eeca-forest);
  --eeca-focus-ring: 0 0 0 0.1875rem var(--eeca-focus);
  --eeca-shadow-soft: var(--wp--custom--eeca--shadow--soft);
  --wp--custom--eeca--layout--header-offset: 7rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--wp--custom--eeca--layout--header-offset);
}

body {
  min-width: 0;
  background: var(--eeca-page-bg);
  color: var(--eeca-text);
  font-synthesis-weight: none;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: color-mix(in srgb, var(--eeca-forest) 16%, transparent);
}

body.admin-bar {
  --wp--custom--eeca--layout--header-offset: calc(
    7rem + var(--wp-admin--admin-bar--height, 32px)
  );
}

:where(a, button, input, select, textarea) {
  font: inherit;
}

:where(
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  summary:focus-visible,
  textarea:focus-visible,
  [tabindex]:focus-visible
) {
  outline: 0.1875rem solid transparent;
  outline-offset: 0.125rem;
  box-shadow: var(--eeca-focus-ring);
}

:where(img, iframe, object, embed, video) {
  max-width: 100%;
}

:where(iframe, object, embed, video) {
  border: 0;
}

:where(.eeca-single-article, .wp-block-post-content, .eeca-content-panel)
  :where(iframe, object, embed) {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: clamp(18rem, 62vw, 42rem);
  border: 0.0625rem solid var(--eeca-border);
  border-radius: var(--wp--custom--eeca--radius--card);
  background: var(--eeca-surface);
}

:where(.eeca-single-article, .wp-block-post-content, .eeca-content-panel)
  :where(
    object[type="application/pdf"],
    object[data$=".pdf" i],
    object[data*=".pdf?" i],
    embed[type="application/pdf"],
    embed[src$=".pdf" i],
    embed[src*=".pdf?" i],
    iframe[src$=".pdf" i],
    iframe[src*=".pdf?" i]
  ) {
  height: 22.5rem;
  max-height: 22.5rem;
  min-height: 0;
  border-radius: var(--wp--custom--eeca--radius--card);
  background: var(--eeca-surface);
  box-shadow: 0 0.25rem 0.75rem rgb(22 49 40 / 6%);
}

:where(.eeca-single-article, .wp-block-post-content, .eeca-content-panel)
  :where(
    iframe[src*="youtube.com" i],
    iframe[src*="youtu.be" i],
    iframe[src*="vimeo.com" i]
  ) {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

:where(.eeca-single-article, .wp-block-post-content, .eeca-content-panel)
  :where(.pdfemb-viewer, .pdfemb-pagescontainer) {
  max-width: 100%;
  overflow-x: auto;
}

:where(.eeca-single-article, .wp-block-post-content, .eeca-content-panel)
  .pdfemb-viewer {
  box-sizing: border-box;
  width: 100%;
  border: 0.0625rem solid var(--eeca-border);
  border-radius: var(--wp--custom--eeca--radius--card);
  background: var(--eeca-surface);
  box-shadow: 0 0.25rem 0.75rem rgb(22 49 40 / 6%);
  overflow: hidden;
}

:where(.eeca-single-article, .wp-block-post-content, .eeca-content-panel)
  .pdfemb-pagescontainer {
  -webkit-overflow-scrolling: touch;
  background: var(--eeca-surface);
}

@media (min-width: 48rem) {
  :where(.eeca-single-article, .wp-block-post-content, .eeca-content-panel)
    :where(
      object[type="application/pdf"],
      object[data$=".pdf" i],
      object[data*=".pdf?" i],
      embed[type="application/pdf"],
      embed[src$=".pdf" i],
      embed[src*=".pdf?" i],
      iframe[src$=".pdf" i],
      iframe[src*=".pdf?" i]
    ) {
    height: 32.5rem;
    max-height: 32.5rem;
  }
}

.eeca-single-article table,
.wp-block-post-content table,
.eeca-content-panel table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}

.eeca-single-article :where(th, td),
.wp-block-post-content :where(th, td),
.eeca-content-panel :where(th, td) {
  max-width: min(34rem, 88vw);
  overflow-wrap: anywhere;
  vertical-align: top;
}

:where(.eeca-single-article, .wp-block-post-content, .eeca-content-panel)
  a[href$=".pdf" i],
:where(.eeca-single-article, .wp-block-post-content, .eeca-content-panel)
  a[href*=".pdf?" i] {
  overflow-wrap: anywhere;
}

:where(h1, h2, h3) {
  text-wrap: balance;
}

:where(p, li, figcaption) {
  text-wrap: pretty;
}

.wp-site-blocks {
  min-height: 100vh;
}

.wp-block-post-content :where(p, li) a:not(.wp-block-button__link),
.wp-block-term-description :where(p, li) a:not(.wp-block-button__link),
.eeca-content-panel :where(p, li) a:not(.wp-block-button__link),
.eeca-site-footer p a:not(.wp-block-button__link) {
  text-decoration: underline;
  text-underline-offset: 0.125em;
}

.wp-block-post-content li > a:only-child {
  display: inline-flex;
  min-height: 1.5rem;
  align-items: center;
}

.screen-reader-text {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  margin: -0.0625rem;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}

.wp-block-button {
  --eeca-button-fill: var(--eeca-forest);
  --eeca-button-fill-hover: var(--eeca-forest-hover);
  --eeca-button-outline-border: var(--eeca-border);
  --eeca-button-outline-color: var(--eeca-forest);
  --eeca-button-outline-hover-bg: var(--eeca-sage-soft);
  --eeca-button-outline-hover-border: var(--eeca-forest);
  --eeca-button-outline-hover-color: var(--eeca-forest-active);
  --eeca-button-text-color: var(--eeca-forest);
  --eeca-button-text-hover-color: var(--eeca-forest-active);
}

.wp-block-button.eeca-button--sky,
.wp-block-button.eeca-button--sky-outline {
  --eeca-button-fill: var(--eeca-sky-strong);
  --eeca-button-fill-hover: color-mix(
    in srgb,
    var(--eeca-sky-strong) 88%,
    var(--eeca-text)
  );
  --eeca-button-outline-border: var(--eeca-sky-border);
  --eeca-button-outline-color: var(--eeca-sky-strong);
  --eeca-button-outline-hover-bg: var(--eeca-sky-tint);
  --eeca-button-outline-hover-border: var(--eeca-sky);
  --eeca-button-outline-hover-color: var(--eeca-sky-strong);
  --eeca-button-text-color: var(--eeca-sky-strong);
  --eeca-button-text-hover-color: var(--eeca-sky);
}

.wp-block-button.eeca-button--amber,
.wp-block-button.eeca-button--amber-outline {
  --eeca-button-fill: var(--eeca-amber-strong);
  --eeca-button-fill-hover: color-mix(
    in srgb,
    var(--eeca-amber-strong) 88%,
    var(--eeca-text)
  );
  --eeca-button-outline-border: var(--eeca-amber-border);
  --eeca-button-outline-color: var(--eeca-amber-strong);
  --eeca-button-outline-hover-bg: var(--eeca-amber-tint);
  --eeca-button-outline-hover-border: var(--eeca-amber);
  --eeca-button-outline-hover-color: var(--eeca-amber-strong);
  --eeca-button-text-color: var(--eeca-amber-strong);
  --eeca-button-text-hover-color: var(--eeca-amber);
}

.wp-block-button.eeca-button--blush,
.wp-block-button.eeca-button--blush-outline {
  --eeca-button-fill: var(--eeca-blush-strong);
  --eeca-button-fill-hover: color-mix(
    in srgb,
    var(--eeca-blush-strong) 88%,
    var(--eeca-text)
  );
  --eeca-button-outline-border: var(--eeca-blush-border);
  --eeca-button-outline-color: var(--eeca-blush-strong);
  --eeca-button-outline-hover-bg: var(--eeca-blush-tint);
  --eeca-button-outline-hover-border: var(--eeca-blush);
  --eeca-button-outline-hover-color: var(--eeca-blush-strong);
  --eeca-button-text-color: var(--eeca-blush-strong);
  --eeca-button-text-hover-color: var(--eeca-blush);
}

.wp-block-button__link {
  box-sizing: border-box;
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  text-wrap: balance;
  white-space: normal;
  overflow-wrap: anywhere;
}

.is-style-eeca-primary .wp-block-button__link,
.wp-block-button.is-style-eeca-primary .wp-block-button__link {
  min-height: 2.75rem;
  border: 0.0625rem solid var(--eeca-button-fill);
  background: var(--eeca-button-fill);
  color: var(--eeca-surface);
}

.is-style-eeca-primary .wp-block-button__link:hover,
.wp-block-button.is-style-eeca-primary .wp-block-button__link:hover {
  border-color: var(--eeca-button-fill-hover);
  background: var(--eeca-button-fill-hover);
  color: var(--eeca-surface);
}

.eeca-button--blush .wp-block-button__link,
.wp-block-button.eeca-button--blush .wp-block-button__link {
  border-color: var(--eeca-button-fill);
  background: var(--eeca-button-fill);
  color: var(--eeca-surface);
}

.eeca-button--blush .wp-block-button__link:hover,
.wp-block-button.eeca-button--blush .wp-block-button__link:hover {
  border-color: var(--eeca-button-fill-hover);
  background: var(--eeca-button-fill-hover);
  color: var(--eeca-surface);
}

.eeca-side-card--blush .wp-block-button.is-style-eeca-primary .wp-block-button__link {
  border-color: var(--eeca-blush-strong);
  background: var(--eeca-blush-strong);
}

.eeca-side-card--amber .wp-block-button {
  --eeca-button-fill: var(--eeca-amber-strong);
  --eeca-button-fill-hover: color-mix(
    in srgb,
    var(--eeca-amber-strong) 88%,
    var(--eeca-text)
  );
  --eeca-button-outline-border: var(--eeca-amber-border);
  --eeca-button-outline-color: var(--eeca-amber-strong);
  --eeca-button-outline-hover-bg: var(--eeca-amber-tint);
  --eeca-button-outline-hover-border: var(--eeca-amber);
  --eeca-button-outline-hover-color: var(--eeca-amber-strong);
  --eeca-button-text-color: var(--eeca-amber-strong);
  --eeca-button-text-hover-color: var(--eeca-amber);
}

.eeca-side-card--blush
  .wp-block-button.is-style-eeca-primary
  .wp-block-button__link:hover {
  border-color: color-mix(in srgb, var(--eeca-blush-strong) 88%, var(--eeca-text));
  background: color-mix(in srgb, var(--eeca-blush-strong) 88%, var(--eeca-text));
}

.is-style-eeca-secondary .wp-block-button__link,
.wp-block-button.is-style-eeca-secondary .wp-block-button__link {
  min-height: 2.75rem;
  border: 0.0625rem solid var(--eeca-button-outline-border);
  background: var(--eeca-surface);
  color: var(--eeca-button-outline-color);
}

.eeca-button--sky-outline .wp-block-button__link,
.wp-block-button.eeca-button--sky-outline .wp-block-button__link,
.eeca-button--amber-outline .wp-block-button__link,
.wp-block-button.eeca-button--amber-outline .wp-block-button__link,
.eeca-button--blush-outline .wp-block-button__link,
.wp-block-button.eeca-button--blush-outline .wp-block-button__link {
  border-color: var(--eeca-button-outline-border);
  background: var(--eeca-surface);
  color: var(--eeca-button-outline-color);
}

.eeca-button--sky-outline .wp-block-button__link:hover,
.wp-block-button.eeca-button--sky-outline .wp-block-button__link:hover,
.eeca-button--amber-outline .wp-block-button__link:hover,
.wp-block-button.eeca-button--amber-outline .wp-block-button__link:hover,
.eeca-button--blush-outline .wp-block-button__link:hover,
.wp-block-button.eeca-button--blush-outline .wp-block-button__link:hover {
  border-color: var(--eeca-button-outline-hover-border);
  background: var(--eeca-button-outline-hover-bg);
  color: var(--eeca-button-outline-hover-color);
}

.is-style-eeca-secondary .wp-block-button__link:hover,
.wp-block-button.is-style-eeca-secondary .wp-block-button__link:hover {
  border-color: var(--eeca-button-outline-hover-border);
  background: var(--eeca-button-outline-hover-bg);
  color: var(--eeca-button-outline-hover-color);
}

.is-style-eeca-text-cta .wp-block-button__link,
.is-style-eeca-card-cta .wp-block-button__link,
.wp-block-button.is-style-eeca-text-cta .wp-block-button__link,
.wp-block-button.is-style-eeca-card-cta .wp-block-button__link {
  min-height: 2.75rem;
  padding-inline: 0;
  border: 0;
  background: transparent;
  color: var(--eeca-button-text-color);
  font-weight: 800;
}

.is-style-eeca-text-cta .wp-block-button__link:hover,
.is-style-eeca-card-cta .wp-block-button__link:hover,
.wp-block-button.is-style-eeca-text-cta .wp-block-button__link:hover,
.wp-block-button.is-style-eeca-card-cta .wp-block-button__link:hover {
  color: var(--eeca-button-text-hover-color);
  text-decoration: underline;
}

.wp-block-search__input {
  min-height: 2.75rem;
  border: 0.0625rem solid var(--eeca-border);
  border-radius: var(--wp--custom--eeca--radius--control);
  background: var(--eeca-surface);
  color: var(--eeca-text);
}

.wp-block-search__button {
  min-height: 2.75rem;
  border-radius: var(--wp--custom--eeca--radius--control);
  background: var(--eeca-forest);
  color: var(--eeca-surface);
  font-weight: 800;
}

.wp-block-search__button:hover {
  background: var(--eeca-forest-hover);
}

.wp-block-file {
  display: grid;
  gap: var(--wp--preset--spacing--md);
  padding: var(--wp--preset--spacing--lg);
  border: 0.0625rem solid var(--eeca-border);
  border-radius: var(--wp--custom--eeca--radius--large-card);
  background: var(--eeca-page-bg);
}

.wp-block-file .wp-block-file__button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  border-radius: var(--wp--custom--eeca--radius--control);
  background: var(--eeca-amber-strong);
  color: var(--eeca-surface);
  font-weight: 800;
  line-height: 1.2;
  padding: 0.625rem 1rem;
}

.wp-block-file a:not(.wp-block-file__button) {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.wp-block-file .wp-block-file__button:hover {
  background: var(--eeca-amber);
  color: var(--eeca-text);
}

.eeca-badge {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 auto;
  place-self: flex-start start;
  min-width: 0;
  max-width: 100%;
  min-height: 1.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  white-space: normal;
  border-radius: 999px;
  padding: 0.3125rem 0.75rem;
  font-size: var(--wp--preset--font-size--step-minus-1);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.eeca-badge,
.eeca-badge a {
  word-break: normal;
}

.eeca-post-topic-list--badge a {
  color: inherit;
  text-decoration: none;
}

.eeca-badge--sky {
  background: var(--eeca-sky-tint);
  color: var(--eeca-sky-strong);
}

.eeca-badge--amber {
  background: var(--eeca-amber-tint);
  color: var(--eeca-amber-strong);
}

.eeca-badge--blush {
  background: var(--eeca-blush-tint);
  color: var(--eeca-blush-strong);
}

.eeca-badge--forest {
  background: var(--eeca-forest-tint);
  color: var(--eeca-forest-strong);
}

.eeca-badge--neutral {
  background: var(--eeca-surface);
  color: var(--eeca-text-muted);
  box-shadow: inset 0 0 0 0.0625rem var(--eeca-border);
}

.eeca-meta-list {
  display: grid;
  gap: var(--wp--preset--spacing--xs);
  padding: 0;
  margin-block: var(--wp--preset--spacing--md);
  list-style: none;
}

.eeca-meta-list li {
  display: grid;
  gap: 0.15rem;
  padding-block: var(--wp--preset--spacing--xs);
  border-bottom: 0.0625rem solid var(--eeca-border);
}

.eeca-meta-label {
  color: var(--eeca-text-muted);
  font-size: var(--wp--preset--font-size--step-minus-1);
  font-weight: 800;
}

.eeca-meta-value {
  color: var(--eeca-text);
  font-weight: 800;
}

.eeca-meta-empty {
  color: var(--eeca-text-muted);
}

@media (max-width: 74rem) {
  :root,
  body {
    --wp--custom--eeca--layout--header-offset: 6rem;
  }

  body.admin-bar {
    --wp--custom--eeca--layout--header-offset: calc(
      6rem + var(--wp-admin--admin-bar--height, 32px)
    );
  }
}

.eeca-meta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--sm);
  margin-top: var(--wp--preset--spacing--md);
}

.eeca-meta-action {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  border: 0.0625rem solid var(--eeca-forest);
  border-radius: var(--wp--custom--eeca--radius--control);
  background: var(--eeca-forest);
  color: var(--eeca-surface);
  font-weight: 800;
  padding-inline: var(--wp--preset--spacing--md);
  text-decoration: none;
}

.eeca-meta-action:hover {
  border-color: var(--eeca-forest-hover);
  background: var(--eeca-forest-hover);
  color: var(--eeca-surface);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .eeca-skip-link {
    transition-duration: 0.001ms;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.001ms;
    animation-duration: 0.001ms;
    animation-iteration-count: 1;
  }
}
