/* Insights (blog): list page and article page. Builds on the yx- tokens in refresh.css.
   Legacy CSS forces heading sizes with !important, so heading rules here use !important too. */

.yx-ins-hero { padding: 150px 0 64px; }
.yx-ins-hero h1 { font-size: clamp(32px, 4.5vw, 50px) !important; line-height: 1.15 !important; color: var(--yx-ink); max-width: 860px; margin: 0 0 16px !important; }
.yx-ins-hero p { font-size: 18px !important; line-height: 1.6 !important; color: var(--yx-muted, #475569); max-width: 720px; }

/* Palette for these pages: headings ink, secondary text muted, links/labels blue, CTA navy, accent gold.
   Body text uses Inter 400 (legacy CSS sets a thin 300 weight). */
.yx-ins-page p, .yx-ins-page li, .yx-ins-page .yx-post-date, .yx-ins-page .yx-crumbs, .yx-ins-page .yx-crumbs span { font-weight: 400 !important; }
.yx-ins-page h1, .yx-ins-page h2, .yx-ins-page h3 { color: var(--yx-ink) !important; }

/* List cards (extends .yx-post from refresh.css) */
.yx-ins-page .yx-post h3 { font-size: 21px !important; line-height: 1.3 !important; margin-bottom: 10px !important; }
.yx-ins-page .yx-post-desc { font-size: 15px !important; line-height: 1.6 !important; color: var(--yx-muted) !important; margin: 0 0 14px !important; }
.yx-ins-page .yx-post-date, .yx-ins-hero p.yx-post-date { font-size: 14px !important; line-height: 1.5 !important; color: var(--yx-muted) !important; }

/* Article */
.yx-article-wrap { max-width: 800px; }
.yx-crumbs { font-size: 14px; margin-bottom: 18px; color: var(--yx-muted, #64748b); }
.yx-crumbs a { color: var(--yx-blue) !important; font-weight: 600; }
.yx-ins-hero p.yx-article-lead { font-size: 20px !important; color: var(--yx-muted) !important; line-height: 1.6 !important; margin-bottom: 14px !important; }
.yx-article-img { width: 100%; border-radius: var(--yx-radius); margin-bottom: 40px; aspect-ratio: 16 / 8; object-fit: cover; }

.yx-article { font-size: 18px; line-height: 1.75; color: var(--yx-ink); }
/* Legacy app.css sets ".content p { color: #fff }" and larger p sizes; reset them for article text */
.yx-ins-page .yx-article p, .yx-ins-page .yx-article li { color: var(--yx-ink); font-size: 18px !important; line-height: 1.75 !important; }
.yx-ins-page .yx-crumbs span { color: var(--yx-muted, #64748b); font-size: 14px !important; }
.yx-article p, .yx-article ul, .yx-article ol { margin: 0 0 22px !important; }
.yx-article h2 { font-size: 30px !important; line-height: 1.25 !important; margin: 48px 0 16px !important; }
.yx-article h3 { font-size: 22px !important; line-height: 1.3 !important; margin: 32px 0 12px !important; }
.yx-article ul, .yx-article ol { padding-left: 24px; }
.yx-article ul { list-style: disc; }
.yx-article ol { list-style: decimal; }
.yx-article li { margin-bottom: 8px; }
.yx-article a { color: var(--yx-blue) !important; text-decoration: underline !important; }
.yx-article strong { font-weight: 700; }
.yx-article blockquote { border-left: 4px solid var(--yx-gold, #c9a24a); padding: 4px 0 4px 20px; margin: 0 0 22px; color: var(--yx-muted, #475569); }
.yx-article table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; }
.yx-article th, .yx-article td { border: 1px solid var(--yx-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.yx-article th { background: var(--yx-bg-soft); font-weight: 600; }
.yx-article code { font-size: 0.9em; background: var(--yx-bg-soft); padding: 2px 6px; border-radius: 4px; }

.yx-article-cta { margin: 56px 0 32px; padding: 32px; border-radius: var(--yx-radius); background: var(--yx-navy, #1f2857); color: #fff; }
.yx-ins-page .yx-article-cta h2 { font-size: 26px !important; color: #fff !important; margin: 0 0 8px !important; }
.yx-ins-page .yx-article-cta p { color: rgba(255, 255, 255, .85) !important; font-size: 17px !important; line-height: 1.6 !important; margin: 0 0 20px !important; }
.yx-ins-page .yx-back { color: var(--yx-blue) !important; font-weight: 600; font-size: 16px !important; }

@media (max-width: 767px) {
	.yx-ins-hero { padding: 120px 0 40px; }
	.yx-article, .yx-ins-page .yx-article p, .yx-ins-page .yx-article li { font-size: 17px !important; }
	.yx-article h2 { font-size: 25px !important; }
	.yx-article table { display: block; overflow-x: auto; }
}

/* Legal pages (privacy-policy.htm, corporate-policies.htm) reuse the article styles above */
.yx-toc { margin: 0 0 40px; padding: 24px 28px; border: 1px solid var(--yx-line); border-radius: var(--yx-radius); background: var(--yx-bg-soft); }
.yx-toc strong { display: block; font-size: 15px; color: var(--yx-ink); margin-bottom: 10px; }
.yx-toc ol { margin: 0; padding-left: 22px; list-style: decimal; columns: 2; column-gap: 32px; }
.yx-ins-page .yx-toc li { font-size: 15px !important; line-height: 1.5 !important; margin-bottom: 6px; break-inside: avoid; color: var(--yx-muted); }
.yx-toc a { color: var(--yx-blue) !important; }
.yx-legal .yx-article h2 { scroll-margin-top: 120px; }
.yx-legal .yx-article td, .yx-legal .yx-article th { font-size: 15px; line-height: 1.55; color: var(--yx-ink); }
@media (max-width: 767px) { .yx-toc ol { columns: 1; } }
