/**
 * Posts e reportagens do JC Divi Child.
 */

body.single-post {
  --jc-single-hero-min-height: clamp(18rem, 36vw, 27rem);
  --jc-single-hero-max-height: 32rem;
  --jc-single-hero-title-size: clamp(2rem, 3.9vw, 3.8rem);
  --jc-single-hero-title-weight: 820;
  --jc-single-hero-title-line-height: 1.08;
  --jc-single-reading-width: 760px;
  --jc-single-wide-width: 1180px;
  --jc-single-text-color: #202124;
  --jc-single-muted-color: #d1d5db;
}

.jc-single-hero {
  position: relative;
  height: min(var(--jc-single-hero-max-height), 68vh);
  min-height: var(--jc-single-hero-min-height);
  max-height: var(--jc-single-hero-max-height);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #111;
  background-position: center;
  background-size: cover;
}

.jc-single-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.22) 10%, rgba(0,0,0,.88) 100%);
}

.jc-single-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--jc-single-wide-width));
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 4rem) 0;
}

.jc-single-categories,
.jc-single-meta,
.jc-single-meta a {
  color: var(--jc-single-muted-color);
}

.jc-single-title {
  max-width: 20ch;
  margin: 0 0 1rem;
  color: #fff;
  font-size: var(--jc-single-hero-title-size);
  font-weight: var(--jc-single-hero-title-weight);
  line-height: var(--jc-single-hero-title-line-height);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.jc-single-categories {
  margin: 0 0 .75rem;
  color: var(--jc-single-muted-color);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.4;
}

.jc-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  font-size: .78rem;
}

.jc-single-categories a,
.jc-single-meta a {
  color: var(--jc-single-muted-color) !important;
  text-decoration: none;
}

.jc-single-categories a:hover,
.jc-single-meta a:hover {
  color: #fff !important;
  text-decoration: underline;
}

.jc-single-meta-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: .3rem .65rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(0, 0, 0, .24);
  color: #e5e7eb;
  line-height: 1;
}

.jc-single-content {
  background: #fff;
}

.jc-single-article {
  width: min(100% - 40px, var(--jc-single-reading-width));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  color: var(--jc-single-text-color);
  font-size: 1.075rem;
  line-height: 1.78;
}

.jc-single-article :is(h2, h3, h4) {
  color: #111827;
  font-weight: 800;
  line-height: 1.22;
  text-wrap: balance;
}

.jc-single-article img,
.jc-single-article figure {
  max-width: 100%;
  height: auto;
}

.jc-single-article a {
  color: #111827 !important;
  text-decoration: underline;
}

.jc-single-article a:hover {
  color: #4b5563 !important;
  text-decoration-thickness: 2px;
  text-underline-offset: .15em;
}

.jc-single-article blockquote {
  margin: 2rem 0;
  padding: .25rem 0 .25rem 1.25rem;
  border-left: 4px solid #111827;
  color: #374151;
}

.jc-single-postscript {
  width: min(100% - 40px, var(--jc-single-reading-width));
  margin: 0 auto;
  padding: 0 0 clamp(2.5rem, 6vw, 5rem);
  color: #374151;
}

.jc-single-postscript-label {
  display: block;
  margin-bottom: .5rem;
  color: #6b7280;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.jc-single-tags,
.jc-single-share {
  margin-bottom: 1.25rem;
}

.jc-single-tag-list,
.jc-single-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.jc-single-tag-list a,
.jc-single-share-links a {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: .35rem .65rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #374151 !important;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.jc-single-tag-list a:hover,
.jc-single-share-links a:hover {
  border-color: #111827;
  background: #111827;
  color: #fff !important;
}

.jc-single-author {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f9fafb;
}

.jc-single-author-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
}

.jc-single-author-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  overflow: hidden;
}

.jc-single-author-copy strong {
  display: block;
  color: #111827;
  font-size: .95rem;
  line-height: 1.2;
}

.jc-single-author-copy p {
  margin: .35rem 0 0;
  color: #4b5563;
  font-size: .85rem;
  line-height: 1.5;
}

body.single-post .jc-single-article .jcproa-post :is(a.jcproa-btn-dark, a.jcproa-btn-outline-light) {
  border-color: rgba(247, 241, 232, .72) !important;
  color: #f7f1e8 !important;
  text-decoration: none;
}

body.single-post .jc-single-article .jcproa-post :is(a.jcproa-btn-dark, a.jcproa-btn-outline-light) strong {
  color: #fff !important;
}

body.single-post .jc-single-article .jcproa-post :is(a.jcproa-btn-dark, a.jcproa-btn-outline-light):hover {
  background: #fff !important;
  border-color: #fff !important;
  color: #111827 !important;
}

body.single-post .jc-single-article .jcproa-post :is(a.jcproa-btn-dark, a.jcproa-btn-outline-light):hover strong {
  color: #111827 !important;
}

@media (max-width: 700px) {
  .jc-single-hero {
    height: auto;
    min-height: clamp(19rem, 78vw, 25rem);
    max-height: none;
  }

  .jc-single-hero-inner,
  .jc-single-article,
  .jc-single-postscript {
    width: min(100% - 28px, var(--jc-single-reading-width));
  }

  .jc-single-title {
    max-width: none;
  }
}
