/* ==========================================================================
   NCA Notes — blog
   Archive, article and the homepage strip. Scoped to .nca-* so nothing
   here can leak into Salient or WPBakery pages.
   Colours picked to clear WCAG AA on the site's dark background:
   #C4C4C4 on #16181E = 10.2:1, #9A9A9A on #16181E = 6.4:1.
   ========================================================================== */

/* Salient's fixed-header spacer sits outside .container-wrap, so it shows
   the default white page background above our dark blog canvas. */
body.blog #header-space,
body.single-post #header-space,
body.archive #header-space {
	background-color: #0C0D11;
}

/* ==========================================================================
   Tokens. Every blog surface reads from here: the archive, the article and
   the homepage strip. Retune the article's vertical rhythm by editing the
   four prose values below, not by hunting through rules.

   Spacing principle, applied consistently: everything carries bottom margin
   only. Headings are the single exception and also carry top margin, because
   margins collapse, so a heading's top margin IS the larger gap before it
   rather than extra space stacked on the paragraph above.
   ========================================================================== */

:root {
	--nca-bg: #0C0D11;
	--nca-surface: #16181E;
	--nca-surface-2: #21242B;
	--nca-text: #FFFFFF;
	--nca-text-muted: #C4C4C4;
	--nca-text-dim: #9A9A9A;
	--nca-line: rgba(255, 255, 255, 0.10);
	--nca-radius: 24px;
	--nca-gap: 32px;

	/* Section rhythm, matches the homepage's 100px sections */
	--nca-section: 100px;

	/* Prose rhythm. Heading top : bottom stays near 3:1 so a heading always
	   groups with the text under it rather than floating between sections. */
	--nca-prose-gap: 24px;   /* paragraph, list bottom margin        */
	--nca-block-gap: 40px;   /* figure, quote, table, pre, hr        */
	--nca-h2-top: 48px;  --nca-h2-bottom: 16px;
	--nca-h3-top: 36px;  --nca-h3-bottom: 12px;
	--nca-h4-top: 28px;  --nca-h4-bottom: 10px;
}

@media (max-width: 999px) {
	:root {
		--nca-section: 72px;
		--nca-h2-top: 40px; --nca-h3-top: 32px; --nca-h4-top: 24px;
		--nca-block-gap: 32px;
	}
}

@media (max-width: 690px) {
	:root {
		--nca-section: 56px;
		--nca-prose-gap: 20px;
		--nca-h2-top: 36px; --nca-h3-top: 28px; --nca-h4-top: 22px;
		--nca-block-gap: 28px;
	}
}

body .container-wrap.nca-blog {

	/* Salient's .container-wrap is white. The dark canvas elsewhere on this
	   site comes from per-page WPBakery row backgrounds, which blog templates
	   do not have, so set it explicitly here or white text lands on white. */
	background-color: var(--nca-bg);
	padding: var(--nca-section) 0 0;
}

/* No max-width override here on purpose: the blog uses Salient's own
   .container (1425px with 90px gutters) so its content lines up with
   /nca-notes-packages/ and every other page on the site. */

/* Salient sets `p { padding-bottom: 1.5em }` in style.css and again in
   skin-material.css. Padding does not collapse with margins, so every
   paragraph was carrying an invisible extra gap on top of its margin: 27px
   in body copy, 33px inside a blockquote. Every spacing value in this file
   was effectively 27px larger than written. Reset once, here, so the tokens
   above mean what they say. */
.nca-blog p,
.nca-blog-strip p {
	padding-bottom: 0;
}

/* --------------------------------------------------------------- Archive */

.nca-archive-head {
	max-width: 760px;
	margin: 0 0 40px;
}

.nca-archive-head__title {
	font-weight: 700;
	font-size: 48px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--nca-text);
	margin: 0;
}

.nca-archive-head__text {
	font-size: 20px;
	line-height: 1.6;
	color: var(--nca-text-muted);
	margin: 16px 0 0;
}

/* ---------------------------------------------------------- Category pills */

.nca-filter {
	margin: 0 0 40px;
}

.nca-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nca-filter__list li {
	margin: 0;
	list-style: none;
}

.nca-filter__pill {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 30px;
	background: var(--nca-surface-2);
	color: var(--nca-text-muted);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color .18s ease, color .18s ease;
}

.nca-filter__pill:hover,
.nca-filter__pill:focus-visible {
	background: #2C3039;
	color: var(--nca-text);
}

.nca-filter__count {
	display: inline-block;
	margin-left: 6px;
	font-size: 13px;
	font-weight: 400;
	opacity: 0.7;
}

/* Announced to screen readers on filter, not shown. */
.nca-filter__status {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.nca-card[hidden] { display: none; }

/* Keeps offscreen cards out of layout and paint on a long index. The
   intrinsic size stops the scrollbar jumping as they come into view. */
.nca-card {
	content-visibility: auto;
	contain-intrinsic-size: 0 420px;
}

/* View Transitions: cross-fade what leaves and arrives, slide what stays. */
@media (prefers-reduced-motion: no-preference) {
	::view-transition-group(*) {
		animation-duration: 260ms;
		animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
	}
	::view-transition-old(*),
	::view-transition-new(*) {
		animation-duration: 180ms;
	}
}

.nca-filter__pill.is-active {
	background: #FFFFFF;
	color: #242C3A;
}

/* ------------------------------------------------------------------- Grid */

.nca-post-grid {
	display: grid;
	gap: var(--nca-gap);
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 999px) {
	.nca-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 690px) {
	.nca-post-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------- Card */

.nca-card {
	position: relative;
	/* width is defensive: this site has a post_class filter that injects
	   vc_col-sm-4, which would otherwise size cards to 33% of their
	   grid column. See the note in CLAUDE.md. */
	width: 100%;
	display: flex;
	flex-direction: column;
	background: var(--nca-surface);
	border-radius: var(--nca-radius);
	overflow: hidden;
	transition: transform .2s ease, background-color .2s ease;
}

.nca-card:hover {
	background: #1B1E25;
	transform: translateY(-3px);
}

/* flex-shrink:0 matters: the card is a flex column, so without it the
   aspect-ratio box gets squashed whenever the grid row is shorter than the
   card content. That is what collapsed the media to 97px inside a WPBakery
   column on the homepage while the /blog/ archive looked fine. */
.nca-card__media {
	display: block;
	flex: 0 0 auto;
	aspect-ratio: 16 / 9;
	background: var(--nca-surface-2);
	overflow: hidden;
}

/* Extra class needed to outrank Salient's `.main-content img { height:auto }`
   and `.row .col img`, which are the same specificity and would otherwise
   leave the image at its intrinsic height so object-fit never applies. */
.nca-card .nca-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	max-width: none;
}

.nca-card__media-fallback {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #21242B 0%, #16181E 100%);
}

.nca-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 28px;
}

/* Salient has `p:empty { display: none }`, which collapsed the reserved slot
   entirely and dropped the title 30px higher on any card without a category.
   (0,2,0) beats its (0,1,1), so no !important needed. */
.nca-card__cat:empty {
	display: block;
}

/* min-height holds the slot open when a post has no category, so every card
   in a row starts its title on the same line. */
.nca-card__cat {
	margin: 0 0 10px;
	min-height: 20px;
	font-size: 13px;
	line-height: 20px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nca-text-dim);
}

.nca-card__title {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
}

.nca-card__title a {
	color: var(--nca-text);
	text-decoration: none;
}

.nca-card__title a:hover,
.nca-card__title a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* One link per card. The title anchor covers the whole card, so the entire
   card is clickable without adding duplicate links to the a11y tree. */
.nca-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.nca-card:has(.nca-card__title a:focus-visible) {
	outline: 2px solid #FFFFFF;
	outline-offset: 3px;
}

.nca-card__title a:focus-visible {
	outline: none;
}

.nca-card__excerpt {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--nca-text-muted);
}

.nca-card__meta {
	margin: auto 0 0;
	font-size: 14px;
	color: var(--nca-text-dim);
	display: flex;
	gap: 8px;
	align-items: center;
}

/* ------------------------------------------------------------- Pagination */

.nca-pagination {
	margin: 56px 0 0;
}

.nca-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.nca-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 30px;
	background: var(--nca-surface-2);
	color: var(--nca-text-muted);
	font-weight: 700;
	text-decoration: none;
}

.nca-pagination .page-numbers.current {
	background: #FFFFFF;
	color: #242C3A;
}

.nca-pagination .page-numbers:hover,
.nca-pagination .page-numbers:focus-visible {
	background: #2C3039;
	color: var(--nca-text);
}

.nca-pagination .page-numbers.current:hover {
	background: #FFFFFF;
	color: #242C3A;
}

.nca-empty {
	color: var(--nca-text-muted);
	font-size: 18px;
}

/* ---------------------------------------------------------------- Article */

/* Three classes needed: Salient prints an inline
   `body[data-bg-header="true"] .container-wrap { padding-bottom: 0 }`, which is
   (0,2,1) like ours but inline, so it wins on source order and the last card
   ended up flush against the footer. */
body .container-wrap.nca-blog.nca-blog--single {
	padding-bottom: var(--nca-section);
}

.nca-blog--single .nca-article {
	max-width: 760px;
	margin: 0 auto;
}

/* One row, not two stacked blocks. Both still clear 44px for touch, but the
   article title now starts ~150px into the page instead of 271px. */
.nca-article__eyebrow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0 14px;
	margin: 0 0 var(--nca-h2-bottom);
}

.nca-article__back,
.nca-article__cat {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--nca-text-dim);
	text-decoration: none;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.nca-article__cat { text-transform: uppercase; }

/* Back link chevron: same FA double chevron as the site's buttons (Get started, Add to cart). */
.nca-article__back .fa { font-size: 14px; margin-right: 7px; position: relative; top: -2px; } /* FA glyph sits low in its em box */

.nca-article__eyebrow-sep {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--nca-text-dim);
	flex: 0 0 auto;
}

.nca-article__back:hover,
.nca-article__cat:hover,
.nca-article__back:focus-visible,
.nca-article__cat:focus-visible {
	color: var(--nca-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.nca-article__title {
	margin: 0 0 18px;
	font-size: 46px;
	line-height: 1.15;
	letter-spacing: -0.01em;
	font-weight: 700;
	color: var(--nca-text);
}

.nca-article__meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 15px;
	color: var(--nca-text-dim);
}

/* Phones: byline and Updated on their own lines, so a wrapped line never
   starts with a stray separator. */
@media (max-width: 690px) {
	.nca-article__by,
	.nca-article__updated { flex-basis: 100%; }
	.nca-article__meta-sep { display: none; }
}

.nca-article__figure {
	margin: var(--nca-block-gap) 0;
	max-width: 1000px;
	margin-inline: auto;
}

.nca-article__figure img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--nca-radius);
}

.nca-article__figure figcaption {
	margin-top: 12px;
	font-size: 14px;
	color: var(--nca-text-dim);
	text-align: left;
}

/* Prose. Everything the Classic editor can emit, styled once so a post
   looks right without the author doing anything. */

.nca-article__body {
	font-size: 18px;
	line-height: 1.75;
	color: var(--nca-text-muted);
}

.nca-article__body > *:first-child { margin-top: 0; }
.nca-article__body > *:last-child  { margin-bottom: 0; }

.nca-article__body p {
	margin: 0 0 var(--nca-prose-gap);
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.nca-article__body h2,
.nca-article__body h3,
.nca-article__body h4,
.nca-article__body h5,
.nca-article__body h6 {
	color: var(--nca-text);
	font-weight: 700;
	line-height: 1.25;
	text-wrap: balance;
}

.nca-article__body h2 { font-size: 32px; margin: var(--nca-h2-top) 0 var(--nca-h2-bottom); }
.nca-article__body h3 { font-size: 25px; margin: var(--nca-h3-top) 0 var(--nca-h3-bottom); }
.nca-article__body h4 { font-size: 21px; margin: var(--nca-h4-top) 0 var(--nca-h4-bottom); }
.nca-article__body h5,
.nca-article__body h6 {
	font-size: 18px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin: var(--nca-h4-top) 0 var(--nca-h4-bottom);
}

/* A heading straight after another heading needs no section break. */
.nca-article__body :is(h2, h3, h4, h5, h6) + :is(h2, h3, h4, h5, h6) {
	margin-top: var(--nca-h4-bottom);
}

.nca-article__body a {
	color: var(--nca-text);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.nca-article__body a:hover,
.nca-article__body a:focus-visible {
	text-decoration-thickness: 2px;
}

.nca-article__body ul,
.nca-article__body ol {
	margin: 0 0 var(--nca-prose-gap);
	padding-left: 1.4em;
}

.nca-article__body li {
	margin: 0 0 8px;
	color: inherit;
	list-style: inherit;
}

.nca-article__body ul { list-style: disc; }
.nca-article__body ol { list-style: decimal; }

.nca-article__body li::marker { color: var(--nca-text-dim); }

.nca-article__body blockquote {
	margin: var(--nca-block-gap) 0;
	padding: 0 0 0 28px;
	border-left: 3px solid #FFFFFF;
	font-size: 22px;
	line-height: 1.5;
	color: var(--nca-text);
}

.nca-article__body blockquote p:last-child { margin-bottom: 0; }

.nca-article__body img,
.nca-article__body video {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
	display: block;
}

.nca-article__body figure { margin: var(--nca-block-gap) 0; }

.nca-article__body figcaption {
	margin-top: 10px;
	font-size: 14px;
	color: var(--nca-text-dim);
}

.nca-article__body hr {
	border: 0;
	border-top: 1px solid var(--nca-line);
	margin: var(--nca-block-gap) 0;
}

/* Minimal editorial table: no fill, no outer box, horizontal rules only, so
   it reads as part of the prose rather than a UI widget. The first column is
   flush left with the body text.

   Selectors hang off .nca-table-scroll on purpose. Salient styles tables
   through `body:not(.woocommerce-cart) .main-content td`, specificity
   (0,2,2). Two classes plus a type is (0,2,1) and still loses on type count,
   so the wrapper supplies a third class. Every table gets that wrapper from
   nca_wrap_tables() in inc/blog.php. */
.nca-blog .nca-article__body .nca-table-scroll table {
	width: 100%;
	border-collapse: collapse;
	background-color: transparent;
	margin: var(--nca-block-gap) 0;
	font-size: 16px;
	line-height: 1.5;
}

.nca-blog .nca-article__body .nca-table-scroll th,
.nca-blog .nca-article__body .nca-table-scroll td {
	border: 0;
	border-bottom: 1px solid var(--nca-line);
	padding: 14px 20px 14px 0;
	text-align: left;
	vertical-align: top;
	background-color: transparent;
}

.nca-blog .nca-article__body .nca-table-scroll th:last-child,
.nca-blog .nca-article__body .nca-table-scroll td:last-child { padding-right: 0; }

.nca-blog .nca-article__body .nca-table-scroll th {
	color: var(--nca-text);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-bottom-color: rgba(255, 255, 255, 0.28);
	white-space: nowrap;
}

.nca-blog .nca-article__body .nca-table-scroll td { color: var(--nca-text-muted); }

.nca-blog .nca-article__body .nca-table-scroll tr:last-child td { border-bottom: 0; }

/* Wrapper added by nca_wrap_tables() in inc/blog.php so a wide table scrolls
   instead of forcing the article to. */
.nca-table-scroll {
	margin: var(--nca-block-gap) 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.nca-blog .nca-table-scroll > table { margin: 0; min-width: 34rem; }

/* Salient's table styling is opinionated and specific: it stripes rows with
   `... .main-content table tr:nth-child(2n+1)` and repaints cell borders with
   `... .main-content tr td:first-child`, both (0,3,3). Matching that with
   selectors means things like `.a .b .c table tr td:first-child`, which is
   unreadable and breaks the moment Salient changes. Four !important
   declarations are the smaller cost, and they are scoped to blog tables only.
   Same judgement as the tabs contrast fix. */
.nca-blog .nca-table-scroll table tr {
	background-color: transparent !important;
}

.nca-blog .nca-table-scroll table td {
	border-bottom-color: var(--nca-line) !important;
}

.nca-blog .nca-table-scroll table th {
	border-bottom-color: rgba(255, 255, 255, 0.28) !important;
}

.nca-blog .nca-table-scroll table tr:last-child td {
	border-bottom-width: 0 !important;
}

/* Salient also paints a table border-top and a border-left on
   `tr td:first-child`, which is where the hard top and left lines came from.
   Horizontal rules only: a full grid reads as a spreadsheet, not prose. */
.nca-blog .nca-table-scroll table,
.nca-blog .nca-table-scroll table tr,
.nca-blog .nca-table-scroll table th,
.nca-blog .nca-table-scroll table td {
	border-top: 0 !important;
	border-left: 0 !important;
	border-right: 0 !important;
}


/* Salient styles `code` as a block, which pushed inline code onto its own
   full-width line mid-sentence. Force it back inline. */
.nca-article__body code,
.nca-article__body kbd {
	display: inline;
	background: var(--nca-surface-2);
	color: var(--nca-text);
	padding: 0.15em 0.4em;
	border-radius: 5px;
	font-size: 0.88em;
	line-height: inherit;
	white-space: normal;
	border: 0;
	margin: 0;
}

/* ...but inside a pre it is the block, so undo the inline treatment. */
.nca-article__body pre code {
	display: block;
	background: none;
	padding: 0;
	border-radius: 0;
	font-size: inherit;
	white-space: pre;
}

.nca-article__body pre {
	background: var(--nca-surface-2);
	padding: 20px;
	border-radius: 16px;
	overflow-x: auto;
	margin: var(--nca-block-gap) 0;
}


.nca-article__body strong,
.nca-article__body b { color: var(--nca-text); }

/* ---- WordPress editor output -------------------------------------------
   The Classic editor emits alignment classes, [caption] wrappers and bare
   oEmbed iframes. None of these exist in our markup, so they need styling
   or Vanessa's posts break the moment she uses Add Media. */

.nca-article__body .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.nca-article__body .alignleft {
	float: left;
	margin: 6px var(--nca-prose-gap) var(--nca-prose-gap) 0;
	max-width: 50%;
}

.nca-article__body .alignright {
	float: right;
	margin: 6px 0 var(--nca-prose-gap) var(--nca-prose-gap);
	max-width: 50%;
}

.nca-article__body .alignnone { margin-bottom: var(--nca-prose-gap); }

/* Floats must not escape into the CTA or related posts below. */
.nca-article__body::after {
	content: "";
	display: block;
	clear: both;
}

.nca-article__body .wp-caption {
	/* The [caption] shortcode writes an inline width from the original file
	   (1034px here) which is wider than the 760px column. */
	max-width: 100%;
	margin-bottom: var(--nca-block-gap);
}

.nca-article__body .wp-caption img { border-radius: 16px; }

/* Caption treatment: no box. Salient renders it as a white inline-block chip
   with padding, which turns metadata into a component that competes with the
   image. A caption should recede; size and colour do that job, a container
   does not.

   Left aligned rather than centred, even under a centred image. Centred
   captions read as decorative; left aligned sits on the same axis as the body
   text and scans as part of the article.

   Needs four classes: Salient uses `.row .col .wp-caption .wp-caption-text`,
   which is (0,4,0). */
.nca-blog .nca-article__body .wp-caption .wp-caption-text,
.nca-blog .nca-article__body .wp-element-caption,
.nca-blog .nca-article__body figcaption {
	/* Salient pulls captions up with `position: relative; top: -25px` so they
	   overlay the image. That is its house style, not ours: the caption was
	   sitting 13px over the photo. Back to normal flow. */
	position: static;
	top: auto;
	display: block;
	width: auto;
	margin: 12px 0 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--nca-text-dim);
	text-align: left;
	font-style: normal;
}

/* Bare oEmbed output. height:auto alone collapses an iframe, so give it a
   16:9 box and let the embed fill it. */
.nca-article__body iframe,
.nca-article__body .wp-video,
.nca-article__body .wp-block-embed__wrapper iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border-radius: 16px;
}

.nca-article__body .wp-embed-responsive,
.nca-article__body .wp-block-embed {
	margin: var(--nca-block-gap) 0;
}

/* Long unbroken strings, pasted URLs and case citations must not overflow. */
.nca-article__body {
	overflow-wrap: anywhere;
}

/* Nested lists sit inside a list item, so they take the item's rhythm,
   not a full paragraph gap. */
.nca-article__body li > ul,
.nca-article__body li > ol {
	margin: 8px 0 0;
}

/* Tags */

.nca-article__foot { margin-top: 48px; }

.nca-author {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--nca-line);
	display: flex;
	gap: 18px;
	align-items: flex-start;
}

.nca-author__photo {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.nca-author__name {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 700;
	color: var(--nca-text);
}

.nca-author__bio {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--nca-text-muted);
}

.nca-cta--consult .nca-cta__text { max-width: 52ch; }

.nca-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nca-tags li { margin: 0; list-style: none; }

.nca-tags a {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 30px;
	background: var(--nca-surface-2);
	color: var(--nca-text-muted);
	font-size: 14px;
	text-decoration: none;
}

.nca-tags a:hover,
.nca-tags a:focus-visible { color: var(--nca-text); }

/* -------------------------------------------------------------- Package CTA */

.nca-cta {
	max-width: 760px;
	margin: 64px auto 0;
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 32px;
	align-items: center;
	background: var(--nca-surface);
	border-radius: var(--nca-radius);
	padding: 36px;
}

.nca-cta:not(:has(.nca-cta__media)) { grid-template-columns: 1fr; }

.nca-cta__media img {
	width: 100%;
	height: auto;
	border-radius: 16px;
	display: block;
}

.nca-cta__kicker {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--nca-text-dim);
}

.nca-cta__title {
	margin: 0 0 12px;
	font-size: 26px;
	line-height: 1.25;
	color: var(--nca-text);
	font-weight: 700;
}

.nca-cta__price {
	margin: -4px 0 12px;
	font-size: 18px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--nca-text);
}

.nca-cta__text {
	margin: 0 0 22px;
	color: var(--nca-text-muted);
	font-size: 16px;
	line-height: 1.6;
}

@media (max-width: 690px) {
	.nca-cta { grid-template-columns: 1fr; padding: 28px; }
}

/* ------------------------------------------------------------ Buttons */

.nca-btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 30px;
	background: var(--nca-surface-2);
	color: var(--nca-text);
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	transition: background-color .18s ease;
}

.nca-btn:hover,
.nca-btn:focus-visible { background: #2C3039; color: var(--nca-text); }

.nca-btn--light { background: #FFFFFF; color: #242C3A; }
.nca-btn--light:hover,
.nca-btn--light:focus-visible { background: #E8E8E8; color: #242C3A; }

.nca-more {
	display: block;
	margin: 48px auto 0;
	padding: 15px 32px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 30px;
	background: transparent;
	color: var(--nca-text);
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease;
}

.nca-more:hover,
.nca-more:focus-visible {
	background: var(--nca-surface-2);
	border-color: rgba(255, 255, 255, 0.4);
}

.nca-more:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 3px;
}

.nca-more[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
	.nca-more { transition: none; }
}

/* ------------------------------------------------- Consultation CTA */

/* 100 + 100 so the grid-to-CTA boundary is 200px, the same as every
   section boundary on the homepage (100px bottom + 100px top). */
.nca-consult-section {
	margin-top: 100px;
	padding: 100px 0;
	border-top: 1px solid var(--nca-line);
	background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0) 100%);
}

.nca-consult {
	margin: 0;
	padding: 40px 44px;
	background: var(--nca-surface);
	border-radius: var(--nca-radius);
	display: flex;
	flex-wrap: wrap;
	gap: 24px 40px;
	align-items: center;
	justify-content: space-between;
}

.nca-consult__body { flex: 1 1 380px; }

.nca-consult__title {
	margin: 0 0 8px;
	font-size: 28px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--nca-text);
}

.nca-consult__text {
	margin: 0;
	font-size: 17px;
	line-height: 1.6;
	color: var(--nca-text-muted);
	max-width: 52ch;
}

.nca-consult__action { margin: 0; flex: 0 0 auto; }

@media (max-width: 999px) {
	.nca-consult-section { margin-top: 72px; padding: 72px 0; }
}

@media (max-width: 690px) {
	.nca-consult-section { margin-top: 56px; padding: 56px 0; }
	.nca-consult { padding: 28px 24px; }
	.nca-consult__title { font-size: 23px; }
}

/* ------------------------------------------------------------- Related */

/* Columns follow the card count so one or two related posts read as a short
   list rather than a three-column grid with holes in it. */
.nca-related { margin: 72px 0 0; }

.nca-related .nca-post-grid:not(:has(.nca-card:nth-child(3))) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nca-related .nca-post-grid:not(:has(.nca-card:nth-child(2))) {
	grid-template-columns: minmax(0, 380px);
}

.nca-related__title {
	margin: 0 0 32px;
	font-size: 32px;
	font-weight: 700;
	color: var(--nca-text);
}

/* -------------------------------------------------- Homepage blog strip */

.nca-blog-strip {
	/* No vertical padding on purpose. This drops into a WPBakery row that
	   already carries the page's 100px section rhythm, so padding here would
	   double-count and leave the strip floating lower than every other
	   section's content. */
	padding: 0;
}

.nca-blog-strip__head { margin: 0 0 36px; max-width: 700px; }

.nca-blog-strip__title {
	margin: 0;
	font-size: 40px;
	line-height: 1.15;
	font-weight: 700;
	color: var(--nca-text);
	letter-spacing: -0.01em;
}

.nca-blog-strip__subtitle {
	margin: 14px 0 0;
	font-size: 18px;
	line-height: 1.6;
	color: var(--nca-text-muted);
}

.nca-blog-strip__more { margin: 32px 0 0; }

@media (max-width: 690px) {
	.nca-blog-strip__title { font-size: 30px; }
	.nca-blog-strip__more { margin-top: 24px; }
}

/* ------------------------------------------------------------- A11y */

.nca-blog a:focus-visible,
.nca-blog-strip a:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.nca-card, .nca-filter__pill, .nca-btn { transition: none; }
	.nca-card:hover { transform: none; }
}

/* -------------------------------------------------------- Responsive */

@media (max-width: 999px) {

	.nca-archive-head__title { font-size: 38px; }
	.nca-article__title { font-size: 36px; }
}

@media (max-width: 690px) {

	.nca-archive-head__title { font-size: 30px; }
	.nca-archive-head__text { font-size: 17px; }
	.nca-article__title { font-size: 28px; }
	.nca-article__body { font-size: 17px; }
	.nca-article__body h2 { font-size: 25px; }
	.nca-article__body h3 { font-size: 21px; }
	.nca-card__body { padding: 22px; }
	.nca-related__title { font-size: 25px; }
}
