/* ==========================================================================
   Figma redesign — global (owned by the global agent)
   Tokens, buttons, typography, header/nav, footer, inner-page hero,
   shared layouts (complex_block / main_content / quick_links), Disclosures.

   Breakpoints used here:
     desktop header  >= 1080px  (style.css switches to the burger at 1079px)
     mobile design   <= 767px   (Figma mobile frames are 440px wide)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens (use these in other area files)
   -------------------------------------------------------------------------- */
:root {
	--np-gold: #D69C36;            /* brand gold (was #CD9E4A) */
	--np-dark: #292929;            /* dark backgrounds + body text (was #262929) */
	--np-grey: #868F98;            /* button hover */
	--np-light: #F3F4F5;           /* title shapes, light panels */
	--np-line: #C2C7CB;            /* thin separators */
	--np-footer-line: #595E5E;     /* footer separators */
	--np-white: #FFFFFF;

	--np-header-h: 113px;          /* fixed header height (desktop) */
	--np-header-h-mobile: 80px;    /* fixed header height (<=1079px) */
	--np-shadow: 0 7px 7.5px rgba(0, 0, 0, 0.1);

	--np-font-title: 'TitlingGothicFBWideMedium';
	--np-font-body: 'PragmaticaLight';
	--np-font-lead: 'PragmaticaExtBold';
	--np-font-ui: 'SackersGothicStd-Heavy';
	--np-font-ui-light: 'SackersGothicStd-Light';

	/* type scale — desktop (Figma: Title / H1 / H3 / P1 / P3 / UI) */
	--np-fs-hero: 41px;  --np-lh-hero: 49px;   /* inner-page hero title */
	--np-fs-h2: 30px;    --np-lh-h2: 1.2;      /* section titles ("H1 - Desktop") */
	--np-fs-h3: 18px;    --np-lh-h3: 1.5;
	--np-fs-lead: 19px;  --np-lh-lead: 35px;   /* gold lead paragraph (.subtitle) */
	--np-fs-body: 16px;  --np-lh-body: 1.5;    /* body copy (.plaintext, articles) */
	--np-fs-ui: 12px;                          /* buttons */
	--np-fs-nav: 11px;
}

@media screen and (max-width: 767px) {
	:root {
		--np-fs-hero: 28px;
		--np-fs-h2: 24px;
		--np-lh-lead: 1.5;
		--np-fs-lead: 17px;
		--np-fs-body: 14px;
	}
}

body {
	color: var(--np-dark);
}

/* --------------------------------------------------------------------------
   2. Buttons — component `button` 2016:1735 (default / hover / icon / icon-hover)
      51px tall gold parallelogram, Sackers Heavy 12px, no letter-spacing.
      Visible width = text + 2*49px padding + 29px skew (= 34px pad + corners).
   -------------------------------------------------------------------------- */
.button a,
.wpforms-container button[type=submit],
.cs_item .button span.outer,
.np-btn {
	font: var(--np-fs-ui)/12px var(--np-font-ui);
	letter-spacing: 0;
	padding: 19.5px 49px;
	background-color: var(--np-gold);
	color: var(--np-white);
	box-shadow: var(--np-shadow);
	text-align: center;
}

.button a:hover,
.wpforms-container button[type=submit]:hover,
.news_download_item.hov .button a,
.np-btn:hover {
	background-color: var(--np-grey);
	color: var(--np-white);
}

/* icon variant: icon + 10px gap + label */
.button a i {
	font-size: 12px;
	margin-right: 10px !important;
	vertical-align: top;
}

.button a i + span {
	margin-right: 0 !important;
}

@media screen and (max-width: 640px) {
	.button a,
	.cs_item .button span.outer {
		font: var(--np-fs-ui)/12px var(--np-font-ui);
		letter-spacing: 0;
		padding: 19.5px 34px;
		text-align: center;
	}
	.button span {
		white-space: nowrap;
	}
}

@media screen and (max-width: 420px) {
	.button a,
	.cs_item .button span.outer {
		padding: 19.5px 26px;
	}
	/* very long labels may wrap on narrow phones instead of overflowing */
	.button span {
		white-space: normal;
		line-height: 15px;
	}
}

/* --------------------------------------------------------------------------
   3. Typography (global defaults; page agents may scope tweaks)
   -------------------------------------------------------------------------- */
h2,
.article-news h1 {
	font: var(--np-fs-h2)/var(--np-lh-h2) var(--np-font-title);
}

/* section title shape — component `title` 2016:669: 72x66 light parallelogram,
   title text overlaps it by 38px (text starts 34px from the shape's left edge) */
h2:not(.no_line) {
	margin-left: 34px;
}

h2:not(.no_line):after,
.default_text_field_wp h1:after {
	left: -14px;
	top: 50%;
	width: 31px;
	height: 66px;
	margin-top: -33px;
	border: 0;
	background-color: var(--np-light);
	transform: skewX(-31.7deg);
	-webkit-transform: skewX(-31.7deg);
}

h3,
.default_text_field_wp h2 {
	font: var(--np-fs-h3)/var(--np-lh-h3) var(--np-font-title);
}

.subtitle {
	font: var(--np-fs-lead)/var(--np-lh-lead) var(--np-font-lead);
	color: var(--np-gold);
}

.plaintext,
article.text li,
article.text p {
	font-size: var(--np-fs-body);
	line-height: var(--np-lh-body);
	color: var(--np-dark);
}

article.text li li {
	font-size: 1em;
	line-height: inherit;
}

@media screen and (max-width: 767px) {
	/* mobile intros: title aligned to the shape's top (Figma: pt 22px) */
	h2:not(.no_line):after,
	.default_text_field_wp h1:after {
		top: -22px;
		margin-top: 0;
	}
}

/* --------------------------------------------------------------------------
   4. Header / nav — Menu 2023:1781, menu item 2041:1334 (default / toggle)
   -------------------------------------------------------------------------- */
#primary-menu {
	padding: 0;
	box-shadow: var(--np-shadow);
}

@media screen and (min-width: 1080px) {
	#primary-menu > .cont {
		height: var(--np-header-h);
	}
	#primary-menu .logo_box {
		margin-right: 80px;
		flex: none;
		width: auto;
	}
	#primary-menu .logo,
	#primary-menu.scrolled .logo {
		height: 75px;
		max-width: 214px;
	}
	#primary-menu nav {
		flex: 1 1 auto;
	}
	#primary-menu nav > ul.flex {
		width: 100%;
		justify-content: space-between;
		align-items: center;
	}
	#primary-menu nav > ul.flex > li {
		width: auto;
	}
	#primary-menu nav > ul > li > a {
		font: var(--np-fs-nav)/13px var(--np-font-ui);
		letter-spacing: 0;
		padding: 14px 0 14px 19px;
		margin: 0 !important;
	}
	#primary-menu nav > ul > li:last-child > a {
		padding-right: 0;
	}
	#primary-menu nav > ul > li > a span {
		margin-right: 0;
	}
	#primary-menu nav > ul > li > a > i {
		margin-left: 10px;
		font-size: 11px;
	}
	/* active ("toggle") state: 45x41 gold parallelogram behind the start of the label */
	#primary-menu nav > ul > li.current-menu-item:after,
	#primary-menu nav > ul > li.current-page-ancestor:after,
	#primary-menu nav > ul > li.current-menu-parent:after {
		display: none;
	}
	#primary-menu nav > ul > li > a:before {
		content: '';
		position: absolute;
		left: 0;
		top: 50%;
		width: 45px;
		height: 41px;
		margin-top: -20.5px;
		background-color: var(--np-gold);
		clip-path: polygon(56.5% 0, 100% 0, 43.6% 100%, 0 100%);
		-webkit-clip-path: polygon(56.5% 0, 100% 0, 43.6% 100%, 0 100%);
		opacity: 0;
		transition: 0.4s ease opacity;
		z-index: -1;
	}
	#primary-menu nav > ul > li.current-menu-item > a:before,
	#primary-menu nav > ul > li.current-page-ancestor > a:before,
	#primary-menu nav > ul > li.current-menu-parent > a:before {
		opacity: 1;
	}
	#primary-menu nav > ul > li > a span:after {
		bottom: -3px;
	}
	#primary-menu nav > ul > li.investor_login > a:before,
	#primary-menu nav > ul > li.investor_login > a span:after {
		display: none;
	}
	/* sub-menus (no design): keep the existing hover bar, restyled with tokens */
	#primary-menu .sub-menu {
		top: var(--np-header-h);
	}
	#primary-menu .sub-menu a {
		font: var(--np-fs-nav)/13px var(--np-font-ui);
		letter-spacing: 0;
		padding: 22px 60px 18px !important;
		border-bottom-width: 3px !important;
	}
}

/* <=1079: burger header 80px (Figma mobile Menu 2060:8852) */
@media screen and (max-width: 1079px) {
	#primary-menu > .cont {
		width: 100%;
		margin: 0;
		height: var(--np-header-h-mobile);
		padding-left: 30px;
		box-sizing: border-box;
	}
	#primary-menu .logo,
	#primary-menu.scrolled .logo {
		height: 54px;
		max-width: 153px;
	}
	#mobile_trigger {
		width: 27px;
		height: 19px;
		margin-right: 30px;
		flex: none;
		cursor: pointer;
	}
	#mobile_trigger span {
		height: 1px;
	}
	#mobile_trigger:before,
	#mobile_trigger:after,
	#mobile_trigger span:after {
		height: 1px;
		left: 0;
	}
	#primary-menu.mobile_show #mobile_trigger:after {
		width: 19px;
	}
	/* open menu panel (no Figma frame): white panel under the header, same nav type */
	#primary-menu nav {
		top: var(--np-header-h-mobile);
		max-height: calc(100% - var(--np-header-h-mobile));
		background-color: var(--np-white);
		box-shadow: none;
		min-width: 280px;
		text-align: left;
	}
	#primary-menu.mobile_show nav {
		box-shadow: var(--np-shadow);
	}
	#primary-menu nav > ul > li > a,
	#primary-menu.homepage nav > ul > li > a {
		font: 12px/14px var(--np-font-ui);
		letter-spacing: 0;
		padding: 20px 30px 20px 49px;
	}
	#primary-menu nav > ul > li > a > i {
		margin-left: 10px;
	}
	#primary-menu nav > ul > li.current-menu-item > a:after,
	#primary-menu nav > ul > li.current-page-ancestor > a:after,
	#primary-menu nav > ul > li.current-menu-parent > a:after {
		content: '';
		position: absolute;
		left: 30px;
		top: 50%;
		width: 45px;
		height: 41px;
		margin-top: -20.5px;
		background-color: var(--np-gold);
		clip-path: polygon(56.5% 0, 100% 0, 43.6% 100%, 0 100%);
		-webkit-clip-path: polygon(56.5% 0, 100% 0, 43.6% 100%, 0 100%);
		transform: none;
		-webkit-transform: none;
		z-index: 4100;
	}
	#primary-menu nav > ul > li > .sub-menu {
		border-top: 1px solid var(--np-line);
		margin: 0 30px 10px 49px;
		width: auto;
	}
	#primary-menu .sub-menu a {
		font: 11px/13px var(--np-font-ui);
		letter-spacing: 0;
		padding: 12px 0 !important;
	}
}

/* --------------------------------------------------------------------------
   5. Inner-page hero (non-front-page) — header 2023:1930 / 2049:2218,
      mobile 2060:4028 / 2060:8902
   -------------------------------------------------------------------------- */
.pageheader {
	margin-top: var(--np-header-h);
}

.pageheader.simple:not(.home),
.pageheader.simple:not(.home):not(.single).noback {
	min-height: 0;
	padding-top: 0;
}

.pageheader.simple:not(.home).back_exists {
	height: 490px;
}

.pageheader.simple:not(.home).noback {
	height: 284px;
	padding-top: 0;
	background-color: var(--np-dark);
}

.pageheader:not(.home) .ph_wrapper,
.pageheader:not(.home).noback:not(.single) .ph_wrapper {
	height: 100%;
	padding: 0;
	align-content: center;
	align-items: center;
}

.pageheader:not(.home) h1 {
	font: var(--np-fs-hero)/var(--np-lh-hero) var(--np-font-title);
	letter-spacing: -0.01em;
	margin-left: 0;
}

/* 190x178 outline parallelogram; title starts 94px from its left edge */
.pageheader:not(.home) h1:after {
	left: -40px;
	top: 50%;
	width: 81.5px;
	height: 178px;
	margin-top: -89px;
	border: 1px solid var(--np-gold);
	transform: skewX(-31.4deg);
	-webkit-transform: skewX(-31.4deg);
}

/* dots: 1226x157, 78px below the hero, flush right */
.pageheader:not(.home) .pattern {
	height: 157px;
	bottom: -78px;
}

@media screen and (max-width: 1079px) {
	.pageheader {
		margin-top: var(--np-header-h-mobile);
	}
	.pageheader:not(.home) h1 {
		margin-left: 94px;
	}
}

@media screen and (max-width: 767px) {
	.pageheader:not(.home).back_exists {
		height: 490px;
	}
	.pageheader:not(.home) .ph_wrapper {
		width: calc(100% - 60px);
		margin: 0 30px;
	}
	.pageheader:not(.home) h1 {
		width: calc(100% - 94px);
		text-wrap: balance;
	}
	.pageheader:not(.home) .pattern {
		left: 110px;
		width: auto;
		right: 0;
	}
}

/* --------------------------------------------------------------------------
   6. Shared layouts
   -------------------------------------------------------------------------- */

/* complex_block — intro blocks (Figma Frame 2192 on About/Team/...): 80px top,
   64px between title and body, 35px between paragraphs */
section.complex_block > .cont_inner.margin_b.mm > h2 {
	margin-bottom: 56px;
}

section.complex_block .margin_b.mm > .subtitle,
section.complex_block .margin_b.mm > .plaintext {
	margin-bottom: 35px;
}

section.complex_block .plaintext.margin_b > * {
	margin-bottom: 1.5em;
}

/* Figma titles use text-wrap: balance (e.g. Team "Playing to Win: Thoughtful Investors / and Experienced Operators") */
section.complex_block > .cont_inner > h2 {
	text-wrap: balance;
}

/* Page intros (About 2016:666, Team 2041:1901): the design's text frame is 1220px wide (49px past the
   1171px column), so the gold lead runs in 2 lines; vertical rhythm per frame. */
@media screen and (min-width: 1280px) {
	main.np-page-about-us > section.complex_block:first-child > .cont_inner > .subtitle,
	main.np-page-about-us > section.complex_block:first-child > .cont_inner > .plaintext,
	main.np-page-team > section.complex_block:first-child > .cont_inner > .subtitle {
		margin-right: -49px;
	}

	/* About: 77px dots row + 80px top, 66px title row centred on the text, 64px to the lead */
	main.np-page-about-us > section.complex_block:first-child {
		padding-top: 172px;
		padding-bottom: 80px;
	}
	main.np-page-about-us > section.complex_block:first-child > .cont_inner > h2 {
		margin-bottom: 79px;
	}

	/* Team: 118px top, 97px from title to lead */
	main.np-page-team > section.complex_block:first-child {
		padding-top: 118px;
		padding-bottom: 80px;
	}
	main.np-page-team > section.complex_block:first-child > .cont_inner > h2 {
		margin-bottom: 97px;
	}
}

/* main_content — Disclosures body: 80px top, 60px bottom, 16/24 (14/21 mobile) */
main section.main_content,
main:not(.article-news).noph section.main_content:first-of-type {
	padding-top: 80px;
	padding-bottom: 60px;
}

section.main_content article.text > * {
	margin-bottom: 1.5em;
}

/* Awards & Rankings Disclosures (2049:2400): an empty 24px line between the two paragraphs (16 + 24 + 16),
   links set as plain text (underlined on hover only) */
main.np-page-awards-disclosures section.main_content article.text > p:not(:last-child) {
	margin-bottom: 56px;
}
main.np-page-awards-disclosures section.main_content article.text a {
	text-decoration: none;
}
main.np-page-awards-disclosures section.main_content article.text a:hover {
	text-decoration: underline;
}

/* quick_links — gold buttons on a full-width 1px line (Frame 2654 2049:2307):
   10px gap, centred, 118px bottom padding; mobile: stacked, 20px gap, 80px bottom */
main section.quick_links {
	padding-top: 0;
	padding-bottom: 118px;
}

.quick_links .ql_wrapper {
	margin-bottom: 0;
	justify-content: center;
}

.quick_links .ql_wrapper > .button_box {
	margin: 0 19.6px !important; /* 10px between the corner tips, like the Figma auto-layout gap */
	width: auto;
	text-align: center;
}

.quick_links .button_box:after {
	top: 25px;
	background-color: var(--np-line);
}

@media screen and (min-width: 1280px) {
	.quick_links .ql_wrapper {
		flex-wrap: nowrap;
	}
}

@media screen and (max-width: 1279px) {
	.quick_links .ql_wrapper {
		row-gap: 20px;
	}
}

@media screen and (max-width: 767px) {
	main section.quick_links {
		padding-bottom: 80px;
	}
	.quick_links .ql_wrapper {
		flex-direction: column;
		align-items: center;
		row-gap: 20px;
	}
	.quick_links .ql_wrapper > .button_box {
		margin: 0 !important;
		width: 100%;
	}
	.quick_links .ql_wrapper > .button_box:not(:first-child):after {
		display: none;
	}
	.quick_links .button_box .button a {
		display: block;
		width: calc(100% - 30px);
		max-width: 360px;
		margin: 0 auto;
		box-sizing: border-box;
		padding-left: 10px;
		padding-right: 10px;
	}
	.quick_links .ql_wrapper > .button_box:only-child .button a {
		width: auto;
		display: inline-block;
		padding-left: 49px;
		padding-right: 49px;
	}
}

/* --------------------------------------------------------------------------
   7. Footer — component 2017:2610 (desktop), 2060:8947 (mobile)
   -------------------------------------------------------------------------- */
footer .cont_inner {
	padding: 63px 0;
}

footer .cont_inner.margin_b.mm > * {
	margin-bottom: 44px;
}

footer .row {
	padding-bottom: 0;
	border-bottom: 0;
}

/* row 1: logo + single-level nav */
footer .menu_row {
	padding-bottom: 58px;
	align-items: flex-start;
	flex-wrap: nowrap;
}

footer .logo_box {
	margin: 0 118px 0 0 !important;
	flex: none;
	width: auto;
}

footer .logo {
	width: 198px;
}

footer #footer_menu {
	flex: 1 1 auto;
	margin: 0 !important;
	padding: 48px 42px 0 0;
	box-sizing: border-box;
}

footer #footer_menu > ul.flex {
	width: 100%;
	justify-content: space-between;
	margin: 0;
}

footer #footer_menu > ul > li {
	margin: 0 !important;
	width: auto;
}

footer #footer_menu .sub-menu {
	display: none !important;
}

footer #footer_menu li a {
	font: 13px/16px var(--np-font-ui);
	letter-spacing: 0;
	padding: 0;
}

footer #footer_menu li a > i {
	margin-left: 10px;
}

/* row 2: contacts + Disclosures between two lines */
footer .contact_row {
	border-top: 1px solid var(--np-footer-line);
	border-bottom: 1px solid var(--np-footer-line);
	padding: 40px 42px 40px 0;
	align-items: center;
	font: 11px/13px var(--np-font-ui-light);
	letter-spacing: 0;
}

footer .contact_row .phones_f {
	margin-right: 0 !important;
	flex-wrap: nowrap;
}

footer .contact_row .phones_f > * {
	margin-right: 50px !important;
	white-space: nowrap;
}

footer .contact_row .phones_f > *:last-child {
	margin-right: 0 !important;
}

footer .contact_row > *,
footer .contact_row .phones_f > *,
footer .copy_row > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

footer .email > * {
	margin: 0 !important;
	display: inline;
}

footer .email a {
	font-size: 1em;
}

footer #legal_menu {
	margin: 0 !important;
}

footer #legal_menu ul {
	margin: 0 !important;
}

footer #legal_menu li a {
	font: 11px/13px var(--np-font-ui);
	letter-spacing: 0;
	opacity: 1;
	padding: 0;
}

/* row 3: copyright + developer */
footer .copy_row {
	padding-right: 42px;
	font: 10px/12px var(--np-font-ui-light);
}

footer .copyright,
footer .developer > * {
	font: 10px/12px var(--np-font-ui-light);
	opacity: 0.4;
}

/* To-top block (262px wide at 1695) */
#back_to_top {
	padding: 0;
	justify-content: center;
	align-content: center;
	row-gap: 28px;
	font: 12px/14px var(--np-font-ui);
	letter-spacing: 0;
}

#back_to_top > * {
	margin-bottom: 0 !important;
}

#back_to_top p {
	width: 100%;
}

#back_to_top .img_box {
	width: 19px;
	height: 69px;
}

/* Inc. Founder-Friendly disclaimer above the footer (front page only; Home 2204:1880) */
footer .footer_disclosures_wrap {
	padding: 64px 0;
	border-bottom: 0;
}

footer .footer_disclosures {
	font: 11px/1.5 'PragmaticaExtExtraLightObl';
	color: var(--np-white);
	text-align: justify;
}

footer .footer_disclosures em {
	font-style: normal;
}

footer .footer_disclosures p {
	margin-bottom: 11px;
}

footer .footer_disclosures p:last-child {
	margin-bottom: 0;
}

footer .footer_disclosures a {
	color: var(--np-gold);
}

@media screen and (max-width: 1365px) {
	footer .logo_box {
		margin-right: 60px !important;
	}
	footer .contact_row .phones_f > * {
		margin-right: 30px !important;
	}
	footer .contact_row {
		row-gap: 20px;
	}
	footer .copy_row {
		row-gap: 12px;
	}
}

@media screen and (max-width: 1079px) {
	footer .menu_row {
		flex-wrap: wrap;
	}
	footer #footer_menu {
		width: 100%;
		padding: 30px 0 0;
	}
	footer .contact_row {
		flex-wrap: wrap;
		row-gap: 30px;
		padding-right: 0;
	}
	footer .contact_row .phones_f {
		flex-wrap: wrap;
		row-gap: 20px;
	}
}

/* mobile: logo / contacts stacked (P:, F: on separate lines) / Disclosures / copyright.
   No nav, no To-top, no disclaimer block (Figma mobile drops them). */
@media screen and (max-width: 767px) {
	footer .footer_disclosures_wrap,
	footer #footer_menu,
	#back_to_top {
		display: none !important;
	}
	footer .cont_inner {
		padding: 60px 0;
	}
	footer .menu_row {
		padding-bottom: 0;
	}
	footer .contact_row {
		flex-direction: column;
		align-items: flex-start;
		row-gap: 50px;
		padding: 40px 0;
	}
	footer .contact_row > * {
		width: 100% !important;
	}
	footer .contact_row .phones_f {
		flex-direction: column;
		align-items: flex-start;
		row-gap: 30px;
	}
	footer .contact_row .phones_f > * {
		margin: 0 !important;
		width: 100%;
		white-space: normal;
	}
	footer #legal_menu,
	footer #legal_menu ul {
		justify-content: flex-start;
	}
	footer .copy_row {
		flex-direction: column;
		align-items: flex-start;
		row-gap: 30px;
		padding-right: 42px;
	}
	footer .copy_row > * {
		width: 100%;
		margin: 0 !important;
	}
}
