/*
 * Elevate blog – listing page + single post (Figma "Blog Page", node 764:354).
 * Loaded by the "Elevate Blog" plugin on single posts and on the blog listing page.
 * Source: elevate-blog/assets/blog.css in the Elevate project folder.
 */

:root {
  --ee-bahama: #00658F;
  --ee-cerulean: #009BDB;
  --ee-niagara: #0CB596;
  --ee-carnation: #FA625F;
  --ee-purple: #6F42A1;
  --ee-yellow: #FFF100;
  --ee-athens: #F6F8F9;
  --ee-botticelli: #CFE3EC;
  --ee-mischka: #D4D9DE;
  --ee-gable: #173238;
  --ee-text: #575A5B;
}

.ee-card, .ee-featured, .ee-filters, .ee-post-head, .ee-filed, .ee-author-box, .ee-toc, .ee-download, .ee-search, .ee-pagination, .ee-grid-status, .ee-grid-empty {
  font-family: "Raleway", sans-serif;
}

/* ---------- Shared bits ---------- */
.ee-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ee-bahama);
  white-space: nowrap;
}

.ee-cat__slash {
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--ee-cat, var(--ee-niagara));
  transform: rotate(15deg);
  margin: 0 2px;
}

.ee-cat--lg {
  font-size: 13px;
  letter-spacing: 1.4px;
}

.ee-cat--lg .ee-cat__slash {
  width: 5px;
  height: 18px;
}

.ee-avatar {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ee-botticelli);
  color: var(--ee-bahama);
  font-weight: 700;
  line-height: 1;
}

.ee-avatar img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.ee-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ee-text);
}

.ee-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 38px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.38;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.ee-btn--yellow {
  background: var(--ee-yellow);
  color: var(--ee-bahama);
}

.ee-btn--sm {
  padding: 10px 30px;
  font-size: 14px;
  font-weight: 600;
}

a.ee-btn--yellow:hover,
a.ee-btn--yellow:focus-visible,
.ee-featured:hover .ee-btn--yellow {
  background: var(--ee-purple);
  color: #FFFFFF;
}

.ee-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--ee-mischka);
  border-radius: 999px;
  background: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ee-gable);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.ee-chip:hover,
.ee-chip:focus-visible {
  border-color: var(--ee-niagara);
  color: var(--ee-gable);
}

.ee-chip.is-active {
  border-color: var(--ee-niagara);
  background: var(--ee-niagara);
  color: #FFFFFF;
  font-weight: 600;
}

.ee-chip--sm {
  padding: 8px 16px;
}

.ee-slash-heading {
  position: relative;
  margin: 0;
  padding-left: 33px;
  font-family: "Raleway", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ee-bahama);
}

.ee-slash-heading::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  width: 15px;
  height: 41px;
  background: var(--ee-yellow);
  transform: skewX(-12deg);
}

.ee-slash-heading span {
  color: var(--ee-cerulean);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ---------- Post card (Figma Blog/Post Card 794:1260) ---------- */
.ee-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ee-mischka);
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(23, 50, 56, 0.06);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ee-card:hover,
.ee-card:focus-visible {
  border-color: var(--ee-cerulean);
  box-shadow: 0 18px 36px rgba(23, 50, 56, 0.14);
  transform: translateY(-4px);
}

.ee-card__img {
  display: block;
  height: 219px;
  overflow: hidden;
  background: var(--ee-botticelli);
}

.ee-card__img img,
.ee-card__img .ee-img-empty {
  display: block;
  width: 100% !important;
  height: 100% !important; /* the theme sets img { height: auto } */
  max-width: none;
  object-fit: cover;
}

.ee-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 26px;
}

.ee-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ee-card__time {
  font-size: 12px;
  font-weight: 500;
  color: var(--ee-text);
  white-space: nowrap;
}

.ee-card__title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ee-bahama);
}

.ee-card:hover .ee-card__title,
.ee-card:focus-visible .ee-card__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ee-card__excerpt {
  flex: 1 1 auto;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 23px;
  color: var(--ee-text);
}

.ee-card__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--ee-mischka);
}

.ee-card__author {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.25;
}

.ee-card__author strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  color: var(--ee-gable);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ee-card__author span {
  font-size: 12px;
  color: var(--ee-text);
}

.ee-card__btn {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ee-yellow);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ee-bahama);
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s;
}

.ee-card:hover .ee-card__btn,
.ee-card:focus-visible .ee-card__btn {
  background: var(--ee-purple);
  color: #FFFFFF;
}

.ee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.ee-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- Featured card (Figma 768:105) ---------- */
.ee-featured {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--ee-mischka);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 18px 40px rgba(23, 50, 56, 0.08);
  text-decoration: none;
}

.ee-featured__img {
  position: relative;
  flex: 0 0 56.4%;
  min-height: 522px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 81.5% 100%, 0 100%);
}

.ee-featured__img img,
.ee-featured__img .ee-img-empty {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
}

.ee-featured__skew {
  position: absolute;
  top: 0;
  right: 3.9%;
  width: 27.5%;
  height: 100%;
}

.ee-featured__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  padding: 48px 56px 48px 28px;
}

.ee-featured__tags {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ee-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ee-yellow);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ee-gable);
}

.ee-featured__title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--ee-bahama);
}

.ee-featured:hover .ee-featured__title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ee-featured__excerpt {
  font-size: 17px;
  font-weight: 500;
  line-height: 27px;
  color: var(--ee-text);
}

.ee-byline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ee-byline__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}

.ee-byline__text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ee-gable);
}

.ee-byline__text span {
  font-size: 13px;
  color: var(--ee-text);
}

.ee-byline__text i {
  padding: 0 4px;
  font-style: normal;
}

/* ---------- Listing: hero, filters, search, pagination ---------- */
.ee-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 8px 8px 8px 20px;
  border: 1px solid var(--ee-mischka);
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 6px 18px rgba(23, 50, 56, 0.06);
}

.ee-search:focus-within {
  border-color: var(--ee-cerulean);
}

.ee-search__icon {
  flex: 0 0 auto;
}

.ee-search__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.ee-search__field input {
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ee-gable);
}

.ee-search__placeholder {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  overflow: hidden;
  font-size: 16px;
  color: var(--ee-text);
  opacity: 0.8;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateY(-50%);
  pointer-events: none;
}

.ee-search__field input:not(:placeholder-shown) + .ee-search__placeholder,
.ee-search__field input:focus + .ee-search__placeholder {
  display: none;
}

.ee-search__btn {
  flex: 0 0 auto;
  margin: 0;
  padding: 11px 22px;
  border: 0;
  border-radius: 7px;
  background: var(--ee-bahama);
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ee-search__btn:hover,
.ee-search__btn:focus-visible {
  background: #00597A;
}

.ee-filters {
  display: flex;
  flex-direction: column;
  gap: 31px;
  padding: 36px 22px 44px;
  border-radius: 21px;
  background: #FFFFFF;
  box-shadow: 0 15px 33px rgba(0, 0, 0, 0.05), 0 59px 59px rgba(0, 0, 0, 0.04);
}

.ee-filters__rule {
  width: 100%;
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid #E6E9EC;
}

.ee-sort select {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 10px 40px 10px 18px;
  border: 1px solid var(--ee-mischka);
  border-radius: 8px;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11.13 6.7'%3E%3Cpath d='M.57.57l5 5 5-5' fill='none' stroke='%23173238' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
  -webkit-appearance: none;
  appearance: none;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ee-gable);
  cursor: pointer;
}

.ee-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ee-grid-status {
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ee-text);
}

.ee-grid-status strong {
  color: var(--ee-gable);
}

.ee-grid-status a {
  margin-left: 8px;
  font-weight: 600;
  color: var(--ee-cerulean);
}

.ee-grid-empty {
  padding: 48px 24px;
  border: 1px dashed var(--ee-mischka);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ee-text);
  text-align: center;
}

.ee-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 56px;
}

.ee-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--ee-mischka);
  border-radius: 8px;
  background: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
  color: var(--ee-gable);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.ee-pagination a.page-numbers:hover,
.ee-pagination a.page-numbers:focus-visible {
  border-color: var(--ee-bahama);
}

.ee-pagination .page-numbers.current {
  border-color: var(--ee-gable);
  background: var(--ee-yellow);
  font-weight: 600;
}

.ee-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  color: var(--ee-text);
}

.ee-pagination .prev,
.ee-pagination .next {
  padding: 0 18px;
}

.ee-pagination a.next {
  border-color: var(--ee-bahama);
  background: var(--ee-bahama);
  color: #FFFFFF;
}

.ee-pagination a.next:hover,
.ee-pagination a.next:focus-visible {
  background: #00597A;
}

.ee-pagination .is-disabled {
  opacity: 0.45;
}

/* ---------- Single post: header + featured image ---------- */
.ee-post-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.ee-post-head__title {
  margin: 0;
  font-family: "Raleway", sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--ee-bahama);
}

.ee-post-head__title .ee-accent {
  color: var(--ee-niagara);
}

.ee-post-head__dek {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 31px;
  color: var(--ee-text);
}

.ee-post-head__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding-top: 10px;
}

.ee-byline__text--lg {
  flex: 1 1 auto;
  gap: 5px;
}

.ee-byline__text--lg strong {
  font-size: 15px;
}

.ee-byline__text--lg strong a {
  color: inherit;
  text-decoration: none;
}

.ee-byline__text--lg strong a:hover {
  color: var(--ee-bahama);
  text-decoration: underline;
}

.ee-byline__text--lg span {
  font-size: 14px;
}

.ee-share {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ee-text);
}

.ee-share__copy {
  height: 40px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--ee-mischka);
  border-radius: 20px;
  background: #FFFFFF;
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ee-bahama);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.ee-share__copy:hover,
.ee-share__copy:focus-visible {
  border-color: var(--ee-bahama);
}

.ee-share__copy.is-copied {
  border-color: var(--ee-niagara);
  background: var(--ee-niagara);
  color: #FFFFFF;
}

/* Photo 1180 wide centered on the 1440 frame (100px in from the left), slashes on both sides */
.ee-post-img {
  position: relative;
  height: 500px;
  overflow: hidden !important;
}

.ee-post-img__frame {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6.94%;
  right: 11.11%;
  overflow: hidden;
}

.ee-post-img__frame img,
.ee-post-img__frame .ee-img-empty {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
}

.ee-post-img__s {
  position: absolute;
  top: 0;
  height: 100%;
  z-index: 1;
}

.ee-post-img__s--l1 { left: -19.44%; width: 30.83%; }
.ee-post-img__s--l2 { left: 4.65%; width: 6.7%; }
.ee-post-img__s--r1 { left: 84.65%; width: 6.7%; }
.ee-post-img__s--r2 { left: 85.83%; width: 19.55%; }

/* ---------- Single post: article body ---------- */
.ee-article-content {
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 30px;
  color: var(--ee-gable);
}

.ee-article-content p,
.ee-article-content li {
  font-size: 18px;
  line-height: 30px;
  color: var(--ee-gable);
}

.ee-article-content p {
  margin: 0 0 24px;
}

.ee-article-content a {
  font-weight: 600;
  color: var(--ee-bahama);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ee-article-content a:hover {
  color: var(--ee-cerulean);
}

.ee-article-content strong,
.ee-article-content b {
  font-weight: 700;
}

/* Lead: older posts use <h2 class="big-header">, newer ones the "Lead paragraph" format */
.ee-article-content h2.big-header,
.ee-article-content .ee-lead {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
  color: var(--ee-gable);
  text-transform: none;
  letter-spacing: 0;
}

.ee-article-content h2,
.ee-article-content h3,
.ee-article-content h4,
.ee-article-content h5,
.ee-article-content h6 {
  margin: 44px 0 24px;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ee-bahama);
  text-transform: none;
  letter-spacing: 0;
  scroll-margin-top: 120px;
}

.ee-article-content h2,
.ee-article-content h5 {
  font-size: 30px;
}

.ee-article-content h3 {
  font-size: 24px;
}

.ee-article-content h4,
.ee-article-content h6 {
  font-size: 21px;
}

.ee-article-content > :first-child,
.ee-article-content .elementor-widget-container > :first-child {
  margin-top: 0;
}

.ee-article-content ul,
.ee-article-content ol {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.ee-article-content ul li,
.ee-article-content ol li {
  position: relative;
  margin: 0 0 16px;
  padding-left: 48px;
}

.ee-article-content ul li::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ee-niagara);
}

.ee-article-content ol {
  counter-reset: ee-ol;
}

.ee-article-content ol li {
  counter-increment: ee-ol;
}

.ee-article-content ol li::before {
  content: counter(ee-ol);
  position: absolute;
  left: 0;
  top: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ee-carnation);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: #FFFFFF;
}

.ee-article-content ol:nth-of-type(even) li::before {
  background: var(--ee-niagara);
}

.ee-article-content img {
  height: auto;
  max-width: 100%;
  border-radius: 12px;
}

.ee-article-content blockquote,
.ee-callout {
  margin: 0 0 24px;
  padding: 20px 28px 20px 24px;
  border-left: 5px solid var(--ee-cerulean);
  border-radius: 12px;
  background: var(--ee-botticelli);
  font-size: 17px;
  line-height: 27px;
}

.ee-article-content blockquote p,
.ee-callout p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.ee-callout--key {
  border-left-color: var(--ee-yellow);
  background: #FFFBE0;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

.ee-callout::before {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  line-height: 1.3;
  text-transform: uppercase;
}

.ee-callout--key::before {
  content: "Key point";
  color: #8A7900;
}

.ee-callout--tip::before {
  content: "Tip";
  color: var(--ee-bahama);
}

/* Filed under + author box */
.ee-filed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--ee-mischka);
}

.ee-filed__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ee-text);
}

.ee-filed__back {
  margin-left: auto;
}

.ee-author-box {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 24px;
  padding: 28px 32px;
  border-radius: 16px;
  background: var(--ee-athens);
}

.ee-author-box__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ee-author-box__text p {
  margin: 0;
}

.ee-author-box__name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ee-bahama);
}

.ee-author-box__role {
  font-size: 15px;
  font-weight: 500;
  color: var(--ee-gable);
}

.ee-author-box__bio {
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  color: var(--ee-text);
}

.ee-author-box__link {
  padding-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ee-cerulean);
  text-decoration: none;
}

.ee-author-box__link:hover {
  text-decoration: underline;
}

/* Sidebar: table of contents + download */
.ee-toc {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 24px;
  border: 1px solid var(--ee-mischka);
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(23, 50, 56, 0.06);
}

.ee-toc[hidden] {
  display: none;
}

.ee-toc__title {
  font-size: 14px;
  font-weight: 700;
}

.ee-toc__progress {
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ee-athens);
}

.ee-toc__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: var(--ee-yellow);
}

.ee-toc__list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.ee-toc__item {
  position: relative;
  padding-left: 15px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ee-text);
  text-decoration: none;
  transition: color 0.2s;
}

.ee-toc__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: var(--ee-mischka);
  transition: background-color 0.2s;
}

.ee-toc__item:hover,
.ee-toc__item.is-active {
  color: var(--ee-bahama);
}

.ee-toc__item.is-active::before {
  background: var(--ee-cerulean);
}

.ee-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding: 15px 20px;
  border: 1.5px solid var(--ee-bahama);
  border-radius: 10px;
  background: #FFFFFF;
  font-family: "Raleway", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ee-bahama);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.ee-download:hover,
.ee-download:focus-visible {
  background: var(--ee-bahama);
  color: #FFFFFF;
}

.ee-download.is-busy {
  cursor: progress;
  opacity: 0.7;
}

/* ---------- Page layout: listing page (Elementor containers with these classes) ---------- */
/* Hero: photos and color bars are placed in container units (cqw) so the 1440 composition scales */
.ee-blog-hero {
  container-type: inline-size;
  position: relative;
  overflow: hidden !important; /* Elementor's .e-con rule otherwise wins */
  min-height: clamp(440px, 36.1vw, 640px);
  padding: 0 !important;
  background: #FFFFFF;
}

.ee-blog-hero::before,
.ee-blog-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.ee-blog-hero::before { /* blue bar under the left photo */
  left: -9.03cqw;
  top: 31.04cqw;
  width: 29.86cqw;
  height: 5.07cqw;
  background: var(--ee-cerulean);
  clip-path: polygon(6.1% 0, 100% 0, 93.9% 100%, 0 100%);
}

.ee-blog-hero::after { /* yellow bar above the right photo */
  left: 80.27cqw;
  top: -10.38cqw;
  width: 29.43cqw;
  height: 15.36cqw;
  background: var(--ee-yellow);
  clip-path: polygon(16.6% 0, 100% 0, 81.9% 100%, 0 100%);
}

.ee-blog-hero .ee-blog-hero__photo {
  position: absolute !important;
  z-index: 0;
  margin: 0 !important;
}

.ee-blog-hero .ee-blog-hero__photo img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain;
}

.ee-blog-hero .ee-blog-hero__photo--l {
  left: -9.65cqw;
  top: -0.93cqw;
  width: 41.67cqw !important;
  height: 31.25cqw;
}

.ee-blog-hero .ee-blog-hero__photo--r {
  left: 70.83cqw;
  top: 6.11cqw;
  width: 33.35cqw !important;
  height: 30cqw;
}

.ee-blog-hero .ee-blog-hero__content {
  position: relative;
  z-index: 2;
  width: 488px !important;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: clamp(64px, 8.4cqw, 121px) 0 64px !important;
  gap: 20px;
}

.ee-blog-hero .ee-blog-hero__content .elementor-widget-text-editor p {
  margin: 0;
}

.ee-blog-hero .ee-blog-hero__search {
  width: 100%;
  margin-top: 4px;
}

.ee-blog-body {
  padding: 48px 40px 96px !important;
  background: var(--ee-athens);
}

.ee-blog-body > .e-con-inner,
.ee-blog-body .ee-blog-inner {
  width: 100% !important;
  max-width: 1240px !important;
  margin: 0 auto;
}

.ee-blog-body .ee-blog-featured {
  margin-bottom: 56px;
}

.ee-blog-body .ee-blog-row {
  display: grid !important;
  grid-template-columns: 391px minmax(0, 1fr) !important;
  gap: 34px !important;
  align-items: start !important;
}

.ee-blog-body .ee-blog-row > * {
  width: auto !important;
  max-width: none !important;
}

/* ---------- Page layout: single post template ---------- */
.ee-post-top {
  padding: 56px 40px 48px !important;
}

.ee-post-top .ee-post-top__inner,
.ee-post-top > .elementor-widget {
  width: 100% !important;
  max-width: 880px !important; /* Elementor: .e-con > .elementor-widget { max-width: 100% } loads later */
  margin: 0 auto;
}

.ee-post-imgwrap {
  padding: 0 !important;
}

.ee-post-body {
  /* !important throughout: Elementor's .e-con rules (gap, justify-content, align-items) load after this file */
  display: grid !important;
  grid-template-columns: minmax(0, 800px) 340px !important;
  justify-content: center !important;
  align-items: start !important;
  gap: 40px !important;
  padding: 72px 40px 90px !important;
}

.ee-post-body > * {
  width: auto !important;
  max-width: none !important;
}

.ee-post-main {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  min-width: 0;
}

/* Sticky sidebar: stays in view while the article scrolls (Elementor sets .e-con { position: relative }) */
.ee-post-side {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: calc(var(--ee-sticky-top, 32px) + var(--wp-admin--admin-bar--height, 0px)) !important;
  align-self: start !important;
}

/* Inline CTA (Figma 770:1156): blue card with three slashes on the right */
.ee-inline-cta {
  position: relative;
  overflow: hidden !important;
  padding: 36px 40px 40px !important;
  border-radius: 16px;
  background: var(--ee-bahama);
}

.ee-inline-cta::before,
.ee-inline-cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 84px;
  pointer-events: none;
}

.ee-inline-cta::before {
  left: 76.1%;
  background: var(--ee-niagara);
  clip-path: polygon(73.8% 0, 100% 0, 26.2% 100%, 0 100%);
  box-shadow: none;
}

.ee-inline-cta::after {
  left: 78.75%;
  background: var(--ee-cerulean);
  clip-path: polygon(73.8% 0, 100% 0, 26.2% 100%, 0 100%);
}

.ee-inline-cta > .elementor-element {
  position: relative;
  z-index: 1;
  max-width: 470px !important;
}

.ee-inline-cta .elementor-widget-text-editor p {
  margin: 0;
}

/* Keep reading */
.ee-related {
  padding: 88px 40px 96px !important;
  background: var(--ee-athens);
}

.ee-related > .elementor-element {
  width: 100% !important;
  max-width: 1240px !important;
  margin-left: auto;
  margin-right: auto;
}

.ee-related .ee-related__head {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.ee-related .ee-related__head > * {
  width: auto !important;
}

.ee-bar-title .elementor-heading-title {
  position: relative;
  padding-left: 33px;
}

.ee-bar-title .elementor-heading-title::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0.06em;
  width: 15px;
  height: 1.02em;
  background: var(--ee-yellow);
  transform: skewX(-12deg);
}

.ee-bar-title .ee-accent {
  color: var(--ee-cerulean);
}

.ee-related__all .elementor-heading-title a {
  color: var(--ee-cerulean);
  text-decoration: none;
}

.ee-related__all .elementor-heading-title a:hover {
  text-decoration: underline;
}

/* ---------- Reused sections: newsletter (homepage) and "Want to talk?" band (Grant Writing page) ---------- */
.ee-newsletter {
  --ee-form-max-w: 814px;
}

.ee-newsletter .ee-newsletter-form {
  width: 100% !important;
  max-width: var(--ee-form-max-w) !important;
}

.ee-newsletter .ee-newsletter-frame {
  display: block;
  width: 100%;
  border: 0;
}

.ee-gw-talk {
  position: relative;
  overflow: hidden !important;
}

.ee-gw-stripes { --ee-stripe: rgba(255, 255, 255, .07); }
.ee-gw-talk { --ee-stripe: rgba(0, 90, 80, .10); }

.ee-gw-stripes::before,
.ee-gw-stripes::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  pointer-events: none;
  background: var(--ee-stripe);
}

.ee-gw-stripes::before {
  left: -8%;
  clip-path: polygon(0 0, 52% 0, 30% 100%, 0 100%);
}

.ee-gw-stripes::after {
  right: -8%;
  clip-path: polygon(48% 0, 100% 0, 100% 100%, 26% 100%);
}

.ee-gw-stripes > .elementor-element { position: relative; z-index: 1; }
.ee-gw-band-content { width: 100% !important; }
.ee-gw-talk .ee-gw-talk-copy { max-width: 640px !important; }
.ee-gw-talk .ee-gw-talk-copy p { margin: 0 0 8px; text-wrap: balance; }
.ee-gw-talk .ee-gw-talk-copy p:last-child { margin-bottom: 0; }
.ee-gw-button .elementor-button { box-shadow: none; }
.ee-gw-button .elementor-button:focus-visible { outline: 3px solid #1A2C32; outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .ee-blog-body .ee-blog-row { grid-template-columns: 320px minmax(0, 1fr) !important; gap: 28px !important; }
  .ee-post-body { grid-template-columns: minmax(0, 1fr) 300px !important; }
}

@media (max-width: 1024px) {
  .ee-blog-hero { min-height: 0; }
  .ee-blog-hero::before, .ee-blog-hero::after, .ee-blog-hero .ee-blog-hero__photo { display: none !important; }
  .ee-blog-hero .ee-blog-hero__content { padding: 64px 0 !important; }
  .ee-blog-body .ee-blog-row { grid-template-columns: minmax(0, 1fr) !important; }
  .ee-post-body { grid-template-columns: minmax(0, 1fr) !important; padding-top: 48px !important; }
  .ee-post-side { display: none !important; } /* no sidebar room: the TOC would sit above or far below the article */
}

@media (max-width: 767px) {
  .ee-blog-hero .ee-blog-hero__content { padding: 48px 0 !important; }
  .ee-blog-body { padding: 32px 20px 64px !important; }
  .ee-blog-body .ee-blog-featured { margin-bottom: 32px; }
  .ee-post-top { padding: 40px 20px 32px !important; }
  .ee-post-body { padding: 36px 20px 64px !important; }
  .ee-inline-cta { padding: 28px 24px 32px !important; }
  .ee-inline-cta::before, .ee-inline-cta::after { display: none; }
  .ee-related { padding: 56px 20px 64px !important; }
  .ee-related .ee-related__head { flex-direction: column !important; align-items: flex-start; margin-bottom: 24px; }
  .ee-gw-stripes::before, .ee-gw-stripes::after { width: 55%; opacity: .7; }
}

@media (max-width: 1200px) {
  .ee-featured__title { font-size: 30px; }
  .ee-post-head__title { font-size: 44px; }
}

@media (max-width: 1024px) {
  .ee-featured { flex-direction: column; }
  .ee-featured__img { flex-basis: auto; min-height: 320px; clip-path: none; }
  .ee-featured__skew { display: none; }
  .ee-featured__body { padding: 32px; }
  .ee-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ee-grid--3 > :nth-child(3) { display: none; }
  .ee-post-img { height: 380px; }
}

@media (max-width: 767px) {
  .ee-grid,
  .ee-grid--3 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ee-grid--3 > :nth-child(3) { display: flex; }
  .ee-card__img { height: 200px; }
  .ee-card__body { padding: 20px; }
  .ee-featured__img { min-height: 220px; }
  .ee-featured__body { gap: 14px; padding: 24px 20px 28px; }
  .ee-featured__title { font-size: 26px; }
  .ee-featured__excerpt { font-size: 16px; line-height: 25px; }
  .ee-filters { gap: 24px; padding: 28px 20px; }
  .ee-slash-heading { font-size: 28px; }
  .ee-pagination { justify-content: center; margin-top: 36px; }
  .ee-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; }
  .ee-search__btn { padding: 11px 16px; }
  .ee-post-head { gap: 16px; }
  .ee-post-head__title { font-size: 34px; }
  .ee-post-head__dek { font-size: 18px; line-height: 28px; }
  .ee-post-head__meta { flex-wrap: wrap; }
  .ee-byline__text--lg { flex-basis: calc(100% - 64px); }
  .ee-share { padding-left: 64px; }
  .ee-post-img { height: 240px; }
  .ee-post-img__frame { left: 0; right: 0; }
  .ee-post-img__s--l1, .ee-post-img__s--r2 { display: none; }
  .ee-post-img__s--l2 { left: -3%; width: 9%; }
  .ee-post-img__s--r1 { left: auto; right: -3%; width: 9%; }
  .ee-article-content,
  .ee-article-content p,
  .ee-article-content li { font-size: 17px; line-height: 28px; }
  .ee-article-content h2,
  .ee-article-content h5 { font-size: 26px; }
  .ee-article-content h3 { font-size: 22px; }
  .ee-article-content h2.big-header,
  .ee-article-content .ee-lead { font-size: 19px; line-height: 30px; }
  .ee-filed__back { margin-left: 0; }
  .ee-author-box { flex-direction: column; gap: 16px; padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .ee-card { transition: none; }
  .ee-card:hover, .ee-card:focus-visible { transform: none; }
}

/* ---------- Print / "Download the article (PDF)": article only ---------- */
@media print {
  [data-elementor-type="header"],
  [data-elementor-type="footer"],
  .ee-post-side,
  .ee-related,
  .ee-inline-cta,
  .ee-share,
  .ee-filed,
  .ee-post-img__s,
  .cky-consent-container,
  .cky-btn-revisit-wrapper,
  #pi_tracking_opt_in_div,
  .elementor-widget-template {
    display: none !important;
  }

  .ee-post-body,
  .ee-post-main {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .ee-post-img { height: 300px; }
  .ee-post-img__frame { left: 0; right: 0; }
  .ee-post-head__title { font-size: 32px; }
  .ee-article-content, .ee-article-content p, .ee-article-content li { font-size: 12pt; line-height: 1.5; }
  .ee-article-content h2, .ee-article-content h5 { font-size: 18pt; break-after: avoid; }
  .ee-author-box { break-inside: avoid; }
  .ee-callout, .ee-article-content blockquote { break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
