/**
 * Wave 1 public discovery — Club Complete Preview angel rules.
 * Tokens: #125FC5 / #0E4DA3 / #14253D / #5F6F85 / #F6F8FC / radius 11·20.
 */
body.fsw-foundation {
	--fsw-wave1-blue: #125fc5;
	--fsw-wave1-blue-hover: #0e4da3;
	--fsw-wave1-navy: #14253d;
	--fsw-wave1-muted: #5f6f85;
	--fsw-wave1-line: #e2e8f0;
	--fsw-wave1-page: #f6f8fc;
	--fsw-wave1-pale: #edf4ff;
	--fsw-wave1-radius-btn: 11px;
	--fsw-wave1-radius-card: 20px;
}

/* Page canvas (content) matches Complete Preview; header/footer stay navy per owner. */
body.fsw-foundation .fswt-site {
	background: var(--fsw-wave1-page);
}

/* —— Academy / education —— */
body.fsw-foundation .fsw-academy-masthead {
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: 28px;
	padding-block: 28px 8px;
	box-sizing: border-box;
}
body.fsw-foundation .fsw-academy-intro {
	display: grid;
	gap: 16px;
	padding-block: 12px 28px;
}
body.fsw-foundation .fsw-academy-eyebrow,
body.fsw-foundation .fsw-academy-intro .eyebrow {
	margin: 0;
	color: var(--fsw-wave1-blue);
	font-size: 12px;
	font-weight: 750;
	letter-spacing: .2px;
	display: flex;
	align-items: center;
	gap: 8px;
}
body.fsw-foundation .fsw-academy-eyebrow::before,
body.fsw-foundation .fsw-academy-intro .eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	background: currentColor;
}
body.fsw-foundation .fsw-academy-intro h1 {
	margin: 0;
	color: var(--fsw-wave1-navy);
	font-size: clamp(27px, 3.2vw, 36px);
	line-height: 1.35;
	font-weight: 800;
}
body.fsw-foundation .fsw-academy-lead {
	margin: 0;
	max-width: 760px;
	color: var(--fsw-wave1-muted);
	font-size: 15px;
	line-height: 1.85;
}
body.fsw-foundation .fsw-academy-feature {
	display: grid;
	gap: 12px;
	padding: 24px;
	border: 1px solid var(--fsw-wave1-line);
	border-radius: var(--fsw-wave1-radius-card);
	background: #fff;
	box-shadow: 0 16px 52px -28px #14253d40;
}
body.fsw-foundation .fsw-academy-feature-label {
	margin: 0 0 6px;
	color: var(--fsw-wave1-blue);
	font-size: 12px;
	font-weight: 700;
}
body.fsw-foundation .fsw-academy-feature-copy strong {
	display: block;
	margin-bottom: 8px;
	color: var(--fsw-wave1-navy);
	font-size: 18px;
	line-height: 1.6;
}
body.fsw-foundation .fsw-academy-feature-copy p {
	margin: 0 0 16px;
	color: var(--fsw-wave1-muted);
	font-size: 14px;
	line-height: 1.85;
}
body.fsw-foundation .fsw-academy-cta,
body.fsw-foundation .fsw-academy-intro .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 10px 20px;
	border-radius: var(--fsw-wave1-radius-btn);
	background: var(--fsw-wave1-blue);
	color: #fff !important;
	font-weight: 650;
	text-decoration: none !important;
	border: 1px solid transparent;
}
body.fsw-foundation .fsw-academy-cta:hover {
	background: var(--fsw-wave1-blue-hover);
}
body.fsw-foundation .fsw-academy-cta:focus-visible {
	outline: 3px solid #7caef1;
	outline-offset: 3px;
}
body.fsw-foundation .fsw-academy-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
body.fsw-foundation .fsw-academy-topics a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 16px;
	border: 1px solid var(--fsw-wave1-line);
	border-radius: 12px;
	background: #fff;
	color: var(--fsw-wave1-navy);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
body.fsw-foundation .fsw-academy-topics a:hover {
	background: var(--fsw-wave1-pale);
	border-color: #99c5ff;
	color: var(--fsw-wave1-blue);
}
body.fsw-foundation .fsw-academy-main {
	padding-block-start: 8px;
}

/* —— Directory (Company Hub) Complete Preview hierarchy —— */
body.fsw-foundation .fsch-directory-root .fsch-eyebrow {
	color: var(--fsw-wave1-blue);
	font-size: 12px;
	font-weight: 750;
	letter-spacing: .2px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
body.fsw-foundation .fsch-directory-root .fsch-eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	background: currentColor;
}
body.fsw-foundation .fsch-directory-root .fsch-directory-hero {
	background: transparent !important;
	color: var(--fsw-wave1-navy) !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 28px 0 12px !important;
	margin: 0 !important;
	box-shadow: none !important;
}
body.fsw-foundation .fsch-directory-root .fsch-directory-hero :is(h1, h2) {
	color: var(--fsw-wave1-navy) !important;
	font-size: clamp(27px, 3.2vw, 36px);
	line-height: 1.35;
	margin: 10px 0;
}
body.fsw-foundation .fsch-directory-root .fsch-directory-hero p {
	color: var(--fsw-wave1-muted) !important;
	max-width: 760px;
	font-size: 15px;
	line-height: 1.85;
}
body.fsw-foundation .fsch-directory-root .fsch-category {
	min-height: 44px;
	border-radius: 12px;
}
body.fsw-foundation .fsch-directory-root .fsch-category.is-active {
	background: var(--fsw-wave1-pale);
	color: var(--fsw-wave1-blue);
	border-color: #99c5ff;
}
body.fsw-foundation .fsch-directory-root :is(.fsch-button-primary, .fsch-button.fsch-button-primary) {
	min-height: 46px;
	border-radius: var(--fsw-wave1-radius-btn);
	background: var(--fsw-wave1-blue);
}
body.fsw-foundation .fsch-directory-root :is(.fsch-button-primary, .fsch-button.fsch-button-primary):hover {
	background: var(--fsw-wave1-blue-hover);
}

/* —— Tools hub / calculator pages — align with CPTT soft-hero + pill filters —— */
body.fsw-foundation .fstt-hub .fstt-hero,
body.fsw-foundation .fstt-tool-page .fstt-hero {
	padding: 18px 20px;
	background: linear-gradient(135deg, #eef7ff, #fff);
	border: 1px solid #dcecff;
	border-radius: 18px;
	box-shadow: none;
}
body.fsw-foundation .fstt-hub .fstt-hero h1,
body.fsw-foundation .fstt-tool-page .fstt-page-head :is(h1, h2) {
	font-size: clamp(24px, 3.2vw, 34px);
	line-height: 1.4;
	color: var(--fsw-wave1-navy);
}
body.fsw-foundation .fstt-hub .fstt-hero-description {
	color: var(--fsw-wave1-muted);
	max-width: 760px;
	font-size: 13px;
	line-height: 1.85;
}
body.fsw-foundation .fstt-hub .fstt-tool-grid a,
body.fsw-foundation .fstt-hub .fstt-tool-card {
	border-radius: 16px;
	border: 1px solid #eaecf0;
	background: #fff;
	min-height: 0;
	box-shadow: none;
}
body.fsw-foundation .fstt-hub .fstt-filter {
	border-radius: 999px;
	border: 1px solid #e4e7ec;
	background: #fff;
	min-height: 44px;
	padding: 10px 14px;
	font-size: 13px;
}
body.fsw-foundation .fstt-hub .fstt-filter.is-active {
	background: var(--fsw-wave1-blue);
	border-color: var(--fsw-wave1-blue);
	color: #fff;
}
body.fsw-foundation .fstt-hub :is(button, .fstt-filter, [role="button"]) {
	min-height: 44px;
}
body.fsw-foundation .fstt-tool-page :is(.fstt-calc-form, .fstt-result-card) {
	border: 1px solid #eaecf0;
	border-radius: 20px;
	box-shadow: 0 8px 26px rgba(16, 24, 40, .04);
}
body.fsw-foundation .fstt-tool-page .fstt-result-head {
	background: #eef7ff;
	border-bottom-color: #dcecff;
	color: var(--fsw-wave1-navy);
}
body.fsw-foundation .fstt-tool-page .fstt-root :is(input, select) {
	min-height: 54px;
	border-radius: 14px;
	border-color: #d0d5dd;
}

/* —— Markets listing: reduce double-hero noise —— */
body.fsw-foundation.fswt-market-listing .fswt-product-entry > .fswt-title-band {
	padding-block: 16px 0;
	background: transparent;
}
body.fsw-foundation.fswt-market-listing .fswt-product-entry > .fswt-title-band h1 {
	font-size: clamp(27px, 3.2vw, 36px);
	color: var(--fsw-wave1-navy);
}
body.fsw-foundation.fswt-market-listing .sph-hub-hero .sph-hub-hero-copy > :is(h1, h2) {
	/* Keep one visible page title — demote nested hero title if present */
	font-size: 20px;
	line-height: 1.5;
}
body.fsw-foundation.fswt-market-listing .sph-hub-hero {
	border-radius: var(--fsw-wave1-radius-card);
	border: 1px solid var(--fsw-wave1-line);
	background: #fff;
	box-shadow: 0 16px 52px -28px #14253d40;
}

/* —— Coin detail shell —— */
body.fsw-foundation .fswt-product:has(.coinpress-v2) {
	max-width: 1240px;
}

@media (max-width: 767px) {
	/* Sitewide mobile: widen content boxes — cut double gutters (shell + card). */
	body.fsw-foundation {
		--fsw-mobile-gutter: 10px;
	}
	body.fsw-foundation .fswt-site-header > .fswt-shell,
	body.fsw-foundation .fswt-site-footer > .fswt-shell {
		padding-inline: var(--fsw-mobile-gutter) !important;
	}
	body.fsw-foundation .fsw-academy-masthead,
	body.fsw-foundation .fsw-academy-intro,
	body.fsw-foundation .fsch-directory-root .fsch-directory-hero,
	body.fsw-foundation .fsch-directory-root .fsch-ds3-directory-layout {
		padding-inline: var(--fsw-mobile-gutter) !important;
		box-sizing: border-box;
	}
	body.fsw-foundation .fsw-academy-masthead {
		padding-block: 16px 4px;
	}
	body.fsw-foundation .fsw-academy-feature {
		padding: 14px;
		border-radius: 16px;
	}
	body.fsw-foundation .fsch-directory-root .fsch-directory-hero {
		padding-block: 16px 8px !important;
	}
	body.fsw-foundation .fswt-product:has(.coinpress-v2) {
		padding-inline: var(--fsw-mobile-gutter) !important;
		width: 100%;
		max-width: none;
		box-sizing: border-box;
	}
	body.fsw-foundation .fswt-account-page {
		padding-inline: var(--fsw-mobile-gutter) !important;
	}
	/* Blog / magazine / article shells were calc(100% - 36|64px) — too narrow on phone. */
	body.fsw-foundation.single-post .fsw-editorial-hero,
	body.fsw-foundation.single-post .fswt-layout,
	body.fsw-foundation.fswt-blog:not(.single-post) .fswt-layout,
	body.fsw-foundation.fswt-blog:not(.single-post) .fsw-archive-masthead,
	body.fsw-foundation .fsw-blog-hub-section,
	body.fsw-foundation .mag-shell,
	body.fsw-foundation .fsw-magazine > .fsw-blog-hub-section {
		width: calc(100% - 20px) !important;
		max-width: none;
		box-sizing: border-box;
	}
	body.fsw-foundation .fswt-comments {
		padding: 14px 12px;
		border-radius: 16px;
	}
	body.fsw-foundation.single-post .fswt-reading > .fswt-comments {
		max-width: 100%;
	}
	body.fsw-foundation .fswt-site-footer > .fswt-shell {
		padding-inline: var(--fsw-mobile-gutter) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.fsw-foundation .fsw-academy-cta,
	body.fsw-foundation .fsch-directory-root .fsch-category {
		transition: none;
	}
}
