/* Complementos do blog. Carregar depois de /assets/css/site.css. */

.blog-hero {
  background: var(--blue-900);
  color: var(--white);
  border-bottom: var(--line);
}

.blog-hero .shell {
  padding: 78px 0 72px;
}

.blog-hero h1 {
  max-width: 900px;
  margin-bottom: 22px;
}

.blog-hero p {
  max-width: 780px;
  color: #edf4ff;
  font-size: 1.08rem;
}

.blog-hero .eyebrow {
  color: var(--yellow);
}

.blog-meta,
.article-meta,
.article-updated,
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.blog-meta {
  margin-top: 22px;
  color: #dcecff;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
  padding: 72px 0 88px;
}

.blog-main {
  min-width: 0;
}

.blog-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 18px;
}

.blog-section-head {
  max-width: 790px;
  margin-bottom: 34px;
}

.blog-section-head h2 {
  font-size: clamp(1.55rem, 2.3vw, 2.45rem);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.blog-card {
  min-height: 320px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 28px 26px;
  border: 1px solid #cfd9e7;
  border-top: 3px solid var(--yellow);
  border-radius: 3px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 70%, #f8fbff 100%);
}

.blog-card h2,
.blog-card h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.18rem;
  line-height: 1.34;
}

.blog-card p {
  margin: 0;
  color: #42546c;
  font-size: 0.98rem;
}

.blog-card a {
  width: fit-content;
  color: var(--blue-700);
  font-weight: 720;
  line-height: 1.45;
  border-bottom: 1px solid currentColor;
}

.blog-card-featured {
  grid-column: 1 / -1;
  min-height: 280px;
}

.blog-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-tag-list a,
.blog-pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #cfd9e7;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-900);
  font-size: 0.94rem;
  font-weight: 760;
}

.blog-tag-list a:hover,
.blog-tag-list a:focus-visible,
.blog-pill:hover,
.blog-pill:focus-visible {
  border-color: var(--blue-700);
  color: var(--blue-700);
}

.blog-panel {
  padding: 30px 28px;
  border: 1px solid #d8e1ed;
  border-radius: 3px;
  background: var(--white);
}

.blog-panel h2,
.blog-panel h3 {
  margin-bottom: 18px;
  color: var(--blue-900);
  font-size: 1.18rem;
  line-height: 1.4;
}

.blog-panel:first-child h2 {
  color: #9f6500;
}

.blog-panel p,
.blog-panel li {
  font-size: 1rem;
  line-height: 1.65;
}

.blog-panel .button-light {
  min-height: 52px;
  margin-top: 4px;
  padding: 0 20px;
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--blue-900);
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(10, 31, 78, 0.14);
}

.blog-panel .button-light:hover,
.blog-panel .button-light:focus-visible {
  border-color: #ffd154;
  background: #ffd154;
  color: var(--blue-900);
}

.blog-panel ul,
.article-toc ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(34px, 5vw, 74px);
  align-items: start;
  padding: 64px 0 88px;
}

.article-header {
  background: var(--blue-900);
  color: var(--white);
}

.article-header .shell {
  padding: 64px 0 58px;
}

.breadcrumb {
  margin-bottom: 24px;
  color: #dcecff;
  font-size: 0.88rem;
  line-height: 1.5;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.58);
}

.breadcrumb a {
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.56);
}

.blog-hero .breadcrumb,
.article-header .breadcrumb,
.blog-hero .breadcrumb a,
.article-header .breadcrumb a,
.blog-hero .breadcrumb li,
.article-header .breadcrumb li {
  color: #edf4ff;
}

.article-header h1 {
  max-width: 960px;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}

.article-dek {
  max-width: 840px;
  color: #edf4ff;
  font-size: 1.12rem;
  line-height: 1.7;
}

.article-meta {
  margin-top: 26px;
  color: #dcecff;
}

.article-body {
  min-width: 0;
}

.article-body > p:first-of-type {
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.75;
}

.article-body h2 {
  margin-top: 52px;
  padding-top: 34px;
  border-top: 1px solid var(--gray-200);
  font-size: clamp(1.42rem, 2.2vw, 2.2rem);
}

.article-body h3 {
  margin-top: 34px;
  font-size: 1.18rem;
}

.article-body p,
.article-body li {
  max-width: 850px;
  color: #42546c;
  font-size: 1rem;
}

.article-body a {
  color: var(--blue-700);
  font-weight: 720;
  border-bottom: 1px solid currentColor;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 10px;
  max-width: 850px;
  padding-left: 22px;
}

.article-summary,
.article-note,
.article-cta,
.author-box {
  max-width: 890px;
  padding: 24px 26px;
  border: 1px solid #d8e1ed;
  border-radius: 3px;
  background: #f8fbff;
}

.article-summary {
  border-left: 3px solid var(--yellow);
}

.article-summary h2,
.article-note h2,
.article-cta h2,
.author-box h2 {
  margin-bottom: 12px;
  padding-top: 0;
  border-top: 0;
  font-size: 1.18rem;
}

.article-summary p,
.article-note p,
.article-cta p,
.author-box p {
  margin-bottom: 0;
}

.article-toc {
  position: sticky;
  top: 112px;
}

.article-toc a {
  color: var(--blue-700);
  font-weight: 720;
}

.article-image {
  width: min(100%, 900px);
  max-width: 100%;
  margin: 34px 0;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #d8e1ed;
  border-radius: 3px;
  background: var(--gray-050);
}

.article-image figcaption,
.article-video figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.article-media-source {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.article-video {
  width: min(100%, 900px);
  max-width: 100%;
  margin: 38px 0;
}

.article-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #d8e1ed;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(10, 31, 78, 0.94), rgba(24, 62, 126, 0.88)),
    var(--video-poster, url("/assets/img/blog/liquidacao/pjecalc-liquidar-operacao.jpg")) center / cover;
}

.article-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.article-video-frame-pje-calc-inicial {
  --video-poster: url("/assets/img/blog/pje-calc-inicial/100-pjecalc-inicial.webp");
}

.youtube-embed-button {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: clamp(18px, 4vw, 44px);
  border: 0;
  background: rgba(5, 13, 32, 0.18);
  color: var(--white);
  cursor: pointer;
  text-align: center;
}

.youtube-embed-button:hover,
.youtube-embed-button:focus-visible {
  background: rgba(5, 13, 32, 0.34);
  outline: 3px solid var(--yellow);
  outline-offset: -6px;
}

.youtube-play-icon {
  width: clamp(56px, 9vw, 78px);
  height: clamp(56px, 9vw, 78px);
  position: relative;
  display: block;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.youtube-play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid var(--blue-900);
  transform: translate(-50%, -50%);
}

.youtube-embed-kicker {
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.youtube-embed-title {
  max-width: 620px;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-weight: 800;
  line-height: 1.2;
}

.article-media-grid {
  width: min(100%, 900px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 34px 0;
}

.article-media-grid figure {
  margin: 0;
  padding: 18px;
  border: 1px solid #d8e1ed;
  border-radius: 3px;
  background: #f8fbff;
}

.article-media-grid img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid #d8e1ed;
  border-radius: 3px;
  background: var(--white);
}

.article-media-grid .article-icon-img {
  min-width: 44px;
  border: 0;
  background: transparent;
}

.article-media-grid figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.article-media-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.has-image-zoom {
  position: relative;
}

.has-image-zoom img {
  cursor: zoom-in;
}

.has-image-zoom img:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.image-zoom-button {
  width: 44px;
  height: 44px;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(10, 31, 78, 0.92);
  color: var(--yellow);
  box-shadow: 0 14px 30px rgba(10, 31, 78, 0.28);
  cursor: pointer;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.image-zoom-button:hover,
.image-zoom-button:focus-visible {
  background: var(--yellow);
  color: var(--blue-900);
  outline: 3px solid rgba(251, 188, 4, 0.34);
  outline-offset: 2px;
}

.blog-zoom-open {
  overflow: hidden;
}

.blog-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.blog-zoom-modal.is-open {
  display: flex;
}

.blog-zoom-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 32, 0.88);
}

.blog-zoom-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.blog-zoom-image {
  width: auto;
  min-width: min(260px, calc(100vw - 48px));
  max-width: 100%;
  max-height: min(76vh, 820px);
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  object-fit: contain;
}

.blog-zoom-caption {
  width: min(900px, 100%);
  margin: 0;
  padding: 12px 14px;
  border-radius: 3px;
  background: rgba(10, 31, 78, 0.92);
  color: var(--white);
  font-size: 0.92rem;
  line-height: 1.55;
}

.blog-zoom-close {
  width: 44px;
  height: 44px;
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid var(--yellow);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--blue-900);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.blog-zoom-close:hover,
.blog-zoom-close:focus-visible {
  background: #ffd154;
  outline: 3px solid rgba(255, 255, 255, 0.42);
  outline-offset: 2px;
}

.article-faq {
  margin-top: 52px;
}

.article-related {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}

.article-related h2 {
  margin-bottom: 24px;
  padding-top: 0;
  border-top: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.author-profile {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.author-avatar {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e1ed;
  border-radius: 999px;
  background: var(--blue-900);
  color: var(--yellow);
  font-size: 1.5rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .blog-layout,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .blog-sidebar,
  .article-toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .blog-hero .shell,
  .article-header .shell {
    padding: 54px 0 50px;
  }

  .article-header h1 {
    max-width: 100%;
    font-size: clamp(1.72rem, 6.6vw, 2rem);
    line-height: 1.14;
  }

  .article-dek {
    font-size: 1rem;
    line-height: 1.65;
  }

  .blog-layout,
  .article-shell {
    padding: 52px 0 72px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card-featured {
    grid-column: auto;
  }

  .article-summary,
  .article-note,
  .article-cta,
  .author-box,
  .blog-panel,
  .blog-card {
    padding: 22px 18px;
  }

  .author-profile {
    grid-template-columns: 1fr;
  }

  .image-zoom-button {
    top: 10px;
    right: 10px;
  }

  .blog-zoom-modal {
    padding: 16px;
  }

  .blog-zoom-dialog {
    width: calc(100vw - 24px);
  }

  .blog-zoom-close {
    top: 4px;
    right: 4px;
  }

  .blog-zoom-image {
    max-height: 70vh;
  }
}
