/* ==========================================================================
   Blog index, articles, and long-form prose (also used by the legal pages).
   ========================================================================== */

/* Blog and legal copy exists only in Spanish: tell other-language readers. */
.only-es,
.legal-notice {
  display: none;
}

html:not([lang='es']) .only-es,
html:not([lang='es']) .legal-notice {
  display: block;
}

.only-es {
  margin-bottom: var(--space-8);
  padding: var(--space-3) var(--space-4);
  border-left: 2px solid var(--color-secondary);
  background: rgba(200, 169, 110, 0.1);
}

.legal-notice {
  padding: var(--space-4);
  border-left: 2px solid var(--color-secondary);
  background: rgba(200, 169, 110, 0.1);
  font-size: var(--text-sm);
}

/* -------------------------------------------------------------- Post cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-16) var(--space-8);
}

.post-card__link {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
  text-decoration: none;
}

.post-card .frame {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.post-card__img {
  transition: transform 1200ms var(--ease-out);
}

.post-card__link:hover .post-card__img {
  transform: scale(1.05);
}

.post-card p:not(.eyebrow) {
  color: var(--muted);
}

.blog-cta {
  text-align: center;
}

.blog-cta .container {
  display: grid;
  gap: var(--space-6);
  justify-items: center;
}

/* ----------------------------------------------------------------- Article */
.post__header {
  padding: var(--space-16) 0 var(--space-12);
}

.post__header .container {
  display: grid;
  gap: var(--space-4);
}

.post__header .only-es {
  margin: 0;
}

.post__hero {
  margin-bottom: var(--space-16);
}

.post__hero img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.post .prose {
  padding-bottom: var(--section);
}

/* ------------------------------------------------------------------- Prose */
.prose {
  display: grid;
  gap: var(--space-6);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose > * {
  min-width: 0;
}

.prose h2 {
  margin-top: var(--space-8);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
}

.prose h3 {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-h4);
  font-weight: 600;
  line-height: 1.3;
}

.prose p,
.prose li {
  color: #3d3a34;
}

.prose .lead {
  color: var(--color-text-dark);
  font-size: 1.25rem;
  line-height: 1.65;
}

.prose a:not(.btn) {
  color: var(--color-secondary-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:not(.btn):hover {
  color: var(--color-text-dark);
}

.prose ul,
.prose ol {
  display: grid;
  gap: var(--space-3);
  padding-left: var(--space-6);
}

.prose ul {
  list-style: none;
}

.prose ul > li {
  position: relative;
}

.prose ul > li::before {
  content: '';
  position: absolute;
  top: 0.85em;
  left: calc(-1 * var(--space-6));
  width: 12px;
  height: 1px;
  background: var(--color-secondary-deep);
}

.prose ol {
  list-style: decimal;
}

.prose ol > li::marker {
  color: var(--color-secondary-deep);
  font-family: var(--font-display);
  font-weight: 600;
}

.prose code {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(26, 26, 24, 0.07);
  font-size: 0.875em;
}

.table-wrap {
  overflow-x: auto;
}

.prose table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--color-secondary-deep);
  font-family: var(--font-label);
  font-size: var(--text-label-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .post-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-12);
  }

  .post__hero {
    margin-bottom: var(--space-12);
  }
}
