/* POST STYLES */
/* ======================================================================================================= */

#canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
}

/* POST HEADER */
/* ======================================================================================================= */

.post__header {
  width: 100%;
  color: var(--white);
}

.post__header a {
  color: var(--candy);
}

.post_title_wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post__subtitle {
  max-width: 894px;
  font: var(--para-1);
}

.post__author-info__image-wrapper {
  width: 40px;
  height: 40px;
  overflow: hidden;
  transform: translateY(-5px);
}

.post__author-info__image {
  /* transform: scale(1.3); */
  object-fit: cover;
}

.post__info-wrapper {
  padding: 0 calc((100% - 1200px) / 2);
  background: var(--bg-primary);
}

@media screen and (max-width: 1247px) {
  .post__info-wrapper {
    padding: 0 24px;
  }
}

.post__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 80px;
  max-width: 1200px;
  margin: auto;
  padding: 180px 0px 190px;
}

.post__meta {
  display: flex;
  align-items: start;
  gap: 12px;
  width: 100%;
  z-index: 1;
  justify-content: space-between;
}

.post__author-details {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.post__author-details a:hover::after {
  content: "";
}

.post__author-name {
  display: grid;
  font: var(--para-2);
  gap: 4px;
  flex-shrink: 0;
}

.post__author-name a {
  color: var(--white);
  text-decoration: none;
}

.post__author-name a:hover {
  color: #d2f260;
}

.post__title__arrow-tail {
  stroke-dasharray: 450;
  stroke-dashoffset: 450;
  animation: draw 800ms linear 1s forwards;
}

.post__title__arrow-head {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: draw 800ms linear 1.5s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.post__author_des {
  display: flex;
  justify-content: center;
  align-self: flex-start;
  font-family: "halyard-display-variable", sans-serif;
  font-variation-settings: "wght" 200;
}

.post__date-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font: var(--subheading-2);
}

.post__date {
  font: var(--para-2);
  font-family: "halyard-display-variable", sans-serif;
  font-variation-settings: "wght" 200;
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.divider {
  color: #694989;
  font-size: 20px;
  line-height: 100%;
}

.dweb {
  display: block;
}

.mweb {
  display: none;
}

.post__tags {
  display: flex;
  gap: 7px;
  align-items: center;
}

.post__tags > a {
  position: relative;
  z-index: 1;
  display: flex;
  padding: 6px 12px;
  color: var(--white);
  font-size: 12px;
  line-height: 20px;
  background-color: transparent;
  text-decoration: none;
  justify-content: center;
  align-items: center;
  border-radius: 40px;
  border: 1px solid #ffffff40;
  overflow: hidden;
  overflow: clip;
}

.post_title_wrapper .post__tags {
  padding-top: 12px;
}

.post__tags > a:active,
.post__tags > a:focus {
  color: var(--bg-primary);
  border-color: var(--purps-surface-bg);
  transition: all 200ms linear;
  will-change: border-color, color;
}

.post__tags > a::after {
  box-sizing: border-box;
  position: absolute;
  z-index: -1;
  content: "";
  width: 150%;
  height: 150%;
  background-color: var(--purps-surface-bg);
  transform: translateY(0);
  top: 105%;
  transition: transform 200ms cubic-bezier(0.39, 0.575, 0.565, 1);
  border-radius: 100% 100% 0 0;
  will-change: transform;
}

@media (hover: hover) {
  .post__tags > a:hover {
    color: var(--bg-primary);
    border-color: var(--purps-surface-bg);
    transition: all 200ms linear;
    will-change: border-color, color;
  }
  .post__tags > a:hover::after {
    content: "";
    position: absolute;
    transform: translateY(-80%);
    transition: transform 200ms cubic-bezier(0.39, 0.575, 0.565, 1);
    will-change: transform;
  }
}

.post__tags > a:active::after,
.post__tags > a:focus::after {
  content: "";
  position: absolute;
  transform: translateY(-80%);
  transition: transform 200ms cubic-bezier(0.39, 0.575, 0.565, 1);
  will-change: transform;
}

.post__image {
  position: absolute;
  transform: translateY(-164px);
  width: 100%;
  padding: 0px 16px;
  display: flex;
}

.post__image img {
  --height: calc(42.6vw - 16px);
  --width: 100%;
  max-width: 1200px;
  max-height: 500px;
  width: var(--width);
  height: var(--height);
  object-fit: cover;
  border-radius: 14px;
  margin: auto;
}

@media screen and (max-width: 767px) {
  .dweb {
    display: none;
  }

  .mweb {
    display: block;
  }

  .post__info-wrapper {
    padding: 0px;
  }
  .post__info {
    justify-content: flex-start;
    align-items: start;
    gap: 64px;
    height: auto;
    max-width: 500px;
    padding: 120px var(--side-margin) 0px;
  }
  .post_title_wrapper {
    max-width: 100%;
  }

  .post__subtitle {
    font: var(--para-2);
  }

  .post__meta {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 80px;
  }

  .post__author-name {
    flex-shrink: 0;
  }

  .post__author-name svg {
    display: none;
  }

  .post__author_des {
    line-height: 120%;
    padding-top: 6px;
  }

  .post__author-info__image-wrapper {
    flex-shrink: 0;
  }

  .post__date-tags {
    gap: 8px;
    position: relative;
  }

  .post__date {
    font: var(--caption);
    font-family: "halyard-display-variable", sans-serif;
    font-variation-settings: "wght" 200;
    flex-shrink: 0;
    gap: 8px;
  }

  .post__tags {
    overflow: scroll;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }

  .post-tags::-webkit-scrollbar {
    /* Hide scrollbar for Chrome, Safari and Opera */
    display: none;
  }

  .post__image {
    transform: translateY(-60px);
    padding: 0px var(--side-margin);
  }

  .post__image img {
    --height: 200px;
    max-width: 450px;
  }

  .post__author-name a {
    font: var(--caption);
    font-family: "halyard-display-variable", sans-serif;
    font-variation-settings: "wght" 500;
  }
  .divider {
    font-size: 15px;
  }
}

/* POST CONTENT */
/* ======================================================================================================= */

.post__content {
  max-width: 792px;
  margin: 376px auto 0px auto;
  position: relative;
}

.org__socials {
  display: flex;
  flex-direction: column;
  width: 32px;
  gap: 12px;
  position: absolute;
  right: calc(-1 * min(200px, 45vw - 400px));
  direction: rtl;
}

.copy-link:hover {
  cursor: pointer;
}

.org__social__img {
  line-height: 0%;
  border-radius: 8px;
  padding: 7px;
  border: 1px solid var(--gray-g6, #e2e2e2);
  position: relative;
  z-index: 1;
  display: flex;
  background-color: transparent;
  overflow: hidden;
  overflow: clip;
}

.org__social__img.link {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  width: 32px;
  transition: all 150ms ease-in-out;
}

.org__share__link {
  color: var(--white);
  transform: scale(0);
  min-width: 65px;
  opacity: 0;
  font-size: 4px;
  transition: all 300ms ease-in-out;
  transform-origin: left;
}
.org__social__img.link svg {
  min-width: 16px;
}

.org__social__img.link:hover {
  width: 101px;
  gap: 4px;
  transition: all 300ms ease-in-out;
}

.org__social__img.link:hover .org__share__link {
  transform: scale(1);
  opacity: 1;
  font-size: 13px;
  transition: all 300ms ease-in-out;
}

.org__social__img img {
  max-width: 32px;
}

.org__social__img .link__icon__svg {
  transition: fill 200ms ease-in-out;
}

.org__social__img:hover .link__icon__svg {
  fill: var(--white);
  transition: fill 200ms ease-in-out;
}

.org__social__img .stroke__icon__svg {
  transition: stroke 200ms ease-in-out;
}

.org__social__img:hover .stroke__icon__svg {
  stroke: var(--white);
  transition: stroke 200ms ease-in-out;
}

/* .org__social__img {
  position: relative;
  z-index: 1;
  display: flex;
  background-color: transparent;
  overflow: hidden;
  overflow: clip;
} */

.org__social__img:hover {
  border-color: var(--bg-primary);
  transition: all 200ms linear;
  will-change: border-color;
}

.org__social__img::after {
  box-sizing: border-box;
  position: absolute;
  z-index: -1;
  content: "";
  width: 150%;
  height: 150%;
  background-color: var(--bg-primary);
  transform: translateY(0);
  top: 105%;
  left: -25%;
  transition: transform 200ms cubic-bezier(0.39, 0.575, 0.565, 1);
  border-radius: 100% 100% 0 0;
  will-change: transform;
}

.org__social__img:hover::after {
  content: "";
  position: absolute;
  transform: translateY(-100%);
  transition: transform 200ms cubic-bezier(0.39, 0.575, 0.565, 1);
  will-change: transform;
}

.post__meta .post__author-details a:hover::after {
  content: none;
  line-height: 10px;
}

@media screen and (max-width: 767px) {
  .post__content {
    margin: 160px auto 0px;
    padding: 0px var(--side-margin);
  }
  .org__socials {
    flex-direction: row;
    position: relative;
    margin-bottom: 28px;
    right: 0px;
    width: 120px;
  }
  .org__social__img,
  .org__social__img.link {
    background-color: var(--white);
  }
  .org__social__img.link:hover {
    width: 32px;
    gap: 0px;
  }

  .org__social__img.link:hover .org__share__link {
    transform: scale(0);
    opacity: 0;
  }

  .post__author-details {
    gap: 12px;
  }
}

/* IMAGE WIDTH STYLES */
/* ========================== */

img {
  max-width: 100%;
  height: auto;
}

.kg-image-card,
.kg-embed-card {
  margin: 24px auto;
  display: flex;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.kgcard + h3 {
  margin-top: 8px;
}

figcaption,
figcaption p,
figcaption span {
  text-align: center;
  font: var(--caption);
}

.kg-width-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.kg-width-wide {
  --wide-width: 1200px;
  width: var(--wide-width);
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: calc(-1 * (var(--wide-width) / 2));
  margin-right: calc(-1 * (var(--wide-width) / 2));
  display: flex;
  align-items: center;
  flex-direction: column;
}

@media screen and (max-width: 1200px) {
  .kg-width-wide {
    --wide-width: 96vw;
  }
}

/* MISC. */
/* =================================================================================================================== */
.kg-toggle-card {
  box-shadow: none !important;
}

.kg-toggle-heading-text span {
  font: var(--heading-2);
}

.kg-toggle-heading {
  border-bottom: 1px solid var(--gray-g5);
  padding-bottom: 20px;
}

.kg-toggle-heading svg#Regular {
  color: var(--gray-g2);
}

.kg-card.kg-callout-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 64px 22px 32px;
  margin: 36px 0;
  border-radius: 24px;
  gap: 14px;
  background: linear-gradient(23deg, #f3e9ff 24.44%, #fff2f8 71.27%);
}

.kg-callout-card div.kg-callout-emoji {
  flex-shrink: 0;
  padding-right: 0 !important;
  line-height: normal;
  padding-top: 2px;
}

.kg-card.kg-callout-card div.kg-callout-text {
  font: var(--para-1);
  margin-top: auto;
  margin-bottom: auto;
  flex: 1;
}

div[class^="kg-callout-card-"],
div[class*="kg-callout-card-"] {
  background: var(--purps-surface-bg);
}

.kg-callout-bg {
  flex: auto;
  width: 100%;
  height: auto;
  max-width: 35%;
}

.post__content ol,
.post__content ul {
  padding: 16px 16px 16px 28px;
}

.post__content p + p,
.post__content pre + p,
.post__content p + pre {
  margin-top: 32px;
}

@media screen and (max-width: 767px) {
  .kg-toggle-card {
    padding: 0px !important;
  }

  .kg-toggle-heading-text span {
    font: var(--heading-3);
  }

  .kg-toggle-heading {
    padding-bottom: 16px;
  }

  .kg-card.kg-callout-card {
    padding: 16px 12px;
    border-radius: 16px;
    background: linear-gradient(69deg, #ecd9ff -0.09%, #fff2f8 103.63%);
    gap: 6px;
  }

  .kg-card.kg-callout-card div.kg-callout-text {
    font: var(--para-2);
  }

  .kg-callout-card div.kg-callout-emoji {
    width: 24px;
    padding-top: 2px;
  }

  .kg-callout-bg {
    flex: auto;
    width: 100%;
    height: auto;
    max-width: 90%;
  }

  .post__content p + p,
  .post__content pre + p,
  .post__content p + pre {
    margin-top: 24px;
  }

  figcaption,
  figcaption p,
  figcaption span {
    text-align: center;
    font: var(--caption-mweb);
  }
}

/* POST FOOTER */
/* ======================================================================================================= */

.post__footer {
  display: flex;
  margin: 40px auto 0px auto;
  max-width: 800px;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 24px;
  border-top: 1px solid var(--gray-g6, #e2e2e2);
}

.author-info__image__wrapper {
  padding-top: 28px;
}

.author-info__image {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 12px;
}

.author-info {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.author-info p {
  font: var(--para-2);
}

.author-info__name {
  padding: 28px 0px 12px 0px;
  display: flex;
  flex-direction: column;
}

.author-info__name a {
  font: var(--heading-3);
}

.author-info__name a:hover {
  color: var(--text-candy);
}
.author-info__name span {
  font-size: 14px;
}

.footer__arrow-svg {
  width: 56px;
  padding-top: 4px;
}

.author-info__bio.mb0 {
  padding-bottom: 20px;
  max-width: 486px;
  font-size: 15px;
  line-height: 140%; /* 21px */
}

.author-info__meta {
  display: flex;
  gap: 12px;
}

.author-info a {
  color: var(--gray-g2);
  text-decoration: none;
}

.author-info a:hover::after {
  content: "";
  line-height: 10px;
}

.post__footer__socials {
  padding: 7px;
  border-radius: 8px;
  border: 1px solid var(--gray-g6, #e2e2e2);
  display: flex;
}

.author-info__meta a:hover .post__footer__socials {
  background-color: var(--bg-primary);
  border-color: var(--bg-primary);
}

.author-info__meta a:hover .post__footer__socials svg path {
  stroke: var(--white);
}

@media screen and (max-width: 767px) {
  .post__footer {
    margin: 40px 16px 0px;
    padding: 0px;
  }
}

.more__articles {
  /* min-height: 100vh; */
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 60px;
  background: var(--purps-level-10);
}

p.dive_into {
  display: flex;
  width: 100%;
  max-width: 1248px;
  padding: 0px 24px;
  margin: 70px auto 0px;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  color: var(--purps);
  font-size: 46px;
  line-height: 104%; /* 47.84px */
}

.more_stories {
  color: var(--purps-dark-tone, #306);
}

.bg-img-dweb {
  width: 100%;
}

.bg-img-mweb {
  display: none;
}

.card__marquee {
  position: relative;
  padding: 40px 24px 70px;
  display: flex;
  gap: 25px;
  max-width: 1248px;
  width: 100%;
  overflow-x: scroll;
  overflow-y: visible;
  margin: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--purps-level-20) #e0e0e0;
}

@media screen and (min-width: 1921px) {
  .card__marquee {
    padding: 60px 25%;
    gap: 5%;
  }
}

.card__marquee .post-teaser {
  flex: 0 0 392px;
}

@media screen and (max-width: 757px) {
  .card__marquee {
    padding: 30px var(--side-margin) 60px;
    gap: 24px;
  }

  .bg-img-dweb {
    display: none;
  }

  .bg-img-mweb {
    display: block;
    transform: translateY(5px);
    width: 100%;
  }

  .more__articles {
    /* min-height: 515px; */
    margin-top: 40px;
  }

  p.dive_into {
    font-size: 28px;
    padding-left: var(--side-margin);
    margin: 28px auto 0px;
  }
}

/** BREADCRUMBS
===============================================================================================*/
.breadcrumb-wrapper {
  display: flex;
  gap: 8px;
}
.breadcrumb {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-family: "halyard-text";
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: 160%; /* 32px */
}

a.breadcrumb {
  text-decoration: none;
  color: #c9f;
}

a.breadcrumb:hover span {
  color: var(--text-candy);
  text-decoration: underline;
}

a.breadcrumb,
p.breadcrumb {
  align-items: flex-start;
}

a.breadcrumb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 295px;
  display: inline-block;
}
p.breadcrumb span {
  color: #c9f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 295px;
}

@media screen and (max-width: 767px) {
  .breadcrumb {
    font-size: 14px;
    line-height: 130%;
  }
  a.breadcrumb {
    max-width: 200px;
  }
  p.breadcrumb span {
    max-width: 100px;
  }
}

/** REACTIONS
===============================================================================================*/
#reaction-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4px;
  gap: 4px;
}

.reaction-outer-wrapper {
  padding-top: 36px;
}

.reaction-button {
  display: flex;
  position: relative;
  align-items: center;
  gap: 4px;
  border-radius: 90px;
  border: 1px solid var(--gray-g7);
  overflow: visible;
  background-color: var(--white);
  transition: width 0.4s ease, padding 0.4s ease;
  width: 50px;
  padding: 4px;
}

.reaction-button:hover {
  border: 1px solid var(--semantic-surface-light-primary-2);
  background: var(--purps-surface-bg);
  cursor: pointer;
}

.reaction-tooltip {
  display: flex;
  white-space: nowrap;
  position: absolute;
  border-radius: 8px;
  background: rgba(21, 21, 21, 0.6);
  color: white;
  padding: 3px 8px 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  bottom: 60px;
  left: 35px;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;

  display: none;
}

.reaction-button:hover .reaction-tooltip {
  opacity: 1;
}

.reaction-button img {
  height: 40px;
  pointer-events: none;
  background-color: "transparent";
}

.reaction-button .count {
  transform: scale(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.reaction-button.count-visible {
  width: fit-content;
  padding: 4px 12px 4px 8px;
}

.reaction-button.count-visible .count {
  transform: scale(1);
}

.reaction-button.count-hidden {
  width: 50px;
  padding: 4px;
}

.reaction-button.count-hidden .count {
  transform: scale(0);
}

@media screen and (max-width: 600px) {
  .reaction-outer-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding-top: 0px;
    position: fixed;
    z-index: 100000;
    bottom: 16px;
    transition: transform 0.3s ease-in-out;
    transform: translateY(150%);
    pointer-events: none;
  }

  .reaction-outer-wrapper.show {
    transform: translateY(0);
  }

  #reaction-container {
    position: relative;
    border-radius: 65px;
    background: none;
    box-shadow: 0px 0.813px 6.5px 0px rgba(17, 17, 17, 0.05),
      0px 0.813px 6.5px 0px rgba(17, 17, 17, 0.05),
      0px 0.813px 6.5px 0px rgba(17, 17, 17, 0.05),
      0px 0.813px 6.5px 0px rgba(17, 17, 17, 0.05),
      0px 4.875px 13px 4.063px rgba(17, 17, 17, 0.1);
    width: fit-content;
    pointer-events: all;
    padding: 0;
  }

  .reaction-tooltip {
    opacity: 0;
  }

  .reaction-button {
    padding: 4px 6px;
    border-radius: 80px;
  }

  .reaction-button:hover,
  .reaction-button:focus {
    border: 1px solid var(--gray-g7);
    background-color: var(--white);
  }

  .reaction-button:active {
    border: 1px solid var(--semantic-surface-light-primary-2);
    background: var(--purps-surface-bg);
  }
}
