/* ELEVN T3-H3C: direct-child classic headers; hashtags stay in text. */

.post[data-id] > .post-body > .post-header > .post-avatar .post-avatar-picture,
.post[data-id] > .post-body .post-snippet > div > .post-header > .post-avatar .post-avatar-picture {
  display:block;
  width:45px;
  height:45px;
  min-width:45px;
  min-height:45px;
  padding-top:0;
  border-radius:50%;
}

.post[data-id] > .post-body > .post-header > .post-avatar .post-avatar-anonymous,
.post[data-id] > .post-body .post-snippet > div > .post-header > .post-avatar .post-avatar-anonymous {
  box-sizing:border-box;
  width:45px;
  height:45px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:2px;
}

.post[data-id] > .post-body > .post-header > .post-avatar .online-dot,
.post[data-id] > .post-body .post-snippet > div > .post-header > .post-avatar .online-dot {
  top:35px;
}

.post[data-id] > .post-body > .post-header > .post-meta .post-author,
.post[data-id] > .post-body .post-snippet > div > .post-header > .post-meta .post-author {
  font-size:15px;
}

/* Existing hashtag links stay in their original text. */
.post[data-id] > .post-body > .post-replace > .post-text a[href*="/search/hashtag/"],
.post[data-id] > .post-body > .elevn-poll-question > .post-replace > .post-text a[href*="/search/hashtag/"],
.post[data-id] > .post-body .post-snippet > div > .post-replace > .post-text a[href*="/search/hashtag/"],
.post[data-id] > .post-body .funding-description > .post-replace > .post-text a[href*="/search/hashtag/"],
.post[data-id] > .post-body .elevn-opportunity-description > .post-replace > .post-text a[href*="/search/hashtag/"],
.post[data-id] > .post-body .course-description > .post-replace > .post-text a[href*="/search/hashtag/"] {
  display:inline-block;
  box-sizing:border-box;
  max-width:100%;
  margin:3px 5px 3px 0;
  padding:4px 10px;
  border:1px solid rgba(0,0,0,.20);
  border-radius:999px;
  background:rgba(0,0,0,.04);
  color:inherit!important;
  font-size:13px;
  font-weight:600;
  line-height:1.3;
  text-decoration:none!important;
  overflow-wrap:anywhere;
  white-space:normal;
}

html[dir="RTL"] .post[data-id] > .post-body > .post-replace > .post-text a[href*="/search/hashtag/"],
html[dir="RTL"] .post[data-id] > .post-body > .elevn-poll-question > .post-replace > .post-text a[href*="/search/hashtag/"],
html[dir="RTL"] .post[data-id] > .post-body .post-snippet > div > .post-replace > .post-text a[href*="/search/hashtag/"],
html[dir="RTL"] .post[data-id] > .post-body .funding-description > .post-replace > .post-text a[href*="/search/hashtag/"],
html[dir="RTL"] .post[data-id] > .post-body .elevn-opportunity-description > .post-replace > .post-text a[href*="/search/hashtag/"],
html[dir="RTL"] .post[data-id] > .post-body .course-description > .post-replace > .post-text a[href*="/search/hashtag/"] {
  margin:3px 0 3px 5px;
}

body.night-mode .post[data-id] > .post-body > .post-replace > .post-text a[href*="/search/hashtag/"],
body.night-mode .post[data-id] > .post-body > .elevn-poll-question > .post-replace > .post-text a[href*="/search/hashtag/"],
body.night-mode .post[data-id] > .post-body .post-snippet > div > .post-replace > .post-text a[href*="/search/hashtag/"],
body.night-mode .post[data-id] > .post-body .funding-description > .post-replace > .post-text a[href*="/search/hashtag/"],
body.night-mode .post[data-id] > .post-body .elevn-opportunity-description > .post-replace > .post-text a[href*="/search/hashtag/"],
body.night-mode .post[data-id] > .post-body .course-description > .post-replace > .post-text a[href*="/search/hashtag/"] {
  border-color:rgba(255,255,255,.28);
  background:rgba(255,255,255,.08);
  color:#fff!important;
}

body.night-mode .post[data-id] > .post-body > .post-replace > .post-text a[href*="/search/hashtag/"]:hover,
body.night-mode .post[data-id] > .post-body > .elevn-poll-question > .post-replace > .post-text a[href*="/search/hashtag/"]:hover,
body.night-mode .post[data-id] > .post-body .post-snippet > div > .post-replace > .post-text a[href*="/search/hashtag/"]:hover,
body.night-mode .post[data-id] > .post-body .funding-description > .post-replace > .post-text a[href*="/search/hashtag/"]:hover,
body.night-mode .post[data-id] > .post-body .elevn-opportunity-description > .post-replace > .post-text a[href*="/search/hashtag/"]:hover,
body.night-mode .post[data-id] > .post-body .course-description > .post-replace > .post-text a[href*="/search/hashtag/"]:hover {
  background:rgba(255,255,255,.19);
}


/* T3-H3B: shared text without post-replace. */
.post[data-id] > .post-body .post-snippet > div > .post-text a[href*="/search/hashtag/"],
.post[data-id] > .post-body .funding-description > .post-text a[href*="/search/hashtag/"],
.post[data-id] > .post-body .elevn-opportunity-description > .post-text a[href*="/search/hashtag/"],
.post[data-id] > .post-body .course-description > .post-text a[href*="/search/hashtag/"] {
  display:inline-block;
  box-sizing:border-box;
  max-width:100%;
  margin:3px 5px 3px 0;
  padding:4px 10px;
  border:1px solid rgba(0,0,0,.20);
  border-radius:999px;
  background:rgba(0,0,0,.04);
  color:inherit!important;
  font-size:13px;
  font-weight:600;
  line-height:1.3;
  text-decoration:none!important;
  overflow-wrap:anywhere;
  white-space:normal;
}

html[dir="RTL"] .post[data-id] > .post-body .post-snippet > div > .post-text a[href*="/search/hashtag/"],
html[dir="RTL"] .post[data-id] > .post-body .funding-description > .post-text a[href*="/search/hashtag/"],
html[dir="RTL"] .post[data-id] > .post-body .elevn-opportunity-description > .post-text a[href*="/search/hashtag/"],
html[dir="RTL"] .post[data-id] > .post-body .course-description > .post-text a[href*="/search/hashtag/"] {
  margin:3px 0 3px 5px;
}

body.night-mode .post[data-id] > .post-body .post-snippet > div > .post-text a[href*="/search/hashtag/"],
body.night-mode .post[data-id] > .post-body .funding-description > .post-text a[href*="/search/hashtag/"],
body.night-mode .post[data-id] > .post-body .elevn-opportunity-description > .post-text a[href*="/search/hashtag/"],
body.night-mode .post[data-id] > .post-body .course-description > .post-text a[href*="/search/hashtag/"] {
  border-color:rgba(255,255,255,.28);
  background:rgba(255,255,255,.08);
  color:#fff!important;
}

body.night-mode .post[data-id] > .post-body .post-snippet > div > .post-text a[href*="/search/hashtag/"]:hover,
body.night-mode .post[data-id] > .post-body .funding-description > .post-text a[href*="/search/hashtag/"]:hover,
body.night-mode .post[data-id] > .post-body .elevn-opportunity-description > .post-text a[href*="/search/hashtag/"]:hover,
body.night-mode .post[data-id] > .post-body .course-description > .post-text a[href*="/search/hashtag/"]:hover {
  background:rgba(255,255,255,.19);
}

/* Colored cards: use the authored text color. */
.post[data-id] > .post-body > .post-replace .post-colored .post-text a[href*="/search/hashtag/"],
.post[data-id] > .post-body .post-snippet > div > .post-colored .post-text a[href*="/search/hashtag/"],
.post[data-id] > .post-body .funding-description > .post-replace .post-colored .post-text a[href*="/search/hashtag/"],
.post[data-id] > .post-body .elevn-opportunity-description > .post-replace .post-colored .post-text a[href*="/search/hashtag/"],
.post[data-id] > .post-body .course-description > .post-replace .post-colored .post-text a[href*="/search/hashtag/"] {
  display:inline-block;
  box-sizing:border-box;
  max-width:100%;
  margin:3px 5px 3px 0;
  padding:4px 10px;
  border:1px solid currentColor;
  border-radius:999px;
  background:transparent;
  color:inherit!important;
  font-size:13px;
  font-weight:600;
  line-height:1.3;
  text-decoration:none!important;
  overflow-wrap:anywhere;
  white-space:normal;
}

html[dir="RTL"] .post[data-id] > .post-body > .post-replace .post-colored .post-text a[href*="/search/hashtag/"],
html[dir="RTL"] .post[data-id] > .post-body .post-snippet > div > .post-colored .post-text a[href*="/search/hashtag/"],
html[dir="RTL"] .post[data-id] > .post-body .funding-description > .post-replace .post-colored .post-text a[href*="/search/hashtag/"],
html[dir="RTL"] .post[data-id] > .post-body .elevn-opportunity-description > .post-replace .post-colored .post-text a[href*="/search/hashtag/"],
html[dir="RTL"] .post[data-id] > .post-body .course-description > .post-replace .post-colored .post-text a[href*="/search/hashtag/"] {
  margin:3px 0 3px 5px;
}

body.night-mode .post[data-id] > .post-body > .post-replace .post-colored .post-text a[href*="/search/hashtag/"],
body.night-mode .post[data-id] > .post-body .post-snippet > div > .post-colored .post-text a[href*="/search/hashtag/"],
body.night-mode .post[data-id] > .post-body .funding-description > .post-replace .post-colored .post-text a[href*="/search/hashtag/"],
body.night-mode .post[data-id] > .post-body .elevn-opportunity-description > .post-replace .post-colored .post-text a[href*="/search/hashtag/"],
body.night-mode .post[data-id] > .post-body .course-description > .post-replace .post-colored .post-text a[href*="/search/hashtag/"] {
  color:inherit!important;
  border-color:currentColor;
  background:transparent;
}


/* T3-H3C: neutral pills remain interactive in light mode. */
.post[data-id] > .post-body .course-description > .post-replace > .post-text a[href*="/search/hashtag/"]:hover,
.post[data-id] > .post-body .course-description > .post-text a[href*="/search/hashtag/"]:hover,
.post[data-id] > .post-body .elevn-opportunity-description > .post-replace > .post-text a[href*="/search/hashtag/"]:hover,
.post[data-id] > .post-body .elevn-opportunity-description > .post-text a[href*="/search/hashtag/"]:hover,
.post[data-id] > .post-body .funding-description > .post-replace > .post-text a[href*="/search/hashtag/"]:hover,
.post[data-id] > .post-body .funding-description > .post-text a[href*="/search/hashtag/"]:hover,
.post[data-id] > .post-body .post-snippet > div > .post-replace > .post-text a[href*="/search/hashtag/"]:hover,
.post[data-id] > .post-body .post-snippet > div > .post-text a[href*="/search/hashtag/"]:hover,
.post[data-id] > .post-body > .elevn-poll-question > .post-replace > .post-text a[href*="/search/hashtag/"]:hover,
.post[data-id] > .post-body > .post-replace > .post-text a[href*="/search/hashtag/"]:hover {
  background:rgba(0,0,0,.09);
}

/* Visible keyboard focus, including colored-background posts. */
.post[data-id] > .post-body .course-description > .post-replace > .post-text a[href*="/search/hashtag/"]:focus-visible,
.post[data-id] > .post-body .course-description > .post-text a[href*="/search/hashtag/"]:focus-visible,
.post[data-id] > .post-body .elevn-opportunity-description > .post-replace > .post-text a[href*="/search/hashtag/"]:focus-visible,
.post[data-id] > .post-body .elevn-opportunity-description > .post-text a[href*="/search/hashtag/"]:focus-visible,
.post[data-id] > .post-body .funding-description > .post-replace > .post-text a[href*="/search/hashtag/"]:focus-visible,
.post[data-id] > .post-body .funding-description > .post-text a[href*="/search/hashtag/"]:focus-visible,
.post[data-id] > .post-body .post-snippet > div > .post-replace > .post-text a[href*="/search/hashtag/"]:focus-visible,
.post[data-id] > .post-body .post-snippet > div > .post-text a[href*="/search/hashtag/"]:focus-visible,
.post[data-id] > .post-body > .elevn-poll-question > .post-replace > .post-text a[href*="/search/hashtag/"]:focus-visible,
.post[data-id] > .post-body > .post-replace > .post-text a[href*="/search/hashtag/"]:focus-visible,
.post[data-id] > .post-body .course-description > .post-replace .post-colored .post-text a[href*="/search/hashtag/"]:focus-visible,
.post[data-id] > .post-body .elevn-opportunity-description > .post-replace .post-colored .post-text a[href*="/search/hashtag/"]:focus-visible,
.post[data-id] > .post-body .funding-description > .post-replace .post-colored .post-text a[href*="/search/hashtag/"]:focus-visible,
.post[data-id] > .post-body .post-snippet > div > .post-colored .post-text a[href*="/search/hashtag/"]:focus-visible,
.post[data-id] > .post-body > .post-replace .post-colored .post-text a[href*="/search/hashtag/"]:focus-visible {
  outline:2px solid currentColor;
  outline-offset:2px;
}
