.single-shell {
  --article-width: 720px;
  max-width: 1080px;
  padding-block: clamp(32px, 5vw, 68px) 64px;
}

.single-with-sidebar { max-width: 1160px; }
.single-with-sidebar .single-layout { margin-block: 0; }
.single-with-sidebar #search-input { scroll-margin-top: 24px; }

.article-header,
.share-bar,
.share-status,
.share-url,
.article-body,
.related-posts,
.article-widgets,
.article-end {
  max-width: var(--article-width);
  margin-inline: auto;
}

.article-header h1 {
  font-size: clamp(2.375rem, 5.2vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.article-intro {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  max-width: 54ch;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 16px;
  color: var(--muted);
  font-size: .875rem;
}

.article-meta a, .article-end a {
  color: var(--red);
  font-weight: 800;
}
.article-meta a:hover, .article-end a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.article-meta time {
  padding-inline-start: 14px;
  border-inline-start: 1px solid var(--border);
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 22px;
  padding-block: 13px;
  border-block: 1px solid var(--border);
}
.share-bar > span { font-size: .875rem; font-weight: 800; }
.share-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.share-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 750;
}
.share-actions button:hover { background: var(--quiet); color: var(--red); }
.share-actions svg { width: 16px; height: 16px; }
.share-status { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.share-status:empty { margin-top: 0; }
.share-url {
  display: block;
  width: 100%;
  padding: 8px 12px;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
}

.article-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 2.9;
  object-fit: cover;
  object-position: center 48%;
  margin-top: 22px;
  border-radius: var(--radius);
  background: #280d16;
}

/* Estilos del contenido que se genera desde el editor de bloques. */
.article-body {
  margin-top: clamp(24px, 4vw, 40px);
  color: #343137;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.article-body > * + * { margin-top: 1em; }
.article-body :is(h2, h3, h4) {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.article-body > :is(h2, h3, h4) { margin-top: 1.8em; margin-bottom: 0; }
.article-body :is(h2, h3, h4) + * { margin-top: .5em; }
.article-body h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.article-body h3 { font-size: 1.35rem; }
.article-body h4 { font-size: 1.1rem; }
.article-body :is(ul, ol) { padding-inline-start: 1.5em; }
.article-body li + li { margin-top: .35em; }
.article-body a:not(.wp-block-button__link) { color: var(--red); text-decoration: underline; text-underline-offset: .18em; }
.article-body blockquote {
  margin-inline: 0;
  padding: 16px 20px;
  border-inline-start: 1px solid var(--red);
  background: var(--quiet);
  color: var(--ink);
}
.article-body figure { max-width: 100%; margin-inline: 0; }
.article-body img { height: auto; border-radius: 8px; }
.article-body figcaption { margin-top: .5em; color: var(--muted); font-size: .875rem; }
.article-body :is(.wp-block-table, pre) { max-width: 100%; overflow: auto; }
.article-body iframe, .article-body video { max-width: 100%; }
.article-end { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); }

.related-posts { margin-top: clamp(32px, 5vw, 56px); }
.article-widgets { display: grid; min-width: 0; gap: 16px; margin-top: 32px; }
.related-posts + .article-end, .article-widgets + .article-end { border: 0; padding-top: 0; }

@media (min-width: 960px) {
  .related-posts .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .article-cover { aspect-ratio: 1.65; }
  .share-bar { align-items: flex-start; flex-direction: column; }
  .share-actions { column-gap: 5px; }
  .share-actions button { padding-inline: 7px; }
}
