/* Las páginas comparten los colores y las fuentes de la Home. */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 23px;
  font-size: 0.75rem;
  color: var(--muted);
}
.breadcrumb span {
  overflow-wrap: anywhere;
}
.page-hero {
  padding-block: 55px 62px;
  border-block: 1px solid var(--line);
}
.page-hero h1 {
  max-width: 1000px;
  text-align: left;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.1;
}
.page-hero p:not(.chapter) {
  margin-top: 25px;
  font-size: 1rem;
}
.page-hero .chapter {
  margin-bottom: 20px;
}
.article-meta {
  color: var(--muted);
  font-size: 0.85rem !important;
}
.reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 1fr);
  gap: 65px;
  align-items: start;
  padding-block: 65px;
}
.prose {
  min-width: 0;
  font-size: 1.06rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.prose h2 {
  margin: 42px 0 20px;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.2;
  text-align: left;
  scroll-margin-top: 120px;
}
.prose h3 {
  margin: 32px 0 16px;
  font-size: 1.6rem;
  line-height: 1.3;
}
.prose h4,
.prose h5 {
  margin: 25px 0 14px;
}
.prose p {
  margin-block: 17px;
}
.prose img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 650px;
  height: auto;
  margin: 28px auto;
  border-radius: 15px;
  object-fit: contain;
}
.prose figure {
  margin: 25px 0;
}
.prose figcaption {
  font-size: 0.82rem;
  text-align: center;
  color: var(--muted);
}
.prose ul,
.prose ol {
  padding-left: 25px;
  margin-block: 20px;
}
.prose li {
  margin-block: 10px;
}
.prose blockquote {
  margin: 25px 0;
  padding: 10px 24px;
  border-left: 4px solid var(--pink);
  background: var(--pink-soft);
}
.prose iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  margin-block: 25px;
}
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.prose td,
.prose th {
  border: 1px solid var(--line);
  padding: 10px;
}
.prose a {
  text-decoration: underline;
}
.prose .button {
  text-decoration: none;
}
.prose pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 15px;
  background: var(--blue);
}
.standalone {
  max-width: 900px;
  padding-block: 45px 85px;
}
.article-toc {
  padding: 18px 23px;
  border: var(--border);
  border-radius: 16px;
  background: var(--yellow-soft);
  margin-bottom: 35px;
  font-size: 0.93rem;
}
.article-toc summary {
  font-weight: 900;
  min-height: 36px;
}
.article-aside {
  position: sticky;
  top: 125px;
  background: var(--blue);
  border: var(--border);
  border-radius: 17px;
  padding: 25px;
}
.article-aside h2 {
  font-size: 1.7rem;
}
.article-aside p {
  font-size: 0.9rem;
  margin-top: 18px;
}
.article-aside .button {
  font-size: 0.78rem;
  margin-block: 20px 10px;
  padding-inline: 13px;
}
.article-aside .text-link {
  font-size: 0.8rem;
}
.listing {
  padding-block: 45px 80px;
}
.search-tools {
  max-width: 620px;
  margin-bottom: 35px;
}
.search-tools label {
  display: block;
  font-weight: 900;
  margin-bottom: 12px;
}
.search-tools input {
  width: 100%;
  min-height: 52px;
  border: var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--white);
}
.search-tools p {
  min-height: 25px;
  margin-top: 12px;
  font-size: 0.85rem;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.post-card {
  min-width: 0;
  background: var(--white);
  border: var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.post-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}
.post-card > a:hover h2 {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.post-card img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  background: var(--pink-soft);
}
.post-card > a > div {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 25px;
}
.post-card time {
  font-size: 0.73rem;
  color: var(--muted);
}
.post-card h2 {
  font-size: 1.55rem;
  line-height: 1.2;
  margin-top: 13px;
}
.post-card p {
  font-size: 0.88rem;
  margin-block: 18px 22px;
  color: var(--muted);
}
.read-link {
  display: block;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-weight: 900;
  font-size: 0.85rem;
}
.blog-placeholder {
  display: grid;
  height: 215px;
  place-items: center;
  background: var(--yellow-soft);
  font-size: 5rem;
}
.load-more {
  display: flex;
  margin: 35px auto 0;
}
.related {
  padding-block: 0 75px;
}
.related > h2 {
  margin-bottom: 30px;
  font-size: 2.3rem;
}
.page-cta {
  background: var(--pink-soft);
  padding: 25px;
  border-radius: 18px;
  margin-top: 40px;
}
.page-cta .button {
  margin-top: 15px;
}
.resource-title-link {
  text-decoration: none;
}
.resource-title-link:hover {
  text-decoration: underline;
}
@media (max-width: 1100px) {
  .main-menu {
    gap: 15px;
  }
  .main-menu > a {
    font-size: 0.77rem;
  }
  .reading-layout {
    gap: 35px;
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}
@media (max-width: 850px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .reading-layout {
    grid-template-columns: 1fr;
  }
  .article-aside {
    position: static;
  }
}
@media (max-width: 620px) {
  .page-hero {
    padding-block: 35px 42px;
  }
  .page-hero h1 {
    font-size: clamp(2.1rem, 8.5vw, 3.3rem);
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .reading-layout {
    padding-block: 35px 50px;
    gap: 30px;
  }
  .prose {
    font-size: 1rem;
  }
  .prose h2 {
    margin-top: 32px;
  }
  .post-card h2 {
    font-size: 1.65rem;
  }
  .breadcrumb {
    font-size: 0.69rem;
  }
  .standalone {
    padding-block: 25px 55px;
  }
}

.resource-notice { margin-block: 24px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--pink-soft); }
.resource-notice a { display: inline-block; padding-block: 8px; font-weight: 800; }
