/**
 * Single Post Content V2
 * Author byline + 3-dot menu, title, "Updated:" line, post body, and a footer
 * with social share buttons + views/comments/like, all inside a white card on
 * the cream page background.
 */

.elementor-column
  > .elementor-element-populated:has(.elementor-widget-agency-single-post-v2),
.e-con:has(> .e-con-inner > .elementor-widget-agency-single-post-v2),
.e-con:has(.elementor-widget-agency-single-post-v2) {
  --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px;
  padding: 0 !important;
}
.elementor-section:has(.elementor-widget-agency-single-post-v2),
.elementor-section:has(.elementor-widget-agency-single-post-v2) > .elementor-container,
.e-con:has(.elementor-widget-agency-single-post-v2) {
  max-width: 100% !important; width: 100% !important;
}

.aew-spv2 {
  --aew-cards: var(--e-global-color-aew-cards, #FFFFFF); --aew-background: var(--e-global-color-aew-background, #F4F4F4); --aew-lines: var(--e-global-color-aew-lines, #DDDDDD);
  --aew-misc-accent: var(--e-global-color-aew-misc-accent, #666666); --aew-secondary-bg: var(--e-global-color-aew-secondary-bg, #333333);
  --aew-text: var(--e-global-color-aew-text, #1A1A1A); --aew-cta: var(--e-global-color-aew-cta, #444444); --aew-cta-hover: var(--e-global-color-aew-cta-hover, #2B2B2B);
  width: 100%;
  background-color: var(--aew-spv2-bg, var(--aew-background));
}

.aew-spv2 *, .aew-spv2 *::before, .aew-spv2 *::after { box-sizing: border-box; }

/* Design-system width model: X gutter on the outer block; inner caps at a true 1440. */
.aew-spv2 { padding-left: 40px; padding-right: 40px; box-sizing: border-box; }

.aew-spv2__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 0;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.aew-spv2__card {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 48px;
  background-color: var(--aew-spv2-card-bg, var(--aew-cards));
  border: 1px solid var(--aew-spv2-card-border, var(--aew-lines));
  border-radius: 24px;
}

/* ── Byline ──────────────────────────────────────────────────────────────── */
.aew-spv2__byline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aew-spv2__avatar img,
.aew-spv2__avatar .avatar {
  display: block;
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.aew-spv2__meta {
  margin: 0;
  flex: 1 1 auto;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: var(--aew-spv2-meta, var(--aew-misc-accent));
}

.aew-spv2__author { font-weight: 700; }
.aew-spv2__dot { margin: 0 0.4em; }

/* ── 3-dot share menu ────────────────────────────────────────────────────── */
.aew-spv2__share-menu { position: relative; flex-shrink: 0; }

.aew-spv2 button.aew-spv2__dots-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  background: transparent; border: 0; box-shadow: none; cursor: pointer;
}
.aew-spv2__dots { display: inline-flex; flex-direction: column; gap: 3px; }
.aew-spv2__dots span { width: 4px; height: 4px; border-radius: 50%; background-color: var(--aew-spv2-stat, var(--aew-misc-accent)); }

.aew-spv2__menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 5;
  min-width: 140px; padding: 6px;
  background-color: var(--aew-cards);
  border: 1px solid var(--aew-spv2-divider, var(--aew-lines));
  border-radius: 12px; box-shadow: 0 10px 28px rgba(20,28,25,0.14);
}
.aew-spv2__menu[hidden] { display: none; }
.aew-spv2 button.aew-spv2__menu-item {
  display: block; width: 100%; padding: 9px 12px;
  font-family: "Lato", sans-serif; font-size: 15px; text-align: left;
  color: var(--aew-text); background: transparent; border: 0; border-radius: 8px; cursor: pointer;
}
.aew-spv2__menu-item:hover { background-color: rgba(20,28,25,0.06); }
.aew-spv2__menu-item.is-copied { color: var(--aew-secondary-bg); font-weight: 700; }

/* ── Title + updated ─────────────────────────────────────────────────────── */
.aew-spv2 .aew-spv2__title {
  margin: 18px 0 0;
  font-family: "Teko", sans-serif; font-weight: 600;
  font-size: 40px; line-height: 100%; text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--aew-spv2-title, var(--aew-secondary-bg));
}

.aew-spv2__updated {
  margin: 8px 0 0;
  font-family: "Lato", sans-serif; font-size: 14px;
  color: var(--aew-spv2-meta, var(--aew-misc-accent));
}

/* ── Post body ───────────────────────────────────────────────────────────── */
.aew-spv2__content {
  margin-top: 28px;
  font-family: "Lato", sans-serif; font-weight: 400;
  font-size: 18px; line-height: 160%;
  color: var(--aew-spv2-body, var(--aew-text));
}

.aew-spv2__content > *:first-child { margin-top: 0; }
.aew-spv2__content p { margin: 0 0 1.25em; }
.aew-spv2__content img,
.aew-spv2__content figure { max-width: 100%; height: auto; border-radius: 16px; }
.aew-spv2__content figure { margin: 1.75em 0; }
.aew-spv2__content figure img { border-radius: 16px; }
.aew-spv2__content h2,
.aew-spv2__content h3 {
  font-family: "Teko", sans-serif; font-weight: 600; line-height: 100%;
  text-transform: uppercase; color: var(--aew-spv2-title, var(--aew-secondary-bg));
  margin: 1.5em 0 0.5em;
}
.aew-spv2__content h2 { font-size: 30px; }
.aew-spv2__content h3 { font-size: 24px; }
.aew-spv2__content a { color: var(--aew-spv2-link, var(--aew-cta)); text-underline-offset: 2px; }
.aew-spv2__content ul,
.aew-spv2__content ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.aew-spv2__content blockquote {
  margin: 1.5em 0; padding: 0.5em 0 0.5em 1.25em;
  border-left: 3px solid var(--aew-cta);
  font-style: italic; color: var(--aew-misc-accent);
}

/* ── Footer: social + stats ──────────────────────────────────────────────── */
.aew-spv2__footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid var(--aew-spv2-divider, var(--aew-lines));
}

.aew-spv2__social { display: inline-flex; align-items: center; gap: 10px; }

.aew-spv2 a.aew-spv2__social-btn,
.aew-spv2 button.aew-spv2__social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  color: var(--aew-spv2-stat, var(--aew-misc-accent));
  background: transparent; border: 0; box-shadow: none; cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s ease, transform 0.15s ease;
}
.aew-spv2__social-btn svg { width: 18px; height: 18px; fill: currentColor; }
.aew-spv2__social-btn:hover { color: var(--aew-cta); transform: translateY(-1px); }

.aew-spv2__stats { display: inline-flex; align-items: center; gap: 20px; }

.aew-spv2 .aew-spv2__stat {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "Lato", sans-serif; font-size: 14px; line-height: 1;
  color: var(--aew-spv2-stat, var(--aew-misc-accent));
  background: transparent; border: 0; text-decoration: none; padding: 0;
}
.aew-spv2 button.aew-spv2__stat { cursor: pointer; }
/* Kill the Elementor kit's button hover chrome (background/shadow) — the like
   stat must stay a bare icon+number on hover/focus. */
.aew-spv2 button.aew-spv2__stat:hover,
.aew-spv2 button.aew-spv2__stat:focus,
.aew-spv2 button.aew-spv2__stat:focus-visible,
.aew-spv2 button.aew-spv2__like:hover,
.aew-spv2 button.aew-spv2__like:focus {
  background: transparent;
  background-color: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
}
.aew-spv2__stat-num { font-variant-numeric: tabular-nums; font-weight: 700; }

/* Un-liked (default) state: explicit color so the outline heart always strokes
   visibly. Without this, removing .is-liked left the heart with no color and it
   rendered white/invisible. */
.aew-spv2 button.aew-spv2__like {
  color: var(--aew-spv2-stat, var(--aew-misc-accent));
}
.aew-spv2__heart { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: fill .15s ease, stroke .15s ease, transform .15s ease; }
.aew-spv2__like:hover .aew-spv2__heart { transform: scale(1.12); }
.aew-spv2 button.aew-spv2__like.is-liked { color: var(--aew-spv2-like, #D2453F); }
.aew-spv2__like.is-liked .aew-spv2__heart { fill: var(--aew-spv2-like, #D2453F); stroke: var(--aew-spv2-like, #D2453F); }

.aew-spv2__empty { font-family: "Lato", sans-serif; font-size: 18px; color: var(--aew-text); }

/* ── Tablet ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* tablet: inner padding inherited (Y64 desktop / X40 outer) */
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .aew-spv2 { padding-left: 16px; padding-right: 16px; }
  .aew-spv2__inner { padding: 32px 0; }
  .aew-spv2__card { padding: 24px 20px; border-radius: 20px; }
  .aew-spv2 .aew-spv2__title { font-size: 28px; }
  .aew-spv2__content { font-size: 16px; }
  .aew-spv2__footer { gap: 14px; }
}
