/**
 * GrowWithMH — Post / Page Content Styles
 * Applied to .entry-content and .post-content
 */

.entry-content,
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--charcoal);
}

/* Paragraphs */
.entry-content p,
.post-content p {
  margin-bottom: 1.5rem;
  color: #374151;
}

/* Headings */
.entry-content h2,
.post-content h2 {
  font-size: 1.7rem;
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  padding-top: 0.5rem;
}

.entry-content h3,
.post-content h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.entry-content h4,
.post-content h4 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mid-gray);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

/* Anchors */
.entry-content a,
.post-content a {
  color: var(--teal-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.entry-content a:hover,
.post-content a:hover {
  color: var(--navy);
}

/* Lists */
.entry-content ul,
.post-content ul {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.entry-content ul li,
.post-content ul li {
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.97rem;
  color: #374151;
}
.entry-content ul li::before,
.post-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.entry-content ol,
.post-content ol {
  padding-left: 1.5rem;
  margin: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.entry-content ol li,
.post-content ol li {
  font-size: 0.97rem;
  color: #374151;
  padding-left: 0.5rem;
}
.entry-content ol li::marker,
.post-content ol li::marker {
  color: var(--teal-mid);
  font-weight: 700;
}

/* Blockquote */
.entry-content blockquote,
.post-content blockquote {
  border-left: 3px solid var(--teal);
  padding: 1.25rem 1.5rem;
  background: var(--teal-light);
  border-radius: 0 12px 12px 0;
  margin: 2rem 0;
  font-style: italic;
  color: var(--navy);
  font-size: 1.05rem;
}
.entry-content blockquote p,
.post-content blockquote p {
  color: var(--navy);
  margin-bottom: 0;
}
.entry-content blockquote cite,
.post-content blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--mid-gray);
}

/* Code */
.entry-content code,
.post-content code {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.88em;
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--navy);
}

.entry-content pre,
.post-content pre {
  background: var(--navy-deep);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.75rem 0;
}
.entry-content pre code,
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

/* Tables */
.entry-content table,
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.entry-content thead,
.post-content thead {
  background: var(--navy);
  color: white;
}
.entry-content th,
.post-content th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.entry-content td,
.post-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--charcoal);
}
.entry-content tr:last-child td,
.post-content tr:last-child td {
  border-bottom: none;
}
.entry-content tr:nth-child(even),
.post-content tr:nth-child(even) {
  background: var(--off-white);
}

/* Images */
.entry-content img,
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

/* Horizontal rule */
.entry-content hr,
.post-content hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

/* Callout / info box (custom class) */
.callout {
  background: var(--teal-light);
  border: 1px solid rgba(43,191,181,0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.callout-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.callout p { color: var(--navy); margin-bottom: 0; font-size: 0.95rem; }

/* Key takeaway box */
.key-takeaway {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}
.key-takeaway::before {
  content: 'Key Takeaway';
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.key-takeaway p {
  color: rgba(255,255,255,0.85) !important;
  margin-bottom: 0 !important;
  font-style: italic;
}
