/* Janitorial Reviews: native EasySocial author and article cards. */
body.jr-brand #es .es-stream-list {
  min-width: 0;
}

body.jr-brand #es .es-stream-item.es-stream-full {
  min-width: 0;
  margin-bottom: 30px;
  border: 1px solid var(--jr-border, rgba(6, 23, 13, .12)) !important;
  border-radius: 26px !important;
  background: var(--jr-surface, #fff) !important;
  box-shadow: 0 12px 34px rgba(6, 23, 13, .09);
  overflow: visible !important;
  scroll-margin-top: 100px;
}

body.jr-brand #es .es-stream-full > .es-stream {
  min-width: 0;
  border-radius: inherit;
  overflow: visible;
}

body.jr-brand #es .es-stream-full .es-stream-meta {
  position: relative;
  isolation: isolate;
  min-height: 0;
  padding: 28px 24px !important;
  border-radius: 25px 25px 0 0;
  background: radial-gradient(ellipse at 50% 0, var(--jr-surface-tint, #eaf7ed), transparent 80%), var(--jr-surface, #fff);
  overflow: visible !important;
}

body.jr-brand #es .es-stream-full .es-stream-meta.jr-has-cover {
  padding-top: 92px !important;
}

body.jr-brand #es .es-stream-full .es-stream-meta > .o-flag {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  text-align: center;
}

body.jr-brand #es .es-stream-full .es-stream-meta > .o-flag > .o-flag__image {
  align-self: center;
  width: auto;
  padding: 0;
}

body.jr-brand #es .es-stream-full .es-stream-meta > .o-flag > .o-flag__body {
  flex: initial;
  width: 100%;
  min-width: 0;
  padding: 0;
}

body.jr-brand #es .es-stream-full .es-stream-avatar .o-avatar-v2 {
  box-sizing: border-box;
  width: 112px !important;
  height: 112px !important;
  min-width: 112px;
  border: 5px solid var(--jr-surface, #fff) !important;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--jr-green-deep, #0b9f2c), 0 12px 24px rgba(6, 23, 13, .16);
}

body.jr-brand #es .es-stream-full .es-stream-avatar .o-avatar-v2__content,
body.jr-brand #es .es-stream-full .es-stream-avatar .o-avatar-v2 img {
  border-radius: inherit;
}

body.jr-brand #es .es-stream-full .es-stream-avatar .o-avatar-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.jr-brand #es .es-stream-full img.jr-stream-cover {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 182px;
  max-height: none;
  border-radius: 25px 25px 0 0;
  object-fit: cover;
  object-position: center;
  opacity: .46;
  -webkit-mask-image: linear-gradient(#000 50%, transparent);
  mask-image: linear-gradient(#000 50%, transparent);
  pointer-events: none;
}

body.jr-brand #es .es-stream-full .es-stream-title {
  color: var(--jr-text, #17221b);
  font-size: 1.125rem !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere;
}

body.jr-brand #es .es-stream-full .es-stream-title > a {
  color: var(--jr-ink, #06170d);
  font-size: 1.25rem;
  font-weight: 800;
}

body.jr-brand #es .es-stream-full .es-stream-meta-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--jr-text-muted, #5e6c64);
  font-size: .9375rem;
}

body.jr-brand #es .es-stream-full .es-stream-control {
  z-index: 5;
  top: 14px;
  right: 14px;
}

body.jr-brand #es .es-stream-full .es-stream-control > .btn-control {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--jr-border, #d4dfd7);
  border-radius: 14px;
  background: var(--jr-surface, #fff);
  color: var(--jr-ink, #06170d);
  box-shadow: 0 4px 12px #06170d10;
}

body.jr-brand #es .es-stream-item .es-actions {
  padding: 18px 22px !important;
  border-radius: 0 0 25px 25px;
  border-color: var(--jr-border, #d4dfd7);
  background: linear-gradient(125deg, var(--jr-surface-soft, #f4f8f5), var(--jr-surface, #fff)) !important;
}

body.jr-brand #es .es-stream-item .es-actions-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.jr-brand #es .es-stream-item .es-actions-list > li {
  float: none !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

body.jr-brand #es .es-stream-item .es-actions-list > li::before {
  display: none;
}

body.jr-brand #es .es-stream-item .es-actions-list > li > a,
body.jr-brand #es .es-stream-item .es-reaction-option > [data-button-main] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--jr-border, #d4dfd7);
  border-radius: 12px;
  background: var(--jr-surface, #fff);
  color: var(--jr-ink, #06170d);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

body.jr-brand #es .es-stream-item .es-actions-list > li > a:hover,
body.jr-brand #es .es-stream-item .es-reaction-option > [data-button-main]:hover {
  border-color: var(--jr-green-deep, #0b9f2c);
  background: var(--jr-surface-tint, #eaf7ed);
  color: var(--jr-green-dark, #087824);
}

body.jr-brand #es .es-stream-full .es-stream-content:not(.t-hidden),
body.jr-brand #es .es-stream-full .es-stream-preview {
  min-width: 0;
  padding: 14px 24px 24px !important;
  color: var(--jr-text, #17221b);
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/* A scoped interior may clip its hero; the stream card keeps menus visible. */
body.jr-brand #es .jr-article-card {
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 10px 0 0;
  border: 1px solid var(--jr-border, rgba(6, 23, 13, .12));
  border-radius: 20px;
  background: var(--jr-surface, #fff);
  color: var(--jr-text, #17221b);
  box-shadow: 0 8px 24px rgba(6, 23, 13, .06);
  overflow: hidden;
  text-align: left;
}

body.jr-brand #es .es-stream-preview:has(> .jr-article-card) {
  container-name: jr-article;
  container-type: inline-size;
}


body.jr-brand #es .jr-article-card :is(.jr-article-media, .es-stream-embed__cover) {
  position: relative;
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  aspect-ratio: 16 / 9;
  background: var(--jr-surface-tint, #eaf7ed);
  overflow: hidden;
}

body.jr-brand #es .jr-article-card :is(.jr-article-media, .es-stream-embed__cover) > a {
  display: block;
  width: 100%;
  height: 100%;
}

body.jr-brand #es .jr-article-card :is(.jr-article-media, .es-stream-embed__cover) img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform .25s ease;
}

body.jr-brand #es .jr-article-card :is(.jr-article-body, [data-jr-article-body]) {
  min-width: 0;
  padding: clamp(20px, 4vw, 32px);
}

body.jr-brand #es .jr-article-card .jr-article-kicker {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 7px 12px;
  border: 1px solid rgba(11, 159, 44, .16);
  border-radius: 999px;
  background: var(--jr-surface-tint, #eaf7ed);
  color: var(--jr-green-dark, #087824);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .075em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

body.jr-brand #es .jr-article-card :is(.jr-article-title, .es-stream-embed__title) {
  margin: 0 0 14px;
  padding: 0;
  color: var(--jr-ink, #06170d);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

body.jr-brand #es .jr-article-card :is(.jr-article-title, .es-stream-embed__title) a {
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: .16em;
}

body.jr-brand #es .jr-article-card .jr-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 0 0 18px;
  color: var(--jr-text-muted, #5e6c64);
  font-size: .875rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body.jr-brand #es .jr-article-card :is(.jr-article-excerpt, .es-stream-embed__desc) {
  margin: 0 0 22px;
  padding: 0;
  color: var(--jr-text, #17221b);
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

body.jr-brand #es .jr-article-card .jr-article-excerpt p {
  margin: 0 0 1em;
}

body.jr-brand #es .jr-article-card .jr-article-excerpt p:last-child {
  margin-bottom: 0;
}

body.jr-brand #es .jr-article-card .jr-article-read-link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--jr-ink, #06170d);
  border-radius: 12px;
  background: var(--jr-ink, #06170d);
  color: var(--jr-surface, #fff);
  font-size: .9375rem;
  font-weight: 750;
  line-height: 1.45;
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background-color .18s ease, border-color .18s ease;
}

body.jr-brand #es .jr-article-card .jr-article-read-link::after {
  content: "\2192";
  flex: none;
  font-size: 1.2em;
}

body.jr-brand #es .jr-article-card :is(.jr-article-title, .es-stream-embed__title) a:hover {
  color: var(--jr-green-dark, #087824);
  text-decoration: underline;
}

body.jr-brand #es .jr-article-card .jr-article-read-link:hover {
  border-color: var(--jr-green-dark, #087824);
  background: var(--jr-green-dark, #087824);
  color: var(--jr-surface, #fff);
}

body.jr-brand #es .jr-article-card a:focus-visible,
body.jr-brand #es .es-stream-avatar a:focus-visible {
  outline: 3px solid var(--jr-green-dark, #087824);
  outline-offset: 4px;
}

body.jr-brand #es .jr-stream-loading[hidden] {
  display: none !important;
}

body.jr-brand #es .jr-stream-loading {
  position: relative;
  min-height: 200px;
  margin: 20px 0 30px;
  padding: 28px 24px;
  border: 1px solid var(--jr-border, rgba(6, 23, 13, .12));
  border-radius: 26px;
  background: var(--jr-surface-soft, #f4f8f5);
  color: var(--jr-text-muted, #5e6c64);
  overflow: hidden;
  text-align: center;
}

body.jr-brand #es .jr-stream-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, .65) 46%, transparent 70%);
  transform: translateX(-110%);
  animation: jr-stream-shimmer 1.7s linear infinite;
  pointer-events: none;
}

body.jr-brand #es .jr-stream-loading .jr-skeleton-avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 20px;
  border: 5px solid var(--jr-surface, #fff);
  border-radius: 50%;
  background: var(--jr-border, rgba(6, 23, 13, .12));
}

body.jr-brand #es .jr-stream-loading .jr-skeleton-line {
  width: 70%;
  height: 14px;
  margin: 12px auto;
  border-radius: 6px;
  background: var(--jr-border, rgba(6, 23, 13, .12));
}

body.jr-brand #es .jr-stream-status {
  display: block;
  margin: 12px 0;
  color: var(--jr-text-muted, #5e6c64);
  font-size: .9375rem;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}

body.jr-brand #es .jr-stream-status:empty {
  display: none;
}

@keyframes jr-stream-shimmer {
  from { transform: translateX(-110%); }
  to { transform: translateX(110%); }
}

@media (hover: hover) and (pointer: fine) {
  body.jr-brand #es .jr-article-card :is(.jr-article-media, .es-stream-embed__cover) a:hover img {
    transform: scale(1.025);
  }
}

@media (max-width: 600px) {
  body.jr-brand #es .es-stream-item.es-stream-full {
    margin-bottom: 22px;
    border-radius: 22px !important;
  }

  body.jr-brand #es .es-stream-full .es-stream-meta {
    padding: 24px 16px !important;
    border-radius: 21px 21px 0 0;
  }

  body.jr-brand #es .es-stream-full .es-stream-meta.jr-has-cover {
    padding-top: 72px !important;
  }

  body.jr-brand #es .es-stream-full .es-stream-meta > .o-flag {
    gap: 14px;
  }

  body.jr-brand #es .es-stream-full .es-stream-avatar .o-avatar-v2 {
    width: 88px !important;
    height: 88px !important;
    min-width: 88px;
  }

  body.jr-brand #es .es-stream-full img.jr-stream-cover {
    height: 150px;
    border-radius: 21px 21px 0 0;
  }

  body.jr-brand #es .es-stream-full .es-stream-title {
    font-size: 1rem !important;
  }

  body.jr-brand #es .es-stream-full .es-stream-title > a {
    font-size: 1.125rem;
  }

  body.jr-brand #es .es-stream-full .es-stream-content:not(.t-hidden),
  body.jr-brand #es .es-stream-full .es-stream-preview {
    padding: 12px 16px 20px !important;
    font-size: 1rem;
  }

  body.jr-brand #es .jr-article-card {
    border-radius: 16px;
  }

  body.jr-brand #es .jr-article-card :is(.jr-article-body, [data-jr-article-body]) {
    padding: 20px 18px;
  }

  body.jr-brand #es .jr-article-card :is(.jr-article-title, .es-stream-embed__title) {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  body.jr-brand #es .jr-stream-loading {
    padding: 24px 16px;
    border-radius: 22px;
  }

  body.jr-brand #es .jr-stream-loading .jr-skeleton-avatar {
    width: 88px;
    height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.jr-brand #es .jr-stream-loading::before {
    animation: none;
    transform: none;
    opacity: .25;
  }

  body.jr-brand #es .jr-article-card :is(.jr-article-media, .es-stream-embed__cover) img,
  body.jr-brand #es .jr-article-card .jr-article-read-link {
    transition: none;
    transform: none !important;
  }
}

@container jr-article (min-width: 780px) {
  body.jr-brand #es .jr-article-card:has(> .jr-article-media) {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  }

  body.jr-brand #es .jr-article-card > .jr-article-media {
    height: 100%;
    min-height: 340px;
    aspect-ratio: auto;
  }

  body.jr-brand #es .jr-article-card .jr-article-title {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
  }
}
