/*
 * Blog (index, category, search, single). Page-specific override layer over the
 * inline desktop spec — desktop ≥1280 is the binding inline design, untouched.
 * Ported verbatim from Blog.dc.html / Blog Post.dc.html / Blog Card.dc.html
 * helmets, plus article-body prose typography (the_content carries no inline
 * styles, so the long-form reading scale lives here) and the .rsp-* responsive
 * layer (1279/1023/767). Globals (.grain, [data-rev]/.hp-on, scrollbar, base
 * reset) come from tokens.css; do not duplicate them.
 */

/* ===== Category pills (rendered as links) ===== */
.bpill {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	font-family: 'Roboto', system-ui, sans-serif;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1;
	color: #C8BCE8;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.16);
	padding: 9px 16px;
	border-radius: 999px;
	text-decoration: none;
	transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.bpill:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.bpill.bpill-on { color: #16042E; background: #fff; border-color: #fff; font-weight: 700; }

/* ===== "See all" / back links ===== */
.seeall {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 700;
	color: #6D5DF3;
	text-decoration: none;
	white-space: nowrap;
	transition: gap .2s ease, color .2s ease;
}
.seeall:hover { gap: 11px; color: #5547d6; }

/* ===== Featured lead card ===== */
.feat-img { transition: transform .6s cubic-bezier(.22, .61, .21, 1); }
.feat-lg:hover .feat-img { transform: scale(1.04); }
.feat-lg:hover .feat-title { color: #6D5DF3; }

/* ===== Blog card (Blog Card.dc.html) ===== */
.bc-card { transition: transform .28s cubic-bezier(.22, .61, .21, 1), box-shadow .28s ease, border-color .28s ease; }
.bc-card:hover { transform: translateY(-4px); box-shadow: 0 34px 64px -32px rgba(22, 4, 46, 0.34); border-color: rgba(109, 93, 243, 0.35); }
.bc-card:hover .bc-title { color: #6D5DF3; }
.bc-card:hover .bc-img { transform: scale(1.045); }
.bc-img { transition: transform .5s cubic-bezier(.22, .61, .21, 1); }
.bc-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Forms / buttons (style-hover → classes) ===== */
.nl-input { font-family: 'Roboto', system-ui, sans-serif; }
.nl-mint:hover { background: #35c98a; }
.nl-violet:hover { background: #8a7af5; }

/* ===== Single post: TOC, share, body links ===== */
.toc-link {
	display: block;
	padding: 7px 13px;
	border-left: 2px solid transparent;
	color: #574a6e;
	text-decoration: none;
	font-size: 13.5px;
	line-height: 1.4;
	border-radius: 0 8px 8px 0;
	transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.toc-link:hover { color: #16042E; background: #efe9f9; }
.toc-link.toc-on { color: #6D5DF3; border-left-color: #6D5DF3; background: #efe9f9; font-weight: 700; }

.share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(26, 8, 48, 0.10);
	color: #574a6e;
	cursor: pointer;
	text-decoration: none;
	transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.share-btn:hover { color: #6D5DF3; border-color: rgba(109, 93, 243, 0.5); background: #f4f0fb; }

.post-back:hover { color: #fff; }
.post-ghost:hover { border-color: #9385FF; color: #9385FF; }

/* ===== Article body prose (the_content) — long-form reading scale =====
 * Distinct from the page heading scale by design: body headings stay readable
 * inside the column rather than taking the 38–54px Section H2 size. */
.ap-body > p { margin: 18px 0 0; font-size: 18px; line-height: 1.78; color: #2a1747; text-wrap: pretty; }
.ap-body > p:first-child { margin-top: 0; font-size: 20px; line-height: 1.7; }
.ap-body h2 {
	margin: 50px 0 0;
	font-family: 'Fira Sans Condensed', sans-serif;
	font-size: clamp(27px, 3vw, 34px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.015em;
	color: #16042E;
	scroll-margin-top: 90px;
	text-wrap: balance;
}
.ap-body h3 {
	margin: 34px 0 0;
	font-family: 'Fira Sans Condensed', sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.15;
	color: #16042E;
	scroll-margin-top: 90px;
}
.ap-body ul, .ap-body ol { margin: 18px 0 0; padding-left: 22px; }
.ap-body li { font-size: 18px; line-height: 1.7; color: #2a1747; margin-top: 10px; text-wrap: pretty; }
.ap-body blockquote {
	margin: 40px 0 0;
	padding-left: 24px;
	border-left: 3px solid #6D5DF3;
	font-family: 'Fira Sans Condensed', sans-serif;
	font-size: 26px;
	line-height: 1.28;
	font-weight: 500;
	color: #6D5DF3;
	text-wrap: balance;
}
.ap-body figure { margin: 38px 0 0; }
.ap-body figure img { width: 100%; border-radius: 18px; border: 1px solid rgba(26, 8, 48, 0.08); display: block; }
.ap-body figcaption { margin-top: 11px; font-size: 13.5px; line-height: 1.5; color: #8a7ea3; text-align: center; text-wrap: pretty; }
.ap-body a { color: #6D5DF3; text-decoration: underline; text-underline-offset: 2px; }
.ap-body a:hover { color: #5547d6; }
.ap-body img { max-width: 100%; height: auto; }

/* ===== Pagination ===== */
.blog-pagination { margin-top: 48px; }
.blog-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.blog-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 14px;
	border-radius: 999px; border: 1px solid rgba(26, 8, 48, 0.12);
	color: #574a6e; text-decoration: none; font-size: 14px; font-weight: 500;
	transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.blog-pagination .page-numbers:hover { color: #16042E; border-color: rgba(109, 93, 243, 0.4); background: #f4f0fb; }
.blog-pagination .page-numbers.current { color: #fff; background: #6D5DF3; border-color: #6D5DF3; }

/* ===================== Responsive layer (verbatim from the dc) ===================== */
@media (max-width: 1023px) {
	.rsp-feat { grid-template-columns: 1fr !important; }
	.rsp-feat-lg { grid-template-columns: 1fr !important; }
	.rsp-tiles3 { grid-template-columns: repeat(2, 1fr) !important; }
	.rsp-lead { grid-template-columns: 1fr !important; }
	/* single post */
	.rsp-postgrid { grid-template-columns: 1fr !important; gap: 8px !important; }
	.rsp-rail { position: static !important; order: -1; }
	.rsp-railbox { display: flex !important; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
	.ap-article { max-width: none !important; }
	.rsp-bio { margin-left: 0 !important; }
}
@media (max-width: 1279px) {
	.rsp-hero { padding-left: 32px !important; padding-right: 32px !important; }
	.rsp-sec { padding-left: 32px !important; padding-right: 32px !important; }
}
@media (max-width: 1023px) {
	.rsp-hero { padding-left: 24px !important; padding-right: 24px !important; }
	.rsp-sec { padding-left: 24px !important; padding-right: 24px !important; }
}
@media (max-width: 767px) {
	[data-mascot][style*="absolute"] { display: none !important; }
	.rsp-hero { padding-left: 16px !important; padding-right: 16px !important; padding-top: 124px !important; padding-bottom: 46px !important; }
	.rsp-sec { padding-left: 16px !important; padding-right: 16px !important; padding-top: 52px !important; padding-bottom: 52px !important; }
	.rsp-tiles3 { grid-template-columns: 1fr !important; }
	.rsp-tiles2 { grid-template-columns: 1fr !important; }
	.rsp-leadcover { display: none !important; }
	.rsp-railbox { gap: 12px 18px !important; }
	/* single-post hero is denser on phones */
	.single-post .rsp-hero { padding-top: 118px !important; padding-bottom: 40px !important; }
}


/* ===== Newsletter form (Gravity Forms id 2) restyled to the pill =====
 * Static form -> GF (task #14). Sits on the dark newsletter band: translucent
 * white email field + mint Subscribe button in a row, wrapping + centred on
 * mobile. Scoped to .nl-gform. */
.nl-gform .gform_wrapper { margin: 0; }
.nl-gform .gform_heading, .nl-gform .gform_required_legend { display: none !important; }
.nl-gform form {
	display: flex; gap: 10px; width: min(460px, 100%);
	margin: 26px auto 0; flex-wrap: wrap; justify-content: center;
}
.nl-gform .gform-body, .nl-gform .gform_body { flex: 1; min-width: 200px; margin: 0; }
.nl-gform .gform_fields { display: block !important; grid-template-columns: none !important; grid-gap: 0 !important; }
.nl-gform .gfield { margin: 0 !important; padding: 0 !important; }
.nl-gform .gfield_label,
.nl-gform legend.gfield_label {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.nl-gform .ginput_container { margin: 0 !important; }
/* !important needed — GF's own input rules outrank the plain class selectors. */
.nl-gform .ginput_container input {
	width: 100% !important; font-family: 'Roboto', system-ui, sans-serif !important; font-size: 15px !important; color: #fff !important;
	background: rgba(255,255,255,0.06) !important; border: 1px solid rgba(255,255,255,0.2) !important;
	border-radius: 999px !important; padding: 14px 20px !important; outline: none; box-shadow: none !important;
}
.nl-gform .ginput_container input::placeholder { color: #C8BCE8 !important; }
.nl-gform .ginput_container input:focus { border-color: rgba(255,255,255,0.45) !important; }
.nl-gform .gform_footer { margin: 0 !important; padding: 0 !important; display: flex; width: auto !important; flex: 0 0 auto; }
.nl-gform .gform_footer .gform_button,
.nl-gform input[type="submit"].gform_button {
	flex-shrink: 0; margin: 0 !important; width: auto !important;
	font-size: 15px !important; font-weight: 700 !important; color: #16042E !important;
	background: #3ED696 !important; border: none !important; padding: 14px 26px !important;
	border-radius: 999px !important; corner-shape: squircle; cursor: pointer; transition: background .16s ease;
}
.nl-gform .gform_footer .gform_button:hover { background: #35c98a !important; }
.nl-gform .gform_confirmation_message { color: #fff; font-size: 15px; line-height: 1.5; text-align: center; }
.nl-gform .validation_message, .nl-gform .gform_validation_errors { color: #fff; font-size: 13px; text-align: center; margin-top: 8px; }
