/* Centered native profiles; existing controllers, privacy and media stay native. */
body.jr-brand #es.view-profile .es-profile {
  --jr-profile-avatar:224px;
  --jr-profile-overlap:108px;
  --jr-profile-cover:252px;
  --jr-profile-radius:28px;
  width:100%;
  max-width:1180px;
  min-width:0;
  margin-inline:auto;
  color:#193c28;
}

body.jr-brand #es.view-profile .es-profile > .es-profile-header {
  position:relative;
  z-index:2;
  margin:0 0 28px;
  border:1px solid #c9dfd0;
  border-radius:var(--jr-profile-radius);
  background:#fff;
  box-shadow:0 16px 44px #143b2110;
  overflow:visible;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__hd {
  position:relative;
  border-radius:var(--jr-profile-radius) var(--jr-profile-radius) 0 0;
  background:radial-gradient(ellipse at 50% 0,#c6efd2,transparent 75%),#e9f6ed;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__hd.without-cover {
  height:146px;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__cover {
  min-height:var(--jr-profile-cover);
  height:var(--jr-profile-cover);
  max-height:none;
  border:0;
  border-radius:var(--jr-profile-radius) var(--jr-profile-radius) 0 0;
  box-shadow:none;
  background-color:#d8efdf;
  overflow:visible;
}

/* Keep the native inline image and saved background position. Only the default
   cover receives this decorative wash; author-supplied covers retain their color. */
body.jr-brand #es.view-profile .es-profile .es-profile-header__cover.no-cover::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  border-radius:inherit;
  background:radial-gradient(ellipse at 50% 0,#b7efcbcc,transparent 70%),
    linear-gradient(120deg,#0e4828d9,#1e7048ad 52%,#0c4329d9);
  pointer-events:none;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__cover.no-cover.editing::before {
  display:none;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__avatar-wrap {
  position:absolute;
  z-index:4;
  bottom:calc(-1 * var(--jr-profile-overlap));
  left:50%;
  right:auto;
  width:var(--jr-profile-avatar);
  height:var(--jr-profile-avatar);
  margin:0;
  padding:0;
  transform:translateX(-50%);
  overflow:visible;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__avatar-wrap > .o-avatar-v2 {
  width:100%;
  height:100%;
  border:8px solid #fff;
  border-radius:34px;
  background:#fff;
  box-shadow:0 0 0 1px #c3decd,0 16px 36px #103e2524;
  overflow:visible;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__avatar-wrap .o-avatar-v2__content {
  display:block;
  width:100%;
  height:100%;
  border-radius:25px;
  background:#fff;
  overflow:hidden;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__avatar-wrap img[data-avatar-image] {
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  padding:0;
  border-radius:inherit;
  object-fit:contain;
  background:#fff;
}

/* Root's optional enhancement marks only a verified native text-avatar URL.
   The native image, its alt text and its controller hooks stay in place. */
body.jr-brand #es.view-profile .es-profile .es-profile-header__avatar-wrap
.o-avatar-v2__content.jr-profile-initial[data-jr-initial]:not([data-jr-initial=""]) {
  position:relative;
  background:radial-gradient(ellipse at 20% 0,#3ead65,transparent 75%),#126b36;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__avatar-wrap
.jr-profile-initial[data-jr-initial]:not([data-jr-initial=""])::before {
  content:attr(data-jr-initial);
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#fff;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:calc(var(--jr-profile-avatar) * .47);
  font-weight:750;
  line-height:1;
  letter-spacing:-.045em;
  text-indent:-.035em;
  pointer-events:none;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__avatar-wrap
.jr-profile-initial[data-jr-initial]:not([data-jr-initial=""]) > img[data-avatar-image] {
  opacity:0;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__avatar-wrap .o-avatar-v2__action {
  display:block;
  width:44px;
  height:44px;
  z-index:6;
  right:-9px;
  bottom:1px;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__avatar-wrap .o-avatar-v2__action > a {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:1px solid #a6c9b2;
  border-radius:13px;
  background:#fff;
  color:#12632a;
  box-shadow:0 5px 15px #103e2518;
  font-size:21px;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__cover.is-owner:not(.editing) .es-flyout-content {
  display:block !important;
  opacity:1;
  pointer-events:none;
}

body.jr-brand #es.view-profile .es-profile .es-cover-menu {
  position:absolute;
  top:14px;
  right:14px;
  left:auto;
  bottom:auto;
  z-index:6;
  pointer-events:auto;
}

body.jr-brand #es.view-profile .es-profile .es-cover-menu > a.es-flyout-button {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid #b5d3be;
  border-radius:13px;
  background:#fffffff2;
  color:#145e2c;
  font-size:20px;
  pointer-events:auto;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__avatar-wrap .dropdown-menu,
body.jr-brand #es.view-profile .es-profile .es-cover-menu .dropdown-menu,
body.jr-brand #es.view-profile .es-profile .es-profile-header-nav__dropdown-menu {
  left:auto;
  right:0;
  max-width:calc(100vw - 40px);
}

body.jr-brand:dir(rtl) #es.view-profile .es-profile .es-profile-header__avatar-wrap .dropdown-menu,
body.jr-brand:dir(rtl) #es.view-profile .es-profile .es-cover-menu .dropdown-menu,
body.jr-brand:dir(rtl) #es.view-profile .es-profile .es-profile-header-nav__dropdown-menu {
  left:0;
  right:auto;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__bd {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  min-width:0;
  height:auto;
  margin:0;
  padding:calc(var(--jr-profile-overlap) + 27px) 28px 27px;
  text-align:center;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__info-wrap {
  width:100%;
  max-width:880px;
  min-width:0;
  margin:0 auto;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__title {
  margin:0 0 12px;
  color:#113e25;
  font-size:clamp(29px,3.5vw,43px);
  font-weight:800;
  line-height:1.13;
  letter-spacing:-.04em;
  overflow-wrap:anywhere;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__title a {
  color:inherit;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__meta,
body.jr-brand #es.view-profile .es-profile .es-profile-header__bd-widget {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:7px 12px;
  color:#52705d;
  font-size:14px;
  line-height:1.6;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__badges {
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:9px;
  margin-top:12px;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__action-wrap {
  flex:0 1 auto;
  width:100%;
  min-width:0;
  margin:0;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__action-toolbar {
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__action-toolbar > .o-btn-group {
  display:inline-flex;
  justify-content:center;
  flex-wrap:wrap;
  float:none;
  max-width:100%;
  margin:0;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header__action-toolbar .btn {
  min-height:44px;
  padding:10px 15px;
  border-radius:12px;
  font-weight:700;
  line-height:1.4;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header-nav {
  min-width:0;
  padding:12px 16px;
  border-top:1px solid #d7e7dc;
  border-radius:0 0 var(--jr-profile-radius) var(--jr-profile-radius);
  background:#f8fcf9;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header-nav:not(.swiper-container) {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:7px;
  overflow:visible;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header-nav:not(.swiper-container) > .es-profile-header-nav__item {
  flex:0 0 auto;
}

/* Wrapping keeps the native More dropdown outside an overflow viewport,
   including the desktop markup rendered at a phone viewport width. */

body.jr-brand #es.view-profile .es-profile .es-profile-header-nav__link {
  justify-content:center;
  align-items:center;
  gap:6px;
  min-height:46px;
  padding:11px 15px;
  border:1px solid transparent;
  border-radius:12px;
  color:#44634f;
  background:transparent;
  font-size:14px;
  font-weight:700;
  line-height:1.4;
  white-space:nowrap;
  text-decoration:none;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header-nav__link:hover {
  color:#075c23;
  background:#e6f4eb;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header-nav .is-active > .es-profile-header-nav__link {
  color:#fff;
  border-color:#087824;
  background:#087824;
  box-shadow:0 5px 12px #08782417;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header-nav__link:focus-visible {
  outline:3px solid #087824 !important;
  outline-offset:3px;
}

/* Swiper owns mobile widths and transforms. Keep its viewport and wrapper. */
body.jr-brand #es.view-profile .es-profile .es-profile-header-nav.swiper-container {
  display:block;
  padding:11px 12px;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header-nav-slider {
  min-width:0;
  border-radius:0 0 var(--jr-profile-radius) var(--jr-profile-radius);
}

body.jr-brand #es.view-profile .es-profile .es-profile-header-nav-slider::before,
body.jr-brand #es.view-profile .es-profile .es-profile-header-nav-slider::after {
  pointer-events:none;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header-nav__dropdown-menu {
  z-index:20;
  min-width:190px;
  padding:7px;
  border:1px solid #bad7c4;
  border-radius:14px;
  box-shadow:0 14px 34px #123d2421;
}

body.jr-brand #es.view-profile .es-profile .es-profile-header-nav__dropdown-link {
  min-height:42px;
  padding:10px 13px;
  border-radius:9px;
}

body.jr-brand #es.view-profile .es-profile > .es-container {
  align-items:flex-start;
  gap:24px;
  min-width:0;
}

body.jr-brand #es.view-profile .es-profile > .es-container > .es-container__sidebar {
  flex:0 0 248px;
  width:248px;
  min-width:0;
  margin:0;
}

body.jr-brand #es.view-profile .es-profile > .es-container > .es-content,
body.jr-brand #es.view-profile .es-profile .es-profile-contents,
body.jr-brand #es.view-profile .es-profile .es-profile-details,
body.jr-brand #es.view-profile .es-profile [data-profile-real-content],
body.jr-brand #es.view-profile .es-profile [data-es-stream],
body.jr-brand #es.view-profile .es-profile .es-stream-list,
body.jr-brand #es.view-profile .es-profile .es-stream-item,
body.jr-brand #es.view-profile .es-profile .es-story {
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
}

body.jr-brand #es.view-profile .es-profile > .es-container > .es-content {
  flex:1 1 0;
}

body.jr-brand #es.view-profile .es-profile .es-side-widget {
  padding:19px;
  border:1px solid #d0e2d6;
  border-radius:19px;
  background:#fff;
  box-shadow:0 7px 20px #123d2406;
  overflow:visible;
}

body.jr-brand #es.view-profile .es-profile .es-side-widget__title {
  margin:0 0 12px;
  color:#214d32;
  font-size:15px;
  font-weight:800;
}

body.jr-brand #es.view-profile .es-profile .es-side-widget__bd {
  color:#4a6554;
  font-size:14px;
  line-height:1.6;
}

body.jr-brand #es.view-profile .es-profile .es-side-widget__bd a {
  overflow-wrap:anywhere;
}

body.jr-brand #es.view-profile .es-profile .es-mobile-info {
  margin-bottom:22px;
}

@media(max-width:1100px) {
  body.jr-brand #es.view-profile .es-profile {
    --jr-profile-avatar:200px;
    --jr-profile-overlap:94px;
    --jr-profile-cover:230px;
  }

  body.jr-brand #es.view-profile .es-profile > .es-container {
    display:flex;
    flex-direction:column;
    width:100%;
    gap:20px;
  }

  body.jr-brand #es.view-profile .es-profile > .es-container > .es-container__sidebar {
    flex:auto;
    width:100%;
  }

  body.jr-brand #es.view-profile .es-profile > .es-container > .es-content,
  body.jr-brand #es.view-profile .es-profile .es-profile-contents,
  body.jr-brand #es.view-profile .es-profile .es-profile-details,
  body.jr-brand #es.view-profile .es-profile [data-profile-real-content],
  body.jr-brand #es.view-profile .es-profile [data-es-stream],
  body.jr-brand #es.view-profile .es-profile .es-stream-list,
  body.jr-brand #es.view-profile .es-profile .es-stream-item,
  body.jr-brand #es.view-profile .es-profile .es-story {
    flex:auto;
    width:100%;
    min-width:0;
  }
}

@media(max-width:600px) {
  body.jr-brand #es.view-profile .es-profile {
    --jr-profile-avatar:176px;
    --jr-profile-overlap:82px;
    --jr-profile-cover:204px;
    --jr-profile-radius:22px;
  }

  body.jr-brand #es.view-profile .es-profile > .es-profile-header {
    margin-bottom:22px;
  }

  body.jr-brand #es.view-profile .es-profile .es-profile-header__hd.without-cover {
    height:118px;
  }

  body.jr-brand #es.view-profile .es-profile .es-profile-header__avatar-wrap > .o-avatar-v2 {
    border-width:6px;
    border-radius:29px;
  }

  body.jr-brand #es.view-profile .es-profile .es-profile-header__avatar-wrap .o-avatar-v2__content {
    border-radius:22px;
  }

  body.jr-brand #es.view-profile .es-profile .es-profile-header__bd {
    gap:16px;
    padding:calc(var(--jr-profile-overlap) + 24px) 16px 22px;
  }

  body.jr-brand #es.view-profile .es-profile .es-profile-header__title {
    font-size:31px;
  }

  body.jr-brand #es.view-profile .es-profile .es-profile-header__meta,
  body.jr-brand #es.view-profile .es-profile .es-profile-header__bd-widget {
    gap:6px 9px;
    font-size:13px;
  }

  body.jr-brand #es.view-profile .es-profile .es-profile-header__action-toolbar {
    gap:8px;
  }

  body.jr-brand #es.view-profile .es-profile .es-profile-header__action-toolbar .btn {
    min-height:44px;
    padding:10px 12px;
    font-size:13px;
  }

  body.jr-brand #es.view-profile .es-profile .es-profile-header-nav__link {
    min-height:44px;
    padding:10px 12px;
    font-size:13px;
  }

  body.jr-brand #es.view-profile .es-profile .es-side-widget {
    padding:17px;
    border-radius:17px;
  }
}

@media(prefers-reduced-motion:reduce) {
  body.jr-brand #es.view-profile .es-profile .es-profile-header__cover,
  body.jr-brand #es.view-profile .es-profile .es-profile-header-nav__link {
    transition:none;
  }
}
