/*
 * NetDecoded - Follow the Money category archive.
 * Enqueued only by category-follow-the-money.php. All rules sit under .nd-ftm
 * (or an nd- prefixed class used only inside it), so no other page is affected.
 */

.nd-ftm {
	--nd-navy: #071426;
	--nd-navy-2: #0B1F38;
	--nd-blue: #287BFF;
	--nd-blue-text: #1F66D6; /* AA-contrast blue for small text on light backgrounds */
	--nd-white: #FFFFFF;
	--nd-light: #F7F9FC;
	--nd-text: #142033;
	--nd-muted: #64748B;
	--nd-line: #E2E8F0;
	color: var(--nd-text);
	background: var(--nd-light);
	line-height: 1.65;
	font-size: 17px;
}
.nd-ftm *,
.nd-ftm *::before,
.nd-ftm *::after { box-sizing: border-box; }
.nd-ftm a { text-decoration: none; }
.nd-ftm img { max-width: 100%; height: auto; display: block; }
.nd-ftm .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.nd-ftm a:focus-visible { outline: 3px solid var(--nd-blue); outline-offset: 3px; border-radius: 2px; }
.nd-ftm .nd-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nd-ftm .nd-eyebrow {
	font: 700 .78rem/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--nd-blue-text);
	margin: 0 0 18px;
}
.nd-ftm .nd-h2 {
	font: 700 clamp(1.7rem, 3.2vw, 2.5rem)/1.15 Georgia, "Times New Roman", serif;
	margin: 0 0 14px;
	color: var(--nd-text);
	letter-spacing: -.01em;
}

/* Hero */
.nd-ftm .nd-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(160deg, var(--nd-navy) 0%, var(--nd-navy-2) 100%);
	color: var(--nd-white);
	padding: clamp(72px, 10vw, 128px) 0 clamp(64px, 9vw, 112px);
}
.nd-ftm .nd-hero__art { position: absolute; inset: 0; opacity: .55; pointer-events: none; }
.nd-ftm .nd-hero__art svg { position: absolute; right: -4%; bottom: -6%; width: min(760px, 70%); height: auto; }
.nd-ftm .nd-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(60% 70% at 85% 20%, rgba(40, 123, 255, .22), transparent 70%);
	pointer-events: none;
}
.nd-ftm .nd-hero .nd-wrap { position: relative; z-index: 1; }
.nd-ftm .nd-hero .nd-eyebrow { color: #6FA8FF; }
.nd-ftm .nd-hero__h1 {
	font: 700 clamp(2.2rem, 5.6vw, 4rem)/1.08 Georgia, "Times New Roman", serif;
	letter-spacing: -.02em;
	margin: 0 0 24px;
	max-width: 15em;
	color: var(--nd-white);
}
.nd-ftm .nd-hero__copy { max-width: 40em; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #C7D3E6; margin: 0 0 22px; }
.nd-ftm .nd-hero__tag {
	display: inline-block;
	font: 600 1rem/1.4 system-ui, sans-serif;
	color: var(--nd-white);
	border-left: 3px solid var(--nd-blue);
	padding-left: 14px;
	margin: 0;
}

/* Intro */
.nd-ftm .nd-intro { background: var(--nd-white); padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--nd-line); }
.nd-ftm .nd-intro p { max-width: 46em; margin: 0; font-size: 1.15rem; color: var(--nd-text); }

/* Section heads */
.nd-ftm .nd-featured { padding: clamp(56px, 7vw, 96px) 0 0; }
.nd-ftm .nd-sec-head { margin-bottom: 32px; }
.nd-ftm .nd-sec-head p { margin: 0; color: var(--nd-muted); max-width: 42em; }
.nd-ftm .nd-sec-head .nd-eyebrow { margin-bottom: 18px; color: var(--nd-blue-text); }

/* Topics */
.nd-ftm .nd-topics { padding: clamp(56px, 7vw, 96px) 0; }
.nd-ftm .nd-topics__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--nd-navy); }
.nd-ftm .nd-topic { padding: 28px 24px 28px 0; border-right: 1px solid var(--nd-line); }
.nd-ftm .nd-topic + .nd-topic { padding-left: 24px; }
.nd-ftm .nd-topic:last-child { border-right: 0; }
.nd-ftm .nd-topic__n { font: 700 .8rem/1 system-ui, sans-serif; color: var(--nd-blue-text); letter-spacing: .14em; margin: 0 0 14px; }
.nd-ftm .nd-topic h3 { font: 700 1.25rem/1.25 Georgia, serif; margin: 0 0 10px; color: var(--nd-text); }
.nd-ftm .nd-topic p { margin: 0; color: var(--nd-muted); font-size: .98rem; }

/* Cards */
.nd-ftm .nd-latest { padding: 0 0 clamp(56px, 7vw, 96px); }
.nd-ftm .nd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.nd-ftm .nd-card {
	background: var(--nd-white);
	border: 1px solid var(--nd-line);
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease, border-color .2s ease;
}
.nd-ftm .nd-card:hover { border-color: var(--nd-blue); box-shadow: 0 10px 30px rgba(7, 20, 38, .08); }
.nd-ftm .nd-card__media { display: block; aspect-ratio: 16 / 9; background: var(--nd-navy-2); overflow: hidden; }
.nd-ftm .nd-card__media img { width: 100%; height: 100%; object-fit: cover; }
.nd-ftm .nd-card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--nd-navy), var(--nd-navy-2) 60%, #12356B); }
.nd-ftm .nd-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.nd-ftm .nd-card__cat { font: 700 .72rem/1 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--nd-blue-text); margin: 0 0 12px; }
.nd-ftm .nd-card__title { font: 700 1.3rem/1.25 Georgia, serif; margin: 0 0 12px; }
.nd-ftm .nd-card__title a { color: var(--nd-text); }
.nd-ftm .nd-card__title a:hover { color: var(--nd-blue-text); }
.nd-ftm .nd-card__excerpt { color: var(--nd-muted); font-size: .97rem; margin: 0 0 16px; }
.nd-ftm .nd-card__meta { font-size: .85rem; color: var(--nd-muted); margin: auto 0 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.nd-ftm .nd-card__link { font: 600 .92rem/1 system-ui, sans-serif; color: var(--nd-blue-text); }
.nd-ftm .nd-card__link:hover { text-decoration: underline; }

/* Featured card */
.nd-ftm .nd-card--featured { flex-direction: row; background: var(--nd-navy); border-color: var(--nd-navy); }
.nd-ftm .nd-card--featured .nd-card__media { flex: 0 0 52%; aspect-ratio: auto; min-height: 340px; }
.nd-ftm .nd-card--featured .nd-card__body { padding: clamp(28px, 4vw, 52px); justify-content: center; }
.nd-ftm .nd-card--featured .nd-card__cat { color: #6FA8FF; }
.nd-ftm .nd-card--featured .nd-card__title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.15; }
.nd-ftm .nd-card--featured .nd-card__title a { color: var(--nd-white); }
.nd-ftm .nd-card--featured .nd-card__title a:hover { color: #6FA8FF; }
.nd-ftm .nd-card--featured .nd-card__excerpt { color: #C7D3E6; font-size: 1.05rem; }
.nd-ftm .nd-card--featured .nd-card__meta { color: #93A4BE; }
.nd-ftm .nd-card--featured .nd-card__link { color: #6FA8FF; }

/* Empty state and notes */
.nd-ftm .nd-empty {
	background: var(--nd-white);
	border: 1px solid var(--nd-line);
	border-left: 4px solid var(--nd-blue);
	padding: clamp(28px, 4vw, 48px);
	border-radius: 6px;
	max-width: 760px;
}
.nd-ftm .nd-empty h3 { font: 700 1.5rem/1.25 Georgia, serif; margin: 0 0 10px; }
.nd-ftm .nd-empty p { margin: 0; color: var(--nd-muted); }
.nd-ftm .nd-note { margin: 0; color: var(--nd-muted); }

/* Pagination (core the_posts_pagination markup) */
.nd-ftm .pagination { margin-top: 44px; }
.nd-ftm .pagination .screen-reader-text { position: absolute; }
.nd-ftm .nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nd-ftm .page-numbers {
	padding: 10px 16px;
	border: 1px solid var(--nd-line);
	border-radius: 4px;
	background: var(--nd-white);
	color: var(--nd-text);
	font: 600 .92rem/1 system-ui, sans-serif;
}
.nd-ftm a.page-numbers:hover { border-color: var(--nd-blue); color: var(--nd-blue-text); }
.nd-ftm .page-numbers.current { background: var(--nd-navy); border-color: var(--nd-navy); color: var(--nd-white); }
.nd-ftm .page-numbers.dots { border-color: transparent; background: transparent; }

/* CTA */
.nd-ftm .nd-cta {
	background: linear-gradient(160deg, var(--nd-navy), var(--nd-navy-2));
	color: var(--nd-white);
	padding: clamp(56px, 7vw, 92px) 0;
	text-align: center;
}
.nd-ftm .nd-cta h2 { font: 700 clamp(1.7rem, 3.4vw, 2.6rem)/1.15 Georgia, serif; margin: 0 auto 16px; max-width: 18em; color: var(--nd-white); }
.nd-ftm .nd-cta p { color: #C7D3E6; max-width: 36em; margin: 0 auto 28px; }
.nd-ftm .nd-btn {
	display: inline-block;
	background: var(--nd-blue-text);
	color: var(--nd-white);
	font: 600 1rem/1 system-ui, sans-serif;
	padding: 16px 30px;
	border-radius: 4px;
	transition: background .2s ease;
}
.nd-ftm .nd-btn:hover { background: #1A57BD; color: var(--nd-white); }

/* Explore more investigations */
.nd-ftm .nd-explore { background: var(--nd-white); padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--nd-line); }
.nd-ftm .nd-explore__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 28px; }
.nd-ftm .nd-explore__item {
	display: block;
	border: 1px solid var(--nd-line);
	border-radius: 6px;
	padding: 26px;
	background: var(--nd-light);
	transition: border-color .2s ease;
}
.nd-ftm .nd-explore__item:hover { border-color: var(--nd-blue); }
.nd-ftm .nd-explore__item h3 { font: 700 1.3rem/1.25 Georgia, serif; margin: 0 0 8px; color: var(--nd-text); }
.nd-ftm .nd-explore__item p { margin: 0 0 14px; color: var(--nd-muted); font-size: .97rem; }
.nd-ftm .nd-explore__item span { font: 600 .9rem/1 system-ui, sans-serif; color: var(--nd-blue-text); }

/* Tablet */
@media (max-width: 1024px) {
	.nd-ftm .nd-grid { grid-template-columns: repeat(2, 1fr); }
	.nd-ftm .nd-topics__grid { grid-template-columns: repeat(2, 1fr); }
	.nd-ftm .nd-topic:nth-child(2) { border-right: 0; }
	.nd-ftm .nd-topic:nth-child(3) { padding-left: 0; border-top: 1px solid var(--nd-line); }
	.nd-ftm .nd-topic:nth-child(4) { border-top: 1px solid var(--nd-line); }
	.nd-ftm .nd-card--featured .nd-card__media { flex-basis: 46%; }
	.nd-ftm .nd-hero__art { opacity: .4; }
	.nd-ftm .nd-hero__art svg { width: min(520px, 60%); }
}

/* Mobile */
@media (max-width: 720px) {
	.nd-ftm { font-size: 16px; }
	.nd-ftm .nd-wrap { padding: 0 18px; }
	.nd-ftm .nd-grid,
	.nd-ftm .nd-explore__grid,
	.nd-ftm .nd-topics__grid { grid-template-columns: 1fr; }
	.nd-ftm .nd-topic,
	.nd-ftm .nd-topic + .nd-topic { padding: 22px 0; border-right: 0; border-top: 1px solid var(--nd-line); }
	.nd-ftm .nd-card--featured { flex-direction: column; }
	.nd-ftm .nd-card--featured .nd-card__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
	.nd-ftm .nd-hero__art svg { width: 120%; right: -30%; opacity: .7; }
}

@media (prefers-reduced-motion: reduce) {
	.nd-ftm * { transition: none !important; }
}
