/* Ghost custom font variables */
:root {
  --gh-font-heading: "Source Sans Pro", Helvetica, Arial, sans-serif;
  --gh-font-body: "Source Sans Pro", Helvetica, Arial, sans-serif;
}

/* Toggle typography overrides */
.l-post-content .kg-toggle-card .kg-toggle-content,
.l-post-content .kg-toggle-card .kg-toggle-content p,
.l-post-content .kg-toggle-card .kg-toggle-content ul,
.l-post-content .kg-toggle-card .kg-toggle-content ol,
.l-post-content .kg-toggle-card .kg-toggle-content li {
  font-size: 1.125rem;
  letter-spacing: 0.2px;
  line-height: 1.5;
}

@media only screen and (min-width: 48rem) {
  .l-post-content .kg-toggle-card .kg-toggle-content,
  .l-post-content .kg-toggle-card .kg-toggle-content p,
  .l-post-content .kg-toggle-card .kg-toggle-content ul,
  .l-post-content .kg-toggle-card .kg-toggle-content ol,
  .l-post-content .kg-toggle-card .kg-toggle-content li {
    font-size: 1.25rem;
    letter-spacing: 0.3px;
    line-height: 1.6;
  }
}

.l-post-content .kg-toggle-card .kg-toggle-heading-text {
  font-size: 1.2rem;
}

@media only screen and (min-width: 48rem) {
  .l-post-content .kg-toggle-card .kg-toggle-heading-text {
    font-size: 1.325rem;
  }
}

/* Quote style mapping fix */
.l-post-content blockquote:not(.kg-blockquote-alt) {
  border-left: 4px solid var(--primary-subtle-color);
  color: var(--primary-foreground-color);
  font-family: inherit;
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.2px;
  line-height: 1.5;
  margin: 0 0 25px;
  padding: 0 0 0 20px;
  text-align: left;
}

.l-post-content blockquote:not(.kg-blockquote-alt)::before {
  display: none;
}

.l-post-content blockquote.kg-blockquote-alt {
  border-left: 0;
  color: var(--titles-color);
  font-family: inherit;
  font-size: 2rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;
  margin: 0 0 25px;
  padding: 20px 40px;
  text-align: center;
}

.l-post-content blockquote.kg-blockquote-alt::before {
  display: none;
}

@media only screen and (min-width: 48rem) {
  .l-post-content blockquote:not(.kg-blockquote-alt) {
    font-size: 1.25rem;
    letter-spacing: 0.3px;
    line-height: 1.6;
    margin-bottom: 30px;
    padding-left: 24px;
  }

  .l-post-content blockquote.kg-blockquote-alt {
    font-size: 2.625rem;
    margin-bottom: 30px;
    padding: 40px 60px;
  }
}

/* Make post dates follow Ghost accent color selection */
.m-heading__meta__time {
  color: var(--primary-subtle-color) !important;
}

/* Per-post sticky action buttons (Call/Email/etc.) */
.m-share__content .m-share-action {
  align-items: center;
  background-color: var(--background-color);
  border: 1px solid var(--primary-border-color);
  border-radius: 999px;
  box-shadow: 0 2px 4px var(--button-shadow-color-normal), 0 0 0 transparent;
  color: var(--titles-color);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 600;
  height: 31px;
  gap: 6px;
  justify-content: center;
  margin: 0 25px 12px;
  min-width: 64px;
  padding: 0 10px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.02, 0.01, 0.47, 1);
}

.m-share__content .m-share-action__icon {
  display: inline-flex;
  height: 14px;
  line-height: 1;
  width: 14px;
}

.m-share__content .m-share-action__label {
  line-height: 1;
}

.m-share__content .m-share-action__icon svg {
  display: block;
  height: 100%;
  width: 100%;
}

.m-share__content .m-share-action__icon img {
  display: block;
  height: 100%;
  width: 100%;
}

.m-share__content .m-share-action:hover {
  box-shadow: 0 4px 8px var(--button-shadow-color-hover), 0 0 0 transparent;
  color: var(--primary-subtle-color);
  transform: translateY(-2px);
}

.m-share__content .m-share-action:focus {
  box-shadow: 0 0 0 2px var(--primary-subtle-color) !important;
}

@media only screen and (max-width: 63.98rem) {
  .m-share {
    left: 0;
    right: 0;
    width: 100vw !important;
  }

  .m-share .m-share__content {
    align-items: center;
    display: flex;
    justify-content: space-evenly !important;
    max-width: none;
    padding: 0 6px;
    width: 100vw !important;
  }

  .m-share .m-share__content > a,
  .m-share .m-share__content > button {
    margin: 0 !important;
    text-align: center;
  }

  .m-share__content .m-icon-button.in-share {
    height: 40px;
    width: 40px;
  }

  .m-share__content .m-share-action {
    height: 40px;
    margin: 0;
    min-width: 40px;
    padding: 0;
    width: 40px;
  }

  .m-share__content .m-share-action__label {
    display: none;
  }

  .m-share__content .m-share-action__icon {
    height: 24px;
    width: 24px;
  }
}

@media only screen and (min-width: 64rem) {
  .m-share__content .m-share-action {
    font-size: 0.875rem;
    height: 40px;
    margin: 0 0 20px;
    min-width: 76px;
  }

  .m-share__content .m-share-action__icon {
    height: 20px;
    width: 20px;
  }

  .m-share__content .m-share-action.no-text {
    border-radius: 50%;
    gap: 0;
    min-width: 40px;
    padding: 0;
    width: 40px;
  }

  .m-share__content .m-share-action.no-text .m-share-action__label {
    display: none;
  }
}

@media only screen and (min-width: 80rem) {
  .m-share__content .m-share-action {
    font-size: 1rem;
    height: 50px;
    min-width: 86px;
  }

  .m-share__content .m-share-action__icon {
    height: 22px;
    width: 22px;
  }

  .m-share__content .m-share-action.no-text {
    min-width: 50px;
    width: 50px;
  }
}

/* Floating form modal */
.m-share-modal[hidden] {
  display: none;
}

.m-share-modal {
  inset: 0;
  position: fixed;
  z-index: 50;
}

.m-share-modal__overlay {
  background: rgba(0, 0, 0, 0.65);
  inset: 0;
  position: absolute;
}

.m-share-modal__dialog {
  background: var(--background-color);
  border: 1px solid var(--primary-border-color);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  height: min(88vh, 860px);
  left: 50%;
  max-width: 920px;
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
}

.m-share-modal__close {
  align-self: flex-end;
  background: transparent;
  border: 0;
  color: var(--titles-color);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 10px 12px 8px;
  padding: 8px 10px;
}

.m-share-modal__frame {
  background: #111;
  border: 0;
  display: block;
  flex: 1;
  width: 100%;
}

.medium-zoom-image--opened.is-auto-fade-out {
  opacity: 0 !important;
  transition: opacity 0.18s ease !important;
}
