/*
 * Entry Content — blog article typography
 *
 * Fixes the "plain text document" look flagged in review: the post body had
 * zero custom styling (headings, paragraphs, blockquotes, lists and images
 * were all rendering on bare browser defaults). This is pure CSS, no plugin
 * dependency, matching the same navy/orange design language used for the
 * header and footer.
 *
 * SAFETY: every rule below is scoped under .entry-content, so nothing here
 * can affect the header, footer, nav, search box or any other part of the
 * page — those live in different markup entirely. This file is also new and
 * separate from navia-chrome.css / style.css, so it can be removed on its
 * own with zero impact on anything else if it's ever needed.
 *
 * Written against standard WordPress content classes (.entry-content,
 * .wp-block-*) so these rules keep working once real WordPress posts (with
 * real editor markup) replace the current sample article.
 */

/* "Tap to Listen" — position:fixed is intentional and correct: it's what
 * makes the button stay visible while scrolling, matching the real site's
 * behaviour (confirmed against the live navia.co.in/blog). Positioned in
 * the left margin outside the centered 720px content column so it never
 * overlaps the title or body text, instead of the old top:180px/left:15%
 * inline style, which happened to land on top of the title at the very
 * top of the page (only visible in an unscrolled screenshot, not during
 * actual scrolling — but worth fixing properly regardless). */
.tap-to-listen {
  position: fixed;
  top: 96px;
  left: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e6e9f0;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navia-navy-900, #0a1226);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(10, 18, 38, 0.08);
}
.tap-to-listen:hover { box-shadow: 0 4px 14px rgba(10, 18, 38, 0.14); }

/* "Tap to Listen" word-by-word highlight, matching the live site.
 * The highlighting LOGIC already exists in js/read-aloud.js (extracted
 * verbatim from the real theme) — it wraps words in spans and toggles this
 * exact class as each word is spoken. It was invisible only because no CSS
 * for it existed anywhere in the project; this is the missing style, not a
 * new feature. Color sampled directly from the live site's highlight. */
.entry-content .tts-active,
.postcontent .tts-active {
  background: #ffc1ad;
  color: var(--navia-navy-900, #0a1226);
  border-radius: 3px;
  padding: 0 2px;
}

@media (max-width: 1180px) {
  /* content column no longer has margin room on the left at this width —
     move to a floating bottom-right position instead, clear of the
     WhatsApp widget (bottom-left) and the mobile nav (top-right). */
  .tap-to-listen { top: auto; left: auto; bottom: 90px; right: 20px; }
}

.entry-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: #24304a;
}

/* title + date/byline line above the article body — kept at the same width
   and centering as .entry-content above, so the title lines up with the
   paragraph text below it instead of sitting flush-left while the body
   centers in a narrower column. */
.entry-header {
  max-width: 720px;
  margin: 0 auto 28px;
}
.entry-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--navia-navy-900, #0a1226);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.entry-meta {
  font-size: 14px;
  color: #6b7690;
}

/* paragraphs */
.entry-content p {
  margin: 0 0 22px;
}
.entry-content p.lead {
  font-size: 19px;
  line-height: 1.6;
  color: #45516d;
  font-weight: 500;
}

/* headings */
.entry-content h2 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navia-navy-900, #0a1226);
  margin: 44px 0 18px;
  letter-spacing: -0.01em;
}
.entry-content h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navia-navy-900, #0a1226);
  margin: 34px 0 14px;
}
.entry-content h2:first-child,
.entry-content h3:first-child {
  margin-top: 0;
}

/* blockquote / pull-quote */
.entry-content blockquote {
  margin: 30px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--navia-orange, #ed4d37);
  background: #fbf6f5;
  border-radius: 0 10px 10px 0;
  font-size: 18px;
  line-height: 1.6;
  color: #3a2e2c;
}
.entry-content blockquote p {
  margin: 0;
}
.entry-content blockquote p + p {
  margin-top: 12px;
}

/* lists */
.entry-content ul,
.entry-content ol {
  margin: 0 0 24px;
  padding-left: 26px;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li {
  margin-bottom: 10px;
  padding-left: 4px;
}
.entry-content li strong { color: var(--navia-navy-900, #0a1226); }

/* links inside article body */
.entry-content a {
  color: var(--navia-navy-700, #223872);
  text-decoration: underline;
  text-decoration-color: rgba(34, 56, 114, 0.35);
  text-underline-offset: 3px;
}
.entry-content a:hover {
  text-decoration-color: currentColor;
}

/* images */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 8px 0;
  display: block;
}
.entry-content figure {
  margin: 30px 0;
}
.entry-content figcaption {
  font-size: 13.5px;
  color: #6b7690;
  margin-top: 8px;
  text-align: center;
}

/* emphasis */
.entry-content strong { color: var(--navia-navy-900, #0a1226); font-weight: 700; }
.entry-content em { font-style: italic; }

/* code, if a post ever includes any */
.entry-content code {
  background: #f1f3f8;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.entry-content pre {
  background: #0a1226;
  color: #e4e9f5;
  padding: 18px 20px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 24px 0;
}
.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* horizontal rule between sections, if used */
.entry-content hr {
  border: none;
  border-top: 1px solid #e6e9f0;
  margin: 40px 0;
}

/* italic sample/dev-note paragraph at the end of the sample article */
.entry-content em:only-child {
  color: #6b7690;
}

@media (max-width: 700px) {
  .entry-content { font-size: 16px; }
  .entry-title { font-size: 25px; }
  .entry-content h2 { font-size: 22px; margin: 34px 0 14px; }
  .entry-content h3 { font-size: 19px; margin: 26px 0 12px; }
  .entry-content blockquote { padding: 14px 18px; font-size: 16.5px; }
}
