/* ============================================================
   JuniperClient CMS — tech-professional theme v5
   Conversion + AdSense optimized · fully mobile responsive
   ============================================================ */
:root {
	--bg: #0b1220;
	--bg2: #101a2e;
	--surface: #ffffff;
	--muted: #64748b;
	--line: #e2e8f0;
	--accent: #1e88e5;
	--accent-dark: #1565c0;
	--green: #00c582;
	--code-bg: #0b1220;
	--max: 1220px;
	--radius: 14px;
	--header-h: 66px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1e293b; background: #f4f7fb; line-height: 1.65; -webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* accessibility: skip link + visible focus */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--green); color: #04281a;
	padding: 10px 18px; border-radius: 0 0 10px 0; font-weight: 800; z-index: 200; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .nav-toggle:focus-visible {
	outline: 3px solid var(--green); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { background: linear-gradient(90deg, #0b1220, #101a2e); color: #fff; position: sticky; top: 0; z-index: 60;
	box-shadow: 0 2px 14px rgba(2, 8, 23, .35); border-bottom: 1px solid rgba(0,197,130,.25); }
.site-header .container { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); flex-wrap: wrap; }
.logo { font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: -.02em; white-space: nowrap; }
.logo span { color: var(--green); }

/* menu shell (desktop = inline row, mobile = collapsible drawer) */
.nav-check { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.site-menu { flex: 1 1 auto; display: flex; min-width: 0; }
.menu-inner { display: flex; align-items: center; gap: 14px; width: 100%; }
.main-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.main-nav a { color: #cbd5e1; padding: 8px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,.09); }
.search-form { margin-left: auto; display: flex; }
.search-form input { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff;
	padding: 8px 12px; border-radius: 8px 0 0 8px; font-size: .9rem; width: 180px; min-width: 0; }
.search-form input::placeholder { color: #8ea0b8; }
.search-form button { background: var(--green); color: #04281a; border: none; padding: 8px 15px;
	border-radius: 0 8px 8px 0; cursor: pointer; font-weight: 800; }

/* hamburger */
.nav-toggle { display: none; margin-left: auto; align-items: center; justify-content: center; gap: 8px;
	width: auto; padding: 9px 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
	border-radius: 10px; cursor: pointer; color: #e2e8f0; font: inherit; font-size: .82rem; font-weight: 700;
	letter-spacing: .04em; text-transform: uppercase; user-select: none; -webkit-tap-highlight-color: transparent; }
.nav-toggle:hover { background: rgba(255,255,255,.14); }
.nav-toggle .bars { display: inline-block; position: relative; width: 20px; height: 14px; flex: none; }
.nav-toggle .bars i { position: absolute; left: 0; width: 100%; height: 2px; background: #fff; border-radius: 2px;
	transition: transform .22s ease, opacity .18s ease, top .22s ease; }
.nav-toggle .bars i:nth-child(1) { top: 0; }
.nav-toggle .bars i:nth-child(2) { top: 6px; }
.nav-toggle .bars i:nth-child(3) { top: 12px; }
.nav-check:checked ~ .nav-toggle .bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-check:checked ~ .nav-toggle .bars i:nth-child(2) { opacity: 0; }
.nav-check:checked ~ .nav-toggle .bars i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
.nav-toggle .lbl-open { display: inline; }
.nav-toggle .lbl-close { display: none; }
.nav-check:checked ~ .nav-toggle .lbl-open { display: none; }
.nav-check:checked ~ .nav-toggle .lbl-close { display: inline; }

@media (max-width: 980px) {
	:root { --header-h: 58px; }
	.site-header .container { min-height: var(--header-h); gap: 10px; padding-top: 8px; padding-bottom: 8px; }
	.nav-toggle { display: inline-flex; }
	.site-menu { flex: 0 0 100%; width: 100%; display: grid; grid-template-rows: 0fr;
		transition: grid-template-rows .26s ease; }
	.nav-check:checked ~ .site-menu { grid-template-rows: 1fr; }
	.menu-inner { min-height: 0; overflow: hidden; flex-direction: column; align-items: stretch; gap: 0; }
	.nav-check:checked ~ .site-menu .menu-inner { padding-bottom: 12px; }
	.main-nav { flex-direction: column; gap: 0; border-top: 1px solid rgba(255,255,255,.1); margin-top: 4px; padding-top: 6px; }
	.main-nav a { padding: 12px 10px; border-radius: 8px; font-size: .98rem; }
	.search-form { margin: 10px 0 0; width: 100%; }
	.search-form input { flex: 1 1 auto; width: 100%; padding: 11px 13px; font-size: 16px; }
	.search-form button { padding: 11px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.site-menu, .nav-toggle .bars i, .post-card { transition: none !important; }
}

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 400px at 15% -10%, rgba(30,136,229,.28), transparent),
	radial-gradient(900px 380px at 90% 0%, rgba(0,197,130,.18), transparent), linear-gradient(160deg, #0b1220 0%, #131f38 100%);
	color: #fff; padding: 58px 0 52px; margin-bottom: 34px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
	linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
	background-size: 44px 44px; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.62rem, 4.6vw, 2.25rem); margin: 12px 0 12px; letter-spacing: -.025em; line-height: 1.22; max-width: 760px; }
.hero p { color: #9fb2cc; margin: 0; max-width: 680px; font-size: clamp(.96rem, 2.4vw, 1.06rem); }
.hero .tagline-badge { display: inline-block; background: rgba(0,197,130,.14); color: var(--green);
	border: 1px solid rgba(0,197,130,.4); padding: 5px 14px; border-radius: 99px;
	font-size: .78rem; font-weight: 700; margin-bottom: 6px; letter-spacing: .06em; }
.hero-stats { display: flex; gap: 26px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.35rem; color: #fff; }
.hero-stats div span { color: #8ea0b8; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 760px) {
	.hero { padding: 34px 0 32px; margin-bottom: 24px; }
	.hero-stats { gap: 14px 22px; margin-top: 20px; }
	.hero-stats div strong { font-size: 1.12rem; }
	.hero-stats div span { font-size: .72rem; }
	.hero-cta .btn { flex: 1 1 100%; text-align: center; }
}

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 336px; gap: 34px; align-items: start; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Post cards ---------- */
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 24px 26px; margin-bottom: 20px; transition: box-shadow .18s, transform .18s, border-color .18s; position: relative; }
.post-card:hover { box-shadow: 0 12px 30px rgba(15, 23, 42, .10); transform: translateY(-3px); border-color: #c9d6e8; }
.post-card.featured { border-left: 4px solid var(--green); }
.featured-badge { position: absolute; top: 18px; right: 18px; background: rgba(0,197,130,.12); color: #059669;
	font-size: .7rem; font-weight: 800; letter-spacing: .07em; padding: 4px 10px; border-radius: 99px; text-transform: uppercase; }
.post-card h2, .post-card h1 { margin: 6px 0 10px; letter-spacing: -.015em; }
.post-card h2 { font-size: 1.32rem; }
.post-card h2 a { color: #0f172a; }
.post-card h2 a:hover { color: var(--accent); }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; color: var(--muted); font-size: .83rem; align-items: center; }
.post-meta .cat { color: #059669; font-weight: 700; }
.post-excerpt { color: #475569; margin: 10px 0 0; }
.read-more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .88rem; }
.thumb { border-radius: 10px; margin-bottom: 16px; width: 100%; object-fit: cover; max-height: 340px; }
@media (max-width: 680px) {
	.post-card { padding: 18px 16px; }
	.post-card h2 { font-size: 1.14rem; }
	.featured-badge { position: static; display: inline-block; margin-bottom: 6px; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .8rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Sidebar ---------- */
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 980px) { .sidebar { position: static; } }
.sidebar .widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 22px; margin-bottom: 20px; }
.sidebar h3 { margin: 0 0 14px; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.sidebar li:last-child { border-bottom: none; }
.sidebar li a { color: #334155; display: flex; justify-content: space-between; gap: 10px; }
.sidebar li a:hover { color: var(--accent); }
.sidebar .count { color: var(--muted); font-size: .78rem; }
.sidebar .side-date { color: var(--muted); font-size: .77rem; }
.pop-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
	background: #eef4fb; color: var(--accent); border-radius: 6px; font-size: .75rem; font-weight: 800; margin-right: 4px; flex: none; }
.side-list a { display: flex !important; align-items: flex-start; }

/* CTA widget */
.cta-widget { background: linear-gradient(150deg, #0b1220, #16294d); color: #fff; border: none; }
.cta-widget h3 { color: #9fe8cd; }
.cta-widget p { color: #b7c6dd; font-size: .88rem; margin: 0 0 12px; }
.cta-widget .btn { width: 100%; text-align: center; }
.social-row { display: flex; gap: 8px; flex-wrap: wrap; }
.social-row a { flex: 1 1 80px; text-align: center; background: #f1f5f9; border-radius: 8px; padding: 8px 0; font-size: .82rem; font-weight: 700; color: #334155; }
.social-row a:hover { background: var(--accent); color: #fff; }

/* tag cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-cloud a { background: #eef4fb; color: #33527a; font-size: .78rem; padding: 4px 11px; border-radius: 99px; font-weight: 600; }
.tag-cloud a:hover { background: var(--accent); color: #fff; }
.tag-cloud .n { color: #94a3b8; font-size: .7rem; }

/* newsletter */
.newsletter-widget input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; font: inherit; }

/* ---------- Ads ---------- */
.ad-slot { margin: 22px 0; text-align: center; max-width: 100%; overflow: hidden; }
.ad-slot .ad-label { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #a4b3c8; margin-bottom: 6px; }
.in-article-ad { margin: 28px 0; padding: 14px; background: #f8fafc; border: 1px dashed var(--line); border-radius: 12px; text-align: center; overflow: hidden; }
.in-article-ad .ad-label { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #a4b3c8; margin-bottom: 8px; }
.ad-widget ins, .ad-slot ins, .in-article-ad ins { min-height: 90px; display: block; max-width: 100%; }

/* ---------- Single post ---------- */
.single { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 38px; }
.single h1 { font-size: clamp(1.5rem, 4.4vw, 2rem); margin: 10px 0 14px; letter-spacing: -.02em; line-height: 1.25; }
.post-content { font-size: 1.03rem; color: #334155; overflow-wrap: break-word; }
.post-content h2 { color: #0f172a; border-bottom: 2px solid #e8eef6; padding-bottom: 8px; margin-top: 36px;
	scroll-margin-top: calc(var(--header-h) + 20px); font-size: clamp(1.25rem, 3.6vw, 1.55rem); }
.post-content h3 { color: #0f172a; margin-top: 26px; scroll-margin-top: calc(var(--header-h) + 20px); font-size: clamp(1.08rem, 3vw, 1.25rem); }
.post-content p { margin: 14px 0; }
.post-content pre { background: var(--code-bg); color: #7dd3fc; padding: 18px 20px; border-radius: 12px;
	overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: .87rem; line-height: 1.6; border: 1px solid #1d2c4d; max-width: 100%; }
.post-content code { background: #eef2f7; padding: 2px 6px; border-radius: 5px; font-size: .87em; overflow-wrap: break-word; }
.post-content pre code { background: none; padding: 0; white-space: pre; }
.post-content blockquote { border-left: 4px solid var(--green); margin: 20px 0; padding: 12px 20px;
	background: #f0fdf7; color: #065f46; border-radius: 0 10px 10px 0; }
.post-content ul, .post-content ol { padding-left: 24px; }
.post-content li { margin: 6px 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.post-content th { background: #f1f5f9; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-content iframe, .post-content video { max-width: 100%; }
@media (max-width: 680px) {
	.single { padding: 20px 16px; }
	.post-content { font-size: 1rem; }
	.post-content pre { padding: 14px; font-size: .8rem; }
	.post-content table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* TOC */
.toc { background: #f6f9fd; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 22px 0; }
.toc strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; font-size: .92rem; }
.toc a { color: #33527a; }

/* key takeaways */
.takeaways { background: linear-gradient(150deg, #0b1220, #142440); color: #dbe7f7; border-radius: 12px;
	padding: 20px 24px; margin: 22px 0; }
.takeaways strong { color: var(--green); display: block; margin-bottom: 8px; font-size: .82rem;
	text-transform: uppercase; letter-spacing: .08em; }
.takeaways ul { margin: 0; padding-left: 20px; font-size: .93rem; }
.takeaways li { margin: 5px 0; }

.author-box { display: flex; gap: 16px; align-items: center; background: #f6f9fd; border: 1px solid var(--line);
	border-radius: 12px; padding: 18px 22px; margin-top: 30px; flex-wrap: wrap; }
.author-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(140deg, var(--accent), var(--green));
	color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; flex: none; }
.author-box .who { font-weight: 800; color: #0f172a; }
.author-box p { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 14px; }
.related-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: .9rem; }
.related-card a { color: #0f172a; font-weight: 700; display: block; }
.related-card .m { color: var(--muted); font-size: .76rem; margin-top: 8px; }

.tags-row { margin-top: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: #eef4fb; color: #33527a; font-size: .78rem; padding: 4px 12px; border-radius: 99px; font-weight: 600; }
.share-row { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.share-row a { font-size: .8rem; font-weight: 700; padding: 7px 14px; border-radius: 8px; background: #f1f5f9; color: #334155; }
.share-row a:hover { background: var(--accent); color: #fff; }

/* ---------- Comments ---------- */
.comments { margin-top: 40px; }
.comment { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; background: #f8fafc; }
.comment .who { font-weight: 700; color: #0f172a; }
.comment .when { color: var(--muted); font-size: .8rem; margin-left: 8px; }
.comment p { margin: 8px 0 0; color: #475569; }
.comment-form input, .comment-form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line);
	border-radius: 9px; font: inherit; margin-bottom: 12px; background: #fff; }
.comment-form textarea { min-height: 110px; resize: vertical; }
@media (max-width: 680px) { .comment-form input, .comment-form textarea { font-size: 16px; } }

/* ---------- Buttons / misc ---------- */
.btn { display: inline-block; background: var(--accent); color: #fff; border: none; padding: 11px 24px;
	border-radius: 9px; cursor: pointer; font-weight: 700; font-size: .95rem; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.green { background: var(--green); color: #04281a; }
.btn.red { background: #dc2626; }
.btn.sm { padding: 5px 12px; font-size: .8rem; }
.btn.ghost { background: #fff; color: #334155; border: 1px solid var(--line); }
.pagination { display: flex; gap: 7px; margin: 30px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 9px 15px; border: 1px solid var(--line); border-radius: 9px;
	background: #fff; color: #334155; font-size: .9rem; font-weight: 600; }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .gap { border: none; background: none; padding: 9px 4px; color: var(--muted); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.flash { padding: 13px 18px; border-radius: 11px; margin: 18px 0; font-size: .92rem; }
.flash.success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.flash.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.site-footer { background: var(--bg); color: #94a3b8; margin-top: 64px; padding: 38px 0; font-size: .9rem; }
.site-footer .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 22px; }
.site-footer .cols h4 { color: #e2e8f0; margin: 0 0 10px; font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; }
.site-footer .cols a { display: block; color: #94a3b8; padding: 3px 0; }
.site-footer .cols a:hover { color: #fff; }
.site-footer .bottom { border-top: 1px solid #1d2c4d; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.no-results { background: #fff; border: 1px dashed var(--line); padding: 44px 22px; text-align: center; border-radius: var(--radius); color: var(--muted); }

/* ---------- hero split + mixed home layouts ---------- */
.hero-flex { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-flex { grid-template-columns: 1fr; gap: 26px; } }
.hero-copy h1 { margin-top: 14px; }
.hero-cta { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; border-radius: 16px; border: 1px solid rgba(255,255,255,.12);
	box-shadow: 0 24px 60px rgba(0,0,0,.45); display: block; }
.hero-visual-badge { position: absolute; bottom: -12px; left: 24px; background: var(--green); color: #04281a;
	font-weight: 800; font-size: .75rem; letter-spacing: .1em; padding: 6px 14px; border-radius: 99px; }

.featured-card { border-left: 4px solid var(--green); }
.featured-card .thumb { max-height: 420px; }

.block-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 680px) { .block-grid { grid-template-columns: 1fr; gap: 16px; } }
.block-card { margin-bottom: 0; display: flex; flex-direction: column; }
.block-card .thumb { max-height: 200px; height: 200px; object-fit: cover; width: 100%; }
.block-card h2 { font-size: 1.12rem; }

.v-feed { display: flex; flex-direction: column; gap: 14px; }
.v-row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; background: var(--surface);
	border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; transition: box-shadow .15s; }
.v-row:hover { box-shadow: 0 10px 26px rgba(15,23,42,.09); }
.v-thumb img { width: 170px; height: 115px; object-fit: cover; border-radius: 10px; display: block; }
.v-body h2 { font-size: 1.05rem; margin: 4px 0 6px; }
.v-body h2 a { color: #0f172a; }
.v-body .post-excerpt { margin: 0; font-size: .9rem; }
@media (max-width: 620px) {
	.v-row { grid-template-columns: 116px 1fr; gap: 12px; padding: 12px; }
	.v-thumb img { width: 116px; height: 86px; }
	.v-body h2 { font-size: .98rem; }
	.v-body .post-excerpt { display: none; }
}

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 22px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #e2e8f0; margin: 0 0 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid a { display: block; color: #94a3b8; padding: 3px 0; font-size: .88rem; }
.footer-grid a:hover { color: #fff; }
.f-brand p { color: #94a3b8; font-size: .86rem; margin: 10px 0 16px; line-height: 1.7; }
.f-news { display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.f-news input { padding: 10px 12px; border-radius: 8px; border: 1px solid #26344e; background: #101a2e; color: #e2e8f0; font: inherit; }
.f-news small { color: #64748b; font-size: .72rem; }

/* ---------- hero newsletter band + featured newsletter ---------- */
.hero-newsletter-band { background: linear-gradient(110deg, #0b1220, #16294d); color: #fff; padding: 22px 0; margin-bottom: 32px;
	border-top: 1px solid rgba(0,197,130,.25); border-bottom: 1px solid rgba(255,255,255,.08); }
.hero-newsletter-band .hn-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; }
.hero-newsletter-band h3 { margin: 0 0 6px; font-size: 1.18rem; letter-spacing: -.01em; }
.hero-newsletter-band p { margin: 0; color: #c2d1e8; font-size: .92rem; }
.hero-newsletter-band .hn-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.hero-newsletter-band input { padding: 11px 14px; border-radius: 8px; border: 1px solid #26344e; background: #101a2e; color: #e2e8f0; font: inherit; min-width: 0; }
.hero-newsletter-band .btn { white-space: nowrap; }
@media (max-width: 760px) {
	.hero-newsletter-band { padding: 18px 0; margin-bottom: 22px; }
	.hero-newsletter-band .hn-row { grid-template-columns: 1fr; gap: 14px; }
	.hero-newsletter-band .hn-form { grid-template-columns: 1fr; }
	.hero-newsletter-band input { font-size: 16px; }
}

.sidebar .featured-newsletter { background: linear-gradient(160deg, #f0fdf7, #e0f2fe); border: 1px solid #bae6fd; }
.sidebar .featured-newsletter h3 { color: #0b6b53; }
.sidebar .featured-newsletter input { border: 1px solid #cce6d8; background: #ffffff; }
.sidebar .featured-newsletter .btn { width: 100%; }

/* Performance: image paints tight inside their boxes (CLS). */
.thumb, .v-thumb img, .hero-visual img { background: #eef2f7; }

/* Small phones */
@media (max-width: 400px) {
	.container { padding: 0 14px; }
	.logo { font-size: 1.12rem; }
	.nav-toggle { padding: 8px 10px; font-size: 0; gap: 0; }
	.nav-toggle .lbl-open, .nav-toggle .lbl-close { display: none !important; }
}
/* ============================================================
   v6 — universal post responsiveness hardening
   (append at the very end of style.css)
   ============================================================ */

/* 1) THE critical fix: a grid column must never be stretched by its content. */
.layout { grid-template-columns: minmax(0, 1fr) 336px; }
.layout > main,
.layout > .sidebar { min-width: 0; max-width: 100%; }
@media (max-width: 980px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
}
.single, .post-card, .v-row, .block-card, .comments, .related-grid { max-width: 100%; min-width: 0; }

/* 2) Content-level guards — apply to every post regardless of how it was authored. */
.post-content { max-width: 100%; overflow-wrap: break-word; word-break: normal; }
.post-content p,
.post-content li,
.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6,
.post-content blockquote, .post-content dd, .post-content dt { overflow-wrap: anywhere; }
.post-content a { overflow-wrap: anywhere; }

.post-content img,
.post-content svg,
.post-content canvas { max-width: 100% !important; height: auto !important; display: block; margin-left: auto; margin-right: auto; }
.post-content figure { max-width: 100%; margin-left: 0; margin-right: 0; }
.post-content figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 8px; }

/* Code blocks scroll inside themselves instead of pushing the page. */
.post-content pre,
.post-content pre.jc-pre { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: pre; }
.post-content pre code { white-space: pre; word-break: normal; overflow-wrap: normal; }
.post-content :not(pre) > code { overflow-wrap: anywhere; white-space: normal; }

/* Tables: scroll container injected by jc_responsive_content(). */
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
	border-radius: 10px; margin: 16px 0; }
.table-wrap:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.table-wrap > table { margin: 0; min-width: 520px; }
.post-content table { width: 100%; max-width: 100%; table-layout: auto; }
.post-content td, .post-content th { overflow-wrap: anywhere; }
@media (max-width: 680px) {
	/* override the old "display:block;white-space:nowrap" hack — the wrapper handles it now */
	.post-content table { display: table; white-space: normal; font-size: .86rem; }
	.post-content th, .post-content td { padding: 7px 9px; }
}

/* Embeds: fluid 16:9 box. */
.embed-wrap { position: relative; width: 100%; max-width: 100%; margin: 20px 0;
	aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0b1220; }
.embed-wrap > iframe,
.embed-wrap > embed,
.embed-wrap > object,
.embed-wrap > video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@supports not (aspect-ratio: 16 / 9) {
	.embed-wrap { height: 0; padding-bottom: 56.25%; }
}

/* 3) Diagnostic helper — add class="debug-overflow" to <body> to highlight
      any element wider than its container while you audit old posts. */
body.debug-overflow .post-content * { outline: 1px solid rgba(220,38,38,.35); }

/* 4) Single-post chrome on small screens. */
.single .thumb { width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .form-2col { grid-template-columns: 1fr; } }
.section-h { font-size: clamp(1.1rem, 3.4vw, 1.3rem); margin: 0 0 12px; }
.post-single-wrap { margin-top: 26px; }
@media (max-width: 680px) {
	.post-single-wrap { margin-top: 16px; }
	.related-grid { grid-template-columns: 1fr; }
	.share-row a { flex: 1 1 calc(50% - 8px); text-align: center; }
	.breadcrumbs { font-size: .76rem; }
	.toc { padding: 14px 16px; }
	.toc ol { padding-left: 18px; }
	.author-box { padding: 14px 16px; }
}
