/****************
  General
*****************/
*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html,
body {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  overflow: auto;
  width: 100%;
}

body {
  color: #090b0e;
  font-family: "GuruProximaNova", "HelveticaNeue-Light", "Helvetica Neue Light",
    "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}

.PublicCardWrapper h1 {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
}

.PublicCardWrapper h2 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.PublicCardWrapper h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.PublicCardWrapper p {
  font-size: 14px;
  margin: 0 0 24px;
}

.PublicCardWrapper ol,
ul {
  font-size: 14px;
  line-height: 1.5;
}

.ghq-is-empty::before {
  content: " ";
  white-space: pre;
}

.PublicCardWrapper hr {
  margin: 0 0 24px;
}

.PublicCardWrapper {
  background: linear-gradient(180deg, #f5f7fa 0%, #ebeef2 100%);
  -webkit-box-direction: normal;
  -webkit-box-orient: vertical;
  -webkit-box-pack: justify;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-pack: justify;
  height: 100%;
  justify-content: space-between;
  overflow: auto;
  position: relative;
}

.public-link,
.public-link:visited,
.public-link:hover,
.public-link:active {
  color: #090b0e;
}

/*********************
  Verification Colors
**********************/

.public-is-trusted {
  background-color: #4be4b4;
}

.public-font-is-trusted {
  color: #090b0e;
}

.public-is-untrusted {
  background-color: #e81456;
}

.public-font-is-untrusted {
  color: #e81456;
}

/****************
  Card
*****************/

.PublicCardShell {
  background-color: #fff;
  -webkit-box-flex: 0;
  -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
  -ms-flex: none;
  flex: none;
  height: 100vh;
  min-height: 200px;
  overflow: hidden;
  position: relative;
  text-align: left;
  width: 100%;
}

.PublicCardHeader__verification-accent {
  border-radius: 0;
  height: 4px;
}

@media screen and (min-width: 501px) {
  .PublicCardShell {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    height: calc(100vh - 40px);
    margin: 40px auto 0;
    max-width: 1024px;
    width: 75%;
  }

  .PublicCardHeader__verification-accent {
    border-radius: 8px 8px 0 0;
  }
}

.PublicCardHeader__bottom-bar {
  align-content: center;
  align-items: center;
  border-bottom: 1px solid #e9ebf0;
  -webkit-box-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-line-pack: center;
  height: auto;
  min-height: 52px;
  padding: 0;
  position: relative;
  word-wrap: break-word;
}

.PublicCardShell__lower-content {
  max-height: 100%;
  overflow: auto;
  padding-bottom: 0;
  padding-bottom: 15vh;
  position: relative;
  word-wrap: break-word;
}

.public-checkmark {
  background-color: #86efce;
  border-radius: 100%;
  fill: #fff;
  height: 16px;
  width: 16px;
}

.public-exclaimation {
  background-color: #e81456;
  border-radius: 100%;
  fill: #fff;
  height: 16px;
  width: 16px;
}

.PublicCardHeaderVerification-container {
  align-items: center;
  border: none;
  -webkit-box-align: center;
  -webkit-box-pack: start;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-pack: start;
  justify-content: flex-start;
  margin: 0;
  margin-left: 20px;
  outline: none;
  position: relative;
  width: 70%;
}

@media screen and (min-width: 480px) {
  .PublicCardHeaderVerification-container {
    margin: 0 auto;
  }
}

#PublicCardHeaderVerification {
  align-items: center;
  -webkit-box-align: center;
  -webkit-box-pack: center;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-pack: center;
  justify-content: center;
  line-height: 0;
}

.PublicCardHeaderVerificationButton__button {
  background: #fff;
  border: none;
  color: #090b0e;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 0 8px;
  text-align: left;
}

.PublicCardHeaderVerificationButton__arrow {
  display: flex;
  position: relative;
}

.PublicCardHeaderVerificationButton__arrow i {
  border: solid black;
  border-width: 0 1px 1px 0;
  display: inline-block;
  padding: 2px;
}

.public-arrow-up {
  -webkit-transform: rotate(-135deg);
  -ms-transform: rotate(-135deg);
  transform: rotate(-135deg);
}

.public-arrow-down {
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.PublicCardHome {
  margin-left: 60px;
  margin-right: 20px;
  padding: 10px 0;
  padding-bottom: 40px;
}

.PublicCardHome__card-title {
  font-size: 30px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  margin-bottom: 40px;
}

@media screen and (min-width: 480px) {
  .PublicCardHome {
    margin-left: auto;
    margin-right: auto;
    max-width: 70%;
  }
}

/************************
  Card Verification Menu
*************************/

#PublicCardVerificationMenu {
  background: #fff;
  border-radius: 4px;
  -webkit-box-shadow: 0px 8px 14px 0px rgba(68, 52, 77, 0.16),
    0px 4px 6px 0px rgba(46, 32, 54, 0.24);
  box-shadow: 0px 8px 14px 0px rgba(68, 52, 77, 0.16),
    0px 4px 6px 0px rgba(46, 32, 54, 0.24);
  left: 5%;
  max-width: 250px;
  min-width: 200px;
  position: absolute;
  top: 40px;
  z-index: 2147483647;
}

@media screen and (min-width: 480px) {
  #PublicCardVerificationMenu {
    left: 15%;
    max-width: 300px;
    min-width: 250px;
  }
}

.PublicCardMenu__top-bar {
  align-content: center;
  align-items: center;
  border-bottom: 1px solid #e9ebf0;
  -webkit-box-align: center;
  -webkit-box-pack: justify;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-line-pack: center;
  -ms-flex-pack: justify;
  height: 44px;
  justify-content: space-between;
  padding: 0 16px 0 24px;
  position: relative;
}

.PublicCardMenu__top-bar-title {
  font-weight: bold;
}

.PublicCardMenu__content {
  padding: 4px 24px 20px;
}

.PublicCardMenu__content-title {
  font-size: 14px;
}

.verification-information {
  background-color: #f5f7fa;
  border-radius: 4px;
  font-size: 12px;
  padding: 4px 16px;
  text-align: left;
}

#close-verification-menu {
  align-items: center;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  height: 24px;
  justify-content: center;
  padding: 0;
  width: 24px;
}

#close-verification-menu:hover,
#close-verification-menu:focus {
  background: #ebeef2;
}

.PublicCardMenu__top-bar p,
.PublicCardMenu__content p {
  margin: 14px 0;
}

.verification-information p {
  font-size: 12px;
}

/****************
  Backup Styles
*****************/

/* TABLES */

.PublicCardShell__lower-content .ghq-card-content__table-scroller {
  overflow-y: hidden;
  padding: 12px 0 0;
}

.PublicCardShell__lower-content table {
  border-collapse: separate;
  border-right: 1px solid #ced2d9;
  border-top: 1px solid #ced2d9;
  font-size: 14px;
  margin: 0 0 4px;
  min-width: 100%;
  table-layout: fixed;
}

.PublicCardShell__lower-content
  table[data-ghq-table-header="true"]
  tr:nth-child(even) {
  background-color: #fff;
}

.PublicCardShell__lower-content
  table[data-ghq-table-header="true"]
  tr:nth-child(odd) {
  background-color: #f5f7fa;
}

.PublicCardShell__lower-content
  table[data-ghq-table-header="true"]
  tr:first-child {
  background-color: #ebeef2;
  font-weight: bold;
}

.PublicCardShell__lower-content tr:nth-child(odd) {
  background-color: #fff;
}

.PublicCardShell__lower-content tr:nth-child(even) {
  background-color: #f5f7fa;
}

.PublicCardShell__lower-content td,
.PublicCardShell__lower-content th {
  border-bottom: 1px solid #ced2d9;
  border-left: 1px solid #ced2d9;
  min-width: 100px;
  padding: 16px 8px;
  position: relative;
  vertical-align: top;
}

.PublicCardShell__lower-content
  .ghq-card-content__table-scroller::-webkit-scrollbar {
  -webkit-appearance: none;
  height: 8px;
}

.PublicCardShell__lower-content
  .ghq-card-content__table-scroller::-webkit-scrollbar-thumb {
  background-color: #b8bfcc;
  border-radius: 4px;
  -webkit-box-shadow: 0 0 1px #f7f8fa;
  box-shadow: 0 0 1px #f7f8fa;
}

/* NEXT EDITOR CELLS CONTAIN PARAGRAPHS: */
.PublicCardShell__lower-content table p {
  margin: 0;
}

/* BLOCKQUOTE */
blockquote,
.ghq-card-content__block-quote {
  border-left: 4px solid #ced2d9;
  color: #717780;
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 24px 24px;
  padding: 0 16px 0;
}

.ghq-card-content__block-quote p,
.ghq-card-content__block-quote .ghq-card-content__paragraph {
  margin: 0;
}

/* LINK TILE LIST */
.ghq-card-content__link-tile-list-container {
  align-items: center;
  border-radius: 12px;
  color: black;
  display:flex;
  flex-wrap: wrap;
  margin: 8px 0;
  max-width: 500px;
  position: relative;
  text-decoration: none;
  width: 100%;
}

@media screen and (max-width: 600px) {
  .ghq-card-content__link-tile-list-details {
    margin-left: 12px;
  }
}

.ghq-card-content__link-tile-list-container:hover {
  background-color: #f5f7fa;
}

.ghq-card-content__link-tile-list-image-container {
  border-radius: 12px;
  height: 56px;
  margin: 12px;
  position: relative;
  width: 100px;
}


.ghq-card-content__link-tile-list-image-container img {
  position: absolute;
  width: 40px;
}

.ghq-card-content__link-tile-list-avatar-container {
  left: 43px;
  position: absolute;
  top: 21px;
}

.ghq-card-content__link-tile-list-avatar-container img {
  border: 1px solid black;
  border-radius: 100%;
  height: 40px;
  width: 40px;
}

.ghq-card-content__link-tile-list-image-container .default-featured-image,
.ghq-card-content__link-tile-gallery-image-container .default-featured-image {
  align-items: center;
  background: linear-gradient(to right bottom, #f5f7fa 0%, #ebeef2 100%);
  border-radius: inherit;
  display: flex;
  height: inherit;
  justify-content: center;
  overflow: hidden;
  width: inherit;
}

.default-featured-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ghq-card-content__link-tile-list-image,
.ghq-card-content__link-tile-gallery-image {
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: inherit;
  border-style: none;
  height: 100%;
  min-width: 100px;
  object-fit: cover;
}

.ghq-card-content__link-tile-list-details-title,
.ghq-card-content__link-tile-gallery-details-title {
  margin-bottom: 4px;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: initial !important;
  white-space: nowrap;
}

.ghq-card-content__link-tile-list-metadata {
  color: #515965;
}

/* LINK TILE GALLERY */

.ghq-card-content__link-tile-gallery {
  background-color: #ffffff;
  border: 1px solid #ced2d9;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 210px;
  margin: 12px 0;
  max-width: 290px;
  position: relative;
  text-decoration: none;
  width: 100%;
}

.ghq-card-content__link-tile-gallery-image-container {
  border: none;
  border-radius: 12px 12px 0 0;
  height: 135px;
  margin: 0;
  object-fit: cover;
  width: 100%;
}

.ghq-card-content__link-tile-gallery-image {
  width: 100%;
}

.ghq-card-content__link-tile-gallery-avatar-container {
  height: 20px;
  left: 16px;
  position: absolute;
  top: 52px;
  width: 20px;
}

.ghq-card-content__link-tile-gallery-avatar-container img {
  border: 1px solid black;
  border-radius: 100%;
  height: 88px;
  width: 88px;
}

.ghq-card-content__link-tile-gallery-details {
  align-items: flex-start;
  color: black;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  margin: 0 12px;
}

.ghq-card-content__link-tile-gallery-details-title {
  margin: 0;
  max-width: 250px;
}

.ghq-card-content__link-tile-gallery-details-metadata {
  color: #515965;
  font-size: 14px;
}


/* CODE BLOCK */
.PublicCardShell__lower-content .ghq-card-content__code-block {
  background-color: #f5f7fa;
  border: 1px solid #ced2d9;
  counter-reset: cb;
  font-size: 12px;
  margin: 0 0 24px;
  padding: 24px 24px 24px 48px;
  white-space: pre-wrap;
}

.PublicCardShell__lower-content .ghq-card-content__code-block code {
  display: block;
}

.PublicCardShell__lower-content .ghq-card-content__code-block-line {
  background-color: transparent;
  color: #090b0e;
  display: block;
  font-family: "SourceCodePro", Monaco, Menlo, Consolas, "Courier New", Courier,
    monospace;
  line-height: 1.3;
  min-height: 1rem;
  position: relative;
}

.PublicCardShell__lower-content .ghq-card-content__code-block-line:before {
  color: #ced2d9;
  content: counter(cb);
  counter-increment: cb;
  left: -44px;
  position: absolute;
  text-align: right;
  user-select: none;
  width: 32px;
}

.PublicCardShell__lower-content .ghq-card-content__image {
  max-width: 100%;
}

/* MISC */
.PublicCardShell__lower-content iframe {
  margin-bottom: 24px;
  max-width: 100%;
}

.PublicCardShell__lower-content iframe:not([width]) {
  width: 100%;
}
.PublicCardShell__lower-content iframe:not([height]) {
  height: 50%;
}

.PublicCardShell__lower-content h3 {
  text-transform: uppercase;
}

.PublicCardShell__lower-content li p {
  line-height: 1.5;
  margin: 0;
}

/* This targets 6 layers of nested sub-bullet styles */
.PublicCardShell__lower-content ol,
.PublicCardShell__lower-content ol ol ol ol {
  list-style-type: decimal;
}

.PublicCardShell__lower-content ol ol,
.PublicCardShell__lower-content ol ol ol ol ol {
  list-style-type: lower-alpha;
}

.PublicCardShell__lower-content ol ol ol,
.PublicCardShell__lower-content ol ol ol ol ol ol {
  list-style-type: lower-roman;
}

/****************
  Footer
*****************/

.PublicCardFooter {
  align-items: center;
  background-color: #fff;
  bottom: 0;
  -webkit-box-align: center;
  -webkit-box-pack: justify;
  -webkit-box-shadow: 0 -2px 16px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0 -2px 16px 0 rgba(0, 0, 0, 0.1);
  display: flex;
  display: -ms-flexbox;
  display: -webkit-box;
  -ms-flex-align: center;
  -ms-flex-pack: justify;
  justify-content: space-between;
  min-height: 44px;
  opacity: 1;
  padding: 10px;
  position: absolute;
  width: 100%;
  z-index: 3;
}

@media screen and (min-width: 501px) {
  .PublicCardFooter {
    display: flex;
    opacity: 0.93;
  }
}

.PublicCardFooter__logo-cta {
  align-items: center;
  display: flex;
  min-width: 165px;
}

.PublicCardFooter__template-non-author-alert {
  color: #090b0e;
  font-weight: bold;
  padding: 0 20px;
}

.PublicCardFooter__template-non-author-alert--subtext {
  font-weight: normal;
}

.PublicCardFooter__template-non-author-alert--subtext
  .PublicCardFooter__template-non-author-alert--link {
  color: #090b0e;
}

.PublicCardFooter > a {
  display: inline-block;
}

@media screen and (min-width: 480px) {
  .PublicCardFooter {
    display: flex;
    padding: 12px 24px;
  }
}

.PublicCardFooter-sign-in {
  color: #090b0e;
  font-family: "GuruProximaNova", "HelveticaNeue-Light", "Helvetica Neue Light",
    "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  font-size: 12px;
  font-weight: 600;
  height: 16px;
  letter-spacing: 0.5px;
  line-height: 16px;
  text-decoration: none;
}

.PublicCardFooter-sign-in:hover,
.PublicCardFooter-sign-in:focus {
  text-decoration: underline;
}

.sign-in-container {
  min-width: 48px;
  padding-right: 4px;
}

.PublicCardFooter-trial {
  align-items: center;
  background-color: #ebeef2;
  border: none;
  border-radius: 4px;
  -webkit-box-align: center;
  -webkit-box-pack: center;
  color: #090b0e;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-pack: center;
  font-family: "GuruProximaNova", "HelveticaNeue-Light", "Helvetica Neue Light",
    "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
  font-size: 12px;
  height: 24px;
  justify-content: center;
  padding: 4px 8px;
  text-decoration: none;
}

.PublicCardFooter-trial:hover,
.PublicCardFooter-trial:focus {
  background-color: #ced2d9;
  cursor: pointer;
}

.PublicCardFooter-trial:active,
.PublicCardFooter-trial:hover,
.PublicCardFooter-trial:visited {
  color: #090b0e;
}

.PublicCardFooter-logo {
  align-items: center;
  display: flex;
  fill: #090b0e;
  height: 16px;
  margin-right: 12px;
  width: 76px;
}

.logo-desktop {
  display: none;
}

.logo-mobile {
  display: block;
  margin-left: 4px;
}

/******************
LOADING STATE
******************/

.PublicCard__loading {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
}

.PublicCard__loading--ellipsis {
  display: inline-block;
  height: 64px;
  position: relative;
  width: 64px;
}

.PublicCard__loading--ellipsis div {
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
  background: #4be4b4;
  border-radius: 50%;
  height: 11px;
  position: absolute;
  top: 28px;
  width: 12px;
}

.PublicCard__loading--ellipsis div:nth-child(1) {
  animation: ellipsis 0.6s infinite;
  left: 2px;
}

.PublicCard__loading--ellipsis div:nth-child(2) {
  animation: ellipsis2 0.6s infinite;
  left: 2px;
}

.PublicCard__loading--ellipsis div:nth-child(3) {
  animation: ellipsis2 0.6s infinite;
  left: 22px;
}

.PublicCard__loading--ellipsis div:nth-child(4) {
  animation: ellipsis3 0.6s infinite;
  left: 44px;
}

@keyframes ellipsis {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes ellipsis3 {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(0);
  }
}

@keyframes ellipsis2 {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(19px, 0);
  }
}

/***************
  Embedded Style
****************/

.PublicCardShell__embed {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  height: 100%;
  margin-top: 0px;
  width: 100%;
}

.PublicCardWrapper__embed {
  border: 1px solid #ced2d9;
  border-radius: 12px;
  height: 100vh;
}

/***************
  Utility
****************/

.public-d-none {
  display: none;
}

.public-is-active {
  display: block;
}

/***************
  Embedded video
****************/

.ghq-card-content__video-responsive-wrapper {
  aspect-ratio: 16 / 9;
  display: block;
  height: 100%;
  margin: 4px 0;
  position: relative;
  width: 100%;
}

.ghq-card-content__video {
  height: 100% !important;
  width: 100%;
}

/**************
Guru Link Elements
***************/
.ghq-card-content__guru-card,
.ghq-card-content__link,
.ghq-card-content__file {
  border-radius: 4px;
  color: #515965;
  padding: 0 1px;
  text-underline-offset: 3.1px;

  .ghq-card-content__text-color {
    text-decoration: underline;
    text-decoration-color: inherit;
    text-decoration-thickness: 1.1px;
  }

  &:hover {
    background-color: #e0ecff;
    color: #090b0e;
    fill: #090b0e;
  }
}

.ghq-card-content__underline {
  .ghq-card-content__text-color {
    text-decoration: underline;
    text-decoration-color: inherit;
  }
}

/**************
Collapsible Elements
***************/
.ghq-card-content__collapsible {
  padding-left: 10px;
  position: relative;
}

.ghq-card-content__collapsible-content {
  padding-left: 4px;
  padding-top: 4px;
}

.ghq-card-content__collapsible-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  list-style: none;
  margin-bottom: 12px;
}

.ghq-card-content__collapsible-summary::-webkit-details-marker {
  display: none;
}

.ghq-card-content__collapsible-summary > h1,
.ghq-card-content__collapsible-summary > h2,
.ghq-card-content__collapsible-summary > h3,
.ghq-card-content__collapsible-summary > p {
  margin: 0;
}

.ghq-card-content__collapsible-summary::before {
  border: solid black;
  border-width: 1px 1px 0 0;
  content: " ";
  display: block;
  height: 6px;
  margin-left: -12px;
  margin-right: 10px;
  margin-top: -1px;
  transform: rotate(45deg);
  width: 6px;
}

.ghq-card-content__collapsible[open]
  > .ghq-card-content__collapsible-summary::before {
  border-width: 0 1px 1px 0;
  margin-top: -4px;
}

.ghq-card-content__callout {
  border-radius: 4px;
  margin: 8px 0;
  padding: 20px 16px;
  position: relative;
}

.PublicCardWrapper .align-left {
  text-align: left;
}

.PublicCardWrapper .align-center {
  text-align: center;
}

.PublicCardWrapper .align-right {
  text-align: right;
}

.PublicCardWrapper .align-justify {
  text-align: justify;
}

.ghq-card-content__image-container {
  display: inline-block;
  overflow: hidden;
  position: relative;
}
