/* Single post, from fplk-noticia.html. The article body reuses the page layout. */

.site-main--inner:has(.post-layout) {
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.hentry--singular.post-layout {
  max-width: none;
}

.hentry--singular.post-layout::before {
  content: none;
}

.post-layout .post-head {
  position: relative;
  background: var(--fplk-verde-950);
  color: #d4eddc;
  overflow: hidden;
  isolation: isolate;
}

.post-layout .post-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 140% at 100% 0%, rgba(27, 107, 58, 0.28), transparent 70%);
}

.post-layout .post-head-in {
  max-width: calc(1240px + 2 * max(5vw, 20px));
  margin: auto;
  padding: 48px max(5vw, 20px) 64px;
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .post-layout .post-head-in:has(.post-figure) {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
    padding-bottom: 80px;
  }
}

.post-layout .crumbs ol {
  margin-bottom: 0;
}

.post-layout .post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 20px 0;
  font-size: 14px;
  color: #b8d2c0;
}

.post-layout .cat-chip {
  color: var(--fplk-verde-300);
  font-weight: 600;
  text-decoration: none;
}

.post-layout .cat-chip:hover {
  text-decoration: underline;
}

.post-layout .post-meta time {
  color: #9fbfa8;
}

.post-layout .post-meta .cat-chip + time::before {
  content: "·";
  margin-right: 14px;
  color: #5a8a65;
}

.post-layout .post-head .entry-title {
  max-width: 20ch;
  font-size: clamp(34px, 4.6vw, 58px);
  text-align: left;
}

.post-layout .post-head .entry-lead {
  max-width: 52ch;
}

.post-layout .share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}

.post-layout .share span {
  margin-right: 2px;
  font-size: 14px;
  color: #9fbfa8;
}

.post-layout .share a,
.post-layout .share button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: #cfe3d5;
  font: 500 14px var(--fplk-font-sans, "Inter", system-ui, sans-serif);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(207, 227, 213, 0.35);
  cursor: pointer;
}

.post-layout .share a:hover,
.post-layout .share button:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.post-layout .post-figure {
  margin: 0;
  justify-self: center;
  width: min(100%, 460px);
}

.post-layout .post-figure button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.post-layout .post-figure img {
  width: 100%;
  height: auto;
  max-height: min(70vh, 620px);
  object-fit: contain;
  background: var(--fplk-verde-900);
}

.post-layout .post-figure .zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  opacity: 0;
  background: rgba(6, 15, 8, 0.8);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
}

.post-layout .post-figure button:hover .zoom,
.post-layout .post-figure button:focus-visible .zoom {
  opacity: 1;
}

.post-layout .post-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: #9fbfa8;
  text-align: center;
}

.post-layout .lightbox {
  border: 0;
  padding: 0;
  background: none;
  max-width: min(92vw, 900px);
  max-height: 92vh;
}

.post-layout .lightbox::backdrop {
  background: rgba(4, 10, 6, 0.92);
}

.post-layout .lightbox img {
  display: block;
  max-height: 86vh;
  width: auto;
  max-width: 100%;
  margin: auto;
  border-radius: 10px;
}

.post-layout .lightbox button {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(6, 15, 8, 0.8);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.post-layout .entry-content .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin: 2em 0;
  padding: 0;
  list-style: none;
}

.post-layout .entry-content .wp-block-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.post-layout .rel {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-layout .rel a {
  display: block;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.post-layout .rel li:first-child a {
  border-top: 0;
  padding-top: 4px;
}

.post-layout .rel small {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--muted);
}

.post-layout .rel b {
  font: 600 15px/1.35 var(--fplk-font-display, "Space Grotesk", system-ui, sans-serif);
}

.post-layout .rel a:hover b {
  color: var(--fplk-verde-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

[data-theme="light"] .post-layout .rel a:hover b {
  color: var(--fplk-verde-600);
}

.post-layout .side-box .all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--fplk-verde-300);
  text-decoration: none;
}

[data-theme="light"] .post-layout .side-box .all {
  color: var(--fplk-verde-600);
}

.post-layout .post-pager .prev small {
  text-align: left;
}
