/* ==================== ARTICLE WRAPPER ==================== */
article {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

/* Meta info */
.meta {
  color: var(--muted);
  font-size: 0.9em;
  margin-bottom: 1.5rem;
  padding: 12px 16px;
  background: var(--brand-lighter);
  border-radius: 8px;
  border-left: 3px solid var(--brand);
}

/* Intro (alerta) */
.intro {
  background: #FFF3CD;
  border-left: 4px solid #FFC107;
  padding: 20px;
  border-radius: 8px;
}

/* ==================== TABLE OF CONTENTS ==================== */
.table-of-contents {
  background: var(--brand-lighter);
  padding: 25px;
  border-radius: var(--radius);
  margin: 30px 0;
  border: 1px solid var(--brand-light);
}
.table-of-contents h2 {
  margin-top: 0;
  font-size: 1.3em;
  color: var(--brand-dark);
}
.table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.table-of-contents li {
  margin: 10px 0;
  padding-left: 20px;
  position: relative;
}
.table-of-contents li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: bold;
}

/* ==================== TYPOGRAPHY (BLOG) ==================== */
article h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink2);
  margin-bottom: 10px;
  line-height: 1.2;
  font-weight: 700;
}
article h2 {
  font-size: 1.8em;
  color: var(--ink2);
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--brand);
}
article h3 {
  font-size: 1.4em;
  color: var(--brand-dark);
  margin: 30px 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
article h3::before {
  content: "▸";
  color: var(--brand);
  font-weight: bold;
}
article p {
  margin-bottom: 15px;
  line-height: 1.7;
}

/* ==================== CALLOUT BOXES ==================== */
.info-box, .warning-box, .success-box {
  padding: 20px;
  margin: 25px 0;
  border-radius: var(--radius);
  border-left: 5px solid;
}
.info-box { background: #E0F2FE; border-color: #0284C7; }
.warning-box { background: #FEF3C7; border-color: #F59E0B; }
.success-box { background: var(--brand-lighter); border-color: var(--brand); }

/* ==================== CTA BOX ==================== */
.cta-box {
  background: linear-gradient(135deg, var(--brand) 0%, #0ed9ad 100%);
  color: #fff;
  text-align: center;
  border: none;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(11, 169, 137, 0.3);
  border-radius: var(--radius);
  margin: 30px 0;
}
.cta-box h3 {
  color: #fff;
  margin-top: 0;
  display: inline-block;
}
.cta-box h3::before { display: none; }
.cta-box p { margin: 10px 0; }
.cta-box a {
  color: #fff;
  border-bottom: 2px solid #fff;
  font-weight: bold;
}

/* ==================== RELATED ARTICLES ==================== */
.related-articles {
  background: var(--brand-lighter);
  padding: 30px;
  border-radius: var(--radius);
  margin-top: 50px;
  border: 1px solid var(--brand-light);
}
.related-articles h2 {
  margin-top: 0;
  font-size: 1.5em;
  border: none;
  color: var(--brand-dark);
}
.related-articles ul {
  list-style: none;
  padding: 0;
}
.related-articles li {
  margin: 12px 0;
  padding-left: 25px;
  position: relative;
}
.related-articles li::before {
  content: "📄";
  position: absolute;
  left: 0;
}

/* ==================== LISTS & LINKS ==================== */
article ul, article ol {
  margin: 15px 0;
  padding-left: 30px;
}
article li {
  margin: 8px 0;
  line-height: 1.6;
}
article a {
  color: var(--brand);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
article a:hover { border-bottom-color: var(--brand); }

/* ==================== SECTION SPACING ==================== */
section { margin: 40px 0; }
section:first-of-type { margin-top: 20px; }

/* ==================== RESPONSIVE (≤768px) ==================== */
@media (max-width: 768px) {
  article { padding: 24px 20px; margin: 1rem 0; }

  article h1 { font-size: 1.8em; }
  article h2 { font-size: 1.5em; margin-top: 30px; }
  article h3 { font-size: 1.2em; }

  .table-of-contents,
  .related-articles { padding: 20px; }

  .info-box, .warning-box, .success-box, .cta-box { padding: 16px; }
}