/*
 * Blog article and legal page layouts (templates/single-post.php, page-legal.php). Values are the
 * live site's Tailwind utilities; selectors are scoped under .nb-post so the theme's reset (headings,
 * links) does not leak in.
 */

.nb-post {
	--brand-50: #e6eff7; --brand-100: #c0d7ec; --brand-200: #8db8da; --brand-600: #1a3254; --brand-700: #152a48; --brand-900: #0b182e;
	--slate-50: #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0; --slate-400: #90a1b9; --slate-500: #62748e;
	--slate-600: #45556c; --slate-700: #314158; --slate-900: #0f172b;
	--emergency-500: #e03131; --emergency-600: #c62828; --emergency-700: #a31f1f;
	font-family: Inter, ui-sans-serif, system-ui, sans-serif;
	color: #1e293b;
	line-height: 1.5;
}
.nb-post *, .nb-post *::before, .nb-post *::after { box-sizing: border-box; }
.nb-post h1, .nb-post h2, .nb-post h3, .nb-post p { margin: 0; }
.nb-post a { color: inherit; text-decoration: none; }
.nb-post .nb-icon { width: 1rem; height: 1rem; flex-shrink: 0; fill: none; }

.nb-post-container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; position: relative; }
.nb-post-narrow { max-width: 48rem; margin: 0 auto; }
.nb-post-wide { max-width: 64rem; margin: 0 auto; }
@media (min-width: 640px) { .nb-post-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .nb-post-container { padding: 0 2rem; } }

/* Breadcrumb */
.nb-post-crumbs { background: var(--slate-50); border-bottom: 1px solid var(--slate-100); }
.nb-post-crumbs .nb-post-container { padding-top: .75rem; padding-bottom: .75rem; }
.nb-post-crumbs ol { display: flex; align-items: center; gap: .375rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; line-height: 1.25rem; }
.nb-post-crumbs li { display: flex; align-items: center; gap: .375rem; }
.nb-post-crumbs a { color: var(--slate-500); transition: color .15s; }
.nb-post-crumbs a:hover { color: var(--brand-700); }
.nb-post-crumbs span { font-weight: 500; color: var(--slate-900); }
.nb-post .nb-icon-crumb { width: .875rem; height: .875rem; color: var(--slate-400); flex-shrink: 1; min-width: 0; } /* live's chevron may shrink, giving a long title more room on phones */

/* Hero */
.nb-post-hero { position: relative; overflow: hidden; background: var(--brand-900); color: #fff; padding: 4rem 0; }
.nb-post-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.nb-post-hero-overlay { position: absolute; inset: 0; background-image: linear-gradient(to top, rgba(11, 24, 46, .9), rgba(11, 24, 46, .6), rgba(11, 24, 46, .4)); }
.nb-post-pill {
	display: inline-flex; align-items: center; gap: .375rem; margin-bottom: 1rem; padding: .25rem .75rem;
	border: 1px solid rgba(255, 255, 255, .2); border-radius: 9999px; background: rgba(255, 255, 255, .15);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
	font-size: .75rem; line-height: 1rem; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; color: #fff;
}
.nb-post-hero h1 { font-size: 1.875rem; line-height: 1.25; font-weight: 700; letter-spacing: -.025em; color: #fff; }
.nb-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; font-size: .875rem; line-height: 1.25rem; color: var(--brand-200); }
.nb-post-meta span { display: flex; align-items: center; gap: .375rem; }
@media (min-width: 640px) {
	.nb-post-hero { padding: 5rem 0; }
	.nb-post-hero h1 { font-size: 2.25rem; }
}
@media (min-width: 1024px) { .nb-post-hero h1 { font-size: 3rem; } }

/* Article */
.nb-post-article { padding: 3rem 0; }
@media (min-width: 640px) { .nb-post-article { padding: 4rem 0; } }
.nb-post-lead { margin-bottom: 2.5rem !important; padding-left: 1.5rem; border-left: 4px solid var(--brand-700); font-size: 1.25rem; line-height: 1.625; font-weight: 500; color: var(--slate-700); }
.nb-post-body h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--slate-900); }
.nb-post-body h2:first-child { margin-top: 0; }
.nb-post-body h3 { margin: 2rem 0 .75rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; color: var(--slate-900); }
.nb-post-body p { margin: 0 0 1rem; line-height: 1.625; color: var(--slate-600); }
.nb-post-body a { color: var(--brand-700); text-decoration: underline; }

.nb-post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--slate-200); }
.nb-post-tags .nb-icon { color: var(--slate-400); }
.nb-post-tags span { padding: .25rem .75rem; border-radius: 9999px; background: var(--slate-100); font-size: .875rem; line-height: 1.25rem; color: var(--slate-600); }

.nb-post-cta { margin-top: 2.5rem; padding: 2rem; border: 1px solid var(--brand-100); border-radius: 1rem; background: var(--brand-50); text-align: center; }
.nb-post-cta h3 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; color: var(--slate-900); }
.nb-post-cta p { margin-top: .5rem; color: var(--slate-600); }
.nb-post-cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.nb-post-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.5rem;
	border-radius: .75rem; font-size: 1rem; line-height: 1.5rem; font-weight: 600; white-space: nowrap;
	transition: all .3s;
}
.nb-post-btn:hover { transform: translateY(-2px); }
.nb-post-btn-emergency { color: #fff !important; background-image: linear-gradient(to bottom right, var(--emergency-500), var(--emergency-600)); box-shadow: 0 10px 15px -3px rgba(224, 49, 49, .25), 0 4px 6px -4px rgba(224, 49, 49, .25); }
.nb-post-btn-emergency:hover { background-image: linear-gradient(to bottom right, var(--emergency-600), var(--emergency-700)); box-shadow: 0 20px 25px -5px rgba(224, 49, 49, .4), 0 8px 10px -6px rgba(224, 49, 49, .4); }
.nb-post-btn-outline { border: 2px solid var(--brand-600); color: var(--brand-700) !important; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1); }
.nb-post-btn-outline:hover { border-color: var(--brand-700); background: var(--brand-700); color: #fff !important; }

/* Shared card link label */
.nb-post-more { display: inline-flex; align-items: center; gap: .25rem; font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--brand-700); }
.nb-post-more .nb-icon { width: .875rem; height: .875rem; }

/* Need Professional Help band */
.nb-post-help { padding: 2.5rem 0; background: var(--brand-50); }
@media (min-width: 640px) { .nb-post-help { padding: 3rem 0; } }
.nb-post-help-head { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; }
.nb-post-help-head .nb-icon { width: 1.25rem; height: 1.25rem; color: var(--brand-700); }
.nb-post-help-head h2 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; color: var(--slate-900); }
.nb-post-help-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .nb-post-help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nb-post-help-card { display: flex; flex-direction: column; padding: 1.25rem; border: 1px solid var(--brand-200); border-radius: .75rem; background: #fff; transition: box-shadow .15s; }
.nb-post-help-card:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); }
.nb-post-help-card h3 { font-size: 1rem; line-height: 1.5rem; font-weight: 600; color: var(--slate-900); transition: color .15s; }
.nb-post-help-card:hover h3 { color: var(--brand-700); }
.nb-post-help-card p { margin-top: .25rem; font-size: .875rem; line-height: 1.25rem; color: var(--slate-600); }
.nb-post-help-card .nb-post-more { margin-top: .75rem; }

/* FAQ band */
.nb-post-faq { padding: 3rem 0; background: var(--slate-50); }
@media (min-width: 640px) { .nb-post-faq { padding: 4rem 0; } }
.nb-post-faq h2 { margin-bottom: 1.5rem; font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--slate-900); }
.nb-post-faq-list { border: 1px solid var(--slate-200); border-radius: 1rem; }
.nb-post-faq-item + .nb-post-faq-item { border-top: 1px solid var(--slate-200); }
.nb-post-faq-item summary {
	display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem;
	list-style: none; cursor: pointer; font-weight: 600; color: var(--slate-900); transition: background-color .15s;
}
.nb-post-faq-item summary::-webkit-details-marker { display: none; }
.nb-post-faq-item summary:hover { background: var(--slate-50); }
.nb-post-faq-item summary .nb-icon { width: 1.25rem; height: 1.25rem; color: var(--slate-500); transition: transform .2s; }
.nb-post-faq-item[open] summary .nb-icon { transform: rotate(180deg); }
.nb-post-faq-item p { padding: 0 1.5rem 1.25rem; line-height: 1.625; color: var(--slate-600); }

/* Related articles band */
.nb-post-related { padding: 3rem 0; }
@media (min-width: 640px) { .nb-post-related { padding: 4rem 0; } }
.nb-post-related h2 { margin-bottom: 2rem; font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--slate-900); }
.nb-post-related-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .nb-post-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .nb-post-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nb-post-related-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--slate-200); border-radius: .75rem; background: #fff; transition: box-shadow .15s; }
.nb-post-related-card:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1); }
.nb-post-related-img { position: relative; aspect-ratio: 16 / 9; background: var(--slate-100); }
.nb-post-related-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nb-post-related-text { padding: 1.25rem; }
.nb-post-related-text h3 {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	font-size: 1rem; line-height: 1.5rem; font-weight: 600; color: var(--slate-900); transition: color .15s;
}
.nb-post-related-card:hover h3 { color: var(--brand-700); }
.nb-post-related-text .nb-post-more { margin-top: .5rem; }

/* Previous / next */
.nb-post-nav { padding: 2rem 0; border-top: 1px solid var(--slate-200); }
.nb-post-nav-row { display: flex; justify-content: space-between; }
.nb-post-nav-link { display: flex; align-items: center; gap: .5rem; font-size: .875rem; line-height: 1.25rem; color: var(--slate-600) !important; }
.nb-post-nav-link:hover { color: var(--brand-700) !important; }
.nb-post-nav-next { text-align: right; }
.nb-post-nav-label { display: block; font-size: .75rem; line-height: 1rem; color: var(--slate-400); }
.nb-post-nav-title { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 200px; font-weight: 500; }

/* Legal pages (templates/page-legal.php). Live has no typography plugin, so the article is plain:
   headings at normal weight, paragraphs without margins, spacing only where live sets it. */
.nb-legal { padding: 4rem 0; }
.nb-legal-body { max-width: 48rem; margin: 0 auto; color: #1e293b; }
.nb-legal-body h1 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 800; color: var(--slate-900); }
.nb-legal-body h2 { margin-top: 2.5rem; font-size: 1.5rem; line-height: 2rem; font-weight: 400; color: inherit; }
.nb-legal-body h3 { margin-top: 1.5rem; font-size: 1.125rem; line-height: 1.75rem; font-weight: 400; color: inherit; }
.nb-legal-body p { margin: 0; font-size: 1rem; line-height: 1.5rem; }
.nb-legal-body ul + p, .nb-legal-body p + p { margin-top: 0.75rem; }
.nb-legal-body ul { margin: 0.75rem 0 0; padding-left: 1.5rem; list-style: disc; }
.nb-legal-body li + li { margin-top: 0.5rem; }
.nb-legal-body p.nb-legal-updated { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--slate-500); }
.nb-legal-body p.nb-legal-intro { margin-top: 2rem; }
.nb-legal-body .nb-legal-box { margin-top: 1rem; padding: 1.5rem; border-radius: 0.5rem; background: var(--slate-50); }
.nb-legal-body .nb-legal-box p { margin: 0; }
.nb-legal-body .nb-legal-box p:first-child { font-weight: 600; color: var(--slate-900); }

/* Blog index (templates/blog-index.php). */
.nb-blog-hero { position: relative; display: flex; align-items: center; min-height: 360px; overflow: hidden; background: #060e1c; color: #fff; }
.nb-blog-hero-overlay { position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(6, 14, 28, 0.9), rgba(6, 14, 28, 0.8), rgba(6, 14, 28, 0.65)); }
.nb-blog-hero-inner { z-index: 1; width: 100%; padding-top: 5rem; padding-bottom: 5rem; }
.nb-blog-hero-text { max-width: 42rem; }
.nb-blog-hero h1 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 800; letter-spacing: -0.025em; color: #fff; }
.nb-blog-hero p { max-width: 36rem; margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.625; color: var(--brand-200); }
@media (min-width: 640px) {
	.nb-blog-hero-inner { padding-top: 6rem; padding-bottom: 6rem; }
	.nb-blog-hero h1 { font-size: 3rem; line-height: 1; }
}
@media (min-width: 1024px) { .nb-blog-hero h1 { font-size: 3.75rem; } }

.nb-blog-chips { border-bottom: 1px solid var(--slate-200); background: #fff; }
.nb-blog-chip-row { display: flex; gap: 0.5rem; overflow-x: auto; padding: 1rem 0; scrollbar-width: none; }
.nb-blog-chip-row::-webkit-scrollbar { display: none; }
.nb-blog-chip { flex-shrink: 0; padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.nb-blog-chip-all { background: var(--brand-700); color: #fff !important; }
.nb-cat-blue { background: #dbeafe; color: #193cb8; }
.nb-cat-teal { background: #cbfbf1; color: #005f5a; }
.nb-cat-indigo { background: #e0e7ff; color: #372aac; }
.nb-cat-green { background: #dcfce7; color: #016630; }
.nb-cat-orange { background: #ffedd5; color: #9f2d00; }
.nb-cat-slate { background: var(--slate-100); color: #1d293d; }
.nb-cat-amber { background: #fef3c6; color: #953d00; }
.nb-cat-cyan { background: #cefafe; color: #005f78; }
.nb-cat-purple { background: #f3e8ff; color: #6e11b0; }

.nb-blog-badge { padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.nb-blog-badge-sm { padding: 0.125rem 0.625rem; }
.nb-blog-featured { padding: 3rem 0; }
@media (min-width: 640px) { .nb-blog-featured { padding: 4rem 0; } }
.nb-blog-featured-link { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .nb-blog-featured-link { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; } }
.nb-blog-featured-img, .nb-blog-card-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--slate-100); }
.nb-blog-featured-img { border-radius: 1rem; }
.nb-blog-featured-img img, .nb-blog-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.nb-blog-featured-link:hover img, .nb-blog-card:hover img { transform: scale(1.05); }
.nb-blog-featured-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.nb-blog-date { font-size: 0.875rem; line-height: 1.25rem; color: var(--slate-500); }
.nb-blog-featured h2 { font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--slate-900); transition: color 0.15s; }
@media (min-width: 640px) { .nb-blog-featured h2 { font-size: 1.875rem; line-height: 2.25rem; } }
.nb-blog-featured-link:hover h2 { color: var(--brand-700); }
.nb-blog-featured-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 1rem !important; line-height: 1.625; color: var(--slate-600); }
.nb-blog-featured-time { display: flex; gap: 1rem; margin-top: 1.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--slate-500); }
.nb-blog-featured-time span { display: flex; align-items: center; gap: 0.25rem; }
.nb-blog-read { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-weight: 600; color: var(--brand-700); transition: gap 0.15s; }
.nb-blog-featured-link:hover .nb-blog-read { gap: 0.75rem; }

.nb-blog-all { padding: 4rem 0; background: var(--slate-50); }
@media (min-width: 640px) { .nb-blog-all { padding: 5rem 0; } }
.nb-blog-all h2 { margin-bottom: 2rem; font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--slate-900); }
.nb-blog-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .nb-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .nb-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nb-blog-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 0.75rem; background: #fff; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); transition: box-shadow 0.15s; }
.nb-blog-card:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.nb-blog-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.nb-blog-card-meta { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.nb-blog-date-sm { font-size: 0.75rem; line-height: 1rem; color: var(--slate-400); }
.nb-blog-card h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1rem; line-height: 1.5rem; font-weight: 600; color: var(--slate-900); transition: color 0.15s; }
.nb-blog-card:hover h3 { color: var(--brand-700); }
.nb-blog-card p { display: -webkit-box; flex: 1; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--slate-600); }
.nb-blog-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; font-size: 0.875rem; line-height: 1.25rem; }
.nb-blog-card-time { display: flex; align-items: center; gap: 0.25rem; color: var(--slate-400); }
.nb-blog-card-time .nb-icon { width: 0.875rem; height: 0.875rem; }
.nb-blog-card-more { font-weight: 500; color: var(--brand-700); }
.nb-blog-card:hover .nb-blog-card-more { text-decoration: underline; }

.nb-blog-cta { padding: 4rem 0; background: var(--brand-900); color: #fff; text-align: center; }
.nb-blog-cta h2 { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; color: #fff; }
.nb-blog-cta p { max-width: 42rem; margin: 1rem auto 0; font-size: 1.125rem; line-height: 1.75rem; color: var(--brand-200); }
.nb-blog-cta .nb-post-cta-buttons { margin-top: 2rem; }
.nb-post-btn-lg { padding: 1rem 2rem; font-size: 1.125rem; line-height: 1.75rem; gap: 0.625rem; }
.nb-post-btn-white { border: 1px solid var(--slate-200); background: #fff; color: #10213b !important; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.nb-post-btn-white:hover { border-color: var(--brand-200); background: var(--slate-50); }
