.jgg-article-page {
  font-family: var(--font-sans, "Plus Jakarta Sans", Arial, sans-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.jgg-article-page :is(h1, h2, h3, h4, h5, h6, input, textarea, select, button) {
  font-family: inherit;
}

.jgg-article-page #ht-ctc-chat {
  display: none !important;
}

.jgg-article-page :is(.action-red, .fixed[href^="https://wa.me/"]) {
  color: #fff;
  text-decoration: none;
}

.jgg-article-page :is(header, footer, .jgg-article-trail) a:not(.action-red) {
  color: inherit;
}

.jgg-article-page header :is(a.text-brand, a.nav-link:hover) {
  color: #bd202e;
}

.jgg-article-hero {
  padding-block: clamp(2rem, 6vw, 4.5rem);
}

.jgg-article-trail {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  color: #cbd5e1;
  font-size: .875rem;
}

.jgg-article-trail a:hover {
  color: #fff;
  text-decoration: underline;
}

.jgg-article-hero h1 {
  max-width: 26ch;
  margin-block: 1.2rem 1rem;
  font-size: clamp(2rem, 5vw, 4.1rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}

.jgg-article-hero time {
  color: #fda4af;
  font-size: .9rem;
  font-weight: 700;
}

.jgg-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-block: clamp(1.8rem, 4vw, 3.5rem) clamp(3.25rem, 7vw, 6rem);
}

.jgg-article-reading {
  min-width: 0;
}

.jgg-article-cover {
  overflow: hidden;
  margin: 0 0 2rem;
  border-radius: 1.25rem;
  background: #f2f4f8;
}

.jgg-article-cover img {
  display: block;
  width: 100%;
  max-height: min(34rem, 75vh);
  height: auto;
  object-fit: contain;
}

.jgg-article-prose {
  color: #253148;
  font-size: clamp(1rem, .94rem + .25vw, 1.125rem);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.jgg-article-prose > * + * {
  margin-block-start: 1.15em;
}

.jgg-article-prose :is(h1, h2, h3, h4, h5, h6),
.jgg-article-comments :is(h2, h3) {
  margin-block: 1.6em .55em;
  color: #131a2b;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.jgg-article-prose :is(h1, h2), .jgg-article-comments h2 {
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
}

.jgg-article-prose h3, .jgg-article-comments h3 {
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
}

.jgg-article-prose :is(ol, ul) {
  padding-inline-start: 1.55em;
}

.jgg-article-prose ol { list-style: decimal; }
.jgg-article-prose ul { list-style: disc; }
.jgg-article-prose li + li { margin-block-start: .4em; }

.jgg-article-prose a, .jgg-article-comments a, .jgg-article-catalog {
  color: #991928;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.jgg-article-prose :is(img, video, iframe) {
  max-width: 100%;
}

.jgg-article-prose :is(img, video) {
  height: auto;
  border-radius: .75rem;
}

.jgg-article-prose :is(figcaption, .wp-caption-text) {
  margin-top: .6rem;
  color: #525c6c;
  font-size: .85em;
}

.jgg-article-prose .wp-caption { max-width: 100%; }
.jgg-article-prose .aligncenter { margin-inline: auto; }

.jgg-content-page .jgg-article-prose figure {
  margin-inline: 0;
}

.jgg-content-page .jgg-article-prose figure > img {
  width: 100%;
  max-height: 34rem;
  object-fit: contain;
}

.jgg-content-page .jgg-article-prose .gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.jgg-content-page .jgg-article-prose .gallery-item {
  float: none !important;
  min-width: 0;
  width: auto !important;
  margin: 0;
}

.jgg-content-page .jgg-article-prose > .gallery-item {
  display: inline-block;
  width: calc(50% - .6rem) !important;
  padding: .5rem;
  vertical-align: top;
}

.jgg-content-page .jgg-article-prose .gallery-item img {
  width: 100%;
  height: auto;
  border: 0 !important;
}

.jgg-article-prose blockquote {
  padding: .65em 1em;
  border-inline-start: .2rem solid #bd202e;
  background: #f9fafb;
}

.jgg-article-prose pre, .jgg-article-prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.jgg-article-prose :is(th, td) {
  border: 1px solid #e0e5ec;
  padding: .5em .8em;
}

.jgg-article-aside {
  align-self: start;
  padding: 1.5rem;
  border: 1px solid #e0e5ec;
  border-radius: 1.15rem;
  background: #f9fafb;
}

.jgg-article-aside h2 {
  font-size: 1.25rem;
  font-weight: 800;
}

.jgg-article-aside p {
  margin-block: .75rem 1.1rem;
  color: #525c6c;
  line-height: 1.65;
}

.jgg-article-catalog {
  display: block;
  width: fit-content;
  margin-top: 1rem;
  font-size: .875rem;
}

.jgg-article-back { margin-top: 2rem; }
.jgg-article-comments { margin-top: 2rem; }
.jgg-comment-list :is(li, .comment-body) { margin-block: .75rem; }
.jgg-comment-list .children { padding-inline-start: 1.2rem; }
.jgg-article-comments .comment-form > p { margin-top: .8rem; }
.jgg-article-comments .comment-form label { display: block; font-weight: 700; }
.jgg-article-comments .comment-form :is(input:not([type="checkbox"], [type="submit"], [type="hidden"]), textarea),
.jgg-article-prose .post-password-form input[type="password"] {
  width: min(100%, 30rem);
  padding: .65rem;
  border: 1px solid #b6c0cf;
  border-radius: .45rem;
}
.jgg-article-comments input[type="submit"], .jgg-article-prose .post-password-form input[type="submit"] {
  padding: .65rem 1rem;
  border-radius: .4rem;
  background: #bd202e;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

@media (min-width: 64rem) {
  .jgg-article-layout {
    grid-template-columns: minmax(0, 47rem) minmax(15rem, 20rem);
    justify-content: space-between;
    gap: clamp(2rem, 5vw, 4.5rem);
  }

  .jgg-article-aside {
    position: sticky;
    top: 1.5rem;
  }
}
